Addressing: Each device connected to the internet is identified by a unique numerical address called an IP (Internet Protocol) address. IPv4 (Internet Protocol version 4) and IPv6 (Internet Protocol version 6) are the two primary addressing schemes used. When data is transmitted, the source and destination IP addresses are included in the packet headers to ensure that it reaches the correct destination.

Packet Switching: The internet relies on packet-switched networking, where data is divided into packets that can travel independently across the network. This contrasts with circuit-switched networks, where a dedicated communication path is established between sender and receiver. Packet switching allows for more efficient use of network resources and enables robust, decentralized communication.

Protocols: As mentioned earlier, various protocols are used at different layers of the TCP/IP protocol stack to facilitate communication. For example:

IP (Internet Protocol) provides the addressing and routing functions.
TCP (Transmission Control Protocol) ensures reliable, ordered delivery of data by establishing connections, acknowledging received packets, and retransmitting lost packets if necessary.
UDP (User Datagram Protocol) provides a connectionless, unreliable transport mechanism suitable for applications where low overhead and real-time performance are more critical than reliability.

Routing Algorithms: Routers use routing algorithms to determine the best path for forwarding packets to their destination. These algorithms consider factors such as network congestion, link reliability, and routing policies to make routing decisions dynamically.

Peering and Transit: Internet traffic is exchanged between networks through a combination of peering and transit agreements. Peering involves direct connections between networks to exchange traffic without payment. Transit involves paying another network (usually an ISP) to carry traffic to destinations not directly reachable through peering arrangements.

Quality of Service (QoS): Some networks and protocols support Quality of Service mechanisms to prioritize certain types of traffic (e.g., VoIP calls or video streaming) over others. QoS helps ensure that critical applications receive adequate network resources and perform optimally, even in congested conditions.