Comprehensive Study Guide: Computer Networks Architecture, Protocols, and Performance
Fundamental Concepts of Computer Networks
Definition of a Computer Network:
- A computer network is defined as a group of interconnected computers and computing devices.
- The primary objective of a computer network is resource sharing among various connected devices, including hardware, software, files, and data services.
Web Request Communication Scenario:
- A client machine utilizes a web browser application to request a web page (e.g.,
www.course.com/index.html) hosted on a remote web server. - The process requires three sequential steps:
- Server Location: The client computer must locate the destination web server across the network.
- Protocol Establishment: Communication protocols governing rules and syntax are established between client and server.
- Request/Response Execution: The web request is transmitted, processed by the server, and the requested data is sent back.
- Hardware components, Operating System (OS) routines, and Network Applications on both host machines actively participate in this end-to-end communication sequence.
- A client machine utilizes a web browser application to request a web page (e.g.,
High-Level Abstraction Layers of Network Communication:
- Communication subsystems are organized into three primary high-level architectural layers:
- Hardware Level
- Operating System Level
- Application Level

Level 1: Hardware Level:
- Represents the foundational physical layer of communication.
- Physical links can be wired (network cabling) or unguided (wireless signals).
- Utilizes a Network Adapter, commonly termed a Network Interface Card (NIC).
- Each NIC contains a unique () Media Access Control (MAC) address hard-coded onto the card by the hardware manufacturer.
- MAC addresses are physically etched onto the hardware and serve to uniquely identify a computer on a local network segment.
Level 2: Operating System Level:
- Operating systems utilize Internet Protocol (IP) addresses to locate and route data to computers across global networks.
- An IP address is a logical identifier assigned to a network connection when established (e.g., IPv4 address or IPv6 address).
- MAC vs. IP Address Distinction:
- MAC Address: Used exclusively to locate a computer on a local area network (LAN).
- IP Address: Used to identify and locate a computer anywhere on the global Internet.
Level 3: Application Level:
- Most network applications follow a Client/Server model.
- Server Applications: Provide services (e.g., web server software, email server software).
- Client Applications: Consume services (e.g., Google Chrome, Internet Explorer, Microsoft Outlook).
- Servers listen for incoming client traffic at a predefined numerical port address (port number).
- A port number uniquely identifies a specific service or application process on a target computer host.
- Example: Addressing a web server by entering an IP address followed by a colon and the port number (e.g.,
192.168.1.1:80).
Computer Network Components
- Network Interface Card (NIC):
- Contains physical hardware addresses used by lower-layer protocols to deliver frames to correct network hosts.
- Wired NIC: Employs physical networking cables to transmit data signals.
- Wireless NIC: Utilizes antennas and radio frequency technology to transmit electromagnetic signals.

Hub:
- A basic networking device that connects multiple Ethernet devices, causing them to operate as a single shared network segment.
- Data Transmission (Broadcast): Inbound data packets arriving on one port are blindly repeated and broadcast to all other ports, regardless of the designated recipient.
- Duplex Mode: Operates strictly in half-duplex mode (devices cannot send and receive data simultaneously).
- Speed and Efficiency: High probability of network collisions, leading to reduced overall throughput and bandwidth degradation.
- Security: Poor security; data packets are exposed to all connected devices on the hub, enabling unauthorized packet capture.
- Use Case: Small, non-critical environments where speed and security are secondary.
Switch:
- An intelligent networking device that forwards incoming frames directly to the specific destination port.
- Data Transmission (Unicast): Maps MAC addresses to physical ports and sends frames exclusively to the port connected to the destination device.
- Duplex Mode: Supports full-duplex operation, enabling simultaneous bi-directional data transmission without collisions.
- Security: Enhanced security; frames are delivered strictly to the intended host port.
- Hardware Specifications: Typically manufactured with physical port densities of 4, 5, 8, 16, 24, or 48 ports.
- Use Case: Enterprise networks requiring high performance, privacy, and effective bandwidth management.
Transmission Cables and Connectors:
- Twisted Pair Cable: High-speed cabling capable of data transmission rates of or higher (e.g., Category 5e, Category 6).
- Coaxial Cable: Features a solid central conductor surrounded by insulation and metallic shielding; resembles television antenna wiring.
- Fibre Optic Cable: High-speed transmission medium that converts digital data into light pulses. Delivers significantly higher bandwidth over long distances compared to copper media. Highly immune to electromagnetic interference (EMI), but more expensive to deploy and splice.
Router:
- An intermediate networking device operating at the network layer to interconnect distinct, separate networks.
- Primary device used to connect Local Area Networks (LANs) to Wide Area Networks (WANs) or the global Internet.
- Performs packet routing and path selection based on logical IP destination addresses.
Features of Computer Networks
Communication Speed: Enables rapid, reliable, and high-speed interaction across distances (e.g., email, instant messaging, high-definition video conferencing).
File Sharing: Allows users across different workstations to share and transfer electronic files seamlessly over shared storage protocols.
Simplified Backup and Rollback: Files and databases are centralized on server hardware, allowing system administrators to schedule routine backups and perform data restorations efficiently from a central location.
Software and Hardware Resource Sharing:
- Software Sharing: Enterprise applications can be hosted centrally on a server and accessed by authorized workstations across the network.
- Hardware Sharing: Costly hardware peripherals (e.g., high-volume laser printers, storage arrays) are shared among many network clients.
Network Security: Network Operating Systems (NOS) enforce security protocols, managing access control lists (ACLs), user authentication, file permissions, and data privacy.
Scalability: The capacity to expand network infrastructure by seamlessly adding new hardware nodes, switches, users, and bandwidth capacity without disrupting existing communication.
Transmission Modes
Transmission Mode Definition: The direction of signal and data flow between two interconnected devices over a communication channel (also referred to as communication mode).
Simplex Mode:
- Communication is strictly unidirectional.
- Data flows in only one direction across the physical link.
- A device can either transmit only or receive only; it cannot perform both actions.
- Bandwidth Utilization: Station utilizes the total bandwidth of the communication channel for single-direction transmission.
- Disadvantage: Complete absence of bi-directional interaction or receipt acknowledgment.
- Example: Radio broadcasting stations transmitting signals to radio receivers.

- Half-Duplex Mode:
- Communication is bi-directional, but devices cannot send and receive data at the same time.
- Hosts must take turns transmitting over the shared channel.
- When host A is transmitting, host B must listen (channel occupied); simultaneous transmission causes signal collision and data corruption.
- Bandwidth Utilization: Entire channel bandwidth is allocated to whichever device is actively transmitting.
- Disadvantage: Delays introduced while waiting for the channel to become clear.
- Example: Walkie-talkies operating on a shared frequency channel.

- Full-Duplex Mode:
- Communication is fully bi-directional and simultaneous.
- Both connected stations can send and receive data streams at the same time.
- Channel capacity is divided between transmitter and receiver circuits (or uses separate physical pairs/frequencies).
- Advantage: Zero waiting time; maximum operational efficiency.
- Disadvantage: Requires more complex physical layer hardware and signal processing.
- Example: Modern telephone systems and switched Ethernet networks.

Computer Network Architectures
- Definition: Computer Network Architecture defines the physical and logical layout of software, hardware, protocols, and transmission media in a network.

Client/Server Architecture:
- A centralized network design where client machines request services and resources from dedicated, high-performance central computers called servers.
- Servers manage core operations including network security, directory services, administrative policies, and file systems.
- Inter-client communication occurs through the central server.
- Advantages:
- Centralized management and security administration.
- Robust access control, user authentication, and system monitoring.
- High server processing power capable of handling large request volumes.
- Ensured data integrity, consistency, and simplified server-side backups.
- Disadvantages:
- High initial cost for server hardware and operating system licensing.
- Single Point of Failure (SPOF): Server downtime halts network-wide resource access.
- Scalability requires continuous capital investment in server hardware upgrades.
- Potential performance bottlenecks during peak request traffic.
Peer-to-Peer (P2P) Architecture:
- A decentralized network layout where every connected node (peer) holds equal privileges, administrative rights, and responsibilities.
- Contains no centralized or dedicated server.
- Typically recommended for smaller networks containing up to 10 nodes.
- Advantages:
- Highly cost-effective; eliminates expensive server hardware and specialized OS licenses.
- Direct resource sharing (files, bandwidth, storage) between peers.
- Fault-tolerant; single-node failure does not bring down the rest of the network.
- Distributed traffic load minimizes central bottlenecks.
- Disadvantages:
- Complex decentralized security; each peer can expose vulnerabilities.
- Difficult administrative control over data backups and file version consistency.
- Variable performance depending on individual peer device specifications.
- Scaling increases network coordination overhead and traffic broadcast volume.
Network Types by Geographic Scale
Personal Area Network (PAN):
- Coverage Range: Up to (typically centered within a person's immediate workspace).
- Device Scale: Small, typically 2 to 10 devices.
- Components: Laptops, smartphones, tablets, smartwatches, wireless headphones, Bluetooth peripherals.
- Use Case: Syncing personal mobile devices, peripheral connectivity.
Local Area Network (LAN):
- Coverage Range: Single room, home, office suite, or an entire office building.
- Device Scale: 2 to 20 devices (home networks) up to thousands of endpoints (enterprise office LANs).
- Speed: High data transfer rates ranging from to .
- Components: Ethernet cabling, Wi-Fi Access Points, network switches, routers.
- Use Case: Local printer, server, and file sharing.
Metropolitan Area Network (MAN):
- Coverage Range: Spans an entire city or large university campus (up to ).
- Speed: Moderate to high speeds, frequently utilizing regional fiber-optic backbones.
- Components: Enterprise routers, metropolitan optical switches, optical fiber infrastructure.
- Use Case: Connecting municipal administrative offices, public library systems, or multi-campus university sites.
Wide Area Network (WAN):
- Coverage Range: Covers vast geographical spans across regions, nations, or global continents.
- Speed: Variable speed depending on transmission technologies (e.g., leased lines, fiber backbones, satellite links).
- Components: High-end core routers, satellite transceivers, undersea optical cables.
- Use Case: Multinational enterprise interconnections, global Internet backbones.
Network Classification Examples:
- Bluetooth file transfer between phone and laptop: PAN
- Office network sharing printers and local files on a floor: LAN
- University interconnecting multi-campus networks across a city: MAN
- International enterprise linking offices in New York, London, and Tokyo via leased lines: WAN
- Smart home Bluetooth control of lighting and security: PAN
- Internal hospital network sharing patient records across departments in a building: LAN
- City government fiber network connecting libraries and public offices: MAN
- Branch office accessing central database in another country via the Internet: WAN
- Small office Wi-Fi router connecting laptops, desktops, and printers on a single floor: LAN
Network Topologies
Point-to-Point Topology:
- The simplest topology, consisting of a direct, dedicated physical connection between exactly two nodes.
- Implemented using a single dedicated cable (e.g., two PCs connected via Unshielded Twisted Pair (UTP) cable with RJ-45 connectors).
Bus Topology:
- Nodes connect to a shared central cable known as the backbone cable or bus via individual drop lines and taps.
- Uses Bayonet Neill-Concelman (BNC) connectors to attach network cables to host NIC cards.
- Terminators: Essential hardware devices attached to both open ends of the physical bus. Terminators absorb electrical signals when they reach the end of the cable, preventing signal reflection (standing waves) which causes signal corruption.

- Token Bus Topology:
- Combines physical bus cabling with a logical token ring pass mechanism.
- A special control frame called a token circulates sequentially among nodes in a fixed logical sequence.
- Only the host currently holding the token is permitted to transmit data frames over the physical bus medium.

- Ring Topology:
- Each node connects sequentially to exactly two neighboring nodes, forming a closed continuous ring.
- Data frames flow sequentially in a single direction around the ring (half-duplex mode).
- Does not require cable terminators because the cable loop is closed.
- Offers higher operational speeds compared to bus topologies, but a break in the ring breaks the entire network segment unless redundant dual rings are used.

- Star Topology:
- The most prevalent modern LAN topology.
- All host nodes connect via individual dedicated cable runs to a central central point (typically an Ethernet switch).
- No direct physical connections exist between workstation endpoints.
- Traffic is received by the central switch and forwarded directly to the destination node's port.
- Fault Isolation: Cable damage on a single host line isolates only that host; the remaining network functions uninterrupted.

- Tree Topology:
- A hierarchical layout extending the star topology by cascading multiple switches together in a branching structure.
- Workstations attach to leaf switches, which link to intermediate distribution switches, culminating at a central root switch.
- Failure Impact:
- Failure of a single endpoint host affects only that host.
- Failure of a branch switch takes down its subordinate connected segment.
- Failure of the central root switch isolates sub-branches from each other, though internal local communication within individual branch switches remains functional.

Network Security Principles, Threats, and Case Studies
Core Security Principles (CIA Triad):
- Confidentiality: Assures that sensitive data is accessible strictly to authorized entities. Primary enforcement mechanism: Data Encryption.
- Integrity: Guarantees that data remains unaltered, accurate, and authentic during transit and storage. Primary enforcement mechanisms: Cryptographic Hash Functions (e.g., SHA-256) and Digital Signatures.
- Availability: Ensures network services, bandwidth, and resources remain continuously accessible to legitimate users when needed. Enforcement focus: Preventing Denial of Service (DoS) attacks and system redundancies.
Common Cyber Threats:
- Malware: Malicious software binaries (viruses, computer worms, Trojan horses, ransomware) designed to infect, corrupt, or exfiltrate host data.
- Phishing: Deceptive social engineering attacks disguising as trustworthy entities to trick users into revealing credentials or sensitive data.
- Man-in-the-Middle (MitM) Attacks: Secretly intercepting, eavesdropping on, or altering active communication sessions between two unsuspecting network endpoints.
- Denial of Service (DoS / DDoS): Flooding target network interfaces or servers with automated traffic to exhaust system resources and deny access to legitimate traffic.
Key Defensive Controls:
- Firewalls: Hardware or software appliances enforcing rule-based inspection of incoming and outgoing traffic to isolate trusted networks from untrusted networks.
- IDS / IPS: Intrusion Detection Systems monitor traffic for malicious patterns; Intrusion Prevention Systems actively drop inline malicious packets.
- Virtual Private Networks (VPNs): Establish encrypted tunnels over untrusted public networks to secure data confidentiality for remote clients.
- Network Segmentation: Isolating network zones into subnets to prevent lateral threat movement during a security breach.
- Zero Trust Architecture: Modern security framework based on the mandate: "Never Trust, Always Verify", requiring strict identity verification for every host and user attempting resource access.
Historical Security Case Studies:
- WannaCry Ransomware (2017):
- Targeted Microsoft Windows systems globally using the leaked NSA
EternalBlueexploit targeting the SMBv1 protocol vulnerability. - Encrypted system storage, demanding Bitcoin ransom payments.
- Infected over computers across 150 nations, severely disrupting critical infrastructure including the UK National Health Service (NHS).
- Equifax Data Breach (2017):
- Threat actors exploited an unpatched security vulnerability in the open-source Apache Struts web framework.
- Compromised private personal identification records (Social Security numbers, birth dates, home addresses) of approximately individuals.
- Target Corporate Breach (2013):
- Hackers compromised credentials from a third-party Heating, Ventilation, and Air Conditioning (HVAC) vendor.
- Inadequate network segmentation enabled lateral network traversal from vendor systems to Point-of-Sale (POS) networks, compromising payment card records of customers.
- Yahoo Data Breaches (2013–2014):
- Spear phishing and weak security procedures led to compromise of all registered global user accounts, exposing user names, email addresses, security questions, and hashed credentials.
- Stuxnet Worm (2010):
- Sophisticated cyber weapon taking advantage of multiple Windows zero-day vulnerabilities and Siemens Industrial Control System (ICS) software flaws.
- Specially designed to target SCADA systems at Iran's Natanz nuclear enrichment facility, physically destroying centrifuges by altering motor rotational speeds.
Network Models and Layered Architecture Principles
Rationale for Layered Architecture:
- Historical network implementations utilized monolithic, unstructured code bases that were difficult to debug, scale, or maintain.
- Divide-and-Conquer Strategy: Complex networking functions are abstracted into structured, manageable, and self-contained functional layers.
- Modularity and Layer Independence: Layers interact with adjacent layers through well-defined service interfaces. Internal layer implementations can be modified or upgraded without impacting adjacent layers.
Core Elements of Layered Architecture:
- Service: Specific set of operations and capabilities provided by a given layer to the layer directly above it.
- Protocol: Formal set of rules, syntax, and message exchange sequences used by peer entities operating at the same layer across different hosts.
- Interface: Boundary mechanism through which data primitives and control information pass vertically between adjacent layers on the same host machine.
The Open Systems Interconnection (OSI) Reference Model
- Overview: Formulated by the International Organization for Standardization (ISO) in 1984 as a 7-layer theoretical reference framework for computer network communication.

- OSI Model Layers (Bottom to Top):
- Layer 1: Physical Layer
- Responsible for bit-level transmission across physical media.
- Specifications include voltage levels, clock timing, physical connector types, line configuration, signal encoding, and transmission modes (simplex, half-duplex, full-duplex).
- Layer 2: Data Link Layer
- Provides reliable node-to-node frame transfer over the physical layer.
- Key functions: Framing (packaging raw bits into structured frames), Physical Addressing (inserting source and destination MAC addresses), Error Control (adding Cyclic Redundancy Check (CRC) trailers to detect bit errors), and Access Control (media access rules for shared links).
- Layer 3: Network Layer
- Handles host-to-host internetwork delivery across different networks.
- Key functions: Logical Addressing (assigning unique IP addresses), Routing (computing optimal end-to-end paths across intermediate routers), and Packetizing (encapsulating transport segments into IP packets).
- Layer 4: Transport Layer
- Ensures end-to-end process-to-process message delivery and reliability.
- Key functions: Service-Point Addressing (assigning source and destination port numbers), Segmentation & Reassembly (splitting large payloads into numbered segments with sequence numbers), Flow Control (preventing receiver buffer overflow), and Connection Management.
- Layer 5: Session Layer
- Manages communication sessions between network applications.
- Handles session establishment, maintenance, graceful termination, and session checkpointing for recovery during transfer failures.
- Layer 6: Presentation Layer
- Manages data formatting, syntax mapping, and data representation.
- Key functions: Data Translation (converting between character sets/encodings like ASCII and EBCDIC), Encryption/Decryption, and Data Compression.
- Layer 7: Application Layer
- Provides software service interfaces directly to user applications.
- Services include File Transfer, Access, and Management (FTAM), Directory Services (DNS), and Electronic Mail services (SMTP).
The TCP/IP Protocol Suite
- Overview: The practical 4-layer operational model of the global Internet, developed prior to the OSI model.

- TCP/IP Layers & Protocols:
- Network Interface Layer (Combines OSI Physical and Data Link Layers):
- Encapsulates IP datagrams into hardware frames and maps IP addresses to physical MAC addresses.
- Protocols: Ethernet, Token Ring, Wi-Fi ().
- Network/Internet Layer:
- Internet Protocol (IP): Core connectionless protocol providing logical host addressing, datagram routing, and fragmentation.
- Address Resolution Protocol (ARP): Resolves known IPv4 addresses to unknown physical MAC addresses.
- ARP Request: Broadcast frame sent to all hosts on the local network.
- ARP Reply: Unicast frame returned by the host possessing the matching IP address, returning its MAC address.
- Internet Control Message Protocol (ICMP): Diagnostic and error-reporting protocol used by hosts/routers to signal delivery failures (e.g., link down, host unreachable, TTL expired).
- Transport Layer:
- Transmission Control Protocol (TCP):
- Connection-oriented, highly reliable transport protocol.
- Establishes a virtual circuit before transmission using a 3-way handshake.
- Guarantees ordered delivery using sequence numbers, acknowledgments (ACKs), error detection, and automatic retransmissions.
- User Datagram Protocol (UDP):
- Connectionless, lightweight, and unreliable transport protocol.
- Does not guarantee packet delivery, ordering, or flow control.
- Low overhead; optimized for real-time streaming, voice, and quick request-response queries.
- Application Layer (Combines OSI Application, Presentation, and Session Layers):
- Protocols supporting network processes:
- HTTP (Hypertext Transfer Protocol): Transfers hyperlinked web data.
- DNS (Domain Name System): Distributed database resolving human-readable domain names to IP addresses.
- DHCP (Dynamic Host Configuration Protocol): Automatically assigns IP addresses, subnet masks, default gateways, and DNS settings to joining devices.
- SMTP (Simple Mail Transfer Protocol): Relays electronic mail messages between mail servers.
Internet Protocol Version 4 (IPv4) Addressing, Subnetting, and NAT
IPv4 Datagram Header Format:
- Standard header length without options is ().
- Header Fields:
- Version (): Identifies protocol version (
4for IPv4). - IHL (Internet Header Length) (): Defines header length in words (minimum value
5= ). - Type of Service (ToS) (): Specifies packet priority and Quality of Service (QoS).
- Total Length (): Complete size of IPv4 datagram (header + payload) in bytes (maximum ).
- Identification (): Unique ID assigned to datagram to enable fragment reassembly.
- Flags (): Control bits including Don't Fragment (DF) and More Fragments (MF).
- Fragment Offset (): Indicates offset position of fragment relative to original unfragmented payload in units.
- Time to Live (TTL) (): Hop counter decremented by 1 at each router; packet dropped when
TTL = 0to prevent infinite routing loops. - Protocol (): Identifies upper-layer transport protocol (e.g.,
6for TCP,17for UDP). - Header Checksum (): Error-detection value computed over header fields.
- Source IP Address (): Global IP address of sender.
- Destination IP Address (): Global IP address of destination.
IPv4 Datagram Fragmentation and Reassembly:
- Occurs when an IP datagram size exceeds the Maximum Transmission Unit (MTU) of an underlying intermediate link.
- Reassembly is performed exclusively at the final destination host.
- Fragment offsets are scaled in multiples of ().
- Example: A transport payload originating on a host crosses a Token Ring LAN () into an Ethernet LAN ().
- On Ethernet (), each fragment contains a IP header and a maximum of of payload.
- The payload is fragmented into payloads of , each encapsulated in a frame.

- Class-Based IPv4 Addressing Schemes:

Class A:
- Leading bits:
0 - Network ID: ; Host ID:
- First octet range:
1.0.0.0to126.0.0.0(127.x.x.xreserved for loopback) - Total networks: ; Usable hosts per network:
- Leading bits:
Class B:
- Leading bits:
10 - Network ID: ; Host ID:
- First octet range:
128.0.0.0to191.255.0.0 - Total networks: ; Usable hosts per network:
- Leading bits:
Class C:
- Leading bits:
110 - Network ID: ; Host ID:
- First octet range:
192.0.0.0to223.255.255.0 - Total networks: ; Usable hosts per network:
- Leading bits:
Class D:
- Leading bits:
1110(Multicast addressing, ) - Range:
224.0.0.0to239.255.255.255
- Leading bits:
Class E:
Leading bits:
1111(Reserved for experimental/future use)Range:
240.0.0.0to255.255.255.255Special IP Address Reserved Conventions:
Host ID = All 0s: Represents the Network Address itself (e.g.,
192.168.1.0).Host ID = All 1s: Direct Broadcast Address for that specific network (e.g.,
192.168.1.255).255.255.255.255: Limited Broadcast Address (broadcasts to all hosts on local network, not routed).0.0.0.0: Represents "This Host" or default unassigned route.127.0.0.0/8: Loopback network address block used for internal software testing on the local machine.- Subnetting Concepts and Subnet Masks:
Subnetting divides a assigned single network block into smaller internal logical networks (subnets).
Borrow bits from Host ID field to create Subnet ID field:
Subnet Mask: Binary mask indicating network/subnet bits (
1s) vs. local host bits (0s).- Classless Inter-Domain Routing (CIDR):
Replaced classful addressing to slow IPv4 address exhaustion.
Notation format:
w.x.y.z / n, where/n(prefix length) explicitly defines the number of leading network bits.Example: An organization allocated 1000 host addresses receives a block of addresses, requiring 10 host bits. Prefix length = bits (
/22). Mask =255.255.252.0.- Network Address Translation (NAT):
Translates private local IP addresses into a single public IP address for Internet transit.
Private Address Ranges (RFC 1918):
10.0.0.0to10.255.255.255(10.0.0.0/8)172.16.0.0to172.31.255.255(172.16.0.0/12)192.168.0.0to192.168.255.255(192.168.0.0/16)
NAT Operation: The NAT router re-writes the source IP address and source port number of outbound packets with its public IP address and a dynamically assigned NAT port, maintaining a NAT Translation Table to route returning packets back to the original internal host.

The Internet Structure, Edge, Core, and Media
Internet Components:
- Network Edge: End systems / Hosts (clients, servers, IoT devices) running network applications.
- Access Networks: Wired and wireless communication links connecting end systems to edge routers.
- Network Core: Mesh of interconnected intermediate routers and packet switches.
Physical Transmission Media:
- Guided Media (Signals propagate through solid physical boundaries):
- Twisted Pair (TP): Copper wiring. Category 5e (), Category 6 ().
- Coaxial Cable: Concentric copper conductors, bidirectional broadband supporting multiple channels ( per channel).
- Fiber Optic Cable: Glass fibers transmitting light pulses; high speed () with low attenuation and error rates.
- Unguided Media (Signals propagate freely through atmosphere/space):
- Terrestrial Wireless / Wi-Fi: ( over bands).
- Cellular Networks: 4G/5G wide-area access ().
- Satellite Links: Up to per channel.
Internet Hierarchy and Architecture:
- Access ISPs connect to Regional ISPs.
- Regional ISPs connect to Tier-1 Commercial ISPs (e.g., AT&T, Sprint) providing global transit coverage.
- Internet Exchange Points (IXPs): Shared physical infrastructures where ISPs and content provider networks connect directly to exchange traffic (peering).
- Content Provider Networks: Private networks (e.g., Google, Facebook) connecting datacenters directly to regional ISPs, bypassing Tier-1 providers.
Bits vs. Bytes Unit Conversions:
Packet Switching vs. Circuit Switching

Circuit Switching:
- Dedicated end-to-end circuit resources (bandwidth, channels) are strictly reserved for the duration of a session.
- Zero resource sharing; guarantees performance but results in idle resource waste during silent periods.
- Multiplexing Techniques:
- Frequency Division Multiplexing (FDM): Physical frequency spectrum is divided into narrow frequency channels assigned to calls.
- Time Division Multiplexing (TDM): Time is segmented into recurring time slots assigned to individual calls.
Packet Switching:
- Messages are segmented into discrete units called packets of length .
- Uses Store-and-Forward transmission: an intermediate router must receive the entire packet before transmitting it onto the next link.
- Highly efficient for bursty data traffic through dynamic resource sharing.
- Disadvantage: Buffer overflow leads to queueing delays and packet loss during congestion.
- Core Functions:
- Forwarding: Local action moving arriving packets from input interface to appropriate output interface based on a local forwarding table.
- Routing: Global action determining optimal end-to-end paths taken by packets using routing algorithms.
Network Performance Metrics: Delays, Loss, Throughput, and Link Utilization
Nodal Delay Components:
- Total Nodal Delay is expressed mathematically as:
- Processing Delay ():
- Time required by a router to inspect packet headers, check for bit-level errors, and determine the output link.
- Typically microsecond () level.
- Queuing Delay ():
- Time spent waiting in the output buffer for transmission.
- Depends on traffic congestion; ranges from microseconds to milliseconds.
- Transmission Delay ():
- Time needed to push all bits of a packet onto the physical medium.
- Formula: Where is packet length in bits and is link transmission rate in bits per second ().
- Propagation Delay ():
- Time required for a single bit to travel across the physical medium from source to destination.
- Formula: Where is link distance in meters and is propagation speed in physical medium ().
Packet Loss:
- Routers possess finite buffer capacities.
- When a packet arrives at a router whose buffer queue is completely full, the packet is discarded (dropped).
- Dropped packets may be retransmitted by transport protocols (e.g., TCP) or dropped entirely (e.g., UDP).
End-to-End Delay Across Identical Links:
- For an uncongested path containing links ( intermediate routers):
Throughput:
- Rate () at which data is transferred from sender to receiver.
- Average Throughput Formula: Where is file size in bits and is total transfer time in seconds.
- Bottleneck Link: The link on an end-to-end path that constrains overall throughput, mathematically defined as:
Worked Examples and Computational Problems
Problem 1: Computing One-Hop Transmission Delay:
- Scenario: A router transmits packets of length over a link with transmission rate .
- Calculation:
Problem 2: Computing Propagation Delay:
- Scenario: Packet length , link distance , propagation speed , link rate .
- Propagation Delay Calculation:
- Transmission Delay Calculation:
- Independence Check: Propagation delay depends only on distance and propagation speed ; it is completely independent of packet length and transmission rate .
Problem 3: Multi-Link End-to-End Throughput and File Transfer Time:
- Scenario: Path consists of 3 links with rates , , and . File size .
- Part A (Throughput):
- Part B (Transfer Time):
- Part C (Reduced Link Rate ):
Problem 4: End-to-End Delay Calculation across Heterogeneous Links:
- Scenario:

- Packet size , speed , processing/queuing delays = 0.
- Link 1: ,
- Link 2: ,
- Link 3: , Transmission Delays:
Propagation Delays:
Total End-to-End Delay:
- Problem 5: Shared Bottleneck Link and Utilization:
Scenario:

- 4 Server-Client pairs share a middle link .
- Server links .
- Client links .
- Part A (Achievable End-to-End Throughput per Pair):
- Middle link rate share per pair = .
- End-to-End Throughput =
- Part B (Bottleneck Link):
- Bottleneck link is the shared middle link (capacity limits throughput to ).
- Part C (Server Link Utilization ):
- Part D (Client Link Utilization ):
- Part E (Shared Link Utilization ):