Candela Technologies Logo
 
http://www.candelatech.com
sales@candelatech.com
+1 360 380 1618 [PST, GMT -8]
Network Testing and Emulation Solutions

Emulating a Multiple Hop Network

Goal: Use virtual routers to emulate a multi-hop network.

In this example, LANforge is used to emulate a live routed network by using multiple virtual routers to form a working multi-hop network. Each virtual router has its own routing table and can be configured to use one of many different routing protocols. OSPF will be used in this example and traceroute will be used to demonstrate the traversal of each hop.
 
  1. Use Netsmith to create five OSPF virtual routers.

    1. From the Status tab, select the Netsmith button. screenshot

    2. Right-click in the Netsmith window and select New Router. screenshot

    3. Select the Use OSPF checkbox. screenshot

    4. Select OK, then create four more OSPF virtual routers. screenshot

    5. After creating five OSPF virtual routers, select Apply. screenshot

    For more information see LANforge-GUI User Guide: Netsmith

  2. Create four Netsmith connections to link all of the OSPF virtual routers.

    1. Right-click in the Netsmith window and select New Connection. screenshot

    2. Leave all the default settings and select OK. screenshot

    3. Create three more Netsmith connections. screenshot

    4. After creating four Netsmith connections, select Apply. screenshot

  3. Assign IP addresses to either end of each of the four Netsmith connections.

    1. Right-click on rddVR0 and select Modify Port. screenshot

    2. Set rddVR0 to 10.0.0.1/30 and select OK. screenshot

    3. Right-click on rddVR1 and select Modify Port. screenshot

    4. Set rddVR1 to 10.0.0.2/30 and select OK. screenshot

    5. Repeat the steps above to complete the following: screenshot

      1. rddVR2 is 11.0.0.1/30 and rddVR3 is 11.0.0.2/30

      2. rddVR4 is 12.0.0.1/30 and rddVR5 is 12.0.0.2/30

      3. rddVR6 is 13.0.0.1/30 and rddVR7 is 13.0.0.2/30

  4. Drag each end of a Netsmith connection into a virtual router to setup the network.

    1. A: Setup the following by dragging the interfaces into the specified virtual routers: screenshot

      1. rddVR0 in R0 and rddVR1 in R1

      2. rddVR2 in R1 and rddVR3 in R2

      3. rddVR4 in R2 and rddVR5 in R3

      4. rddVR6 in R3 and rddVR7 in R4

    2. B: Right-click on each Wanlink (red bar) and select Toggle Wanlink (change to green bar). screenshot

      1. Note: If you wanted to emulate an /impaired/ multi-hop network, you could modify each Wanlink to have any LANforge impairment such as latency, jitter, dropped packets, etc...

    3. After all interfaces are moved and Wanlinks started, select Apply in the Netsmith window. screenshot

  5. Assign IP addresses and Default Gateways to each of four physical interfaces.

    1. Right-click on each interface and select Modify Port. screenshot

    2. Setup the following IP addresses and Default Gateways: screenshot

      1. eth1 IP address is 172.16.0.101/24 and Default GW is 172.16.0.1

      2. eth2 IP address is 172.16.0.1/24 and Default GW is 172.16.0.1

      3. eth3 IP address is 192.168.0.1/24 and Default GW is 192.168.0.1

      4. eth4 IP address is 192.168.0.104/24 and Default GW is 192.168.0.1

    3. Drag eth2 into R0 and eth3 into R4, then Apply changes. screenshot

      1. Note: In this example, four physical interfaces are used. eth1 and eth2 are physically connected with a cable, as are eth3 and eth4. This allows us to use eth1 and eth4 to generate traffic to each other through the network interfaced by eth2 and eth3.

  6. Apply all changes in Netsmith, allow OSPF time to converge, and observe routing tables.

    1. After applying all Netsmith changes, right-click on a virtual router and select Show Routing Table. (Before OSPF converges, only the directly connected networks are shown.) screenshot

    2. After OSPF converges, each virtual router has a complete routing table for the entire network. screenshot

      1. Note: If you select Netsmith Apply again, this will restart all virtual routers and OSPF will need time to converge again.

  7. Alternative method to observe routing tables of each virtual router.

    1. With OSPF virtual routers, you can right-click on a virtual router and select Virtual Router Console to bring up the underlying xorp shell for the virtual router. screenshot

    2. Once at the xorp shell prompt, type the following to display the routing table information: screenshot

      1. show route table ipv4 unicast final

  8. Use traceroute to traverse all five hops.

    1. Open a terminal window in the LANforge system. screenshot

    2. Type the following command at the prompt: screenshot

      1. traceroute -i eth1 13.0.0.2

      2. Note: -i eth1 forces the traceroute program to use eth1 as its outgoing interface.

    3. Observe the results of each hop in the network. screenshot

    4. Traceroute from eth4. screenshot

      1. traceroute -i eth4 10.0.0.1

    5. Generate LANforge traffic through the multi-hop network.

      1. Go to the Layer-3 tab and select Create. screenshot

      2. Set Endpoint-A to use eth1 and Endpoint-B to use eth4. screenshot

      3. Start the Layer-3 connection. screenshot

      4. Traffic flowing through the multi-hop network. screenshot


Candela  Technologies, 2417 Main Street, Suite 201, Ferndale, WA 98248, USA
www.candelatech.com | sales@candelatech.com | +1.360.380.1618
Google+ | Facebook | LinkedIn | Blog