Giter VIP home page Giter VIP logo

open-traffic-generator / otg-examples Goto Github PK

View Code? Open in Web Editor NEW
28.0 12.0 11.0 4.95 MB

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

Dockerfile 0.46% Go 30.77% Shell 6.85% Python 44.83% Makefile 14.74% HCL 2.35%
gosnappi containerlab ixia-c networking-labs netops network-automation network-test network-testing clab-topo

otg-examples's Issues

FRR DUT: transmit rate is a limiting factor

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)

KNE Lab con BGP, error with p1 and p2

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...

Add proper `git clone` to each lab

For example, docker-compose/b2b relies on templates for otgen that come via a submodule. So the cloning should be done with --recursive

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.