Article 6CR4X Traffic control for a bridge interface

Traffic control for a bridge interface

by
mateas
from LinuxQuestions.org on (#6CR4X)
Hi all,
I have a problem with setting traffic control (i.e. latency) for a bridge interface. My setup is as follows:
  • two physical network interfaces: eth0 and eth1
  • bridge interface br0 over those two physical interfaces (netplan yaml file) with dhcp service configured (dhcpd.conf file):
  • bridge interface has static ip address and dhcp is configured to listen on br0 (providing addresses in br0 network)
  • using netplan (with NetworkManager as renderer) and isc-dhcp-server
  • using tc to set latency
Results:
  • bridge setup seems to work - devices connected to the bridge br0 receive valid ip addresses from dhcp service and can communicate with each other
  • when pinging from any device connected to a bridge (that got ip address from my configured dhcp service on br0) bridge address itself everything seems to work fine (ping latency set by tc seems to be ok i.e.)
  • when pinging from one device connected to the first bridge interface (eth0) a second device that is connected to the second br0 interface (eth1) tc settings do not work (i.e. no latency at all [~ 1ms] despite setting one to 500ms for br0)
Conclusion:
seems like bridge interface operates on a different network layer than tc does.

Question:
How to achieve described setup with possibility to apply different tc settings successfully?

Further comments:
I have in total four such bridges on four different physical network interfaces pairs (two cards with four Ethernet ports each, every bridge should operate in a different network). I would like to do traffic shaping for all of them independently from each other to simulate different network scenarios for IoT solutions.

Any help would be appreciated :)
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments