trungdtbk / bgp-gen

Development has been moved to a new repo (https://github.com/trungdtbk/bgpreplay)
4 stars 4 forks source link

Replay MRT files #2

Open sdktr opened 8 years ago

sdktr commented 8 years ago

Can you help me in the right direction for replaying a MRT file? When specifying an extracted 'latest-bview' -file from RIPE I get the error 'header len too small' If I use the included file 'updates.20151222.2200' nothing happens except for displaying the filename of the specified file.

bgp-update-gen.py --rest-host 172.16.24.162 --peerip 10.10.1.1 --message-mrt latest-bview /latest-bview header len too small

bgp-update-gen.py --rest-host 172.16.24.162 --peerip 10.10.1.1 --message-mrt bgp-update-gen/sample-data/updates.20151222.2200 bgp-update-gen/sample-data/updates.20151222.2200

trungdtbk commented 8 years ago

You need yabgp running at host 172.16.24.162. Give the link to the your file, I will test it to see what's wrong. The program is work in progress. I use it for my experiment. There are a few things being hard coded.

sdktr commented 8 years ago

The YaBGP part is running fine; I can use the client (bgp-update-gen.py) to generate prefixes. I noticed the hardcoded as-path in these updates. This works great (yabgp running on 172.16.24.162): ./bgp-update-gen/bgp-update-gen.py --rest-host 172.16.24.162 --peerip 10.10.1.1 --rand-d 0.001 --rand-m 1000 --rand-n 1000 Generate random announcement with 1000 prefixes/update, 1000 update and 0.001000 (s) delay between updates