Slide 09 - LAN (DataLink Layer)
Slide 09 - LAN (DataLink Layer)
Networks
Lecture 9
Datalink Layer: Local Area Network
2
Data Link Layer Topics to Cover
3
IEEE Standards
4
IEEE 802 Series of LAN Standards
802 standards free to
download from
http://standards.ieee.org
/getieee802
WiMAX
5
IEEE standard for LANs
6
Ethernet
“Dominant” LAN technology:
Cheap $20 for 100Mbs!
Metcalfe’s Ethernet
sketch
7
Ethernet Frame Structure - 1
Sending adapter encapsulates IP datagram (or other
network layer protocol packet) in Ethernet frame
Preamble:
7 bytes with pattern 10101010 followed by one
byte with pattern 10101011
Used to synchronize receiver, sender clock rates
8
Ethernet Frame Structure - 2
Addresses: 6 bytes, frame is received by all
adapters on a LAN and dropped if address does
not match
Type: indicates the higher layer protocol, mostly
IP but others may be supported such as Novell
IPX and AppleTalk)
CRC: checked at receiver, if error is detected, the
frame is simply dropped
9
Minimum and Maximum Lengths
10
Ethernet
Ethernet uses 1-persistent CSMA/CD on coaxial cable
at 10 Mbps (802.3 allows other speeds & media)
The maximum cable length allowed: 500m
Longer distances covered using repeaters to connect
multiple “segments” of cable
No two stations can be separated by more than 2500
meters and 4 repeaters
Including the propagation delay for 2500m and the
store and forward delay in 4 repeaters, the maximum
time for a bit to travel between any two stations is
max=25.6se (one way)
11
Ethernet: uses CSMA/CD
A: sense channel, if idle
then {
transmit and monitor the channel;
If detect another transmission
then {
abort and send jam signal;
update # collisions;
delay as required by exponential backoff algorithm;
goto A
}
else {done with the frame; set collisions to zero}
}
else {wait until ongoing transmission is over and goto A}
12
Ethernet’s CSMA/CD
In order to ensure that every collision i s “heard" by
all stations, when a station detects a collision , it jams
the channel for
Example
Two stations, A and B, are close together
13
Ethernet’s CSMA/CD
When collisions occur, Ethernet uses a random
retransmission scheme called exponential backoff:
1. If your packet is in a collision, set K=2
14
Ethernet Technologies: 10Base2
10: 10Mbps; 2: under 200 meters max cable length
Thin coaxial cable in a bus topology
MAX 30 users on one segment.
16
10BaseT and 100BaseT - 1
17
Gbit Ethernet
18
Categories of Standard Ethernet
19
Summary of Standard Ethernet implementations
20
Readings
21
22