print "*** valid-topology ***\n" # The file "as.relation" used in this script contains an Internet # topology inferred from real routing tables gathered in transit # ASes. This file can be obtained from: # http://www.cs.berkeley.edu/~sagarwal/research/BGP-hierarchy print "Load topology...\n" bgp topology load "as.relation" bgp topology policies bgp router 27.206.0.0 add network 27.206/16 bgp topology run print "Run simulation...\n" sim run print "\nRIB of router 0.209.0.0 (AS209)\n" bgp router 0.209.0.0 show rib 27.206/16 print "\nRIB of router 0.1.0.0 (AS1)\n" bgp router 0.1.0.0 show rib 27.206/16 print "\nDone.\n"