CCN KSD Chapter 2

49
Computer Communication Networks Mr. Kunjan D Shinde Assistant Professor Department of Electronics and Communication Engineering PESITM Shivamogga.

Transcript of CCN KSD Chapter 2

Page 1: CCN KSD Chapter 2

Computer Communication Networks

Mr. Kunjan D Shinde

Assistant ProfessorDepartment of Electronics and Communication Engineering

PESITM Shivamogga.

Page 2: CCN KSD Chapter 2

2Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Data Link ControlFraming

Fixed Size framingVariable size framing

Flow and Error Control

ProtocolsNoiseless Channel and Noisy Channel

Simplest stop and wait ARQStop and Wait Go back N ARQ (sliding window, )

Selective Repeat ARQ HDLC

Modes of operationHDLC frames

Computer Communication Networks

Contents Chapter 2

Page 3: CCN KSD Chapter 2

3Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

A frame in a character-oriented protocol

Page 4: CCN KSD Chapter 2

4Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Byte stuffing and unstuffing

Page 5: CCN KSD Chapter 2

6Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

A frame in a bit-oriented protocol

Page 6: CCN KSD Chapter 2

8Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Bit stuffing and unstuffing

Page 7: CCN KSD Chapter 2

9Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

The most important responsibilities of the data link layer are flow control and error control. Collectively, these functions are known as data link control.

Flow Control

Flow control refers to a set of procedures used to restrict the amount of data that the sender can send before waiting for acknowledgment.

Page 8: CCN KSD Chapter 2

10Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 9: CCN KSD Chapter 2

12Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Simplest Protocol

Page 10: CCN KSD Chapter 2

13Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender site Algorithm for Simplest Protocol

Page 11: CCN KSD Chapter 2

14Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

receiver site Algorithm for Simplest Protocol

Page 12: CCN KSD Chapter 2

15Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Flow diagram for Simplest Protocol

Page 13: CCN KSD Chapter 2

16Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Stop-and-Wait Protocol

Page 14: CCN KSD Chapter 2

17Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender site Algorithm for Stop-and-Wait Protocol

Page 15: CCN KSD Chapter 2

18Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Receiver site Algorithm for Stop-and-Wait Protocol

Page 16: CCN KSD Chapter 2

19Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Flow diagram for Stop-and-Wait Protocol

Page 17: CCN KSD Chapter 2

20Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Although the Stop-and-Wait Protocol gives us an idea of how to add flow control, noiseless channels are nonexistent. We discuss three protocols in this section that use error control.

In a Data Link Layer, at any time if a error is detected , then that specific frame is retransmitted this process is call Automatic Repeat Request (ARQ)

The following are the protocols used in Noisy Channel

Stop-and-Wait Automatic Repeat RequestGo-Back-N Automatic Repeat RequestSelective Repeat Automatic Repeat Request

Page 18: CCN KSD Chapter 2

22Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Stop-and-Wait ARQ Protocol

Page 19: CCN KSD Chapter 2

23Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender-site algorithm for Stop-and-Wait ARQ

Page 20: CCN KSD Chapter 2

24Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender-site algorithm for Stop-and-Wait ARQ

Page 21: CCN KSD Chapter 2

25Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Receiver-site algorithm for Stop-and-Wait ARQ Protocol

Page 22: CCN KSD Chapter 2

26Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Flow diagram Stop-and-Wait ARQ Protocol

Page 23: CCN KSD Chapter 2

28Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Go back N ARQ Protocol

Page 24: CCN KSD Chapter 2

29Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender-site algorithm for Go back N ARQ

Page 25: CCN KSD Chapter 2

32Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Receiver-site algorithm for Go back N ARQ

Page 26: CCN KSD Chapter 2

34Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 27: CCN KSD Chapter 2

36Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender-site algorithm for Go back N ARQ

Page 28: CCN KSD Chapter 2

37Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender-site algorithm for Go back N ARQ

Page 29: CCN KSD Chapter 2

38Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Receiver-site algorithm for Go back N ARQ

Page 30: CCN KSD Chapter 2

39Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Flow Diagram for Go back N Protocol

Page 31: CCN KSD Chapter 2

40Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 32: CCN KSD Chapter 2

41Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Stop-and-Wait ARQ is a special case of Go-Back-N ARQ in which the size of the send

window is 1.

Page 33: CCN KSD Chapter 2

42Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Window format for Selective Repeat ARQ

Page 34: CCN KSD Chapter 2

43Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Window format for Selective Repeat ARQ

Page 35: CCN KSD Chapter 2

44Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Design for Selective Repeat ARQ

Page 36: CCN KSD Chapter 2

45Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

In Selective Repeat ARQ, the size of the sender and receiver windowmust be at most one-half of 2m.

Sender-site algorithm for Selective Repeat ARQ

Page 37: CCN KSD Chapter 2

46Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender-site algorithm for Selective Repeat ARQ

Page 38: CCN KSD Chapter 2

47Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Sender-site algorithm for Selective Repeat ARQ

Page 39: CCN KSD Chapter 2

48Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Receiver-site algorithm for Selective Repeat ARQ

Page 40: CCN KSD Chapter 2

49Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 41: CCN KSD Chapter 2

50Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 42: CCN KSD Chapter 2

51Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Design of piggybacking in Go-Back-N ARQ

Page 43: CCN KSD Chapter 2

52Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

High-level Data Link Control (HDLC) is a bit-oriented protocol for communication over point-to-point and multipoint links.

Page 44: CCN KSD Chapter 2

53Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 45: CCN KSD Chapter 2

54Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 46: CCN KSD Chapter 2

55Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 47: CCN KSD Chapter 2

56Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Page 48: CCN KSD Chapter 2

57Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Study point to point protocol

Page 49: CCN KSD Chapter 2

58Mr. Kunjan D. Shinde, Asst. Professor, Dept. of E&CE, PESITM Shivamogga.

Computer Communication Networks

Chapter 2: Data Link Control

Thank u

More informationUpcoming soon