Building a SITL Network Model

Almost any network model can be modified to run as part of a system-in-the-loop simulation. All that is necessary is to add a SITL gateway node to the simulation. The gateway node connects via a SITL link to an Ethernet workstation, router, or switch in the simulation. The nodes connected to the gateway should be configured as described in the following tables.

Table 2: Critical Workstation Attributes

Attribute Description
IP > IP Host Parameters > Interface Information > Address Desired IP address to simulate (must be unique in both the simulated and physical networks)
IP > IP Host Parameters > Interface Information > Subnet Mask Desired subnet mask to simulate

Table 3: Critical Router and Switch Attributes

Attribute Description
IP > Routing Parameters > Interface Information [row x] > Address Desired IP address to simulate
Note: Only RIP and OSPF routing are supported on the interface connected to the SITL gateway node. If necessary, configure static routing instead.

If the simulated network and the real hardware it connects to are on different subnetworks, set the default gateway of the real hardware to the IP address of the simulated node connected to the SITL gateway.

To work with SITL, the simulation must be able to run in real time. Some simulations might be too large for real-time operation.

Connecting to a Wireless Network

Note: Wireless operation is supported only on 32-bit Windows.

A SITL simulation can connect to a real network via an 802.11b/g wireless connection. SITL uses only the data packets from a wireless network. When receiving a data packet from the wireless network, SITL extracts the data and passes it to the simulation in an Ethernet packet. Data from the simulation destined for the wireless network is put into an 802.11 packet and sent via the selected network adapter.

Note: SITL does not send control packets or handle handshaking on the wireless network. As a result, undetected collisions might occur. To minimize this, use a wireless channel with no other traffic.

The wireless connection should use an AirPcap Tx or AirPcap Ex adapter from CACE Technologies (www.cacetech.com). At this writing, these are the only adapters that allow SITL to both receive and send information on the wireless network. Some other adapters (those that are compatible with WinPcap) allow data to be received from a wireless network, but no others allow data to be sent.

Procedure 4: Setting Up a Wireless Connection

  1. Determine the following information about the wireless network:

    • BSS ID
    • Channel number
  2. Set the BSS ID attribute on the SITL gateway node to the BSS ID of the wireless network.

  3. Configure the AirPcap adapter:

    3.1 Open the control panel for the AirPcap adapter.

    3.2 Select the AirPcap adapter you want to use.

    3.3 Select the channel used by the wireless network.

    3.4 Set Capture Type to "802.11 Only".

    3.5 Set FCS Filter to "Valid Frames".

    3.6 Unselect the "Include 802.11 FCS in Frames" checkbox.

    3.7 Click OK.

Using SITL with Virtual Machines

SITL is not officially supported with virtual machines, but it has been known to work in some situations. If you want to try using a VM, here are some hints that might help.

  • Make sure the VM is getting enough CPU time to handle the simulation.
  • Configure the VM such that the packet routing software (WinPcap on Windows, libpcap on Linux) can access the network adaptor correctly.
  • When using VMWare, ensure that the vSwitch settings are configured to accept forged transmits.
  • If possible, verify that your intended configuration works with real hardware before moving to VMs.

Riverbed recommends that you do not run a SITL simulation on a virtual machine if the timing of packet delivery to the simulation and back to the real world is crucial. This is because some combinations of operating system and network card driver can adversely affect packet timing; for example, ping response time might vary erratically between pings.

Updating SITL Models

Because of improvements in SITL, models created with earlier SITL releases might need changes to work with the current software.

Releases Prior to 14.5 PL5

Set the Network Adapter attribute on all SITL gateway nodes in your project. This attribute replaced the Source IP and Ethernet MAC Address attribute.

Releases Prior to 14.5

For SITL models created prior to release 14.5, make sure there are no references to sitl_ip_packet_translation.ex.c in your code. The code from that file has been merged into sitl_packet_translation.ex.c.

Releases Prior to 12.1

SITL network models built with releases prior to 12.1 will not work with the current SITL models. To update the model, you must:

  • Replace the first node connected to the SITL gateway with an Ethernet workstation, router, or switch. Make sure this node does not have the same IP address as the physical NIC in the computer running the simulation.
  • Replace the SITL link connecting the SITL gateway and the first node (to replace the former PPP interface with the new Ethernet interface).

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com