Data Link Layer is the second layer in the OSI reference model. It represents creating a shared transmission medium and frequent transmission of the data frame in a computer transmission setting.
It obtains a natural flow of items for the physical layer at the sender device. The primary stream of data is generated using different technologies like cable, DSL, wireless, optical fibre, etc.
Protocols define a collection of rules or conventions for executing a definite function. It is a collection of the requirements that can manage the data link layer. The fundamental goals of computer broadcasting in a system environment are to transmit a limitless huge message from the source hub to the destination hub.
The primary service of the data link layer is to support error-free transmission. The physical layer sends the information from the sender’s hub to the receiver’s hub as raw bits. The data link layer must identify and correct any bug in the communicated data.
An error-free transmission medium is considered. The source node recovers a packet from the network layer and encloses it into a frame to send. After sending, the source node stays for acceptance from the destination node. After getting the exposure, the loop opens over repeatedly.
At the destination node, the device waits for a frame from the source destination. Then receiving a frame, it transfers the frame to the network layer and shares an affirmation for the frame to the source node. It then loops back to wait for the next frame, and the procedure continues till the end of the File frame is arrived.
It contains only one single frame at a time. Therefore no sequence numbers are needed. The acceptance of the destination node address back to the source device is a null frame.
It is an advancement on the Stop and Waits protocol. The source device recovers a packet from the network layer. It can enclose it into a frame with a sequence number to share with the destination node. After communication, the source device tries to recover an acceptance from the physical layer.
Once an acceptance appears with the right sequence number, the following packet to transmit from the network layer is recovered. The sequence number to share the next packet is upgraded.
In this case, the loop begins over. If no frame is retrieved from the physical inside the particular time, the physical layer times out, or an acceptance with an inappropriate sequence number appears. In this method, the final frame address is retransmitted, and thus, the loop begins over.