LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-12-2009, 09:44 PM   #1
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Rep: Reputation: 16
overhead caused by brctl?


Hi all,

I want to use brctl to setup a software bridge in my computer. I want to know the overhead caused by distributing layer 2 frames.

Does any one have that experience, e.g., cpu cycles to packets ratio??

Thanks in advance.

Shawn
 
Old 11-13-2009, 10:18 AM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Quote:
Originally Posted by duyuyang View Post
Hi all,

I want to know the overhead caused by distributing layer 2 frames.

Does any one have that experience, e.g., cpu cycles to packets ratio??

Thanks in advance.

Shawn
You mean "Physical Layer"?

If yes, depends what you are going to use.
 
Old 11-13-2009, 07:20 PM   #3
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
I think bridge is located at the osi-2 layer, not physical layer.
I mean the overhead caused by software bridge, say, forwarding one frame costs how many cpu cycles?

Thanks,
Shawn
 
Old 11-13-2009, 08:43 PM   #4
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
According to this, software bridge should be in third or even may be in forth layer.

Transport
(Layer 4) This layer provides transparent transfer of data between end systems, or hosts, and is responsible for end-to-end error recovery and flow control. It ensures complete data transfer.

Network
(Layer 3) This layer provides switching and routing technologies, creating logical paths, known as virtual circuits, for transmitting data from node to node. Routing and forwarding are functions of this layer, as well as addressing, internetworking, error handling, congestion control and packet sequencing.

Data Link
(Layer 2) At this layer, data packets are encoded and decoded into bits. It furnishes transmission protocol knowledge and management and handles errors in the physical layer, flow control and frame synchronization. The data link layer is divided into two sub layers: The Media Access Control (MAC) layer and the Logical Link Control (LLC) layer. The MAC sub layer controls how a computer on the network gains access to the data and permission to transmit it. The LLC layer controls frame synchronization, flow control and error checking.

Physical
(Layer 1) This layer conveys the bit stream - electrical impulse, light or radio signal -- through the network at the electrical and mechanical level. It provides the hardware means of sending and receiving data on a carrier, including defining cables, cards and physical aspects. Fast Ethernet, RS232, and ATM are protocols with physical layer components.

May be that helps you: http://www.usenix.org/events/usenix0...tml/index.html
 
Old 11-13-2009, 09:59 PM   #5
duyuyang
Member
 
Registered: Mar 2008
Posts: 56

Original Poster
Rep: Reputation: 16
Thanks. But the xen paper only investigates the optimizations on the receive path. It primarily reduces copying overhead and scheduling overhead.
The virtual bridging overhead seems not a culprit of the virtual network inefficiency. Do you think so?

Am I getting it wrong on bridging???
Please reference:
http://en.wikipedia.org/wiki/Network_bridge
http://www.faqs.org/docs/Linux-HOWTO...STP-HOWTO.html

In fact, I have very much interest in virtualization (xen).

Shawn
 
Old 11-13-2009, 10:39 PM   #6
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
I thought that soft bridge should be at layer 3, but never mind.

You know, it is very easy to check, there is utility "powertop", it can show CPU interrupts. So if you make bridge, for example between 10BaseT and 100BaseT, you can check processor load. Or just look to /proc/interrupts
 
  


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
brctl command jayadhanesh Linux - Networking 1 05-26-2009 05:00 AM
brctl error??? jayadhanesh Linux - Networking 3 04-07-2009 10:47 PM
brctl:package not instlled kartheekpn Linux - Networking 7 03-13-2005 10:05 PM
what package provides brctl in Suse 9.2? moskito01 SUSE / openSUSE 1 01-02-2005 04:58 PM
Using ebtables and brctl kayser Linux - Networking 0 05-03-2004 08:33 AM

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

All times are GMT -5. The time now is 12:44 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