LAN / WAN / SAN IP-Network Models
The LAN/WAN library consists of a set of base-models to which specific functionalities can be added. The LAN/WAN models differ from other models in that they route messages by routing-rules similar to the Internet-Protocol (IP). They can be used to study IP or TCP/IP networks. The library contains components that are typical of LANs and WANs, such as routers, switches, hubs, hosts, gateways, bridges, hosts, servers, in-line network encrypters (INEs), and other protocol converters. Each link and/or component's attributes control the respective data transfer rates, latencies, packetization, and etc.. Data traffic can be specified statistically.
An example network model called, Example_LAN.sim, is located in the $CSIM_MODEL_LIBS/lanlib directory. The LAN models are not directly compatible to the Core_Models.
Usage:
To access the LAN-lib component models, import the library file in the GUI by:
File / Import / By-Reference $CSIM_MODEL_LIBS/lanlib/netslib.sim
Or add the following include statement to your main diagram file:
%include $CSIM_MODEL_LIBS/lanlib/netslib.sim
Component Models
- SubnetTrafficGen - This model generates and sinks message traffic to/from a WAN. It approximates the traffic from a subnetwork. It can have any number of ports, such as p0, p1, p2, ... pn.
Attributes:
number_of_destinations - Number of destination specifiers.
For each destination subnet X, a dest_subnet_addressX such as Y.Z.0.0
and mean_traffic_genX rate must be specfied for all destinations X from
0 to (number_destinations - 1).
dest_subnet_addressX - IP address for destination X. Should be set to IPv4-type values
such as 45_34_0_0. (If quotes are used around the address,
then dots "." can be used instead of underscores.)
mean_traffic_genX - Rate of traffic generated in Bytes/sec to destination X.
min_msg_lngth - Smallest message generated in Bytes.
max_msg_lngth - Largest message generated in Bytes.
percent_classified_traffic - Percent of traffic generated as classified.
subnet_addr - This subnet's IP address.
- NetSwitch -
This model approximates a Network Switch, such as a Cisco LS1010 Switch.
It's aggregate bandwidth is limited by the backplane rate.
It's connectivity hardwired, and is configurable by attributes.
It can have any number of ports, such as p0, p1, p2, ... pn.
Attributes:
backplane_rate - Backplane rate in MBytes/Sec.
portcnfg0 - Connection configuration parameter. Must be set to a port name from p1 - p7.
...
portcnfg7 - Connection configuration parameter. Must be set to a port name from p0 - p6.
- Router -
This model approximates a Router, such as Cisco 800, 1800, or 3800 series.
It's aggregate bandwidth is limited by the backplane rate.
It's routing rules are configurable by attributes by matching
a destination address to an outgoing port-name.
The router also "packetizes" long messages into shorter packets.
It can have any number of ports, such as p0, p1, p2, ... pn.
Attributes:
``` backplane_rate - Backplane rate in MBytes/Sec. max_packet_size - Maximum packet length in Bytes. route_x_x_x_x - Routing rule. Must be set to a port name from p0 - p7. Example: route_78_34_23_00 = p3 route_y_z_w_q - ... ...
* Default routing rules can be specified like zero subnet specifiers.
For example, 24.50.0.0 can be equated to: route_24_50 = port5
I.E. Route all packets to subnet 24.50.xx.yy to port5.
```
- Encryptor -
This model approximates the effect of an in-line network encryptor (INE).
Namely, it inserts a delay and expands (or de-expands) messages passing
from unencrypted to encrypted (or vice versa) by the expansion factor
attribute.
It has two ports: unencrypted, encrypted.
Attributes:
encryption_delay - Encryption delay in seconds.
expansion_factor - Message length expansion factor relative to 1.0.
- NetworkMonitor -
This device sets animation defaults to be on.
It has no ports. It is a convenience box.
- SonetLink -
This model approximates the effects of Telco Point-to-point SONET link services.
Namely, it's transfer-rate depends on the packet classification levels.
It has two ports: A, B.
Attributes:
unclassified_rate - Link transfer rate for unclassified packets in MBytes/Sec.
classified_rate - Link transfer rate for classified packets in MBytes/Sec.
![]()
The following units are predefined:
Bytes = 1.0
kBytes = 1000.0
MBytes = 1000000.0
GBytes = 1e9
Sec = 1.0
mSec = 0.001
Mbits = 125000.0
.