Computer Networking Basics II

Computer Networking Basics II

Communication Protocols

Are the foundation of efficient information exchange between various nodes within a computer network. They establish a structured set of rules and procedures that govern how data is transmitted, received, and interpreted. Enabling seamless communication across diverse devices and networks.

The Open Systems Interconnection (OSI) model and the Transmission Control Protocol/Internet Protocol (TCP/IP) model are two widely recognized frameworks for organizing and standardizing communication protocols. Both models divide the communication process into distinct layers, each addressing specific aspects of data transmission.

Computer protocols can be classified based on various attributes, including their connection type, switching method, and routing mechanisms

Connection Type

  • Connection-oriented protocols:

    Establish a dedicated communication channel between two nodes before data transmission begins. This dedicated channel ensures that data packets are delivered in the correct order and that any lost or corrupted packets are retransmitted. Examples include TCP (Transmission Control Protocol), ATM (Asynchronous Transfer Mode), X.25 etc.

  • Connectionless protocols:

    Do not establish a dedicated connection between nodes before data transmission. Instead, they send data packets independently, relying on the destination node to reassemble and process the packets correctly. Examples of include UDP (User Datagram Protocol), IP (Internet Protocol, DNS (Domain Name System etc.

Switching Method

  • Circuit Switching:

    Circuit switching establishes a dedicated physical connection between two nodes before data transmission commences. This dedicated connection resembles a dedicated phone line, ensuring that only authorized parties can access the communication channel. The connection remains active for the duration of the communication, providing a consistent and predictable bandwidth for data transfer.

  • Packet Switching:

    In contrast to circuit switching, packet switching breaks down data into smaller units called packets. Each packet contains the sender's and receiver's addresses, along with the data itself. These packets are independently routed through the network, potentially taking different paths to reach the destination. Upon arrival, the packets are reassembled in the correct order to form the original message.

Route Protocols

Routing protocols play a crucial role in computer networks by determining the optimal paths for data transmission between nodes. They employ various addressing schemes to efficiently manage and route data across the network infrastructure.

  • Hierarchical Addressing:

    Also known as hierarchical routing, organizes the network into a layered structure, resembling a tree. Each layer represents a different level of abstraction, with higher layers encompassing broader network segments and lower layers focusing on specific subnetworks. This hierarchical approach enables efficient routing and management of large networks.

  • Flat Addressing:

    In contrast to hierarchical addressing, flat addressing treats all nodes and links equally. Each node maintains a complete routing table, containing information about all other nodes in the network. This approach can be simpler to implement in small networks, but it may not scale effectively to larger and more complex ones.

Protocol Stack

A protocol stack, also known as a network stack or protocol suite, is a conceptual architecture of communication protocols organized into layers. Each layer has its own specific function and communicates with the layers above and below it to achieve the overall goal of data transmission. The two most widely recognized protocol stacks are the Open Systems Interconnection (OSI) model and the Transmission Control Protocol/Internet Protocol (TCP/IP) model.

Communication within a protocol stack occurs both vertically and horizontally. Vertical communication refers to the exchange of data between adjacent layers within the same stack. Each layer receives data from the layer above, processes it according to its specific function, and passes it down to the layer below. This vertical interaction ensures that data is properly formatted and encapsulated for transmission.

Horizontal communication, on the other hand, involves the exchange of data between corresponding layers in different protocol stacks. This type of communication typically occurs at the application layer, where applications running on different devices can exchange information, regardless of the underlying network protocols

Each layer in a protocol stack adds an abstraction layer over the information being sent. This abstraction process simplifies data transmission by hiding the complexities of the underlying layers from the applications and other layers. By encapsulating data and adding headers and trailers containing addressing and control information, each layer contributes to the overall structure and organization of the data stream.

OSI Model and TCP/IP Model

The OSI model is a more comprehensive and theoretical model, while the TCP/IP model is a more practical and widely used model. The OSI model is divided into seven layers, while the TCP/IP model is divided into four layers.

  • Application Layer:

    Is the top layer of both models. It provides services to user applications, such as file transfer or email.

  • Presentation Layer:

    Of the OSI model handles data representation and encryption/decryption. The TCP/IP model does not have a separate presentation layer, but these functions are performed by the Application Layer.

  • Session Layer:

    Establishes, manages, and terminates communication sessions. The TCP/IP model does not have a separate session layer, but these functions are performed by the Transport Layer.

  • Transport Layer:

    Ensures reliable data transmission by providing error detection and correction mechanisms. The TCP/IP model has two transport protocols: TCP, which is responsible for reliable data transmission, and UDP, which is for faster, best-effort data delivery.

  • Network Layer:

    Defines addressing and routing protocols for data packets. The OSI model's network layer is analogous to the TCP/IP model's Internet Layer.

  • Data Link Layer:

    Handles physical and logical data transmission over a network link. The TCP/IP model combines the functions of the OSI model's data link and physical layers into a single Network Access Layer.

  • Physical Layer:

    Defines the physical characteristics of the transmission medium, such as cables or wireless signals. The OSI model's physical layer is similar to the TCP/IP model's Network Access Layer.

Conclusion

Communication protocols play a crucial role in various applications, from everyday internet browsing to complex industrial control systems. They ensure that data is delivered efficiently, accurately, and securely, forming the foundation for our interconnected digital world.