CCN/DCN, Past Papers, UOS Main Campus

Computer Communication & Network Past Paper 2016 – BSSE 4th Term UOS (CMP-2540)

ProgramBSSE
Term4th
Year2016
Course codeCMP-2540
AnswersSolved ✓

University of Sargodha Computer Communication & Network (CMP-2540) paper for BS Software Engineering 4th term, 2016 exam (80 marks, 2:30 hours). Solved answers are given below for all 16 short questions and all five long questions, including the OSI model, VLANs, fibre optics, multiplexing and xDSL.

Solved answers

Q1 – Short answers (16 × 2)

i. Network: A set of devices (nodes) such as computers and printers connected by communication links so that they can share data and resources.

ii. Encryption and its layer: Encryption converts readable data (plaintext) into an unreadable form (ciphertext) using a key, so only authorised receivers can read it. In the OSI model the presentation layer is responsible for encryption and decryption.

iii. Refraction: The bending of a light ray when it passes from one medium to another of different density (e.g. glass to air). In fibre optics, when the angle of incidence exceeds the critical angle, the light is totally reflected instead, which keeps it inside the core.

iv. Addresses at network and data link layers: The network layer uses logical (IP) addresses, e.g. 192.168.1.5; the data link layer uses physical (MAC) addresses, e.g. 07:01:02:01:2C:4B.

v. Digital-to-analog conversion: Changing digital data into an analog signal by varying the amplitude, frequency or phase of a carrier wave: ASK, FSK, PSK and QAM. A modem does this to send data over telephone lines.

vi. Two layers that offer reliability: The data link layer (hop-to-hop error and flow control) and the transport layer (end-to-end error control, acknowledgements and retransmission).

vii. Goal of multiplexing: To share one high-bandwidth link among several signals at the same time, so that the link is used efficiently and the cost of separate links is saved.

viii. Half-duplex vs full-duplex: In half-duplex both stations can send, but not at the same time (walkie-talkie). In full-duplex both can send and receive simultaneously (telephone).

ix. Two main categories of network: LAN (Local Area Network) covering a building or campus, and WAN (Wide Area Network) covering a country or the world. (MAN is in between.)

x. Why twisted pair is twisted: Twisting makes both wires receive equal noise and crosstalk, so the interference cancels at the receiver, which reads the difference between the two wires.

xi. Two types of line configuration: Point-to-point (a dedicated link between two devices) and multipoint (several devices share one link).

xii. Infrared waves: Electromagnetic waves from 300 GHz to 400 THz used for short-range line-of-sight communication; they cannot pass through walls. Example: a TV remote control or IrDA ports.

xiii. Handoff: In a cellular network, the transfer of an ongoing call or data session from one cell (base station) to another as the mobile user moves, without dropping the connection.

xiv. Throughput and bandwidth: Bandwidth is the maximum data rate a link can carry (bps) or the range of frequencies (Hz). Throughput is the actual rate at which data is successfully delivered, which is usually less than the bandwidth.

xv. Why protocols are needed: A protocol is a set of rules (syntax, semantics and timing) that devices must follow to communicate. Without protocols devices from different vendors could not understand each other.

xvi. Scrambling: A technique used with bipolar line coding (e.g. AMI) to replace long runs of zeros with special patterns (B8ZS, HDB3) so the receiver keeps synchronisation without adding extra bits.

Q2 – OSI model and its layers

The Open Systems Interconnection (OSI) model, developed by ISO, divides network communication into seven layers. Each layer provides services to the layer above it and uses the services of the layer below.

#LayerMain functionsExamples
7ApplicationNetwork services to users: e-mail, file transfer, remote login, directory servicesHTTP, FTP, SMTP, DNS
6PresentationTranslation between data formats, encryption/decryption, compressionJPEG, ASCII, SSL/TLS
5SessionDialog control (half/full duplex), synchronisation with checkpoints, session set-up and terminationRPC, NetBIOS
4TransportProcess-to-process delivery using port numbers, segmentation and reassembly, end-to-end flow and error control, connection controlTCP, UDP
3NetworkSource-to-destination delivery of packets, logical (IP) addressing, routingIP, ICMP, routers
2Data linkFraming, physical (MAC) addressing, hop-to-hop flow and error control, access controlEthernet, PPP, switches
1PhysicalTransmission of raw bits over the medium: signals, encoding, data rate, bit synchronisation, topology, transmission modeCables, hubs, repeaters

Data moves down the layers at the sender (each layer adds a header – encapsulation) and up the layers at the receiver, where the headers are removed. A common memory aid is “All People Seem To Need Data Processing”.

Q3 – VLAN

A Virtual LAN (VLAN) is a logical group of stations configured by software on switches, so that the stations behave as if they were on one LAN even if they are on different physical segments. Each VLAN is a separate broadcast domain.

How members are identified (membership characteristics):

  • Port numbers: switch ports are assigned to a VLAN (e.g. ports 1–4 in VLAN 1).
  • MAC addresses: each station’s 48-bit MAC address is mapped to a VLAN, so a station stays in its VLAN when it moves.
  • IP addresses: the 32-bit IP address (or subnet) defines membership.
  • Multicast IP addresses: a multicast group forms a VLAN.
  • Combination: modern switches can combine these criteria; frames between switches carry a VLAN tag (IEEE 802.1Q).

Advantages:

  • Cost and time reduction – moving a station to another group is a software change, not re-cabling.
  • Creating virtual work groups – people of one department can be in one VLAN wherever they sit.
  • Security – broadcasts and traffic stay inside the VLAN, so other groups cannot see them.
  • Reduced broadcast traffic and better performance, since each VLAN is a smaller broadcast domain.

Q4 – Fibre optic cable

Fibre-optic cable carries data as pulses of light through a thin glass or plastic core surrounded by cladding of lower density, so the light travels by total internal reflection.

Advantages:

  • Very high bandwidth (gigabits per second and more).
  • Low attenuation – signals travel much longer distances without repeaters.
  • Immune to electromagnetic interference and crosstalk.
  • Resistant to corrosive materials.
  • Light weight and small size.
  • Greater security – it is very hard to tap without detection.

Disadvantages:

  • Installation and maintenance need special skills and tools.
  • Unidirectional light propagation – two fibres are needed for two-way communication.
  • Cable and interfaces are more expensive than copper.
  • Glass fibre is fragile and can break if bent sharply.

Connectors:

  • SC (subscriber channel) – push/pull locking, used in cable TV.
  • ST (straight-tip) – bayonet locking, used in networking equipment.
  • MT-RJ – a small connector the same size as RJ-45 that carries two fibres.

Fibre modes: multimode step-index, multimode graded-index and single-mode.

Q5 – Multiplexing and its categories

Multiplexing is the set of techniques that allows several signals to be sent simultaneously across a single data link. A multiplexer (MUX) combines n input lines into one link, and a demultiplexer (DEMUX) separates them at the other end.

  • Frequency-Division Multiplexing (FDM): an analog technique. Each signal modulates a different carrier frequency, and the channels are separated by guard bands. Example: AM/FM radio, cable TV.
  • Wavelength-Division Multiplexing (WDM): the optical version of FDM. Light beams of different wavelengths (colours) are combined by a prism into one fibre and separated at the receiver. Used in high-capacity fibre links (DWDM).
  • Time-Division Multiplexing (TDM): a digital technique. Each connection gets a time slot in a frame, so the link’s time is shared. Synchronous TDM gives every input a fixed slot even if it has no data; statistical TDM gives slots only to inputs that have data, improving efficiency. Example: T-1 and E-1 lines.

FDM and WDM are for analog signals; TDM is for digital signals.

Q6 – DSL (xDSL) technologies

Digital Subscriber Line (DSL) technology provides high-speed digital access over the existing telephone local loop (twisted pair). xDSL is the family name:

TechnologyFull nameKey points
ADSLAsymmetric DSLHigher downstream than upstream rate (up to about 1.5–6.1 Mbps down, 16–640 kbps up); voice and data share the line using DMT; good for home internet
ADSL LiteSplitterless ADSLNo splitter needed at the customer side; up to 1.5 Mbps down, 512 kbps up
HDSLHigh-bit-rate DSLSymmetric 1.544 Mbps (T-1) using 2B1Q coding over two twisted pairs; up to about 3.6 km; replacement for T-1 lines
SDSLSymmetric DSLHDSL over one twisted pair; equal up and down rates (about 768 kbps); suits businesses
VDSLVery-high-bit-rate DSLVery high rates (25–55 Mbps down, 3.2 Mbps up) over short distances (300–1800 m); uses coaxial, fibre or twisted pair

In ADSL the telephone line bandwidth (about 1.1 MHz) is divided by Discrete Multitone (DMT) into 256 channels: channel 0 for voice, 1–5 idle as a guard band, about 25 upstream and about 225 downstream data channels. At the user side a splitter separates voice and data; at the telephone office a DSLAM does the same and connects data to the internet.

Save this paper for offline studyDownload the question paper, or save the paper together with all solved answers as a PDF.
↓ Download Paper (JPG)

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.