2081

BIT254 · TU past paper

Network and Data Communications 2081 question paper

The complete TU 2081 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.

  1. 110 marksNumericalSubnetting conceptAnswer

    Divide the network 192.168.2.0/24 into subnets having 48 hosts each.Find the subnet ID, subnet mask, broadcast address and network ranges. What are the advantages of subnetting?[7+3]

    Subnetting 192.168.2.0/24 into Subnets of 48 Hosts Each

    Given Data

    • Network: $192.168.2.0/24$
    • Required hosts per subnet: $48$

    Step 1: Host Bits Required

    Need $2^n - 2 \geq 48$:

    $n$$2^n - 2$Sufficient?
    530No
    662Yes ✓

    So host bits = 6.


    Step 2: Subnet Mask / New Prefix

    • Total bits = 32, original network bits = 24
    • Borrowed subnet bits = $32 - 24 - 6 = 2$
    • New prefix = $/24 + 2 = /26$

    Fourth octet: $11000000_2 = 192$

    Subnet Mask = 255.255.255.192 (/26)


    Step 3: Number of Subnets and Block Size

    • Subnets = $2^2 = 4$
    • Block size (increment) = $2^6 = 64$
    • Usable hosts per subnet = $2^6 - 2 = 62$ (≥ 48 ✓)

    Step 4: Subnet Table

    SubnetSubnet IDSubnet MaskFirst HostLast HostBroadcast
    1192.168.2.0255.255.255.192192.168.2.1192.168.2.62192.168.2.63
    2192.168.2.64255.255.255.192192.168.2.65192.168.2.126192.168.2.127
    3192.168.2.128255.255.255.192192.168.2.129192.168.2.190192.168.2.191
    4192.168.2.192255.255.255.192192.168.2.193192.168.2.254192.168.2.255

    Step 5: Network Ranges

    SubnetRange
    1192.168.2.0 - 192.168.2.63
    2192.168.2.64 - 192.168.2.127
    3192.168.2.128 - 192.168.2.191
    4192.168.2.192 - 192.168.2.255

    Advantages of Subnetting

    1. Efficient IP address utilization - reduces address wastage by sizing blocks appropriately.
    2. Reduced broadcast traffic / smaller broadcast domains - improves performance.
    3. Improved network performance - less congestion within segments.
    4. Enhanced security - inter-subnet traffic passes through routers where access control can be applied.
    5. Easier management and troubleshooting - logical, smaller segments.
    6. Scalability - new subnets added without full redesign.
  2. 210 marksTCP/IP protocol suite layersAnswer

    Explain the layers TCP/IP protocol suite in detail.[10]

    The TCP/IP protocol suite (also called the Internet Protocol Suite) is a set of communication protocols used for interconnecting network devices on the internet. It is named after its two most important protocols: Transmission Control Pr...

  3. 310 marksPure ALOHA vs slotted ALOHAAnswer

    Differentiate between pure ALOHA and slotted ALOHA.Explain any three network layer protocols.[4+6]

    --- (a) Pure ALOHA vs Slotted ALOHA Feature Pure ALOHA Slotted ALOHA --------- Transmission Time A station can transmit a frame at any time it has data to send Transmission is allowed only at the beginning of a time slot Time Synchroniza...

  4. 45 marksTCP vs UDP differencesAnswer

    Write down the major difference between TCP and UDP protocol. [5]

    --- Feature TCP (Transmission Control Protocol) UDP (User Datagram Protocol) --------- Connection Type Connection-oriented (establishes connection via 3-way handshake before data transfer) Connectionless (sends data without establishing ...

  5. 55 marksNumericalDigital signal encoding NRZ-LAnswer

    Represent bit sequence 1100100111 by the following waveform: (a) NRZ-L (b) NRZ-I (c) Differential Manchester. [5]

    • Bit sequence: 1 1 0 0 1 0 0 1 1 1 - Encoding schemes required: (a) NRZ-L, (b) NRZ-I, (c) Differential Manchester Convention used (Forouzan standard): - NRZ-L: bit 0 = High, bit 1 = Low (the level directly represents the bit; here I use...
  6. 65 marksLink State vs Distance Vector routingAnswer

    Make distinction between link state routing & Distance Vector Routing with example. [5]

    Both are dynamic routing algorithms used by routers to determine the best path for forwarding packets in a network. --- - Each router maintains a distance vector table containing the distance (cost/hop count) to every other router and th...

  7. 75 marksDNS domain name resolutionAnswer

    What is the major purpose of DNS? Explain how DNS resolve its domain name. [5]

    Domain Name System (DNS)

    Major Purpose of DNS

    The major purpose of DNS (Domain Name System) is to translate human-readable domain names into machine-readable IP addresses (and vice versa).

    Since computers communicate using numerical IP addresses (e.g., 192.168.1.1), but humans find it easier to remember names (e.g., www.google.com), DNS acts as a distributed hierarchical naming system that maps domain names to their corresponding IP addresses automatically, without requiring users to memorize numeric addresses.


    How DNS Resolves a Domain Name

    DNS resolution follows a step-by-step hierarchical query process:

    DNS Resolution Steps

    Example: Resolving www.example.com

    Step 1: Browser Cache Check

    • The user types www.example.com in the browser.
    • The browser first checks its local cache to see if the IP address is already stored from a previous visit.

    Step 2: OS / Local Hosts File Check

    • If not found in browser cache, the OS checks the local hosts file and its own DNS cache.

    Step 3: Query to Recursive Resolver (Local DNS Server)

    • If still unresolved, the query is sent to the Recursive Resolver (usually provided by the ISP or configured manually, e.g., 8.8.8.8).
    • The recursive resolver takes responsibility for finding the answer.

    Step 4: Query to Root Name Server

    • The recursive resolver contacts a Root Name Server (there are 13 sets globally).
    • The root server does not know the IP of www.example.com, but it refers the resolver to the TLD (Top-Level Domain) Name Server for .com.

    Step 5: Query to TLD Name Server

    • The resolver queries the TLD Name Server for .com.
    • The TLD server responds with the address of the Authoritative Name Server for example.com.

    Step 6: Query to Authoritative Name Server

    • The resolver queries the Authoritative Name Server for example.com.
    • This server holds the actual DNS records and returns the IP address (e.g., 93.184.216.34) for www.example.com.

    Step 7: Response Returned to Client

    • The recursive resolver caches the result (for the TTL duration) and sends the IP address back to the client.
    • The browser then uses the IP address to establish a connection with the web server.

    Diagram of DNS Resolution

    Client
      |
      v
    Recursive Resolver (ISP/Local DNS)
      |
      v
    Root Name Server  --> "Go to .com TLD server"
      |
      v
    TLD Name Server (.com)  --> "Go to example.com Authoritative server"
      |
      v
    Authoritative Name Server (example.com)  --> Returns IP address
      |
      v
    Recursive Resolver --> Client (IP delivered)
    

    Summary Table

    StepComponentRole
    1Browser/OS CacheCheck locally stored records
    2Recursive ResolverManages the full query on behalf of client
    3Root Name ServerDirects to correct TLD server
    4TLD Name ServerDirects to authoritative server
    5Authoritative Name ServerReturns the final IP address

    Note: DNS primarily uses UDP port 53 for queries and TCP port 53 for zone transfers.

  8. 85 marksGuided transmission mediaAnswer

    Discuss different guided transmission medium in brief. [5]

    Guided transmission media are physical pathways that guide (direct) electromagnetic signals from sender to receiver along a specific path. The signal is bound within the medium. --- - Consists of two insulated copper wires twisted togeth...

  9. 95 marksNumericalCRC transmitted frame encodingAnswer

    A bit stream 1001100 is transmitted using a standard CRC method. The generator polynomial is $x^3 + 1$. Show the actual bit string transmitted. [5]

    • Message $M$ = 1001100 - Generator polynomial: $x^3 + 1$ → 1001 - Degree $r = 3$ Append 3 zeros to the message: $$1001100 \rightarrow 1001100000$$ I carry out the division carefully, XOR-ing whenever the leading bit is 1. Let me do it b...
  10. 105 marksCircuit switching advantages and disadvantAnswer

    Differentiate between circuit switching and packet switching. [5]

    --- In circuit switching, a dedicated communication path is established between the sender and receiver before data transmission begins. This path remains reserved for the entire duration of the communication session. Example: Traditiona...

  11. 115 marksError detection techniquesAnswer

    Explain any one error control technique. [5]

    Error control refers to the mechanisms used in data communication to detect and correct errors that occur during transmission. One widely used error control technique is ARQ (Automatic Repeat reQuest), and the simplest form of ARQ is Sto...

  12. 125 marksToken bucket algorithmAnswer

    Write short notes on: Token Bucket SNMP [0+2.5+2.5]

    --- The Token Bucket is a traffic shaping and policing algorithm used in computer networks to control the rate at which data (packets/bursts) are allowed to be transmitted into the network. - A "bucket" holds tokens, and tokens are added...