CS FundamentalsVery hardGATE CS · Cisco/networking placement
A stateless packet filter at a campus edge allows all outbound TCP, and allows inbound TCP only when the ACK flag is set (so only replies to connections opened from inside get in). Users find that active-mode FTP transfers fail while passive-mode ones work. Why?
- A. In active mode the server opens the data connection from its port 20 to the client, and that inbound SYN has no ACK flag
- B. Active mode encrypts the control channel, so the filter cannot inspect port 21
- C. In passive mode the data connection uses UDP, which the filter does not check
- D. Active mode needs inbound ICMP, which the filter blocks
Correct answer: A. In active mode the server opens the data connection from its port 20 to the client, and that inbound SYN has no ACK flag
In active FTP the client sends PORT and the server then connects back, so the data connection's first packet is an inbound SYN without ACK and is dropped. In passive mode the client opens the data connection outbound, so every inbound packet is a reply carrying ACK.
More Computer Networks questions
- A company wants its bare domain example.com to point at a hosting provider's name, as www.example.com does with a CNAME. Why does standard…
- How many of these are valid IPv6 addresses? 1. 2001:db8::1:0:0:1 2. 2001:db8::1::5 3. fe80::abcd:12345 4. ::ffff:192.0.2.1 5…
- Host 192.168.1.10/24 with gateway 192.168.1.1 has an empty ARP cache. It pings 8.8.8.8, then 1.1.1.1, then 192.168.1.20. How many ARP…
- A client writes a 50-byte header and then a 200-byte body to a TCP socket as two separate write() calls, then waits for the reply. Nagle's…
- A page has a base HTML file and 6 small embedded images on the same server. The RTT is 20 ms and transmission times are negligible. With…
- The bit string 10111001 is sent once with NRZ-I (a level transition at the start of every 1 bit, none for a 0, counting the transition at…