EtherChannel inconsistency detection

Source: Internet
Author: User

This article describes how EtherChannel inconsistency is intended to provide information and how it is discovered on a Catalyst Switch.

This article does not cover how Ethernet channels work or how detailed information can be configured. For more information about how to understand and configure Ethernet channels and how to differentiate between Catalyst switches, see the following:
LAN technical tips: Ethernet Channels
Background
An Ethernet channel is a set of physical ports that are encapsulated and submitted as a single logical port. The goal of the Ethernet channel is to provide larger bandwidth and availability compared with that single port.

From the Spanning-Tree Protocol (STP) point of view, the Ethernet channel is regarded as a single port. If the Channel ports are not the same on both sides of the channel, the risk of creating cyclic Forwarding is submitted.

For example:

 

If vswitch A has two independent links and vswitch B considers those links to be part of the same channel, vswitch B will send broadcast or unknown unicast information packets. This information package will be forwarded back to switch B in the chart, as shown in. This causes the information packet to be copied in the wrong direction of Switch B and changes the forwarding table to the point.

Special protocols such as the Cisco port aggregation protocol (PAgP) or the ieee lacp are designed to ensure consistency in the guidance of neighbor switches. However, in some cases, either the system did not support these protocols at the time, or the reason for Disabling these protocols was due to other considerations. Cisco has established a special mechanism to detect and disable inconsistent channels to prevent packet replication, loop and other associated with an inconsistent Ethernet channel. The Catalyst 4000, 5000, and 6000 vswitches support this feature by default, and are enabled regardless of channel mode configuration ideal, active, automatic, passive, or.

How does inconsistency detection work?
As mentioned above, the Ethernet channel is viewed as a single port from STP. All ports share the same STP status over the channel, and only one STP Bridge Protocol Data Unit (BPDU) should be sent/wired. Each VLAN has a Hello interval.

This will not be the actual situation if a switch regards the link as the channel and a neighbor switch think that the ports are separated (that is, they are inconsistent ). See the following example:

In the chart, while Switch B opens up the channel, Switch A does not open up the channel. Let's assume that the STP Designated Port is the edge of the link on vswitch B. This means that switch B should send BPDU. As long as the channel is considered a single STP port, only one BPDU is sent in each VLAN of the channel. This BPDU will actually be transmitted over one of the ports in the channel and only one of the ports will accept it in switch A (black arrows in the picture ).

Because from vswitch B, another Port of the BPDU will not be accepted. In vswitch A, it will become an STP Designated Port. As the Designated Port, it transmits BPDU (red arrows in the picture ). Switch B accepts the BPDU on the slave port of Switch.

The channel inconsistency detection mechanism is based on the fact that only one port in the channel should be sent or accepted in each vlan bpdu. Each port has its own unique MAC address on the Catalyst switch when sending BPDU. The MAC address is in version 7.1. In the latest version, the command sh port mac-address <mod/port> or sh module <mod> is issued. The sample output is as follows.

Cat6k> (enable) sh port Mac-address 2/7
Port Mac address
----------------------
2/7 00-02-fc-90-19-2c
Cat6k> (enable) sh mod 2
Mod Slot Ports Module-Type Model Sub Status
-------------------------------------------------------------------
2 2 16 10/100/1000 BaseT Ethernet WS-X6516-GE-TX no OK
Mod Module-Name Serial-Num
----------------------------------
2 SAD05170009
Mod MAC-Address (es) Hw Fw Sw
--------------------------------------------------------------------------
2 00-02-fc-90-19-26 to 00-02-fc-90-19-35 0.231 6.1 (3) 7.1 (1)

If the source MAC addresses of accepted and/or sent BPDU are frequently alternate on the Channel port, multiple STP ports send BPDU. Because the channel is a single port from the STP point of view, this is a clear sign of inconsistency.

Note that this mechanism allows several tolerances, because it is very likely that BPDU will come from different MAC addresses at some time. For example, STP is aggregated at the time, and the STP Designated Port may change the different edges between the channels. This process, however, should be settled within a short period of time.

Number, it takes over 30 seconds to "see" more than 75 BPDU from different MAC addresses, the channel is inconsistent. However, if the five BPDU "are seen consecutively from the same MAC address", the detection counter is reset. Note that these figures may be changed in future software versions. The accepted and sent BPDU are checked by the detection mechanism. It should also be noted that, due to the general nature of this mechanism, it may be triggered even when the channel is configured consistently.

For example, if, due to software problems, some hardware have a switch that is connected to the network 2 switch in the channel, but the Protocol side STP Designated Port is not reached and each side leads to BPDU sending, in this way, the channel may be disabled by the consistency detection mechanism. This change may allow separate network aggregation and should not be considered a harmful side effect.

Note that BPDU is not flooded with hardware even when STP is disabled. STP must still process some of the BPDU, including the rewrite of the source MAC address of the BPDU is the sent port. This means that the inconsistent detection will work on the channel even if the STP fails.

The channel inconsistency detection function may be invalid, although not recommended. In Native IOS, the following global configuration mode command can disable this function:

No Spanning Tree Ethernet channel guard misconfig

By default, the test is started on CatcOs and Native IOS.

It is also possible to use the sh spantree stat <mod/port> <VLAN> command monitoring function. See the following example:

Cat6k> (enable) sh spant stat 2/5 199
Port 2/5 VLAN 199
[Output skipped]
Channel_src_mac 00-d0-5a-eb-67-5a
Channel src count 73
Channel OK count 1
Cat6k> (enable) sh spant stat 2/5 199
Port 2/5 VLAN 199
[Output skipped]
Channel_src_mac 00-50-14-bb-63-a9
Channel src count 76
Channel OK count 1
% SPANTREE-2-CHNMISCFG: STP loop-channel 2/5-12 is disabled in vlan/instance 199

The following list shows the interpretation of the System Log message parameters in the preceding sample output.


Channel_src_mac displays the source MAC address of the last BPDU sent or received by the channel

Channel_src_count count the number of BPDU sent or received with an additional source MAC address

Channel_ OK _count count the number of BPDU continuously sent with the same MAC address
Note that the channel_src_count parameter is added. Once this reaches more than 75, all links will be put in the error-proof status in the channel, and the above system log messages will be sent. Note that the MAC address displayed in the preceding two examples is different.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.