Networks Notes
Networks Notes
Networks Notes
Can divide networks into point-to-point and broadcast. Look at broadcast networks
and their protocols.
When many stations compete for a channel (e.g., broadcast channel such as an
Ethernet), an algorithm must arbitrate access to the shared channel.
Need a way of insuring that when two or more stations wish to transmit, they all wait
until doing so won't interfere with other transmitters. Broadcast links include LANs,
satellites (WAN), etc.
LAN's:
MANs cover a city-wide area with LAN technology. For example, cable TV.
Can have higher speed, lower error rate lines with LANs than WANs.
Slotted ALOHA--divide time into discrete intervals of width frame time (slots).
Can only send at the beginning of a time slot. (need a means of
synchronization--station emit a pip at start of each interval). Double the
throughput (number of frames per frame time) vs. pure ALOHA. See Fig 4.3.
Stations listen for a transmission before trying to send data--carrier sense. Only send if
channel is idle.
1-Persistent CSMA (Carrier Sense Multiple Access). Sense channel, if idle then
send, if busy wait until idle and then send. 1-persistent because it sends with
probability of one when senses channel is idle. Collisions?
Effect of propagation delay (takes time for signal to propagate from one
channel to another). Even if zero could have collisions.
nonpersistent CSMA--less greedy. Sense channel. If idle then send. If busy then
wait random amount of time before repeating the same routine. Collisions go
away? No, can still send at the same time.
p-persistent CSMA--applies to slotted channels. If channel idle then send with
probability p, with probability q=(1-p), it defers to the next time slot. Delay for
random time if channel busy. Look at Fig 4-4.
The primary advantage of p-persistent protocols is that they reduce the number
of collisions under heavy load. The primary disadvantage is that they increase
the average delay before a station transmits a frame. Under low loads, the
increased delay reduces efficiency.
Protocol Efficiency
The following table gives maximum efficiency percentages for some of the protocols
we have studied so far:
CSMA/CD
Another way to reduce the number of collisions is to abort collisions as soon as they
are detected. CSMA networks with Collision Detect (CSMA/CD) do just that. How
long does it take to detect collisions:
at least twice the propagation delay, or (in worst case, for the signal to
travel from one end of cable to the other, another for the collision indication
to travel back)
we'll call this interval the contention period
what does this say about building broadcast networks that span large distances?
(increase propagation delay)
small frames? (could send entire frame before detecting a collision)-pad out the
frames in the standard
Ethernet is a specific product implementing (or nearly so) the IEEE standard.
Interesting to note that having an Ethernet port on a machine has become a standard
(certainly for workstations).
Note: our goal is to keep delays low at low loads, but avoid collisions under high load.
Also, note that there are no acknowledgements; a sender has no way of knowing that a
frame was successfully delivered.
Can connect hosts to a hub switch. Advantage is that stations use the same network
interface card, but they can run at higher speeds.
Use of a special control frame called a token. Can only send a message by first
capturing the token which passes between stations. No collisions because only one
station at a time may hold the token.
Different priority levels at each stations with each getting a fraction of the amount of
time for the station.
Periodically broadcast special tokens to allow new stations to enter the ring.
Comparison of LAN's
Non-deterministic nature of CSMA/CD protocol makes real time computing people
nervous.
802.3:
802.4:
802.5:
all digital
can use with fiber optic technology over long distances
supports both large and small frames
high efficiency at high loads
low delays at low loads, bounded delay in any case
ring monitor is a single point of failure