Computer Networks · TEE · papers

Q2(a) · OSI model

2024-12-06 · Final 2024-25 / Re-exam 2023-24

Actual paper; 100 marks attempted. Current-syllabus alignment is stated per question.

Q2(a). Describe in detail the layered architecture of OSI reference model with the help of labelled diagram. Write any TWO functionalities of each layer. [10 marks]

Answer

The Open Systems Interconnection (OSI) model separates network functions into seven layers. A layer offers services upward and uses services below. Peer layers communicate logically through protocol rules; actual data moves down the sender’s stack, across links and up the receiver’s stack.

Swipe across the diagram to read its labels ↔
OSI layers mapped to the four-layer TCP/IP model
Diagram: OSI layers mapped to the four-layer TCP/IP model. Labels: OSI layers mapped to the four-layer TCP/IP model | OSI layers mapped to the four-layer TCP/IP model | 7 Application | 6 Presentation | 5 Session | 4 Transport | 3 Network | 2 Data link | 1 Physical | Application | HTTP, DNS, FTP, SMTP | Transport | Internet | Link / network access | Includes physical access | Some textbooks split link into data link + physical: five layers.
OSI seven-layer model mapped to the four-layer TCP/IP model.
LayerTaskExample
7 ApplicationServices used by network applicationsHTTP, DNS, FTP, SMTP
6 PresentationRepresentation, encoding and application data transformationsCharacter encoding, serialization; encryption as a conceptual function
5 SessionManage dialogue and synchronization/checkpointsSession establishment and resumption concepts
4 TransportProcess delivery; reliability/flow control where suppliedTCP, UDP, SCTP; ports
3 NetworkLogical addressing and routing across networksIP; routers
2 Data linkFraming, local link addressing, medium access and error detectionEthernet/Wi-Fi; MAC addresses
1 PhysicalTransmit signal symbols/bits through a mediumElectrical, optical or radio signals

Encapsulation and delivery

  1. Application creates data. Transport adds a transport header: TCP segment or UDP datagram.
  2. IP adds its header to form a packet. The link adds a header and usually a trailer to form a frame.
  3. The physical layer carries signals. The destination reverses the process and sends the data to the receiving process.
  4. At a router, local framing changes for the next link. A transit router primarily forwards at Layer 3; it need not run the end application.

Yaad rakho: Application se physical tak wrap; receiver par unwrap.

Two functions of every OSI layer

LayerFunction 1Function 2
ApplicationProvide application-level network services, such as file transferDefine application exchanges for services such as email or name resolution
PresentationTranslate/serialize data into an agreed representationCompress data or encrypt/decrypt it where these transformations are required
SessionEstablish, manage and end a dialogue/sessionProvide synchronization/checkpoints for resuming a dialogue
TransportIdentify sending/receiving processes using ports and segment/reassemble dataProvide end-to-end reliability and flow control when the selected protocol supports them
NetworkProvide logical addressing across networksSelect routes and forward packets towards the destination
Data linkFrame the data and identify local interfacesControl shared-medium access and detect link-frame errors
PhysicalRepresent bits as electrical, optical or radio signal symbolsSpecify physical-interface/signalling properties such as timing, connectors and transmission rate

These are reference-model responsibilities; an actual protocol stack may combine them. UDP, for example, does not supply TCP-style reliable delivery merely because both are transport protocols.