Printer FriendlyEmail Article Link

Spirent TestCenter: How do I create simulated hosts behind emulated BGP routers and transmit traffic between the hosts?

Environment/Versions
  • Spirent TestCenter
  • BGP
  • Incoming / Outgoing Links
    • Incoming Link - connected to DUT
    • Outgoing Link - Device behind Device
Answer
  • The key is to make sure the networks where the simulated hosts are coming from are advertised to the DUT.  
  • This will allow the hosts to ARP successfully and the DUT to know which next hop to use to forward traffic to destination address.
  • For example (use 2 ports):
    • Sim_Host1====BGP_Rtr1====DUT====BGP_Rtr2====Sim_Host2
    • Sim_Host1 is 10.0.0.1
    • Sim_Host2 is 20.0.0.1
    • DUT nearside interface is 1.0.0.1
    • DUT farside interface is 2.0.0.1
    • BGP_Rtr1 is 1.0.0.2
    • BGP_Rtr2 is 2.0.0.2
    • Sim_Host1/BGP_Rtr1 are on STC port 1
    • Sim_Host2/BGP_Rtr2 are on STC port 2
  •  Steps to configure:
    1. setup the BGP emulated routers on Port 1 and 2
    2. add route 10.0.0.0 and 20.0.0.0 to BGP_Rtr1 and BGP_Rtr2, respectively
    3. bring up both BGP sessions and make sure the 2 routes are advertised to DUT
    4. on Port 1, create Sim_Host1 with IP address 10.0.0.1 and gateway 1.0.0.1
      • add outgoing link to BGP_Rtr1
    5. on Port 2, create Sim_Host2 with IP address 20.0.0.1 and gateway 2.0.0.1
      • add outgoing link to BGP_Rtr2
    6. ARP both hosts
      • this may not be needed and you may not see the actual host get resolved but the GUI will say all arps resolved
      • reason for this is because the only device that needs to be resolved is to the DUT
      • the devices behind the directly connected device will simply use the src and dst MAC of BGP_Rtr1 or 2 and the DUT
    7. create a bi-directional Stream Block and bound the simulated hosts 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,L2-3,Windows GUI,BGP