Changes between Version 3 and Version 4 of Document/Development/Design/Module/TrafficShaping/Ingress

Show
Ignore:
Timestamp:
03/26/07 15:30:31 (6 years ago)
Author:
ejhernandez@… (IP: 80.35.41.131)
Comment:

Internal work

Legend:

Unmodified
Added
Removed
Modified
  • Document/Development/Design/Module/TrafficShaping/Ingress

    v3 v4  
    3434More information at [http://wiki.nix.hu/cgi-bin/twiki/view/IMQ/ImqFaq] FAQ. 
    3535 
     36Introduces some delay since all incoming traffic should pass two queues (normal interface and the new virtual interface). 
     37 
    3638== Usage == 
    3739 
     
    4446        ip link set imq'n' up 
    4547     }}} 
    46   1. Working normally as a ''egress'' interface 
     48  1. Do the traffic shaping rules as at ''egress'' traffic 
     49  1. Direct traffic to that virtual interface 
     50     {{{ 
     51        iptables -t mangle -A PREROUTING -i <iface> -j IMQ --todev n 
     52     }}} 
    4753 
    4854More information at [http://wiki.nix.hu/cgi-bin/twiki/view/IMQ/HowToUse]. 
     55 
     56== Internal functionality == 
     57 
     58IMQ is a 'dummy' interface which works as a virtual interface to shape incoming (''ingress'') traffic. To achieve so, some iptables rules are needed to direct packets to that interface which they are reordered (doing the shaping). These rules are processed after the other iptables commands. For '''ingress''', the rules are processed just ''after the mangle rules''. For '''egress''', the imq rules are matched ''after all other iptables rules''. 
     59 
     60More information at [http://www.docum.org/docum.org/faq/cache/17.html LARTC FAQ].