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?

  1. 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
  2. B. Active mode encrypts the control channel, so the filter cannot inspect port 21
  3. C. In passive mode the data connection uses UDP, which the filter does not check
  4. 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

Exams that ask this topic