Generate TCP traffic while using BIRD for RIP

279 views
Skip to first unread message

Pooja Tainwala

unread,
Jan 28, 2021, 6:14:32 AM1/28/21
to TRex Traffic Generator
Screenshot 2021-01-23 at 7.03.03 PM.png
Hi Hanoch, 

Above the topology for TREX BIRD for RIP. 

I have setup port 0 to advertise routes to DUT1. [This is successful]
Now i want to generate TCP traffic from port 0. 

To generate udp traffic i do the following on the client console- 


./trex-console 

service -a

portattr -a --prom on --mult on

plugins load bird

plugins bird show_nodes -p 0

plugins bird set_config -f bird/cfg/rip.conf -r bird/cfg/ipv4_routes.conf

plugins bird show_config

service --no-tcp-udp

start -f stl/udp_1pkt_simple.py -m 10mbps -p 0



For TCP traffic if I use any profile from the astf/ i get the following error - 

trex(service-filtered)>start -f astf/http_https.py -d 10 -p 0 


start - 

Error loading profile 'astf/http_https.py'



Python Traceback follows:


  File "/home/iblogin/v2.87/automation/trex_control_plane/interactive/trex/stl/trex_stl_streams.py", line 1002, in get_module_tunables

    func = module.register().get_streams

AttributeError: Prof1 instance has no attribute 'get_streams'



Please guide on which profile/command i can use for stateful traffic generation for BIRD. 



Thanks,

Pooja




hanoh haim

unread,
Jan 28, 2021, 6:18:04 AM1/28/21
to Pooja Tainwala, TRex Traffic Generator
Hi Pooja,
You need to run TRex in ASTF mode

Besart Dollma

unread,
Jan 28, 2021, 6:18:58 AM1/28/21
to TRex Traffic Generator
Hi Pooja,
Have you started the server in ASTF mode before sending ASTF traffic?
Thanks,

Pooja Tainwala

unread,
Jan 28, 2021, 6:20:57 AM1/28/21
to TRex Traffic Generator
TREX server - 

sudo ./t-rex-64 -i --bird-server --software -c 1 --astf --lro-disable


Add_bird -

~/v2.87/automation/trex_control_plane/interactive/trex/examples/stl$ python3.6 add_bird_node.py 

Connecting to RPC server on localhost:4501                  



[verbose] Sending Request To Server:


{

    "id": "foj01guk",

    "jsonrpc": "2.0",

    "method": "api_sync_v2",

    "params": {

        "major": 4,

        "minor": 8,

        "name": "STL"

    }

}




[verbose] Server Response:


{

    "error": {

        "code": -32000,

        "message": "Failed To Execute Method",

        "specific_err": "RPC configuration mismatch - server RPC configuration: 'ASTF', client RPC configuration: 'STL'"

    },

    "id": "foj01guk",

    "jsonrpc": "2.0"

}


[FAILED]


Traceback (most recent call last):

  File "add_bird_node.py", line 28, in <module>

    c.connect()

  File "/home/iblogin/v2.87/automation/trex_control_plane/interactive/trex/common/trex_api_annotators.py", line 51, in wrap2

    ret = f(*args, **kwargs)

  File "/home/iblogin/v2.87/automation/trex_control_plane/interactive/trex/common/trex_client.py", line 1305, in connect

    raise TRexError(rc)

trex.common.trex_exceptions.TRexError: RPC configuration mismatch - server RPC configuration: 'ASTF', client RPC configuration: 'STL'

Shutting down RPC client


~/v2.87/automation/trex_control_plane/interactive/trex/examples/stl$  

Besart Dollma

unread,
Jan 28, 2021, 6:52:06 AM1/28/21
to TRex Traffic Generator
Hi, 
You can't use a stateless profile (STL client) with an ASTF server.
Thanks,

Pooja Tainwala

unread,
Jan 28, 2021, 6:53:50 AM1/28/21
to TRex Traffic Generator
Ok, so how to generate TCP traffic using BIRD? 

Currently running TREX server in STL mode - 
sudo ./t-rex-64 -i --bird-server --software -c 1



hanoh haim

unread,
Jan 28, 2021, 7:02:53 AM1/28/21
to Pooja Tainwala, TRex Traffic Generator
1. You should load the server in ASTF mode
2. You should use ASTF Client  and NOT STL Client
3. You need to load ASTF profile 

BIRD can be used in parallel 

Pooja Tainwala

unread,
Jan 28, 2021, 10:25:32 AM1/28/21
to TRex Traffic Generator
Hi Hanoch, 

I didn't understand it well. 
Please can you explain it with the commands and the order in which it needs to be executed. 
I need Bird node and generate TCP traffic. 

Thanks,
Pooja

hanoh haim

unread,
Jan 28, 2021, 10:27:03 AM1/28/21
to Pooja Tainwala, TRex Traffic Generator
Hi, 
Try to do it from the Console, it will be more clear. The console choose the right client type. 

Thanks
Hanoh

Reply all
Reply to author
Forward
0 new messages