CORPORATE PROFILES
I
I
I
I
I

  Router Solution
  ------------------------------------------
Overview
Pro Series Router
Industrial Series Router
Pro Series Network Card
Ind Series Network Card
   
  WAN Monitoring
  ------------------------------------------
WAN monitoring card
WAN monitoring tapper
   
  Technical Support
  ------------------------------------------
Manual Downloads
Technology
Case Study
Technical Notes
FAQ
   

 

 

 
ImageStream - Resolving errors

Resolving "ip_conntrack: table full, dropping packet" errors

When enabled through the use of NAT or other stateful inspection rules, netfilter (iptables) under Linux maintains a list of connections passing through the router. Each connection tracking entry contains defined characteristics of the packet, including the source and destination IP address and port number.

The connection tracking entries are ultimately stored in a hash table with a fixed size. By default on an Imagestream router, the hash table can store 8064 entries. For routers with stateful inspection enabled, the number of connections to track may exceed the total number of connections available in the table. If the router reaches the maximum number of connection tracking entries, it will log an error:
"ip_conntrack: table full, dropping packet"

each time that it is unable to store an entry in the connection tracking table. Each instance of this message represents a connection that the router has discarded, typically meaning that the user whose connection was dropped must re-establish their connection.

The maximum size of the connection tracking table can be increased. The maximum size value is stored in the router's proc filesystem in the file /proc/sys/net/ipv4/ip_conntrack_max. Increasing the maximum size of the connection tracking table to a value larger than the total number fo connections will eliminate the error message and prevent the router from dropping connections due to a lack of space in the connection tracking table.

Each connection uses approximately 350 bytes of memory, so 16384 connections would allocate 5.7 MB of RAM. In most cases, the default value is sufficient, but ImageStream recommends that operators encountering the "table full" message increase the value to either 16384 or 32768 entries. The default firewall configuration file (/etc/rc.d/rc.firewall, available from the router's Firewall/QoS menu) contains the command to increase this value:

###############################################################################
# If you have NAT rules and get a "ip_conntrack: table full, dropping packet."#
# message in your kernel message log (dmesg), increase the maximum number of #
# connections that can be tracked by uncommenting the line below #
# Each connection uses ~ 350 bytes of memory. 16384 = 5.7 MB #
###############################################################################
#echo 16384 > /proc/sys/net/ipv4/ip_conntrack_max

 

The line is commented out by default, but removing the "#" will result in the router executing the command when loading the firewall rules. The value "16384" can be increased to a larger value if required. ImageStream recommends increasing this value incrementally to conserve memory and to avoid creating an inefficiently large table that remains mostly unused. ImageStream recommends setting a value no higher than 262144. If you set this value and still receive errors, please contact ImageStream support for an evaluation of your firewall needs.