UNIT-4 Introduction of Data Link Layer
UNIT-4 Introduction of Data Link Layer
• The development of the protocol gets started in 1974 by Bob Kahn and
Vint Cerf. It is used in conjunction with the Transmission Control Protocol
(TCP), so they together named the TCP/IP.
• The first major version of the internet protocol was IPv4, which was version
4. This protocol was officially declared in RFC 791 by the Internet
Engineering Task Force (IETF) in 1981.
• After IPv4, the second major version of the internet protocol was IPv6,
which was version 6. It was officially declared by the IETF in 1998. The main
reason behind the development of IPv6 was to replace IPv4. There is a big
difference between IPv4 and IPv6 is that IPv4 uses 32 bits for addressing,
while IPv6 uses 128 bits for addressing.
Function of Internet protocol
• The main function of the internet protocol is to provide addressing to
the hosts, encapsulating the data into a packet structure, and routing
the data from source to the destination across one or
more IP networks. In order to achieve these
functionalities, internet protocol provides two major things which are
given below.
• An internet protocol defines two things:
• Format of IP packet
• IP Addressing system
What is an IP packet?
Before an IP packet is sent over the network, two major components are added in an IP packet, i.e., header and
a payload.
What is an IP packet?
• Source IP address: The source is the one who is sending the data.
• Destination IP address: The destination is a host that receives the data from
the sender.
• Header length
• Packet length
• TTL (Time to Live): The number of hops occurs before the packet gets
discarded.
• Transport protocol: The transport protocol used by the internet protocol,
either it can be TCP or UDP.
• There is a total of 14 fields exist in the IP header, and one of them is
optional.
• Payload: Payload is the data that is to be transported.
How does the IP routing perform?
• IP routing is a process of determining the path for data so that it can travel
from the source to the destination. As we know that the data is divided
into multiple packets, and each packet will pass through a web of the
router until it reaches the final destination. The path that the data packet
follows is determined by the routing algorithm. The routing algorithm
considers various factors like the size of the packet and its header to
determine the efficient route for the data from the source to the
destination. When the data packet reaches some router, then the source
address and destination address are used with a routing table to determine
the next hop's address. This process goes on until it reaches the
destination. The data is divided into multiple packets so all the packets will
travel individually to reach the destination.
What is IP Addressing?
• If the computer is assigned with a private address, then the devices available within the local network can view
the computer through the private ip address. However, the devices available outside the local network cannot
view the computer through the private IP address, but they can access the computer if they know the router's
public address. To access the computer directly, NAT (Network Address Translator) is to be used.
• Key points related to private address are:
• Its scope is local, as we can communicate within the network only.
• It is generally used for creating a local area network.
• It is available at free of cost.
• We can get to know the private IP address by simply typing the "ipconfig" on the command prompt.