Basic OTG Configurations
Single TCP Traffic Flow between two Test Ports
File: flow.otg.yaml.
This single flow configuration specifies:
- Flow Name: f1
- Packet Schedule: - 1000packets
- of 512Bsize
- to be transmitted as fixed rate of 100pps
 
- Packet Template: - Ethernet src 02:00:00:00:01:aadst02:00:00:00:02:aa
- IPv4 src 192.0.2.1dst192.0.2.2
- TCP ports src start at 1024 increment by 7dst7
 
- Ethernet src 
- Test Ports- Tx: p1with OTG locationlocalhost:5555
- Rx: p2with OTG locationlocalhost:5556
 
- Tx: 
This configuration was generated by running:
Two Traffic Flows representing bi-directional UDP traffic between two Traffic Ports
File: bidir-flow.otg.yaml.
This bi-directional flow configuration specifies:
- Flow Names: f1;f2
- Packet Schedule: - f1: 1000;- f2: 100packets
- of f1: 512B;f2: 256Bsize
- to be transmitted as fixed rate of f1: 100pps;f2: 10pps
 
- Packet Template: - Ethernet f1src02:00:00:00:01:aadst02:00:00:00:02:aa;f2src/dst swapped
- IPv4 f1src192.0.2.1dst192.0.2.2;f2src/dst swapped
- TCP ports f1srcstart at 1024 increment by 7dst7;f2src/dst swapped
 
- Ethernet 
- Test Ports- Tx: f1: p1with OTG locationlocalhost:5555;f2: p2
- Rx: f1: p2with OTG locationlocalhost:5556;f2: p1
 
- Tx: 
This configuration was generated by running:
otgen create flow --rate 100 --size 512 --proto udp | \
otgen add flow --name f2 --count 100 --rate 10 --size 256 --proto udp --swap \
> bidir-flow.otg.yaml
Single Traffic Flows representing TCP traffic between two Emulated Devices
File: device-flow.otg.yaml.
This single flow configuration specifies:
- Device Names: otg1;otg2- Ethernet Interfaces: otg1.eth[0];otg2.eth[0]
- MAC Addresses: 02:00:00:00:01:aa;02:00:00:00:02:aa
- IP Addresses: 192.0.2.1;192.0.2.2
- Default Gateways: 192.0.2.2;192.0.2.1
- Subnet Netmasks: /24;/24
 
- Ethernet Interfaces: 
- Flow Name: f1
- Packet Schedule: - 1000packets
- of 512Bsize
- to be transmitted as fixed rate of 100pps
 
- Packet Template: - Ethernet src 02:00:00:00:01:aadst02:00:00:00:02:aa
- IPv4 src 192.0.2.1dst192.0.2.2
- TCP ports src start at 1024 increment by 7dst7
 
- Ethernet src 
- Flow Tx:- Device Interface: otg1.eth[0]
- Connected to: Test Port p1with OTG locationte1:5555
 
- Device Interface: 
- Flow Rx:- Device Interface: otg2.eth[0]
- Connected to: Test Port p2with OTG locationte2:5555
 
- Device Interface: 
This configuration was generated by running: