Traffic shaping on tunnel devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

I'm trying to perform traffic shaping on tunnel type gre interface with
Linux-2.2.18. Everything is ok, traffic spikes very sharp (i.e. on bursts with
pauses between). After closer look I found that tunnel devices have not queue
at all:

1: lo: <LOOPBACK,UP> mtu 3924 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 100
    link/ether 00:80:ad:88:36:cd brd ff:ff:ff:ff:ff:ff
46: gre0@NONE: <NOARP> mtu 1476 qdisc noop
    link/gre 0.0.0.0 brd 0.0.0.0
47: tunnel0@NONE: <POINTOPOINT,NOARP,UP> mtu 1476 qdisc cbq
    link/gre xx.xx.xx.17 peer xx.xx.xx.21

So I decide to try seting queue lenght manualy:

ip link set tx 100 dev tunnel0

47: tunnel0@NONE: <POINTOPOINT,NOARP,UP> mtu 1476 qdisc cbq qlen 100
    link/gre xx.xx.xx.17 peer xx.xx.xx.21

After reinitiating cbq traffic flaw smoothly at shaped rate. But where's the
catch? Why tunnel interfaces have not queue by default?

-- 
        =- --rw------- =--=--=--=--=--=--=--=--=--=--=--=--=--=
          Theodor Milkov           Administrator IP Networks
          Davidov Electric Ltd.    Phone: +359 (2) 730158
          PGP: http://www.zimage.delbg.com/zimage.asc
        =--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=

Attachment: pgp00017.pgp
Description: PGP signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux