Written by coh at home

[DC]Data link Protocol : Stop and Wait protocol 본문

CS/DataCommunication

[DC]Data link Protocol : Stop and Wait protocol

och 2023. 7. 21. 15:44

첫사랑. 잊혀지지 않는 첫사랑이 다들 있을 것이다. 

첫 프로토콜도 마찬가지이다. 미친소리 같은가? 미친소리 맞다. 

 

Stop & Wait protocol : A frame is transmitted and then stop. And wait for an Ack. 

대원칙은 다음과 같다.

1. sender는 보내고 Timer를 동작시킨다. 

2. Receiver는 받으면 그 즉시 응답한다. (Acknowledge를 보낸다.)

3. Timer가 expired될 때까지 Ack이 오지 않는다면 해당 frame을 retransmission한다. 

 

현재는 frame에 sequence가 없다. 그래서 어느 frame인지 알 수가 없다. 

그래서 필요없는 중복된 프레임이 들어온다면 걸려낼 수가 없다! 이때 sequence numbering을 붙인다면 중복정보를 discard할 수 있다. 

'CS > DataCommunication' 카테고리의 다른 글

[DC]Device  (0) 2023.07.22
[DC]Media Access Control  (0) 2023.07.22
[DC]Data Link-Layer  (0) 2023.07.21
[DC]Transmission media & switch  (0) 2023.07.17
[DC]Physical Layer  (0) 2023.07.17