iot06
iot06
Important topics:
ALOHA
Carrier Sense Multiple Access
Carrier Sense Multiple Access with Collision Detection
Carrier Sense Multiple Access with Collision Avoidance
(1) ALOHA
Note
S is in %.
G is average number of frames
generated by the system,
Example
A pure ALOHA network transmits 200-bit frames on a
shared channel of 200 kbps. What is the throughput if the
system (all stations together) produces
a. 1000 frames per second b. 500 frames per second
c. 250 frames per second.
Solution
The frame transmission time is 200/200 kbps or 1 ms.
a. If the system creates 1000 frames per second, this is 1
frame per millisecond. The load is 1. In this case
S = G× e−2 G or S = 0.135 (13.5 percent). This means
that the throughput is 1000 × 0.135 = 135 frames.
Only
135 frames out of 1000 will probably survive.
Example (continued)
b. If the system creates 500 frames per second, this is
(1/2) frame per millisecond. The load is (1/2). In this
case S = G × e −2G or S = 0.184 (18.4 percent). This
means that the throughput is 500 × 0.184 = 92 and that
only 92 frames out of 500 will probably survive. Note
that this is the maximum throughput case,
percentagewise.
Vulnerable time for CSMA is the Propagation Time Tp. This is the
time needed for a signal to propagate from one end of the medium
to the other end.
Figure Behavior of three persistence methods
What should a station do if the channel is busy? What should a
station do if the channel is idle?
Figure Flow diagram for three persistence methods
(4) Carrier Sense Multiple Access / Collision Detection (CSMA/CD)
A Jamming Signal enforces the collision in case other stations have not yet sensed
the collision. Jamming Signal temporary suspends the transmissions.
CSMA/CA
Home work?
Note
Reservation
Polling
Token Passing
Reservation access method
Note
Now let us see how the data link layer can combine
framing, flow control, and error control to achieve the
delivery of data from one node to another. The protocols
are normally implemented in software by using one of the
common programming languages. To make our discussions
language-free, we have written in pseudocode a version of
each protocol that concentrates mostly on the procedure
instead of delving into the details of language rules.
Taxonomy of protocols discussed in this chapter
NOISELESS CHANNELS
Figure The design of the simplest protocol with no flow or error control
(1) Simplest Protocol
Note
Note
Note
(continued)
(1) Stop-and-Wait ARQ (continued)
Note
Note
Note
Note
(continued)
Algorithm 11.7 Go-Back-N sender algorithm (continued)
Algorithm 11.8 Go-Back-N receiver algorithm
Example 16
Cumulative ACK
Figure 11.16 Flow diagram for Example 11.6
The next point is about the ACKs. Notice that only two
ACKs are sent here. The first one acknowledges only the
first frame; the second one acknowledges three frames. In
Selective Repeat, ACKs are sent when data are delivered to
the network layer. If the data belonging to n frames are
delivered in one shot, only one ACK is sent for all of them.
Figure 11.23 Flow diagram for Example 11.8
Figure 20 Design of Selective Repeat ARQ