+ All Categories
Home > Documents > Ch 5. Link layer and Local Area Networks Myungchul Kim [email protected].

Ch 5. Link layer and Local Area Networks Myungchul Kim [email protected].

Date post: 03-Jan-2016
Category:
Upload: alberta-horton
View: 224 times
Download: 0 times
Share this document with a friend
Popular Tags:
12
Ch 5. Link layer and Local Area Networks Myungchul Kim [email protected]
Transcript
Page 1: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

Ch 5. Link layer and Local Area Networks

Myungchul Kim

[email protected]

Page 2: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

2

A transmitting node encapsulates the datagram in a link-layer frame and transmits the frame into the link; and a receiving node receives the frame and extracts the datagram.

Error detection, retransmission, flow control, and random access A single link in the path A link-layer protocol includes

– Framing– Link access: multiple access problem– Reliable delivery– Flow control: frame buffering capacity– Error detection– Error correction– Half-duplex and full-duplex

Data link layer

Page 3: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

3

Adaptors: network interface cards (NICs) Fig 5.3

The link interface is responsible for implementing the link-layer protocol

Page 4: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

4

Point-to-point link: PPP, HDLC Broadcast link: multiple sending and receiving nodes all connected

to the same, single, shared broadcast channel. Fig 5.9

Multiple access protocol

Page 5: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

5

Packet collisions: channel partitioning protocols, random access protocols, and taking-turns protocols.

Channel partitioning protocols– TDM, FDM– Fig 5.10

Page 6: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

6

Code Division Multiple Access (CDMA)– Assigns a different code to each node– Allows different nodes to transmit simultaneously and yet have t

heir respective receivers correctly receive a sender’s encoded data bits in spite of interfering transmissions by other node.

– Partitions the codespace– Issues: 1. codes must be carefully chosen, 2. the received signal

strengths from various senders at a receiver are the same.

Page 7: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

7

Fig 5.11

Page 8: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

8

Random access protocols: slotted ALOHA, ALOHA, CSMA

Slotted ALOHA– Page 440.– Fig 5.13

– At best only 37 percent of the slots do useful work.

Page 9: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

9

CSMA– Listen before speaking: carrier sensing– If someone else begins talking at the same time, stop talking: col

lision detection.– CSMA vs CSMA/CD– The longer this propagation delay, the larger the chance that a c

arrier-sensing node is not yet able to sense a transmission that has already begun at another node in the network.

– When a node performs collision detection, it will cease transmission as soon as it detects a collision.

Page 10: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

10

Fig 5.15

Page 11: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

11

Fig 5.16

Page 12: Ch 5. Link layer and Local Area Networks Myungchul Kim mckim@icu.ac.kr.

12

Taking-turns protocol– Polling protocol– Token-passing protocol


Recommended