Blog
CCN MSc IT 2nd Final Past Paper – UOS Main Campus
University of Sargodha main campus (Department of Computer Science & IT) MSc IT 2nd semester Computer Communication Networks (CCN) final term exam. Retyped from the original paper, with solved answers below.
Typed from the department’s original Word file; the paper does not show the year.
Solved answers
Q1
i. PCM working principle: (1) Sampling — the analog signal is sampled at regular intervals at least at the Nyquist rate (2 × highest frequency), giving PAM pulses; (2) Quantization — each sample is rounded to one of L levels (error = quantization noise); (3) Encoding — each level is converted to n = log₂L bits. Bit rate = sampling rate × n.
ii. Shannon: C = B log₂(1 + SNR) ⇒ 20×10⁶ = 3×10⁶ log₂(1 + SNR) ⇒ log₂(1 + SNR) = 6.67 ⇒ 1 + SNR = 2^6.67 ≈ 101.6 ⇒ SNR ≈ 100.6 (≈ 20 dB).
iii. Yes. Even without node failure, a bit error during transmission can corrupt the destination address in the header (if the error is not detected), or a wrong routing table / address configuration can forward the packet to the wrong host. Header checksums reduce but do not eliminate this.
iv. Step-index vs graded-index multimode fibre: in step-index the core has a uniform density and the refractive index changes abruptly at the cladding, so rays reflect sharply and travel different path lengths — high modal dispersion and signal distortion. In graded-index the core density decreases gradually from centre to edge, bending rays smoothly so they arrive more nearly together — less distortion and higher bandwidth.
v. Transmission impairments: attenuation, distortion and noise. Attenuation is the loss of signal energy as it travels through the medium (due to resistance); measured in decibels, dB = 10 log₁₀(P₂/P₁); compensated by amplifiers/repeaters.
vi. Serial transmission types: asynchronous (start and stop bits per byte, gaps allowed), synchronous (continuous bit stream in frames, no gaps) and isochronous (fixed, guaranteed rate for real-time data).
vii. Multiplexing sends several signals over one link. Types: FDM (radio/TV broadcasting, cable TV), WDM (optical fibre backbones), synchronous TDM (telephone T1/E1 lines), statistical TDM (packet networks), CDM (CDMA mobile phones).
viii. ASK, d = 1: carrier frequency = middle of band = 250 kHz. B = (1 + d) × S ⇒ 100 kHz = 2S ⇒ S = 50 kbaud; with ASK one bit per baud, bit rate = 50 kbps.
ix. Bandwidth 200 kHz centred at 140 kHz ⇒ frequencies from 40 kHz to 240 kHz. Being non-periodic, the spectrum is continuous: amplitude rises from 0 V at 40 kHz to the peak of 20 V at 140 kHz and falls back to 0 V at 240 kHz (a continuous hump/triangle shape on the frequency axis).
x. Wired vs wireless media:
| Wired (guided) | Wireless (unguided) |
|---|---|
| Twisted pair, coaxial, fibre optic | Radio, microwave, infrared, satellite |
| Signal confined to the cable | Signal broadcast through air/space |
| Higher speed and reliability, less interference | Affected by interference, weather and obstacles |
| More secure | Easier to intercept |
| Installation cost and limited mobility | Mobility, easy to deploy in difficult areas |
Q2
- Keyboard to computer — serial, asynchronous (keystrokes at irregular times).
- Computer to printer — parallel (traditional printer port; modern USB is serial).
- Computer to router — serial, synchronous (Ethernet frames).
- Video call between countries — serial, isochronous (real-time audio/video needs constant rate).
Q3 – Sensor network for crop monitoring
Design: place wireless pest/humidity sensor nodes across the wheat and cotton fields, forming a wireless sensor network (ZigBee/LoRa, low power, battery or solar). Sensors send readings to a gateway (cluster head) at the edge of the field. Use a mesh topology among sensors so that if one node fails, data finds another path (reliability). The gateway connects to the farmhouse central computer through a long-range link — point-to-point Wi-Fi/radio, or GSM/4G if far away; inside the house use a wired (twisted pair) LAN. The central computer stores data in a database, compares pest levels with thresholds and raises alarms (buzzer, SMS to Mr. Asif’s mobile). Unguided media is chosen because fields are large and cabling is costly and would be damaged by farming; acknowledgements and periodic heartbeat messages ensure reliable and timely delivery.
Q4
This question depended on the topic assigned to each student in class, so no single answer applies. Structure the answer as: objective of the technology, its basic structure (components and diagram), working, and uses with real examples.
Q5 – Latency
- Transmission time = 5,000,000 / 5,000,000 = 1 s
- Propagation time = 2,000,000 m / 2×10⁸ = 0.01 s
- Queuing time = 20 × 3 µs = 60 µs; processing time = 20 × 2 µs = 40 µs
- Total latency ≈ 1.0101 s
Transmission time is dominant (large frame, low bandwidth); queuing and processing delays (100 µs) are negligible.
