Thursday, July 12, 2018

Collision Domain and Broadcast Domain

           The most common network devices used are routers and switches. But we still hear people talking about hubs, repeaters and bridges. Do your ever wonder why these former devices are preferred over the latter ones? One reason could be: ‘because they are more efficient and powerful’. But what actually is the reason behind their efficiency? This is when terms like “Collision Domains”and “Broadcast Domains” come into picture.

            Before going further, let us recall that a hub is a multiple-port repeater. Similarly, a switch is a multiple-port bridge so that you can understand why repeaters and bridges are not typically used in production networks(because of less number of ports).

             Now, narrowing down to Hubs, Switches and Routers, let us discuss about them in reference with the blow domains.

1: Collision Domain –

A Collision Domain is a scenario in which when a device sends out a message to the network, all other devices which are included in its collision domain have to pay attention to it, no matter if it was destined for them or not. This causes a problem because in a situation where two devices send out their messages simultaneously, a collision will occur leading them to wait and re-transmit their respective messages, one at at time. Remember, it happens only in case of a half-duplex mode.

2: Broadcast Domain –

A Broadcast Domain is a scenario in which when a device sends out a broadcast message, all the devices present in its broadcast domain have to pay attention to it. This creates a lot of congestion in the network, commonly called as LAN congestion, which affects the bandwidth of the users present in that network.

So, which of our network devices break collision domains and which of them break broadcast domains?

HUB

We start with a hub because we should get rid of it as soon as possible. The reason being, it neither breaks a collision domain nor a broadcast domain. All the devices connected to a hub is in single collision and single broadcast domain. Remember, hubs do not segment a network, they just connect network segments.

SWITCH

Coming to switches, we have an advantage over the hub. Every port on a switch is in a different collision domain. So messages that comes from devices connected to different ports never experience collision. This helps us during designing networks but there is still a problem with switches. They never break broadcast domains. All the ports on the switch are in still in a single broadcast domain. If a device sends a broadcast message, it will still cause congestion.

ROUTER

Last, but not the least, we have our savior. A router not only breaks collision domains but also break broadcast domains. A router creates a connection between two networks. A broadcast message from one network will never reach the other one as the router will never let it pass.


No comments:

Post a Comment

TCP Connection Termination

             In  TCP 3-way Handshake Process  we studied that how connection establish between client and server in Transmission Control P...