What Is The Purpose of The Internet Protocol?
What Is The Purpose of The Internet Protocol?
An IP address can be split in different ways to give a network ID and a host ID and
this is usually indicated by a subnet mask. This is a pattern of ones and zeros that
indicates which bit in the IP address is to be regarded as part of the network ID.
For example a subnet mask of 11111111.0.0.0 or 255.0.0.0 in decimal means that
the first eight bits of the IP address are the network ID and the rest identify
particular machines on that network. By making use of the subnet mask, routers
can determine if datagrams should be routed to the internal network or passed on
to external routers for further routing.
IP Header Format
IP Header Format
-----------------
0123
01234567890123456789012345678901
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options | Padding |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Version: Version of the IP address being used by the network packet. Two
available options are: IPv4 or IPv6.
Length: Length of the IP header of the datagram.
TOS: Used for quality of service in some networks (TOS= Type of Service). Allows
network routers to prioritize delivery of predefined network packets.
Size of Datagram: Includes the length of the packet header and size of the
datagram. Normally measured in bytes.
Identification: An exclusive value assigned to the packet.
Flags: Identifies if the packet should be fragmented or not. The default value is not
to perform fragmentation.
Fragmentation Offset: Larger than the MTU. Represents a byte count that
provides for segmentation and reassembly of large IP packets.
Time to Live: The total number of hops that the IP packet can be routed over. The
value is decremented with each network hop made by the network packet.
Protocol: Represents the network protocol used by the packet. Examples include:
Telnet = 23; FTP = 21; TCP=6; UDP= 17.
Header Checksum: Used to detect processing errors and to maintain data
integrity in the datagram.
Source Address: IP address of the original sender that transmitted the IP packet.
Destination Address: IP address of the last destination of the packet (i.e. the
intended recipient of the packet).
Options: The field is optional and has been used for testing and security purposes
by some academics/vendors. When used, the IP header length will increase in size.
Data: The payload or information sent over the network.
What are the Types of IP Addresses?
The three primary types of IP addresses are Broadcast, Multicast, and Unicast. Each
of the address types is designed for a specific purpose for use on an IP-based
network.
The IANA has three blocks of IP addresses assigned for private address use detailed
in RFC 1918:
10.0.0.0 to 10.25.255.255
172.16.0.0 to 172.31.255.255
192.168.0.0 to 192.168.255.255
These address ranges are not visible on the public Internet and are commonly used
on networks that support TCP/IP for both services and local computer hosts.
Devices assigned as private IP address are still able to access services and websites
on the public Internet using one of several methods which include leveraging a
proxy or Network Address Translation (NAT) server.
Although adoption of IPv6 has seen acceleration over the past several years, both
industry and consumers continue to slowly adopt the technology. The primary
barrier to adoption continues to be cost of new equipment (at both the ISP and
end-user level) and the fact that IPv4 continues to function satisfactorily.
Source: http://www.tech-faq.com/ip.html