Data Link Layer Flashcards
Purpose of Data Link Layer
- Responsible for communications between end-device NICs
- Prepares network data for the physical network
- Allows upper layer protocols to access the physical layer media
- Accepts data, usually layer 3 packets and encapsulates into layer 2 frames
- Performs error detection and rejects corrupt frames
What are the two sublayers of the Data Link Layer
Logical Link Layer (LLC)
Media Access Control (MAC)
What is the LLC
Communicates between the networking software at the upper layers and the device hardware at the lower layers. Places information in frame that identifies which network layer protocol is being used.
What is the MAC
Responsible for data encapsulation and media access control. Provides data link layer addressing.
What are the three common physical WAN topologies? Describe them?
Point-to-point - simplest and most common. Consists of a permanent link between two endpoints.
Hub and spoke - central site interconnects branch sites through point-to-point links
Mesh - high availability but requires every end system to be connected to each other
What are the three modes that data transmitted over the network flow?
- Simplex - data can only flow in one direction
- Half-duplex - data flows in one direction at a time
- Full-duplex - data flows in both directions at the same time
When to use contention-based access?
Only when nodes are operating in half-duplex ie WLANS
What types of contention-based access is there?
CSMA/CD - collision detection
CSMA/CA - collision avoidance
What is collision detection? (CSMA/CD)
- Devices transmitting simultaneously will result in a signal collision on the shared media
- Devices detect the collision
- Devices wait a random period of time and retransmit data
What is collision avoidance? (CSMA/CA)
- When transmitting, devices also include the time duration needed for the transmission
- Other devices on the shared medium receive the time duration information and know how long the medium will be unavailable.
What is in a Data Link Frame Header?
Frame Start, Addressing, Type (protocol type), control (flow control services ie. QoS)
What is in a Data Link Frame Trailer?
Error Detection and Frame Stop
What are Layer 2 addresses used to connect?
only used to connect devices within the same shared media on the same IP network
What is the order of address field?
L2 Header - Destination NIC, Source NIC
L3 IP Packet - Source IP, Destination IP