Back to course

Introduction to Internet Protocol (IP)

Networking Fundamentals: The 0 to Hero Guide

Lesson 31: Introduction to Internet Protocol (IP)

The Internet Protocol (IP) is the critical addressing and routing mechanism that operates at the Network Layer (Layer 3 of OSI, Internet Layer of TCP/IP).

IP: The Foundation of the Internet

IP provides the logical address necessary to transport data packets across diverse, interconnected networks. Without IP, a router would not know which remote network to forward a packet to.

Key Characteristics of IP:

  1. Logical Addressing: IP addresses are assigned logically and hierarchically (unlike physical MAC addresses). This allows routers to summarize network locations and make efficient forwarding decisions.
  2. Connectionless: IP is a connectionless protocol. It treats each packet independently and offers no guarantee of delivery or sequence. (Reliability is left to the Transport Layer, i.e., TCP).
  3. Best-Effort Delivery: IP tries its best to deliver the packet but assumes the upper layers will handle any errors.

IP Header Information

Every IP packet begins with an IP Header containing vital information for routing:

  • Source IP Address: The address of the sender.
  • Destination IP Address: The address of the final recipient.
  • Time To Live (TTL): A counter that decrements every time the packet passes through a router. When TTL reaches zero, the packet is discarded, preventing packets from looping infinitely.
  • Protocol: Identifies the Layer 4 protocol encapsulated in the packet (e.g., 6 for TCP, 17 for UDP).

Focus: IP's job is simple: get the packet from point A to point Z, even if A and Z are separated by thousands of routers.