Computer Communication & Networks: Datalink Layer: Multiple Access
Computer Communication & Networks: Datalink Layer: Multiple Access
Example: Cocktail party many people gather together in a large room Broadcast medium air Another example: a classroom Human protocols:
Give everyone a chance to speak Dont speak until you are spoken to Dont monopolize the conversation Raise your hand if you have a question Dont interrupt when someone is speaking Dont fall asleep when someone else is talking
4
In LANs, WiFi, satellite networks, cocktail party If more than 2 users send @ the same time collision All collided packets are lost -> waste of bandwidth
Ideally, the MAC protocol for a broadcast channel with the bit-rate R bps should satisfy:
if only 1 node is sending than the throughput is R when M nodes have data to send than the throughput is R/M decentralized protocol no master simple & inexpensive to implement
5
In random access or contention methods, no station is superior to another station and none is assigned the control over another. No station permits, or does not permit, another station to send. At each instance, a station that has data to send uses a procedure defined by the protocol to make a decision on whether or not to send.
ALOHA Network
the guy had interest in surfing and packet switching mountainous islands land-based network difficult to install fully decentralized protocol
ACK ACK
ACK ACK
Pure Aloha
The node immediately transmits its frame completely If the frame is collided it retransmits the frame again (after completely transmitting its collided frame) with the probability p
Slotted Aloha
Assumptions all frames same size time is divided into equal size slots, time to transmit 1 frame nodes start to transmit frames only at beginning of slots nodes are synchronized if 2 or more nodes transmit in slot, all nodes detect collision
Operation when node obtains fresh frame, it transmits in next slot no collision, node can send new frame in next slot if collision, node retransmits frame in each subsequent slot with prob. p until success
10
11
Slotted Aloha
Pros single active node can continuously transmit at full rate of channel highly decentralized: only slots in nodes need to be in sync simple
Cons collisions, wasting slots idle slots nodes may be able to detect collision in less than time to transmit packet clock synchronization
12
ALOHA
13
Invented to minimize collisions and increase the performance A station now follows the activity of other stations Simple rules for a polite human conversation
Listen before talking If someone else begins talking at the same time as you, stop talking A node should not send if another node is already sending
CSMA:
carrier sensing
CD (collision detection):
collision detection
14
If everyone is sensing the medium how come that collisions still occur?
15
CSMA (cntd)
p-persistant
ALOHA
17
18
CSMA/CD can be in one of the three states: contention, transmission, or idle. Example of CSMA/CD: Ethernet How long does it take before stations realize that there has been a collision?
19
Collision Detection
How the station detects a collision? There are many collision detection methods!
Examples:
detecting voltage level on the line detecting power level detecting simultaneous transmission & reception
20
ALOHA
21
22
Readings
Section 12.1 (Cover only those contents which are related to topics covered in class)
23
24