Link Layer Flashcards
(46 cards)
4 layers of TCP/IP, top to bottom
Application
Transport
Internet
Link
Network Layer works with what format of data?
Packets
Link Layer works with what format of data?
Frames
Physical Layer works with what format of data?
Bits
What 3 things make up a Network Layer packet?
IP + TCP + Data
What part of a packet is considered the payload?
Anything that comes after the header
What are Encoding Systems used for?
Transmitting bits from Physical to Link Layer
The Link Layer has 3 main functions.
What is the first function, relating to data transmission?
Transmitting frames over physical media
The Link Layer has 3 main functions.
What is the second function, relating to receiving frames?
Receive frames, unframe them, pass the datagram upwards
The Link Layer has 3 main functions.
What is the third function, relating to errors?
Detect and handle errors
What 2 things might the Link Layer do, when it detects an error in a packet?
1) Handle the error
2) Drop the packet
The Link Layer has Flow Control. Flow Control has 2 features.
What is the first feature, relating to speed?
Flow Control moderates the speed of data being sent
The Link Layer has Flow Control. Flow Control has 2 features.
What is the second feature, relating to the sender?
Flow Control can ask the sender for more data
Link Layer offers how many types of acknowledgements?
3 types
Link Layer offers 3 types of acknowledgements.
1) C___, No ____
2) A___, C___ S___
3) A___, C___ O___ S___
1) Connectionless, No Acknowledgments
2) Acknowledged, Connectionless Service
3) Acknowledged, Connection Orientated Service
Link Layer offers “Connectionless, No Acknowledgments” type of acknowledging.
What is this type ideal for?
Low error rate networks
(e.g. wired, Ethernet)
Link Layer offers “Acknowledged, Connectionless Service” type of acknowledging.
What is this type ideal for? Why?
Wi Fi
Wi Fi can be unreliable so best to acknowledge
Link Layer offers “Acknowledged, Connection Orientated Service” type of acknowledging.
What is this type ideal for? Why?
Long delay, unreliable links (e.g. Satellite)
Best to establish connection before sending over unreliable link
In regards to ACK Strategies and Protocols, what does ARQ stand for?
Automatic Repeat reQuest
What are 3 ACK Strategies/Protocols?
1) ⛔
2) ⏪
3) 🔁
1) ⛔ Stop and Wait ARQ
2) ⏪Go Back N ARQ
3) 🔁Selective Repeat ARQ
What are the 3 steps of Stop and Wait ARQ?
1) Send frame
2) Wait for ACK
3) Send next
(No ACK if frame lost or damaged)
What is a negative of Stop and Wait ARQ?
Waiting takes time, so Stop and Wait is slow
Waiting takes time, so Stop and Wait ARQ is slow.
What can be done to improve speed?
Pipelining: Send multiple frames before receiving ACK
What are the 3 steps of Go Back N ARQ?
1) Label each frame with numbers in sequence
2) Send many frames at the same time
3) Wait for ACK and repeat from 1
(Resend any frames for which ACK not received)