Internet Architecture and How the Internet Works: A Comprehensive Guide
WEB FUNDAMENTALS • UNIT I • LESSON 02
Level: Undergraduate / Beginner to Intermediate
Prerequisite: Introduction to the Internet and World Wide Web
When you open a website, send a message, attend an online lecture, or stream a video, your device communicates with computing systems that may be located hundreds or thousands of kilometres away. This communication frequently takes place within milliseconds.
Behind this seemingly simple experience lies an extensive infrastructure consisting of optical fibre cables, submarine communication systems, routers, Internet Service Providers, data centres, communication protocols, and independently operated networks.
How do these independent networks communicate with one another? How does a packet of information originating from a laptop in India reach a server in another country? Who determines the path followed by that packet? Why does a website sometimes load slowly despite having a high-speed Internet connection?
The answers to these questions lie in understanding Internet architecture.
In this lesson, we will examine the Internet from both physical and logical perspectives, understand its layered architecture, investigate how packets travel across networks, and explore the factors that influence network performance.
Learning Objectives
After completing this lesson, you will be able to:
- Explain the physical and logical architecture of the Internet.
- Identify the major components of Internet infrastructure.
- Differentiate between network access, distribution, and backbone infrastructure.
- Understand the roles of ISPs, Autonomous Systems, and Internet Exchange Points.
- Differentiate between packet switching and circuit switching.
- Explain the four-layer TCP/IP architecture.
- Understand data encapsulation and decapsulation.
- Explain IP addressing, subnetting, routing, and NAT.
- Calculate basic network transmission and propagation delays.
- Understand the role of Content Delivery Networks.
- Perform basic network diagnostic experiments.
1. What is Internet Architecture?
Internet architecture refers to the structural organization of the technologies, networks, communication protocols, devices, and operational principles that enable global Internet communication.
Internet architecture is the decentralized framework through which independently operated computer networks exchange information using standardized communication protocols and shared interconnection mechanisms.
Unlike a centralized computing system, the Internet does not depend on a single computer, server, cable, or organization. It consists of numerous interconnected networks operated by different organizations.
1.1 Physical and Logical Architecture
Internet architecture can be understood from two complementary perspectives.
Physical Architecture
Describes the tangible infrastructure used for communication.
- Optical fibre cables
- Routers and switches
- Data centres
- Wireless towers
- Submarine cables
- Network interfaces
Logical Architecture
Describes the rules and mechanisms governing communication.
- Communication protocols
- IP addressing
- Routing policies
- Domain Name System
- Network segmentation
- Application communication
Physical infrastructure determines where information can travel. Logical architecture determines how information is represented, addressed, transmitted, and delivered through that infrastructure.
1.2 Fundamental Design Principles
- Decentralization
- Independent organizations operate their own networks while cooperating through common communication standards.
- Interoperability
- Different hardware platforms, operating systems, and applications can communicate using shared protocols.
- Layering
- Communication responsibilities are divided into manageable layers, each providing services to other layers.
- Scalability
- Additional networks, devices, and services can be incorporated without redesigning the entire Internet.
- Best-effort delivery
- IP networks attempt to deliver packets but do not inherently guarantee delivery, ordering, or timing. Additional protocols may provide stronger guarantees.
- End-to-end communication
- Important communication functions, such as application reliability and encryption, are frequently implemented at the communicating endpoints.
2. Physical Infrastructure of the Internet
Although users frequently associate the Internet with wireless communication, most long-distance Internet connectivity depends on extensive wired infrastructure, particularly optical fibre networks.
2.1 Optical Fibre Communication
An optical fibre is a thin strand of glass or plastic through which information can be transmitted using light signals.
Optical fibre communication supports high transmission capacities over considerable distances. Multiple optical wavelengths may also be used to carry separate data streams through the same fibre.
Important advantages of optical fibre include:
- High transmission capacity.
- Relatively low signal attenuation.
- Resistance to electromagnetic interference.
- Suitability for long-distance communication.
- Support for large-scale telecommunications networks.
2.2 Submarine Communication Cables
Submarine communication cables are optical fibre cable systems installed beneath oceans and seas to connect geographically separated regions.
These cables form an essential part of international telecommunications infrastructure. They carry a large proportion of intercontinental Internet traffic.
A submarine cable system typically includes:
- Optical fibres for transmitting information.
- Protective layers to withstand environmental conditions.
- Repeaters that amplify optical signals where required.
- Power feeding equipment.
- Cable landing stations connecting marine and terrestrial networks.
Cable Landing Station
Cable Landing Station
Long-distance optical communication
Students can explore the geographical distribution of submarine cables using the Submarine Cable Map maintained by TeleGeography.
2.3 Wireless Communication Infrastructure
Wireless technologies use electromagnetic waves to exchange information without requiring a direct physical cable between communicating devices.
| Technology | Purpose | Example |
|---|---|---|
| Wi-Fi | Local wireless connectivity | Home or university network |
| 4G / 5G | Mobile broadband connectivity | Smartphone Internet access |
| Microwave Links | Wireless point-to-point communication | Telecommunication backhaul |
| Satellite Internet | Connectivity over geographically separated areas | Remote or underserved regions |
2.4 Data Centres
A data centre is a facility designed to accommodate computing, networking, and storage equipment. Data centres host many of the applications and services that users access through the Internet.
Typical data centre infrastructure includes:
- Physical servers and virtualized computing resources.
- Storage systems and databases.
- Network switches and routers.
- Load balancing systems.
- Power supply and backup power systems.
- Cooling infrastructure.
- Physical and network security systems.
2.5 Networking Devices
| Device | Primary Function |
|---|---|
| Router | Forwards IP packets between networks. |
| Switch | Connects devices and forwards frames within a local network. |
| Wireless Access Point | Connects wireless devices to a network. |
| Modem | Converts signals for communication over particular access technologies. |
| ONT | Terminates an optical access connection at the customer premises. |
| Firewall | Applies security policies to network traffic. |
| Load Balancer | Distributes incoming requests among available computing resources. |
A typical home Wi-Fi router may combine several of these functions into a single physical device.
3. Access, Distribution and Core Networks
Large communication networks are often organized into functional regions responsible for connecting users, aggregating traffic, and transporting information over high-capacity links.
Smartphones • Laptops • Desktops
Wi-Fi • Fibre Broadband • Cellular Access
Collects traffic from multiple access networks
High-capacity routers and long-distance links
Websites • Cloud Services • Applications
3.1 Access Network
The access network connects end users or customer premises to their service provider's infrastructure. It is sometimes referred to as the last-mile network.
Examples include residential fibre broadband, mobile cellular networks, cable broadband, and fixed wireless access.
3.2 Aggregation and Distribution Network
Aggregation infrastructure collects traffic from multiple access networks and transports it towards larger regional or core network facilities.
This enables a service provider to combine traffic originating from numerous homes, businesses, institutions, and mobile access points.
3.3 Core Network
The core network transports aggregated traffic across high-capacity infrastructure. Core networks generally prioritize efficient forwarding, redundancy, availability, and scalability.
3.4 Internet Backbone
The term Internet backbone describes major high-capacity networks and communication links responsible for transporting substantial volumes of Internet traffic across geographical regions.
There is no single universal Internet backbone owned by one organization. Multiple network operators maintain interconnected backbone infrastructures.
4. Internet Service Providers (ISPs)
An Internet Service Provider is an organization that supplies Internet connectivity to individuals, businesses, institutions, and other networks.
ISPs perform several responsibilities, including:
- Connecting customer networks to the Internet.
- Providing or assigning IP addressing information.
- Maintaining communication infrastructure.
- Forwarding traffic towards destination networks.
- Managing network capacity and congestion.
- Establishing interconnection arrangements with other networks.
4.1 Understanding ISP Tiers
Internet networks are sometimes informally categorized into three tiers according to their interconnection and transit arrangements.
| Tier | Typical Characteristics |
|---|---|
| Tier 1 | Networks generally described as having global Internet reachability without purchasing IP transit. |
| Tier 2 | Networks that combine peering arrangements with purchased transit connectivity. |
| Tier 3 | Networks that primarily provide customer access and obtain broader connectivity through upstream providers. |
ISP tiers are informal commercial classifications, not mandatory technical layers. Modern Internet traffic may travel through direct peering links, content delivery networks, private interconnections, or multiple transit providers without following a strict three-tier hierarchy.
4.2 Internet Transit
Internet transit is a service through which one network obtains connectivity to other networks through a transit provider.
A smaller network may purchase transit from a larger provider to make its customers reachable from the wider Internet and to reach external destinations.
4.3 Network Peering
Peering is an arrangement under which networks exchange traffic directly according to mutually agreed routing and commercial policies.
Peering may be settlement-free or paid. It may take place through private physical connections or shared Internet Exchange Point infrastructure.
Direct peering can reduce reliance on transit, improve traffic paths, and potentially reduce interconnection costs.
5. Autonomous Systems (AS)
The global Internet is composed of independently administered networks. To exchange routing information effectively, these networks need identifiable administrative boundaries and routing policies.
An Autonomous System is a network or collection of networks under a common technical administration that presents a defined routing policy to other Autonomous Systems.
5.1 Autonomous System Number (ASN)
An Autonomous System Number identifies an Autonomous System for purposes such as interdomain routing.
ASNs may be represented using 16-bit or 32-bit numerical values. Public ASNs are allocated through the Internet number resource management system.
Customer Access Network
Transit Network
Content Hosting Network
5.2 Border Gateway Protocol (BGP)
Border Gateway Protocol is the principal protocol used to exchange reachability information between Autonomous Systems on the Internet.
Through BGP, networks announce reachable IP address prefixes and communicate routing information to neighbouring systems.
A BGP route may contain attributes such as an AS path and next-hop information. Network operators apply routing policies to determine which available routes should be preferred.
5.3 Why BGP Does Not Always Select the Shortest Path
Internet routing decisions are influenced by technical requirements and commercial relationships. A route preferred by a network may not necessarily be the shortest geographical path or the route with the lowest measured latency.
Factors influencing routing policies include:
- Relationships with customers and providers.
- Peering agreements.
- Traffic engineering policies.
- Network availability.
- Route attributes and operator preferences.
6. Internet Exchange Points (IXPs)
An Internet Exchange Point is shared interconnection infrastructure that enables participating networks to exchange traffic directly.
Instead of requiring traffic between two neighbouring networks to travel through distant transit infrastructure, an IXP can provide a local point of interconnection.
Potentially longer communication path
Potentially shorter local traffic path
6.1 Benefits of Internet Exchange Points
- Potential reduction in network latency.
- Reduced dependence on distant transit infrastructure.
- Potential reduction in traffic exchange costs.
- Improved opportunities for regional connectivity.
- Additional interconnection options for network operators.
An IXP does not automatically establish communication between every participating network. Participants must configure appropriate routing arrangements and agree on traffic exchange policies.
7. Packet Switching and Circuit Switching
Communication networks require mechanisms for transferring information between connected systems. Two important approaches studied in computer networking are circuit switching and packet switching.
7.1 Circuit Switching
Circuit switching establishes a communication circuit with reserved network resources before information exchange begins.
The reserved resources remain associated with that communication session until the circuit is released. Traditional circuit-switched telephone networks provide a familiar historical example.
7.2 Packet Switching
Packet switching allows information to be transferred as discrete units across shared network infrastructure.
Packets from many independent communication sessions may be interleaved on the same network link. Routers examine packet addressing information and forward packets towards appropriate next hops.
Multiple Data Streams Sharing a Network Link
Shared Communication Link
7.3 Comparison Between Circuit and Packet Switching
| Parameter | Circuit Switching | Packet Switching |
|---|---|---|
| Resources | Reserved for a circuit | Typically shared |
| Setup | Circuit establishment required | IP forwarding does not require a dedicated circuit |
| Resource utilization | Resources may remain reserved during inactivity | Suitable for bursty traffic |
| Delay | Generally predictable after setup | May vary due to congestion and queuing |
| Example | Traditional circuit-switched telephony | Internet Protocol networks |
7.4 Advantages of Packet Switching
Packet switching is particularly useful when applications generate irregular or bursty traffic. Shared capacity can be utilized by different communicating devices instead of being permanently reserved for a single session.
However, packet switching can introduce queuing delays, congestion, packet loss, and packet reordering. Communication protocols must account for these possibilities when necessary.
8. TCP/IP Layered Architecture
Internet communication involves multiple responsibilities, including application interaction, process-to-process communication, network addressing, packet forwarding, and local transmission.
Managing all these responsibilities within a single protocol would make communication systems difficult to design and maintain.
The TCP/IP architecture divides communication into functional layers. Each layer addresses a particular set of networking responsibilities.
User-facing network services and application protocols
HTTP, DNS, SMTP, SSHCommunication between application endpoints
TCP, UDP, QUICLogical addressing and packet delivery across networks
IPv4, IPv6, ICMPCommunication over the local network connection
Ethernet, Wi-Fi8.1 Application Layer
The application layer defines protocols through which applications exchange information.
A browser uses HTTP to communicate with web services, an email application may use SMTP to submit messages, and DNS is used to retrieve domain name information.
Examples of application-layer protocols include:
- HTTP: Communication involving web resources.
- DNS: Retrieval of domain name records.
- SMTP: Electronic mail submission and transfer.
- IMAP: Access to electronic mailboxes.
- SSH: Secure remote access.
8.2 Transport Layer
The transport layer provides communication services between application endpoints.
Transport protocols may provide mechanisms for multiplexing application communications, reliable delivery, congestion control, and flow control. The precise services depend on the protocol.
Transmission Control Protocol (TCP)
TCP provides a reliable, ordered byte-stream service between communicating endpoints. It uses mechanisms such as sequence numbers, acknowledgements, retransmissions, and flow control.
User Datagram Protocol (UDP)
UDP provides a comparatively simple datagram service with limited protocol overhead. It does not provide built-in delivery guarantees, retransmissions, or ordered delivery.
QUIC
QUIC is a secure transport protocol operating over UDP. It provides reliable streams, congestion control, and integrated cryptographic connection establishment.
HTTP/3 uses QUIC as its underlying transport protocol.
8.3 Internet Layer
The Internet layer enables packets to travel across interconnected networks using logical addressing and routing mechanisms.
Internet Protocol provides best-effort packet delivery. Routers operate on IP addressing and forwarding information to move packets between networks.
Internet Control Message Protocol (ICMP) supports network diagnostics and the reporting of certain network-layer conditions.
8.4 Link Layer
The link layer handles communication over an individual network link or local network.
Ethernet and Wi-Fi provide mechanisms for transmitting frames between devices within their respective link-layer environments.
The physical transmission of signals through cables or wireless media supports these communication mechanisms.
8.5 TCP/IP and the OSI Reference Model
The Open Systems Interconnection model is a seven-layer reference model commonly used for teaching and analyzing network communication.
| OSI Reference Model | TCP/IP Model |
|---|---|
| 7. Application | Application Layer |
| 6. Presentation | |
| 5. Session | |
| 4. Transport | Transport Layer |
| 3. Network | Internet Layer |
| 2. Data Link | Link Layer |
| 1. Physical |
This mapping is conceptual rather than exact. Real protocols do not always correspond perfectly to the boundaries of the OSI reference model.
9. Data Encapsulation and Decapsulation
When an application sends information across a network, communication layers attach control information necessary for their respective responsibilities.
This process is called encapsulation. At the receiving endpoint, the corresponding layers interpret and remove the applicable control information through decapsulation.
Encapsulation of Application Data
Stage 1 — Application data
Stage 2 — TCP segment
Stage 3 — IP packet
Stage 4 — Link-layer frame
The relative block sizes are illustrative. Actual header and payload lengths depend on the protocols and their configuration.
9.1 Protocol Data Units
| Layer | Data Unit |
|---|---|
| Application | Message or application data |
| Transport | TCP segment or UDP datagram |
| Internet | IP packet |
| Link | Frame |
| Physical transmission | Bits represented by physical signals |
9.2 Encapsulation Example
Consider a simplified communication containing 1,000 bytes of application data. Assume that TCP and IPv4 each use their minimum header sizes of 20 bytes, with no options.
- Application data = 1,000 bytes
- TCP header = 20 bytes
- IPv4 header = 20 bytes
TCP segment size:
1000 + 20 = 1020 bytes
IPv4 packet size:
1020 + 20 = 1040 bytes
TCP and IP header overhead:
(40 / 1040) × 100 ≈ 3.85%
Result: The resulting IP packet contains 1,040 bytes, of which 40 bytes represent TCP and IPv4 header information.
This simplified calculation excludes TLS, link-layer headers, trailers, physical-layer overhead, and additional protocol options.
9.3 What Happens at an Intermediate Router?
A router generally processes an incoming link-layer frame, examines the enclosed IP packet, determines an appropriate next hop, and transmits the packet using the outgoing link's framing mechanism.
The IP packet's forwarding-related fields may be updated. For example, an IPv4 packet's Time to Live value is reduced during normal routing.
Link-layer addressing information generally changes as packets move between routed links. Transport and application data normally remain associated with the communicating endpoints, although middleboxes such as NAT devices can modify certain fields.
10. IP Addressing and Subnetting
Internet Protocol addresses provide logical addressing information that allows packets to be forwarded across interconnected networks.
10.1 IPv4 Addressing
An IPv4 address contains 32 bits and is commonly represented as four decimal numbers separated by dots.
11000000
8 bits
10101000
8 bits
00000001
8 bits
00001010
8 bits
Since IPv4 uses 32-bit addresses, the theoretical address space contains:
232 = 4,294,967,296 addresses
Not all of these addresses are available for ordinary globally reachable host assignment. Some address ranges are reserved for specific purposes.
10.2 IPv6 Addressing
IPv6 uses 128-bit addresses and represents a much larger address space than IPv4.
Example IPv6 address:
2001:0db8:0000:0000:0000:0000:0000:0001
IPv6 addresses may use abbreviated notation when applicable. The above example can be written as:
2001:db8::1
The IPv6 address space contains 2128 possible bit combinations, approximately 3.4 × 1038.
10.3 Public and Private IPv4 Addresses
Public IP addresses are generally intended for globally coordinated addressing. Private IPv4 addresses are reserved for use within private networks and are not normally routed across the public Internet.
| Address Block | Address Range |
|---|---|
10.0.0.0/8 |
10.0.0.0 to 10.255.255.255 |
172.16.0.0/12 |
172.16.0.0 to 172.31.255.255 |
192.168.0.0/16 |
192.168.0.0 to 192.168.255.255 |
10.4 Classless Inter-Domain Routing (CIDR)
CIDR notation represents an IP address prefix using an address followed by a slash and a prefix length.
Consider the following example:
192.168.1.0/24
The prefix length of 24 indicates that the first 24 bits represent the network prefix. The remaining eight bits distinguish addresses within that block.
24 bits
8 bits
10.5 Worked Example: Calculating Subnet Capacity
Problem: Determine the address
capacity of the IPv4 network
192.168.1.0/24.
Step 1: Calculate the host bits.
32 - 24 = 8 bits
Step 2: Calculate the total addresses.
28 = 256 addresses
Step 3: Calculate conventional usable host addresses.
256 - 2 = 254 addresses
- Network address:
192.168.1.0 - First host address:
192.168.1.1 - Last host address:
192.168.1.254 - Broadcast address:
192.168.1.255 - Subnet mask:
255.255.255.0
Answer: This conventional IPv4 subnet contains 256 addresses, including 254 usable host addresses.
Special prefix lengths, such as /31 for point-to-point links and /32 for individual addresses, require different interpretation.
11. Routing and Forwarding
IP addressing identifies network destinations. Routing and forwarding mechanisms determine how packets progress towards those destinations.
11.1 Difference Between Routing and Forwarding
Routing
Determines and maintains information about reachable networks and preferred paths.
Question answered:
Which routes should be used?
Forwarding
Uses forwarding information to send an individual packet towards an appropriate outgoing interface or next hop.
Question answered:
Where should this packet go next?
11.2 Routing Tables
Routers maintain routing information that describes reachable destination networks, associated next hops, outgoing interfaces, and other relevant properties.
Consider the following simplified forwarding information:
| Destination Prefix | Next Hop | Interface |
|---|---|---|
10.0.0.0/8 |
192.0.2.1 | eth0 |
10.20.0.0/16 |
192.0.2.2 | eth1 |
192.168.1.0/24 |
Directly connected | eth2 |
0.0.0.0/0 |
192.0.2.254 | eth3 |
11.3 Longest Prefix Matching
If multiple entries match a destination IP address, ordinary destination-based IP forwarding selects the most specific matching prefix.
Suppose a packet has the destination address:
10.20.5.7
This address matches both 10.0.0.0/8
and 10.20.0.0/16.
Since the /16 prefix is more specific than the
/8 prefix, the router selects the /16 entry
in this example and forwards the packet towards
192.0.2.2.
11.4 Default Gateway
A default gateway is a router used by a device to reach destinations for which it does not have a more specific route.
In a home network, the Wi-Fi router commonly serves as the default gateway for connected devices.
11.5 Routing Protocols
Routing protocols allow routers to exchange network reachability and topology information.
- RIP: A distance-vector routing protocol that uses hop count as its primary metric.
- OSPF: A link-state routing protocol used within administrative routing domains.
- IS-IS: A link-state protocol commonly used in large network infrastructures.
- BGP: A protocol used to exchange reachability and routing policy information, particularly between Autonomous Systems.
11.6 Preventing Indefinite Packet Circulation
IPv4 packets contain a field called Time to Live (TTL). IPv6 packets contain a corresponding Hop Limit field.
These fields limit the number of forwarding operations a packet can undergo. When the applicable limit is exhausted, the packet is discarded rather than circulating indefinitely.
Network diagnostic tools such as traceroute make use of this behaviour.
12. Network Address Translation (NAT)
Many private networks contain multiple devices using private IPv4 addresses while communicating with external networks through shared public addressing resources.
Network Address Translation modifies applicable IP addressing information as traffic passes through a translation device.
12.1 Network Address and Port Translation
A common residential implementation is Network Address and Port Translation (NAPT), also frequently referred to as Port Address Translation (PAT).
NAPT allows multiple internal connections to share an external IPv4 address by maintaining mappings involving transport-layer port numbers.
192.168.1.10
192.168.1.11
192.168.1.12
Maintains connection translation mappings
203.0.113.25
12.2 Example Translation Table
| Internal Endpoint | Translated Endpoint |
|---|---|
192.168.1.10:51000 |
203.0.113.25:61001 |
192.168.1.11:51000 |
203.0.113.25:61002 |
192.168.1.12:52000 |
203.0.113.25:61003 |
When response traffic arrives, the translation device consults its mappings to determine the appropriate internal destination.
12.3 Advantages and Limitations of NAT
- Reduces demand for globally assigned IPv4 addresses.
- Allows private addressing within local networks.
- Introduces additional connection state and translation complexity.
- Can complicate incoming connections and peer-to-peer applications.
- May require additional mechanisms for certain protocols.
NAT is not a substitute for a properly configured firewall. Address translation and security policy enforcement are distinct networking functions.
13. The Journey of an Internet Packet
We can now combine the concepts discussed throughout this lesson to understand what happens when a user accesses a website.
Consider a student opening an educational website through a laptop connected to a residential Wi-Fi network.
The browser processes the requested website URL.
DNS information identifies the destination network address.
The browser establishes or reuses an appropriate transport connection.
Frames carry packets through the Wi-Fi access network.
The router forwards packets towards the ISP and may perform NAT.
Intermediate routers forward packets across participating networks.
A server, load balancer, or CDN edge receives the request.
The response travels back to the browser, which processes and displays the received resources.
The return traffic does not necessarily follow the same path as the outgoing traffic. Routing decisions are independently influenced by the participating networks and their policies.
Furthermore, caching, connection reuse, local DNS information, and CDN infrastructure may eliminate or modify some of the steps shown above.
14. Network Performance and Mathematical Analysis
Understanding network performance requires distinguishing several measurements that are frequently confused in everyday discussions about Internet speed.
14.1 Bandwidth
In the context of digital networking, bandwidth commonly refers to the data transmission capacity of a communication link.
Bandwidth is generally expressed in:
- Bits per second (bps)
- Kilobits per second (Kbps)
- Megabits per second (Mbps)
- Gigabits per second (Gbps)
14.2 Throughput
Throughput is the actual rate at which data is successfully transferred over a network during a measurement interval.
Throughput may be lower than the nominal link capacity due to protocol overhead, congestion, retransmissions, server limitations, and other factors.
14.3 Goodput
Goodput measures the rate at which useful application-level data is delivered, excluding overhead and redundant retransmitted data as appropriate to the measurement.
Illustrative 100 Mbps Network Connection
Bandwidth — 100 Mbps
Measured Throughput — 82 Mbps
Application Goodput — 74 Mbps
Example values only. Actual measurements depend on network conditions and measurement methods.
14.4 Latency
Latency describes the delay experienced during communication between network locations.
One-way latency measures delay in one direction, while Round Trip Time (RTT) measures the time required for a signal or request to travel to a destination and for a corresponding response to return.
14.5 Components of Network Delay
The delay experienced by a packet at a network node and its outgoing link can be analyzed using four principal components.
dtotal = dprocessing + dqueuing + dtransmission + dpropagation
Processing Delay
The time required by a network device to examine packet information and perform relevant processing.
Queuing Delay
The time a packet spends waiting in a queue before the outgoing communication link becomes available. Queuing delay may increase substantially during congestion.
Transmission Delay
The time required to place all the bits of a packet onto a communication link.
dtransmission = L / R
L = Packet length in bits
R = Transmission rate in bits per second
Propagation Delay
The time required for a physical signal to travel through the communication medium from the sending location to the receiving location.
dpropagation = D / S
D = Distance travelled in metres
S = Signal propagation speed in metres per second
14.6 Worked Example: Transmission Delay
Problem: Calculate the transmission delay of a 1,500-byte packet over a 100 Mbps link.
Step 1: Convert bytes into bits.
L = 1500 × 8 = 12,000 bits
Step 2: Express the transmission rate in bps.
R = 100 × 106 bps
Step 3: Apply the formula.
d = 12000 / 100000000
d = 0.00012 seconds
Answer: 0.12 milliseconds.
14.7 Worked Example: Propagation Delay
Problem: Calculate the propagation delay over a 2,000 km optical fibre path. Assume a signal propagation speed of 2 × 108 metres per second.
Step 1: Convert distance into metres.
D = 2000 × 1000
D = 2,000,000 metres
Step 2: Apply the propagation delay formula.
d = 2000000 / 200000000
d = 0.01 seconds
Answer: 10 milliseconds one-way.
If the return path has the same length and propagation speed, the propagation-only round-trip delay is approximately 20 milliseconds.
Actual network latency also includes processing, transmission, queuing, and additional path effects.
14.8 Worked Example: Total Nodal Delay
Problem: Calculate the total delay for the following hypothetical network conditions.
- Processing delay = 0.5 ms
- Queuing delay = 4 ms
- Transmission delay = 0.12 ms
- Propagation delay = 10 ms
Total = 0.5 + 4 + 0.12 + 10
Answer: 14.62 milliseconds.
14.9 Worked Example: File Download Time
Problem: Estimate the minimum transfer time for a 500 MB file over a 100 Mbps connection under ideal conditions. Use decimal units.
Step 1: Convert the file size into megabits.
500 MB × 8 = 4000 Mb
Step 2: Divide by the transmission rate.
Time = 4000 / 100 = 40 seconds
Answer: 40 seconds under ideal conditions.
If the actual application goodput is only 80 Mbps, the estimated transfer time becomes:
Time = 4000 / 80 = 50 seconds
This demonstrates why advertised connection speed and actual file download speed may differ.
14.10 Packet Loss
Packet loss occurs when packets fail to reach their intended destination or measurement endpoint.
Possible causes include network congestion, transmission errors, equipment failures, routing problems, and traffic filtering.
Packet Loss = (Lost Packets / Sent Packets) × 100
If 1,000 packets are transmitted and 20 are lost:
(20 / 1000) × 100 = 2%
14.11 Jitter
Jitter refers to variation in packet delay over time. Different applications and measurement standards may calculate delay variation using different methods.
Jitter is particularly relevant to real-time applications such as video conferencing, Internet telephony, live streaming, and interactive multiplayer games.
Applications may use buffering mechanisms to compensate for delay variations, although buffering can introduce additional latency.
14.12 Bandwidth-Delay Product
The bandwidth-delay product represents the amount of data that can be in flight over a network path for a specified bandwidth and delay. Transport performance analysis frequently uses round-trip time for this calculation.
Example:
- Bandwidth = 100 Mbps
- Round-trip time = 40 ms
BDP = Bandwidth × RTT
BDP = 100,000,000 × 0.04
BDP = 4,000,000 bits
Result: 500,000 bytes, or 500 KB using decimal units.
This value helps illustrate the amount of outstanding data a reliable transport may need to maintain to utilize the available network capacity effectively.
15. Content Delivery Networks (CDNs)
A website may serve users located across multiple countries and geographical regions. If every request must travel to a distant origin server, users may experience additional latency and the origin infrastructure may experience increased demand.
A Content Delivery Network uses distributed infrastructure to deliver web resources and other content to users.
15.1 Origin and Edge Servers
- Origin server: The infrastructure responsible for supplying the original content or generating application responses.
- Edge server: Distributed infrastructure positioned within the CDN's delivery network to handle requests closer to selected users or network locations.
Original Website Resources
Asia
Europe
North America
15.2 Cache Hits and Cache Misses
A CDN may temporarily store eligible resources in its distributed caches.
Cache Hit
A suitable cached response is available and can be returned without retrieving the complete resource again from the origin.
Cache Miss
The requested response is not available in a usable cached form, requiring retrieval from an upstream cache or origin infrastructure.
15.3 Benefits of CDNs
- Potentially reduced content delivery latency.
- Reduced repeated requests to origin servers.
- Improved handling of geographically distributed traffic.
- Additional availability and traffic management capabilities.
- Efficient delivery of images, scripts, stylesheets, and video resources.
CDN performance depends on factors such as cache configuration, content characteristics, network routing, geographical distribution, and the location of the origin infrastructure.
15.4 Real-World Website Example
Consider an educational platform publishing hundreds of articles containing diagrams and tutorial videos. Frequently requested public resources may be eligible for caching at distributed edge locations.
Instead of repeatedly transferring the same image from the origin server, the CDN may deliver a cached copy. This can reduce unnecessary origin traffic while improving the reading experience.
Private user information and personalized responses, however, require carefully designed caching rules to prevent accidental disclosure.
16. Reliability, Security and Scalability
16.1 Network Redundancy
Redundancy introduces alternative communication paths, devices, or systems so that certain failures do not necessarily interrupt all connectivity.
Network operators may use multiple physical links, upstream providers, routers, power systems, and geographically distributed facilities to improve availability.
16.2 Network Congestion
Congestion occurs when offered traffic exceeds the capacity that network infrastructure can immediately handle.
Congestion may result in longer queues, increased delays, and packet loss. Transport protocols such as TCP and QUIC incorporate congestion-control mechanisms to adapt transmission behaviour to network conditions.
16.3 Communication Security
Since information may travel through infrastructure operated by multiple organizations, communication security is an important architectural consideration.
Technologies such as TLS protect supported application communications through encryption and integrity verification. Server authentication mechanisms help clients verify the identity of the intended server.
HTTPS protects communication with a website but does not guarantee that the website's content or operator is trustworthy.
16.4 Routing Security
Incorrect or unauthorized routing announcements can interfere with Internet connectivity. Routing security mechanisms and operational practices help networks validate and manage routing information.
Resource Public Key Infrastructure (RPKI), for example, supports validation of whether an Autonomous System is authorized to originate a particular IP prefix. It does not independently validate the entire network path.
16.5 Scalability
Internet architecture supports growth through standardized protocols, address aggregation, distributed services, independently operated networks, and hierarchical resource management.
Modern Internet scalability also relies on continuous infrastructure investment, improved hardware, software optimization, and effective operational coordination.
17. Practical Networking Experiments
The following laboratory exercises allow students to observe networking concepts using standard operating system utilities.
Perform these exercises on your own computer and authorized networks. The displayed results will vary according to your Internet provider, operating system, and network conditions.
Experiment 1: Identify Your Network Configuration
Objective: Observe the IP address, network interface information, and default gateway associated with your device.
Windows:
ipconfig
For additional configuration details:
ipconfig /all
Linux:
ip addr
ip route
macOS:
ifconfig
route -n get default
Observe:
- Active network interface.
- IPv4 and IPv6 addresses, where available.
- Subnet mask or prefix length.
- Default gateway.
Experiment 2: Measure Round Trip Time Using Ping
Objective: Observe the approximate round-trip delay and response behaviour for a network destination.
Windows:
ping -n 4 example.com
Linux and macOS:
ping -c 4 example.com
Illustrative output:
Reply 1: time=35 ms
Reply 2: time=38 ms
Reply 3: time=32 ms
Reply 4: time=35 ms
Packets sent: 4
Packets received: 4
Packet loss: 0%
Average RTT: 35 ms
The sample output is simplified and is not an actual measurement of example.com.
Calculate the average:
Average RTT = (35 + 38 + 32 + 35) / 4
Average RTT = 35 ms
Some destinations or intermediate devices block or deprioritize ICMP messages. A failed ping does not necessarily mean that a website or Internet connection is unavailable.
Experiment 3: Investigate a Network Path Using Traceroute
Objective: Observe the intermediate network hops that respond to path discovery probes.
Windows:
tracert -d example.com
Linux and macOS, where traceroute is available:
traceroute -n example.com
Hypothetical output:
Hop Address RTT
1 192.168.1.1 1 ms
2 192.0.2.1 8 ms
3 192.0.2.17 12 ms
4 198.51.100.5 25 ms
5 * *
6 203.0.113.10 35 ms
This example uses private and documentation addresses. It does not represent an actual route to the specified website.
Interpretation:
- The first responding hop may be your local gateway.
- Subsequent hops may represent intermediate routing infrastructure.
- Asterisks indicate that the corresponding probe did not receive an expected response.
- Reported timings are round-trip probe measurements.
- The discovered path may change between experiments.
Traceroute does not necessarily reveal every physical network device, and its results cannot always be used to determine a packet's exact geographical path.
Experiment 4: Perform a DNS Lookup
Objective: Observe how a domain name is associated with DNS information.
Windows, Linux or macOS, where available:
nslookup example.com
Alternatively, on systems with the dig utility:
dig example.com A
dig example.com AAAA
Observe:
- The domain name being queried.
- The DNS resolver responding to the query, where shown.
- Returned IPv4 or IPv6 address records.
- The possibility of multiple returned addresses.
Experiment 5: Inspect Web Request Timing
Objective: Observe the communication stages involved in loading a web page.
- Open Chrome, Firefox, or another browser with developer tools.
- Navigate to an educational website.
- Open the browser developer tools.
- Select the Network panel.
- Reload the page.
- Select the main document request.
- Examine the available timing information.
Depending on the browser and request, timing categories may include DNS resolution, connection establishment, TLS negotiation, request waiting time, and content download.
Laboratory Observation Sheet
| Observation | Student Result |
|---|---|
| Operating system | ____________ |
| Local IPv4 address | ____________ |
| Default gateway | ____________ |
| Average ping RTT | ____________ |
| Observed packet loss | ____________ |
| Traceroute responding hops | ____________ |
| DNS lookup result | ____________ |
Avoid publicly sharing complete network diagnostic output if it contains information about private networks, devices, or organizational infrastructure.
18. Common Misconceptions About the Internet
Reality: Extensive terrestrial and submarine optical fibre networks support long-distance Internet communication. Satellites provide additional connectivity capabilities.
Reality: Bandwidth and latency describe different properties. A high-capacity connection can still experience significant propagation or queuing delays.
Reality: Routing changes, load distribution, and interconnection policies can cause different packets to follow different paths.
Reality: Their conventional responsibilities differ. Routers forward packets between networks, while Ethernet switches typically forward frames within local link-layer networks.
Reality: One byte contains eight bits. A 100 Mbps connection has an ideal equivalent rate of 12.5 MB/s before considering overhead and other limitations.
Reality: Internet applications may communicate using TCP, UDP, QUIC, and other appropriate protocols.
Reality: DNS supplies domain name information, including address records. Network routing and forwarding mechanisms determine how packets travel towards destinations.
19. Technical Glossary
- Autonomous System (AS)
- An independently administered routing domain with defined routing policies.
- ASN
- Autonomous System Number.
- Backbone
- Major high-capacity network infrastructure supporting traffic transport.
- Bandwidth
- The data transmission capacity of a communication link in the digital networking context.
- BGP
- Border Gateway Protocol, used to exchange network reachability information.
- CDN
- Content Delivery Network.
- CIDR
- Classless Inter-Domain Routing.
- Default Gateway
- A router used to reach destinations without more specific available routes.
- Encapsulation
- The process of attaching protocol control information to data.
- Forwarding
- The process of sending a packet towards an appropriate next hop.
- Goodput
- The rate of successfully delivered useful application data.
- ICMP
- Internet Control Message Protocol.
- ISP
- Internet Service Provider.
- IXP
- Internet Exchange Point.
- Jitter
- Variation in packet delay.
- Latency
- The delay associated with communication.
- NAT
- Network Address Translation.
- Peering
- An arrangement between networks to exchange traffic directly.
- RTT
- Round Trip Time.
- Throughput
- The actual rate of successful data transfer.
- Transit
- A connectivity service through which a network reaches other networks.
- TTL
- Time to Live, an IPv4 field that limits packet forwarding lifetime.
20. Lesson Summary
- Internet architecture consists of physical infrastructure and logical communication mechanisms.
- Optical fibre networks, submarine cables, wireless infrastructure, and data centres support global connectivity.
- Access, distribution, and core networks perform different traffic transport responsibilities.
- Autonomous Systems exchange reachability information using protocols such as BGP.
- Internet Exchange Points enable direct traffic exchange between participating networks.
- Packet switching allows multiple communications to share network resources.
- The TCP/IP architecture organizes communication into application, transport, Internet, and link layers.
- Encapsulation attaches protocol-specific control information to transmitted data.
- IP addressing and routing enable packet delivery across interconnected networks.
- NAT allows certain private network communications to use shared external IPv4 addressing resources.
- Network performance is influenced by bandwidth, throughput, latency, packet loss, and jitter.
- CDNs distribute content delivery infrastructure to improve scalability and potentially reduce latency.
21. Assessment and Examination Questions
21.1 Very Short Answer Questions
Suggested marks: 1–2 marks each.
- Define Internet architecture.
- What is an Internet backbone?
- Expand ISP, ASN, IXP and BGP.
- Define packet switching.
- What is the purpose of a router?
- What is network encapsulation?
- Define latency.
- What is a default gateway?
- What is the purpose of NAT?
- Define throughput.
- What is a cache hit?
- How many bits are present in an IPv6 address?
- What is jitter?
- What is the purpose of the IPv4 TTL field?
- What is an Autonomous System?
21.2 Short Answer Questions
Suggested marks: 3–5 marks each.
- Differentiate between physical and logical Internet architecture.
- Explain the role of submarine communication cables.
- Differentiate between Internet transit and peering.
- Explain the benefits of Internet Exchange Points.
- Compare packet switching and circuit switching.
- Explain the purpose of data encapsulation.
- Differentiate between public and private IPv4 addressing.
- Explain the role of a default gateway.
- Differentiate between bandwidth, throughput, and goodput.
- Explain how a Content Delivery Network operates.
21.3 Long Answer Questions
Suggested marks: 8–10 marks each.
- Explain Internet architecture with a suitable diagram covering access, distribution, and core networks.
- Discuss the roles of Internet Service Providers, Autonomous Systems, and Internet Exchange Points in global Internet connectivity.
- Explain the four-layer TCP/IP architecture with suitable protocol examples.
- Describe data encapsulation and decapsulation using appropriate diagrams.
- Explain IP routing, forwarding, and longest prefix matching with a suitable example.
- Explain Network Address Translation and its advantages and limitations.
- Describe the journey of a web request from an end device to destination infrastructure.
- Discuss the factors influencing network performance, including relevant delay formulas.
21.4 Numerical Problems
- Calculate the transmission delay of a 2,000-byte packet over a 20 Mbps link.
- Calculate the propagation delay of a 1,000 km fibre path assuming a signal speed of 2 × 108 m/s.
- Estimate the ideal transfer time for a 750 MB file over a 50 Mbps connection. Use decimal units.
- A network sends 2,000 packets and loses 30 packets. Calculate the packet loss percentage.
- Calculate the conventional usable host capacity of an IPv4 /26 subnet.
- Calculate the bandwidth-delay product of a 200 Mbps connection with an RTT of 50 ms.
View Numerical Problem Solutions
-
Transmission delay: (2000 × 8) / 20,000,000 = 0.0008 seconds.
Answer: 0.8 ms.
-
Propagation delay: 1,000,000 / 200,000,000 = 0.005 seconds.
Answer: 5 ms.
-
Transfer time: (750 × 8) / 50 = 120 seconds.
Answer: 2 minutes.
-
Packet loss: (30 / 2000) × 100.
Answer: 1.5%.
-
Host bits: 32 - 26 = 6.
Conventional usable addresses: 26 - 2 = 62.
Answer: 62 host addresses.
-
BDP: 200,000,000 × 0.05 = 10,000,000 bits.
Answer: 1,250,000 bytes or 1.25 MB in decimal units.
21.5 Interactive Self-Assessment
Attempt each question before revealing the answer.
Question 1: Which protocol primarily exchanges routing information between Autonomous Systems?
- HTTP
- BGP
- SMTP
- DNS
Correct answer: B — BGP.
BGP communicates network reachability information and supports interdomain routing policies.
Question 2: Which delay is directly determined by packet length and link transmission rate?
- Propagation delay
- Processing delay
- Transmission delay
- Queuing delay
Correct answer: C — Transmission delay.
Transmission delay is calculated by dividing the packet length in bits by the link transmission rate.
Question 3: Which TCP/IP layer is responsible for logical IP addressing?
- Application
- Transport
- Internet
- Link
Correct answer: C — Internet Layer.
Question 4: How many conventional usable host addresses are available in a /24 IPv4 subnet?
- 128
- 255
- 256
- 254
Correct answer: D — 254.
Question 5: What is the ideal byte transfer rate of a 100 Mbps connection?
- 100 MB/s
- 12.5 MB/s
- 8 MB/s
- 50 MB/s
Correct answer: B — 12.5 MB/s.
Divide the bit transmission rate by eight to obtain the equivalent byte rate.
Question 6: Which technology allows several private IPv4 connections to share an external address using port mappings?
- DNS
- HTTP
- NAPT
- Ethernet switching
Correct answer: C — NAPT.
Question 7: Which technology can deliver cached website resources through distributed infrastructure?
- CDN
- ARP
- SMTP
- Subnet mask
Correct answer: A — CDN.
Question 8: Which measurement describes variation in packet delay?
- Bandwidth
- Goodput
- Jitter
- Address capacity
Correct answer: C — Jitter.
22. Frequently Asked Questions
Who controls Internet architecture?
No single organization controls the entire Internet. Independent network operators, standards organizations, resource coordination bodies, service providers, and other participants collectively contribute to its operation.
Does all Internet traffic pass through submarine cables?
No. Submarine cables are especially important for intercontinental communication. Traffic between nearby networks may remain within terrestrial infrastructure or local interconnection facilities.
Can Internet packets travel through different countries?
Yes. Depending on network connectivity, routing policies, and destination infrastructure, packets may cross multiple geographical regions. Not every Internet communication involves international connectivity.
Why is my Internet slow despite having high bandwidth?
Possible reasons include high latency, network congestion, wireless interference, overloaded servers, inefficient application behaviour, packet loss, or limitations elsewhere along the network path.
What is the difference between an IP address and a MAC address?
An IP address supports logical addressing and packet forwarding across networks. A MAC address is associated with link-layer communication in technologies such as Ethernet and Wi-Fi.
Does my device always have a public IP address?
No. Devices may use private IPv4 addresses, globally scoped IPv6 addresses, or other addressing arrangements. IPv4 NAT is frequently used in residential and organizational networks.
Does every router know the complete path to every website?
No. Routers generally maintain forwarding information that enables them to select an appropriate next hop. They do not need to know every physical device along the final communication path.
Can packets be lost even when TCP is used?
Yes. Packet loss can occur in the underlying network. TCP attempts to recover missing data using its reliability mechanisms. Communication can still fail if recovery becomes impossible.
Why are CDNs important for educational websites?
Educational websites may serve large numbers of students and deliver substantial quantities of images, documents, and videos. Distributed content delivery can reduce origin demand and potentially improve resource delivery performance.
Is a higher ping value better?
Generally, a lower round-trip time is preferable for interactive communication. However, ping measurements alone do not describe every aspect of application performance.
23. References and Further Reading
The following resources provide additional explanations, technical specifications, and educational material related to Internet architecture.
Internet Architecture and Infrastructure
- Internet Society. How the Internet Works.
- Internet Society. Who Makes the Internet Work: The Internet Ecosystem.
- Internet Society. What is an Internet Exchange Point?
- TeleGeography. Submarine Cable Map.
Technical Standards
- IETF. RFC 1122 — Requirements for Internet Hosts: Communication Layers.
- IETF. RFC 9293 — Transmission Control Protocol.
- IETF. RFC 768 — User Datagram Protocol.
- IETF. RFC 8200 — Internet Protocol, Version 6 Specification.
- IETF. RFC 4271 — A Border Gateway Protocol 4.
- IETF. RFC 1918 — Address Allocation for Private Internets.
- IETF. RFC 3022 — Traditional IP Network Address Translator.
- IETF. RFC 9000 — QUIC: A UDP-Based Multiplexed and Secure Transport.
- IETF. RFC 9114 — HTTP/3.
Network Performance and Educational Resources
- Cloudflare Learning Center. Understanding Network Latency.
- Cloudflare Learning Center. What is a Content Delivery Network?
- MDN Web Docs. How Does the Internet Work?
- James F. Kurose and Keith W. Ross. Computer Networking: A Top-Down Approach. Pearson.
- Andrew S. Tanenbaum, Nick Feamster and David J. Wetherall. Computer Networks. Pearson.
Comments
Post a Comment