Switching and routing

NetSim models enterprise networks at Layer 2 and Layer 3: VLANs and detailed Layer 3 switches, dynamic routing protocols, multicast and control-plane signalling, access control, address translation, and queue management. Configure each through the GUI or text files and trace packets end to end.

A routed and switched network in NetSim

Routers, Layer 2 and Layer 3 switches, and wired hosts, each with its own interface addresses.

NetSim topology of routers, L2 and L3 switches, and wired nodes with their IP addresses
A multi-router topology built in NetSim, with L2 and L3 switches aggregating wired nodes.

Switching

VLAN segmentation and a detailed Layer 3 switch model.

IEEE 802.1Q

Virtual LAN (VLAN)

VLAN 2 VLAN 3 L3 Switch

A VLAN is a group of hosts that communicate as if attached to the same broadcast domain, regardless of physical location. A workgroup can share one VLAN even when its machines sit on different LAN segments or are intermingled with other teams.

  • VLAN tagging, VLAN ID and VLAN name
  • Access and trunk ports
  • Inter-VLAN routing
  • Configuration through GUI or text file
Layer 3 switch

Detailed switch model

Blocked link Root Switch Switch
  • Switching techniques
  • Spanning tree protocol with multiple spanning tree instances per switch
  • Unicast, broadcast and multicast switching
  • Promiscuous mode

Routing and Layer 3 services

Multicast and control signalling, access control, address translation, and static routes.

RFC 2236

IGMP

Internet Group Management Protocol for multicast group membership.

  • IGMP messages: Query, Report
  • Host state machine and router state machine
RFC 792

ICMP

Internet Control Message Protocol for diagnostics and signalling.

  • ICMP control messages
  • ICMP continuous polling
  • Router advertisement
Static routing

Static routes

Manually defined paths between two routers. They use less bandwidth than dynamic routes and suit predictable, simple network designs, but cannot react to topology changes and must be reconfigured by hand when the network changes.

Access control

Access Control List (ACL)

packets ACL filter Permit Deny

A sequential list of permit or deny statements that filters traffic by address or upper-layer protocol. A permit statement allows traffic; a deny statement blocks it.

  • Action: permit, deny
  • Direction: inbound, outbound, both
  • Protocol-wise blocking
  • Interface ID blocking
  • Source and destination IP address
  • Source and destination port numbers
NAT and public IP

Network Address Translation

Private LAN 192.168.0.2 192.168.0.3 NAT router Internet 203.0.113.5

NAT virtualizes IP addresses to improve security and reduce the number of public addresses an organization needs. A NAT device has at least one inside interface and one outside interface, translating local addresses to globally unique ones as packets cross the boundary.

  • Public IP of a host obtained from the WAN router
  • Hides the internal network behind one address

Routing protocols

Distance-vector and link-state routing, configurable down to the timer.

Distance vector

RIP

Routing Information Protocol with configurable timers.

  • Update timer
  • Timeout timer
  • Garbage collection timer
Link state

OSPF

Open Shortest Path First, with the full set of configurable parameters:

  • Area ID
  • Hello Interval
  • Router Dead Interval
  • Router Priority
  • Output Cost
  • LSRefresh Time
  • LSA Maxage
  • Increment Age
  • Maxage Removal Time
  • MinLS Interval
  • SPFCalc Delay
  • Flood Timer
  • Rxmt Interval
  • Send Delay Update
  • Advertise Self Interface
  • Include Subnet Route
  • External Routing Capability

Traffic management

Queue management and scheduling disciplines at the router interface.

Queuing

Queue management

  • RED (Random Early Detection)
  • W-RED (Weighted RED)
  • Drop Tail
Scheduling

Scheduling disciplines

  • First-in-first-out (FIFO) queuing
  • Round Robin
  • Priority queuing (PQ)
  • Weighted-fair queuing (WFQ)
  • Earliest deadline first (EDF)

Standards followed

IETF RFCs implemented across the routing and switching stack.

RFC 1771 RFC 3121 RFC 2236 RFC 1112 RFC 7761 RFC 792 RFC 777 RFC 760

Built to be extended

NetSim ships with protocol source code in C. Modify the routing and switching stack and develop your own protocols.

Documentation

Manuals, the Advanced Routing library, and the support knowledge base.