Data Link Layer Flashcards
Define the Data Link Layer
The data link layer of the OSI model (Layer 2) prepares network data for the physical network. The data link layer is responsible for network interface card (NIC) to network interface card communications.
What’s the function of the data link layer?
1) Enables upper layers to access the media. The upper layer protocol is completely unaware of the type of media that is used to forward the data.
2) Accepts data, usually Layer 3 packets (i.e., IPv4 or IPv6), and encapsulates them into Layer 2 frames.
3) Controls how data is placed and received on the media.
4) Exchanges frames between endpoints over the network media.
5) Receives encapsulated data, usually Layer 3 packets, and directs them to the proper upper-layer protocol.
6) Performs error detection and rejects any corrupt frame.
What would happen without the data link layer?
Network layer protocols such as IP would have to make provisions for connecting to every type of media that could exist along a delivery path. Additionally, every time a new network technology or medium was developed, IP would have to adapt.
Define a node
A device that can receive, create, store, or forward data along a communications path. It can be either an end device such as a laptop or mobile phone, or an intermediary device such as an Ethernet switch.
What are IEEE 802 LAN/MAN standards specific to?
Ethernet LANs, wireless LANs (WLAN), wireless personal area networks (WPAN), and other types of local and metropolitan area networks.
What does the IEEE 802 LAN/MAN data link layer consist of?
Logical Link Control (LLC)
Media Access Control (MAC)
Define LLC
Logical Link Control: an IEEE 802.2 sublayer communicates between the networking software at the upper layers and the device hardware at the lower layers. It places information in the frame that identifies which network layer protocol is being used for the frame. This information allows multiple Layer 3 protocols, such as IPv4 and IPv6, to use the same network interface and media.
It takes the network protocol data, which is typically an IPv4 or IPv6 packet, and adds Layer 2 control information to help deliver the packet to the destination node.
Define MAC
Media Access Control (MAC)– Implements this sublayer (IEEE 802.3, 802.11, or 802.15) in hardware. It is responsible for data encapsulation and media access control. It provides data link layer addressing and it is integrated with various physical layer technologies.
It controls the NIC and other hardware that is responsible for sending and receiving data on the wired or wireless LAN/MAN medium.
What types of data encapsulation does the MAC sub-layer provide?
Frame delimiting
Addressing
Error detection
The MAC sublayer also provides media access control, allowing multiple devices to communicate over a shared (half-duplex) medium. Full-duplex communications do not require access control.
Define Free Delimiting
The framing process provides important delimiters to identify fields within a frame. These delimiting bits provide synchronization between the transmitting and receiving nodes.
Define Addressing
Provides source and destination addressing for transporting the Layer 2 frame between devices on the same shared medium.
Define error detection
Includes a trailer used to detect transmission errors.
At each hop along the path, a router performs the following Layer 2 functions:
1) Accepts a frame from a medium
2) De-encapsulates the frame
3) Re-encapsulates the packet into a new frame
4) Forwards the new frame appropriate to the medium of that segment of the physical network
Engineering organizations that define open standards and protocols that apply to the network access layer include the following:
1) Institute of Electrical and Electronics Engineers (IEEE)
2) International Telecommunication Union (ITU)
3) International Organization for Standardization (ISO)
4) American National Standards Institute (ANSI)
What are the common physical WAN topologies?
1) Point-to-Point
2) Hub and Spoke:
3) Mesh:
(A hybrid is a variation or combination of any topologies)
Define Point-to-Point:
Directly connect two nodes
In this arrangement, two nodes do not have to share the media with other hosts. Additionally, when using a serial communications protocol such as Point-to-Point Protocol (PPP), a node does not have to make any determination about whether an incoming frame is destined for it or another node. Therefore, the logical data link protocols can be very simple, as all frames on the media can only travel to or from the two nodes. The node places the frames on the media at one end and those frames are taken from the media by the node at the other end of the point-to-point circuit. (the use of physical devices in the network does not affect the logical topology)
In what case is the device required to determine if the incoming frame is destined for this node?
point-to-point connection over Ethernet
Define Hub and Spoke
a central site interconnects branch sites through the use of point-to-point links. Branch sites cannot exchange data with other branch sites without going through the central site.
The image shows five routers. One route in the middle is connected by four lines, representing four links, to the other four routers.
Define Mesh
provides high availability but requires that every end system is interconnected to every other system. Therefore, the administrative and physical costs can be significant. Each link is essentially a point-to-point link to the other node.
Define Half and Full Duplex communications
Half-duplex communications restrict the exchange of data in one direction at a time. Full-duplex allows the sending and receiving of data to happen simultaneously.
It is important that two interconnected interfaces, such as a host NIC and an interface on an Ethernet switch, operate using the same duplex mode. Otherwise, there will be a duplex mismatch creating inefficiency and latency on the link.
What are the three basic types of a frame?
Header
Data
Trailer
Explain this sentence: “There is no one frame structure that meets the needs of all data transportation across all types of media”
Depending on the environment, the amount of control information needed in the frame varies to match the access control requirements of the media and logical topology.
Define framing
Framing breaks the stream into understandable groupings, with control information inserted in the header and trailer as values in different fields. This format gives the physical signals a structure that are recognized by nodes and decoded into packets at the destination.
What do frame fields include?
1) Frame start and stop indicator flags: to identify the beginning and end of a frame
2) Addressing: indicates the source and destination nodes on media
3) Type: identifies the Layer 3 protocol in the data field
4) Control: identifies special flow control services such as QoS
5) Data: contains the frame payload
5) Error Detection: Included after the data to form the trailer