Home > Networking Tips > Network Management > Minimizing Layer 2 problems
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

NETWORK MANAGEMENT

Minimizing Layer 2 problems


Doug Downer
01.04.2005
Rating: -4.04- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


For a lot of network folks Layer 2 protocols such as Spanning Tree Protocol (STP) can be the source of confusion and large scale problems. All too often I see fundamental Layer 2 design flaws which lead to an engineer scratching their head while troubleshooting an issue. While not a complex protocol, STP – if combined with another technology such as Asynchronous Transfer Mode (ATM), Transparent LAN Services (TLS) or inadvertent "back doors" – can cause severe issues over the network's lifetime. This week's tip will focus on the level of understanding needed to prevent these issues and what steps you can take to troubleshoot a potential STP problem.

It starts with the fundamentals

There have been many improvements to the Spanning Tree Protocol (STP) since it was first developed to support bridging throughout various Local Area Networks (LANs). The Spanning Tree Algorithm (STA), which is the underlying mechanism, actually receives of all the modifications and newer standards. The STA is responsible for the prevention of Layer 2 loops within a network topology. Without going into the specifics of ethernet operation keep in mind that it's a bad thing when LAN devices receive the same information twice, which is what most certainly happens in a loop. I am going to take you through some factors which contribute to data flow issues and STP operation.

The Election

The first step in the process of learning the LAN's topology to determine where best to block traffic that might cause a loop is the election of the root bridge. The key elements I want to focus on are the factors affecting an election. Bridge priority is the determining factor when electing a root bridge, and the lowest priority wins. This is important because each vendor sends out their LAN switches with a default priority – for example Cisco sets its default STP priority to 32768. If all priorities are equal, the lowest bridge MAC addre


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Network Hardware
Q&A: Nortel's data networking chief discusses the future
Nortel routers and switches may go to buyer of telephony business
3Com hopes to win enterprise networking customers with global H3C push
Extreme's port extender can replace consumer devices at network edge
Cisco unveils Unified Computing, merging servers, storage and networks
Network change and configuration management vendors see big changes
Scalable network lifecycle management processes can reduce costs
Physical network security key to fighting low-tech threats
Cisco expands Nexus data center switch line with eye on virtualization
HP ProCurve unveils data center network strategy
Network Hardware Research

Routing and Switching
Secure Cisco routers against IOS flaw attack
How routers work
Network summarization -- Supernetting and wildcard masks
Routing: Five common, easily avoided errors
Router Expert: Building a WLAN proxy server, implementing ASR
Router Expert: Building a WLAN proxy server, implementing WPAD
Cisco IOS IP routing -- dynamic routing
Cisco IOS IP routing: Static routes
Router Expert: Building a WLAN proxy server, DHCP services: Part 2
Router Expert: Building a WLAN proxy server, DHCP services: Part 1

Network Management
Virtualization: The next generation of application delivery challenges
Improving the performance of Web traffic and application delivery
The link between network management and application delivery
How to align network usage information to business processes
How network management can use ITIL best practices to battle recession
How to monitor and manage your data center network
Building the network infrastructure in your data center
Power and cooling considerations for data center network design
Network performance and throughput in server virtualization environments
Return-all-values script: Managing Windows networks using scripts, Part 13

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
core router  (SearchNetworking.com)
fiber jumper  (SearchNetworking.com)
flow routing  (SearchNetworking.com)
foreign agent  (SearchNetworking.com)
foreign network  (SearchNetworking.com)
hardware load-balancing device  (SearchNetworking.com)
logical router  (SearchNetworking.com)
mrouter  (SearchNetworking.com)
patch cord  (SearchNetworking.com)
port interface card (PIC)  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


ss wins. Don't let it get that far – determine your LAN's root bridge and L2 traffic flow for yourself.

Root Port Cost

Once an election has taken place each bridge on a LAN (or VLAN) will calculate the path of least resistance to reach the root bridge. The bandwidth of the link (or type of interface) determines its STP cost – for example a Gigabit Ethernet link will have a cost of say 4 where a 100Mb link will have a cost of 10. These costs are standardized but can be modified to affect traffic flow.

Place your Demarcation points wisely

The day of large L2 domains is coming to an end. High speed ASIC based routers make the case for combining your L2 and L3 devices and limiting the span and size of your broadcast domains. There are of course factors and requirements within a changing network which might lead you to extend a LAN to multiple points around your network. Be aware that STP knows no real bounds (with the exception of spanning through 7 consecutive bridges) and VLAN-IDs can be carried across multiple vendors. An inadvertent loop can lead to disaster. You can use your L3 demarcation points to minimize risk during the addition of a L2 extension. Keep in mind there are also technologies out there which can be implemented to scale these types of solutions such as Q-in-Q and VPLS.

A word about "load balancing" and cost manipulation

I will mention one thing about the recent "fad" of using STP to load balance L2 traffic. This is accomplished by alternating root bridges on multiple VLANs and creating data flow that for odd numbered VLANs travels left and even numbered VLANs travels right. In theory this makes sense and could potentially reduce the saturation on heavily traveled links. The reality, however is that this adds a level of complexity not needed in most operational networks. During an outage, the last thing the engineer is thinking about is whether or not the VLAN is odd or even. Pick your root and choose a side – this will reduce the time it takes to troubleshoot an issue.

Manipulating port cost is another way to affect data flow and is used often in "triangle" configurations (a configuration where an L2 access switch uplinks into redundant distribution switches that have a link in between them). During your design, determine the exact sequence of events that will occur during a failure before doing this. It's essential that you know how a configuration such as this will affect all VLANs during a failure. The recommendation here is to make that redundant link (between the distribution devices) L3.


Doug Downer (CCIE #9848) is a Sr. Consultant with Callisma, INC, a wholly owned subsidiary of SBC Communications. Doug has over 7 years in the industry and currently provides high level business and technology consulting for various federal clients in the Washington D.C. area. He can be reached at ddowner@callisma.com.


Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts