RTUComputer ScienceYr 2020 · Sem 82020

Q18Distributed Systems

Question

10 marks

Describe the communication protocols in distributed systems. Explain the layered protocols and their mapping to the OSI reference model.

Answer

A massive architectural exposition on Distributed Communication Protocols. Violently dissects the OSI 7-Layer model, contrasting the raw, lossy physics of the Physical/Data Link layers against the mathematically robust Session/Transport layers that enable RPC execution.

Distributed systems are mathematically impossible without a rigidly structured communication architecture. A process on Node A cannot simply send a variable to Node B; the data must be violently disassembled into raw electrical impulses, blasted across chaotic copper wires, and reassembled flawlessly. This catastrophic complexity is managed by layered protocols, specifically mapped against the OSI (Open Systems Interconnection) Reference Model.

1. The Hardware Layers (Physical, Data Link, Network)

These layers deal strictly with the violent physics of the network.

  • Layer 1: Physical Layer: The absolute lowest level. It mathematically converts binary 1s and 0s into raw voltages on Ethernet cables or photons in fiber optics. It has zero concept of data integrity.
  • Layer 2: Data Link Layer: It takes the raw stream of bits and mathematically groups them into "Frames". It introduces MAC addressing to move frames between physically connected switches and implements primitive checksums (CRC) to violently drop frames corrupted by electrical noise.
  • Layer 3: Network Layer (IP): The routing brain. It handles logical IP addresses and mathematically calculates the shortest path (using algorithms like OSPF or BGP) through a massive web of global routers. It is completely connectionless and unreliable; it simply blasts packets into the void and hopes they arrive.

2. The Transport Layer (The Mathematical Guarantee)

The absolute most critical layer for distributed systems (Layer 4).

  • TCP (Transmission Control Protocol): It completely shields the upper layers from the catastrophic unreliability of the Network layer. It mathematically numbers every single packet. If a packet is destroyed, TCP violently demands a retransmission. It guarantees that the data stream arrives perfectly in order, which is mandatory for RPC and RMI execution.
  • UDP (User Datagram Protocol): A raw, fast protocol that provides zero mathematical guarantees. Used in distributed streaming media or DNS where speed is more critical than absolute data perfection.

3. The Application Layers (Session, Presentation, Application)

These layers handle the high-level logic of distributed computing.

  • Layer 5: Session Layer: It establishes, maintains, and violently tears down communication sessions. In distributed systems, it handles checkpointing so that if a massive 5GB file transfer crashes at 99%, it mathematically resumes from the exact checkpoint instead of restarting.
  • Layer 6: Presentation Layer: It handles the catastrophic problem of heterogeneous hardware. If an IBM mainframe (Big Endian) talks to an Intel PC (Little Endian), the Presentation layer mathematically flips the byte order. It also executes encryption (SSL/TLS) and compression.
  • Layer 7: Application Layer: The actual distributed protocols the user interacts with (HTTP, FTP, SMTP, and high-level RPC/RMI interfaces).
OSI Reference Model in Distributed Systems7. ApplicationHTTP, RPC, RMI6. PresentationXDR, SSL (Encryption, Endianness)5. SessionRPC Session Management4. TransportTCP, UDP (Guaranteed Delivery)3. NetworkIP, ICMP (Logical Routing)2. Data LinkEthernet MAC, CRC Checksums1. PhysicalRaw Volts / Photons / FiberPhysical Network Transfer to Receiving Node
Back to Paper