Jie Yu created MESOS-1989:
-----------------------------

             Summary: Container network stats reported by the port mapping 
isolator is the reverse of the actual network stats.
                 Key: MESOS-1989
                 URL: https://issues.apache.org/jira/browse/MESOS-1989
             Project: Mesos
          Issue Type: Bug
            Reporter: Jie Yu


Looks like the TX/RX network stats reported is the reverse of the actual 
network stats. The reason is because on simply get TX/RX data from veth on the 
host.

Since veth pair is a tunnel, the ingress of veth on host is the egress of eth0 
in container (and vice versa). Therefore, we need to flip the data we got from 
veth.

{noformat}
[jyu@... ~]$ sudo ip netns exec 24926 /sbin/ip -s link show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP 
mode DEFAULT qlen 1000
    link/ether f0:4d:a2:75:74:05 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    46030857691178 12561038581 0       0       0       0      
    TX: bytes  packets  errors  dropped carrier collsns 
    29792886058561 15036798198 0       0       0       0      
[jyu@... ~]$ ip -s link show dev mesos24926
7412: mesos24926: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP mode DEFAULT qlen 1000
    link/ether f0:4d:a2:75:74:05 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    29793066979551 15036894749 0       0       0       0      
    TX: bytes  packets  errors  dropped carrier collsns 
    46031126366116 12561113732 0       0       0       0
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to