open-traffic-generator / otg-examples Goto Github PK
View Code? Open in Web Editor NEWOpen Traffic Generator examples available to everyone. It's a great way to get started.
Home Page: https://otg.dev/examples/otg-examples/
License: MIT License
Open Traffic Generator examples available to everyone. It's a great way to get started.
Home Page: https://otg.dev/examples/otg-examples/
License: MIT License
RTBH fails if Go is not installed
For example, docker-compose/b2b
relies on templates for otgen
that come via a submodule. So the cloning should be done with --recursive
2022/05/16 00:54:21 Starting traffic...
2022/05/16 00:54:21 Response type:*gosnappi.responseWarning
2022/05/16 00:54:21 WARN:
{}
2022/05/16 00:54:21 Traffic started.
Hi, I am testing the KNE Lab with BGP and I am getting this error, this corresponds to not having access to the "ghcr.io/open-traffic-generator/licensed/ixia-c-protocol-engine" image?.
When executing this:
kubectl exec -it otgen -- /bin/bash
export OTG_API="https://service-https-keng-controller.keng-ceos.svc.cluster.local:8443"
otgen create device -n otg1 -p p1 -l eth1 --ip 192.0.2.1 --prefix 30 --gw 192.0.2.2 |
otgen add device -n otg2 -p p2 -l eth2 --ip 192.0.2.5 --prefix 30 --gw 192.0.2.6 |
otgen add bgp -d otg1 --asn 1111 --route 198.51.100.0/24 |
otgen add bgp -d otg2 --asn 2222 --route 203.0.113.0/24 |
otgen add flow -n f-1-2 --tx otg1 --rx otg2 --src 198.51.100.1 --dst 203.0.113.1 --count 1000 --rate 100 --size 128 |
otgen add flow -n f-2-1 --tx otg2 --rx otg1 --dst 198.51.100.1 --src 203.0.113.1 --count 2000 --rate 200 --size 256 |
otgen --log info run -k -m flow | otgen transform -m flow | otgen display -m table
exit
this is the error
INFO[0000] Applying OTG config...
ERRO[0000] OTG API error code: 500
ERRO[0000] OTG API error kind: internal
ERRO[0000] OTG API error messages:
ERRO[0000] Protocol service for port "p2" is not registered
ERRO[0000] Error occurred while setting Protocol config for user common:Protocol service for port "p1" is not registered
FATA[0000] Fatal OTG error, exiting...
it should be /30
on the emulated device interfaces
b2b doesn't have sudo for make clean
If the actual packet rate is lower than requested, the traffic will continue beyond defined duration until pre-calculated number of packets at the desired rate is transmitted.
With rate set as:
flows:
- duration:
choice: fixed_packets
fixed_packets:
gap: 12
packets: 1000000
metrics:
enable: true
loss: false
timestamps: false
rate:
choice: pps
pps: "100000"
size:
choice: fixed
fixed: 512
the limiting factor is TX rate. The DUT passes 100% of the packets
2022/05/15 21:45:42 Time passed: 11.080817133s out of 10s
2022/05/15 21:45:42 Stopping traffic...
2022/05/15 21:45:42 Metrics Response:
choice: flow_metrics
flow_metrics:
- bytes_rx: "211071488"
bytes_tx: "0"
frames_rx: "412249"
frames_rx_rate: 33645
frames_tx: "412249"
frames_tx_rate: 32901
name: p1.v4.p2
transmit: stopped
--- PASS: Test_RTBH_IPv4_Ingress_Traffic (11.14s)
Hi,
we now track clab labs with the clab-topo
topic https://github.com/topics/clab-topo
you may want to add it to the repos that feature the clab topology file for others to discover it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.