You are on page 1of 2

National Institute of Technology Karnataka-NITK Surathkal

Department of Information Technology

Networks Lab

Assignment-1

1. Write C program to implement a TCP/UDP Client and Server for Echo Service.
The Client should interact with an echo server on a remote host and printout the
text string that has bounced from the server.

2. Write C program to implement a TCP/UDP Client and Server for Message


Service. The Client should interact with a hello server on a remote host and
printout the text string (“Hello!”) that has bounced from the server.

3. Write C program to implement a TCP/UDP Client and Server for the Daytime
Service. The Client should interact with a Daytime Service on a remote host and
printout the current date and time of both the server and client system.

4. Write C programs to implement a simple File-Transfer Client and server. Client


should also be able to download and upload specific files to and from the server.
The client should also display the confirmation after the successful upload.

5. Write C programs to implement a simple File-Transfer Client and server. Client


should also be able to request the server to create a new directory and upload a
specific file into the newly created directory. The client should also display the
confirmation after the successful upload.

6. Write a C program to implement a simple Finger Client and Server. Client


should be able to request the server to execute a system command and return the
results. The Client should display the results.

7. Write a C program to implement a simple Finger Client and Server. The client
should try to authenticate a user who submits a login name and password. A list of
registered users and their passwords is stored at the server. The client should
display successful login for valid user.

1
8. Write a C program to implement an Iterative connection-oriented/connectionless
server. The server should provide a time service, to the clients that connect to it, on
a FCFS basis. Write a simple client program to test the server.

9. Write a C program to implement a Concurrent connection-


oriented/connectionless server. The server should provide an echo service, to the
clients that connect to it. It should process incoming requests concurrently. Write a
simple client program to test the server.

10. Write a C program to implement a server which provides many different types
of services based upon requests from clients. Write a menu driven program to test
the server.

Addition of 2 numbers

1. Multiplication of 2 numbers

2. Day time.

You might also like