Printer FriendlyEmail Article Link

How do I create simulated BGP routers behind emulated BGP routers and transmit traffic between them?

Answer

The key is to make sure the networks where the simulated routers are coming from are advertised to the DUT via the emulated routers. This will allow the DUT to know which next hop to use to forward traffic to destination addresses.

For example (use 2 ports):

Sim_Rtr1====Emu_Rtr1====DUT====Emu_Rtr2====Sim_Rtr2

Sim_Rtr1 is 10.0.0.2 Sim_Rtr2 is 20.0.0.2 DUT nearside interface is 1.0.0.1 DUT farside interface is 2.0.0.1 Emu_Rtr1 is 1.0.0.2 Emu_Rtr2 is 2.0.0.2 Sim_Rtr1/Emu_Rtr1 are on STC port 1 Sim_Rtr2/Emu_Rtr2 are on STC port 2

Steps to configure:

1). setup the BGP emulated routers on Port 1 and 2

2). ARP both router interfaces

3). add routes 10.0.0.0 and 20.0.0.0 to Emu_Rtr1 and Emu_Rtr2, respectively

4). bring up both emulated BGP sessions and make sure the 2 routes are advertised to DUT

5). on Port 1, create Sim_Rtr1 with IP address 10.0.0.2 and gateway 1.0.0.1

6). on Port 2, create Sim_Rtr2 with IP address 20.0.0.2 and gateway 2.0.0.1

7). create a bi-directional Stream Block and bound the simulated routers as endpoints

8). start traffic and should see Tx and Rx both sides going through

NOTE: The above configuration steps can also be used with other routing protocols or emulated hosts. If using emulated hosts instead of emulated routers, then static routes have to be configured on the DUT.


Product : Routing,Windows GUI,BGP