The ONL NPR Tutorial

NPR Tutorial >> Filters, Queues and Bandwidth TOC

New Window?

Filtering With TCP Flags

There are six TCP flag bits in the TCP header which can be used to identify packets that have any of these bits ON:

For example, we count the number of TCP connection attempts by matching all TCP packets with the SYN bit on if we know the sender's IP address. Or, we can simulate a SYN flood attack by dropping all TCP packets from a sender except for its SYN packet. [[ syn-flag-resize.png Figure ]]

You can filter on the TCP flag fields (SYN, ACK, FIN, RST, PSH, URG) using a filter. The figure (right) shows a filter that could be used to count TCP connection attempts; i.e., it will match a TCP SYN packet coming from anywhere and going anywhere and forward it in the usual manner. The main things to remember are:



 Revised:  Tue, Aug 26, 2008 

  
  

NPR Tutorial >> Filters, Queues and Bandwidth TOC