BGP replay tool, based on the work by CAIA, Swinburne University of Technology (http://caia.swin.edu.au/tools/bgp/brt/downloads.html).
I added the following two features:
- inject BGP updates to a running BRT via a named pipe,
- ignore replay time.
BRT-0.2.1: BGP Replay Tool script.
usage:
BRT-0.2.1.pl
-brtas <AS number> # your AS number
-brtip <IP address> # your IP address
-brtipv6 <IPv6 address> # your/next-hop IPv6 address
-peeras <AS number> # peer AS number
-peerip <IP address> # peer IP address
-peeripv6 <IPv6 address> # peer IPv6 address
[-ipv6] # connect to peer using IPv6
[-m <Filename>] # connect to multiple peers specified in <Filename>
-f <Filename> # BGP update file in human readable with Unix format (bgpdump -m option)
[-u <Named pipe>] # named pipe to read a new BGP update file
[-c <Filename>] # check the existence of AS numbers in <Filename>
# in AS-PATH of the injected updates
[-help] # Display BRT tool help
[-l] # Allow BRT to listen on port 179
[-t] # Ignore replay time
[-v] # log to stdout
Example:
-
Create a named pipe then start BRT
mkfifo update.pipe perl brt-0.2.1.pl -brtas 65001 -brtip 172.16.2.2 -peeras 65002 -peerip 172.16.2.1 -f in_new -u update.pipe -
Sending BGP updates from in_update file
echo "in_update" > update.pipe
Refer to README-brt.txt for the details.