0% found this document useful (0 votes)
2 views

Internet_Protocol_Explanation

Uploaded by

lliaiiitreghk348
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Internet_Protocol_Explanation

Uploaded by

lliaiiitreghk348
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Internet Protocol (IP) - Full Explanation

The Internet Protocol (IP) is a fundamental protocol in the Internet Layer of the Internet Protocol Suite.
It is responsible for addressing and routing packets of data across networks. IP ensures that data is
sent from the source to the correct destination over the network, even if multiple intermediate routers
are involved.

Functions of IP:

1. Addressing: IP provides logical addressing for devices on a network, enabling them to


communicate with each other. Each device on a network must have a unique IP address.

2. Routing: IP determines the path data packets take from the source device to the destination device.
Routers use IP addresses to forward packets between networks.

3. Fragmentation: IP can break down larger packets into smaller units if needed, a process called
fragmentation. This is necessary because the Maximum Transmission Unit (MTU) of different networks
can vary.

4. Packetization: Data is divided into smaller packets by the network layer (IP) before transmission.
Each packet is sent independently, and each packet contains information like source and destination IP
addresses.

5. Best-Effort Delivery: IP operates on a best-effort delivery model. It does not guarantee delivery or
the order in which packets arrive. If a packet is lost or corrupted, IP does not resend it.

IPv4 and IPv6 Address Format

1. IPv4 Address Format: IPv4 addresses are written in dotted-decimal notation, consisting of four
numbers (octets) separated by periods. Example: `192.168.1.1`

2. IPv6 Address Format: IPv6 addresses are written in hexadecimal notation, separated by colons.
IPv6 allows a larger address space. Example: `2001:0db8:85a3:0000:0000:8a2e:0370:7334`

IP Header

An IP packet consists of two parts: the Header and the Payload.

The IP Header contains control information like source and destination IP addresses. The Payload
contains the actual data being transmitted.

Here is an overview of the fields in the IPv4 header:


1. Version 2. Header Length 3. Type of Service 4. Total Length 5. Identification 6. Flags 7. Time to Live
(TTL) 8. Protocol 9. Header Checksum 10. Source IP Address 11. Destination IP Address 12. Options

Routing with IP

When a packet is sent over the network, routers examine the destination IP address in the packet’s
header to determine where to forward the packet. Routers use routing tables that contain the best path
to reach specific networks.

Subnetting with IP

Subnetting is used to divide a large network into smaller sub-networks. It helps in efficient IP address
management. Subnet masks are used to identify the network and host portions of an IP address.

Classful IP Addressing

Classful IP addressing divides the IP address space into five classes (A, B, C, D, E) for different
purposes. Class A, B, and C are used for host addressing, while Class D is for multicast and Class E is
reserved.

NAT (Network Address Translation)

NAT is used to conserve public IP addresses by translating private IP addresses to a public IP address
when accessing the internet. This technique allows multiple devices to share a single public IP address.

Conclusion

The Internet Protocol (IP) is essential for the functioning of modern networks, providing logical
addressing and ensuring that data travels between devices. While IP itself does not guarantee reliable
delivery, it plays a critical role in packet routing, addressing, and fragmentation.

You might also like