Networks - Chapter 5 - Data Link Layer 1spp
Networks - Chapter 5 - Data Link Layer 1spp
D.2r
R = remainder[ ]
G
Transmit D.2r XOR R = 10111011
time
frequency bands
drawbacks:
1. requires strict synchronization for coding/decoding
2. fairly complex implementation
LAN
(wired or = adapter
wireless)
71-65-F7-2B-08-53
58-23-D7-FA-20-B0
0C-C4-11-6F-E3-98
A
R
SIP=A, SMAC=74-29-9C-E8-FF-55
DIP=B, DMAC=E6-E9-00-17-BB-4B
R
SIP=A, SMAC=1A-23-F9-CD-06-9B
B
DIP=B, DMAC=49-BD-D2-C7-56-2A
Metcalfe’s Ethernet
Sketch 30 years ago
hub or
switch
Preamble:
7 bytes with pattern 10101010 followed by one byte
with pattern 10101011
used to wakeup and synchronize the receiver and sender
clock
the last two bits in the 8th byte indicate the start of
the frame contents
the end of the frame is detected by the absence of the
current on the cable
5: DataLink Layer 5-50
Ethernet Frame Structure (more)
Addresses: 6 bytes
if the adapter receives a frame with matching destination
address, or with broadcast address (e.g. ARP packet), it
passes data in frame to the intended network-layer protocol
otherwise, the adapter discards the frame
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
1
efficiency =
1 + 5t prop / ttrans
Efficiency goes to 1 as tprop goes to 0
Goes to 1 as ttrans goes to infinity
Much better than ALOHA and still decentralized,
simple, and cheap
twisted pair
hub
twisted pair
hub
Used in 10BaseT
Each bit has a transition
Allows clocks in sending and receiving nodes to
synchronize to each other
no need for a centralized, global clock among nodes!
100BaseT uses the more efficient 4B5B encoding
Hey, this is physical-layer stuff!
5: DataLink Layer 5-59
Gbit Ethernet (IEEE 802.3z & .3ae)
uses standard Ethernet frame format
allows for point-to-point links (via switches) and
shared broadcast channels (via hubs)
in the shared mode, CSMA/CD is used and short
distances between nodes are required for efficiency
uses hubs, called here “Buffered Distributors”
Full-Duplex at 1 Gbps for point-to-point links
used as backbone to connect multiple 10/100Mbps
Used to run on fiber but now on cat-5 UTP cable
10 Gbps is available now !
hub
hub hub
hub
hub hub
address interface
switch
1 A 1
2 3
B 1
E 2
hub hub hub G 3
A
I C 1
D 2
D F
B C G H
E
switch
collision
domain
hub
hub hub
no error correction/recovery
no flow control
out of order delivery OK
no need to support multipoint links (e.g., polling)
flag byte
pattern
in data
to send