tc-fq(8)


NAME

   Fair Queuing (FQ) - Traffic Pacing

SYNOPSIS

   tc  qdisc  ...  fq  [  limit PACKETS ] [ flow_limit PACKETS ] [ quantum
   BYTES ] [ initial_quantum BYTES ] [ maxrate RATE ] [ buckets  NUMBER  ]
   [ pacing | nopacing ]

DESCRIPTION

   FQ (Fair Queue) is a classless packet scheduler meant to be mostly used
   for locally generated traffic.  It is  designed  to  achieve  per  flow
   pacing.   FQ  does  flow  separation,  and  is  able  to respect pacing
   requirements set by TCP stack.  All packets belonging to a  socket  are
   considered  as  a  'flow'.   For  non  local packets (router workload),
   packet rxhash is used as fallback.

   An  application  can  specify  a  maximum   pacing   rate   using   the
   SO_MAX_PACING_RATE  setsockopt  call.  This packet scheduler adds delay
   between packets to respect rate limitation set by TCP stack.

   Dequeueing happens in a round-robin fashion.  A special FIFO  queue  is
   reserved  for  high  priority packets ( TC_PRIO_CONTROL priority), such
   packets are always dequeued first.

   FQ is non-work-conserving.

   TCP pacing is good for flows  having  idle  times,  as  the  congestion
   window  permits  TCP stack to queue a possibly large number of packets.
   This removes the 'slow start after idle' choice,  badly  hitting  large
   BDP  flows  and  applications  delivering  chunks of data such as video
   streams.

PARAMETERS

   limit
   Hard limit on the real queue size. When  this  limit  is  reached,  new
   packets  are  dropped.  If the value is lowered, packets are dropped so
   that the new limit is met. Default is 10000 packets.

   flow_limit
   Hard limit on the maximum number of packets queued per  flow.   Default
   value is 100.

   quantum
   The  credit  per  dequeue  RR round, i.e. the amount of bytes a flow is
   allowed to dequeue at once. A larger value means a longer  time  period
   before  the  next  flow  will  be served.  Default is 2 * interface MTU
   bytes.

   initial_quantum
   The initial sending rate credit, i.e. the amount of bytes a new flow is
   allowed  to  dequeue  initially.   This  is specifically meant to allow
   using IW10 without added delay.  Default is 10 *  interface  MTU,  i.e.
   15140 for 'standard' ethernet.

   maxrate
   Maximum  sending  rate  of  a flow.  Default is unlimited.  Application
   specific setting via SO_MAX_PACING_RATE is ignored only if it is larger
   than this value.

   buckets
   The  size  of  the  hash  table  used  for flow lookups. Each bucket is
   assigned a red-black tree for efficient  collision  sorting.   Default:
   1024.

   [no]pacing
   Enable or disable flow pacing. Default is enabled.

EXAMPLES

   #tc qdisc add dev eth0 root fq
   #tc -s -d qdisc
   qdisc  fq  8003:  dev  eth0  root refcnt 2 limit 10000p flow_limit 100p
   buckets 1024 quantum 3028 initial_quantum 15140
    Sent 503727981 bytes 1146972 pkt (dropped  0,  overlimits  0  requeues
   54452)
    backlog 0b 0p requeues 54452
     1289 flows (1289 inactive, 0 throttled)
     0 gc, 31 highprio, 27411 throttled

SEE ALSO

   tc(8), socket(7)

AUTHORS

   FQ was written by Eric Dumazet.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.