CN Lab - Lesson Plan - 2023
CN Lab - Lesson Plan - 2023
Discipline:CS/IT/CSCE/CSSE
Course Contents:
List of experiments:
• Coverage
the components (i.e., h/w and s/w) required for data communication in a
Computer Network. (Show the h/w components like Network Interface Card
programming using C.
Language.
4. What is little endian and big endian. Discuss the significance of endianness in
computer network.
• Assignments
function using call-by-address and print the value of each member of the
structure.
struct student_info{
int roll_no;
float CGPA;
};
3. Write a C program to extract each byte from a given number and store them in
4. Write a C Program to enter a number and store the number across the
following structure and print the content of each member of the structure.
Then aggregate each member of the structure to form the original number and
struct pkt{
char ch1;
char ch2[2];
char ch3;
};
Big Endian. Enter a number, print the content of each byte location and
Convert the Endianness of the same i.e. Little to Big Endian and vice-versa.
• Coverage
2. Details of Connection less Socket programming APIs for TCP/IP stack using
C.
• Assignments
1. Write a sender and receiver program in C by passing the IP address and the
port number of each other through the command line arguments using
connection less socket. Both of them will exchange messages with each other
continuously. If any one of them will receive the “exit” message from the
other end then both of them will close the connection. (Assume both the client
• Coverage
Details of Connection Oriented Socket programming APIs for TCP/IP stack using
C.
• Assignments
arguments. At the server side, pass the port number (to whom the server will bind
to) in the command line. At the client side, pass the IP address and the port
number of the server (to whom the client will connect to) as command line
◦ After establishment of connection print the IP Address and port number of the
◦ After message exchange is over then the client sends a “close” message to the
• Coverage
◦ Server first sends the list of files present in the current directory at it's
own end.
◦ After receiving the same, client send the name of a file it wants to
◦ Finally, after receiving the same server uploads the file to the client.
◦ After sending the file, server closes the client connection at its own
end.
• Coverage
sockets.
• Assignments
• Coverage
1. Discuss how to fragment and reassemble packets at the source and destination
host respectively.
• Assignments
the client will suppose to send a large buffer to the server. Keeping
to be supported.
Fragmentation functionality
• First client needs to find the MTU size of its own and display the same.
• Based on the MTU size it will decide whether to fragment the data or not
• Prepare each fragment with the following information and display the
same.
1. Id (Identification number)
4. HL (Header Length)
5. TL (Total Length)
6. payload (Data)
Reassembly functionality
data till the last fragment and display all the fragments data with their
details.
2. Calculate the offset of the next fragment and check whether the
appropriate error.
• Finally display the assembled datagram.
• Coverage
• Assignments
the server will serve multiple chart clients simultaneously. When the chart
• Coverage
• Assignments
where the server will serve multiple chart clients simultaneously. When the
its applications.
• Assignments
Grading Policies:
Reference Materials:-