Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CN-SurpriseTest-1

Total questions: 30

Worksheet time: 19mins

Name
Class
Date
1.

The protocol data unit(PDU) for the application layer in the Internet stack is

a)

Segment

b)

Datagram

c)

Message

d)

Frame

2.

Which of the following transport layer protocolss is used to support electronic mail?

a)

SMTP

b)

ICMP

c)

STMP

d)

TCP

3.

In the IPv4 addressing format, the number of networks allowed under Class C addresses is

a)

2^14

b)

2^18

c)

2^24

d)

2^21

4.

Consider a source computer (S) transmitting a file of size 106 bits to a destination computer (D) over a network of two routers (R1 and R2) and three links (L1, L2 and L3). L1 connects S to R1;L2 connects R1 to R2; and L3 connects R2 to D. Let each link be of length 100km. Assume signals travel over each link at a speed of 10^8 meters per second. Assume that the link bandwidth on each link is 1Mbps. Let the file be broken down into 1000 packets each of size 1000 bits. Find the total sum of transmission and propagation delays in transmitting the file from S to D?

a)

1005ms

b)

1010ms

c)

3000ms

d)

3003ms

5.

Packets of the same session may be routed through different paths in:

a)

TCP, but not UDP

b)

TCP and UDP

c)

UDP, but not TCP

d)

Neither TCP nor UDP

6.

The address resolution protocol (ARP) is used for:

a)

Finding the IP address from the DNS

b)

Finding the IP address of the default gateway

c)

Finding the IP address that corresponds to a MAC address

d)

Finding the MAC address that corresponds to an IP address

7.

The maximum window size for data transmission using the selective reject protocol with n-bit frame sequence numbers is:

a)

2^n

b)

2^(n-1)

c)

2^n – 1

d)

2^(n-2)

8.

If a class B network on the Internet has a subnet mask of 255.255.248.0, what is the maximum number of hosts per subnet?

a)

1022

b)

1023

c)

2046

d)

2045

9.

What is the maximum size of data that the application layer can pass on to the TCP layer below?

a)

Any size

b)

2^16 bytes-size of TCP header

c)

2^16 bytes

d)

1500 bytes

10.

A client process P needs to make a TCP connection to a server process S. Consider the following situation: the server process S executes a socket(), a bind() and a listen() system call in that order, following which it is preempted. Subsequently, the client process P executes a socket() system call followed by connect() system call to connect to the server process S. The server process has not executed any accept() system call. Which one of the following events could take place?

a)

connect () system call returns successfully

b)

connect () system call blocks

c)

connect () system call returns an error

d)

connect () system call results in a core dump

11.

Which one of the following uses UDP as the transport protocol?

a)

DNS

b)

HTTP

c)

SMTP

d)

IGMP

12.

In Ethernet when Manchester encoding is used, the bit rate is:

a)

Twice the baud rate.

b)

Half the baud rate.

c)

Same as the baud rate.

d)

none of the above

13.

Match The following

(P) SMTP ----------- (1) Application layer

(Q) BGP ----------- (2) Transport layer

(R) TCP ----------- (3) Data link layer

(S) PPP ----------- (4) Network layer

--------------------- (5) Physical layer

a)

P – 2 Q – 1 R – 3 S – 5

b)

P – 1 Q – 4 R – 2 S – 3

c)

P – 1 Q – 4 R – 2 S – 5

d)

P – 2 Q – 4 R – 1 S – 3

14.

Station A uses 32 byte packets to transmit messages to Station B using a sliding window protocol. The round trip delay between A and B is 80 milliseconds and the bottleneck bandwidth on the path between A and B is 128 kbps. What is the optimal window size that A should use?

a)

40

b)

20

c)

160

d)

320

15.

Station A needs to send a message consisting of 9 packets to Station B using a sliding window (window size 3) and go-back-n error control strategy. All packets are ready and immediately available for transmission. If every 5th packet that A transmits gets lost (but no acks from B ever get lost), then what is the number of packets that A will transmit for sending the message to B?

a)

12

b)

14

c)

16

d)

18

16.

Frames of 1000 bits are sent over a 10^6 bps duplex link between two hosts. The propagation time is 25ms. Frames are to be transmitted into this link to maximally pack them in transit (within the link).

What is the minimum number of bits (i) that will be required to represent the sequence numbers distinctly? Assume that no time gap needs to be given between transmission of two frames.

a)

i=2

b)

i=3

c)

i=4

d)

i=5

17.

Consider the data of previous question. Suppose that the sliding window protocol is used with the sender window size of 2^i where is the number of bits identified in the previous question and acknowledgments are always piggybacked. After sending 2^i frames, what is the minimum time the sender will have to wait before starting transmission of the next frame? (Identify the closest choice ignoring the frame processing time.)

a)

16ms

b)

18ms

c)

20ms

d)

22ms

18.

The bandwidth of the line is 1.5 Mbps with round trip time(RTT) as 45 milliseconds.If the size of each packet is 1 KB(kilobytes), then what is the efficiency in Stop and wait protocol?

a)

20.3

b)

10

c)

10.8

d)

11

19.

Which of the following is not true about Subnetting?

a)

It can be applied only for single network.

b)

It is used to improve security.

c)

Here, bits are borrowed from network ID portion.

d)

Here, bits are borrowed from host ID portion.

20.

Which device uses logical addressing system?

a)

Hub

b)

Switch

c)

Router

d)

Bridge

21.

In which of the following protocol(s) it is possible for sender to receive acknowledgement for a packet that falls outside its current window?

a)

Selective repeat protocol

b)

Stop and wait protocol

c)

Go back N protocol

d)

All of the above

22.

The data link layer takes the packets from _____ and encapsulates them into frames for transmission.

a)

network layer

b)

physical layer

c)

transport layer

d)

application layer

23.

Which one of the following task is not done by data link layer?

a)

framing

b)

error control

c)

flow control

d)

channel coding

24.

Which sublayer of the data link layer performs data link functions that depend upon the type of medium?

a)

logical link control sublayer

b)

media access control sublayer

c)

network interface control sublayer

d)

none of the mentioned

25.

Header of a frame generally contains:

a)

synchronization bytes

b)

addresses

c)

frame identifier

d)

all of the mentioned

26.

Automatic repeat request error management mechanism is provided by:

a)

logical link control sublayer

b)

media access control sublayer

c)

network interface control sublayer

d)

none of the mentioned

27.

Which one of the following is a data link protocol?

a)

ethernet

b)

point to point protocol

c)

HDLC

d)

all of the mentioned

28.

The technique of temporarily delaying outgoing acknowledgements so that they can be hooked onto the next outgoing data frame is called:

a)

piggybacking

b)

cyclic redundancy check

c)

fletcher’s checksum

d)

none of the mentioned

29.

Which one of the following routing algorithm can be used for network layer design?

a)

shortest path algorithm

b)

distance vector routing

c)

link state routing

d)

all of the mentioned

30.

Which one of the following is not a function of network layer?

a)

routing

b)

inter-networking

c)

congestion control

d)

none of the mentioned