LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-28-2014, 08:47 PM   #1
gauthig
LQ Newbie
 
Registered: Jun 2014
Posts: 11

Rep: Reputation: Disabled
ETH0 vs BR0 traffic counters


I am trying to determine my in/out traffic and not able to fully understand the netstat counters while using bridging.

Setup is a normal 1 Bridge created (BR0) using port ETH0. Also I have an LXC container with a port of BR0-MINE1.

As ETH0, when using a bridge, has no IP address, I assumed that ETH0 would have no activity and only activity on the two interfaces with IP addresses (BR0 and BR0-MINE1). Or if it did, it would be the sum of all bridged interfaces, but it is not. So I am confused as to what traffic is on BR0 vs ETH0. BR0-MINE is fine as it matches the traffic within the LXC container using lxc-info.

netstat - I (after 4 hours)
Iface RX-OK TX-OK
br0 2662201 1445566
eth0 27252094 54437414
br0-mine1 47359837 23705765

brctl show
bridge name bridge id STP enabled interfaces
br0 8000.003048db12f2 no eth0

br0-mine1
Thank you in advance for any replies.
---Garrett
 
Old 08-29-2014, 06:22 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Easiest way to see what's there is to run tcpdump. You'll see lots of non IP traffic.
 
Old 08-30-2014, 10:31 AM   #3
gauthig
LQ Newbie
 
Registered: Jun 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks I spent a few hours analyzing tcpdump results and doing some tests like sending streams to each IP. The strange thing is, all traffic that goes to the LXC container is present on all interfaces for example:

BR0 IP = x.x.x.110
BR0-MINE1 IP = x.x.x.115
ETH0 - NO IP assigned (as it is the port for BR0)

HTTP to port 91 (port 91 was setup in apache just so I could test with no other noise)
tcpdump -i BR0 port 91
tcpdump -i BR0-mine1 port 91
tcpdump -i eth0 port 91

all three returned the same results and captured my http get requests on ip x.x.x.115. No traffic was shown for x.x.x.110 as port 91 is not open nor any requests to the IP/PORT pair.

With this behavior I would assume all traffic to the container would be captured on both eth0 and BR0, but looking at my first post that is not true.

What I am trying to capture is total network traffic per interface to see my bandwidth in each container total usage of all virtual/real interfaces. I just do not understand the values shown.
 
Old 09-04-2014, 02:29 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You should capture all traffic on three interfaces, br0, br0-mine1 and eth0 instead of on port91. You should see different. Another one, br0-mine1 is LXC container, you do tcpdump on host or guest machine?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bridge : relationship between br0 and eth0 just.srad Linux - Networking 11 01-03-2014 02:20 AM
Bridging interfaces (eth0 + eth1 = br0) Mithrilhall Linux - Networking 1 10-27-2007 05:35 AM
traffic counters blazkovskib Linux - Networking 1 11-03-2006 09:21 AM
br0 with ath0 and eth0 not working on ixp vinodl Debian 0 09-16-2006 06:37 AM
Resetting eth0 RX and TX counters? rylan76 Linux - Networking 1 10-03-2005 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration