RTUEE / EC / EEEYr 2020 · Sem 82020

Q2Computer Networks

Question

16 marks

Q.2. (a) Explain OSI model with all layers. [8]

(b) Define Line Coding Schemes. [8]

Answer

OSI Model with All Layers

OSI Seven-Layer Model7. Application6. Presentation5. Session4. Transport3. Network2. Data Link1. Physical

The Open Systems Interconnection (OSI) reference model is a conceptual, seven-layer framework for standardizing the functions of a telecommunication or computer networking system, dividing the overall communication process into seven distinct layers, each responsible for a specific, well-defined set of functions, and each communicating only with the layer immediately above and below it (and, logically, with its corresponding peer layer on the remote communicating system).

  • Layer 1, Physical Layer: responsible for the actual transmission of raw, unstructured bits over a physical transmission medium (copper cable, fiber optic, or wireless), defining electrical, mechanical, and timing characteristics such as voltage levels, cable connectors, and bit synchronization.
  • Layer 2, Data Link Layer: responsible for reliable node-to-node data transfer over a single physical link, organizing raw bits into structured frames, providing error detection (and sometimes correction) and media access control (MAC) for shared-medium networks.
  • Layer 3, Network Layer: responsible for logical addressing and routing of data packets across multiple interconnected networks, determining the best path from source to destination through a series of intermediate routers (the Internet Protocol, IP, operates at this layer).
  • Layer 4, Transport Layer: responsible for reliable, end-to-end delivery of complete messages between source and destination hosts, including segmentation of messages into smaller units, flow control, and error recovery (TCP and UDP operate at this layer).
  • Layer 5, Session Layer: responsible for establishing, managing, and terminating communication sessions between applications, including session checkpointing and synchronization for long-running data transfers.
  • Layer 6, Presentation Layer: responsible for data representation, translation, encryption, and compression, ensuring data sent by the application layer of one system can be correctly read by the application layer of another system despite potentially differing internal data representations.
  • Layer 7, Application Layer: the topmost layer, providing network services directly to end-user applications, such as file transfer, email, and web browsing protocols (HTTP, FTP, SMTP, and similar).

Data passed down from the application layer at the sending system is progressively encapsulated with additional header (and, at the data link layer, trailer) information as it passes through each successive lower layer, a process called encapsulation; upon arrival at the receiving system, each layer strips off and processes its corresponding header information as the data passes back up through the layers, a process called decapsulation, ultimately delivering the original application data to the receiving application layer. This layered architecture allows each layer to be designed, implemented, and upgraded largely independently of the others, provided the well-defined interfaces between adjacent layers are respected, a design principle that has proven enormously valuable for the interoperability and evolvability of modern computer networks, even though most practical network implementations (such as the widely used TCP/IP protocol suite) do not strictly follow all seven OSI layers as separate, distinct implementation components.

Line Coding Schemes

Line coding schemes define how digital data bits are translated into a physical signal (voltage or light levels) for transmission over a communication channel, and different schemes offer different trade-offs in bandwidth efficiency, clock synchronization capability, DC balance, and error detection capability. Common line coding schemes include Non-Return-to-Zero (NRZ), where a high voltage level represents a 1 bit and a low voltage level represents a 0 bit throughout the entire bit duration, offering simplicity but poor clock synchronization for long runs of identical bits; Manchester encoding, where each bit is represented by a mid-bit-period voltage transition (low-to-high for one bit value, high-to-low for the other), guaranteeing a transition in every bit period and hence excellent clock synchronization at the cost of doubling the required signal bandwidth; and Alternate Mark Inversion (AMI), where successive 1 bits are represented by alternating positive and negative voltage pulses (with 0 bits represented by no pulse), providing good DC balance and a simple error-detection capability (since consecutive same-polarity pulses indicate a transmission error), commonly used in legacy telecommunication systems.

It is worth further noting that while the theoretical OSI model describes seven distinct layers, most real-world protocol stacks (most prominently the TCP/IP suite discussed in relation to another question in this examination) implement a somewhat consolidated subset of these functions across fewer explicit layers, with the OSI model instead serving primarily as a valuable pedagogical and conceptual reference framework for describing and comparing the functions performed by any real networking protocol stack, rather than as a literal blueprint that every practical implementation must follow layer-for-layer.

Beyond NRZ, Manchester, and AMI line coding, other schemes such as Non-Return-to-Zero Inverted (NRZI, where a transition, rather than a specific voltage level, represents a 1 bit) and 4B/5B encoding (used in Fast Ethernet, mapping every 4 data bits to a 5-bit code specifically chosen to guarantee a minimum transition density for reliable clock recovery while adding only 25% coding overhead, an improvement over Manchester's full 100% bandwidth overhead) further illustrate the broad design space explored by different line coding techniques, each optimizing a different balance between bandwidth efficiency, clock recovery reliability, and DC balance for its specific target application and physical transmission medium.

The layered OSI approach's strict separation of concerns also greatly simplifies network troubleshooting in practice, since a network engineer diagnosing a connectivity problem can systematically test each layer in turn (physical link status, then data-link frame delivery, then network-layer routing, and so on up the stack), isolating the specific layer at which a fault occurs rather than needing to reason about the entire, undivided communication process as a single monolithic system.

This systematic, layer-by-layer troubleshooting methodology, directly enabled by the OSI model's clean separation of concerns, remains a standard best practice taught in network engineering training and certification programs worldwide.

The OSI model, together with the line coding schemes discussed above, forms essential foundational knowledge for any deeper study of computer network protocol design.

This closes out the full treatment of both the OSI model and line coding parts of the question.

End of answer.

In practice, most production networks implement the OSI model's conceptual layering using the more consolidated TCP/IP protocol suite discussed in relation to another question in this examination, but network engineers and textbooks continue to reference the full seven-layer OSI terminology extensively when describing specific networking functions, precisely because the finer-grained seven-layer breakdown provides more precise vocabulary for discussing individual networking concerns (such as distinguishing session-layer connection management from presentation-layer data-format translation) than the more consolidated four-layer TCP/IP model alone provides.

Back to Paper