VTP PRUNING

VTP pruning is key element of VTPVTP pruning helps improves network performance and network bandwidth by decreasing unnecessary flooded traffic i.e. broadcast, multicast, unknown, and flooded unicast packets.In normal operation a switch needs to flood broadcast frames, multicast frames, or unicast frames where the destination MAC address is unknown to all its ports. If the neighboring switch doesn’t have any active ports in the source VLAN, this broadcast is needless and excessive undesirable traffic may create problems on the network.

VTP pruning is disabled by default in Cisco switches. VTP pruning helps to send broadcasts only to those trunk links that actually needs the information i.e. with VTP pruning enabled , when the destination MAC address is unknown, frames are forwarded over a trunk link only if the switch on the receiving end of the trunk link has ports in the source VLAN. VTP pruning should only be enabled on VTP servers, all the clients in the VTP domain will automatically enable VTP pruning. VLAN 1 can’t be pruned because it’s an administrative VLAN. All the version of VTP i.e. VTP version 1,VTP version  2 and VTP version 3 support VTP pruning.To enable VTP pruning on a Cisco IOS switch, use the VTP pruning VLAN configuration command. Once VTP pruning is enabled, you can optionally configure a prune eligible list if you want to limit the VLANs that can be pruned.

A scenario will help understand the concept of VTP pruning in a more detailed way. Below is a setup of 4 Switches (SW1, Sw2, Sw3 and Sw4) with SW1 being the VTP Server and connecting to each Switch in a STAR topology over trunk links.Sw1 has configured 5 Vlans (Vlan 1,10,20,30 and 40) and the Vlans have been automatically configured via VTP on rest of Switches.vtp-pruning

Each switch has access ports assigned as below –

  • SW2 has 2 access ports both in Vlan 10
  • SW3 has 2 access ports ,1st in Vlan 10 and 2nd in Vlan 20
  • SW3 has 2 access ports ,1st in Vlan 30 and 2nd in Vlan 40

All the Switch to Switch connectivity is on trunk links with all Vlans allowed on trunk ports.

Below Diagram shows no VTP pruning is enabled on all the 4 Switches though all being members of same VTP domain.tp-pruning

Now let’s say device connected of one of access port of Switch 2 (SW2) sends broadcast. This broadcast will be received on following –

  • All the Access ports and trunk ports of SW2 except the source port.
  • SW1 receives the Vlan 10 broadcasts on trunk port connected to SW2 and forwards the same on trunk ports connected to Sw3 and Sw4.
  • SW3 received the broadcast and forwards to connected Access port on Vlan 10.
  • SW4 received the broadcast on trunk port but does not forward to access port since no access port with Vlan 10 membership.

 

Now, after enabling VTP pruning on all the switches, let’s see what change happens from the previous scenario.tp-pruning

Once VTP pruning is enabled, the broadcast on Vlan 10 from SW2 is forwarded to SW1 however, it is not relayed to all trunk ports . Seeing that no Access port membership is there on SW4, the Broadcast of Vlan 10 is only relayed to trunk port of SW3 and not towards SW4.

In the Nutshell VTP pruning saves the bandwidth and unnecessary flooding of links by not sending broadcast / unknown unicast traffic out of interfaces not required.

 

Please follow and like us:

Related Post

Tags:

Add Comment

Social Media Auto Publish Powered By : XYZScripts.com
Select your currency