CS8581 4
CS8581 4
Fifth Semester
(Regulations 2017)
1. a) Write a program to make the UDP server to receive a request, to process the request, (50)
and to send back the response.
2. a) Write a program to make the UDP client to be able to send any request created by the (50)
client program.
3. a) Write a program to make the TCP server to receive a request, to process the request, (50)
and to send back the response.
4. a) Write a program to make the TCP client to be able to send any request created by the (50)
client program.
b) Examine the throughput performance of sliding window with varying packet sizes, (40)
error rates and Round Trip Times.
5. Write a program to make the UDP server to receive a request, to process the request, and to (90)
send back the response. The client program needs to read the request string from a file and
store the response string in another file. The name of the file needs to be passed as the
argument to the main method of the client program. The server program needs to accept the
request string, change all lowercase letters to uppercase letters, and return the result.
6. Write a program to make the UDP server to receive a request, to process the request, and to (90)
Page 2 of 4
send back the response to client. The server program needs to accept the request string,
change all lowercase letters to uppercase letters, and return the result.
7. a) Write a program to make the UDP server to receive a request, to process the request, (50)
and to send back the response.
b) Implement token ring network and examine the performance using simulator. (40)
8 Write a program to make the TCP server to receive a request, to process the request, and to (90)
send back the response. The server program needs to accept the request string, change all
lowercase letters to uppercase letters, and return the result.
9 Write a program to make the TCP client to be able to send any request created by the client (90)
program. The client program needs to read the request string from a file and store the
response string in another file. The name of the file needs to be passed as the argument to
the main method of the client program.
10. Write a program to make the TCP server to receive a request, to process the request, and to (90)
send back the response. The server program needs to accept the request string, change all
lowercase letters to uppercase letters, and return the result.
11 Write a program to make the UDP server to receive a request, to process the request, and to (90)
send back the response. Allow the client to provide the pathname of a short file stored on
the server host. The server needs to send the contents of the short file as a string of
characters. The client stores the file at the client host.
12. Write a program to make the TCP server to receive a request, to process the request, and to (90)
send back the response. Allow the client to provide the pathname of a short file stored on
the server host. The server needs to send the contents of the short file as a string of
characters. The client stores the file at the client host.
13. a) Write a program to simulate a local DNS client and server. The server
Page 3 of 4
has a short table made of two columns, domain name and IP address. The
client can send two types of requests: normal and reverse. The normal (50)
request is a string in the format “N:domain name”; the reverse request is in the format
“R:IP address”. The server responds with either the IP address, the domain name, or
the message “Not found.”
14 a) Write a HTTP web client program to download a web page using TCP sockets. (50)
b) Implement a small network with five nodes (n0,n1,n2,n3,n4) forming a star topology (40)
with n4 as centre. Simulate the transfer of packets from node n0 to n3 through n4 for
10 seconds.
b) Design any two topology and study the performance in terms of traffic patterns (40)
using simulator.
b) Use a network simulator to capture and investigate some packets exchanged at the (40)
network layer.
20. a) Write a program to implement Echo client and echo server using TCP . (50)
Viva – 10 marks