Re: [C-bgp-users] Loading MRT files in a CBGP router
Brought to you by:
bquoitin
From: Roderick <rod...@im...> - 2016-02-27 21:26:56
|
Hi Bruno, Thank you for the quick reply. And I sincerely thank you for having released such a great and useful tool. Please find attached the topology (Sorry I forgot to add it) and the file ASes_in_topo.txt; Thanks for updating the c-bgp so that it now reports the detailed error code from the MRT parser :This will allow to debug easier. After suppressing the line TABLE_DUMP|1122859488|B|LOCAL|LOCAL|0.4.0.0/16||IGP|0.4.0.0|0|0|||||, I confirm it always load the RIB. Next, (for checking) I try to download the RIB of all routers with the command $cbgp->send("bgp router $line show rib * --output=final_ribs/final_RIB-$line.txt\n"); However, the routes still do not appear in the RIB. I am currently digging into it. BR, Roderick On Feb 27, 2016, at 6:33 AM, Bruno Quoitin <bru...@um...> wrote: > For what concerns the use of "virtual peers", have a look at > > examples/example-virtual-peer.cli > > BR, > Bruno > > > On 27/02/16 01:58, Roderick wrote: >> Dear all, >> >> I am trying to load RIBs in CBGP routers (this is compulsory for scaling down the AS topology.). >> >> So, I am using the script (1_load_topology_v5.pl). An example of MRT file I want to load is "modified_RIB-4.txt" that contains the RIB of AS4. >> >> When I try to load the whole file, I can not: >> >> cbgp> init. >> cbgp> bgp topology load 01_topology_to_load.txt >> cbgp> bgp topology install >> cbgp> bgp topology policies >> cbgp> bgp topology run >> cbgp> sim run >> cbgp> bgp router AS4 load rib modified_ribs/modified_RIB-4.txt >> Error: command failed >> +-- reason: could not load "modified_ribs/modified_RIB-4.txt" (plop, at line XX) >> cbgp> bgp router AS4 load rib modified_ribs/modified_RIB-4.txt >> Error: command failed >> +-- reason: could not load "modified_ribs/modified_RIB-4.txt" (plop, at line XX) >> >> >> But when I try with small part of it (test.txt), It does load (sometimes it does not and I get the same error): >> >> cbgp> bgp router AS4 load rib test.txt >> cbgp> bgp router AS4 show rib * >> cbgp> sim run >> >> >> You’ll also remark that I after loading the file, nothing appears in the rib (after launching bgp router AS4 show rib *). >> >> 1- Does the size of the MRT file matter ? >> >> 2- Why doesn’t the routes appear in the RIB after loading and running sim run? >> >> 4- Do you have any advice on how I should proceed ? Isn’t the format of the MRT file right (I am quite sure of it)? >> >> 3- The other option I have is to use virtual peers and feed the routers with update messages. Have you ever used a virtual peer to feed updates messages in a CBGP router ? If yes, what setup do you advice me ? >> >> PS: If I choose that option, I would need about 600 virtual peers. >> >> Thank you for your help, >> >> Best regards, >> >> Roderick >> >> >> > |