You are on page 1of 12

THE TEST ON CN

(1) Which of the following is/are property (ies) of packet-switched networks? ?


Dedicated channel with no sharing
No busy tone
Loss of data
Queuing Delays
(2)
What information is used by a process running on one host to identify
a process running on another host? ?
Process Id
Process Descriptors
Port number
IP address
(3) Identify the wrong mapping (s) ?
Data Link Layer : Frame
Network Layer : Datagram
Transport Layer: Bits
Application Layer: Message Segment
(4) Silly Window Syndrome (SWS) occurs during ?
Intserv and Diffserv
Packet Scheduling at routers
Congestion Control
Flow Control
(5) Which network forwards packets according to host destination address? ?
Circuit switched networks
Both Datagram and Virtual circuit networks
Virtual circuit networks
Datagram networks
(6) How can you create a connected UDP socket? ?

Connected UDP socket means, the IP address and port number of the peer is recorded and can be done by calling connect function on UDP
socket.
Since,there is no connection establishment in UDP , connected UDP socket cannot be created.
None of the option is correct
By using bind function on UDP Socket
(7)
A device accepts frames from the Ethernet to which it is attached. It removes the packet inside each frame, adds fra
ming information around it, and transmits it over a xDSL telephone line (its only connection to the outside world) to
an identical device at the other end. This device removes the framing, inserts the packet into a wi
fi frame, and transmits it to a local host over a wi-fi LAN. What would you call the device? ?
Page 1 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532
Bridge
Gateway
Router
L2 Switch
(8) Which of the following is not TRUE with respect to a transparent bridge and a router? ?
Both bridge and router selectively forward data packets.
A router can connect between a LAN and a WAN
A Bridge builds its routing tables by inspecting incoming packets.
A Bridge uses IP Addresses while a router uses MAC addresses.
(9)
Suppose a TCP Client sends data to a TCP Server . The number of send/write calls in the client may not match the n
umber of recv/read calls in the Server. ?
True
False
Not Answer
(10)
___________ function is called by a TCP server to return the next completed connection from the front of the comple
ted connection queue. ?
socket
bind
accept
listen
(11)
Refer to the attached socket code in Perl. Answer the following questions:
1) What is port number used at the server side? [1 marks]
2) In Line13 of server code the sockaddr_in function obtains a port on the server. The argument INADDR_ANY cho
oses one of the server's virtual IP addresses. Can we replace INADDR_ANY with any other function name to use one
of the IP address of the server? If yes, how? [4 Marks]
3) What is relevance of SOMAXCONN in Line 16 of the server code? [2 Marks]
4) Refer to line 11 and 12 of the client code. What is the use of inet_aton() function? [1 Marks]
5)Explain Line 17 to 21 in the client code? [2 Marks] ?
Page 2 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532

1)7890
2)yes, we can by converting any IP in to net address.(inet_aton(ipaddress))

3)it represents maximum queue size

4)converting ip to network frmat and creating socket

5)printing the content of line while it is non empty and closing socket
PR Attribute ID Marks New Marks
CN_6 10 7
(12)
"You have extablished an end-to-
end TCP connection between two applications running on two different machines using sockets." Indicate which of t
he following options are true for this scenario ?
Only Routers are aware of this connection.
Only Gateways are aware of this coneection.
No intermediate node is aware of this connection.
All intermediate nodes are aware of this connection.
(13) The upper OSI layers in correct ascending order are ?
Session, Application, Presentation, Physical
None of the above
Application, Session, Presentation,Transport
Session, Presentation, Application, Transport
(14) What is the return value of the select function? ?
No option is correct
A new connection socket for a particular client.
Sum of the bytes available for reading , accross all readable descriptors.
The return value of the select function indicates the total number of descriptors that are ready , accross all the descriptor sets.
(15) What layer handles data frames between the Network and Physical layers? ?
Presentation
Data Link
Transport
Page 3 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532
Session
(16) Which OSI layer manages who can transmit data at a certain time and for how long? ?
Session
Data Link
Transport
Presentation
(17)
ping -c 2 -R 10.203.161.9
PING 10.203.161.9 (10.203.161.9) 56(124) bytes of data.
64 bytes from 10.203.161.9: icmp_seq=0 ttl=255 time=0.201 ms
NOP
RR: 10.203.161.7
10.203.161.9
10.203.161.7
64 bytes from 10.203.161.9: icmp_seq=1 ttl=255 time=0.133 ms
NOP (same route)
--- 10.203.161.9 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 3999ms
rtt min/avg/max = 0.124/0.147/0.201/0.028 ms
1) Why 56(124) bytes of data?
2) What is use of -c and -R option?
3) What is the limitation of using -R option with ping?
4) What is TTL and RTT? ?

1)56 is default ping packet size.
124 represents total size (56 + 8 + 60)
=>(sizeof ping packet + size of ICMP header + Maximum size of IP header)
IP header takes maximum due to -R option, it need to record route.(20 + 40)
20 for min ip header length, 40(options) means 10 rows, used to record routes.

2)-c is used to specify number of packets to be transmitted,
-R is to record the route information

3)It records at most 10 hops information for route, since ip header have 10 optional row.

4)time to leave, which will be decremented from one hop to another hop, stops forwording the packet
when ttl is 0
PR Attribute ID Marks New Marks
CN_4 4 3
Page 4 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532
CN_5 4 2
(18) Name at least three network parameters which can be measured by Ping utility. ?

1)It is used to whether the particular host is available or not.
ex:ping -c 1 www.orkut.com

2)It records the trace route if the host is residng 5 hops away, forword and return journy may not
be same.

3)used to check packet losses, efficiency of network
ex:ping www.orkut.com
PR Attribute ID Marks New Marks
CN_5 4 2
(19) As per ISO-OSI model which layer is responsible for compression and encryption of data? ?
Session
Transport
Network
Presentation
(20)
In developing applications, the ------ call can be used to multiplex I/O
requests among multiple sockets and/or files.
?
bind
select
No option is correct
accept
(21) Data transfer between two neighboring routers involves only ?
Physical layer, link layer, network layer
Physical layer
Physical layer, link layer, network layer, transport layer
Physical layer, link layer
(22)
The size of the TCP RcvWindow never changes throughout the duration
of the connection. ?
Page 5 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532
True
False
Not Answer
(23) What is the difference between close and shutdown function ? (Explain briefly with reference to TCP Socket) ?

close(fd): close accepts the file descripter(socket descripter) and the socket will be discarded.
If any data writen in socket, the close will done after transfering the data to
destination socket.


shutdown(sd, flag): It closes all the sockets which are in active and no client request is accepted
PR Attribute ID Marks New Marks
CN_6 3 2
(24) Resource reservation is a feature of ?
Packet Switching
None of the options
Circuit Switching
Both packet switching and circuit switching
(25)
A network on the Internet has a subnet mask of 255.255.240.0. What is the maximum number of hosts it can handle?
?
2046
4094
254
1022
(26) Distance Vector based routing algorithms always converge. ?
True
False
Not Answer
(27)
Refer to the attached figure between telnet client (host A) and server (Host B) application. Assuming 3 way TCP han
dshake is already over and after that client sends char C to server. What would come in place of *?
Page 6 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532
* in the figure? Write the appropriate numbers only. ?

79 43 c

43 80
PR Attribute ID Marks New Marks
CN_5 5 5
(28) Which of the following is a list of packet switching characteristics? ?
Bandwidth shared ,low transmission delay, routes may change
Bandwidth divided, translation tables for routing, destination
Bandwidth divided, store and forward, good for bursty data
Bandwidth shared, queues at routers, different paths possible
(29) The function listen can be applied for both TCP and UDP Sockets. ?
True
False
Not Answer
(30) DNS is a/an _______ layer protocol ?
Application
Between Transport and Network
Between Application and Transport
Transport
(31)
Consider transferring an enormous file of L bytes from Host A to Host B. Assume an MSS of 1460 bytes. What is the
maximum value of L such that TCP sequence numbers are not exhausted? TCP sequence number field is 4 bytes lon
g. ?
Page 7 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532

MSS : 1460
MSS : 1440 (remove 20 bytes header)
sequence Number is : 4 bytes = 0 to 2^32 numbers exit

For each sequence number send 1440 bytes

For all sequence number, it will be (1440 * (2^32 - 1)), which will be L value
PR Attribute ID Marks New Marks
CN_3 10 4
(32) Which of these is true? ?
Network layer responsible for routing and end to end delivery
In a layered structure underlying protocols can be changed
Address info is added by the transport layer
Each layer adds a header of its own with a checksum
(33)
Which of the following two types of networks can guarantee a certain amount of end
end bandwidth for the duration of a call and why?
a) Packet-switched networks or
b) Circuit-Switched networks. ?
Page 8 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532

Circuit switched networks,

Bandwidth is divided among the users and dedicated line is alloted.So transmission is guaranteed.
PR Attribute ID Marks New Marks
CN_2 5 3
(34)
Given Packet Size = 10,000 bits, Bit Rate = 10 Mbps, Propagation
Delay = 2 msec and Retransmission Time-out = 5 msec. Give the packet
sequence for the first 12 msec in both the directions in a full duplex
TCP working under the Go-Back-n protocol and, if the following
transmission errors occur,
I) Packet 2 reaches Receiver with checksum error,
II) Ack 4 gets lost,
III)Packet 5 gets lost.
Assume that starting sequence number is 1. ?
Page 9 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532

answered
PR Attribute ID Marks New Marks
CN_4 15 3
(35)
Consider the three commands: PROMPT, HEAD and RCPT. Which of the
following options indicate a correct association of these commands with
protocols where these are used? ?
SMTP, HTTP, FTP
HTTP, FTP, SMTP
HTTP, SMTP, FTP
FTP, HTTP, SMTP
(36) In your Linux system you , want to list the listening sockets . Choose the correct command to do it. ?
arp -a
No option is correct.
ipcs -l
netstat -l
(37) ISPs generally use ___ to assign individual IP addresses to clients ?
DHCP
Squid Proxy Server
DNS
ARP
(38) In which of the following cases a TCP sender is throttled (asked to cut down the sending rate)? ?
Congestion Control
None of the above
Explicit Congestion Notification (ECN)
Page 10 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532
Flow Control
(39)
Given that the minimum and maximum segment size for TCP is 556 and 596 bytes respectively. What is default MSS
for TCP in this case? Give rationale for your answer. ?

536

20 + 536
20 + 40 + 536


Since MININUM MSS for TCP by Default : 20(tcp header)
MAXIMUM MSS for TCP by default : 20 + 40(tcp header + options)
PR Attribute ID Marks New Marks
CN_2 5 5
(40) Which of the following fields of IPv4 header change(s) at every hop? ?
13-bit Fragmentation offset
Header checksum
Type of service (ToS)
Time-to-live
(41) ECN flag is used for ?
Network Assisted Congestion Control
Jacobsan's Algorithm
Transport layer Assisted Congestion Control
Flow Control
(42) In layered network model as the data packets move from the upper layers to the lower layers, headers are ?
Rearranged
Modified
Removed
Added
(43)
Consider congestion control in TCP. When the timer expires at the sender,
the threshold is set to one half of the congestion window. ?
True
Page 11 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532




False
Not Answer
(44)
Why is an ARP query sent within a broadcast frame? Why is an ARP response sent within a frame with a specific de
stination MAC address? ?

ARP is used for local networks. It broadcasts ip address, the host with the particular IP will be
given response by sending its mac address.

Ethernet understands only MAC address, not ip
PR Attribute ID Marks New Marks
CN_5 4 1
(45) ICMP ping can NOT be written in ?
Java
Perl
None of the above
C
Page 12 of 12
2/6/2009 http://10.203.161.13/OES/take1.jsp?s1=497&s2=20532

You might also like