Networking, Internet & Communication Protocols
Computer networking enables distributed data transmission, resource sharing, and global internet communication across interconnected hardware nodes. Network architectures are classified into Local Area Networks (LAN), Metropolitan Area Networks (MAN), and Wide Area Networks (WAN), organized across star, ring, bus, and mesh topologies. Data communication standards follow the 7-layer Open Systems Interconnection (OSI) reference model—Physical, Data Link, Network, Transport, Session, Presentation, Application—and the practical 4-layer TCP/IP protocol suite. Key protocols include IPv4/IPv6 for network packet routing, TCP and UDP for transport reliability, DNS for domain name resolution, and HTTP/HTTPS for encrypted web communications.
Key Concepts & Examination Highlights
- The OSI (Open Systems Interconnection) reference model, developed by the ISO in 1984, defines 7 architectural layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
- Transmission Control Protocol (TCP) is a connection-oriented, reliable protocol providing guaranteed packet delivery, whereas User Datagram Protocol (UDP) is a connectionless, low-latency protocol.
- IPv4 addresses are 32-bit numeric values written in dotted-decimal format (e.g., 192.168.1.1), while IPv6 uses 128-bit hexadecimal addresses to dramatically expand available address space.
- The Domain Name System (DNS) translates human-readable domain names (such as example.com) into numerical IP addresses required for routing network packets.
- User Datagram Protocol (UDP) is a connectionless, lightweight transport layer protocol that transmits packets without requiring handshakes, acknowledgments, or guaranteed packet delivery.
- Dynamic Host Configuration Protocol (DHCP) automatically assigns dynamic IP addresses, default gateways, and subnet masks to network client devices upon connection.
- Hypertext Transfer Protocol Secure (HTTPS) encrypts web traffic using Transport Layer Security (TLS/SSL) over TCP port 443, whereas unencrypted HTTP operates over port 80.
- Simple Mail Transfer Protocol (SMTP, port 25/587) sends outgoing emails, while Post Office Protocol 3 (POP3, port 110) and Internet Message Access Protocol (IMAP, port 143) retrieve incoming emails.
- A MAC (Media Access Control) address is a unique 48-bit physical hardware identifier assigned to a Network Interface Card (NIC) at the Data Link Layer (Layer 2).
- Address Resolution Protocol (ARP) resolves known IP addresses (Layer 3) to corresponding physical MAC addresses (Layer 2) on a local area network.
- Routers operate primarily at the Network Layer (Layer 3) to route packets across disparate networks, whereas switches operate at the Data Link Layer (Layer 2) using MAC address tables.
- In the 7-layer OSI model, Layer 1 is Physical, Layer 2 is Data Link, Layer 3 is Network, Layer 4 is Transport, Layer 5 is Session, Layer 6 is Presentation, and Layer 7 is Application.
- The TCP three-way handshake establishes a reliable network connection between client and server through a sequence of SYN (synchronize), SYN-ACK (synchronize-acknowledge), and ACK (acknowledge) packets.
- TCP provides flow control using a sliding window protocol and congestion control using algorithms like Slow Start, Congestion Avoidance, Fast Retransmit, and Fast Recovery.
- Border Gateway Protocol (BGP) is the standardized exterior gateway routing protocol that manages routing decisions and path reachability across Autonomous Systems (AS) on the global Internet.
- Open Shortest Path First (OSPF) is an interior gateway link-state routing protocol that uses Dijkstra's algorithm to calculate the shortest mathematical path through an autonomous IP network.
- Internet Control Message Protocol (ICMP) operates at the Network Layer (Layer 3) to transmit diagnostic and error messages, forming the operational basis of network diagnostic utilities like
pingandtraceroute. - Network Address Translation (NAT) maps multiple private IP addresses on a local area network to a single public IP address, conserving IPv4 addresses and providing perimeter security.
- Subnet masking divides an IP network into smaller logical subnetworks, where a subnet mask like 255.255.255.0 (/24) allocates 24 bits for the network prefix and 8 bits for host addresses.
- File Transfer Protocol (FTP) operates over TCP ports 20 (data transfer) and 21 (control commands), while Secure File Transfer Protocol (SFTP) encrypts data and commands over SSH on port 22.
- Secure Shell (SSH) is a cryptographic network protocol operating over TCP port 22 for secure remote command-line login, remote execution, and file transfers over insecure networks.
- Telnet is a legacy terminal emulation protocol operating over TCP port 23 that transmits authentication credentials and commands in plain, unencrypted text.
- Dynamic DNS (DDNS) automatically updates DNS records in real time when a router or device's assigned public IP address changes dynamically from an ISP.
- Virtual Local Area Networks (VLANs), standardized under IEEE 802.1Q, partition a physical Layer 2 network switch into multiple isolated logical broadcast domains.
- Content Delivery Networks (CDNs) deploy geographically distributed proxy servers and edge caches to deliver web content, media streaming, and static assets to users with reduced latency.
- The Internet Protocol suite (TCP/IP) model is structured into four conceptual layers: Network Access (Link), Internet, Transport, and Application.
- Classful IPv4 addressing historically divided the 32-bit address space into Class A (/8), Class B (/16), Class C (/24), Class D (Multicast: 224.0.0.0/4), and Class E (Experimental).
- Classless Inter-Domain Routing (CIDR), introduced in 1993, replaced classful IP addressing with variable-length subnet masking (VLSM) notation (e.g., 192.168.1.0/24) to optimize address allocation.
- Private IP address ranges reserved under RFC 1918 are 10.0.0.0/8 (Class A), 172.16.0.0/12 (Class B), and 192.168.0.0/16 (Class C), which are not routable on the public Internet.
- Loopback address in IPv4 is 127.0.0.1 (localhost) and in IPv6 is ::1, used by a host to send network traffic back to itself for internal application testing.
- Link-local addresses in IPv4 are assigned automatically in the 169.254.0.0/16 range via Automatic Private IP Addressing (APIPA) when DHCP servers are unreachable.
- IPv6 addresses comprise eight groups of four hexadecimal digits separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334), supporting unique addresses.
- In IPv6, leading zeros within a 16-bit block can be omitted, and consecutive sections of zeros can be compressed once per address using a double colon (
::). - Dual-stack networking enables network routers and host devices to run IPv4 and IPv6 protocol stacks concurrently to facilitate smooth global protocol migration.
- The maximum transmission unit (MTU) defines the largest data packet size (typically 1,500 bytes for standard Ethernet) that can be transmitted over a physical network layer without fragmentation.
- TCP uses sequence numbers and acknowledgment numbers to reassemble packets arriving out of order and ensure reliable, byte-stream packet delivery.
- TCP connection termination utilizes a four-way handshake sequence consisting of FIN, ACK, FIN, and ACK packets between communicating endpoints.
- Network topologies describe the physical or logical layout of interconnected nodes, including Star, Bus, Ring, Mesh, Tree, and Hybrid network configurations.
- A Star topology connects all network nodes to a central hub or switch, where a failure of a single cable affects only that node, but central switch failure downs the entire LAN.
- A Mesh topology connects every node directly to every other node ( connections in full mesh), providing maximum redundancy and fault tolerance at high cabling cost.
- Ethernet is standardized under IEEE 802.3, defining physical layer and data link layer frame formats (preamble, SFD, destination MAC, source MAC, EtherType, payload, and FCS).
- Carrier Sense Multiple Access with Collision Detection (CSMA/CD) is the legacy media access control protocol used on shared-bus Ethernet networks to detect transmission collisions.
- Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) is the media access control mechanism used in wireless Wi-Fi (IEEE 802.11) networks to prevent transmission collisions.
- A collision domain is a network segment where data packets can collide with one another when sent simultaneously, isolated by switches and routers but shared by legacy hubs.
- A broadcast domain is a logical division of a computer network in which all nodes can reach each other by broadcast at the data link layer, bounded by routers and VLANs.
- Spanning Tree Protocol (STP), standardized under IEEE 802.1D, prevents bridging loops and broadcast storms on redundant Layer 2 switched networks by disabling duplicate paths.
- Network Time Protocol (NTP, UDP port 123) synchronizes computer clocks across packet-switched, variable-latency data networks to millisecond precision with UTC.
- Simple Network Management Protocol (SNMP, UDP port 161) collects and organizes information about managed devices (routers, switches, servers) using Management Information Bases (MIBs).
- Real-time Transport Protocol (RTP) and Session Initiation Protocol (SIP, port 5060) are standard application-layer protocols used to deliver real-time audio and video streams over IP networks.
- QUIC is a modern transport layer network protocol designed by Google and standardized by the IETF (RFC 9000) that operates over UDP to reduce connection establishment latency for HTTP/3.
Sample Solved Questions & Concept Explanations
8 Verified Concept QuestionsIn the 7-layer OSI (Open Systems Interconnection) reference model, which layer is responsible for end-to-end process-to-process communication, error recovery, and flow control using protocols like TCP and UDP?
What are the standard default port numbers assigned for unencrypted HTTP and encrypted HTTPS web traffic respectively?
How many total bits are used in an IPv4 address compared to a next-generation IPv6 address?
What is the primary role of the Domain Name System (DNS) on computer networks and the global internet?
What is the standard length and format of a hardware Media Access Control (MAC) address assigned to network interface cards (NICs)?
Which network protocol automatically assigns dynamic IP addresses, subnet masks, default gateways, and DNS server configurations to client devices on a local network?
What is the three-step sequence of control packets exchanged between client and server to establish a reliable TCP connection?
At which layer of the OSI reference model do traditional network switches operate when forwarding frames using physical MAC address tables?