Printer FriendlyEmail Article Link

How do I create simulated hosts behind emulated hosts and transmit traffic between the hosts?

Answer

 

The key is to make sure the networks where the simulated hosts are coming from are statically configured on 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====Emulated_Host1====DUT====Emulated_Host1====Sim_Host2
 
Sim_Host1 is 10.0.0.2
Sim_Host2 is 20.0.0.2
DUT nearside interface is 1.0.0.1
DUT farside interface is 2.0.0.1
Emulated_Host1 is 1.0.0.2
Emulated_Host2 is 2.0.0.2
Sim_Host1/Emulated_Host1 are on STC port 1
Sim_Host2/Emulated_Host2 are on STC port 2
 
Steps to configure:
1). setup the emulated hosts on Port 1 and 2
2). add static route 10.0.0.0 and 20.0.0.0 with next-hop pointing to 1.0.0.2 and 2.0.0.2, respectively
3). ARP both emulated hosts
4). on Port 1, create Sim_Host1 with IP address 10.0.0.2 and gateway 1.0.0.1
5). on Port 2, create Sim_Host2 with IP address 20.0.0.2 and gateway 2.0.0.1
6). ARP both simulated hosts
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
 
 
 
 
 
 

Product : L2-3,Windows GUI,IP