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:
1000
packets- of
512B
size - to be transmitted as fixed rate of
100pps
- Packet Template:
- Ethernet src
02:00:00:00:01:aa
dst02:00:00:00:02:aa
- IPv4 src
192.0.2.1
dst192.0.2.2
- TCP ports src
start at 1024 increment by 7
dst7
- Ethernet src
- Test Ports
- Tx:
p1
with OTG locationlocalhost:5555
- Rx:
p2
with 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: 100
packets- of
f1: 512B
;f2: 256B
size - to be transmitted as fixed rate of
f1: 100pps
;f2: 10pps
- Packet Template:
- Ethernet
f1
src02:00:00:00:01:aa
dst02:00:00:00:02:aa
;f2
src/dst swapped - IPv4
f1
src192.0.2.1
dst192.0.2.2
;f2
src/dst swapped - TCP ports
f1
srcstart at 1024 increment by 7
dst7
;f2
src/dst swapped
- Ethernet
- Test Ports
- Tx:
f1: p1
with OTG locationlocalhost:5555
;f2: p2
- Rx:
f1: p2
with 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:
1000
packets- of
512B
size - to be transmitted as fixed rate of
100pps
- Packet Template:
- Ethernet src
02:00:00:00:01:aa
dst02:00:00:00:02:aa
- IPv4 src
192.0.2.1
dst192.0.2.2
- TCP ports src
start at 1024 increment by 7
dst7
- Ethernet src
- Flow Tx:
- Device Interface:
otg1.eth[0]
- Connected to: Test Port
p1
with OTG locationte1:5555
- Device Interface:
- Flow Rx:
- Device Interface:
otg2.eth[0]
- Connected to: Test Port
p2
with OTG locationte2:5555
- Device Interface:
This configuration was generated by running: