# Unicast Flooding due to Asymmetric Routing

**URL:** https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272
**Category:** Lessons Discussion
**Created:** [December 29, 2016, 7:56pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272 "2016-12-29T19:56:05Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 29, 2016, 7:56pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/1 "2016-12-29T19:56:05Z")

</div>

This topic is to discuss the following lesson:

> **[Unicast Flooding due to Asymmetric Routing](https://networklessons.com/switching/unicast-flooding-due-to-asymmetric-routing)**
>
> Asymmetric routing can cause flooding of unknown unicast traffic. This lesson explains why this happens and how to deal with it.

---

<div class="post-metadata">

### Author: ![hamoodrehman87](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@hamoodrehman87](https://forum.networklessons.com/u/hamoodrehman87)
#### Post date: [July 23, 2015, 11:32pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/2 "2015-07-23T23:32:44Z")

</div>

Rene,  
Great lesson, however I have a questions if you please clarify.

How do I change the ARP table timeout so it matches the aging time of the MAC address table.?  
How can we make one vlan as gateway if we have multiple vlans on the distribution switch connects to different closets on the floors? For example we have  
vlan 2 - serves second floor and it is on our distribution  
inter vlan2  
ip address 192.168.2.1/24

vlan3- serves 3rd floor  
inter vlan 3  
ip address 192.168.3.1/24

In the closet 2 floor access layer switch has an ip address of 192.168.2.5 with default gateway of 192.168.2.1.  
Same topology is applied for other floors.

Thanks  
Hamood

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [July 26, 2015, 7:42pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/3 "2015-07-26T19:42:14Z")

</div>

Hi Hamood,

You can use the “ip arp timeout” command on the switch to change it.

For each VLAN you will need a gateway but you will have to consider which device(s) you use as the gateway. Like in my example, by using two different switches like this we got this issue. If I would use one switch as the gateway for both VLANs then I wouldn’t have this problem.

Rene

---

<div class="post-metadata">

### Author: ![johnfrades](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@johnfrades](https://forum.networklessons.com/u/johnfrades)
#### Post date: [August 28, 2015, 5:38pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/4 "2015-08-28T17:38:36Z")

</div>

Great lesson rene, is it really advisable to have the ARP Timeout = Aging time of Mac address?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [August 28, 2015, 5:39pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/5 "2015-08-28T17:39:55Z")

</div>

Hi John,

Thanks. It depends on your design, if it is similar to my example then yes that would be a good idea.

Rene

---

<div class="post-metadata">

### Author: ![johnfrades](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@johnfrades](https://forum.networklessons.com/u/johnfrades)
#### Post date: [August 28, 2015, 5:43pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/6 "2015-08-28T17:43:49Z")

</div>

thanks. what if i only have 1 multilayer switch? then it is not needed to have the ARP timeout equals to the aging of mac? if its true then, is there a disadvantage if i make the ARP timeout = to aging of mac with a 1 multilayer switch only?

thank you!

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [August 28, 2015, 5:45pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/7 "2015-08-28T17:45:39Z")

</div>

Hi John,

With only switch then this will not occur. There’s no (dis)advantage of changing the ARP timeout.

Rene

---

<div class="post-metadata">

### Author: ![Deep](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/d/ce7236/32.png) [@Deep](https://forum.networklessons.com/u/Deep)
#### Post date: [January 17, 2016, 10:20pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/8 "2016-01-17T22:20:11Z")

</div>

I wonder why default ARP timer is CISCO is 240 minutes, when it is 1 minute in Linux!!! In the mixed environment, this is a huge discrepancy for the devices. What exactly are prons/cons of 1 min (windows store max for 10 minutes) vs 240 minutes except what already been recommended earlier for MAC aging = ARP aging.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [January 19, 2016, 12:21pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/9 "2016-01-19T12:21:53Z")

</div>

I agree 240 minutes is a long time, especially compared to the Linux/Windows defaults. The only downside of short ARP aging would be that you get more ARP requests which is broadcasted. If you have large broadcast domains and many devices, that could be something to think about. Otherwise it shouldn’t hurt…

---

<div class="post-metadata">

### Author: ![mobile.ccloo](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@mobile.ccloo](https://forum.networklessons.com/u/mobile.ccloo)
#### Post date: [May 10, 2016, 3:44pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/10 "2016-05-10T15:44:59Z")

</div>

Hi, i lost you at this part

> SW2 will put the IP packet from host 2 in an Ethernet frame that has its own MAC address as the source. It will then be forwarded to SW1. The problem here is that SW1 will never learn the MAC address of host 2.

When H1 actually replies with icmp reply packets, wouldn’t the switches learn of H1’s mac address in their vlan/trunk ?  
I can understand the initial broadcast to get H1 to reply, but what i dont understand is why this problem persists for the entire 1000 frames.

Do the switches (mac-address-table) only get updated with ARP packets or do they do so for all sort of frames ?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [May 16, 2016, 9:40pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/11 "2016-05-16T21:40:34Z")

</div>

Hi Chia,

Switches will learn source MAC addresses from any Ethernet frame. The problem here, is that SW2 is unable to learn H1’s MAC address and SW1 is unable to learn H2’s MAC address.

When H1 replies with an ICMP reply, it will send it to SW1 (its default gateway) in VLAN 10.

SW1 receives it in VLAN 10, routes it and decides to forward it to VLAN 20. It builds a new Ethernet frame with its **own MAC address** as the source.

That’s the key to this problem…SW2 will never learn the source MAC address of H1 since SW1 inserts its own MAC address as the source. It never sees the MAC address of H1. The only time it was able to learn it was the first ARP, since that is a broadcast frame…

Does that make sense?

Rene

---

<div class="post-metadata">

### Author: ![mobile.ccloo](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@mobile.ccloo](https://forum.networklessons.com/u/mobile.ccloo)
#### Post date: [May 17, 2016, 6:27pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/12 "2016-05-17T18:27:49Z")

</div>

hi rene,

thanks i understand now.

Because of the ARP’s entry in each switch, ARP request/broadcast is not used.  
During the routing part, the source mac address will be replaced with the vlan’s l3 interface, while the dest mac will be followed with ARP request.  
However, since the mac in ARP request is not in the mac-address table is not found, it is replaced with broadcast instead.

is this understanding correct ?

---

<div class="post-metadata">

### Author: ![stuart.w.gall](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@stuart.w.gall](https://forum.networklessons.com/u/stuart.w.gall)
#### Post date: [June 29, 2016, 12:06am UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/13 "2016-06-29T00:06:44Z")

</div>

Hi Rene,  
Two questions:  
Can the same situation occur with HSRP if one switch is designated for vlan 20 and the other for vlan 10 ?

You suggest “Change your network design. Use a single router or multilayer switch as the default gateway for all VLANs.”  
I think the problem is that you have 2 SVIs for each VLAN not that they are on a different switch.  
If the SVI for VLAN 10 was on one switch and VLAN 20 on the other but only one SVI per vlan I think we do not get this problem. Right ?

Thanks  
Stuart

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [June 29, 2016, 10:49am UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/14 "2016-06-29T10:49:49Z")

</div>

Hi Stuart,

This situation could also occur with HSRP yes. Cisco has a good example for this:

[HSRP Assymetric Routing](http://www.cisco.com/c/en/us/support/docs/ip/hot-standby-router-protocol-hsrp/10583-62.html#t8)

Having only one SVI per switch would solve the problem but it’s not the underlying problem here 🙂 It’s fine to have multiple SVI interfaces on your switches, if you use one switch as the default gateway for both VLANs then you wouldn’t have this problem.

Rene

---

<div class="post-metadata">

### Author: ![champ.lsp](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/ac8455/32.png) [@champ.lsp](https://forum.networklessons.com/u/champ.lsp)
#### Post date: [July 3, 2016, 8:06pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/15 "2016-07-03T20:06:52Z")

</div>

Hi Rene,  
I have some question. What if H1 ping to H4 vlan 10(same subnet?) ,will SW2 learn MAC from H1?

Thank in advance

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [July 15, 2016, 7:27am UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/16 "2016-07-15T07:27:32Z")

</div>

Hello Ler-sak!

If H1 and H4 are on the same subnet, then no routing will take place. That means that the frame that goes through SW1 and SW2 will have the same source MAC (H1’s MAC) and destination MAC (H4’s MAC) in the frame throughout the whole transmission. So, yes SW2 will learn the MAC address from H1. Actually, both switches will learn both MAC addresses.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![champ.lsp](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/ac8455/32.png) [@champ.lsp](https://forum.networklessons.com/u/champ.lsp)
#### Post date: [July 15, 2016, 2:50pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/17 "2016-07-15T14:50:00Z")

</div>

Thank you for your support, Lazaros Agapides

---

<div class="post-metadata">

### Author: ![houari.prog2](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/h/f17d59/32.png) [@houari.prog2](https://forum.networklessons.com/u/houari.prog2)
#### Post date: [August 3, 2016, 5:21pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/18 "2016-08-03T17:21:44Z")

</div>

Hi,

I think there is a mistake here  
`When SW1 routes traffic from VLAN 10 to <strong>VLAN 10</strong>, it will use an Ethernet frame that has its own MAC address as the source. As a result, SW2 will never learn the MAC address of host1. When SW2 wants to send something to host 1, it will flood the packets on all interfaces in VLAN 10:`

You mean Vlan 20 ?

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [August 29, 2016, 5:02pm UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/19 "2016-08-29T17:02:41Z")

</div>

Hi Houari,

That is a typo yes, just fixed it. Thanks!

Rene

---

<div class="post-metadata">

### Author: ![adamleff](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/8dc957/32.png) [@adamleff](https://forum.networklessons.com/u/adamleff)
#### Post date: [October 21, 2016, 5:58am UTC](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272/20 "2016-10-21T05:58:06Z")

</div>

This is very informative. I had heard that it’s best to match your ARP cache timeout to your aging timers but never knew why until now.

[Next page](https://forum.networklessons.com/t/unicast-flooding-due-to-asymmetric-routing/1272.md?page=2)
