BIT254 · TU past paper
Network and Data Communications 2079 question paper
The complete TU 2079 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 marksBinary Amplitude Shift KeyingHideAnswer
Explain the concept of Binary Amplitude Shift Keying. Represent bit sequence 11001010 by the following waveform a.) Manchester b.) Differential Manchester[10]
--- Binary Amplitude Shift Keying (BASK) is a form of digital modulation in which the amplitude of a carrier signal is varied to represent binary data (0s and 1s), while the frequency and phase remain constant. The BASK signal can be exp...
- 210 marksLink State routing protocol featuresHideAnswer
What are the features of link State routing protocols. Explain how Link State routing protocol can be used to find the shortest path with relevant example. What are its disadvantages?[10]
Link State Routing Protocol
Features of Link State Routing Protocol
Link State routing is a dynamic routing protocol where each router has complete knowledge of the entire network topology. Its key features are:
-
Complete Topology Knowledge: Every router maintains a complete map of the entire network (topology database), unlike distance vector where routers only know about neighbors.
-
Hello Packets: Each router discovers its neighbors by sending "Hello" packets to directly connected routers.
-
Link State Advertisements (LSAs): Each router broadcasts LSAs (containing its identity, neighbors, and link costs) to all routers in the network using flooding.
-
Dijkstra's Algorithm: Each router independently runs Dijkstra's Shortest Path First (SPF) algorithm on its topology database to compute the shortest path to every destination.
-
Fast Convergence: Link state protocols converge much faster than distance vector protocols because topology changes are flooded immediately.
-
Loop-Free Routes: Since every router has the same topology map and runs SPF independently, routing loops are avoided.
-
Incremental Updates: Only changes in the network (not the full table) are advertised, reducing bandwidth usage after initial convergence.
-
Hierarchical Design Support: Supports areas (e.g., OSPF areas) to reduce LSA flooding scope and improve scalability.
-
Examples: OSPF (Open Shortest Path First), IS-IS (Intermediate System to Intermediate System).
How Link State Routing Finds the Shortest Path (Dijkstra's Algorithm)
Steps of the Algorithm
Let:
- N' = set of nodes whose least-cost path is definitively known
- D(v) = current best estimate of cost from source to node v
- p(v) = predecessor node of v on the best path
Algorithm:
1. Initialize: - N' = {source} - For all nodes v: If v is a direct neighbor: D(v) = cost(source, v) Else: D(v) = infinity 2. Loop until all nodes are in N': a. Find node w NOT in N' with minimum D(w) b. Add w to N' c. Update D(v) for all neighbors v of w NOT in N': D(v) = min( D(v), D(w) + cost(w, v) ) 3. The result gives shortest path from source to all nodes.
Worked Example
Consider the following network with 6 nodes: A, B, C, D, E, F
Link costs (bidirectional):
A -- B : 2 A -- C : 5 B -- C : 3 B -- D : 1 C -- E : 4 D -- E : 2 D -- F : 6 E -- F : 1Network Diagram:
2 1 A------B-------D | \ |\ 5 3 \ | 6 | \ | C-------- + F \ (B-C=3) | 4 1 \ | E----------+ 2 D----E (cost 2)Let us find the shortest path from Source = A to all other nodes.
Initialization:
Node D(A) D(B) D(C) D(D) D(E) D(F) Init 0 2 5 inf inf inf N' = {A}
Iteration 1:
- Node with minimum D not in N': B (D=2)
- Add B to N' → N' = {A, B}
- Update neighbors of B (C, D):
- D(C) = min(5, 2+3) = min(5, 5) = 5
- D(D) = min(inf, 2+1) = 3
Step N' D(B) D(C) D(D) D(E) D(F) 1 {A,B} 2 5 3 inf inf
Iteration 2:
- Minimum D not in N': D (D=3)
- Add D to N' → N' = {A, B, D}
- Update neighbors of D (E, F):
- D(E) = min(inf, 3+2) = 5
- D(F) = min(inf, 3+6) = 9
Step N' D(C) D(E) D(F) 2 {A,B,D} 5 5 9
Iteration 3:
- Minimum D not in N': C or E (both D=5, pick C)
- Add C to N' → N' = {A, B, D, C}
- Update neighbors of C (E):
- D(E) = min(5, 5+4) = min(5, 9) = 5 (no change)
Iteration 4:
- Minimum D not in N': E (D=5)
- Add E to N' → N' = {A, B, D, C, E}
- Update neighbors of E (F):
- D(F) = min(9, 5+1) = 6
Iteration 5:
- Minimum D not in N': F (D=6)
- Add F to N' → N' = {A, B, D, C, E, F}
Final Shortest Path Table (from A)
Destination Shortest Cost Path B 2 A → B C 5 A → B → C D 3 A → B → D E 5 A → B → D → E F 6 A → B → D → E → F Note that C has two paths of equal cost, the direct link A to C of cost 5 and A to B to C of cost 2 plus 3, so either may be entered in the table.
Disadvantages of Link State Routing
Disadvantage Explanation High memory requirement Every router stores the complete topology of the area, not just the distance to each destination High processing cost Dijkstra's algorithm runs in O(n log n) with a heap and must be re-run on every topology change Flooding overhead Link state packets are flooded to every router in the area, and the traffic grows quickly with the number of routers Complex configuration Areas, router IDs, authentication and metric tuning make protocols such as OSPF harder to set up than RIP Instability under flapping A link that repeatedly goes up and down forces repeated flooding and repeated recomputation across the whole area Scaling limit A single area cannot grow without bound, so a large network must be divided into areas with a backbone, which adds design effort
Conclusion
Link state routing gives each router a complete and identical map of the network, built from the link state advertisements flooded by every router, and each one then runs Dijkstra's algorithm on that map to compute its own shortest path tree. In the example above the router at A learns costs of 2, 5, 3, 5 and 6 to B, C, D, E and F respectively. Because every router works from the same map, convergence is fast and routing loops are avoided, which is the main advantage over distance vector routing. The cost is memory, processing and flooding overhead, which is why protocols such as OSPF and IS-IS divide a large network into areas.
-
- 310 marksStop-and-Wait ARQ designHideAnswer
Explain the design of Stop-and-Wait ARQ. Illustrate with suitable flow diagram example[10]
ARQ (Automatic Repeat reQuest) is an error-control mechanism used in data link layer and transport layer protocols. It combines error detection with retransmission to ensure reliable data delivery over an unreliable channel. Stop-and-Wai...
- 45 marksAttenuation distortion and noiseHideAnswer
What are the major differences between noise, distortion and attenuation? [5]
Differences Between Noise, Distortion, and Attenuation
Definitions and Key Differences
Feature Noise Distortion Attenuation Definition Unwanted random signals added to the original signal during transmission Alteration in the shape/form of the signal due to different propagation speeds of signal components Reduction in the strength (amplitude/power) of the signal as it travels through a medium Cause External interference (thermal, electromagnetic, crosstalk, impulse sources) Different frequency components of a signal traveling at different speeds through the medium Energy loss due to resistance, absorption, or scattering in the transmission medium Effect on Signal Adds unwanted random components to the signal Changes the shape/waveform of the signal Weakens the signal without necessarily changing its shape Nature Additive -- foreign energy is added to the signal Morphological -- the signal form is deformed Multiplicative/Loss -- signal energy is reduced Frequency Dependency Generally affects all frequencies (especially impulse noise) Strongly frequency-dependent (different frequencies affected differently) Increases with distance and frequency Solution/Remedy Shielding, filtering, error correction codes Equalization techniques, careful medium selection Amplifiers, repeaters, signal boosters Example Static/hiss heard on a telephone line Echo or blurring of a digital pulse over long cables Faint signal received far from a transmitter
Brief Explanations
1. Attenuation
- Attenuation means the loss of signal energy as the signal propagates through the medium.
- The signal becomes weaker with increasing distance.
- It is measured in decibels (dB).
- Example: A signal sent over a long copper wire arrives with much lower amplitude.
2. Distortion
- Distortion means the signal changes its shape.
- In a composite signal, each frequency component travels at a slightly different speed, causing them to arrive at different times, thus distorting the overall waveform.
- It is common in wired media carrying composite signals.
3. Noise
- Noise is any unwanted signal that mixes with the original signal.
- Types include: thermal noise, induced noise, crosstalk, and impulse noise.
- It is the most unpredictable of the three impairments.
- Measured using the Signal-to-Noise Ratio (SNR).
Summary
All three -- attenuation, distortion, and noise -- are types of transmission impairments that degrade signal quality, but they differ in cause, nature, and effect: attenuation reduces signal strength, distortion alters signal shape, and noise adds unwanted random signals.
- 55 marksNAT definition and typesHideAnswer
Why do we use NAT? Explain its different types [5]
NAT (Network Address Translation) is a technique used in networking for the following reasons: 1. IPv4 Address Conservation: The primary reason is to conserve the limited pool of public IPv4 addresses. Multiple devices on a private netwo...
- 65 marksQuality of ServiceHideAnswer
Describe Quality of Service. What are its practical significances? [5]
Quality of Service (QoS) refers to the set of techniques and mechanisms used to manage network resources by prioritizing certain types of network traffic to ensure predictable and reliable performance for applications that require it. It...
- 75 marksFTP protocol and operationHideAnswer
What is FTP and how does it work? [5]
FTP (File Transfer Protocol) is a standard application layer protocol used for transferring files between a client and a server over a TCP/IP network. It is defined in RFC 959 and operates at the Application Layer of the TCP/IP model. --...
- 85 marksTime Division MultiplexingHideAnswer
Explain Time Division Multiplexing with required figure [5]
Time Division Multiplexing (TDM) is a digital multiplexing technique in which multiple signals (channels) share a single transmission medium by dividing the available time into discrete slots. Each signal is assigned a specific time slot...
- 95 marksNumericalMAC address definitionHideAnswer
What is MAC-address? The message sequence is 1101011011 and generator polynomial $G(X) = x^3 + x + 1$. Calculate the transmitted encoded frame [5]
MAC Address and CRC Calculation
Given data
- Message M =
1101011011 - Generator polynomial $G(x) = x^3 + x + 1 \Rightarrow$ bit string
1011(degree 3)
MAC Address (2 marks)
A MAC (Media Access Control) Address is a unique 48-bit hardware identifier assigned to a Network Interface Card by the manufacturer. It operates at the Data Link Layer (Layer 2) of the OSI model.
- 48-bit (6-byte) physical address, written in hexadecimal, e.g.
00:1A:2B:3C:4D:5E - First 3 bytes = manufacturer (OUI), last 3 bytes = device serial
- Also called physical/hardware address; used for LAN addressing
CRC Calculation (3 marks)
Step 1: Append 3 zeros (degree of G = 3)
$$1101011011 \rightarrow 1101011011000$$
Step 2: Modulo-2 division of
1101011011000by1011The dividend
1101011011000is 13 bits long. Load its leading four bits into a working register, XOR the divisor1011into the register whenever the leading bit of the register is 1, and bring down the next dividend bit after each comparison. The nine bits left after the first group,0 1 1 0 1 1 0 0 0, are brought down one at a time:1 1 0 1 | 0 1 1 0 1 1 0 0 0- Take
1101, XOR1011=0110; drop next0→1100 1100XOR1011=0111; drop next1→11111111XOR1011=0100; drop next1→10011001XOR1011=0010; drop next0→01000100leading 0, no XOR; drop next1→10011001XOR1011=0010; drop next1→01010101leading 0, no XOR; drop next0→10101010XOR1011=0001; drop next0→00100010leading 0, no XOR; drop next0→0100
All nine bits have now been brought down and every dividend bit is consumed. The working register holds
0100, and its low-order three bits are the remainder, so the CRC is100.Step 3: Remainder (CRC)
$$\text{CRC} = 100$$
Step 4: Transmitted encoded frame
$$\text{Frame} = \text{Message} + \text{CRC} = 1101011011 + 100 = \boxed{1101011011100}$$
Result
Component Value Message 1101011011Generator 1011CRC remainder 100Transmitted frame 1101011011100Verification:
1101011011100 ÷ 1011should give remainder000. Dividing confirms exact divisibility, so the frame is correct. - Message M =
- 105 marksOpen-loop congestion controlHideAnswer
Write short notes on Open-loop and POP. [5]
Note: The reference notes did not contain material on this topic. The following answer is based on standard Operating Systems / Computer Architecture curriculum as taught in BSc CSIT. --- Open-loop control is a type of system control mec...
- 115 marksSwitch router and hub differentiationHideAnswer
Differentiate between switch, router, and hub. [5]
Note: Reference notes were not available for this topic; the following answer is based on standard networking concepts as taught in BSc CSIT curriculum. --- Feature Hub Switch Router ------------ OSI Layer Layer 1 (Physical) Layer 2 (Dat...
- 125 marksNumericalALOHA throughput calculationHideAnswer
A ALOHA network transmits 200-h bit frames using a shared channel with 200-kbps bandwidth. Find the throughput if the system considering all stations together produces 250 frames per second. What do you mean by vulnerable time of slotted ALOHA? [5]
- Frame size = 200 bits (interpreting "200-h bit" as 200-bit frames) - Channel bandwidth = 200 kbps = $200{,}000$ bps - Total frame generation rate = 250 frames/second Note: The problem says "ALOHA network" without specifying pure or slo...