Browse papers
A

Section A: Long Answer Questions

Attempt all / any as specified.

4 questions
1long14 marks

(a) Differentiate between guided and unguided transmission media with suitable examples. Compare twisted-pair cable, coaxial cable and optical fiber on the basis of bandwidth, attenuation, cost and immunity to electromagnetic interference. (8 marks)

(b) A signal travels through a transmission medium and its power is reduced to one-half of its original value. Calculate the attenuation in decibels. If the same signal is then amplified by a factor of 10, find the overall gain in dB. (6 marks)

(a) Guided vs. Unguided Media

Guided (wired) media carry signals along a solid physical conductor; the signal is directed and contained by the medium.

  • Examples: twisted-pair cable, coaxial cable, optical fiber.

Unguided (wireless) media transmit signals as electromagnetic waves through free space (air/vacuum) without a physical conductor.

  • Examples: radio waves, microwave, infrared, satellite links.

Comparison of guided media

ParameterTwisted PairCoaxial CableOptical Fiber
BandwidthLow (up to a few hundred MHz)Medium (hundreds of MHz–few GHz)Very high (THz range)
AttenuationHighModerateVery low
CostCheapestModerateHighest (cable + connectors)
Immunity to EMIPoor (improved by twisting/shielding)Better (shielded by braid)Immune (carries light, not electrical signal)

Optical fiber gives the best performance (huge bandwidth, lowest attenuation, full EMI immunity) but at the highest cost; twisted pair is cheapest but weakest.

(b) Attenuation and Gain Calculations

Attenuation when power falls to one-half (P2=P1/2P_2 = P_1/2):

A=10log10P2P1=10log10(0.5)=10×(0.301)=3.01 dBA = 10\log_{10}\frac{P_2}{P_1} = 10\log_{10}(0.5) = 10 \times (-0.301) = -3.01\ \text{dB}

The loss is about 3 dB (negative sign indicates attenuation).

Gain when amplified by a factor of 10 (P3=10P2P_3 = 10 P_2):

G=10log10(10)=+10 dBG = 10\log_{10}(10) = +10\ \text{dB}

Overall gain (decibels add along a path):

Gtotal=3.01+10=+6.99+7 dBG_{total} = -3.01 + 10 = +6.99 \approx +7\ \text{dB}

The overall result is a net gain of about 7 dB.

transmission-mediasignalstransmission-impairments
2long14 marks

(a) With the help of neat waveform diagrams, explain Amplitude Shift Keying (ASK), Frequency Shift Keying (FSK) and Phase Shift Keying (PSK). State one practical application of each. (8 marks)

(b) Draw the constellation diagram for QPSK and 8-PSK. A digital signal uses 8-PSK modulation. If the baud rate is 2000, what is the bit rate? (6 marks)

(a) Digital-to-Analog Modulation Schemes

In digital modulation a carrier Acos(2πfct)A\cos(2\pi f_c t) is varied according to the binary data.

Amplitude Shift Keying (ASK): the amplitude of the carrier is switched between two levels while frequency and phase stay constant. Binary 1 = carrier present (high amplitude), binary 0 = no/low carrier.

  • Waveform: full-amplitude carrier bursts for 1s, flat/zero line for 0s.
  • Application: low-cost optical fiber and infrared (LED on/off) links.

Frequency Shift Keying (FSK): the carrier frequency is switched between two values (f1f_1 for 1, f2f_2 for 0); amplitude constant.

  • Waveform: tightly spaced cycles (high ff) for one bit, widely spaced cycles (low ff) for the other.
  • Application: low-speed modems, caller-ID, RFID.

Phase Shift Keying (PSK): the carrier phase is shifted (e.g. 0° for 1 and 180°180° for 0 in BPSK); amplitude and frequency constant.

  • Waveform: identical sinusoids with an abrupt 180° phase reversal at each 1→0 / 0→1 transition.
  • Application: Wi-Fi, satellite and digital cellular systems (more noise-immune than ASK).

(b) Constellation Diagrams and Bit Rate

QPSK has 4 points spaced 90° apart on a circle (e.g. at 45°, 135°, 225°, 315°); each point carries 2 bits.

8-PSK has 8 points spaced 45° apart around the circle; each point carries 3 bits (23=82^3 = 8).

Bit rate for 8-PSK: each signal element (baud) carries r=log28=3r = \log_2 8 = 3 bits.

Bit rate=Baud rate×r=2000×3=6000 bps=6 kbps\text{Bit rate} = \text{Baud rate} \times r = 2000 \times 3 = 6000\ \text{bps} = 6\ \text{kbps}
modulationanalog-digital-transmission
3long12 marks

(a) Compare circuit switching, datagram packet switching and virtual-circuit packet switching with respect to setup delay, addressing overhead, resource reservation and suitability for bursty traffic. (8 marks)

(b) Explain, with a labelled diagram, the three phases of a circuit-switched connection. Why is circuit switching inefficient for data traffic? (4 marks)

(a) Comparison of Switching Techniques

CriterionCircuit SwitchingDatagram Packet SwitchingVirtual-Circuit Packet Switching
Setup delayHigh — dedicated path set up before dataNone — each packet sent independentlyOne-time setup of VC before data
Addressing overheadAddress used only at setupFull destination address in every packetShort VC identifier per packet
Resource reservationBandwidth reserved end-to-end for whole callNo reservation; best-effortPath fixed; resources may be reserved
Suitability for bursty trafficPoor — reserved bandwidth wasted when idleExcellent — statistical multiplexingGood — shares links, ordered delivery
Packet orderingIn order (single path)May arrive out of orderIn order (single path)

Datagram switching best suits bursty data; circuit switching best suits constant-rate (voice) traffic.

(b) Three Phases of a Circuit-Switched Connection

[Caller]---(1 Setup: reserve path)--->[Switches]--->[Callee]
[Caller]<==(2 Data transfer: dedicated circuit)==>[Callee]
[Caller]---(3 Teardown: release path)--------->[Callee]
  1. Circuit establishment (setup): a dedicated end-to-end path through the switches is reserved before any data flows.
  2. Data transfer: data flows continuously over the reserved circuit with low, constant delay.
  3. Circuit disconnect (teardown): the path is released and resources freed for other connections.

Why inefficient for data: data traffic is bursty, but the reserved circuit is held for the whole session even during idle gaps, so the guaranteed bandwidth sits unused and cannot be shared — leading to poor link utilization.

switching-techniques
4long12 marks

(a) A bit stream 1101011011 is to be transmitted using the CRC generator polynomial G(x)=x4+x+1G(x) = x^4 + x + 1 (i.e. divisor 10011). Compute the CRC bits and show the complete codeword to be transmitted. Verify that the receiver detects no error. (8 marks)

(b) Explain how a single-bit error and a burst error are detected by CRC, and state the conditions a generator polynomial must satisfy to detect all single-bit errors. (4 marks)

(a) CRC Computation

  • Message: M=1101011011M = 1101011011 (10 bits)
  • Generator: G(x)=x4+x+1G(x)=x^4+x+1 \Rightarrow divisor =10011= 10011 (5 bits, so append 44 zeros)
  • Dividend: append 4 zeros → 110101101100001101011011\,0000

Perform modulo-2 (XOR) division:

1101011011 0000 ÷ 10011

11010  XOR 10011 = 01001
 -> 10010 (bring down) XOR 10011 = 00001
 -> 00011 ... 000111 ... 0001110 XOR 10011

Working it out step by step (modulo-2):

  11010110110000
  10011
  -----
  01001110110000
   10011
   -----
  00000010110000
        10011
        -----
  00000000101000
          10011
          -----
  00000000001110  -> remainder (last 4 bits) = 1110

CRC (remainder) = 1110.

Transmitted codeword = message + CRC =

11010110111110\mathbf{1101011011\,1110}

Receiver verification

The receiver divides the received 14-bit codeword 1101011011111011010110111110 by 1001110011. Since the CRC bits were chosen to make the codeword exactly divisible by G(x)G(x), the remainder is 00000000no error detected, frame accepted.

(b) Error Detection by CRC

  • Single-bit error: a single error corresponds to an error polynomial E(x)=xiE(x)=x^i. If G(x)G(x) has at least two non-zero terms (more than one '1'), it cannot divide xix^i exactly, so a non-zero remainder appears and the error is detected.
  • Burst error: a burst of length LL gives E(x)=xi(xL1++1)E(x)=x^i(x^{L-1}+\dots+1). If the burst length LrL \le r (the degree of G(x)G(x), i.e. number of CRC bits), G(x)G(x) cannot divide E(x)E(x), so all such bursts are detected.

Condition to detect all single-bit errors: the generator polynomial must have more than one non-zero term (at least two 1s, i.e. it must not be a single power of xx). A factor of (x+1)(x+1) additionally guarantees detection of all odd-numbered bit errors.

error-detectiondata-link-control
B

Section B: Short Answer Questions

Attempt all / any as specified.

8 questions
5short6 marks

Differentiate between Frequency Division Multiplexing (FDM), Time Division Multiplexing (TDM) and Wavelength Division Multiplexing (WDM). Explain the difference between synchronous TDM and statistical TDM with a diagram.

Multiplexing Techniques

FeatureFDMTDMWDM
Domain sharedFrequency band split into sub-bandsTime split into slotsWavelengths (light) of optical fiber
Signal typeAnalogDigital (also analog)Optical (analog/digital data on light)
MediumRadio, cableWired/wirelessOptical fiber
GuardGuard bands between channelsGuard timesGuard wavelengths
  • FDM: each channel occupies a different frequency sub-band of the link; all transmit simultaneously, separated by frequency.
  • TDM: the full bandwidth is given to each channel in turn for short time slots.
  • WDM: conceptually FDM applied to light — different wavelengths (colors) carried together on one fiber, combined and split by prisms/gratings.

Synchronous vs. Statistical TDM

Synchronous TDM: each input is pre-assigned a fixed time slot in every frame, whether or not it has data → empty slots waste bandwidth.

Statistical (asynchronous) TDM: slots are allocated dynamically only to inputs that actually have data, so slots carry an address; this raises utilization for bursty traffic.

Synchronous TDM frame:  | A | B | C | D |  (A & C idle => empty slots sent)
Statistical TDM frame:  | B:data | D:data |  (only active inputs; addr attached)
multiplexing
6short6 marks

State and explain the three main causes of transmission impairment: attenuation, distortion and noise. List the different types of noise that affect a communication channel.

Causes of Transmission Impairment

1. Attenuation: loss of signal energy (power) as it travels through the medium, due to the resistance of the medium. The signal weakens with distance and is restored by amplifiers/repeaters. Measured in decibels.

2. Distortion: change in the shape of the signal. A composite signal contains components of different frequencies that travel at different speeds (different propagation delays), so they arrive with different phases, altering the received waveform.

3. Noise: unwanted random signals added to the data signal, corrupting it.

Types of Noise

  • Thermal (Johnson) noise: random motion of electrons in the conductor; present in all media.
  • Induced noise: from external sources such as motors and appliances acting as antennas.
  • Crosstalk: signal of one wire/channel coupling into an adjacent one.
  • Impulse noise: sudden high-energy spikes from lightning, power lines or switching.
  • Intermodulation noise: new frequencies generated when signals of different frequencies share a non-linear medium.
transmission-impairmentssignals
7short6 marks

State Nyquist's theorem and Shannon's capacity formula. A telephone channel has a bandwidth of 3000 Hz and an SNR of 30 dB. Calculate the maximum theoretical channel capacity using Shannon's formula.

Nyquist and Shannon

Nyquist theorem (noiseless channel): the maximum bit rate for a noiseless channel of bandwidth BB with LL signal levels is

C=2Blog2L bpsC = 2B\log_2 L \ \text{bps}

Shannon capacity formula (noisy channel): the theoretical maximum capacity of a channel with bandwidth BB and signal-to-noise ratio SNRSNR is

C=Blog2(1+SNR) bpsC = B\log_2(1 + SNR) \ \text{bps}

Calculation

Given B=3000 HzB = 3000\ \text{Hz}, SNRdB=30 dBSNR_{dB} = 30\ \text{dB}.

Convert SNR from dB to ratio:

SNR=1030/10=103=1000SNR = 10^{30/10} = 10^3 = 1000

Apply Shannon's formula:

C=3000×log2(1+1000)=3000×log2(1001)C = 3000 \times \log_2(1 + 1000) = 3000 \times \log_2(1001) log2(1001)9.967\log_2(1001) \approx 9.967 C3000×9.96729,901 bps29.9 kbpsC \approx 3000 \times 9.967 \approx 29{,}901\ \text{bps} \approx 29.9\ \text{kbps}

Maximum theoretical channel capacity ≈ 30 kbps.

signalsanalog-digital-transmission
8short6 marks

Explain the steps involved in Pulse Code Modulation (PCM) with a block diagram. Define sampling, quantization and encoding, and state the sampling rate required for a signal band-limited to 4 kHz.

Pulse Code Modulation (PCM)

PCM converts an analog signal into a digital bit stream in three main steps.

Analog in --> [Sampling (S/H)] --> [Quantization] --> [Encoding] --> PCM bit stream

1. Sampling: the continuous analog signal is measured (sampled) at regular time intervals to produce a discrete-time PAM signal. By the Nyquist sampling theorem, the sampling rate must be at least twice the highest signal frequency, fs2fmaxf_s \ge 2 f_{max}.

2. Quantization: each sample's amplitude is rounded to the nearest of a finite set of levels (2n2^n levels for nn-bit PCM). The rounding introduces quantization error/noise.

3. Encoding: each quantized level is represented as an nn-bit binary code word, giving the digital output stream.

Required Sampling Rate

For a signal band-limited to fmax=4 kHzf_{max} = 4\ \text{kHz}:

fs2×4 kHz=8 kHz=8000 samples/sf_s \ge 2 \times 4\ \text{kHz} = 8\ \text{kHz} = 8000\ \text{samples/s}

So the minimum (Nyquist) sampling rate is 8000 samples per second — the basis of the 8 kHz rate used in digital telephony.

analog-digital-transmissionmodulation
9short6 marks

Compare the Stop-and-Wait ARQ, Go-Back-N ARQ and Selective-Repeat ARQ protocols on the basis of window size, number of retransmissions on error, and channel utilization.

Comparison of ARQ Protocols

FeatureStop-and-Wait ARQGo-Back-N ARQSelective-Repeat ARQ
Sender window1NN (up to 2m12^m - 1)2m1\le 2^{m-1}
Receiver window11Same as sender (2m1\le 2^{m-1})
Retransmission on errorResend the single frameResend the errored frame and all frames after itResend only the specific errored frame(s)
Receiver bufferingNoneNone (discards out-of-order)Buffers out-of-order frames
AcknowledgementPer frameCumulative ACKIndividual/selective ACK
Channel utilizationLowest (one frame per RTT)Better (pipelined, but wastes on error)Highest (only bad frames resent)
ComplexitySimplestModerateMost complex

Summary: utilization order is Selective-Repeat > Go-Back-N > Stop-and-Wait, at the cost of increasing complexity and receiver buffering.

data-link-control
10short6 marks

Explain the concept of Hamming distance and its relation to error detection and correction capability. A code has a minimum Hamming distance of 5; how many errors can it detect and how many can it correct?

Hamming Distance

The Hamming distance d(x,y)d(x, y) between two equal-length code words is the number of bit positions in which they differ (found by XOR-ing them and counting the 1s).

The minimum Hamming distance dmind_{min} of a code is the smallest Hamming distance between any pair of valid code words. It determines the code's error-handling power.

Relation to Error Detection and Correction

  • To detect up to ss errors:   dmins+1\;d_{min} \ge s + 1
  • To correct up to tt errors:   dmin2t+1\;d_{min} \ge 2t + 1

For dmin=5d_{min} = 5

Detection:

s=dmin1=51=4 errors detectables = d_{min} - 1 = 5 - 1 = 4 \text{ errors detectable}

Correction:

t=dmin12=42=2 errors correctablet = \left\lfloor \frac{d_{min}-1}{2} \right\rfloor = \left\lfloor \frac{4}{2} \right\rfloor = 2 \text{ errors correctable}

The code can detect up to 4 errors and correct up to 2 errors.

error-detectionerror-correction
11short6 marks

With the help of waveforms, explain the following line coding schemes: NRZ-L, NRZ-I, Manchester and Differential Manchester. State one advantage of Manchester encoding over NRZ.

Line Coding Schemes

(Waveforms described for the bit pattern; voltage levels noted.)

NRZ-L (Non-Return-to-Zero Level): the voltage level represents the bit — e.g. positive voltage = 0, negative = 1. The level stays constant for the whole bit; no transition unless the bit changes.

NRZ-I (Non-Return-to-Zero Inverted): the bit is encoded by transition: a 1 causes an inversion of level at the start of the bit, a 0 causes no change. This is differential, so it survives polarity reversal.

Manchester: each bit has a transition in the middle of the bit period. Convention: high→low transition = 0, low→high = 1 (or vice versa). The mid-bit transition both encodes data and provides clocking.

Differential Manchester: always has a mid-bit transition for synchronization; the data is encoded at the start of the bit — a 0 causes a transition at the start, a 1 causes no start transition.

Data:            1   0   1   1   0
NRZ-L:          ‾‾| __ |‾‾ |‾‾ | __     (level per bit)
NRZ-I:          (invert on 1, hold on 0)
Manchester:     each bit has a mid-bit edge
Diff-Manch.:    mid-bit edge always + start edge on 0

Advantage of Manchester over NRZ

Manchester encoding is self-clocking: the guaranteed mid-bit transition lets the receiver recover the clock and stay synchronized even during long runs of identical bits — whereas NRZ has no transitions during such runs, causing the receiver to lose synchronization.

analog-digital-transmissionsignals
12short6 marks

Explain the framing and flow control functions of the data link layer. Describe byte stuffing and bit stuffing with an example for the flag pattern 01111110.

Data Link Layer Functions

Framing: the data link layer packages the bit stream from the network layer into discrete frames, adding header and trailer (address, control, flag/delimiter, error-check) so the receiver can recognize where each frame starts and ends.

Flow control: a set of procedures that prevents a fast sender from overwhelming a slow receiver by limiting how much data can be sent before an acknowledgement (e.g. stop-and-wait or sliding-window).

Byte Stuffing (character stuffing)

Used in byte-oriented framing. A special flag byte marks frame boundaries. If the flag byte (or the escape byte) appears inside the data, an escape (ESC) byte is inserted before it so it is not mistaken for a real flag; the receiver removes the ESC.

Data:  ...  FLAG  ...
Sent:  ...  ESC FLAG  ...   (ESC inserted; ESC ESC for a real ESC)

Bit Stuffing

Used in bit-oriented framing (e.g. HDLC) where the flag is 01111110 (six consecutive 1s). To stop the data from accidentally containing the flag, the sender inserts a 0 after every five consecutive 1s in the data.

Flag delimiter:        0 1 1 1 1 1 1 0
Data containing 11111: 0 1 1 1 1 1 0 1   (after five 1s, insert 0)
                                 ^ stuffed 0

The receiver, on finding five 1s followed by a 0, removes that stuffed 0; a 0111111 0 sequence is recognized as the genuine flag. This guarantees the flag pattern never appears in the payload.

data-link-controlerror-detection

Frequently asked questions

Where can I find the BE Computer Engineering (Pokhara University) Data Communication (PU, CMM 220) question paper 2078?
The full BE Computer Engineering (Pokhara University) Data Communication (PU, CMM 220) 2078 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
Does the Data Communication (PU, CMM 220) 2078 paper come with solutions?
Yes. Every question on this Data Communication (PU, CMM 220) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the BE Computer Engineering (Pokhara University) Data Communication (PU, CMM 220) 2078 paper?
The BE Computer Engineering (Pokhara University) Data Communication (PU, CMM 220) 2078 paper carries 100 full marks and is meant to be completed in 180 minutes, across 12 questions.
Is practising this Data Communication (PU, CMM 220) past paper free?
Yes — reading and attempting this Data Communication (PU, CMM 220) past paper on Kekkei is completely free.