Network Design and Operations

An ACL that checks incoming packets from the top is applied to a router interface. Rule 1 is "permit traffic to TCP port 443 on 10.0.0.10," rule 2 is "deny all traffic from source 192.168.1.0/24," and rule 3 is "permit traffic from source 192.168.0.0/16 to TCP port 80"; there are no other rules. Of the four packets (i) "from 192.168.1.5 to TCP port 443 on 10.0.0.10," (ii) "from 192.168.1.5 to TCP port 80 on 10.0.0.20," (iii) "from 192.168.2.5 to TCP port 80 on 10.0.0.20" and (iv) "from 192.168.2.5 to TCP port 22 on 10.0.0.20," which choice lists all the packets that are let through?

  1. A(i) and (iii)
  2. B(i), (ii) and (iii)
  3. C(i), (iii) and (iv)
Show answer and explanation

Answer: A. (i) and (iii)

An ACL compares a packet with the rules from the top, decides to permit or deny it by the first rule that matches, and does not look at any later rules. A packet that matches no rule is discarded by an invisible "deny all" rule at the end (the implicit deny). Packet (i) matches rule 1 and is permitted. Packet (ii) also fits rule 3, but it matches rule 2 (source 192.168.1.0/24) first and is denied. Packet (iii) matches neither rule 1 nor rule 2 and is permitted by rule 3, and packet (iv) matches no rule and is discarded by the implicit deny.

  • A. Correct. (i) is permitted by rule 1 and (iii) by rule 3; (ii) is dropped by rule 2 and (iv) by the implicit deny.
  • B. (ii) matches rule 2 before rule 3, so it is denied. Rules are checked from the top, and the first match decides.
  • C. (iv) matches no rule. Packets that match no rule are discarded by the implicit deny.
Practice this topic Back to topic

Related calculators

Books on Network Design and Operations Ad

As an Amazon Associate I earn from qualifying purchases.

More Network Design and Operations questions

  1. In IPv6, which range holds link-local addresses, which are used only within the same link and are always configured automatically on every interface that uses IPv6?
  2. In IPv6 SLAAC (stateless address autoconfiguration), how does a host create a global unicast address?
  3. An interface with MAC address 00-1A-2B-3C-4D-5E creates an address with SLAAC from the prefix 2001:db8:1:1::/64 and an interface ID in the EUI-64 format. Which address results?
  4. Two sites that run only IPv6 are to be connected through a network that runs only IPv4, and the traffic between the sites should remain IPv6 packets. Which method is appropriate?
  5. In traceroute, what value is the TTL in the IP header set to in the packet sent to make the fourth router from the source return an ICMP Time Exceeded message?

Comparisons in this topic