Answer the question
In order to leave comments, you need to log in
Packet loss on bridge?
There is a certain server on ubunt, on which several virtual machines are cut using lxc.
The network setup in containers is done like this:
# Network configuration
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.hwaddr = xx:xx:xx:xx:xx:xx
lxc.network.ipv4.gateway = 1.1.1.1
lxc.network.ipv4 = 7.7.7.7/28
brctl show
bridge name bridge id STP enabled interfaces
br0 8000.001e67995d81 no eth0
veth4XIW94
veth6Q9BSJ
# device: eth0
auto eth0
# device: br0
auto br0
iface br0 inet static
address 1.1.1.1
broadcast 1.1.1.255
netmask 255.255.255.0
gateway 1.2.1.1
# default route to access subnet
up ip route add 7.7.7.7/28 dev br0;
bridge_ports eth0
bridge_fd 0
bridge_maxwait 0
Answer the question
In order to leave comments, you need to log in
However, if you do a trace (mtr command), you can see losses on the first hop of about 80%.If at the same time there are no “losses” on the last hop, if the working traffic is processed normally (without packet loss), then I don’t think this is a problem at all, rather a cosmetic nuance.
Where to start digging?I am not an expert on the Linux networking subsystem, but I will assume that there is a restriction of ICMP traffic generated by the host. Check kernel options:
/proc/sys/net/ipv4/icmp_ratelimit
/proc/sys/net/ipv4/icmp_ratemask
/proc/sys/net/ipv4/icmp_msgs_per_sec
/proc/sys/net/ipv4/icmp_msgs_burst
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question