Podcast
Questions and Answers
What is the primary function of the trailer added by data link layer protocols?
What is the primary function of the trailer added by data link layer protocols?
What aspect of QoS is most beneficial for certain message types in networking?
What aspect of QoS is most beneficial for certain message types in networking?
What is the primary function of the data link layer in the OSI model?
What is the primary function of the data link layer in the OSI model?
Which of the following tasks is NOT performed by the data link layer?
Which of the following tasks is NOT performed by the data link layer?
Signup and view all the answers
In the context of IEEE 802 LAN/MAN standards, what is the role of the Logical Link Control (LLC) sublayer?
In the context of IEEE 802 LAN/MAN standards, what is the role of the Logical Link Control (LLC) sublayer?
Signup and view all the answers
How does the Media Access Control (MAC) sublayer contribute to data link layer functionalities?
How does the Media Access Control (MAC) sublayer contribute to data link layer functionalities?
Signup and view all the answers
Which statement about nodes in a network is accurate?
Which statement about nodes in a network is accurate?
Signup and view all the answers
How does the data link layer handle error detection?
How does the data link layer handle error detection?
Signup and view all the answers
What are the two sublayers of the data link layer?
What are the two sublayers of the data link layer?
Signup and view all the answers
Which function is NOT performed by the MAC sublayer?
Which function is NOT performed by the MAC sublayer?
Signup and view all the answers
What is primarily added to a packet by the LLC sublayer?
What is primarily added to a packet by the LLC sublayer?
Signup and view all the answers
Which of the following is NOT a basic part of a data link frame?
Which of the following is NOT a basic part of a data link frame?
Signup and view all the answers
Which organization does NOT primarily define data link layer standards?
Which organization does NOT primarily define data link layer standards?
Signup and view all the answers
What is the role of the trailer in a data link frame?
What is the role of the trailer in a data link frame?
Signup and view all the answers
What does the frame start and stop indicator flags signify?
What does the frame start and stop indicator flags signify?
Signup and view all the answers
In environments with more control needed to ensure delivery, what happens to the header and trailer fields?
In environments with more control needed to ensure delivery, what happens to the header and trailer fields?
Signup and view all the answers
What is the main function of the MAC sublayer concerning the NIC?
What is the main function of the MAC sublayer concerning the NIC?
Signup and view all the answers
Study Notes
Data Link Layer (OSI Layer 2)
- Prepares network data for physical network
- Interfaces with network interface cards (NICs)
- Enables upper layers to ignore the media
- Encapsulates Layer 3 packets (e.g., IPv4, IPv6) into Layer 2 frames
- Controls data placement and reception on the media
- Exchanges frames between endpoints
- Detects and rejects corrupt frames
IEEE 802 LAN/MAN Data Link Sublayers
- Specific to Ethernet LANs, WLANs, WPANs, and other local/metropolitan networks
- Comprises two sublayers:
Logical Link Control (LLC)
- Communicates between upper layer software and lower layer hardware
- Identifies the network layer protocol for each frame
- Enables multiple Layer 3 protocols (e.g., IPv4, IPv6) to share a single network interface
Media Access Control (MAC)
- Implemented in hardware
- Responsible for data encapsulation and media access control
- Provides data link layer addressing and integrates with physical layer technologies
-
MAC sublayer functions:
- Frame delimiting: Identifies fields within a frame using delimiters
- Addressing: Provides source and destination addressing for frames
- Error detection: Includes a trailer to check transmission errors
- Media access control: enables multiple devices to share a medium (half-duplex)
- Full-duplex communications don't need access control
Providing Access to Media
- Different network environments have unique characteristics
- Ethernet LANs: Multiple hosts contend for access, MAC resolves this
- Serial links: Direct connection between two devices (usually routers), doesn't need MAC techniques
- Routers encapsulate packets into appropriate frames based on the medium
- Routers perform Layer 2 functions:
- Accept frames
- De-encapsulate frames
- Re-encapsulate packets into new frames
- Forward frames to the next medium
Data Link Layer Standards
- Protocols are not defined by RFCs
- Standards are defined by organizations:
- IEEE
- ITU
- ISO
- ANSI
The Frame
- Data link layer prepares data for transport by encapsulating it into a frame (header + trailer)
- All frames have three parts:
- Header
- Data
- Trailer
- Frame structure and fields vary based on the protocol
- WLAN frames require more control information for collision avoidance
Frame Fields
- Framing breaks data into structures with control information in the header and trailer.
-
Generic frame fields:
- Frame start and stop indicators
- Addressing (source and destination node)
- Type (identifies Layer 3 protocol)
- Control (flow control services, QoS)
- Data (packet header, segments, and data)
- Error detection (trailer for checking errors)
-
Error detection
- Trailers determine if the frame arrived without errors
-
CRC (Cyclic Redundancy Check):
- A logical summary of the frame's contents
- Placed in the FCS (Frame Check Sequence) field
- Used by the receiving node to identify transmission errors
Layer 2 Addresses
- Data link layer provides addressing for transporting frames within a shared local media
- Device addresses at Layer 2 are called physical addresses
- Physical addresses are located in the frame header and indicate the destination node within the local network
- Unlike Layer 3 logical addresses, which are hierarchical, physical addresses are unique to each device and don't indicate the device's network
- Physical addresses remain the same even if the device moves to a different network or subnet
- Layer 2 addresses are only used for devices on the same shared media within the same IP network
LAN and WAN Frames
- LANs: Ethernet protocols
- WLANs: IEEE 802.11 protocols
- WANs: Traditionally used various protocols like PPP, HDLC, Frame Relay, ATM, X.25, but now Ethernet is replacing them
- All Layer 2 protocols work with IP at Layer 3
- Layer 2 protocols are chosen based on the logical topology and physical media
- Devices at Layer 2: NICs, routers, Layer 2 switches
- Technology used for LAN and WAN depends on the size of the network, geographic scope, and services
- LANs typically have high bandwidth, suitable for large numbers of hosts in a small geographic area, cost-effective
- WANs cover large geographic areas, often use lower bandwidth due to cost of long-distance links, resulting in different protocols for LANs and WANs
- Data link layer protocols: Ethernet, 802.11 Wireless, PPP, HDLC, Frame Relay
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge of the Data Link Layer of the OSI model. This quiz covers key concepts such as frame encapsulation, the roles of the LLC and MAC sublayers, and the interactions between data link and physical layers. Challenge yourself and see how well you understand this critical part of networking!