Network protocol
A network protocol is a system that allows multiple protocols of a communication system to transmit datas.
A network protocol is a system that allows multiple protocols of a communication system to transmit datas.
Networks protocols can be categorized into 3 types:
[2] Communication protocols are crucial such that computer networks can't operate without them. They handle syntax, sematnics, error detection, synchronization, and authentication.
Hypertext Transfer Protocol (HTTP) transfers hypertext data between systems on the World Wide Web, HTTP operates at the application layer.
Model: Functions on a client-server architecture (e.g., browser to web server).
Main use: Standard protocol for loading web pages and transferring hypertext.
State: Stateless, meaning it does not retain session information between requests.
Security: Inherently insecure; requires HTTPS (SSL/TLS) for data encryption and security.
[2] Transmission control protocol (TCP) is a connection-oriented protocol that ensures reliable, ordered, and error-checked delivery of data between applications.
Connection Establishment: Uses a three-way handshake (SYN, SYN-ACK, ACK) to create a session before data is sent.
handshake (network): automated negotiation process establishing secure communication link between 2 devices
Reliability: Employs sequenced acknowledgments to track received packets and re-transmit lost ones.
Data Integrity: Includes built-in error detection and flow control to prevent the sender from overwhelming the receiver.
Sequencing: Guarantees that data packets arrive and are reassembled in the exact order they were sent.
[2] User Datagram Protocol (UDP) is a connectionless protocol for high-speed transmission where low latency is prioritized over data integrity.
Connectionless: Sends data immediately without a formal "handshake," reducing initial latency.
Minimal Overhead: Lacks reliability mechanisms like error recovery, flow control, or retransmission, making it much faster than TCP.
Unreliable Delivery: Does not guarantee that packets will arrive in order or arrive at all (best-effort delivery).
Efficiency: Ideal for applications that can tolerate occasional data loss without failing.
[2] Border Gateway Protocol (BGP) is the standardized exterior gateway protocol designed to exchange routing and reachability information between Autonomous Systems (AS).
Inter-AS Routing: Operates between large networks (Autonomous Systems) managed by different organizations (e.g., ISPs, tech giants).
Path Vector Protocol: Instead of looking at hop counts, it makes routing decisions based on paths, network policies, and rule-sets.
Scalability: Engineered to manage the massive, ever-growing table of IP prefixes that make up the global internet.
Stability: Designed to find the most efficient paths while preventing routing loops across the global infrastructure.
[2] Address Resolution Protocol (ARP) is the critical bridge that maps a logical IP address (Network Layer) to a physical MAC address (Data Link Layer) to facilitate communication within a local network.
Mapping: Resolves 32-bit IP addresses into 48-bit hardware MAC addresses.
ARP Cache: Maintains a temporary table of mappings to reduce redundant broadcast traffic.
LAN Essential: Necessary for packet delivery; while IP handles routing to the correct network, ARP finds the specific hardware on that network.
Dynamic Discovery: If a mapping isn't in the cache, the device sends an ARP Request (broadcast) and receives an ARP Reply (unicast).
[2] Internet Protocol (IP) handles addressing and routing of data packets across interconnected networks using the Internet Protocol (IP).
Addressing: Assigns unique numerical identifiers (IP addresses) to every device on a network.
Routing: Determines the path data takes from the source host to the destination host across interconnected networks.
Encapsulation: Wraps data into "packets" containing header information (like source and destination addresses).
Connectionless: Does not establish a session before sending data; each packet is treated independently
Dynamic Host Configuration Protocol(DHCP)
Automates the assignment of IP addresses and network configuration details with the help of the Dynamic Host Configuration Protocol (DHCP).
[2] Automated IP Management: Dynamically assigns IP addresses to devices as they join the network and reclaims them when they leave.
Subnet Mask: Defines the network boundaries.
Default Gateway: The path to exit the local network.
DNS Servers: Resolves domain names to IP addresses.
Operational Efficiency: Minimizes manual entry errors (like IP conflicts) and drastically simplifies administration for large networks.
[2] Network management protocols assist in describing the procedures and policies that are used in monitoring, maintaining, and managing the computer network. These protocols also help in communicating these requirements across the network to ensure stable communication. Network management protocols can also be used for troubleshooting connections between a host and a client.
[2] Internet Control Message Protocol (ICMP) reports errors and sending operational messages between network devices through the Internet Control Message Protocol (ICMP).
Error Reporting: Notifies the sender when a destination is unreachable, a packet is dropped due to congestion, or a TTL (Time to Live) expires.
Diagnostics: Powers fundamental troubleshooting tools like Ping (Echo Request/Reply) and Traceroute.
Connectivity Checks: Helps identify network bottlenecks, timeouts, and hardware failures.
Flow Control: Can inform source hosts to slow down transmission if the network is overwhelmed.(deprecated)
[2] Simple Network Management Protocol (SNMP) facilitates monitoring and managing network devices in an IP network using the Simple Network Management Protocol (SNMP).
Purpose: Provides a standardized way to monitor and manage devices like routers, switches, servers, and printers.
Architecture: Operates using a three-part model consisting of an SNMP Manager, SNMP Agents, and Managed Devices.
Data Collection: Agents residing on devices gather performance data and status updates to report back to the central manager.
Functionality: Enables administrators to track bandwidth usage, detect hardware faults, and troubleshoot connectivity remotely.
Scalability: Serves as the industry standard for maintaining visibility across complex enterprise network infrastructures.
[2] Gopher is designed to search and retrive files from remote systems in a structured manner, functionality provided by Gopher.
Organization: Arranges files in a strict hierarchical structure resembling a system of folders and menus.
Retrieval: Provides descriptive metadata for each item, making it easy for users to navigate remote file systems without knowing specific paths.
Historical status: Developed at the University of Minnesota, it was one of the first major protocols for distributed document search and retrieval.
Current usage: Almost entirely obsolete, having been superseded by the flexibility of HTTP and the World Wide Web in the early 1990s.
[2] File Transfer Protocol (FTP) enables file transfer between a local system and a remote host using the File Transfer Protocol (FTP).
Functionality: Primary method for uploading and downloading files between local and remote systems.
Reliability: Built on the TCP/IP stack, ensuring that file data is delivered accurately and in the correct order.
Usage: Extensively utilized for bulk file sharing and managing web server content.
Authentication: Requires a username and password for access, though it also supports "anonymous" sessions.
Security: Transmits data in plaintext; requires FTPS (FTP over SSL) or SFTP (SSH File Transfer Protocol) for encryption.
[2] Post Office Protocol (POP3) retrieves emails from a mail server to a local device using the Post Office Protocol version 3 (POP3).
Retrieval Model: Downloads emails directly to a local device for offline viewing.
Storage Policy: Traditionally deletes the message from the server once the download is complete.
Device Mapping: Best suited for users accessing email from a single device, as the server does not sync status across multiple platforms.
Simplicity: Offers a straightforward, low-overhead method for managing mail compared to more complex protocols.
Flexibility: Lacks the multi-device synchronization and server-side folder management found in IMAP.
[2] Telnet allows remote access and command execution on another system through the Telnet protocol.
Remote interaction: Enables users to log in to a remote host and execute commands as if they were physically present at the terminal.
Architecture: Operates on a standard client-server model over a TCP connection.
Security risk: Transmits all data—including usernames and passwords in unencrypted plain text, making it vulnerable to interception.
Modern status: Almost entirely replaced by SSH (Secure Shell), which provides identical functionality with strong encryption.
Current use: mainly relegated to legacy hardware maintenance and basic network service testing (e.g., checking if a specific port is open).
Internet Message Access Protocol (IMAP) allows accessing and managing emails directly from the server through the Internet Message Access Protocol (IMAP).
Allows users to view and manage emails without downloading them permanently.
Emails remain stored on the mail server.
Enables access to the same mailbox from multiple devices.
Supports folder organization and synchronization.
More flexible than POP3.
Session Initiation Protocol (SIP) handles real-time communication sessions initiation and management via the Session Initiation Protocol (SIP).
Used in voice, video, and messaging applications.
Establishes communication sessions between users.
Manages session setup, modification, and termination.
Commonly used in VoIP and video conferencing.
Works with RTP to transmit media data.
Real-Time Transport Protocol (RTP) supports real-time transmission of audio and video data over networks through the Real-Time Transport Protocol (RTP).
Supports real-time multimedia communication.
Used along with SIP for audio and video transmission.
Provides sequence numbering and timestamping.
Ensures timely delivery of streaming media.
Widely used in video calls and live streaming.
Point To Point Tunnelling Protocol (PPTP) is used to establish virtual private network connections using the Point-to-Point Tunneling Protocol (PPTP).
Encapsulates PPP frames inside IP datagrams.
Enables secure data transmission over public networks.
Used for remote access VPN connections.
Simple to configure but less secure than modern VPN protocols.
Trivial File Transfer Protocol (TFTP) provides a lightweight method for file transfer with minimal features using the Trivial File Transfer Protocol (TFTP).
Uses UDP instead of TCP.
Provides minimal functionality and no authentication.
Commonly used for boot files and firmware updates.
Faster but less secure than FTP.
Resource Location Protocol (RLP) helps locate and assign network resources efficiently through the Resource Location Protocol (RLP).
Helps locate resources such as printers, servers, and devices.
Uses broadcast queries to find available resources.
Supports efficient resource discovery on a network.
Useful in distributed network environments.
References