All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 09 · MOCK TEST

Mock 5 – Network Layer: IP Addressing & Routing (Part 2)

Unit 9: Data Communication and Computer Networks · 21 questions · about 25 minutes. Press End Mock any time to see your score and the correct answers.

All 13 topic-wise mocks in this unit
0 / 21 answered 00:00
Q1. Hosts P and Q are connected through router R. The MTU of link P–R is 1500 bytes and of R–Q is 820 bytes. A TCP segment of 1400 bytes is sent from P to Q with IP identification 0x1234; the IP header is 20 bytes and DF is not set. Which statements are NOT true?
A. Two fragments are created at R, and the IP datagram carrying the second fragment is 620 bytes.
B. If the second fragment is lost, R resends the fragment with IP identification 0x1234.
C. If the second fragment is lost, P is required to resend the entire TCP segment.
D. The TCP destination port can be determined by analysing the second fragment only.
Choose the correct answer from the options given below:
Q2. Match List I with List II
List IList II
A. Physical LayerI. Transforming the raw bits into frames for transmission
B. Data Link LayerII. Control and monitoring of subnet
C. Network LayerIII. Transmission of raw bits over a communication channel
D. Transport LayerIV. Transmits data connection-oriented or connectionless (datagrams)
Q3. Hosts P and Q are connected through a router R. The MTU of link P–R is 1500 bytes and of link R–Q is 820 bytes. A TCP segment of 1400 bytes is sent from P to Q through R with IP identification 0x1234. The IP header is 20 bytes and the DF flag is not set.
I. Two fragments are created at R and the IP datagram carrying the second fragment is 620 bytes.
II. If the second fragment is lost, R resends the fragment with IP identification 0x1234.
III. If the second fragment is lost, P is required to resend the entire TCP segment.
IV. The TCP destination port can be determined by analysing the second fragment only.
Choose the correct answer from the options given below:

Directions (Q91–95): An organisation is granted the block 130.56.0.0/16. The administrator wants to create 1024 subnets.

Q4. Find the number of addresses in each subnet.

Directions (Q91–95): An organisation is granted the block 130.56.0.0/16. The administrator wants to create 1024 subnets.

Q5. Find the subnet prefix.

Directions (Q91–95): An organisation is granted the block 130.56.0.0/16. The administrator wants to create 1024 subnets.

Q6. Find the first and last addresses of the first subnet.

Directions (Q91–95): An organisation is granted the block 130.56.0.0/16. The administrator wants to create 1024 subnets.

Q7. Find the subnet mask.

Directions (Q91–95): An organisation is granted the block 130.56.0.0/16. The administrator wants to create 1024 subnets.

Q8. Find the first and last addresses of the last subnet.
Q9. A classless address is given as 167.199.170.82/27. The number of addresses in the network is
Q10.

Host A (on TCP/IPv4 Networks) send an IP Datagram D to host B (also on TCP/IPv4 network). Assume that no error occured during transmission of D, when D reaches B. Which of following header field may differ from that of original datagram D ?

(A) TTL

(B) Checksum

(C) Fragment offset

(D) Source IP

(E) Destination IP

Q11.

Match List - I with List - II.

Figure
Q12.

Two computers A and B are configured as follows : A has IP address 203.197.2.53 and subnet mask 255.255.128.0, B has IP address 203.197.75.201 and subnet mask 255.255.192.0. What one of the following statement is true?

Q13.

An IPv4 packet has arrived with the first few hexadecimal digits as shown below. How many hops can this packet travel before being dropped? The data belong to what upper-layer protocol? ( 5400001800100110040601...) 16

Q14.

What is the total delay (latency) for a frame size of 10 million bits that is being set up on a link with 20 routers, each having a queuing time of 2 μ μs s and a processing time of 1 ? The length of link 5000 km. The speed of light inside the link is 2 * 108 m /s. The link has bandwidth of 6 Mbps.

Q15.

Given below are two statements:

Statement (I) : In datagram networks - routers hold state information about connections

Statement (II) : In a virtual circuit network- each virtual circuit requires router table space per connection In the light of the above statements, choose the most appropriate answer from the options given below :

Q16.

Match List I with List II

Figure
Q17.

Consider two hosts P and Q that are connected through a router R. The maximum transfer unit (MTU) value of the link between P and R is 1500 bytes and between R and Q is 820 bytes. A TCP segment of size 1400 bytes is transferred from P to Q through R with IP identification value of 0 × 1234 . Assume that IP header size is 20 bytes. Further the pcaket is allowed to be fragmented that is Don't fragment (DF) flag in the IP Header is not set by P. Which of the following statement/s is/are true?

A. Two fragments are created at R and IP datagram size carrying the second fragment is 620 bytes

B. If the second fragment is lost, then R resends the fragment with IP identification value of 0 × 1234

C. If the second fragment lost, then P requires to resend the entire TCP segment.

D. TCP destination port can be determined by analyzing the second fragment only.

Directions (Q96–100): An IP datagram arrives with the following partial header (hexadecimal): 45 00 00 54 00 03 00 00 20 06 …

Q18.

What is the protocol of the payload being carried by the packet?

Q19.

Which protocol is used to acquire the MAC Address of a host whose IP address is known?

Q20.

Consider a computer network using the distance vector routing algorithm in its network layer. The Objective is to find the shortest cost path from router R to routers P and Q. Assume that R does not initially know the shortest routes to P and Q. R Assume that has three neighboring routers, X, Y Z R namely: and . During one iteration measures its distance as 3,2 , and 5 from its X, Y Z R neighbors and , respectively. Router getting routing vectors from its neighbors that indicates a distance of 7,6 and 5 from router X, Y Z P and to router , respectively. The routing vector also indicates that the distance to Q X, Y Z router from Routers and are 4, 6, 8 respectively. Which of the following statements is/are Ture with respect to the new routing table R at router after updation during this iteration. R P

A. The distance from to will be stored as 10 R Q

B. The distance from to will be stored as 7 R P

C. The next hop router for a packet from to Y is R Q

D. The next hop router for a packet from to Z is

Choose the correct answer from the options given below:

Q21.

An organization's routing table has: 12.20.164.0/255.255.252.0 → R1; 12.20.170.0/255.255.254.0 → R2; 12.20.168.0/255.255.254.0 → Interface 0; 12.20.166.0/255.255.254.0 → Interface 1; default → R3. Which prefixes can be used together to aggregate all these subnets? A. 12.20.164.0/20 B. 12.20.164.0/22 C. 12.20.164.0/21 D. 12.20.168.0/22