Menu Close

Data networks: UPSC Electrical Engineering Optional PYQ Solutions (1995–2024)

All 13 questions UPSC has asked on data networks in the Electrical Engineering Optional (Paper II, Digital Communication) from 1995 to 2024, solved step by step – latest first.

Try them yourself first: the same questions, without solutions, are on our Digital Communication topic-wise PYQs page. Circuit diagrams have been redrawn from the question papers.

How we check these solutions

These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:

  • ✓ Checked by computer the numbers were worked out again independently in code (SymPy and NumPy: circuit equations, power balance, matrices, integrals).
  • ✓ Proof checked step by step or ✓ Derivation checked step by step for “prove” and “derive” questions, every step was checked against the definitions and standard results.
  • ✓ Answer checked step by step for theory and descriptive questions, every point was checked against the standard theory.

Where a printed question is wrong, unclear or incomplete, we say so and solve the intended version.

Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.

Jump to a question (year · question number):

2024 · 5e 2021 · 7c 2016 · 1e 2016 · 6c(ii) 2015 · 5d 2013 · 5c(ii) 2012 · 7b(i) 2011 · 5c(i) 2011 · 6c(i) 2010 · 7c 2007 · 6b 2003 · 6b 1995 · 12b

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

How does information get passed from one layer to the next in the Internet model? How do the layers of the Internet model correlate to the layers of the OSI model?

2024 · Paper II · Q5e · 10 marks

Solution

How information passes between layers in the Internet model

The Internet (TCP/IP) model has five layers: application, transport, network (internet), data link and physical. (The data link and physical layers are often grouped as network access.)

ApplicationdataTransport (segment)H4dataNetwork (packet)H3H4dataData link (frame)H2H3H4dataFCSPhysical0110101101 … bitsSDU of layer N = PDU of layer N+1; PDU of layer N = header(N) + SDU (+ trailer)
  • Downward at the sender: each layer takes the data unit handed down by the layer above (its SDU) and adds its own header (and, at the data link layer, a trailer) carrying control information for its peer layer at the receiver. This is encapsulation:
    • application message;
    • transport segment (TCP/UDP header: ports, sequence numbers, checksum);
    • network datagram/packet (IP header: source and destination addresses, TTL);
    • data link frame (MAC addresses, FCS);
    • physical layer: bits on the medium.
  • Each layer communicates logically with its peer (same layer) at the other end through its header (the peer-to-peer protocol). Physically, it passes the data to the layer directly below through an interface, i.e. a service access point (port numbers, protocol fields, EtherType).
  • Upward at the receiver: each layer reads and removes its header (decapsulation). It checks errors and addresses, and passes the payload up to the correct upper-layer protocol, identified by the protocol or port field.
  • At intermediate routers, frames are processed up to the network layer only, and re-encapsulated for the next link.

Correlation with the OSI layers

7 Application6 Presentation5 Session4 Transport3 Network2 Data link1 PhysicalApplicationHTTP, FTP, SMTP, DNS, TelnetTransportTCP, UDPInternetIP, ICMP, ARP, routingNetwork access (link + physical)Ethernet, PPP, Wi-FiOSI modelTCP/IP (Internet) model
Internet model OSI layers
Application Application (7), Presentation (6), Session (5)
Transport Transport (4)
Network (internet) Network (3)
Data link Data link (2)
Physical Physical (1)

The Internet model has no separate presentation and session layers. Their functions (encoding, encryption, dialogue control) are handled inside the applications, e.g. TLS and HTTP.

✓ Answer checked step by step Standard explanation.

↑ Back to the question list

Consider a connected graph G=(N,A) with N nodes and A arcs, and a weight ωij for each arc (i,j)∈A. (i) Define minimum weight spanning tree (MST). (ii) If all arc weights of G are distinct, prove that there exists a unique MST.

2021 · Paper II · Q7c · 10 marks

Solution

(i) Minimum weight spanning tree

A spanning tree of a connected graph G=(N,A) is a subgraph that includes all N nodes, is connected, and has no cycles. It therefore has exactly N−1 arcs. Its weight is the sum of the weights of its arcs.

A minimum weight spanning tree (MST) is a spanning tree whose total weight is the smallest among all spanning trees of G. MSTs are used in network design and in broadcast routing (spanning-tree protocols). They are found by Prim’s or Kruskal’s algorithm.

(ii) Distinct weights imply a unique MST

Proof by contradiction. Suppose all arc weights are distinct, but there are two different MSTs, T1≠T2, of equal minimum weight.

  1. Since T1≠T2, there are arcs in one but not the other. Among all arcs in T1△T2 (in exactly one of the trees), let e be the one of least weight (unique, since the weights are distinct). Without loss of generality, e∈T1 and e∉T2.
  2. Adding e to T2 creates exactly one cycle C, since T2 is a spanning tree.
  3. T1 has no cycles, so C cannot lie entirely within T1. Hence C contains some arc f∈T2 with f∉T1. Then f∈T1△T2 and f≠e.
  4. By the choice of e as the lightest arc of the symmetric difference, and since the weights are distinct, w(e)<w(f).
  5. Remove f from T2∪{e}: T′=T2+e−f. Removing an arc of the cycle keeps the graph connected and acyclic, with N−1 arcs. So T′ is a spanning tree, with weight

w(T′)=w(T2)+w(e)−w(f)<w(T2)

  1. This contradicts the minimality of T2.

Hence there cannot be two different MSTs: the MST is unique when all arc weights are distinct. ∎

(Equivalently, by the cut property: for every cut, the unique lightest arc crossing it must belong to every MST. With distinct weights these arcs are determined uniquely, and they form the MST.)

✓ Proof checked step by step We proved uniqueness by the cut (exchange) argument step by step.

↑ Back to the question list

(i) The open loop transfer function of a unity negative feedback control system is given by G(s)=K(s+2)(s+4)(s2+6s+25). For what value of K, will the system work as an oscillator in its closed loop form? (ii) Identify the relevant layers of the ISO/OSI model to which the following protocols belong: SQL, HTTPS, ISDN, PPP, NFS, IP, RPC, TELNET, HDLC, X Windows.

2016 · Paper II · Q1e · 10 marks

Solution

(i) K for oscillation

The characteristic equation is 1+G(s)=0:

(s+2)(s+4)(s2+6s+25)+K=0

s4+12s3+69s2+198s+(200+K)=0

Routh array

Row Column 1 Column 2 Column 3
s4 1 69 200 + K
s3 12 198
s2 12(69)−19812=52.5 200 + K
s1 52.5(198)−12(200+K)52.5
s0 200 + K

The system oscillates (marginal stability) when the s1 row is zero:

52.5×198=12(200+K)⇒10395=2400+12K⇒K=666.25

Frequency of oscillation (from the auxiliary equation)

52.5s2+(200+666.25)=0⇒s2=−16.5⇒ω=4.06rad/s

Answer: K=666.25; the system oscillates at about 4.06 rad/s (0.65 Hz).

(ii) OSI layers of the protocols

Protocol OSI layer
SQL (database query language) Application (7)
HTTPS (HTTP over TLS) Application (7); TLS spans the presentation and session functions
ISDN Physical (1) and data link (2) (with network-layer signalling, Q.931, at 3)
PPP Data link (2)
NFS Application (7) (uses RPC and XDR)
IP Network (3)
RPC Session (5)
TELNET Application (7)
HDLC Data link (2)
X Windows Application (7) / presentation (6) (display protocol)

✓ Checked by computer We solved the Routh array for the marginal gain in Python.

↑ Back to the question list

Discuss and differentiate between ISO/OSI and TCP/IP. Explain how the functions of each of the seven layers of ISO/OSI are carried out by TCP/IP.

2016 · Paper II · Q6c(ii) · 10 marks

Solution

ISO/OSI and TCP/IP

7 Application6 Presentation5 Session4 Transport3 Network2 Data link1 PhysicalApplicationHTTP, FTP, SMTP, DNS, TelnetTransportTCP, UDPInternetIP, ICMP, ARP, routingNetwork access (link + physical)Ethernet, PPP, Wi-FiOSI modelTCP/IP (Internet) model
ISO/OSI TCP/IP
A reference model: 7 layers, defined first, before the protocols A protocol suite developed first (ARPANET); the model describes it, in 4 layers (or 5)
Clear distinction between services, interfaces and protocols The distinction is less clear
Separate session and presentation layers No such layers; their functions are in the applications
Network layer: connection-oriented and connectionless Internet layer: connectionless only (IP)
Transport layer: connection-oriented in the classic version Transport: both TCP (connection-oriented) and UDP (connectionless)
General; protocols seldom implemented The protocols of the Internet; widely implemented

How TCP/IP carries out the functions of the seven OSI layers

OSI layer and function Done in TCP/IP by
7 Application: user services Application protocols: HTTP, FTP, SMTP, DNS, Telnet, SSH, SNMP
6 Presentation: data formats, encryption, compression Inside the applications: MIME, TLS/SSL encryption, character encodings, XDR
5 Session: dialogue control, synchronisation TCP connections and application-level sessions (RPC, TLS sessions, sockets)
4 Transport: end-to-end delivery, segmentation, flow and error control TCP (reliable, ordered, flow and congestion control) and UDP (best-effort); port numbers
3 Network: logical addressing, routing IP (IPv4/IPv6) addressing and forwarding; routing protocols (RIP, OSPF, BGP); ICMP
2 Data link: framing, MAC addressing, error detection Network-access layer: Ethernet, Wi-Fi, PPP, HDLC; ARP maps IP to MAC addresses
1 Physical: bits on the medium Network-access layer: the underlying hardware standards (copper, fibre, radio)

✓ Answer checked step by step Standard comparison.

↑ Back to the question list

Explain the role of Protocol Data Unit (PDU) in communication within seven layers of OSI-ISO model.

2015 · Paper II · Q5d · 10 marks

Solution

Protocol data unit (PDU)

A PDU is the unit of data exchanged between peer entities of the same layer, on two communicating systems. It consists of:

  • the protocol control information (PCI), i.e. the header (and possibly a trailer) of that layer, with addresses, sequence numbers, control flags and error checks;
  • the user data handed down from the layer above (that layer’s SDU).
ApplicationdataTransport (segment)H4dataNetwork (packet)H3H4dataData link (frame)H2H3H4dataFCSPhysical0110101101 … bitsSDU of layer N = PDU of layer N+1; PDU of layer N = header(N) + SDU (+ trailer)

Role in communication through the seven layers

  1. Encapsulation at the sender: layer N receives an SDU from layer N+1, adds its header (PCI) to form the N-PDU, and passes it to layer N−1, where it becomes the (N−1)-SDU. Each layer adds its own control information without interpreting the upper layers’ data.
  2. Peer-to-peer protocol: the header of an N-PDU is read only by the peer layer N at the receiver. This is how virtual (logical) communication takes place between corresponding layers. For example:
    • the transport header carries sequence numbers and acknowledgements;
    • the network header carries addresses for routing;
    • the data link trailer carries the FCS for error detection.
  3. Decapsulation at the receiver: each layer processes and strips its PCI, then passes the remaining SDU upwards.
  4. Names: a PDU has a name at each layer:
    • application data / message (layers 7–5);
    • segment (transport);
    • packet (network);
    • frame (data link);
    • bits (physical).
  5. PDUs allow each layer to be independent and modular: protocols at one layer can change without affecting the others. They are also the basis of segmentation, reassembly and multiplexing.

✓ Answer checked step by step Standard explanation.

↑ Back to the question list

With reference to the 7 layer architecture of data networks, distinguish between Protocol Data Unit (PDU) and Service Data Unit (SDU).

2013 · Paper II · Q5c(ii) · 5 marks

Solution

PDU and SDU

Protocol data unit (PDU) Service data unit (SDU)
The unit exchanged between peer entities of the same layer (horizontal, logical communication) The unit passed between adjacent layers at a service access point (vertical): what layer N+1 asks layer N to carry
Consists of the layer’s protocol control information (header/trailer) plus user data The user data only, as seen by the layer providing the service; its content is not interpreted by that layer
Layer N’s PDU = N-header + N-SDU (+ trailer) Layer N’s SDU = layer (N+1)’s PDU
Example: a TCP segment (TCP header + data) is the transport PDU Example: the TCP segment handed to IP is the network-layer SDU
ApplicationdataTransport (segment)H4dataNetwork (packet)H3H4dataData link (frame)H2H3H4dataFCSPhysical0110101101 … bitsSDU of layer N = PDU of layer N+1; PDU of layer N = header(N) + SDU (+ trailer)

A layer may also segment a large SDU into several PDUs, or block several SDUs into one PDU.

✓ Answer checked step by step Standard distinction.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

This question has the following parts.

(i) Draw the neat sketch of OSI model. What is the significance of data link layer? Explain the flow-control and error-control mechanism.

(ii) Compute the CRC-4 character for the following message, using a modified divisor constant of 10011: 1100 0110 1011 01

2012 · Paper II · Q7b(i) · 10 marks · also asked 2012 (Q7b(ii))

Solution

(i) OSI model

Layer Name Function
7 Application User services: e-mail, file transfer, web
6 Presentation Data representation, encryption, compression
5 Session Dialogue control, synchronisation
4 Transport End-to-end reliable delivery, segmentation, flow control (TCP)
3 Network Routing and logical addressing (IP)
2 Data link Framing, physical addressing, error and flow control on a link
1 Physical Bits over the medium: voltages, timing, connectors

Significance of the data link layer: it turns the raw, error-prone physical link into a reliable link between adjacent nodes. It:

  • frames the bit stream, adding start and end delimiters and addresses;
  • detects (and through retransmission corrects) errors, using a CRC/FCS in each frame;
  • controls the flow so that a fast sender does not swamp a slow receiver;
  • controls access to shared media (MAC sublayer).

Protocols: HDLC, PPP, Ethernet.

Flow control:

  • Stop-and-wait: send one frame, then wait for its acknowledgement.
  • Sliding window: up to W frames may be outstanding; the receiver advances the window with acknowledgements.

Error control (ARQ):

  • Each frame carries a CRC. The receiver checks it and sends an ACK (correct) or NAK, or discards the frame.
  • A timeout triggers retransmission.
  • Stop-and-wait ARQ, go-back-N ARQ (resend from the errored frame) and selective-repeat ARQ (resend only the bad frame).

(ii) CRC-4 for 1100 0110 1011 01 with divisor 10011

Append 4 zeros and divide modulo 2 by 10011:

Step Segment ⊕ 10011 →
1 11000 01011
2 10111 00100
3 10010 00001
4 11011 01000
5 10000 00011
6 11100 01111
7 11110 01101
8 11010 01001

CRC-4 = 1001

Transmitted: 11000110101101 1001

✓ Answer checked step by step Same question as 6.3 (2012 Q7b); we computed the CRC-4 in Python.

↑ Back to the question list

This question has the following parts.

(i) How is ‘regeneration’ in digital communication different from ‘amplification’ in analog communication? In what way regeneration is better?

(ii) Draw the block diagram of a PCM receiver and show how a transmitted sinusoidal signal is reconstructed in the receiver.

(iii) Distinguish between virtual circuit and datagram in data networks.

(iv) What is the rationale behind error control coding? Distinguish between linear codes and non-linear codes.

2011 · Paper II · Q5c(i) · 5 marks · also asked 2011 (Q5c(ii)), 2011 (Q5c(iii)), 2011 (Q5c(iv))

Solution

(i) Regeneration and amplification

  • An analog repeater (amplifier) amplifies the received signal together with the noise and distortion picked up on each section. These accumulate along the link, so the SNR falls with every repeater.

  • A digital regenerator:

    1. equalises and amplifies the pulses;
    2. re-times them using a recovered clock;
    3. decides whether each pulse is a 1 or a 0 (comparator);
    4. sends out a fresh, clean pulse.

    Noise and distortion are removed completely, provided they are not large enough to cause a wrong decision.

  • Why regeneration is better: noise does not accumulate; only bit errors accumulate, and these grow only linearly with the number of repeaters, at very low rates. Long-haul digital links can therefore have the same quality as short ones.

(ii) PCM receiver

Transmittermessagem(t)low-passfiltersampler(fs ≥ 2W)quantizer(L levels)encoder(n bits)PCMoutputChannel and receiverchannel +repeatersregenerator(decision)decoder(D/A)reconstructionlow-pass filteroutputm̂(t)
  1. The regenerator recovers the bit stream.
  2. The decoder (serial-to-parallel conversion, then D/A) converts each n-bit word into the corresponding quantized amplitude, as a train of PAM pulses (sample-and-hold, giving a staircase).
  3. The reconstruction low-pass filter (cut-off W) smooths the staircase into the analog waveform. A sinusoid is recovered as a smooth sine wave, with a small quantization error.

(iii) Virtual circuit and datagram

Virtual circuit Datagram
A logical connection (route) is set up before the data transfer, and released afterwards No set-up; each packet is routed independently
All packets follow the same path, and arrive in order Packets may take different paths and arrive out of order
Each packet carries a short circuit identifier Each packet carries the full destination address
Resources can be reserved, giving predictable delay Best-effort; more robust to node failures
Examples: X.25, ATM, Frame Relay IP (Internet), UDP

(iv) Error-control coding

Rationale: noise and interference cause bit errors. Adding controlled redundancy (parity bits) lets the receiver detect and/or correct errors (FEC), or request retransmission (ARQ). This achieves a low error rate at a lower SNR (coding gain), at the cost of bandwidth or rate.

Linear and non-linear codes:

  • In a linear code, the sum (modulo-2) of any two codewords is also a codeword; the all-zeros word is a codeword. Codewords are generated by a generator matrix (c=mG) and checked with a parity-check matrix (syndrome s=rHT). The minimum distance equals the minimum weight of the non-zero codewords. Encoding and decoding are simple. Examples: Hamming, cyclic, BCH and convolutional codes.
  • A non-linear code does not have this property. Its codewords cannot be generated by a matrix, and encoding and decoding need look-up tables. These codes are occasionally used for specific distance properties.

✓ Answer checked step by step Same question as 6.1 (2011 Q5c); standard explanation.

↑ Back to the question list

This question has the following parts.

(i) The information in an analog signal voltage waveform is to be transmitted over a PCM system with an accuracy of ±0.1% (full scale). The analog voltage waveform has a bandwidth of 100 Hz and an amplitude range of −10 V to +10 V. (1) Determine the maximum sampling rate required. (2) Determine the number of bits in each PCM word. (3) Determine the minimum bit rate required in the PCM signal. (4) Determine the minimum absolute channel bandwidth required for the transmission.

(ii) Why do we need a MODEM to access Internet over telephone line? How does it work? What is the role of a ROUTER in a data network?

2011 · Paper II · Q6c(i) · 12 marks · also asked 2011 (Q6c(ii))

Solution

(i) PCM design

(1) Sampling rate: bandwidth 100 Hz, so the minimum (Nyquist) sampling rate is

fs=2×100=200samples/s

(2) Bits per word: the accuracy is ±0.1% of full scale. With full scale 20 V, the maximum error is Δ/2≤0.02 V, so Δ≤0.04 V and

L≥200.04=500

Equivalently,

n≥3.32log10(500.1)=8.96

So n = 9 bits (512 levels).

(3) Bit rate:

Rb=9×200=1800b/s

(4) Minimum absolute channel bandwidth:

B=Rb2=900Hz

(ii) Modem and router

Why a modem: the telephone line is a band-pass analog channel, 300–3400 Hz, designed for speech. It cannot pass the dc and low-frequency components of a baseband digital signal, and it is band-limited. A modem (modulator–demodulator) converts the computer’s digital data into an analog signal that fits the voice band, and back again at the far end.

How it works:

  • The data bits modulate a carrier in the voice band using FSK, PSK or QAM; QAM is combined with trellis coding in V.32/V.34 modems (up to 33.6 kb/s), and PCM is used downstream in V.90 (56 kb/s).
  • Echo cancellation gives full-duplex operation over two wires. Adaptive equalisation corrects the line distortion. Handshaking negotiates the speed.
  • At the receiver, the modem demodulates and recovers the bits.

Role of a router: a router is a network-layer (layer 3) device that connects different networks (LANs, WANs, the Internet). For each incoming packet, it reads the destination (IP) address, looks up its routing table (built by routing protocols such as RIP, OSPF and BGP), and forwards the packet on the best path towards the destination. It also:

  • isolates broadcast domains;
  • performs network address translation (NAT);
  • applies firewall and access-control filtering;
  • manages traffic (QoS).

✓ Checked by computer Same question as 6.1 (2011 Q6c); we computed the rates and bandwidth.

↑ Back to the question list

The network layer of OSI (Open Systems Interconnection) has two major functions, namely (i) routing of packets through the network and (ii) a flow control. Explain each of these two functions taking suitable examples. Prove that the network layer is the most sophisticated of the layered architecture.

2010 · Paper II · Q7c · 20 marks

Solution

(i) Routing

Routing is the process of determining the path a packet follows from source to destination through the network, and forwarding it at each node.

  • Each router maintains a routing table mapping destination addresses (prefixes) to the next hop and outgoing link. For each incoming packet it reads the destination address and forwards the packet accordingly.
  • Static routing: tables are set by the administrator.
  • Dynamic (adaptive) routing: tables are computed by routing algorithms, which adapt to topology and load changes:
    • distance-vector (Bellman–Ford, e.g. RIP): each node exchanges its distance estimates with its neighbours;
    • link-state (Dijkstra’s shortest path, e.g. OSPF): each node learns the whole topology, through flooded link-state advertisements, and computes the shortest paths;
    • path-vector (BGP) between autonomous systems.
  • Example: a packet from Delhi to Chennai can go via Mumbai or via Kolkata. OSPF computes the least-cost path with link costs based on bandwidth and delay. If the Mumbai link fails, the routers recompute and divert the traffic via Kolkata.
  • In virtual-circuit networks, the route is chosen once at call set-up; in datagram networks, for each packet.

(ii) Flow (congestion) control at the network layer

This prevents the network, or parts of it, from being overloaded. Too many packets cause queues to grow, buffers to overflow, packets to be lost and retransmitted, and the throughput to collapse (congestion).

Mechanisms:

  • Admission control (virtual-circuit networks: refuse new circuits when busy).
  • Choke packets / source quench (ICMP): the congested router tells the sources to slow down. Explicit congestion notification (ECN bits) does this more efficiently.
  • Buffer management: random early detection (RED), dropping packets early to signal TCP.
  • Traffic shaping: leaky bucket and token bucket at the network entry; isarithmic control (a fixed number of permits).
  • Load-sensitive routing, diverting traffic from congested links.

Example: a burst of video traffic floods a router’s output queue. RED starts dropping packets at random before the queue is full. The TCP senders detect the losses and reduce their windows, so the congestion clears without total collapse.

(Hop-by-hop flow control is the data link layer’s job; end-to-end flow control is the transport layer’s. Network-layer flow control is about the global load.)

Why the network layer is the most sophisticated

  1. It is the lowest layer that deals with end-to-end transmission across many links and heterogeneous networks. The layers below see only a single link; the layers above see only the two end systems.
  2. It must know the topology of the whole network and choose routes dynamically, responding to failures and load changes. This needs distributed algorithms, the exchange of routing information, and consistency (loop avoidance) across many independent nodes.
  3. It must handle congestion, which is a global phenomenon caused by many sources, with fairness and stability.
  4. It must handle addressing on a global scale (hierarchical addresses, subnetting, NAT), internetworking between different networks (fragmentation, different MTUs, tunnelling) and quality of service (priorities, reservations).
  5. Its performance (throughput, delay, reliability) governs that of the whole network.

The physical and data link layers solve local, single-link problems, and the transport and higher layers run only in the end systems. The network layer runs in every router and must cooperate with all of them, which makes it the most complex.

✓ Answer checked step by step Standard explanation.

↑ Back to the question list

What are the design considerations for layering in data networks? Discuss a seven-layer network architecture with a diagram.

2007 · Paper II · Q6b · 23 marks

Solution

Design considerations for layering

  1. Modularity and abstraction: divide the complex communication task into smaller, well-defined functions. Each layer provides services to the layer above and uses those of the layer below, through defined interfaces.
  2. Independence: the implementation of a layer can change (e.g. a new physical medium) without affecting the others, as long as the interface and services stay the same.
  3. Each layer performs a well-defined function, at a distinct level of abstraction. Layer boundaries are chosen to minimise the information flow across interfaces.
  4. Number of layers: large enough that distinct functions are not lumped together, small enough to keep the architecture manageable.
  5. Peer protocols: each layer communicates logically with its peer using its own header (PDU).
  6. Standardisation: functions are grouped to follow international standards, enabling interoperability between vendors (open systems).
  7. Addressing, error control, flow control, multiplexing, segmentation and reassembly, and connection management must each be placed at an appropriate layer, avoiding duplication where possible (end-to-end arguments).

Seven-layer (OSI) architecture

7 Application6 Presentation5 Session4 Transport3 Network2 Data link1 PhysicalApplicationHTTP, FTP, SMTP, DNS, TelnetTransportTCP, UDPInternetIP, ICMP, ARP, routingNetwork access (link + physical)Ethernet, PPP, Wi-FiOSI modelTCP/IP (Internet) model
  1. Physical:
    • transmission of raw bits over the medium;
    • electrical, mechanical and procedural characteristics (voltages, timing, connectors, RS-232, modulation).
  2. Data link:
    • framing;
    • error detection and correction (CRC, ARQ);
    • flow control on a link;
    • medium access control (HDLC, Ethernet MAC).
  3. Network:
    • routing and forwarding of packets across multiple links;
    • logical addressing;
    • congestion control;
    • internetworking (IP, X.25).
  4. Transport:
    • reliable end-to-end delivery;
    • segmentation and reassembly;
    • end-to-end flow and error control;
    • multiplexing of connections (TCP, UDP).
  5. Session:
    • establishment, management and termination of sessions;
    • dialogue control (half/full duplex);
    • synchronisation points (checkpoints).
  6. Presentation:
    • data representation (syntax), code conversion;
    • encryption and compression.
  7. Application: user services: file transfer, e-mail, remote login, directory services, web.
ApplicationdataTransport (segment)H4dataNetwork (packet)H3H4dataData link (frame)H2H3H4dataFCSPhysical0110101101 … bitsSDU of layer N = PDU of layer N+1; PDU of layer N = header(N) + SDU (+ trailer)

Data pass down the layers at the sender, each adding a header. They cross the physical medium, and pass up the layers at the receiver, each removing its header. Intermediate nodes (routers) implement only layers 1–3.

✓ Answer checked step by step Standard explanation.

↑ Back to the question list

Describe a communication circuit using modem and explain how modems are classified,.

2003 · Paper II · Q6b · 20 marks

Solution

Communication circuit using modems

Computer(DTE)RS-232Modem(DCE)analog lineTelephoneline / PSTNanalog lineModem(DCE)RS-232Computer(DTE)
  • The DTE (computer or terminal) sends serial digital data over a standard interface (RS-232/V.24) to the modem (the DCE).
  • The modem modulates the data onto a voice-band carrier: FSK, PSK, or QAM with trellis coding. This produces an analog signal within 300–3400 Hz, which travels over the telephone line (dial-up or leased) through the exchange.
  • The remote modem demodulates the signal back into digital data for the remote DTE. For full duplex, the two directions use different frequency bands, or echo cancellation.
  • Control signals (RTS, CTS, DTR, DSR, DCD) on the interface coordinate the transfer (handshaking).

Classification of modems

  1. By speed:
    • low speed (up to 600 b/s);
    • medium speed (1200–9600 b/s);
    • high speed (14.4–56 kb/s and above: V.32, V.34, V.90).
  2. By modulation: FSK (V.21, Bell 103), PSK/DPSK (V.22), QAM / trellis-coded (V.22bis, V.32, V.34), PCM (V.90).
  3. By mode of operation: simplex, half-duplex, full-duplex.
  4. By synchronisation:
    • asynchronous (character by character, with start and stop bits; low speed);
    • synchronous (block transmission with a clock; higher speed).
  5. By line type: dial-up (switched) modems or leased-line modems; 2-wire or 4-wire; short-haul (line driver, baseband) modems.
  6. By construction: external (stand-alone), internal (card), PC-card; “intelligent” modems with an AT command set, error correction (V.42) and compression (V.42bis).
  7. By application: telephone-line, cable, DSL (ADSL), radio, fax modems.

✓ Answer checked step by step Standard description.

↑ Back to the question list

What is a Modem? Draw and explain a Communication system using Modems. What is RS-232 interface? Explain its use for data transmission.

1995 · Paper II · Q12b · 20 marks

Solution

What is a modem?

A modem (MOdulator–DEModulator) converts digital data from a computer or terminal into an analog signal suitable for transmission over an analog channel (the telephone line). It modulates a carrier with FSK, PSK or QAM. At the receiving end it converts the analog signal back into digital data (demodulation).

A modem is needed because the telephone network is band-limited (300–3400 Hz) and designed for voice. It cannot pass the dc and wideband components of baseband digital pulses.

Communication system using modems

Computer(DTE)RS-232Modem(DCE)analog lineTelephoneline / PSTNanalog lineModem(DCE)RS-232Computer(DTE)

DTE → (RS-232) → modem → telephone line / PSTN → modem → (RS-232) → DTE.

  • The transmitting modem includes:
    • scrambler, encoder, modulator, transmit filter;
    • line interface (hybrid);
    • for high speed, an adaptive equaliser and echo canceller.
  • The receiving modem performs:
    • filtering and equalisation;
    • carrier and clock recovery;
    • demodulation, decoding, descrambling.
  • Handshake signals on the interface control the link.

RS-232 interface

RS-232 (EIA-232, equivalent to ITU-T V.24/V.28) is the standard serial interface between DTE and DCE. It defines:

  • Electrical characteristics:
    • bipolar voltage levels: logic 1 (MARK) = −3 to −15 V, logic 0 (SPACE) = +3 to +15 V;
    • maximum about 20 kb/s over about 15 m (50 ft);
    • unbalanced, single-ended lines with a common ground.
  • Mechanical: DB-25 (or DB-9) connectors.
  • Functional and procedural: the signal on each pin and the handshake sequence.
DTE(terminal /computer)DCE(modem)TxD (pin 2)RxD (pin 3)RTS (pin 4)CTS (pin 5)DSR (pin 6)GND (pin 7)DCD (pin 8)DTR (pin 20)

Use for data transmission:

  1. The DTE asserts DTR (data terminal ready). The modem replies with DSR (data set ready) when it is powered and connected.
  2. When the modem detects the remote carrier, it asserts DCD (data carrier detect).
  3. To send, the DTE raises RTS (request to send). The modem answers CTS (clear to send) when it is ready to transmit.
  4. Data are sent serially on TxD (pin 2) and received on RxD (pin 3), usually asynchronously (start bit, 7 or 8 data bits, parity, stop bit). In synchronous modes, clock signals on pins 15, 17 and 24 are used.
  5. Signal ground (pin 7) is the common reference.

Two DTEs can be connected directly with a “null modem” cable, which crosses TxD/RxD and the handshake lines.

✓ Answer checked step by step Standard description.

↑ Back to the question list

More on Digital Communication

Questions: UPSC Civil Services (Main) Examination, Electrical Engineering Paper II, 1995–2024. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted