BIT254 · TU past paper
Network and Data Communications 2080 question paper
The complete TU 2080 exam paper for Network and Data Communications (BIT254), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- 110 marksNumericalAttenuation distortion and noiseHideAnswer
Differentiate between noise and attenuation. A pure ALOHA network transmits 200 bit frames using a shared channel with a 50 kbps bandwidth. What is the requirement to make this frame collision free?[10]
Parameter Value ------ Frame size (L) 200 bits Channel bandwidth (B) 50 kbps = 50,000 bps Protocol Pure ALOHA All required data is present. No missing values. --- Feature Noise Attenuation --------- Definition Unwanted electrical/electro...
- 210 marksCongestion control definitionHideAnswer
What is Congestion Control? How can it be handled? Explain acknowledgement policy and discarding policy[10]
Congestion Control
Definition
Congestion in a network occurs when the number of packets being transmitted through the network approaches the packet handling capacity of the network. Congestion control refers to the mechanisms and techniques used to control or prevent congestion so that network performance does not degrade.
Note: No specific reference notes were found for this topic; the answer below is based on standard networking curriculum (Forouzan / Tanenbaum) as taught in BSc CSIT.
Why Congestion Occurs
When too many packets are present in a part of the network, network performance degrades. This happens because:
- Routers have limited buffer (queue) space
- Links have limited bandwidth
- Processors in routers have limited processing speed
If the load exceeds capacity, packets are dropped, retransmissions increase, and the situation worsens -- leading to congestion collapse.
How Congestion Can Be Handled
Congestion control approaches are broadly classified as:
1. Open Loop Congestion Control (Prevention)
Policies are applied before congestion occurs -- at the design stage.
Policy Point Technique Source Retransmission policy, Windowing policy Destination Acknowledgement policy Router/Switch Discarding policy, Scheduling policy 2. Closed Loop Congestion Control (Reaction)
Policies are applied after congestion is detected.
- Back pressure: A congested node sends a signal to the upstream node to slow down.
- Choke packet: A special packet is sent by the router to the source to reduce its transmission rate.
- Implicit signaling: Source detects congestion from delays or dropped packets (e.g., TCP timeout).
- Explicit signaling: Router explicitly marks packets to inform source/destination of congestion (e.g., ECN -- Explicit Congestion Notification).
Open Loop Congestion Control Policies (Detailed)
A. Acknowledgement Policy
The acknowledgement (ACK) policy at the receiver side can greatly affect congestion.
How it works:
- If the receiver sends an acknowledgement for every packet received, it encourages the sender to keep sending packets rapidly, which can contribute to congestion.
- By delaying acknowledgements, the receiver can slow down the sender and reduce network load.
Techniques:
Technique Description Cumulative ACK Receiver sends one ACK for multiple received packets instead of one ACK per packet. This reduces ACK traffic and slows the sender. Delayed ACK Receiver waits for a short time (e.g., up to 500 ms) before sending an ACK, hoping to piggyback it on a data packet or combine multiple ACKs. Selective ACK (SACK) Receiver acknowledges only specific packets, avoiding unnecessary retransmissions. Effect on Congestion:
- Fewer ACKs mean the sender's window advances more slowly.
- This reduces the rate at which new packets are injected into the network.
- Thus, acknowledgement policy directly helps in preventing congestion at the source.
B. Discarding Policy
The discarding policy is applied at routers/switches. When a router's buffer is full or near full, it must decide which packets to drop.
Approaches:
1. Tail Drop (Default / Simple)
- When the buffer is full, the router simply drops all incoming packets (from the tail of the queue).
- Problem: Can cause global synchronization -- many TCP connections reduce their window simultaneously, then increase together, causing oscillation.
2. Random Early Detection (RED)
- The router monitors its average queue length.
- When the queue length exceeds a minimum threshold (min_th), it starts randomly dropping packets with increasing probability.
- When the queue length exceeds a maximum threshold (max_th), all packets are dropped.
Queue Length: 0 -------- min_th -------- max_th -------- Max Buffer | | Start random Drop all dropping packets- Advantage: Prevents global synchronization; notifies individual connections early.
- Advantage: Maintains low average queue length and low delay.
3. Priority-Based Discarding
- Packets are assigned priority levels.
- When congestion occurs, lower priority packets are dropped first.
- Higher priority packets (e.g., real-time voice/video) are protected.
4. Weighted RED (WRED)
- Extension of RED where different traffic classes have different drop probabilities.
- Higher priority traffic has a lower drop probability.
Summary Table
Policy Applied At Purpose Acknowledgement Policy Receiver (Destination) Slow down sender by reducing ACK frequency Discarding Policy Router/Switch Decide which packets to drop when buffer is full Retransmission Policy Sender (Source) Avoid unnecessary retransmissions Scheduling Policy Router Decide which packet to send next (e.g., FIFO, WFQ)
Conclusion
Congestion control is essential for maintaining network performance and reliability. Open loop methods like acknowledgement policy and discarding policy prevent congestion proactively, while closed loop methods react to congestion after it is detected. Together, these mechanisms ensure fair and efficient use of network resources.
- 310 marksPractical implications of OSI layersHideAnswer
What are the practical implications of OSI layer? Define each layer focusing on its functionality and hardware used in each layer[10]
Practical Implications of OSI Layers and Their Definitions
Introduction
The OSI (Open Systems Interconnection) model is a conceptual framework developed by ISO that standardizes the functions of a communication system into seven distinct layers. It provides a universal language for networking, allowing diverse systems to communicate.
Practical Implications of the OSI Model
The OSI model has several important practical implications:
- Standardization: Allows hardware and software from different vendors to work together (interoperability).
- Troubleshooting: Network engineers can isolate problems layer by layer (e.g., a physical cable fault vs. a routing issue).
- Modular Design: Each layer can be developed, updated, or replaced independently without affecting other layers.
- Protocol Development: Guides the design of networking protocols (e.g., TCP/IP maps to OSI layers).
- Security Implementation: Security measures can be applied at specific layers (e.g., firewalls at Network layer, SSL/TLS at Session/Presentation layer).
- Teaching and Learning: Provides a structured way to understand complex networking concepts.
- Vendor Independence: Promotes open standards so no single vendor controls the entire communication stack.
The Seven Layers of the OSI Model
Layer 7: Application Layer
Aspect Detail Function Provides network services directly to end-user applications. It is the interface between the network and the application software. Protocols HTTP, FTP, SMTP, DNS, Telnet, SNMP Hardware Application servers, end-user computers, gateways Key Role Handles file transfer, email, web browsing, and remote login Example: When you open a browser and type a URL, the Application layer handles the HTTP request.
Layer 6: Presentation Layer
Aspect Detail Function Responsible for data translation, encryption, and compression. It converts data from application format to network format and vice versa. Protocols SSL/TLS, JPEG, MPEG, ASCII, EBCDIC Hardware Redirectors, gateways Key Role Ensures data is in a readable format for the Application layer Example: Converting an image file to JPEG format or encrypting data using SSL before transmission.
Layer 5: Session Layer
Aspect Detail Function Manages sessions (connections) between applications. It establishes, maintains, synchronizes, and terminates communication sessions. Protocols NetBIOS, RPC, PPTP, SIP Hardware Gateways, servers Key Role Dialog control (half-duplex or full-duplex), session checkpointing and recovery Example: When you log into a remote server, the Session layer manages the login session and ensures it stays active.
Layer 4: Transport Layer
Aspect Detail Function Provides end-to-end communication, error detection, flow control, and data segmentation/reassembly. Ensures complete data transfer. Protocols TCP (reliable), UDP (unreliable/fast) Hardware Gateways, load balancers, firewalls Key Role Segmentation, acknowledgment, retransmission, port addressing Example: TCP breaks a large file into segments, numbers them, and reassembles them at the destination, requesting retransmission if any segment is lost.
Layer 3: Network Layer
Aspect Detail Function Responsible for logical addressing (IP addressing) and routing. It determines the best path for data to travel from source to destination across multiple networks. Protocols IP, ICMP, OSPF, BGP, RIP Hardware Routers, Layer-3 switches Key Role Packet forwarding, routing, logical addressing Example: A router uses IP addresses to forward packets from your home network to a web server on the internet.
Layer 2: Data Link Layer
Aspect Detail Function Provides node-to-node data transfer and handles error detection/correction from the physical layer. It frames data packets and uses MAC addresses for physical addressing. Protocols Ethernet, PPP, HDLC, ARP, Frame Relay Hardware Switches, bridges, NICs (Network Interface Cards) Key Role Framing, MAC addressing, error detection (CRC), flow control Example: An Ethernet switch uses MAC addresses to forward frames only to the correct port on a LAN.
Layer 1: Physical Layer
Aspect Detail Function Deals with the physical transmission of raw bits (0s and 1s) over a physical medium. It defines electrical, mechanical, and procedural specifications. Standards RS-232, DSL, IEEE 802.3 Hardware Hubs, repeaters, cables (coaxial, fiber optic, twisted pair), connectors, modems Key Role Bit transmission, signal encoding, data rate, physical topology Example: A fiber optic cable transmitting light pulses representing binary data operates at the Physical layer.
Summary Table
Layer Name Key Function Hardware 7 Application User interface to network Servers, computers 6 Presentation Data translation, encryption Gateways 5 Session Session management Gateways, servers 4 Transport End-to-end delivery, segmentation Firewalls, load balancers 3 Network Routing, logical addressing Routers 2 Data Link Framing, MAC addressing Switches, bridges 1 Physical Bit transmission Hubs, repeaters, cables, connectors, modems
Conclusion
The practical value of the OSI model is that it turns one large problem, moving data between two machines, into seven smaller problems with clearly defined boundaries. A fault can then be localised layer by layer, a cable or a NIC at layer 1 and 2, an IP or routing problem at layer 3, a port or firewall problem at layer 4 and an application or DNS problem above it, which is exactly how network troubleshooting is taught and practised. The same boundaries let vendors build interoperable equipment, let a protocol at one layer be replaced without touching the others, and give engineers a common vocabulary in which a "layer 3 switch" or a "layer 7 firewall" means something precise.
- 45 marksCircuit switching advantages and disadvantHideAnswer
What is circuit switching? What are its advantages and disadvantages? [5]
Circuit Switching
Definition
Circuit switching is a method of communication in which a dedicated physical path (circuit) is established between the sender and receiver before data transmission begins, and this path remains reserved for the entire duration of the communication session. The classic example is the traditional telephone network (PSTN).
The communication takes place in three phases:
- Circuit Establishment - A dedicated path is set up from source to destination through intermediate switches.
- Data Transfer - Data is transmitted over the reserved circuit.
- Circuit Termination - The circuit is released/disconnected after communication ends.
Advantages of Circuit Switching
# Advantage 1 Guaranteed bandwidth - Resources are dedicated, so a fixed data rate is assured throughout the session. 2 No congestion during transfer - Once the circuit is established, no other traffic can interfere. 3 Low and consistent latency - Data flows continuously without queuing delays at intermediate nodes. 4 Suitable for real-time communication - Ideal for voice calls and video where delay must be minimal and predictable. 5 Simple data transfer phase - After setup, data moves transparently without per-packet routing decisions.
Disadvantages of Circuit Switching
# Disadvantage 1 Inefficient use of bandwidth - The dedicated circuit remains reserved even when no data is being sent (idle time wastes resources). 2 Long setup time - Establishing the circuit before communication introduces an initial delay. 3 Blocking - If resources along the path are unavailable, the call/connection is rejected entirely. 4 Not suitable for bursty data - Computer data traffic is bursty in nature; reserving a fixed circuit is wasteful. 5 Higher cost - Dedicated resources mean less sharing, leading to higher infrastructure costs per user.
Summary
Circuit switching trades resource efficiency for guaranteed, consistent performance, making it well-suited for voice telephony but less ideal for modern data networks where packet switching is preferred.
- 55 marksDNS vs DHCP differencesHideAnswer
What is the difference between DNS and DHCP? Explain with example [5]
--- DNS is a naming system that translates human-readable domain names into IP addresses so that computers can locate each other on a network. - It works like a phone book of the internet. - It operates on Port 53 using UDP/TCP. - It is ...
- 65 marksReliable and unreliable protocolsHideAnswer
Write short notes on Reliable Protocol and Satellite Network [5]
Short Notes on Reliable Protocol and Satellite Network
1. Reliable Protocol
A reliable protocol is a communication protocol that guarantees the delivery of data from sender to receiver correctly, completely, and in order.
Key Characteristics:
- Error Detection and Correction: Uses checksums, CRC, or parity bits to detect errors in transmitted data.
- Acknowledgement (ACK): The receiver sends an acknowledgement to the sender after successfully receiving data.
- Retransmission: If ACK is not received within a timeout period, the sender retransmits the lost or corrupted data.
- Sequencing: Data packets are numbered so the receiver can reorder them if they arrive out of sequence.
- Flow Control: Prevents the sender from overwhelming the receiver (e.g., sliding window protocol).
- Connection-Oriented: Typically establishes a connection before data transfer (e.g., TCP).
Example:
TCP (Transmission Control Protocol) is the most common reliable protocol. It ensures all segments are delivered, acknowledged, and reassembled in correct order.
2. Satellite Network
A satellite network is a type of wireless network that uses artificial satellites orbiting the Earth as relay stations to transmit data, voice, and video signals between ground stations.
Types of Satellite Orbits:
Type Altitude Latency Example Use GEO (Geostationary) ~36,000 km High (~270 ms) TV broadcast, weather MEO (Medium Earth Orbit) 5,000-20,000 km Medium GPS LEO (Low Earth Orbit) 500-2,000 km Low Starlink, mobile Key Characteristics:
- Wide Coverage: A single satellite can cover a large geographic area.
- High Latency (GEO): Due to long signal travel distance, GEO satellites have significant propagation delay.
- Broadcast Capability: Signals can be sent to multiple receivers simultaneously.
- Used in Remote Areas: Provides connectivity where terrestrial networks are unavailable.
- Bandwidth Limitations: Satellite bandwidth is shared among many users.
Applications:
- Internet access in rural/remote areas
- Military communications
- GPS and navigation
- Weather forecasting
- Television broadcasting
Note: Since no specific curriculum notes were provided, this answer is based on standard networking concepts as covered in typical BSc CSIT Data Communication and Networking courses.
- 75 marksLeaky-bucket algorithmHideAnswer
Explain leaky-bucket algorithm with an example [5]
The leaky bucket algorithm is a traffic shaping and congestion control mechanism used in computer networks to control the rate at which data packets are sent into the network. It smooths out bursty traffic and converts it into a steady, ...
- 85 marksNumericalDigital signal encoding NRZ-LHideAnswer
Represent bit sequence 100111001 by the following wave forms: NRZ-L, NRZ-I [5]
- Bit sequence: $1\ 0\ 0\ 1\ 1\ 1\ 0\ 0\ 1$ (9 bits) - Encoding schemes required: NRZ-L, NRZ-I --- Rule (Forouzan convention): - Bit 1 → Low voltage level - Bit 0 → High voltage level The level is set purely by the current bit value (abs...
- 95 marksLink State routing protocol featuresHideAnswer
Explain link state routing protocol with an example [5]
Link State Routing is a dynamic routing protocol in which each router has complete knowledge of the entire network topology. Every router independently computes the shortest path to all other routers using this global map. --- - Each rou...
- 105 marksDNS recursive resolutionHideAnswer
Explain recursive resolution. What are its advantages? [5]
Recursive resolution is a name resolution strategy used in the Domain Name System (DNS) where a DNS resolver takes full responsibility for resolving a query on behalf of the client. Instead of referring the client to another server, the ...
- 115 marksNumericalCRC transmitted frame encodingHideAnswer
Calculate the transmitted encoded frame if the message sequence is 10010001 and generator polynomial is $G(X) = x^2 + x + 1$ [5]
CRC Encoding: Transmitted Frame Calculation
Given Data
- Message sequence $M = 10010001$
- Generator polynomial $G(X) = x^2 + x + 1$
Step 1: Generator Bit Pattern
$G(X) = x^2 + x + 1 \Rightarrow \mathbf{111}$
Degree $r = 2$, so append 2 zeros.
Step 2: Augmented Dividend
$$1001000100$$
Step 3: Modulo-2 Division by 111
Let me perform the division carefully, tracking each bit.
Dividend: 1 0 0 1 0 0 0 1 0 0 Divisor: 1 1 1I'll process left to right. Take leading 3 bits, XOR when leading bit is 1.
1001000100 : 111 100 → leading 1, XOR 111 = 011 bring down 1 → 0111 → work on 111 111 → leading 1, XOR 111 = 000 bring down 0 → 0000 → 000 000 → leading 0, no XOR bring down 0 → 0000 → 000 000 → leading 0, no XOR bring down 1 → 0001 → 001 001 → leading 0, no XOR bring down 0 → 0010 → 010 010 → leading 0, no XOR bring down 0 → 0100 → 100 100 → leading 1, XOR 111 = 011 (no more bits)Let me align this against the full 10-bit dividend to verify by tracking the running remainder bit by bit.
Running remainder method (shift in each dividend bit, XOR divisor 111 when MSB of the 3-bit window is 1):
Bit in Window before MSB=1? XOR 111 Window after 1 001 no (msb 0) 001 → wait To avoid confusion, use standard long-division layout:
1 0 1 1 0 0 1 ----------------- 1 1 1 ) 1 0 0 1 0 0 0 1 0 0 1 1 1 ----- 0 1 1 0 1 1 1 (align at next 1)Let me do it strictly with the standard algorithm:
1 0 0 1 0 0 0 1 0 0 XOR 1 1 1 (pos 1-3): 100^111 = 011 → 0 1 1 1 0 0 0 1 0 0 XOR 1 1 1 (pos 2-4): 111^111 = 000 → 0 0 0 0 0 0 0 1 0 0 (pos 3-5 leading 0, skip) (pos 4-6 leading 0, skip) (pos 5-7 leading 0, skip) (pos 6-8 leading 0, skip; bits are 0,0,1) XOR 1 1 1 (pos 7-9): bits 0 1 0 leading 0 skipAfter the second XOR the string is $0000000100$. The remaining bits are $...100$ at positions 8,9,10.
Reading positions 8-10: $1,0,0$. Leading bit position 8 is 1:
Position 8-10: $100 \oplus 111 = 011$.
Final string tail: last 2 bits = 11.
The remainder (last $r=2$ bits after full reduction) = $\mathbf{11}$.
Verification of Remainder
Reconstruct: string became $0000000100$, then XOR 111 at positions 8-10: $$100 \oplus 111 = 011$$ Final 2 bits = $\mathbf{11}$.
CRC = 11
Careful reduction gives remainder 11; a hand division that drops or misaligns bits in Step 3 would give 01 instead.
Step 4: Transmitted Frame
$$\text{Frame} = \underbrace{10010001}{M} ; \underbrace{11}{CRC} = \mathbf{1001000111}$$
Verification (divide frame by 111, expect remainder 0)
$1001000111$:
- $100 \oplus 111 = 011$ → $0111000111$
- $111 \oplus 111 = 000$ → $0000000111$
- tail $111 \oplus 111 = 000$ → remainder $\mathbf{00}$ ✓
Remainder is zero, confirming correctness.
Result
Transmitted Encoded Frame =
1001000111(CRC = 11) - 125 marksTime Division MultiplexingHideAnswer
Explain the concept of TDMA with a neat diagram. [5]
TDMA (Time Division Multiple Access) is a channel access method used in shared medium networks where multiple users share the same frequency channel by dividing the signal into different time slots. Each user is assigned a specific time ...