Is Traffic control inside namespace on ports created by OpenvSwitch supported?Change ip addr label in...

Based on what criteria do you add/not add icons to labels within a toolbar?

Validation and verification of mathematical models

Can chords be inferred from melody alone?

Did silent film actors actually say their lines or did they simply improvise “dialogue” while being filmed?

How can I refer to something in a book?

Getting an entry level IT position later in life

How many years before enough atoms of your body are replaced to survive the sudden disappearance of the original body’s atoms?

Why don't the open notes matter in guitar chords?

Cobb-Douglas production function with expenditures rather than units

Can external light meter replace the need for push/pull?

Is it double speak?

Unexpected route on a flight from USA to Europe

Where in ש״ס who one find the adage, “He who suggests the idea should carry it out”?

Is there a difference between 「目を覚ます」 and 「目覚める」

Traveling from Germany to other countries by train?

What is the bio-mechanical plausibility of a fox with venomous fangs?

Does the Voyager team use a wrapper (Fortran(77?) to Python) to transmit current commands?

Should I self-publish my novella on Amazon or try my luck getting publishers?

Should I take out a personal loan to pay off credit card debt?

Using command line how to open a specific section of GUI System Preferences?

Count number of occurences of particular numbers in list

What are the examples (applications) of the MIPs in which the objective function has nonzero coefficients for only continuous variables?

Does a 4 bladed prop have almost twice the thrust of a 2 bladed prop?

What is the purpose of this mount on the upper suspension arm?



Is Traffic control inside namespace on ports created by OpenvSwitch supported?


Change ip addr label in LinuxNetwork connectivity trouble to non-routing multi-homed hosts?How to create permanent ip alias belonging to different subnets in CentosConfusion about interfaces, iptables, connections, local connectionCan't figure out why Ethernet packets are ignoredScript to create macvlan bridge on the host doesn't work unless it's run twiceLinux: outbound IP to my subnet do not appear in tcpdump and do not appear to be sentDebian8 server : Can't resolve IP adresses or DNSHow to find the network namespace of a veth peer ifindex?How to implement iptables on lxc-container?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















I am trying to limit the bandwidth of an interface inside a namespace using tc without much success. Seems it's not supported according to https://lists.linux-foundation.org/pipermail/containers/2009-September/020473.html



This is on CentOS 6.5. What's weird is when I use the tutorial outlind here it works normally: http://gigawhitlocks.com/2014/08/18/network-namespaces.html So it must be something special that's happening to this port created by Openstack inside the namespace. The port that's not working is a port serving as gateway for a virtual router inside openstack.



Edit2: Some more info about the interface which doesn't work with tc:
ip netns exec qrouter-6a080f37.. ethtool -S qr-a9b3962f-d4
no stats available



Edit: Seems somebody else is encountering the same problem with ports created by openvswitch in a namespace http://openvswitch.org/pipermail/discuss/2014-May/013925.html



The following command just fails with RTNETLINK answers: Invalid argument:



# ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be tc qdisc add dev qr-a9b3962f-d4 root netem loss 30%
RTNETLINK answers: Invalid argument
[root@node-1 ~]# ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be ip a
43: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
44: qg-4bda7108-d2: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:95:cc:7b brd ff:ff:ff:ff:ff:ff
inet 119.81.159.206/27 brd 119.81.159.223 scope global qg-4bda7108-d2
inet 119.81.159.207/32 brd 119.81.159.207 scope global qg-4bda7108-d2
inet 119.81.159.209/32 brd 119.81.159.209 scope global qg-4bda7108-d2
inet6 fe80::f816:3eff:fe95:cc7b/64 scope link
valid_lft forever preferred_lft forever
47: qr-a9b3962f-d4: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether fa:16:3e:c2:64:dd brd ff:ff:ff:ff:ff:ff
inet 192.168.99.1/24 brd 192.168.99.255 scope global qr-a9b3962f-d4
inet6 fe80::f816:3eff:fec2:64dd/64 scope link
valid_lft forever preferred_lft forever
# ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be tc qdisc add dev qr-a9b3962f-d4 root tbf rate 1mbit burst 10kb limit 100kb
RTNETLINK answers: Invalid argument









share|improve this question

















bumped to the homepage by Community 54 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.























    2















    I am trying to limit the bandwidth of an interface inside a namespace using tc without much success. Seems it's not supported according to https://lists.linux-foundation.org/pipermail/containers/2009-September/020473.html



    This is on CentOS 6.5. What's weird is when I use the tutorial outlind here it works normally: http://gigawhitlocks.com/2014/08/18/network-namespaces.html So it must be something special that's happening to this port created by Openstack inside the namespace. The port that's not working is a port serving as gateway for a virtual router inside openstack.



    Edit2: Some more info about the interface which doesn't work with tc:
    ip netns exec qrouter-6a080f37.. ethtool -S qr-a9b3962f-d4
    no stats available



    Edit: Seems somebody else is encountering the same problem with ports created by openvswitch in a namespace http://openvswitch.org/pipermail/discuss/2014-May/013925.html



    The following command just fails with RTNETLINK answers: Invalid argument:



    # ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be tc qdisc add dev qr-a9b3962f-d4 root netem loss 30%
    RTNETLINK answers: Invalid argument
    [root@node-1 ~]# ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be ip a
    43: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    44: qg-4bda7108-d2: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether fa:16:3e:95:cc:7b brd ff:ff:ff:ff:ff:ff
    inet 119.81.159.206/27 brd 119.81.159.223 scope global qg-4bda7108-d2
    inet 119.81.159.207/32 brd 119.81.159.207 scope global qg-4bda7108-d2
    inet 119.81.159.209/32 brd 119.81.159.209 scope global qg-4bda7108-d2
    inet6 fe80::f816:3eff:fe95:cc7b/64 scope link
    valid_lft forever preferred_lft forever
    47: qr-a9b3962f-d4: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether fa:16:3e:c2:64:dd brd ff:ff:ff:ff:ff:ff
    inet 192.168.99.1/24 brd 192.168.99.255 scope global qr-a9b3962f-d4
    inet6 fe80::f816:3eff:fec2:64dd/64 scope link
    valid_lft forever preferred_lft forever
    # ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be tc qdisc add dev qr-a9b3962f-d4 root tbf rate 1mbit burst 10kb limit 100kb
    RTNETLINK answers: Invalid argument









    share|improve this question

















    bumped to the homepage by Community 54 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















      2












      2








      2








      I am trying to limit the bandwidth of an interface inside a namespace using tc without much success. Seems it's not supported according to https://lists.linux-foundation.org/pipermail/containers/2009-September/020473.html



      This is on CentOS 6.5. What's weird is when I use the tutorial outlind here it works normally: http://gigawhitlocks.com/2014/08/18/network-namespaces.html So it must be something special that's happening to this port created by Openstack inside the namespace. The port that's not working is a port serving as gateway for a virtual router inside openstack.



      Edit2: Some more info about the interface which doesn't work with tc:
      ip netns exec qrouter-6a080f37.. ethtool -S qr-a9b3962f-d4
      no stats available



      Edit: Seems somebody else is encountering the same problem with ports created by openvswitch in a namespace http://openvswitch.org/pipermail/discuss/2014-May/013925.html



      The following command just fails with RTNETLINK answers: Invalid argument:



      # ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be tc qdisc add dev qr-a9b3962f-d4 root netem loss 30%
      RTNETLINK answers: Invalid argument
      [root@node-1 ~]# ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be ip a
      43: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
      inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
      44: qg-4bda7108-d2: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
      link/ether fa:16:3e:95:cc:7b brd ff:ff:ff:ff:ff:ff
      inet 119.81.159.206/27 brd 119.81.159.223 scope global qg-4bda7108-d2
      inet 119.81.159.207/32 brd 119.81.159.207 scope global qg-4bda7108-d2
      inet 119.81.159.209/32 brd 119.81.159.209 scope global qg-4bda7108-d2
      inet6 fe80::f816:3eff:fe95:cc7b/64 scope link
      valid_lft forever preferred_lft forever
      47: qr-a9b3962f-d4: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
      link/ether fa:16:3e:c2:64:dd brd ff:ff:ff:ff:ff:ff
      inet 192.168.99.1/24 brd 192.168.99.255 scope global qr-a9b3962f-d4
      inet6 fe80::f816:3eff:fec2:64dd/64 scope link
      valid_lft forever preferred_lft forever
      # ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be tc qdisc add dev qr-a9b3962f-d4 root tbf rate 1mbit burst 10kb limit 100kb
      RTNETLINK answers: Invalid argument









      share|improve this question
















      I am trying to limit the bandwidth of an interface inside a namespace using tc without much success. Seems it's not supported according to https://lists.linux-foundation.org/pipermail/containers/2009-September/020473.html



      This is on CentOS 6.5. What's weird is when I use the tutorial outlind here it works normally: http://gigawhitlocks.com/2014/08/18/network-namespaces.html So it must be something special that's happening to this port created by Openstack inside the namespace. The port that's not working is a port serving as gateway for a virtual router inside openstack.



      Edit2: Some more info about the interface which doesn't work with tc:
      ip netns exec qrouter-6a080f37.. ethtool -S qr-a9b3962f-d4
      no stats available



      Edit: Seems somebody else is encountering the same problem with ports created by openvswitch in a namespace http://openvswitch.org/pipermail/discuss/2014-May/013925.html



      The following command just fails with RTNETLINK answers: Invalid argument:



      # ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be tc qdisc add dev qr-a9b3962f-d4 root netem loss 30%
      RTNETLINK answers: Invalid argument
      [root@node-1 ~]# ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be ip a
      43: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      inet 127.0.0.1/8 scope host lo
      inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
      44: qg-4bda7108-d2: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
      link/ether fa:16:3e:95:cc:7b brd ff:ff:ff:ff:ff:ff
      inet 119.81.159.206/27 brd 119.81.159.223 scope global qg-4bda7108-d2
      inet 119.81.159.207/32 brd 119.81.159.207 scope global qg-4bda7108-d2
      inet 119.81.159.209/32 brd 119.81.159.209 scope global qg-4bda7108-d2
      inet6 fe80::f816:3eff:fe95:cc7b/64 scope link
      valid_lft forever preferred_lft forever
      47: qr-a9b3962f-d4: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
      link/ether fa:16:3e:c2:64:dd brd ff:ff:ff:ff:ff:ff
      inet 192.168.99.1/24 brd 192.168.99.255 scope global qr-a9b3962f-d4
      inet6 fe80::f816:3eff:fec2:64dd/64 scope link
      valid_lft forever preferred_lft forever
      # ip netns exec qrouter-6a080f37-4da0-4646-ad36-062b748d15be tc qdisc add dev qr-a9b3962f-d4 root tbf rate 1mbit burst 10kb limit 100kb
      RTNETLINK answers: Invalid argument






      linux networking ip tc namespace






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 7 '15 at 2:53







      Sam Stoelinga

















      asked Jan 6 '15 at 5:06









      Sam StoelingaSam Stoelinga

      1562 gold badges2 silver badges8 bronze badges




      1562 gold badges2 silver badges8 bronze badges






      bumped to the homepage by Community 54 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.









      bumped to the homepage by Community 54 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 54 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I met the similar problem. It does not report error as your qdisc command did when I add qdisc to the internal qr- port, however the traffic just wouldn't be throttled and went at line rate all the time. Googled a while and can not find solution. An ugly way to throttle traffic is to use iptable's limit module, which is impossible to get stable rate on tcp flow, and hard to translate the limit argument to actual bandwidth.






          share|improve this answer




























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f177680%2fis-traffic-control-inside-namespace-on-ports-created-by-openvswitch-supported%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I met the similar problem. It does not report error as your qdisc command did when I add qdisc to the internal qr- port, however the traffic just wouldn't be throttled and went at line rate all the time. Googled a while and can not find solution. An ugly way to throttle traffic is to use iptable's limit module, which is impossible to get stable rate on tcp flow, and hard to translate the limit argument to actual bandwidth.






            share|improve this answer






























              0














              I met the similar problem. It does not report error as your qdisc command did when I add qdisc to the internal qr- port, however the traffic just wouldn't be throttled and went at line rate all the time. Googled a while and can not find solution. An ugly way to throttle traffic is to use iptable's limit module, which is impossible to get stable rate on tcp flow, and hard to translate the limit argument to actual bandwidth.






              share|improve this answer




























                0












                0








                0







                I met the similar problem. It does not report error as your qdisc command did when I add qdisc to the internal qr- port, however the traffic just wouldn't be throttled and went at line rate all the time. Googled a while and can not find solution. An ugly way to throttle traffic is to use iptable's limit module, which is impossible to get stable rate on tcp flow, and hard to translate the limit argument to actual bandwidth.






                share|improve this answer













                I met the similar problem. It does not report error as your qdisc command did when I add qdisc to the internal qr- port, however the traffic just wouldn't be throttled and went at line rate all the time. Googled a while and can not find solution. An ugly way to throttle traffic is to use iptable's limit module, which is impossible to get stable rate on tcp flow, and hard to translate the limit argument to actual bandwidth.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 12 '15 at 9:27









                yanyan

                1




                1

































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f177680%2fis-traffic-control-inside-namespace-on-ports-created-by-openvswitch-supported%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                    Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                    Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m