출처: https://3months.tistory.com/307 [Deep Play]

3-2/데이터통신개론

Chapter11 Data Link Control(DLC)

코딩하는 랄뚜기 2021. 10. 6. 19:13

DLC Services

Data link control(DLC)는 인접한 node들 간의 통신 절차이다.

Data link control은 framing, flow 그리고 error control이 있다.


Framing

Data-link layer는 각각의 frame이 다른 frame과 구분이 될 수 있도록 frame에 bit를 넣어야한다.

Data-link layer에서 Framing은 보내는 이와 목적지의 주소를 더하므로써 한 source에서 메시지를 분리해 낸다.

목적지 주소는 packet이 어디로 갈지 정의한다. 보내는 이의 주소는 recipient가 receipt를 acknowlege하게 도와준다.


Flow and Error Control

Data-link control sublayer의 한가지 responsibility는 data-link에서 flow와 error를 control하는 것이다.


Data-Link Layer Protocols

네가지 protocol이 flow와 error를 control하기 위해 정의되었다. Simple, Stop-and-Wait, Go-Back-N, Selective-Repeat.

처음 두가지는 여전히 사용되고 있지만 나머지 두가지는 없어졌다.

 

Simple Protocol

Simple protocol은 flow, error control을 하지 않는다. 우리는 receiver가 즉시 어떠한 frame 받던지 즉시 사용할 수 있게 가정하였다. 다른 말로, receiver는 절대 incoming frame들에 의해 overwhelmed 될 수 없다.


Stop-and-Wait Protocol

Stop-and-Wait protocol 에서는 flow와 error control을 모두 한다.

이 protocol에서는 sender가 sender가 보낸 frame이 receiver의 acknowlegemnet가 있을 때까지 다음 것을 보내지 않고 wait해야한다.

Corrupted frame을 감지하기 위해, 우리는 CRC를 각각의 data frame에 넣어야한다.

여기서 제일 마지막이 중요한데 Receiving node에서 ACK1을 보내 Frame 1을 보내달라고 요청했지만 ACK1이 Lost되었고, Sending node에서는 ACK가 오지 않았기 때문에 전에 보냈던 Frame 0을 다시 보냈지만, Receiving node에서 이를 거절하고 다시 ACK1을 보낸다.


Piggybacking

Communication을 더욱 효과적으로 하기 위해서, 한 방향으로 가는 data가 acknowlegement를 piggyback한체로 다른 곳으로 향하게 한다.


HDLC

High-level Data Link Control(HDLC)는 Stop-and-Wait protocol을 사용한다.

HDLC는 configurations에 따라 다르게 사용할 수 있는 두가지 transfer mode를 제공한다 : normal response mode(NRM) 그리고 asynchronous balanced mode(ABM) 이다.

Normal response mode에서는 한 컴퓨터만 Command를 보내고 다른 컴퓨터들은 Response만 할 수 있다.

Asynchronous balanced mode 에서는 한 컴퓨터가 Command/response를 모두 할 수 있다.

 

Framing

HDLC가 가능하기 위해서는 세가지 frame을 정의하여 사용해야 한다 : information frames(I-frames), supervisory frame(S-frames), unnumbered frames(U-frames)


PPP

Point-to-Point Protocol(PPP)를 의미한다. 많은 유저들이 Internet service를 PPP를 이용하여 접근한다.

 

Services

PPP는 간단하게 하기위해 몇가지 traditional services를 ignore한다.

PPP는 character-oriented(or byte-oriented) frame을 사용한다.

Transition Phases

 

PPP connection은 transition phase diagram에서 보여지는 phases를 거친다.

 

Multiplexing

세가지의 protocols이 PPP를 더 좋게 만든다 : Link Control Protocol(LCP), two Authentication Protocols(APs), several Network Control Protocols(NCPs)

'3-2 > 데이터통신개론' 카테고리의 다른 글

Chapter13 Wired LANs : Ethernet  (0) 2021.10.13
Chapter12 Media Access Control(MAC)  (0) 2021.10.06
Chapter10 Error Detection And Correction  (0) 2021.10.03
Chapter 9 Introduction To Data-Link Layer  (0) 2021.09.30
Chapter8 Switching  (0) 2021.09.24