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

Configuring 2 backend servers and a load balancer with HAProxy

A load balancer is a device that distributes the traffic across a cluster of servers. In computing, load balancing improves the distribution of workloads across multiple computing resources, such as computers, a computer cluster, network links, central processing units, or disk drives.As a result, it improves responsiveness and increases the availability of applications.  For load balancing, we need to install LAMP server on backend servers and HAProxy on the load balancer. HAProxy is a free, open source software that provides a high availability load balancer and proxy server for TCP and HTTP based applications that spread requests across multiple servers. Here we will make two backend servers and one load balancer. At two backend servers enter the following commands— $sudo apt-get install apache2 $sudo apt-get install mysql-server $sudo apt-get install php libapache2-mod-php php-mysql $sudo gedit /var/www/html/index.html (Mak...

Types of Network

What is a Network ? A Network is defined as an arrangement of a set of devices connected together by communication links for the purpose of sharing data. Each device may be called as a node which can be a computer, printer or any other devices capable of sending or receiving data generated by other nodes or devices on the network. Following are the types of Network:- 1. Local Area Network(LAN): LANs are privately owned networks defined within a small physical area such as in a single office, building or campus. LAN size is limited to a few kilometers for which the network management is simple.   Most common LAN topologies are bus, ring, star and have data rates in the range of 4 to 16 megabits per second. LANs often use a transmission technology consisting of a single cable to which all the machines are attached. LANs are mostly used to allow resources to be shared among personal computers or workstations. 2. Metropolitan Area Network(MAN): A MAN is des...

TCP/IP Protocol Suite

The name TCP/IP refers to a suite of data communication protocols. The name comes from two of the more important protocols in the suite. The Transmission Control Protocol(TCP) and the Internet Protocol(IP). It consists of five layers: Physical, Data Link, Internet, Transport, and Application. The internet layer is equivalent to the Network layer and the Application layer is roughly doing the job of the Session, Presentation, and Application layer. TCP/IP is a hierarchical protocol made up of interactive modules, each of which provides a specific functionality. The layers of the TCP/IP suite contain relatively independent protocols that can be mixed and matched depending on the needs of the system. Application Layer: This layer is the top layer in the TCP/IP model. It includes processes which use Transport Layer Protocol to transmit the data to their destination. There are different Application Layer Protocols such as HTTP, FTP, SMTP, SNMP protocols etc. Transport...