Assignment 5 (Due December 20th 1996)

CSC454 - System Simulation

Rameen Mohammadi


For your final project, you will simulate a local area network using the Ethernet topology. The focus of the project is on simulating and understanding network contention. Here is my version.

The Ethernet model employs a broadcasting approach for networking. A number of stations/nodes/computers are connected to such a network, typically, in a one mile radius. A message broadcasted on the network by one of the stations is picked up by all other stations. Stations can recognize whether messages are for them or not. A message that doesn't belong to a station is, simply, discarded by that station.

The most interesting part of this LAN is the concept of network contention. When a station is ready to transmit a message, it first must determine whether the network is already being used or not. If the network is not seized by any other station, the station that wishes to transmit must first send a small packet containing a unique bit pattern across the network. If no other station is doing the same thing at that time, the transmitting station can now assume ownership of the network and transmit a message. If more than one station are contending for the network at the same time, their bit patterns will collide which intern changes the bit pattern in the network to something different than the bit patterns of all contending stations. Collisions are easyly detected by the contending stations who listen to the network for their own unique bit pattern. To resolve collisions, the following Exponential Backoff Heuristic has been adopted which basically causes the stations involved in a collision to transmit at a later time.

EBF = L2 * T * random() where L is the number of seize attempts by the station and T is the time it takes to transmit the stations bit pattern.

Key constraints

Requirements: