LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-21-2013, 02:55 AM   #1
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Rep: Reputation: 5
How routers handle Broadcast Traffic


Hello all! D

I'm a bit crossed on how routers handle broadcast traffic. As I am aware, routers will pass broadcast messages within a LAN but not the WAN. Is this correct? Or do routers not pass broadcasts at all, not even on their own subnet? Thanks for taking the time to help!
 
Old 06-21-2013, 04:50 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by RootMason View Post
I'm a bit crossed on how routers handle broadcast traffic.
very simple: They don't. ;-)

Quote:
Originally Posted by RootMason View Post
As I am aware, routers will pass broadcast messages within a LAN but not the WAN. Is this correct? Or do routers not pass broadcasts at all, not even on their own subnet?
To understand this, you should be aware that the boxes sold as "routers" on the consumer market are actually compound devices - a combination of a router, a switch, and very often additional components (like a WLAN access point, a VoIP gateway). A switch links several networking devices in one network, a router links two distinct networks together.
Let's consider a unit with four LAN ports, one WAN, and a WLAN access point. A block diagram of it would look like this:

Code:
WAN port
   U
   |                 +----------------------------+                     Antenna
   |                 |           Switch           |
   |                 +----------------------------+                       \|/
   |   +--------+      |    |    |    |    |    |            +---------+   |
    ---| Router |------     |    |    |    |     ------------| WLAN AP |---
       +--------+           |    |    |    |                 +---------+
                           LAN1 LAN2 LAN3 LAN4
Broadcast messages are distributed normally within the LAN (which often includes the WLAN) by the Switch component, as every regular switch would do. Broadcast messages are also forwarded to the Router component. However, the router ignores them by design; it's not a router's job to route broadcasts.
Picking up the above remark in parantheses: There are so-called routers that set up a separate network for WLAN, which requires an extra Router block between the switch and the AP. The "Fritz" boxes used to do that with some older firmware releases; recently, however, that feature was dismissed. :-(

Does this clarify your confusion?

[X] Doc CPU

Last edited by Doc CPU; 06-21-2013 at 05:07 AM.
 
Old 06-21-2013, 04:34 PM   #3
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Original Poster
Rep: Reputation: 5
"Does this clarify your confusion?"

It sure does, and thanks for going all out on the explanation! Much appreciated, buddy! If I might expand the idea a bit more (yes, you are now a victim of your own awesomeness), if I were to turn off DHCP on my router (Linksys EA4500) I could serve DHCP from a CentOS6 server (HP ProLiant ml310) to other devices on my network through the router? How about if the server only has one NIC? Would that also cause a problem?

Thanks again for the response!
 
Old 06-21-2013, 06:51 PM   #4
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by RootMason View Post
If I might expand the idea a bit more (yes, you are now a victim of your own awesomeness), if I were to turn off DHCP on my router (Linksys EA4500) I could serve DHCP from a CentOS6 server (HP ProLiant ml310) to other devices on my network through the router?
that's exactly what I'm doing in my home office setup: The router/modem connecting me to the internet via DSL would also supply DHCP, but I chose to turn that function off and instead I'm running a small Linux-based server (currently Gentoo, but I'm on the verge of installing it anew using Debian as a basis). This little box has DHCP, a local DNS, a local mail server, Apache, Samba - the full story. The advantage is that using a Linux-based PC as a DHCP server (I'm running dnsmasq for that purpose), I have much more control of the DHCP process than using the router's built-in DHCP server.

Quote:
Originally Posted by RootMason View Post
How about if the server only has one NIC? Would that also cause a problem?
None that I can imagine at the moment. A router should have two NICs - one for each network it connects. However, from a theoretical point of view, a router (in the strict sense of the word) with only one NIC is possible as well. The practical fitness of such a router would be limited, of course, because it's the equivalent of a post office with only one counter where incoming and outgoing mail gets mixed.
But a server that only offers local services? What would be the point of having two NICs?

[X] Doc CPU
 
Old 06-24-2013, 07:43 PM   #5
RootMason
Member
 
Registered: Oct 2012
Location: Tucson, AZ
Distribution: Debian/CentOS
Posts: 124

Original Poster
Rep: Reputation: 5
Thanks again for your reply, much appreciated. The project I was working on went nice and smooth thanks to your help!
 
  


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
Broadcast Traffic on Linux(FC-11) using iperf ubuntuv Linux - Networking 4 03-09-2012 11:22 AM
Ignoring Broadcast traffic survient Linux - Networking 2 04-27-2011 08:23 AM
Interface alias does not receive broadcast traffic bratch Linux - Networking 1 09-27-2010 02:26 PM
Swamped with NetBios Broadcast Traffic molybtek Linux - Networking 2 05-28-2009 09:37 PM
NFS traffic over broadcast -- normal or not? kpj104 Linux - Networking 1 12-15-2008 03:44 PM

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

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