Skip to main content

Data Link Layer


Data link Layer(Layer 2): It makes the raw transmission facility, reliable and error-free to the upper layer. It is responsible for moving the frames from one hop to the next, reliable transmission of data frames between two nodes connected by a physical layer.


Functions include:




  • Framing: This layer divides the stream of bits from the network layer and organizes into manageable data units called frames.
  • Physical Addressing: The data link layer adds a header to the frame in order to define physical address of the sender or receiver of the frame, if the frames are to be distributed to the different systems on the network.
  • Flow Control: If the data rate, at which the data is transmitted by the sender is greater than the rate at which data is received by the receiver, this layer imposes a flow control mechanism to prevent overwhelming the receiver. This prevents traffic jam at the receiver side.
  • Error Control: This layer adds reliability to the physical layer by adding mechanisms to detect and retransmit damaged or lost frames and to prevent duplication of frames.
  • Access Control: When two or more devices are connected to the same link, data link layers are necessary to determine which layer has control over the link at a given time.

Comments

Popular posts from this blog

Network Layer

Network Layer(Layer 3):  It is responsible for the source-to-destination delivery of packets across multiple links(networks).It is also responsible for structuring and managing a multi-node network, including addressing, routing, and traffic control. Functions include: Logical Addressing: IP addressing is defined at the Network Layer of the OSI model. This layer adds a header to the packet coming from the upper layer that, among other things, indicates the logical addresses of the sender and receiver. IP addressing is also known as logical addressing. Routing: When independent networks are connected together to create a large network, the connecting devices(routers/gateways) route the packets to their final destination. The decision which route/path should be followed to reach from source to destination is handled by the network layer. 

What is a Network Hub?

Hub is the most simple networking device which is used to connect all network devices on an internal network. It detects whether a device is physically connected to it or not. It is a Layer 1 device in OSI reference model and is best for small and simple local area networks. It is not intelligent because it does not filter any data. When a packet is received by one port, the data is copied to all other ports and is seen by all connected devices. It has 4/12 ports . Drawbacks of Hubs are:- Rebroadcast- Forwards packets across all ports. Creates Security concerns- Traffic could not be safeguarded. Unnecessary traffic which reduces bandwidth.   

What is Switch?

Switches are similar to hubs . They are used to exchange data within a local area network. Unlike hubs, they are intelligent  and smarter networking devices. A switch operates at the data link layer(Layer 2) of the OSI model. Switches connect devices together within one local area network (LAN) and learn physical addresses(mac addresses) of the devices that are connected to it and store these physical addresses in its table. It does not read IP addresses . When a data packet is sent to a switch it is only directed to the intended destination port. Some switches can also process data at the network layer(Layer 3) by additionally incorporating routing functionality. Advantages of Switch over Hubs:- Reduce unnecessary traffic It is a multi-port bridge that has 24/48 ports It detects specific devices that are connected to it as it keeps a record of the Mac addresses of those devices