CCN/DCN, Past Papers, UOS Main Campus

Computer Communication and Networks Past Paper 2014 – BS IT 3rd Term UOS (CMP-2540)

ProgramBS IT
Term3rd
Year2014
Course codeCMP-2540
AnswersSolved ✓

University of Sargodha BS IT 3rd term Computer Communication and Networks (CMP-2540) paper, 2014 exam (80 marks, 2:30 hours). The paper is retyped below without the handwritten ticks, followed by solved answers for all 16 short questions and all six subjective questions: synchronous vs asynchronous transmission, unguided media, multiplexing, the OSI model, IEEE 802.11 wireless LAN and LAN topologies with real-world examples.

Solved answers

Q1 – Short answers (16 × 2)

i. Responsibilities of session layer. Dialog control (half/full duplex), establishing, maintaining and terminating sessions, synchronization by inserting checkpoints so a long transfer can resume after failure, and token management.

ii. Error detection vs correction. Detection only finds that an error has occurred (parity, checksum, CRC) and the data is then retransmitted (ARQ). Correction finds and fixes the erroneous bits at the receiver using redundant bits (Hamming code, FEC) without retransmission.

iii. High SNR. The signal power is much greater than the noise power, so the signal is clean and the channel can carry a higher data rate with fewer errors (C = B log2(1 + SNR)).

iv. TCP vs UDP. TCP is connection-oriented (3-way handshake), reliable (acknowledgements, retransmission), ordered, with flow and congestion control – used by HTTP, FTP, e-mail. UDP is connectionless, unreliable, no ordering, small 8-byte header and fast – used by DNS, VoIP, video streaming, online games.

v. Modem. A modem (modulator-demodulator) converts digital data from a computer into analog signals for transmission over telephone/cable lines (modulation) and converts received analog signals back to digital (demodulation).

vi. Parity bit. An extra bit added to data so that the total number of 1s is even (even parity) or odd (odd parity). The receiver checks the count to detect single-bit errors. Example: 1011001 with even parity → 10110010.

vii. Encryption. Encryption converts plaintext into unreadable ciphertext using an algorithm and key so only authorised parties can read it. In the OSI model it is the function of the presentation layer (layer 6); in practice it is also done at other layers (TLS, IPsec).

viii. Attenuation. Attenuation is the loss of signal strength (energy) as it travels through a medium, due to resistance and distance; measured in decibels (dB = 10 log P2/P1). Amplifiers or repeaters restore the signal.

ix. 3G vs 4G. 3G (UMTS/HSPA, CDMA2000): circuit + packet switching, data rates up to a few Mbps, video calling. 4G (LTE/LTE-Advanced): all-IP packet network, OFDMA and MIMO, rates of 100 Mbps – 1 Gbps, lower latency, HD streaming and VoLTE.

x. Why periodic signals are helpful. A periodic signal repeats with a fixed period, so it is fully described by amplitude, frequency and phase; it can be analysed with Fourier series into harmonics, used as a carrier for modulation and for clock/synchronisation.

xi. Line-of-sight communication. Transmission in which the sending and receiving antennas must be in a direct, unobstructed straight line – used by microwave and infrared (higher frequencies); the earth’s curvature limits range, so towers are placed high.

xii. Responsibility of HDLC. High-level Data Link Control is a bit-oriented data-link protocol that provides framing (flag 01111110, bit stuffing), addressing, error detection (CRC) and flow/error control with sliding window over point-to-point and multipoint links; it uses I-, S- and U-frames.

xiii. Softswitch. A software-based switch that controls call setup and routing in VoIP/IP telephony networks, separating call control from the media gateways – it replaces hardware telephone exchanges.

xiv. DSL. Digital Subscriber Line – a technology that provides high-speed internet over ordinary copper telephone lines by using higher frequencies than voice, so voice and data share the line (ADSL: faster download than upload; VDSL, SDSL).

xv. Layer for ARP and RARP. They map between IP (network-layer) and MAC (data-link) addresses; they are usually placed at the network layer (often described as working between layers 2 and 3).

xvi. Modulation. Changing a characteristic of a high-frequency carrier signal (amplitude, frequency or phase) according to the data signal, so it can be transmitted over the medium: AM/FM/PM for analog, ASK/FSK/PSK/QAM for digital.

Q2 – Synchronous vs asynchronous transmission

AsynchronousSynchronous
Data sent one byte (character) at a timeData sent as a continuous stream / blocks (frames)
Each byte has a start bit (0) and one or more stop bits (1)No start/stop bits; sender and receiver share a clock (or clock is embedded)
Gaps of variable length between bytesNo gaps between bytes
Simple and cheapMore complex timing hardware
Overhead about 20 % – slowerLow overhead – faster, efficient for large data
Examples: keyboard to computer, RS-232 serial portsExamples: Ethernet, HDLC frames, telephone backbones

Example: sending “A” (01000001) asynchronously: 0 | 10000010 (LSB first) | 1 – the idle line stays at 1. In synchronous transmission a frame such as 01111110 | data bytes … | CRC | 01111110 is sent with continuous bits synchronised to a clock.

Isochronous transmission (a variant) guarantees a fixed rate, needed for real-time audio/video.

Q3 – Unguided media

Unguided (wireless) media transport electromagnetic waves without a physical conductor, through air, water or vacuum. Signals spread by ground propagation (below 2 MHz, follows the earth), sky propagation (2–30 MHz, reflected by the ionosphere) and line-of-sight propagation (above 30 MHz).

  • Radio waves (3 kHz – 1 GHz): omnidirectional, penetrate walls, long range; AM/FM radio, TV, maritime radio, cordless phones. Easy to interfere and limited bandwidth.
  • Microwaves (1 – 300 GHz): unidirectional, need line of sight and aligned antennas (parabolic dish, horn); terrestrial towers and satellite links; cellular phones, Wi-Fi, WLANs. Very high data rates; affected by rain at high frequencies.
  • Infrared (300 GHz – 400 THz): very short range, cannot pass walls, no interference between rooms; TV remotes, IrDA links.
  • Satellite communication: microwave relay by GEO, MEO and LEO satellites for TV, GPS, internet in remote areas; large delay for GEO (~0.25 s).
  • Bluetooth and Wi-Fi are common short-range radio applications.

Advantages: mobility, no cabling cost, reach hard places. Disadvantages: interference, security risks, weather and obstacle effects, regulated spectrum.

Q4 – Multiplexing

Multiplexing allows several signals to share one link at the same time, using the link’s bandwidth efficiently. A multiplexer (MUX) combines n inputs into one stream; a demultiplexer (DEMUX) separates them.

  • Frequency-Division Multiplexing (FDM) – analog; each signal modulates a different carrier frequency with guard bands between channels. Example: radio and TV broadcasting, cable TV, first-generation cellular.
  • Wavelength-Division Multiplexing (WDM) – FDM for optical fiber; each signal uses a different wavelength (colour) of light, combined by a prism/grating. Example: DWDM backbone links.
  • Time-Division Multiplexing (TDM) – digital; each input gets a time slot in a frame. Synchronous TDM gives fixed slots even if a source has no data (T1 = 24 channels × 64 kbps + framing = 1.544 Mbps; E1 = 2.048 Mbps). Statistical TDM assigns slots dynamically only to active sources and adds addresses.
  • Code-Division Multiplexing (CDMA) – all users transmit at the same time on the same frequency using different orthogonal codes; used in 3G mobile networks.

Q5 – OSI model in detail

The OSI reference model has seven layers, grouped as network-support layers (1–3), the transport layer (4) linking them, and user-support layers (5–7). Each layer adds its own header (encapsulation) when sending and removes it when receiving; peer layers communicate using protocols.

LayerResponsibilitiesExamples
7 ApplicationNetwork services to user applications: file transfer, e-mail, web access, directory servicesHTTP, FTP, SMTP, DNS
6 PresentationTranslation of data formats, encryption/decryption, compressionJPEG, ASCII, SSL/TLS
5 SessionEstablish, manage and terminate sessions; dialog control; synchronization (checkpoints)RPC, NetBIOS
4 TransportProcess-to-process delivery, segmentation, port numbers, flow and error control, reliabilityTCP, UDP
3 NetworkLogical (IP) addressing, routing of packets across networks, fragmentationIP, ICMP, routers
2 Data linkFraming, physical (MAC) addressing, error detection (CRC), flow control, media accessEthernet, PPP, HDLC, switches
1 PhysicalTransmission of raw bits over the medium: signals, voltages, data rate, connectors, topologyCables, hubs, repeaters

Data units: bits (physical), frames (data link), packets (network), segments (transport), data/messages (upper layers). Devices: hub/repeater (layer 1), switch/bridge (layer 2), router (layer 3), gateway (all layers). The TCP/IP model combines the top three layers into one application layer.

Q6 – Wireless LAN IEEE 802.11

IEEE 802.11 (Wi-Fi) defines the physical and MAC layers for wireless LANs. Versions: 802.11b (11 Mbps, 2.4 GHz), 802.11a (54 Mbps, 5 GHz), 802.11g (54 Mbps, 2.4 GHz), 802.11n (up to 600 Mbps, MIMO), 802.11ac (Gbps, 5 GHz), 802.11ax (Wi-Fi 6).

Architecture

  • Station (STA) – any device with a wireless interface.
  • Basic Service Set (BSS) – stations with or without an access point (AP). Without an AP it is an ad-hoc network (IBSS); with an AP it is an infrastructure network.
  • Extended Service Set (ESS) – two or more BSSs connected by a distribution system (usually wired Ethernet) through their APs, allowing roaming.
  • Station mobility types: no-transition, BSS-transition, ESS-transition.

MAC sublayer: DCF uses CSMA/CA (carrier sense, random backoff, acknowledgements, optional RTS/CTS to solve the hidden-station problem, NAV for virtual carrier sense); PCF is an optional contention-free polling mode by the AP.

Services: distribution services – association, re-association, disassociation, distribution, integration (with wired LANs); station services – authentication, de-authentication, privacy (WEP/WPA2/WPA3 encryption) and MSDU delivery.

Q7 – LAN topologies with real-world examples

TopologyDescriptionProsCons
BusAll nodes connected to one backbone cable with terminatorsCheap, easy to install, little cableBackbone failure stops all; collisions; hard to troubleshoot
StarAll nodes connected to a central hub/switchEasy to add/remove nodes, one cable fault affects one node, easy managementCentral device is a single point of failure; more cable
RingEach node connected to two neighbours forming a loop; data passes in one direction (token)No collisions, equal access, good under heavy loadOne break can stop the ring (unless dual ring); adding nodes disrupts
MeshEvery node connected to every other (full) or many others (partial); n(n−1)/2 linksVery reliable, redundant paths, secure, no traffic problemsVery expensive, lots of cable and ports
Tree (hierarchical)Star networks connected through a bus/hierarchyScalable, easy expansion by groupsRoot/backbone failure affects a branch; complex cabling
HybridCombination of two or more topologies (e.g. star-bus)Flexible, suits large organisationsComplex design and cost
  • Star: a computer lab or office floor where all PCs connect to a central switch – the most common LAN today.
  • Bus: older 10Base2 thin-Ethernet labs; small temporary networks.
  • Ring: Token Ring LANs, FDDI campus backbones (dual ring), some metro fiber rings (SONET).
  • Mesh: bank data centres and internet backbones that need redundancy; wireless mesh in smart cities.
  • Tree/Hybrid: a university campus – each department has a star network, connected to a campus backbone.
Save this paper for offline studyDownload the question paper, or save the paper together with all solved answers as a PDF.
↓ Download Paper (JPG)
Have another year of CCN/DCN?

Upload a photo in 10 seconds — no form to fill. We clean it, solve it and credit you.

Missing years for this subject
202620242023

About Saif R

An educator and technology enthusiast passionate about empowering students through quality education and digital learning. Dedicated to making academic resources and opportunities accessible to everyone.