06 Datalink Layer-QA Flashcards
What is the purpose of the datalink layer?
Purpose is to prepare network data for the physical network.
What is the datalink layer ultimately responsible for?
NIC-to-NIC communications within the same network
What does the datalink layer do (6 things)?
- Enables upper layers to access the media
- Accepts data and encapsulates it into L2 frames
- Controls how data is placed/received on the media
- Exchanges frames between endpoints on the network media
- Receives encapsulated data, directing it to upper-layer protocol
- Performs error detection, rejection of bad frames
How would not having the datalink layer impact network communications?
Network layer protocols would have to make provisions for every type of media that could exist along the path
What are the two major functions of the LLC?
- Communicates between network software at upper layers and device hardware at lower layers
- Places information in the frame identifying the L3 protocol used within the frame; adds L2 control information
What are the major functions of the MAC sublayer?
- controls the NIC hardware
- provides encapsulation. incl. delimiting, addressing, error detection
- provides media access control (required for half-duplex)
What access control methods are available for shared media?
- contention-based access
- controlled access
What is the main flaw with contention-based access control methods?
all devices operate in half-duplex—only one device can transmit at a time
Controlled-access networks can also be described as …
deterministic
How do controlled-access networks function?
each node has its own time to use the medium
Why are controlled-access networks considered inefficient?
each device must wait its turn to access the medium
Why do modern Ethernet networks not require an access method?
Modern Ethernet networks operate in full-duplex mode.
Describe CSMA/CD
- Nodes operate in half-duplex
- If two devices send at the same time, both nodes notice the collision
- jamming signal
- random backoff timer - If one device wants to send, it will look for a carrier signal on the wire.
- If the device does not detect a carrier signal, it assumes the network is available.
Describe CSMA/CA
- Nodes operate in half-duplex
- devices attempt to avoid collisions by waiting before transmitting
- Each transmission includes the time required to complete the transmission.
- other nodes “hear” this information, thus know how long each xmit should take
List common datalink layer protocols
Ethernet
802.11 wireless
PPP
HDLC
Frame relay