-
HDLC (High-Level Data Link Control)[+] Security [+]/네트워크 2020. 10. 16. 23:26
FSM (Finite State Machine)
- Machine with a finite number of states
Simple protocol
- niether flow nor error control
- receiver can immediately handle any frame it receives
- the receiver can never be overwhelmed with incoming frame
Stop and Wait protocol
- use both flow and error control
- The sender sends one frame at a time and waits for an ACK before sending the next one
- Add CRC to each frame
- If the timer expires, the sender resends the previous frame, assuming that the frame was either lost or corrupted
HDLC (High-Level Data Link Control)
- bit oriented protocol for P2P and multipoint links
- NRM (normal response mode), ARM (asynchronous balanced mode)
Framing
I-frame (Information frame)
- to data-link user data and control information(piggy backing)
S-frame (Supervisory frame)
- to transport control information
U-frame (unnumbered frame)
- reserved for system management
Flag field
-
- 01111110, inentifying start and end
Address field
-
- Primary station : it contains 'to' adress
- Secondary station : it contains 'from' adress
- one byte or more
user information field
-
- containing Data
FCS field
-
- containing CRC
N(S)
- define the sequence number of the frame
N(R)
- ACK number when piggy backing is used (in the case of S-frame, it contains NAK)
P/F (poll/final)
- poll : primary station -> secondary station
- final : secondary station -> primary station
code
- defining the type of frame itself
- in the case of S-frame, having four types of S-frame
- Receive Ready : 00
- Receive not Ready : 10
- Reject : 01
- Selective reject : 11
- U-frame has 32 types (including above the fours)
'[+] Security [+] > 네트워크' 카테고리의 다른 글
MAC(Media Access Control) (0) 2020.10.20 PPP (Point to point Protocol) (0) 2020.10.17 데이터 링크 제어 DLC(Data Link Control) (0) 2020.10.15 오류 검출과 교정(Error Detection and Correction) (0) 2020.10.13 데이터 링크 계층 (Data-Link Layer) (0) 2020.09.10