ANNA UNIVERSITY · REGULATION 2021
Important Questions
CS 3591 — COMPUTER NETWORKS
Fifth Semester · Computer Science and Engineering
Prepared from 4 previous year question papers (Nov/Dec 2024, Apr/May 2024, Nov/Dec 2023, Apr/May 2023). Every question was compared with the others of its unit; the ones asked more than once come first. "Most asked topics" shows in how many different exams a syllabus topic had a question.
UNIT 1Introduction and Application Layer
Most asked topics: Networks (2/4) · Protocol Layering (1/4) · TCP/IP Protocol suite (1/4) · OSI Model (1/4) · SNMP (1/4)
Part A · 2 marks
- 1.List the features of layered architecture in networks.(2)
Asked in Nov/Dec 2024
- 2.Mention the scenarios in which stream and datagram sockets are utilized.(2)
Asked in Nov/Dec 2024
- 3.Define socket.(2)
Asked in Apr/May 2024
- 4.What are the functionalities of SNMP protocol?(2)
Asked in Apr/May 2024
- 5.What are the basic tasks of a communications system?(2)
Asked in Nov/Dec 2023
- 6.What is the meaning of stateful and stateful of a protocol? Give an example for each one.(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.(i) Describe the steps involved in establishing a connection between a client and a server using stream sockets. (ii) How do POP3 and IMAP handle email synchronization across multiple devices?(13)
Asked in Nov/Dec 2024
Free sample · model answer from the exam kit
(i) Client-server connection using stream sockets
A stream socket (SOCK_STREAM) uses TCP, so a connection must be set up before data is exchanged. The server opens a passive socket and waits; the client opens an active socket and connects.
Draw: Two columns, Server on the left and Client on the right. Server: socket() → bind() → listen() → accept() (blocks) → read()/write() → close(). Client: socket() → connect() → write()/read() → close(). Draw an arrow labelled "TCP 3-way handshake (SYN, SYN+ACK, ACK)" from connect() to accept(), arrows labelled "request" and "reply" between the read/write boxes, and an arrow "FIN" between the close() boxes.
Server side:
- socket(): creates a socket and returns a descriptor, e.g. socket(AF_INET, SOCK_STREAM, 0).
- bind(): attaches the socket to the server's IP address and a well-known port (e.g. 80).
- listen(): makes the socket passive and sets the length of the queue of pending connections.
- accept(): blocks until a client connects; it then returns a new socket used only for that client, while the original socket keeps listening.
Client side:
- socket(): creates a socket.
- connect(): gives the server's IP address and port. The kernel performs the TCP three-way handshake (SYN, SYN+ACK, ACK) and the connection is established.
Data transfer and close:
- Both sides use send()/write() and recv()/read() on the connected socket; TCP gives a reliable, ordered byte stream.
- close(): each side closes its socket; TCP exchanges FIN and ACK segments to release the connection.
/* server */ /* client */ s = socket(AF_INET, SOCK_STREAM, 0); c = socket(AF_INET, SOCK_STREAM, 0); bind(s, &addr, sizeof addr); connect(c, &srv, sizeof srv); listen(s, 5); write(c, req, n); ns = accept(s, &cli, &len); read(c, buf, size); read(ns, buf, size); close(c); write(ns, reply, m); close(ns);(ii) Email synchronisation with POP3 and IMAP
POP3 and IMAP are mail access protocols used by a user agent to read mail stored on the mail server (SMTP only delivers mail to the server).
POP3 (Post Office Protocol 3, TCP port 110, 995 with SSL):
- Works in download-and-delete mode (default) or download-and-keep mode.
- In download-and-delete mode, the mail is moved to the first device that connects. A second device (phone) will not see those mails, so there is no synchronisation.
- In download-and-keep mode, every device gets its own copy, but read/unread status, folders and deletions made on one device are not reflected on the server or on other devices.
- POP3 keeps no state between sessions; it is simple and good for one device with offline reading.
IMAP (Internet Message Access Protocol, TCP port 143, 993 with SSL):
- Mail stays on the server; the server is the master copy.
- Folders (Inbox, Sent, custom folders) are created and kept on the server.
- Message flags such as Seen, Answered, Flagged and Deleted are stored on the server, so when a mail is read on the laptop it shows as read on the phone too.
- Moving or deleting a mail on one device changes the server copy, and every other device sees the change at its next sync (or immediately with the IDLE command, which pushes new-mail notifications).
- A client can download only headers, or only part of a message, which saves bandwidth on mobile devices.
Conclusion for multiple devices: POP3 does not synchronise; IMAP keeps all devices consistent because state is held on the server.
The CS3591 exam kit has model answers like this for 32 of these questions.
- 2.(i) How does SNMPv3 address security concerns compared to earlier versions, and what authentication and encryption mechanisms does it support? (ii) Explore the challenges and limitations of FTP in modern network environments.(13)
Asked in Nov/Dec 2024
- 3.How DNS help in Internet? Illustrate the namespace of DNS.(13)
Asked in Apr/May 2024
- 4.Explain OSI Reference model with neat diagram.(13)
Asked in Apr/May 2024
UNIT 2Transport Layer
Most asked topics: Flow control (4/4) · Congestion Control (4/4) · TCP: Connection Management (1/4) · SCTP (1/4) · Quality of Service (1/4)
Part A · 2 marks
- 1.Compare DECbit with RED.(2)
Asked in Nov/Dec 2024
- 2.How does QoS ensure the prioritization of specific types of traffic on a network?(2)
Asked in Nov/Dec 2024
- 3.List the features of connection oriented services.(2)
Asked in Apr/May 2024
- 4.Assume that in a stop and wait system, the bandwidth of the line is 1 Mbps and 1 bit takes 20 milliseconds to make a round trip. What is the bandwidth-delay product?(2)
Asked in Apr/May 2024
- 5.An IP datagram is carrying a TCP segment destined for address 130.14.16.17. The destination port address is corrupted and it arrives at destination 130.14.16.19. How does the receiving TCP react to this error?(2)
Asked in Nov/Dec 2023
- 6.We need three types of addresses, i.e. each computer has 3 addresses IP, MAC and port number while working with the internet. Why?(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.(i) How does SCTP differ from TCP and UDP? (ii) Discuss the mechanisms used in TCP for flow control and congestion control, and how they contribute to reliable data transmission.(13)
Asked in Nov/Dec 2024
- 2.(i) Discuss the challenges and limitations of QoS implementation in heterogeneous network environments, and potential solutions to address these challenges. (ii) How does DECbit enhance congestion control in network communication?(13)
Asked in Nov/Dec 2024
- 3.Discuss the congestion control and flow control mechanism in transport layer.(13)
Asked in Apr/May 2024
- 4.Compare and contrast UDP and TCP protocols. Explain it briefly.(13)
Asked in Apr/May 2024
UNIT 3Network Layer
Most asked topics: IP Addressing (3/4) · Switching: Packet Switching (2/4) · IPV4 (2/4) · ICMP (2/4) · Subnetting (1/4) · IPV6 (1/4)
Part A · 2 marks
- 1.Write the advantages of packet switching.(2)
Asked in Nov/Dec 2024
- 2.Why do we need subnetting?(2)
Asked in Nov/Dec 2024
- 3.What is Round Trip Time?(2)
Asked in Apr/May 2024
- 4.Identify the protocol which is used to map the IP address to MAC address for delivering the packet to its destination host. Specify the request and response packet format of that protocol.(2)
Asked in Apr/May 2024
- 5.Consider a subnet with prefix 128.119.40.128/28. Give the "range" of IP addresses that can be assigned to this network.(2)
Asked in Nov/Dec 2023
- 6.What type of switching is used in present digital communications?(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.(i) Explain the differences between IPv4 and IPv6. (ii) How does ICMP facilitate error reporting and feedback in IP networks? Give examples of common error messages generated by ICMP.(13)
Asked in Nov/Dec 2024
- 2.(i) How does subnetting help in optimizing the allocation of IP addresses within a network? Provide examples to illustrate subnetting. (ii) Find the subnetwork address for the following IP address: 142.34.21.45 Mask :255.255.218.0(13)
Asked in Nov/Dec 2024
- 3.Write short notes on ICMP and DHCP protocols.(13)
Asked in Apr/May 2024
- 4.Discuss in detail about classful and classless IP addressing.(13)
Asked in Apr/May 2024
UNIT 4Routing
Most asked topics: Link State Routing (3/4) · Distance Vector Routing (2/4) · Path-vector routing (1/4) · Multicast Routing: DVMRP (1/4)
Part A · 2 marks
- 1.What does PIM do to overcome the limitations of DVMRP?(2)
Asked in Nov/Dec 2024
- 2.What are the strengths and weaknesses of distance vector routing?(2)
Asked in Nov/Dec 2024
- 3.Differentiate between Unicast and Multicast routing.(2)
Asked in Apr/May 2024
- 4.How are the packets routed using Link state routing protocol?(2)
Asked in Apr/May 2024
- 5.A home user upgrades from a dial-up connection to high-speed broadband, but does not see much improvement in Internet performance for visiting a Web site. Give one reason why this might happen, even if the network and the Web server have ample capacity.(2)
Asked in Nov/Dec 2023
- 6.What are the important attributes for a good routing algorithm?(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.(i) Discuss the scalability and convergence properties of link state routing protocols compared to distance vector routing protocols. (ii) Describe the basic operation of RIP in terms of how it exchanges routing information between routers.(13)
Asked 2 times: Nov/Dec 2024, Apr/May 2024
- 2.(i) Describe the fundamental operation of BGP in exchanging routing information between autonomous systems. (ii) Explain how DVMRP routers exchange multicast routing information and update their multicast forwarding tables.(13)
Asked in Nov/Dec 2024
- 3.Write short notes on Path vector routing and Multicast routing.(13)
Asked in Apr/May 2024
- 4.Consider the network shown below. Show the operation of Dijkstra's (Link State) algorithm for computing the least cost path from router F to all destinations. Explain the process. [Figure: network of routers A to F with link costs A-B 1, A-C 3, A-D 4, B-C 3, C-D 1, B-E 10, D-E 4, E-F 1, B-F 4](13)
Asked in Nov/Dec 2023
UNIT 5Data Link and Physical Layers
Most asked topics: Data Link Layer (3/4) · Data-Link Layer Protocols (3/4) · Wireless LAN (802.11) (3/4) · Framing (2/4) · Flow control (2/4) · CSMA/CD (2/4)
Part A · 2 marks
- 1.Compare HDLC and PPP protocols.(2)
Asked in Nov/Dec 2024
- 2.What are the various types of Ethernet frames?(2)
Asked in Nov/Dec 2024
- 3.Define Bandwidth.(2)
Asked in Apr/May 2024
- 4.Consider there are 7 nodes in the mesh topology. Identify the number of duplex links required to connect the nodes.(2)
Asked in Apr/May 2024
- 5.List the responsibilities of Data Link Layer.(2)
Asked in Nov/Dec 2023
- 6.What is an Virtual Lan?(2)
Asked in Nov/Dec 2023
Part B · 13 marks
- 1.(i) Explain the types of transmission media. (ii) Write short notes on wireless LAN (802.11).(13)
Asked 2 times: Apr/May 2024, Nov/Dec 2023
- 2.(i) Discuss different framing techniques used in data communication. (ii) Compare and contrast the methods of flow control mechanisms in data link layer.(13)
Asked in Nov/Dec 2024
- 3.(i) Describe the basic operation of the 802.11 MAC layer and how it handles medium access in wireless networks. (ii) Explain the factors that affect the performance of a network.(13)
Asked in Nov/Dec 2024
- 4.Explain propagation of guided and unguided mediums.(13)
Asked in Apr/May 2024
PART CAny unit
Part C · 15 marks
- 1.(i) Develop a LAN infrastructure for a college campus accommodating four departments, each comprising 100 computers distributed across four rooms, each containing 25 computers. Provide rationale for the choice of networking devices and IP address allocation. (ii) Calculate the number of hosts and subnets corresponding to the address 122.111.69.10/16.(15)
Asked in Nov/Dec 2024
- 2.(i) Determine the Hamming code for the binary sequence 1001001. Explain how you would detect errors if the receiver received the data bit as 1001011. (ii) Given the message M=1111110101010101010 and divisor 110011, calculate the CRC for this message. If the 6th bit of the message changes on the receiver side, determine the resulting remainder value.(15)
Asked in Nov/Dec 2024
- 3.Consider the code word M(X) = 111100010101 is transmitted in an unreliable medium. X^2 + 1 is the divisor commonly used for both sender and receiver. Calculate the CRC at the sender side as T(X). An error occurred at the bit position 6 (Note : from left to right) in T(X). Prove that the error occurs at the receiver side using CRC.(15)
Asked in Apr/May 2024
- 4.An ISP is granted a block of addresses starting with 198.60.4.0/24. The ISP wants to distribute these blocks to 3 organizations with each organization receiving 12 addresses, 25 addresses and 50 addresses. Design the sub-blocks and give the CIDR notation for each organization. Find out how many addresses are still available after these allocations.(15)
Asked in Apr/May 2024
- 5.(i) Briefly explain the error control techniques in data link layer. (ii) Consider the cyclic redundancy check (CRC) based error detecting scheme having the generator polynomial X^3 + X + 1. Suppose the message 11000 is to be transmitted. Find the codeword. Show your evalution work for the same.(15)
Asked in Nov/Dec 2023
- 6.Suppose you open a startup company "foo" and want to set up your company network your network has the following servers: DNS server "dns1.foo com" with IP as "140.112.30.40"; Web server: "foo.com" with two IP as "140.112.30.55" and "140.112.30.56". The web server also has a name as www.foo.com; Email server: "galaxy.foo.com" with IP as "140.112.30.60"; Your company's email address is "username@foo.com" (i) Briefly explain in detail about the working of DNS. …(15)
Asked in Nov/Dec 2023