Best wishes for ur lab exams.
computer networks lab exam
Wednesday, 30 May 2012
MOHANDAS COLLEGE OF ENGINEERING AND TECHNOLOGY
Fifth Semester MCA University Lab Exam– June 2012 30/6/2012
COMPUTER NETWORKS LAB
Date
|
Time
|
Reg. No
|
No. of Students
|
4/6/2012
|
9.00am-12.00pm
|
901-915
|
15
|
12.00pm-3.00pm
|
916-928,948
|
14
|
WEB APPLICATION DEVELOPMENT LAB
Date
|
Time
|
Reg. No
|
No. of students
|
5/6/2012
|
9.00am-12.00pm
|
901-915
|
15
|
12.00pm-3.00pm
|
916-928
|
13
|
Internal Examiners: Saritha R.M., Jitha Thankachi B.J. HOD: Dr. K. Sivaraman
VIVA Topics for Computer Networks
Sample Viva Voice Topics
for Computer Networks Lab Exam
1.
Socket functions with arguments(Bind, Listen, Accecpt,
Socket, Connect etc)
2.
INADDR_ANY
3.
Loop back IP
4.
AF_INET,PF_INET
5.
SOCK_STREAM, SOCK_DGRAM
6.
Struct sockaddr_in
7.
inet_addr()
8.
setsockopt()
9.
TCP & UDP
10.
Sliding Window
11.
Bit Stuffing
12.
Tunneling
13.
Fragmentation
14.
Types of Fragmentation
15.
Mobile Adhoc Network
16.
Router and Switch
17.
Switch & Hub
18.
Bridges , Types
19.
Static Routing
20.
Dynamic Routing
21.
Link State Packet
22.
Internetworking
23.
Layers of OSI Model and its functions
24.
TCP & OSI Model
25.
Protocol
26.
LAN,MAN,WAN,PAN,SAN
27.
Uncast, Multicast, Broadcast
28.
Circuit Switching & Packet Switching
29.
RSVP
30.
Leaky Bucket
31.
Token Bucket
32.
Congestion Control
33.
Traffic Shaping
34.
Flooding
35.
IPV4 & IPV6
36.
Structure of Class A,B,C,D
37.
Range of IP Address
38.
DNS
39.
DHCP
40.
MIME
41.
SMTP
42.
ARP
43.
NAT
44.
PDU
45.
CSMACD
46.
ALOHA(Pure & Slotted)
47.
Gethostbyname()
48.
Getservbyname()
49.
Getprotobyname()
50.
htonl(),htons(),ntohl(),ntohs()
Tuesday, 29 May 2012
lab exam schedule
Hi,
Your lab exam to be conducted on 4th and 5th June .
4th Monday CN Lab for all
5th Tuesday WAD Lab for all
Regarding CN Lab you must know how to connect two processes running on two different machines, how to find the IP Address of a machine, ping etc, all socket functions, theory of computer networks. i have given some sample viva questions to bijin, he will mail that to all of u. we have not implemented multicasting, if time permits we will try it. we have marks( minimum) for connection establishment in CN and Data base connectivity in WAD lab. but it doesn't mean that you will get pass based on that, Just Being a final year exam don't think that they will give you pass marks, if you are performing poorly......................
NB: Be thorough on the experiments in the record book
Your lab exam to be conducted on 4th and 5th June .
4th Monday CN Lab for all
5th Tuesday WAD Lab for all
Regarding CN Lab you must know how to connect two processes running on two different machines, how to find the IP Address of a machine, ping etc, all socket functions, theory of computer networks. i have given some sample viva questions to bijin, he will mail that to all of u. we have not implemented multicasting, if time permits we will try it. we have marks( minimum) for connection establishment in CN and Data base connectivity in WAD lab. but it doesn't mean that you will get pass based on that, Just Being a final year exam don't think that they will give you pass marks, if you are performing poorly......................
NB: Be thorough on the experiments in the record book
Thursday, 24 May 2012
program to find time waited by client to get result
Client program to send a number to server and check whether it is prime or not. client calculates time taken .
#include<arpa/inet.h>
#include<sys/time.h>
//#include "unp.h"
#include<time.h>
#include<stdio.h>
#include<stdlib.h>
main(int argc,char *argv[])
{
int
sock,ret,z,x,n;
struct
sockaddr_in obj;
struct timeval
tv2,tv1;
static char
str[30],str2[30];
char
*ptr,*ptr2;
char b[50];
int totalT;
obj.sin_family=AF_INET;
obj.sin_port=atoi(argv[1]);
obj.sin_addr.s_addr=inet_addr("172.16.6.79");//INADDR_ANY;
sock=socket(AF_INET,SOCK_DGRAM,0);
printf("eneter the number");
scanf("%d",&n);
gettimeofday(&tv1,NULL);
ret=sendto(sock,&n,sizeof(n),0,(struct
sockaddr*)&obj,sizeof(obj));
int
recv_count=0;
printf("\n the response form
sernver is");
ret=recvfrom(sock,b,sizeof(b),0,(struct sockaddr*)&obj,sizeof(obj));
recv_count++;
gettimeofday(&tv2,NULL);
totalT=(tv2.tv_sec-tv1.tv_sec)+(tv2.tv_usec-tv1.tv_usec);
printf("\n response %s",b);
printf("recv_count= %d and time taken=%ld microseconds
\n",recv_count,totalT);
close(sock);
}
Tuesday, 22 May 2012
cn lab exam
Hi,
CN & WAD Labs scheduled to be on June 4,5,6.
i am posting some previous university lab questions on CN.
1.
A list of E-Mail addresses is store in the
server. Send one email id from the client to server and verify whether this id
is present in the list or not. True or False answer should be returned by the
server. Use UDP connection
2. The client program should accept at least one line of text, from keyboard as a message and add an ‘X’ before the message if it contains two consecutive ‘e’s. Send this message to the Server and get a reply indicating that the server has received the message correctly after removing the additional character inserted. Display the corrected message in the Client machine.
3. The Client has to send a given message to the Server. Client has to add a flag character at the beginning and the end of the message. A suitable flag character may be chosen. The Server has to strip off the flag characters and has to send the original message back.
4. A message has to be sent to the Server. A coding has to be used to the message. Instead of one alphabet the next one in the alphabet is used. The server has to decide it and sent the original message back to the Client.
5. Establish UDP connection with the server. Send a string to the Server. Server will append another string to the received string. The new string will be sent back to the Client. The client ahs to calculate the length of the string appended by the server and display it.
6. Establish TCP connection with the server and send an integer number to the Server. Get the factorial of this number calculated by the Server. Get the result and broadcast the answer to all the nodes connected to the network.
7. Establish UDP connection to the server. Send a number to the Server. Calculate the square of the number in the Server and get the result from the Server. Find out the time between the sending of the number and receiving of the answer.
8. A list of Forbidden IP Addresses is stored in the Server. Client has to send an IP Address to that server and check if it is valid. If valid, the client has to send a hello message to the machine with this IP Address.
9. Client has to insert a character ‘X’ before two consecutive 1’s in the message. Send this message to the Server. Get a reply to indicate that the server has received the message correctly after removing the additional character inserted.
10. Establish TCP connection between two machines. Fetch a file using FTP and display it in the given folder.
11. Get two files using FTP from two different machines. Use TCP connection. Both the files should be stored in the specified directory in the client.
Monday, 21 May 2012
CN LAB EXAM
CN Lab Exam dates are announced.
June 4,5,6.
Time table, Sample questions, Whether to do in single system or 2, all these details will be known to you on Thursday . During the vacation time, some of us done the broadcasting program in 2 systems.
June 4,5,6.
Time table, Sample questions, Whether to do in single system or 2, all these details will be known to you on Thursday . During the vacation time, some of us done the broadcasting program in 2 systems.
Subscribe to:
Posts (Atom)