1
CS 4410 Operating Systems
Networking: Physical & Link Layer
Summer 2013 Cornell University
Networking: Physical & Link Layer Summer 2013 Cornell - - PowerPoint PPT Presentation
CS 4410 Operating Systems Networking: Physical & Link Layer Summer 2013 Cornell University 1 Today Which are the services that the Link layer offers? Link layer Implementation Media Access Control Addressing
1
Summer 2013 Cornell University
2
3
Application Link Physical Application Link Physical Computer A Computer B Transport Transport Network Network M M Ht M Ht Hn M Ht Hn Hl Message Segment Datagram Frame
4
5
Link Physical Link Physical M Ht Hn Hl Frame Node A Node B Link
6
7
–
The link is shared only between 2 nodes.
–
The frame goes from the source to the destination.
–
Disadvantages?
–
One link shared between all the nodes.
–
The frame goes from the source to all the nodes.
–
Only the destination will read it.
–
Disadvantages?
–
The Link Layer is responsible to share the media access between the nodes.
8
– Bandwidth (bits per second – bps).
– Like processes compete for CPU → multiplexing
– Channel Partition
– Random access
– Taking-turns access
9
– Ex. 1A-23-F9-CD-06-95
– MAC address
10
–
One common broadcast cable.
–
Need for Media Access Control.
–
The nodes are connected to the hub.
–
The hub, simply, was reproducing the received signal from a link to the rest
–
Need for Media Access Control.
–
The nodes are connected to the switch.
–
The switch controls the flow of frames.
11
– MAC destination, source (6 byte each) – Preamble (8 bytes) – CRC (4 bytes)
– 46 to 1500 bytes – Encapsulated datagram
Preamble MAC destination MAC source CRC data ...
12
– Carrier sensing
– Collision detection
and stop transmitting.
– Exponential backoff.
13
the destination.
– Using the switch table. It
is an array of (MAC Address, port).
– If it does not know where
the destination is, yet, it forwards the frame to all direction.
collisions.
– When 2 frames head for
the same destination.
frames, based on predefined rules.
Switch
buffer port
14
Application Link Physical Application Link Physical Computer A Computer B Transport Transport Network Network Link Physical Switch
15
1A-23-F9-CD-06-95 1B-23-F0-CD-06-11
16