Exams › GATE › Technical
An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20. The ISP wants to give half of this chunk of addresses to Organization A, and a quarter to Organization B, while retaining the remaining addresses for itself. Which of the following is a valid allocation of addresses to A and B?
- 245.248.136.0/21 and 245.248.128.0/22
- 245.248.128.0/21 and 245.248.128.0/22
- 245.248.132.0/22 and 245.248.132.0/21
- 245.248.136.0/24 and 245.248.132.0/21
Correct answer: 245.248.136.0/21 and 245.248.128.0/22
Solution
The block 245.248.128.0/20 spans 4096 addresses. Half of it is a /21 block and a quarter is a /22 block; both must begin at valid subnet boundaries and be non-overlapping. 245.248.128.0/22 is valid for B, and 245.248.136.0/21 is a valid non-overlapping half-block for A.
Related GATE Technical questions
- A TCP server application is programmed to listen on port number $P$ on host $S$. A TCP client is connected to the TCP server over the network. Consider that while the TCP connection was active, the server machine $S$ crashed and rebooted. Assume that the client does not use the TCP keepalive timer. Which of the following behaviors is possible?
- A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-level index page with multiple embedded image objects. Assume that all caches, such as DNS cache and browser cache, are initially empty. The following packets leave the user's computer in some order: (i) HTTP GET request for the index page, (ii) DNS request to resolve the web server's name to its IP address, (iii) HTTP GET request for an image object, (iv) TCP SYN to open a connection to the web server. Which one of the following is the correct chronological order, from earliest to latest, of the packets leaving the computer?
- TCP client P successfully establishes a connection to TCP server Q. Let N_P denote the sequence number in the SYN sent from P to Q. Let N_Q denote the acknowledgement number in the SYN-ACK from Q to P. Which of the following statements is/are CORRECT?
- Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?
- Consider a network path P—Q—R between nodes P and R via router Q. Node P sends a file of size $10^6$ bytes to R via this path by splitting the file into chunks of $10^3$ bytes. Node P sends these chunks one after the other without any wait time between successive chunk transmissions. Assume that the size of extra headers added to these chunks is negligible, and that the chunk size is the MTU. Each of the links P—Q and Q—R has a bandwidth of $10^6$ bits/sec, and negligible propagation latency. Router Q immediately transmits every packet it receives from P to R, with negligible processing and queueing delays. Router Q can simultaneously receive on link P—Q and transmit on link Q—R. Assume P starts transmitting the chunks at time $t=0$. Which one of the following options gives the time (in seconds, rounded off to 3 decimal places) at which R receives all the chunks of the file?
- Consider sending an IP datagram of size 1420 bytes, including 20 bytes of IP header, from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an MTU (Maximum Transmission Unit) of 542 bytes, while the second link (router to receiver) has an MTU of 360 bytes. The number of fragments that would be delivered to the receiver is
⚔️ Practice GATE Technical free + battle 1v1 →