Main functions of the data link layer

What is the data link layer?

The data link layer is the second layer in the OSI reference model, between the physical layer and the network layer. The data link layer provides services to the network layer based on the services provided by the physical layer. The most basic service is to reliably transmit data originating from the network layer to the target network layer of the adjacent node. To achieve this goal, the data link must have a series of corresponding functions, mainly: how to combine data into data blocks, which are called frames in the data link layer, and frames are data links. The transport unit of the layer; how to control the transmission of the frame on the physical channel, including how to handle the transmission error, how to adjust the transmission rate to match the receiver, and the establishment and maintenance of the data link path between the two network entities And release management.

The second layer of the Uu interface protocol in the mobile communication system is also called Layer 2 or L2.

Main functions of the data link layer

Main functions of the data link layer

Framing (frame synchronization)

In order to provide services to the network layer, the data link layer must use the services provided by the physical layer. The physical layer is transmitted in a bit stream. This bit stream does not guarantee that there is no error in the data transmission process. The number of received bits may be less than, equal to or more than the number of transmitted bits. Moreover, they may have different values. In this case, the data link layer uses a "frame" data block for data transmission to enable effective error control of the data. In order to transmit in frame format, there must be a corresponding frame synchronization technique, which is the "framing" (also called "frame synchronization") function of the data link layer.

The advantage of using the frame transmission method is that when a data transmission error is found, it is only necessary to retransmit the errored frame without retransmitting the bit stream of all the data, which is greatly improved in transmission efficiency.

The advantage of using frame transmission is that it brings two problems:

(1) How to identify the beginning and end of a frame;

(2) In the data frame with intensive transmission, is the receiver recognized as a new data frame when receiving the retransmitted data frame, or is it recognized as a retransmission frame? This is identified by the various "frame synchronization" techniques of the data link layer. The "frame synchronization" technique allows the receiver to accurately distinguish the beginning and end of each frame from a bit stream that is not fully ordered, while also identifying retransmission frames.

2. Error control

In the process of data communication, some transmission errors may occur due to factors such as physical link performance and network communication environment. However, in order to ensure the accuracy of data communication, the probability of occurrence of these errors must be as low as possible. This function is also implemented at the data link layer, which is its "error control" function.

In digital or data communication systems, error control is typically performed using anti-interference coding. Generally divided into four categories: Forward Error Correction (FEC), Feedback Detection (ARQ), Mixed Error Correction (HEC), and Information Feedback (IRQ).

The FEC method is to add enough redundant bits in a specific structure in the information code sequence - called "supervisor element" (or "check element"). The receiver decoder can automatically identify a small number of errors and correct them according to the specific supervision rules agreed by both parties. FEC is best suited for real-time high-speed data transmission.

In non-real-time data transmission, ARQ error control is commonly used. The decoder detects the error of the received code group one by one according to the coding rule. If there is no error, the acknowledgment ACK message is sent back to the sender; if there is an error, the ANK message is fed back to indicate that the request sender repeatedly sends the message that has just been sent. The advantage of the ARQ method is that there are fewer coding redundancy bits, and it has strong error detection capability, and the codec is simple. Since the error detection has little relationship with the channel characteristics, it has universal application value in non-real-time communication.

The HEC method is an organic combination of the above two methods, that is, automatic error correction is implemented within the error correction capability; and when the number of error bits of the error correction capability is exceeded, the error code can be found by detection, and the error code can be utilized regardless of the error code. The ARQ method performs error correction.

The IRQ method is a full-return type of simplest error control. In the error detection mode, the receiving end forwards the received signal to the transmitting end as it is, and compares it with the original transmitted signal. If an error is found, the transmitting end performs retransmission. Only suitable for low-speed non-real-time data communication is a relatively primitive approach.

3. Flow control

In the data communication between the two parties, how to control the traffic of data communication is also very important. It not only ensures the orderly data communication, but also avoids the data loss caused by the receiver not being able to receive during the communication. This is the "flow control" function of the data link layer.

The transmission and reception of data must follow certain transmission rate rules, so that the receiver can receive the data sent by the sender in time. And when the receiver has no time to receive, it is necessary to control the transmission rate of the sender data in time so that the rates of the two aspects basically match.

4. Link control

The "link management" function of the data link layer includes three main aspects of the establishment, maintenance and release of data links.

When two nodes in the network are to communicate, the sender of the data must know if the receiver is in a state ready to receive. To this end, both parties must first exchange some necessary information to establish a basic data link. The data link is maintained while the data is being transmitted, and the data link is released when the communication is completed.

5. MAC addressing

This is the main function of the MAC sublayer in the data link layer. The "addressing" mentioned here is completely different from the "IP address addressing" that will be introduced in the next chapter, because the address sought here is the MAC address of the computer network card, also called "physical address", "hardware address". ", not an IP address.

In Ethernet, media access control (MAC) addresses are used for addressing, and MAC addresses are burned into each Ethernet network card. This is necessary in the case of multipoint connections, because in such multipoint connection network communication, it must be ensured that each frame can be accurately sent to the correct address, and the receiver should also know which station the sender is.

6. Differentiate data and control information

Since the data and control information are transmitted in the same channel, in many cases, the data and control information are in the same frame, so there must be corresponding measures to enable the receiver to distinguish them so that the upward transmission is only true. Required data information.

7. Transparent transmission

The term "transparent transmission" as used herein means that data of any combination of bits can be efficiently transmitted on the data link. This requires that when the bit combination in the transmitted data happens to be exactly the same as a certain control information, corresponding technical measures can be taken, so that the receiver does not mistake such data for some kind of control information. Only in this way can the transmission of the data link layer be transparent.

OMNI Directional

Omni Microphone,Omni Directional Mic,Omni Directional Microphone,Omni Directional Condenser Microphone

NINGBO SANCO ELECTRONICS CO., LTD. , https://www.sancobuzzer.com

Posted on