The Internet Protocol (IP) is one of the core protocols in the suite of Internet protocols and is responsible for addressing, delivering, and routing packets of data across networks. Every device connected to the internet or a local network needs an IP address to communicate.
Understanding IP and its addressing system is crucial for managing networks, troubleshooting connectivity issues, and ensuring secure and efficient communication.
It's the set of rules that govern how packets are transmitted over a network. This is why we see "IP" used in words like IP address and VoIP. Internet Protocol (IP) is a network-layer protocol (Layer 3 in the OSI model) used to identify devices across networks and to route data from a source to a destination. When put into a network communication context, an internet protocol describes how data packets move through a network.
Addressing: Assigning unique addresses to devices on a network.
Fragmentation: Breaking large packets into smaller ones for transmission.
Routing: Choosing the best path to send data across multiple networks.
IP is connectionless and unreliable on its own, meaning it doesn’t guarantee delivery, order, or error correction. These functions are handled by higher-layer protocols like TCP.
Address Length
Format
Total Addresses
Common Usage
32 bits
Decimal (e.g. 192.168.1.1)
4.3 billion
still dominant
128 bits
Hexadecimal (e.g. 2001:0db8:85a3::8a2e:0370:7334 )
340 undecillion
inreasingly adopted
Written in dotted decimal format: e.g., 192.168.0.1
Consists of 4 octets (1 octet = 8 bits)
Example breakdown:
192 → 11000000
168 → 10101000
0 → 00000000
1 → 00000001
Each address consists of two parts:
Network portion: Identifies the network
Host portion: Identifies the specific device on the network
Written in colon-separated hexadecimal format: e.g., 2001:0db8:0000:0000:0000:ff00:0042:8329
Simplified as: 2001:db8::ff00:42:8329
Designed to solve IPv4 address exhaustion
Public IP
Private IP
Static IP
Dynamic IP
Loopback IP
Description
Globally unique, assigned by ISP, used on the internet
Used within LAN, not routable on internet (e.g 192.168.x.)
Manually assigned and doesnt change
assigned by DHCP and may change over time
127.0.0.1 refers to the local device
Class
A
B
C
D
E
Range
1.0.0.0 - 126.255.255.255
128.0.0.0 - 191.255.255.255
192.0.0.0 - 223.255.255.255
224.0.0.0 - 239. 255.255.255
240.0.0.0 - 255.255.255.255
Default Subnet Mask
255.0.0.0
255.255.0.0
255.255.255.0
-
-
Usage
Large Networks
Medium Networks
Small Networks
Multicasting
Experimental
Private IP Address are reserved for use within private networks (LANS) and are not routable on the public internet. Non-routable IP addresses, also known as private IP addresses, are reserved for use within private networks and are not designed to be routed on the public internet. These addresses allow devices within a local network to communicate with each other without requiring a public IP address for each device. They are crucial for managing internal network traffic and enhancing security by preventing direct access from the public internet.
Class A
Class B
Class C
10.0.0.0 to 10.2255.255.255
172.16.0.0 to 172.31.255.255
192.168.0.0 to 192.168.255.255
255.0.0.0
255.240.0.0
255.255.255.0
16,777,216
65,536
254
Large networks
Medium Networks
Small Networks
In networking, IP addresses are typically written using standard notations that make them easy to read, understand, and work with. Below are the common notations used for IPv4 and IPv6 addresses, including subnetting formats:
This is the most common and human-readable format.
Format: xxx.xxx.xxx.xxx
Each xxx represents 8 bits (an octet) of the 32-bit IP address.
Example:
192.168.1.1
10.0.0.1
172.16.254.2
Used for teaching, subnetting calculation, and protocol-level understanding.
Format: Each of the four octets is written in binary.
Example:
192.168.1.1 → 11000000.10101000.00000001.00000001
Dotted Decimal Notation - 128.12.15.10
Binary Notations: 10000000 00001100 00001111 00001010
Exercises:
I. Change the following IP addresses from binary notation to dotted-decimal notation.
a. 10000001 00001011 00001011 11101111
b. 11111001 10011011 11111011 00001111
II. Change the following IP addresses from dotted-decimal notation to binary notation.
a. 111.56.45.78
b. 75.45.34.78