BE Computer Engineering (Pokhara University) Data Communication (PU, CMM 220) Question Paper 2078 Nepal
This is the official BE Computer Engineering (Pokhara University) Data Communication (PU, CMM 220) question paper for 2078, as set in the regular annual examination. It carries 100 full marks and a time allowance of 180 minutes, across 12 questions. On Kekkei you can attempt this Data Communication (PU, CMM 220) past paper online with a timer, get instant AI feedback and step-by-step solutions, and track the topics where you lose marks — completely free. Whether you are revising for your BE Computer Engineering (Pokhara University) Data Communication (PU, CMM 220) exam or solving previous years' question papers, this 2078 paper is a great way to practise under real exam conditions.
Section A: Long Answer Questions
Attempt all / any as specified.
(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
| Parameter | Twisted Pair | Coaxial Cable | Optical Fiber |
|---|---|---|---|
| Bandwidth | Low (up to a few hundred MHz) | Medium (hundreds of MHz–few GHz) | Very high (THz range) |
| Attenuation | High | Moderate | Very low |
| Cost | Cheapest | Moderate | Highest (cable + connectors) |
| Immunity to EMI | Poor (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 ():
The loss is about 3 dB (negative sign indicates attenuation).
Gain when amplified by a factor of 10 ():
Overall gain (decibels add along a path):
The overall result is a net gain of about 7 dB.
(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 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 ( for 1, for 0); amplitude constant.
- Waveform: tightly spaced cycles (high ) for one bit, widely spaced cycles (low ) for the other.
- Application: low-speed modems, caller-ID, RFID.
Phase Shift Keying (PSK): the carrier phase is shifted (e.g. for 1 and 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 ().
Bit rate for 8-PSK: each signal element (baud) carries bits.
(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
| Criterion | Circuit Switching | Datagram Packet Switching | Virtual-Circuit Packet Switching |
|---|---|---|---|
| Setup delay | High — dedicated path set up before data | None — each packet sent independently | One-time setup of VC before data |
| Addressing overhead | Address used only at setup | Full destination address in every packet | Short VC identifier per packet |
| Resource reservation | Bandwidth reserved end-to-end for whole call | No reservation; best-effort | Path fixed; resources may be reserved |
| Suitability for bursty traffic | Poor — reserved bandwidth wasted when idle | Excellent — statistical multiplexing | Good — shares links, ordered delivery |
| Packet ordering | In order (single path) | May arrive out of order | In 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]
- Circuit establishment (setup): a dedicated end-to-end path through the switches is reserved before any data flows.
- Data transfer: data flows continuously over the reserved circuit with low, constant delay.
- 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.
(a) A bit stream 1101011011 is to be transmitted using the CRC generator polynomial (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: (10 bits)
- Generator: divisor (5 bits, so append zeros)
- Dividend: append 4 zeros →
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 =
Receiver verification
The receiver divides the received 14-bit codeword by . Since the CRC bits were chosen to make the codeword exactly divisible by , the remainder is → no error detected, frame accepted.
(b) Error Detection by CRC
- Single-bit error: a single error corresponds to an error polynomial . If has at least two non-zero terms (more than one '1'), it cannot divide exactly, so a non-zero remainder appears and the error is detected.
- Burst error: a burst of length gives . If the burst length (the degree of , i.e. number of CRC bits), cannot divide , 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 ). A factor of additionally guarantees detection of all odd-numbered bit errors.
Section B: Short Answer Questions
Attempt all / any as specified.
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
| Feature | FDM | TDM | WDM |
|---|---|---|---|
| Domain shared | Frequency band split into sub-bands | Time split into slots | Wavelengths (light) of optical fiber |
| Signal type | Analog | Digital (also analog) | Optical (analog/digital data on light) |
| Medium | Radio, cable | Wired/wireless | Optical fiber |
| Guard | Guard bands between channels | Guard times | Guard 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)
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.
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 with signal levels is
Shannon capacity formula (noisy channel): the theoretical maximum capacity of a channel with bandwidth and signal-to-noise ratio is
Calculation
Given , .
Convert SNR from dB to ratio:
Apply Shannon's formula:
Maximum theoretical channel capacity ≈ 30 kbps.
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, .
2. Quantization: each sample's amplitude is rounded to the nearest of a finite set of levels ( levels for -bit PCM). The rounding introduces quantization error/noise.
3. Encoding: each quantized level is represented as an -bit binary code word, giving the digital output stream.
Required Sampling Rate
For a signal band-limited to :
So the minimum (Nyquist) sampling rate is 8000 samples per second — the basis of the 8 kHz rate used in digital telephony.
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
| Feature | Stop-and-Wait ARQ | Go-Back-N ARQ | Selective-Repeat ARQ |
|---|---|---|---|
| Sender window | 1 | (up to ) | |
| Receiver window | 1 | 1 | Same as sender () |
| Retransmission on error | Resend the single frame | Resend the errored frame and all frames after it | Resend only the specific errored frame(s) |
| Receiver buffering | None | None (discards out-of-order) | Buffers out-of-order frames |
| Acknowledgement | Per frame | Cumulative ACK | Individual/selective ACK |
| Channel utilization | Lowest (one frame per RTT) | Better (pipelined, but wastes on error) | Highest (only bad frames resent) |
| Complexity | Simplest | Moderate | Most complex |
Summary: utilization order is Selective-Repeat > Go-Back-N > Stop-and-Wait, at the cost of increasing complexity and receiver buffering.
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 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 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 errors:
- To correct up to errors:
For
Detection:
Correction:
The code can detect up to 4 errors and correct up to 2 errors.
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.
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.
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.