Collision Domain

The collision domain is a term that is not so obvious for most people that are new to networking. It is something that we had to deal with a long time ago, a time where we used older Ethernet standards and hubs instead of switches.

To understand what a collision domain is, we’ll have to jump into the past…

10BASE-T

The 10BASE-T standard was a big change for Ethernet. Before 10BASE-T, we had older Ethernet standards like 10BASE2 and 10BASE5.

Below you can see a picture of the coax cable that was used for 10BASE2 networks:

Coax Cable

All computers were connected to one long coax cable.

10BASE-T introduced the UTP cables that we still use nowadays and it has a central device in the middle, creating a star topology. Back then, this central device was an Ethernet hub:

Netgear Hub

The hub is a simple device; it’s basically nothing more but a repeater. When it receives an electrical signal, it will repeat it on all interfaces except the one where it received the signal on. This logic works fine in the following situation:

 

Ethernet hub forwarding logic

Above we see that H3 sends an Ethernet frame. Let’s say that this frame is destined for H1. When the hub receives this frame, it will replicate it on the interfaces towards H1 and H2.

H1 wants to receive it, H2 doesn’t care about so it will discard the frame. No problem! Our goal to send a frame from H3 to H1 is accomplished.

We do have a problem when H1 and H2 both send a frame at the  same time, like the following situation:

 

hub three hosts collision

When H1 and H2 send a frame at the same time, our hub will replicate them on the interface that is connected to H3. In this case, a collision will occur and H3 will receive nothing.

To deal with these collisions, we use a collision detection protocol called CSMA/CD which I explained in my introduction to Ethernet.

CSMA/CD is a simple protocol. All computers to the network will listen to see if someone is transmitting. When we want to send something and nobody is transmitting, we can transmit a frame. This is half duplex; we can’t transmit and receive at the same time. When two computers decide they can transmit, we still get a collision. CSMA/CD also describes how we can re-transmit a frame.

CSMA/CD is done by our computers but not by the hub; it’s only a dumb physical repeater.

Since we can get collisions with a hub, we call this a collision domain:

hub collision domain

We can get collisions on every interface that is connected to the hub, this all belongs to the same collision domain.

Ethernet Bridges

10BASE-T with its UTP cabling and central hub were a big improvement compared to the old coax networks but there were still issues. The more network devices you had, the more collisions you had. The CSMA/CD logic where devices had to wait before they could (re)transmit impacts performance.

If network devices could somehow transmit and receive at the same time (full duplex) without causing collisions, we could get a nice performance improvement.

That’s when the Ethernet bridge was introduced. This predecessor of the switch was able to learn MAC addresses and only forward Ethernet frames when it was required. It was also able to store Ethernet frames in memory to prevent collisions from happening. These bridges were placed in between our hubs:

two hubs bridge in the middle

The bridge would break our collision domain in two. On each side of the bridge, collisions can still occur because of our hubs. Collisions can’t occur from one side of our bridge to the other side of our bridge.

Ethernet Switch

Our switch that we still use nowadays still has the same logic of the bridge. It learns MAC addresses, stores Ethernet frames and only forwards them when needed. The difference is that it is much faster, uses specialized hardware and has a lot of interfaces.

When we use a switch, we can transmit/receive at the same time (full duplex) so each interface on the switch is considered a separate collision domain:

switch each interface collision domain

When you use a switch, all interfaces can transmit/receive at the same time so we use full duplex. Since we can’t get collisions, CSMA/CD is disabled on these interfaces.

Since we use switches and collisions don’t occur anymore on modern networks, why do we still care about these collision domains?

One thing to consider is that if you connect a hub to your switch, you will still have collisions. Here’s an example:

switch each interface collision domain

Collisions could still occur in the segment where we have our hub. The switch interface that connects to the hub will have to use half duplex and CSMA/CD. Another reason why you might see collisions is when you have a defective network card or defective interface on your switch. When the interface sends trash, you could get collisions.

What about routers? Routers do not switch Ethernet frames from one interface to another. A router is another way to break a collision domain.

Conclusion

You have now learned what a collision domain is:

  • The hub is a simple repeater, we can get collisions when it attempts to send two frames to one interface.
  • Everything that is connected to a hub is a single collision domain.
  • Because of these collisions, we have to use half duplex. We can’t send and transmit at the same time. CSMA/CD is the protocol that is used to detect collisions and to re-transmit frames.
  • The bridge, a predecessor of our switch breaks up the collision domain since it has some intelligence. It learns MAC addresses and only forwards Ethernet frames to interfaces where we need them. It is also able to store Ethernet frames in memory so that it can queue them.
  • The switch is our bridge on steroids. It has more interfaces and is faster. Each interface on a switch is considered a collision domain.
  • Switch interfaces run in full duplex, we can transmit and receive at the same time. No collisions occur in a switched network unless you have defective interfaces or network cards.
  • Because we can’t get collisions in a switched network, CSMA/CD is disabled by default.

Forum Replies

  1. Hi Rene,

    A good understanding of ethernet for beginners like me, this helps me so much in my workplace. The explanations with real pictures of device make me clear understanding of concepts
    Thank you

  2. Hello Mohammad

    Yes, there are several types of Ethernet framing, two of which are the most common that you mention above.

    Ethernet II has a two byte EtherType field that identifies the upper layer protocol (e.g. IP) that encapsulates the frame. For example, a value of 0x0800 indicates an IPv4 packet while a value of 0x0806 indicates an ARP frame.

    The IEEE 802.3 standard changes the role of the EtherType field to a “Data Length Field”.

    Later on, because both types were in wide use, IEEE 802.3 incorporated Ethernet II and standardised both formats.

    Today, both o

    ... Continue reading in our forum

  3. Hello Aditya

    Traditionally, routers, switches, and computers require a different type of Ethernet cable to connect to each other. There are crossover cables and straight through cables, as described in the lesson.

    What auto MDIX does is it automatically detects the kind of cable required for a particular connection, and if the cable used is the wrong type, then it automatically switches the appropriate pins internally on the switch or router, such that the correct connectivity is achieved. So for example, if you use a crossover cable to connect a PC to a swit

    ... Continue reading in our forum

  4. Hello Adrian, good to have you with us! Glad to hear that you’re enjoying the lessons!

    In order to understand what is going on, let’s take it step by step. The packet has arrived from the Internet at the SOHO router. Now we don’t know what kind of header we’ll find at layer 2, as this depends on the technology being used. If it’s ADSL, serial link, or cable modem, each of these have a different L2 technology, and therefore a different L2 header. Whatever it is, the L2 header is stripped off, and we are at Layer 3 of the OSI model. So we take a look at the

    ... Continue reading in our forum

  5. Hi

    Thank you very much for thorough explanation. I benefited a lot from this lesson

13 more replies! Ask a question or join the discussion by visiting our Community Forum