CN103457778A - Method and equipment for communication of Ethernet switched network - Google Patents

Method and equipment for communication of Ethernet switched network Download PDF

Info

Publication number
CN103457778A
CN103457778A CN2013104083988A CN201310408398A CN103457778A CN 103457778 A CN103457778 A CN 103457778A CN 2013104083988 A CN2013104083988 A CN 2013104083988A CN 201310408398 A CN201310408398 A CN 201310408398A CN 103457778 A CN103457778 A CN 103457778A
Authority
CN
China
Prior art keywords
bridge
host name
root
bpdu message
root bridge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013104083988A
Other languages
Chinese (zh)
Other versions
CN103457778B (en
Inventor
任强
张朋
庞博
宋涛
张洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310408398.8A priority Critical patent/CN103457778B/en
Publication of CN103457778A publication Critical patent/CN103457778A/en
Application granted granted Critical
Publication of CN103457778B publication Critical patent/CN103457778B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

Provided are a method and equipment for communication of an Ethernet switched network. The method comprises the steps that BPDU information is generated by a first network bridge, the BPDU information carries the host name of at least one network bridge and an MAC address of the at least one network bridge in the Ethernet switched network, and the at least one network bridge comprises the first network bridge; the first network bridge sends the BPDU information to a second network bridge in the Ethernet switched network. The BPDU information carries the host name of the network bridge, so network maintenance staff can rapidly determine a target network bridge at the position of network bridge equipment according to the host name carried by the BPDU information, and therefore efficiency of network fault location and network maintenance is improved.

Description

The communication means of ethernet switched network and equipment
Technical field
The present invention relates to the communications field, and more specifically, relate to communication means and the equipment of ethernet switched network.
Background technology
In ethernet switched network, in return each bridge of node can be with bridge ID(Bridge Identification, BID) identify, BID controls (Media Access Control, MAC) address by the bridge priorities (Bridge Priority) of 16 with the media interviews of 48 to form.
Can only see root bridge and specify the BID of bridge when checking root bridge as the network maintenance staff and specifying bridge information on bridge equipment, by BID can not be directly, determine rapidly and geographical position or other relevant informations of target bridge be not easy to carry out fault location and network operation.
Summary of the invention
The embodiment of the present invention provides a kind of communication means and equipment of ethernet switched network, to improve the efficiency of network failure location and network operation.
First aspect, a kind of communication means of ethernet switched network is provided, comprise: the first bridge generates bridge protocol data unit B PDU message, described BPDU message is carried the host name of at least one bridge in described ethernet switched network and MAC Address is controlled in the media interviews of described at least one bridge, and described at least one bridge comprises described the first bridge; Described the first bridge sends described BPDU message to the second bridge in described ethernet switched network.
In conjunction with first aspect, in its first implementation, described the first bridge generates bridge protocol data unit B PDU message, comprise: fill the host name of described the first bridge in the appointment bridge host name field of described BPDU message, and fill the host name of the root bridge of described the first bridge in the root bridge host name field of described BPDU message.
In conjunction with first aspect and above-mentioned implementation thereof, in its second implementation, when the protocol version of described network is Spanning-Tree Protocol STP or RSTP RSTP, before described the first bridge generates bridge protocol data unit B PDU message, also comprise: the host name that the host name of described the first bridge is defined as to described root bridge; Perhaps obtain the host name of the described root bridge that described the first bridge prestores; The BPDU message that the adjacent bridge of described the first bridge that perhaps basis receives sends is determined the host name of described root bridge.
In conjunction with first aspect and above-mentioned implementation thereof, in its third implementation, when the protocol version of described network is Multiple Spanning Tree Protocol MSTP, described root bridge comprises total root bridge and at least one territory root bridge, before described the first bridge generates bridge protocol data unit B PDU message, also comprise: the host name that the host name of described the first bridge is defined as to described total root bridge, perhaps obtain the host name of described total root bridge that described the first bridge prestores, the BPDU message that the adjacent bridge of described the first bridge that perhaps basis receives sends is determined the host name of described total root bridge, the host name of described the first bridge is defined as to the host name of described territory root bridge, perhaps obtain the host name of the described territory root bridge that described the first bridge prestores, or determine the host name of described territory root bridge according to the BPDU message that the adjacent bridge of described the first bridge received sends, the host name of described the first bridge is defined as to the host name of described MSTI territory root bridge, perhaps obtain the host name of the described MSTI territory root bridge that described the first bridge prestores, or determine the host name of described MSTI territory root bridge according to the BPDU message that the adjacent bridge of described the first bridge received sends.
In conjunction with first aspect and above-mentioned implementation thereof, in its 4th kind of implementation, described the first bridge generates bridge protocol data unit B PDU message, comprising: the data Data part of adding configuration bpdu message using described root bridge host name field and described appointment bridge host name field as new field to; Perhaps, by described root bridge host name field, described appointment bridge host name field writes the BPDU message of new define styles.
In conjunction with first aspect and above-mentioned implementation thereof, in its 5th kind of implementation, described the first bridge sends described BPDU message to the second bridge in described ethernet switched network, comprising: periodically send described BPDU message; When changing, the host name of described the first bridge sends described BPDU message.
In conjunction with first aspect and above-mentioned implementation thereof, in its 6th kind of implementation, described the first bridge sends described BPDU message to the second bridge in described ethernet switched network, comprising: the mode with multicast sends described BPDU message.
Second aspect, a kind of communication means of ethernet switched network is provided, comprise: the second bridge receives the bridge protocol data unit B PDU message that the first bridge in described ethernet switched network sends, described BPDU message is carried the host name of at least one bridge in described Ethernet and MAC Address is controlled in the media interviews of described at least one bridge, and described at least one bridge comprises described the first bridge; Described the second bridge obtains the host name of described at least one bridge from described BPDU message.
In conjunction with second aspect, in its first implementation, described BPDU message comprises the root bridge host name field and specifies the bridge host name field, wherein said root bridge host name field is filled by the host name of the root bridge of described the first bridge, and described appointment bridge host name field is filled by the host name of described the first bridge.
In conjunction with second aspect and above-mentioned implementation thereof, in its second implementation, when the protocol version of described network is Spanning-Tree Protocol STP or RSTP RSTP, the host name of the root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the root bridge that perhaps described the first bridge prestores; The host name with bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is determined; When the protocol version of described network is Multiple Spanning Tree Protocol MSTP, described root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, the host name of total root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of total root bridge that perhaps described the first bridge prestores; The host name of total root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is determined; The host name of the territory root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the territory root bridge that perhaps described the first bridge prestores; The host name of the territory root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is definite; The host name of the MSTI territory root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the MSTI territory root bridge that perhaps described the first bridge prestores; The host name of the MSTI territory root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is definite.
In conjunction with second aspect and above-mentioned implementation thereof, in its third implementation, described the second bridge obtains the host name of described at least one bridge from described BPDU message, comprise: the root bridge host name field from described BPDU message is obtained the host name of the root bridge of described the first bridge, perhaps the root bridge host name field from described BPDU message is obtained the host name of total root bridge of described the first bridge, the host name of the MSTI territory root bridge of the host name of the territory root bridge of described the first bridge and described the first bridge; Appointment bridge host name field from described BPDU message is obtained the host name of described the first bridge.
In conjunction with second aspect and above-mentioned implementation thereof, in its 4th kind of implementation, described the second bridge receives the bridge protocol data unit B PDU message that the first bridge in described ethernet switched network sends, and comprising: periodically receive described BPDU message; When changing, the host name of described the first bridge receives described BPDU message.
The third aspect, a kind of bridge of ethernet switched network is provided, comprise: generation unit, for generating bridge protocol data unit B PDU message, described BPDU message is carried the host name of at least one bridge in described ethernet switched network and MAC Address is controlled in the media interviews of described at least one bridge, and described at least one bridge comprises described bridge; Transmitting element, send for the second bridge to described ethernet switched network the described BPDU message that described generation unit generates.
In conjunction with the third aspect, in its first implementation, described generation unit specifically for: fill the host name of described bridge in the appointment bridge host name field of described BPDU message, and fill the host name of the root bridge of described bridge in the root bridge host name field of described BPDU message.
In conjunction with the third aspect and above-mentioned implementation thereof, in its second implementation, described bridge also comprises determining unit, when the protocol version of described network is Spanning-Tree Protocol STP or RSTP RSTP, described determining unit is used for: the host name that the host name of described bridge is defined as to described root bridge; Perhaps obtain the host name of the described root bridge that described bridge prestores; The BPDU message that the adjacent bridge of the described bridge that perhaps basis receives sends is determined the host name of described root bridge.
In conjunction with the third aspect and above-mentioned implementation thereof, in its third implementation, described bridge also comprises determining unit, when the protocol version of described network is Multiple Spanning Tree Protocol MSTP, described root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, described determining unit is used for: the host name that the host name of described bridge is defined as to described total root bridge, perhaps obtain the host name of described total root bridge that described bridge prestores, the BPDU message that the adjacent bridge of the described bridge that perhaps basis receives sends is determined the host name of described total root bridge, the host name of described bridge is defined as to the host name of described territory root bridge, or obtains the host name of the described territory root bridge that described bridge prestores, or determine the host name of described territory root bridge according to the BPDU message that the adjacent bridge of the described bridge received sends, the host name of described bridge is defined as to the host name of described MSTI territory root bridge, perhaps obtain the host name of the described MSTI territory root bridge that described bridge prestores, or determine the host name of described MSTI territory root bridge according to the BPDU message that the adjacent bridge of the described bridge received sends.
In conjunction with the third aspect and above-mentioned implementation thereof, in its 4th kind of implementation, generation unit is specifically for the data Data part of adding configuration bpdu message using described root bridge host name field and described appointment bridge host name field as new field to; Perhaps, by described root bridge host name field, described appointment bridge host name field writes the BPDU message of new define styles.
In conjunction with the third aspect and above-mentioned implementation thereof, in its 5th kind of implementation, described transmitting element specifically for: periodically send described BPDU message; When changing, the host name of described bridge sends described BPDU message.
In conjunction with the third aspect and above-mentioned implementation thereof, in its 6th kind of implementation, described transmitting element also specifically for: the mode with multicast sends described BPDU message.
Fourth aspect, a kind of bridge of ethernet switched network is provided, comprise: receiving element, the bridge protocol data unit B PDU message sent for the first bridge that receives described ethernet switched network, described BPDU message is carried the host name of at least one bridge in described Ethernet and MAC Address is controlled in the media interviews of described at least one bridge, and described at least one bridge comprises described the first bridge; Acquiring unit, obtain the host name of described at least one bridge for the described BPDU message received from described receiving element.
In conjunction with fourth aspect, in its first implementation, the BPDU message that described receiving element receives comprises the root bridge host name field and specifies the bridge host name field, wherein said root bridge host name field is filled by the host name of the root bridge of described the first bridge, and described appointment bridge host name field is filled by the host name of described the first bridge.
In conjunction with fourth aspect and above-mentioned implementation thereof, in its second implementation, when the protocol version of described network is Spanning-Tree Protocol STP or RSTP RSTP, the host name of the root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the root bridge that perhaps described the first bridge prestores; The host name with bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is determined; When the protocol version of described network is Multiple Spanning Tree Protocol MSTP, described root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, the host name of total root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of total root bridge that perhaps described the first bridge prestores; The host name of total root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is determined; The host name of the territory root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the territory root bridge that perhaps described the first bridge prestores; The host name of the territory root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is definite; The host name of the MSTI territory root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the MSTI territory root bridge that perhaps described the first bridge prestores; The host name of the MSTI territory root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is definite.
In conjunction with fourth aspect and above-mentioned implementation thereof, in its third implementation, described acquiring unit specifically for: the root bridge host name field from described BPDU message is obtained the host name of the root bridge of described the first bridge, perhaps the root bridge host name field from described BPDU message is obtained the host name of total root bridge of described the first bridge, the host name of the MSTI territory root bridge of the host name of the territory root bridge of described the first bridge and described the first bridge; Appointment bridge host name field from described BPDU message is obtained the host name of described the first bridge.
In conjunction with fourth aspect and above-mentioned implementation thereof, in its 4th kind of implementation, described receiving element specifically for: periodically receive described BPDU message; When changing, the host name of described the first bridge receives described BPDU message.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thereby improved the efficiency of network failure location and network operation.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below will the accompanying drawing of required use in the embodiment of the present invention be briefly described, apparently, below described accompanying drawing be only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart of communication means of the ethernet switched network of one embodiment of the invention.
Fig. 2 is the flow chart of communication means of the ethernet switched network of one embodiment of the invention.
Fig. 3 is the schematic block diagram of the bridge equipment of one embodiment of the invention.
Fig. 4 is the schematic block diagram of the bridge equipment of one embodiment of the invention.
Fig. 5 is the schematic block diagram of the bridge equipment of another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, should belong to the scope of protection of the invention.
Fig. 1 is the flow chart of communication means of the ethernet switched network of one embodiment of the invention.The method of Fig. 1 can be carried out by the arbitrary bridge in ethernet switched network.
101, the first bridges generate bridge protocol data unit B PDU message, and BPDU message is carried the host name of at least one bridge in ethernet switched network and MAC Address is controlled in the media interviews of at least one bridge, and this at least one bridge comprises the first bridge.
102, the first bridges send BPDU message to the second bridge in ethernet switched network.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thereby improved the efficiency of network failure location and network operation.
The host name that should be understood that bridge can be described a certain attribute information of this bridge equipment, and for example, geographical location information, be subordinate to information etc., can distinguish with other bridge equipments.As a concrete example, host name can be China.Beijing.Huawei.201, means the residing geographical position of this bridge, ownership and numbering.The host name of bridge can set when bridge equipment dispatches from the factory, setting and change that also can be in use artificial.Than the bridge ID of bridge, the host name of bridge is more directly perceived.
Alternatively, as an embodiment, the first bridge generates BPDU message and comprises: fill the host name of the first bridge in the appointment bridge host name field of BPDU message, and fill the host name of the root bridge of the first bridge in the root bridge host name field of BPDU message.
Operation Spanning-Tree Protocol (Spanning Tree Protocol, STP) bridge equipment adopts bridge protocol data unit (Bridge Protocol Data Unit, BPDU) interactive information, comprise enough information in the middle of BPDU message to guarantee that equipment completes spanning tree and calculates, for example, root bridge ID,Gen road path cost, appointment bridge ID and designated port ID etc.Wherein, root bridge ID is comprised of the priority of root bridge and the MAC Address of root bridge, specifies bridge ID by the priority of specifying bridge and specifies the MAC Address of bridge to form.The first bridge is when generating BPDU message, need to carry out STP calculating usings and determines that minimum bridge ID is as current root bridge ID, correspondingly, the first bridge can by current root bridge ID the host name of corresponding bridge equipment be filled in the root bridge host name field of BPDU message.Similarly, the first bridge need to be determined appointment bridge ID and corresponding appointment bridge host name is filled in the appointment bridge host name field of BPDU message.It should be noted that, the STP here is broad sense, can be the common related protocols such as Spanning-Tree Protocol, RSTP (Rapid Spanning Tree Protocol, RSTP) or Multiple Spanning Tree Protocol (Multiple Spanning Tree Protocol, MSTP).
Alternatively, as an embodiment, when the protocol version of network is Spanning-Tree Protocol STP or RSTP RSTP, before the first bridge generates bridge protocol data unit B PDU message, also comprise:
The host name of the first bridge is defined as to the host name of root bridge; Perhaps
Obtain the host name of the root bridge that the first bridge prestores; Perhaps
The BPDU message sent according to the adjacent bridge of the first bridge received is determined the host name of root bridge.
Should be understood that the STP that is different from above-mentioned broad sense, when specific to protocol version, the STP here refers to the most basic STP agreement.When the protocol version of bridge equipment execution is STP or RSTP, only have a root bridge in network, the first bridge has multiple possible mode when determining own current root bridge.For example, when the first bridge equipment just has been connected into network, when perhaps the first bridge has just started, BPDU message due to other bridges transmissions that also acquisition is not attached thereto of the first bridge, the bridge ID of the first bridge itself can be considered to minimum bridge ID, thereby is confirmed as root bridge ID, correspondingly, the first bridge is defined as the host name of oneself host name of root bridge, and is filled into the root bridge host name field of BPDU message.In addition, the host name of the root bridge that the first bridge also can prestore this locality is filled into the root bridge host name field of BPDU message, and the host name of the root bridge that this prestores can be the host name of the first bridge, can be also the host name of certain bridge of artificial configuration.Bridge ID and the root bridge ID of other bridges in the BPDU that the first bridge can also send according to other bridges that receive, pass through the root bridge ID of the bridge ID of STP calculative determination minimum as the first bridge, and corresponding host name is filled into to the root bridge host name field of BPDU message.
Alternatively, as an embodiment, when the protocol version of network is Multiple Spanning Tree Protocol MSTP, root bridge comprises total root bridge and at least one territory root bridge, before the first bridge generates bridge protocol data unit B PDU message, also comprise: the host name of the first bridge is defined as to the host name of total root bridge, or obtains the host name of total root bridge that the first bridge prestores, or determine the host name of total root bridge according to the BPDU message that the adjacent bridge of the first bridge received sends; The host name of the first bridge is defined as to the host name of territory root bridge, or obtains the host name of the territory root bridge that the first bridge prestores, or the host name of the definite territory root bridge of the BPDU message sent according to the adjacent bridge of the first bridge received; The host name of the first bridge is defined as to the host name of MSTI territory root bridge, or obtains the host name of the MSTI territory root bridge that the first bridge prestores, or determine the host name of MSTI territory root bridge according to the BPDU message that the adjacent bridge of the first bridge received sends.
When the protocol version of bridge equipment execution is MSTP, network now can be divided into a plurality of territories, and each territory can comprise Multi-instance again.Whole network is by a total root bridge, be called Common and Internal Spanning Tree (Common and Internal Spanning Tree, CIST) total root bridge, there is a territory root bridge in each territory, be called CIST territory root bridge, each example has a root bridge, is called Multiple Spanning Tree Instance (Multiple Spanning Tree Instance, MSTI) territory root bridge.Therefore, can comprise a plurality of root bridge host name fields in the BPDU message of MSTP, total root bridge host name field and territory root bridge host name field can be arranged, and wherein root bridge host name field in territory can also be divided into CIST territory root bridge host name field and MSTI territory root bridge host name field.
Particularly, the first bridge has multiple possible mode when determining own current total root bridge.For example, when the first bridge equipment just has been connected into network, when perhaps the first bridge has just started, BPDU message due to other bridges transmissions that also acquisition is not attached thereto of the first bridge, the bridge ID of the first bridge itself can be considered to minimum bridge ID, thereby is confirmed as total root bridge ID, correspondingly, the first bridge is defined as the host name of oneself host name of total root bridge, and is filled into total root bridge host name field of BPDU message.In addition, the host name of the root bridge that the first bridge also can prestore this locality is filled into total root bridge host name field of BPDU message, and the host name of the root bridge that this prestores can be the host name of the first bridge, can be also the host name of certain bridge of artificial configuration.The bridge ID of other bridges in the BPDU that the first bridge can also send according to other bridges that receive and total root bridge ID, pass through the total root bridge ID of the bridge ID of STP calculative determination minimum as the first bridge, and corresponding host name is filled into to total root bridge host name field of BPDU message.Similar ground, the first bridge also can have above several mode while determining CIST territory root bridge and MSTI territory root bridge.
Alternatively, as an embodiment, the first bridge generates bridge protocol data unit B PDU message, comprising: using the root bridge host name field with specify the bridge host name field to add the data Data part of configuration bpdu message to as new field; Perhaps, by the root bridge host name field, specify the bridge host name field to write the BPDU message of new define styles.
Particularly, existing BPDU message has configuration bpdu message and topology change to circulate a notice of two types of (Topology Change Notification, TCN) BPDU message.The first bridge can increase the root bridge host name field and specify the bridge host name field on the basis of existing BPDU message.Particularly, when the protocol type of network is STP or RSTP, can add at the afterbody of the original field of the Data of BPDU message part example extended field as shown in table 1:
Figure BDA0000379334840000091
Table 1
When the protocol type of network is MSTP, can in BPDU message, add field as shown in table 2, the host name information with Portable belt CIST root bridge with the appointment bridge:
Figure BDA0000379334840000101
Table 2
Wherein root bridge host name in MSTI territory can be carried the host name information of the territory root bridge of each MSTI, the host name information format field as shown in table 3 of the territory root bridge of each MSTI:
Field Length (unit: byte)
The MSTI sign 1
The host name length of MSTI territory root bridge 1
The host name of MSTI territory root bridge 0~255
Table 3
Except increasing the root bridge host name field on the basis in existing BPDU message and specifying the bridge host name field, the first bridge can also carry by the BPDU message that generates a newly-increased type host name of root bridge and appointment bridge.The encapsulation format that should increase the BPDU message of type newly can be identical with configuration bpdu, and for STP or RSTP, the data division of newly-increased type B PDU message can be as shown in table 4:
Field Length (unit: byte)
Agreement ID 2
Protocol version 1
Bpdu type 1
Root bridge ID 6
The host name length of root bridge 1
The host name of root bridge 0~255
Specify bridge ID 6
Specify the host name length of bridge 1
Specify the host name of bridge 0~255
Table 4
Wherein, the agreement id field is identical with original BPDU message, is generally 0.When protocol version is STP, protocol version field can be filled to 0, and when protocol version is RSTP, protocol version field can be filled to 2.For the bpdu type field, due to the BPDU message that is newly-increased type, so this field need to be filled the information that is different from original bpdu type, for example the type of the BPDU of the newly-increased type of definition is 0x03, and fills 0x03 to the bpdu type field.The root bridge id field can comprise the priority of root bridge equipment and the MAC Address of root bridge equipment, the priority of specifying similarly the bridge id field to comprise to specify bridge device and specify the MAC Address of bridge device.
For MSTP, the data division of newly-increased type B PDU message can be as shown in table 5:
Field Length (unit: byte)
Agreement ID 2
Protocol version 1
Bpdu type 1
Total root bridge ID 6
The host name length of total root bridge 1
The host name of total root bridge 0~255
Specify bridge ID 6
Specify the host name length of bridge 1
Specify the host name of bridge 0~255
Territory root bridge ID 6
The host name length of territory root bridge 1
The host name of territory root bridge 0~255
Example quantity 1
MSTI territory root bridge host name information Variable
Table 5
Wherein, the agreement id field is identical with original BPDU message, is generally 0.Protocol version is MSTP, so protocol version field can be filled to 3.For the bpdu type field, due to the BPDU message that is newly-increased type, so this field need to be filled the information that is different from original bpdu type, for example the type of the BPDU of the newly-increased type of definition is 0x03, and fills 0x03 to the bpdu type field.Total root bridge id field can comprise the priority of total root bridge equipment and the MAC Address of total root bridge equipment, the priority of specifying similarly the bridge id field to comprise to specify bridge device and the MAC Address of appointment bridge device.Therefore due to a plurality of MSTI examples can be arranged, may have the host name information of a plurality of MSTI territory root bridge, thereby the length of the host name information field of MSTI territory root bridge is according to example quantity and fixed.For the host name information of single MSTI territory root bridge, its structure can be as shown in table 6:
Field Length (unit: byte)
The MSTI sign 1
MSTI territory root bridge ID 6
The host name length of MSTI territory root bridge 1
The host name of MSTI territory root bridge 0~255
Table 6
Alternatively, as an embodiment, the first bridge sends BPDU message to the second bridge in ethernet switched network, comprising: periodically send BPDU message; When changing, the host name of the first bridge sends BPDU message.In addition, the first bridge can send in the mode of multicast BPDU message.
Particularly, the BPDU message of the BPDU message that carries host name field in the embodiment of the present invention or newly-increased type can by the first bridge, according to certain time interval, the mode with multicast be sent.In addition, BPDU message in sending the embodiment of the present invention in the mode of multicast in the time of can also changing in the host name of this first bridge equipment, the host name of the first bridge that the network maintenance staff originally views on the ground at the first bridge equipment so also can be upgraded thereupon automatically.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thus can the quick lock in faulty equipment when network breaks down.And, while changing due to host name, bridge also can send the BPDU message that carries the host name after change, so the host name that the network maintenance staff can be after the bridge equipment place views change, thereby can improve the efficiency of network O&M.
Fig. 2 is the flow chart of communication means of the ethernet switched network of one embodiment of the invention.The method of Fig. 2 can be carried out by the arbitrary bridge in ethernet switched network.
201, the second bridge receives the bridge protocol data unit B PDU message that the first bridge in ethernet switched network sends, BPDU message is carried the host name of at least one bridge in Ethernet and MAC Address is controlled in the media interviews of at least one bridge, and at least one bridge comprises the first bridge.
202, the second bridges obtain the host name of at least one bridge from BPDU message.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thereby improved the efficiency of network failure location and network operation.
The host name that should be understood that bridge can be described a certain attribute information of this bridge equipment, and for example, geographical location information, be subordinate to information etc., can distinguish with other bridge equipments.As a concrete example, host name can be China.Beijing.Huawei.201, means the residing geographical position of this bridge, ownership and numbering.The host name of bridge can set when bridge equipment dispatches from the factory, setting and change that also can be in use artificial.
Alternatively, as an embodiment, BPDU message comprises root bridge host name field and appointment bridge host name field, and wherein the root bridge host name field is filled by the host name of the root bridge of the first bridge, specifies the bridge host name field to be filled by the host name of the first bridge.
Operation Spanning-Tree Protocol (Spanning Tree Protocol, STP) bridge equipment adopts bridge protocol data unit (Bridge Protocol Data Unit, BPDU) interactive information, comprise enough information in the middle of BPDU message to guarantee that equipment completes spanning tree and calculates, for example, root bridge ID,Gen road path cost, appointment bridge ID and designated port ID etc.Wherein, root bridge ID is comprised of the priority of root bridge and the MAC Address of root bridge, specifies bridge ID by the priority of specifying bridge and specifies the MAC Address of bridge to form.The first bridge is when generating BPDU message, need to carry out STP calculating usings and determines that minimum bridge ID is as current root bridge ID, correspondingly, the first bridge can by current root bridge ID the host name of corresponding bridge equipment be filled in the root bridge host name field of BPDU message.Similarly, the first bridge need to be determined appointment bridge ID and corresponding appointment bridge host name is filled in the appointment bridge host name field of BPDU message.It should be noted that, the STP here is broad sense, can be the common related protocols such as Spanning-Tree Protocol, RSTP (Rapid Spanning Tree Protocol, RSTP) or Multiple Spanning Tree Protocol (Multiple Spanning Tree Protocol, MSTP).
Alternatively, as an embodiment, when the protocol version of network is Spanning-Tree Protocol STP or RSTP RSTP, the host name of the root bridge of the first bridge comprises: the host name of the first bridge; The host name of the root bridge that perhaps the first bridge prestores; The host name with bridge that the BPDU message that perhaps the first bridge sends according to the adjacent bridge received is determined; When the protocol version of network is Multiple Spanning Tree Protocol MSTP, root bridge comprises total root bridge and at least one territory root bridge, and the host name of total root bridge of the first bridge comprises: the host name of the first bridge; The host name of total root bridge that perhaps the first bridge prestores; The host name of total root bridge that the BPDU message that perhaps the first bridge sends according to the adjacent bridge received is determined; The host name of the territory root bridge of the first bridge comprises: the host name of the first bridge; The host name of the territory root bridge that perhaps the first bridge prestores; The host name of the territory root bridge that the BPDU message that perhaps the first bridge sends according to the adjacent bridge received is definite.Should be understood that the STP that is different from above-mentioned broad sense, when specific to protocol version, the most basic STP agreement of STP acute pyogenic infection of finger tip here.When the protocol version of bridge equipment execution is STP or RSTP, only have a root bridge in network, the first bridge has multiple possible mode when determining own current root bridge.For example, when the first bridge equipment just has been connected into network, when perhaps the first bridge has just started, BPDU message due to other bridges transmissions that also acquisition is not attached thereto of the first bridge, the bridge ID of the first bridge itself can be considered to minimum bridge ID, thereby is confirmed as root bridge ID, correspondingly, the first bridge is defined as the host name of oneself host name of root bridge, and is filled into the root bridge host name field of BPDU message.In addition, the host name of the root bridge that the first bridge also can prestore this locality is filled into the root bridge host name field of BPDU message, and the host name of the root bridge that this prestores can be the host name of the first bridge, can be also the host name of certain bridge of artificial configuration.Bridge ID and the root bridge ID of other bridges in the BPDU that the first bridge can also send according to other bridges that receive, pass through the root bridge ID of the bridge ID of STP calculative determination minimum as the first bridge, and corresponding host name is filled into to the root bridge host name field of BPDU message.When the protocol version of bridge equipment execution is MSTP, network now can be divided into a plurality of territories, and each territory can comprise Multi-instance again.Whole network is by a total root bridge, be called Common and Internal Spanning Tree (Common and Internal Spanning Tree, CIST) total root bridge, there is a territory root bridge in each territory, be called CIST territory root bridge, each example has a root bridge, is called Multiple Spanning Tree Instance (Multiple Spanning Tree Instance, MSTI) territory root bridge.Therefore, can comprise a plurality of root bridge host name fields in the BPDU message of MSTP, total root bridge host name field and territory root bridge host name field can be arranged, and wherein root bridge host name field in territory can also be divided into CIST territory root bridge host name field and MSTI territory root bridge host name field.Similar ground, the first bridge also can have above several mode while determining the total root bridge of CIST, CIST territory root bridge and MSTI territory root bridge.
Alternatively, as an embodiment, the second bridge obtains the host name of at least one bridge from BPDU message, comprise: the root bridge host name field from BPDU message is obtained the host name of the root bridge of the first bridge, or the root bridge host name field from BPDU message is obtained the host name of the territory root bridge of the host name of total root bridge of the first bridge and the first bridge; Appointment bridge host name field from BPDU message is obtained the host name of the first bridge.
Particularly, the second bridge is when receiving BPDU message, except the processing according to the agreement already existing provisions, the host name information that also needs to extract root bridge and specify bridge device, also need to extract the information such as the total root bridge of CIST, CIST territory root bridge and MSTI territory root bridge for MSTP, so that generate new BPDU message for the second bridge, or check for the network maintenance staff.
Alternatively, as an embodiment, the second bridge receives the bridge protocol data unit B PDU message that the first bridge in ethernet switched network sends, and comprising: periodically receive BPDU message; When changing, the host name of the first bridge receives BPDU message.
Particularly, the BPDU message of the BPDU message that carries host name field in the embodiment of the present invention or newly-increased type can by the first bridge, according to certain time interval, the mode with multicast be sent.Therefore, the second bridge can periodically receive the BPDU message that the first bridge sends, and in addition, because the second bridge probably also has and is connected with other bridges, therefore also may receive the BPDU message that other bridges send.In addition, when the host name of the first bridge equipment changes, the second bridge also can receive the BPDU message that the first bridge sends, and the host name of the first bridge that the network maintenance staff originally views on the ground at the second bridge equipment so also can be upgraded thereupon automatically.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thus can the quick lock in faulty equipment when network breaks down.And, while changing due to host name, bridge also can send the BPDU message that carries the host name after change, so the host name that the network maintenance staff can be after the bridge equipment place views change, thereby can improve the efficiency of network O&M.
Fig. 3 is the schematic block diagram of the bridge equipment of one embodiment of the invention.The bridge 30 of Fig. 3 comprises generation unit 31 and transmitting element 32.
Generation unit 31 generates bridge protocol data unit B PDU message, and BPDU message is carried the host name of at least one bridge in ethernet switched network and MAC Address is controlled in the media interviews of at least one bridge, and at least one bridge comprises bridge 30.Transmitting element 32 sends to the second bridge in ethernet switched network the BPDU message that generation unit 31 generates.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thereby improved the efficiency of network failure location and network operation.
The host name that should be understood that bridge can be described a certain attribute information of this bridge equipment, and for example, geographical location information, be subordinate to information etc., can distinguish with other bridge equipments.As a concrete example, host name can be China.Beijing.Huawei.201, means the residing geographical position of this bridge, ownership and numbering.The host name of bridge can set when bridge equipment dispatches from the factory, setting and change that also can be in use artificial.Than the bridge ID of bridge, the host name of bridge is more directly perceived.
Alternatively, as an embodiment, generation unit 31 specifically for: fill the host name of bridge 30 in the appointment bridge host name field of BPDU message, and fill the host name of the root bridge of bridge 30 in the root bridge host name field of BPDU message.
Operation Spanning-Tree Protocol (Spanning Tree Protocol, STP) bridge equipment adopts bridge protocol data unit (Bridge Protocol Data Unit, BPDU) interactive information, comprise enough information in the middle of BPDU message to guarantee that equipment completes spanning tree and calculates, for example, root bridge ID,Gen road path cost, appointment bridge ID and designated port ID etc.Wherein, root bridge ID is comprised of the priority of root bridge and the MAC Address of root bridge, specifies bridge ID by the priority of specifying bridge and specifies the MAC Address of bridge to form.Bridge 30, when generating BPDU message, need to carry out STP calculating and using and determine that minimum bridge ID is as current root bridge ID, correspondingly, bridge 30 can by current root bridge ID the host name of corresponding bridge equipment be filled in the root bridge host name field of BPDU message.Similarly, bridge 30 needs determine appointment bridge ID and corresponding appointment bridge host name be filled in the appointment bridge host name field of BPDU message.It should be noted that, the STP here is broad sense, can be the common related protocols such as Spanning-Tree Protocol, RSTP (Rapid Spanning Tree Protocol, RSTP) or Multiple Spanning Tree Protocol (Multiple Spanning Tree Protocol, MSTP).
Alternatively, as an embodiment, bridge 30 also comprises determining unit, and when the protocol version of network is Spanning-Tree Protocol STP or RSTP RSTP, determining unit is used for: the host name that the host name of bridge 30 is defined as to root bridge; Perhaps obtain the host name of the root bridge that bridge 30 prestores; The BPDU message that the adjacent bridge of the bridge 30 that perhaps basis receives sends is determined the host name of root bridge.
Should be understood that the STP that is different from above-mentioned broad sense, when specific to protocol version, the most basic STP agreement of STP acute pyogenic infection of finger tip here.When the protocol version of bridge equipment execution is STP or RSTP, only have a root bridge in network, bridge 30 has multiple possible mode when determining own current root bridge.For example, when bridge 30 just has been connected into network, when perhaps bridge 30 has just started, BPDU message due to bridge 30 other bridges transmissions that also acquisition is not attached thereto, bridge 30 bridge ID own can be considered to minimum bridge ID, thereby are confirmed as root bridge ID, correspondingly, bridge 30 is defined as the host name of oneself host name of root bridge, and is filled into the root bridge host name field of BPDU message.In addition, the host name of the root bridge that bridge 30 also can prestore this locality is filled into the root bridge host name field of BPDU message, and the host name of the root bridge that this prestores can be the host name of bridge 30, can be also the host name of certain bridge of artificial configuration.Bridge ID and the root bridge ID of other bridges in the BPDU that bridge 30 can also send according to other bridges that receive, pass through the root bridge ID of the bridge ID of STP calculative determination minimum as bridge 30, and corresponding host name is filled into to the root bridge host name field of BPDU message.
Alternatively, as an embodiment, bridge also comprises determining unit, when the protocol version of network is Multiple Spanning Tree Protocol MSTP, root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, and determining unit is used for: the host name that the host name of bridge is defined as to total root bridge, perhaps obtain the host name of total root bridge that bridge prestores, or determine the host name of total root bridge according to the BPDU message that the adjacent bridge of the bridge received sends; The host name of bridge is defined as to the host name of territory root bridge, or obtains the host name of the territory root bridge that bridge prestores, or determine the host name of territory root bridge according to the BPDU message that the adjacent bridge of the bridge received sends; The host name of bridge is defined as to the host name of MSTI territory root bridge, or obtains the host name of the MSTI territory root bridge that bridge prestores, or determine the host name of MSTI territory root bridge according to the BPDU message that the adjacent bridge of the bridge received sends.
When the protocol version of bridge equipment execution is MSTP, network now can be divided into a plurality of territories, and each territory can comprise Multi-instance again.Whole network is by a total root bridge, be called Common and Internal Spanning Tree (Common and Internal Spanning Tree, CIST) total root bridge, there is a territory root bridge in each territory, be called CIST territory root bridge, each example has a root bridge, is called Multiple Spanning Tree Instance (Multiple Spanning Tree Instance, MSTI) territory root bridge.Therefore, can comprise a plurality of root bridge host name fields in the BPDU message of MSTP, total root bridge host name field and territory root bridge host name field can be arranged, and wherein root bridge host name field in territory can also be divided into CIST territory root bridge host name field and MSTI territory root bridge host name field.
Particularly, bridge 30 has multiple possible mode when determining own current total root bridge.For example, when bridge 30 device just are connected into network, when perhaps bridge 30 has just started, BPDU message due to bridge 30 other bridges transmissions that also acquisition is not attached thereto, bridge 30 bridge ID own can be considered to minimum bridge ID, thereby are confirmed as total root bridge ID, correspondingly, bridge 30 is defined as the host name of oneself host name of total root bridge, and is filled into total root bridge host name field of BPDU message.In addition, the host name of the root bridge that bridge 30 also can prestore this locality is filled into total root bridge host name field of BPDU message, and the host name of the root bridge that this prestores can be the host name of bridge 30, can be also the host name of certain bridge of artificial configuration.The bridge ID of other bridges in the BPDU that bridge 30 can also send according to other bridges that receive and total root bridge ID, pass through the total root bridge ID of the bridge ID of STP calculative determination minimum as bridge 30, and corresponding host name is filled into to total root bridge host name field of BPDU message.Similar ground, bridge 30 also can have above several mode while determining CIST territory root bridge and MSTI territory root bridge.
Alternatively, as an embodiment, generation unit 32 specifically for: using the root bridge host name field with specify the bridge host name field to add the data Data part of configuration bpdu message to as new field; Perhaps, by the root bridge host name field, specify the bridge host name field to write the BPDU message of new define styles.
Particularly, existing BPDU message has configuration bpdu message and topology change to circulate a notice of two types of (Topology Change Notification, TCN) BPDU message.Bridge 30 can increase the root bridge host name field and specify the bridge host name field on the basis of existing BPDU message, can also carry by the BPDU message that generates a newly-increased type host name of root bridge and appointment bridge.The method that increases field or the newly-increased type B PDU message of generation in concrete grammar and above-mentioned Fig. 1 is similar, repeats no more herein.
Alternatively, as an embodiment, transmitting element specifically for: periodically send BPDU message; When changing, the host name of bridge sends BPDU message.Can send in the mode of multicast BPDU message in addition.
Particularly, the BPDU message of the BPDU message that carries host name field in the embodiment of the present invention or newly-increased type can by bridge 30, according to certain time interval, the mode with multicast be sent.In addition, the BPDU message in sending the embodiment of the present invention in the mode of multicast in the time of can also changing in the host name of these bridge 30 equipment, the host name of the bridge 30 that the network maintenance staff originally views on the ground at bridge 30 equipment so also can be upgraded thereupon automatically.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thus can the quick lock in faulty equipment when network breaks down.And, while changing due to host name, bridge also can send the BPDU message that carries the host name after change, so the host name that the network maintenance staff can be after the bridge equipment place views change, thereby can improve the efficiency of network O&M.
Fig. 4 is the schematic block diagram of the bridge equipment of one embodiment of the invention.The bridge 40 of Fig. 4 comprises receiving element 41 and acquiring unit 42.
Receiving element 41 receives the bridge protocol data unit B PDU message that the first bridge in ethernet switched network sends, BPDU message is carried the host name of at least one bridge in Ethernet and MAC Address is controlled in the media interviews of at least one bridge, and at least one bridge comprises the first bridge.Obtain the host name of at least one bridge the BPDU message that acquiring unit 42 receives from receiving element 41.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thereby improved the efficiency of network failure location and network operation.
The host name that should be understood that bridge can be described a certain attribute information of this bridge equipment, and for example, geographical location information, be subordinate to information etc., can distinguish with other bridge equipments.The host name of bridge can set when bridge equipment dispatches from the factory, setting and change that also can be in use artificial.
Alternatively, as an embodiment, the BPDU message that receiving element 41 receives comprises root bridge host name field and appointment bridge host name field, and wherein the root bridge host name field is filled by the host name of the root bridge of the first bridge, specifies the bridge host name field to be filled by the host name of the first bridge.
Operation Spanning-Tree Protocol (Spanning Tree Protocol, STP) bridge equipment adopts bridge protocol data unit (Bridge Protocol Data Unit, BPDU) interactive information, comprise enough information in the middle of BPDU message to guarantee that equipment completes spanning tree and calculates, for example, root bridge ID,Gen road path cost, appointment bridge ID and designated port ID etc.Wherein, root bridge ID is comprised of the priority of root bridge and the MAC Address of root bridge, specifies bridge ID by the priority of specifying bridge and specifies the MAC Address of bridge to form.The first bridge is when generating BPDU message, need to carry out STP calculating usings and determines that minimum bridge ID is as current root bridge ID, correspondingly, the first bridge can by current root bridge ID the host name of corresponding bridge equipment be filled in the root bridge host name field of BPDU message.Similarly, the first bridge need to be determined appointment bridge ID and corresponding appointment bridge host name is filled in the appointment bridge host name field of BPDU message.It should be noted that, the STP here is broad sense, can be the common related protocols such as Spanning-Tree Protocol, RSTP (Rapid Spanning Tree Protocol, RSTP) or Multiple Spanning Tree Protocol (Multiple Spanning Tree Protocol, MSTP).
Alternatively, as an embodiment, when the protocol version of network is Spanning-Tree Protocol STP or RSTP RSTP, the host name of the root bridge of the first bridge comprises: the host name of the first bridge; The host name of the root bridge that perhaps the first bridge prestores; The host name with bridge that the BPDU message that perhaps the first bridge sends according to the adjacent bridge received is determined; When the protocol version of network is Multiple Spanning Tree Protocol MSTP, root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, and the host name of total root bridge of the first bridge comprises: the host name of the first bridge; The host name of total root bridge that perhaps the first bridge prestores; The host name of total root bridge that the BPDU message that perhaps the first bridge sends according to the adjacent bridge received is determined; The host name of the territory root bridge of the first bridge comprises: the host name of the first bridge; The host name of the territory root bridge that perhaps the first bridge prestores; The host name of the territory root bridge that the BPDU message that perhaps the first bridge sends according to the adjacent bridge received is definite; The host name of the MSTI territory root bridge of the first bridge comprises: the host name of the first bridge; The host name of the MSTI territory root bridge that perhaps the first bridge prestores; The host name of the MSTI territory root bridge that the BPDU message that perhaps the first bridge sends according to the adjacent bridge received is definite.Should be understood that the STP that is different from above-mentioned broad sense, when specific to protocol version, the most basic STP agreement of STP acute pyogenic infection of finger tip here.When the protocol version of bridge equipment execution is STP or RSTP, only have a root bridge in network, the first bridge has multiple possible mode when determining own current root bridge.For example, when the first bridge equipment just has been connected into network, when perhaps the first bridge has just started, BPDU message due to other bridges transmissions that also acquisition is not attached thereto of the first bridge, the bridge ID of the first bridge itself can be considered to minimum bridge ID, thereby is confirmed as root bridge ID, correspondingly, the first bridge is defined as the host name of oneself host name of root bridge, and is filled into the root bridge host name field of BPDU message.In addition, the host name of the root bridge that the first bridge also can prestore this locality is filled into the root bridge host name field of BPDU message, and the host name of the root bridge that this prestores can be the host name of the first bridge, can be also the host name of certain bridge of artificial configuration.Bridge ID and the root bridge ID of other bridges in the BPDU that the first bridge can also send according to other bridges that receive, pass through the root bridge ID of the bridge ID of STP calculative determination minimum as the first bridge, and corresponding host name is filled into to the root bridge host name field of BPDU message.When the protocol version of bridge equipment execution is MSTP, network now can be divided into a plurality of territories, and each territory can comprise Multi-instance again.Whole network is by a total root bridge, be called Common and Internal Spanning Tree (Common and Internal Spanning Tree, CIST) total root bridge, there is a territory root bridge in each territory, be called CIST territory root bridge, each example has a root bridge, is called Multiple Spanning Tree Instance (Multiple Spanning Tree Instance, MSTI) territory root bridge.Therefore, can comprise a plurality of root bridge host name fields in the BPDU message of MSTP, total root bridge host name field and territory root bridge host name field can be arranged, and wherein root bridge host name field in territory can also be divided into CIST territory root bridge host name field and MSTI territory root bridge host name field.Similar ground, the first bridge also can have above several mode while determining the total root bridge of CIST, CIST territory root bridge and MSTI territory root bridge.
Alternatively, as an embodiment, acquiring unit 42 obtains the host name of the root bridge of the first bridge specifically for the root bridge host name field from BPDU message, perhaps the root bridge host name field from BPDU message is obtained the host name of total root bridge of the first bridge, the host name of the MSTI territory root bridge of the host name of the territory root bridge of the first bridge and the first bridge; Appointment bridge host name field from BPDU message is obtained the host name of the first bridge.
Particularly, bridge 40 is when receiving BPDU message, except the processing according to the agreement already existing provisions, the host name information that also needs to extract root bridge and specify bridge device, also need to extract the information such as the total root bridge of CIST, CIST territory root bridge and MSTI territory root bridge for MSTP, so that generate new BPDU message for bridge 40, or check for the network maintenance staff.
Alternatively, as an embodiment, receiving element 41 can periodically receive BPDU message; Perhaps when changing, the host name of the first bridge receives BPDU message.
Particularly, the BPDU message of the BPDU message that carries host name field in the embodiment of the present invention or newly-increased type can by the first bridge, according to certain time interval, the mode with multicast be sent.Therefore, 40 of bridges can periodically receive the BPDU message that the first bridge sends, and in addition, because bridge 40 probably also has and is connected with other bridges, therefore also may receive the BPDU message that other bridges send.In addition, when the host name of the first bridge equipment changes, bridge 40 also can receive the BPDU message that the first bridge sends, and the host name of the first bridge that the network maintenance staff originally views on the ground at bridge 40 equipment so also can be upgraded thereupon automatically.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thus can the quick lock in faulty equipment when network breaks down.And, while changing due to host name, bridge also can send the BPDU message that carries the host name after change, so the host name that the network maintenance staff can be after the bridge equipment place views change, thereby can improve the efficiency of network O&M.
Fig. 5 is the schematic block diagram of the bridge equipment of another embodiment of the present invention.The bridge 50 of Fig. 5 comprises processor 51 and memory 52.Processor 51 is connected by bus system 53 with memory 52.
Memory 52 makes processor 51 carry out the instruction of following operation for storage: generate bridge protocol data unit B PDU message, BPDU message is carried the host name of at least one bridge in ethernet switched network and MAC Address is controlled in the media interviews of at least one bridge, and at least one bridge comprises bridge 50; The second bridge in ethernet switched network sends BPDU message.
Memory 52 can also make processor 51 carry out the instruction of following operation for storage: the bridge protocol data unit B PDU message of receiving the first bridge transmission of ethernet switched network, BPDU message is carried the host name of at least one bridge in Ethernet and MAC Address is controlled in the media interviews of at least one bridge, and at least one bridge comprises the first bridge; Obtain the host name of at least one bridge from BPDU message.
The embodiment of the present invention by carrying the host name of bridge in BPDU message, make the network maintenance staff to determine fast the target bridge according to the host name of carrying in BPDU message at the bridge equipment place, thereby improved the efficiency of network failure location and network operation.
In addition, bridge 50 can also comprise radiating circuit 54, receiving circuit 55 etc.Processor 51 is controlled the operation of bridge 50, and processor 51 can also be called CPU(Central Processing Unit, CPU).Memory 52 can comprise read-only memory and random access memory, and provides instruction and data to processor 51.The part of memory 52 can also comprise nonvolatile RAM (NVRAM).In concrete application, each assembly of bridge 50 is coupled by bus system 53, and wherein bus system 53, except comprising data/address bus, can also comprise power bus, control bus and status signal bus in addition etc.But, for the purpose of clearly demonstrating, in the drawings various buses all are designated as to bus system 53.
The method that the invention described above embodiment discloses can be applied in processor 51, or is realized by processor 51.Processor 51 may be a kind of integrated circuit (IC) chip, has the disposal ability of signal.In implementation procedure, each step of said method can complete by the integrated logic circuit of the hardware in processor 51 or the instruction of software form.Above-mentioned processor 51 can be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC) (ASIC), ready-made programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic device, discrete hardware components.Can realize or carry out disclosed each method, step and logic diagram in the embodiment of the present invention.General processor can be that microprocessor or this processor can be also the processors of any routine etc.Step in conjunction with the disclosed method of the embodiment of the present invention can directly be presented as that the hardware decoding processor is complete, or complete with the hardware in decoding processor and software module combination.Software module can be positioned at random asccess memory, and flash memory, read-only memory, in the storage medium of this area maturations such as programmable read only memory or electrically erasable programmable memory, register.This storage medium is positioned at memory 52, and the information in processor 51 read memories 52 completes the step of said method in conjunction with its hardware.
Those of ordinary skills can recognize, in conjunction with the various method steps of describing in embodiment disclosed herein and unit, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, step and the composition of each embodiment described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Those of ordinary skills can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The software program that the method for describing in conjunction with embodiment disclosed herein or step can use hardware, processor to carry out, or the combination of the two is implemented.Software program can be placed in the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
Although by reference to accompanying drawing mode in conjunction with the preferred embodiments, the present invention be have been described in detail, the present invention is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skills can carry out to embodiments of the invention modification or the replacement of various equivalences, and these modifications or replacement all should be in covering scopes of the present invention.

Claims (24)

1. the communication means of an ethernet switched network, is characterized in that, comprising:
The first bridge generates bridge protocol data unit B PDU message, described BPDU message is carried the host name of at least one bridge in described ethernet switched network and MAC Address is controlled in the media interviews of described at least one bridge, and described at least one bridge comprises described the first bridge;
Described the first bridge sends described BPDU message to the second bridge in described ethernet switched network.
2. method according to claim 1, it is characterized in that, described the first bridge generates bridge protocol data unit B PDU message, comprise: fill the host name of described the first bridge in the appointment bridge host name field of described BPDU message, and fill the host name of the root bridge of described the first bridge in the root bridge host name field of described BPDU message.
3. method according to claim 2, is characterized in that, when the protocol version of described network is Spanning-Tree Protocol STP or RSTP RSTP, before described the first bridge generates bridge protocol data unit B PDU message, also comprises:
The host name of described the first bridge is defined as to the host name of described root bridge; Perhaps
Obtain the host name of the described root bridge that described the first bridge prestores; Perhaps
The BPDU message sent according to the adjacent bridge of described the first bridge received is determined the host name of described root bridge.
4. method according to claim 2, it is characterized in that, when the protocol version of described network is Multiple Spanning Tree Protocol MSTP, described root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, before described the first bridge generates bridge protocol data unit B PDU message, also comprise:
The host name of described the first bridge is defined as to the host name of described total root bridge, perhaps obtain the host name of described total root bridge that described the first bridge prestores, or determine the host name of described total root bridge according to the BPDU message that the adjacent bridge of described the first bridge received sends;
The host name of described the first bridge is defined as to the host name of described territory root bridge, perhaps obtain the host name of the described territory root bridge that described the first bridge prestores, or determine the host name of described territory root bridge according to the BPDU message that the adjacent bridge of described the first bridge received sends;
The host name of described the first bridge is defined as to the host name of described MSTI territory root bridge, perhaps obtain the host name of the described MSTI territory root bridge that described the first bridge prestores, or determine the host name of described MSTI territory root bridge according to the BPDU message that the adjacent bridge of described the first bridge received sends.
5. according to the described method of claim 3 or 4, it is characterized in that, described the first bridge generates bridge protocol data unit B PDU message, comprising:
Add the data Data part of configuration bpdu message to using described root bridge host name field and described appointment bridge host name field as new field; Perhaps
By described root bridge host name field, described appointment bridge host name field writes the BPDU message of new define styles.
6. according to the described method of any one in claim 1-5, it is characterized in that, described the first bridge sends described BPDU message to the second bridge in described ethernet switched network, comprising:
Periodically send described BPDU message;
When changing, the host name of described the first bridge sends described BPDU message.
7. according to the described method of any one in claim 1-6, it is characterized in that, described the first bridge sends described BPDU message to the second bridge in described ethernet switched network, comprising: the mode with multicast sends described BPDU message.
8. the communication means of an ethernet switched network, is characterized in that, comprising:
The second bridge receives the bridge protocol data unit B PDU message that the first bridge in described ethernet switched network sends, described BPDU message is carried the host name of at least one bridge in described Ethernet and MAC Address is controlled in the media interviews of described at least one bridge, and described at least one bridge comprises described the first bridge;
Described the second bridge obtains the host name of described at least one bridge from described BPDU message.
9. method according to claim 8, it is characterized in that, described BPDU message comprises the root bridge host name field and specifies the bridge host name field, wherein said root bridge host name field is filled by the host name of the root bridge of described the first bridge, and described appointment bridge host name field is filled by the host name of described the first bridge.
10. method according to claim 9, is characterized in that, when the protocol version of described network is Spanning-Tree Protocol STP or RSTP RSTP, the host name of the root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the root bridge that perhaps described the first bridge prestores; The host name with bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is determined;
When the protocol version of described network is Multiple Spanning Tree Protocol MSTP, described root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, the host name of total root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of total root bridge that perhaps described the first bridge prestores; The host name of total root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is determined;
The host name of the territory root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the territory root bridge that perhaps described the first bridge prestores; The host name of the territory root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is definite;
The host name of the MSTI territory root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the MSTI territory root bridge that perhaps described the first bridge prestores; The host name of the MSTI territory root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is definite.
11. method according to claim 10, is characterized in that, described the second bridge obtains the host name of described at least one bridge from described BPDU message, comprising:
Root bridge host name field from described BPDU message is obtained the host name of the root bridge of described the first bridge, perhaps the root bridge host name field from described BPDU message is obtained the host name of total root bridge of described the first bridge, the host name of the MSTI territory root bridge of the host name of the territory root bridge of described the first bridge and described the first bridge;
Appointment bridge host name field from described BPDU message is obtained the host name of described the first bridge.
12. according to Claim 8-11, the described method of any one, is characterized in that, described the second bridge receives the bridge protocol data unit B PDU message that the first bridge in described ethernet switched network sends, and comprising:
Periodically receive described BPDU message;
When changing, the host name of described the first bridge receives described BPDU message.
13. the bridge of an ethernet switched network, is characterized in that, comprising:
Generation unit, for generating bridge protocol data unit B PDU message, described BPDU message is carried the host name of at least one bridge in described ethernet switched network and MAC Address is controlled in the media interviews of described at least one bridge, and described at least one bridge comprises described bridge;
Transmitting element, send for the second bridge to described ethernet switched network the described BPDU message that described generation unit generates.
14. bridge according to claim 13, it is characterized in that, described generation unit specifically for: fill the host name of described bridge in the appointment bridge host name field of described BPDU message, and fill the host name of the root bridge of described bridge in the root bridge host name field of described BPDU message.
15. bridge according to claim 14, is characterized in that, described bridge also comprises determining unit, and when the protocol version of described network is Spanning-Tree Protocol STP or RSTP RSTP, described determining unit is used for:
The host name of described bridge is defined as to the host name of described root bridge; Perhaps
Obtain the host name of the described root bridge that described bridge prestores; Perhaps
The BPDU message sent according to the adjacent bridge of the described bridge received is determined the host name of described root bridge.
16. bridge according to claim 14, it is characterized in that, described bridge also comprises determining unit, when the protocol version of described network is Multiple Spanning Tree Protocol MSTP, described root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, described determining unit is used for:
The host name of described bridge is defined as to the host name of described total root bridge, or obtains the host name of described total root bridge that described bridge prestores, or determine the host name of described total root bridge according to the BPDU message that the adjacent bridge of the described bridge received sends;
The host name of described bridge is defined as to the host name of described territory root bridge, or obtains the host name of the described territory root bridge that described bridge prestores, or determine the host name of described territory root bridge according to the BPDU message that the adjacent bridge of the described bridge received sends;
The host name of described bridge is defined as to the host name of described MSTI territory root bridge, perhaps obtain the host name of the described MSTI territory root bridge that described bridge prestores, or determine the host name of described MSTI territory root bridge according to the BPDU message that the adjacent bridge of the described bridge received sends.
17. according to the described bridge of claim 15 or 16, it is characterized in that, generation unit specifically for:
Add the data Data part of configuration bpdu message to using described root bridge host name field and described appointment bridge host name field as new field; Perhaps
By described root bridge host name field, described appointment bridge host name field writes the BPDU message of new define styles.
18. according to the described bridge of any one in claim 13-17, it is characterized in that, described transmitting element specifically for:
Periodically send described BPDU message;
When changing, the host name of described bridge sends described BPDU message.
19. according to the described bridge of any one in claim 13-18, it is characterized in that, described transmitting element also specifically for: the mode with multicast sends described BPDU message.
20. the bridge of an ethernet switched network, is characterized in that, comprising:
Receiving element, the bridge protocol data unit B PDU message sent for the first bridge that receives described ethernet switched network, described BPDU message is carried the host name of at least one bridge in described Ethernet and MAC Address is controlled in the media interviews of described at least one bridge, and described at least one bridge comprises described the first bridge;
Acquiring unit, obtain the host name of described at least one bridge for the described BPDU message received from described receiving element.
21. bridge according to claim 20, it is characterized in that, the BPDU message that described receiving element receives comprises the root bridge host name field and specifies the bridge host name field, wherein said root bridge host name field is filled by the host name of the root bridge of described the first bridge, and described appointment bridge host name field is filled by the host name of described the first bridge.
22. bridge according to claim 21, is characterized in that, when the protocol version of described network is Spanning-Tree Protocol STP or RSTP RSTP, the host name of the root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the root bridge that perhaps described the first bridge prestores; The host name with bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is determined;
When the protocol version of described network is Multiple Spanning Tree Protocol MSTP, described root bridge comprises total root bridge, at least one territory root bridge and at least one Multiple Spanning Tree Instance MSTI territory root bridge, the host name of total root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of total root bridge that perhaps described the first bridge prestores; The host name of total root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is determined;
The host name of the territory root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the territory root bridge that perhaps described the first bridge prestores; The host name of the territory root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is definite;
The host name of the MSTI territory root bridge of described the first bridge comprises: the host name of described the first bridge; The host name of the MSTI territory root bridge that perhaps described the first bridge prestores; The host name of the MSTI territory root bridge that the BPDU message that perhaps described the first bridge sends according to the adjacent bridge received is definite.
23. bridge according to claim 22, is characterized in that, described acquiring unit specifically for:
Root bridge host name field from described BPDU message is obtained the host name of the root bridge of described the first bridge, perhaps the root bridge host name field from described BPDU message is obtained the host name of total root bridge of described the first bridge, the host name of the MSTI territory root bridge of the host name of the territory root bridge of described the first bridge and described the first bridge;
Appointment bridge host name field from described BPDU message is obtained the host name of described the first bridge.
24. according to the described bridge of any one in claim 20-23, it is characterized in that, described receiving element specifically for:
Periodically receive described BPDU message;
When changing, the host name of described the first bridge receives described BPDU message.
CN201310408398.8A 2013-09-09 2013-09-09 Method and equipment for communication of Ethernet switched network Active CN103457778B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310408398.8A CN103457778B (en) 2013-09-09 2013-09-09 Method and equipment for communication of Ethernet switched network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310408398.8A CN103457778B (en) 2013-09-09 2013-09-09 Method and equipment for communication of Ethernet switched network

Publications (2)

Publication Number Publication Date
CN103457778A true CN103457778A (en) 2013-12-18
CN103457778B CN103457778B (en) 2017-02-15

Family

ID=49739765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310408398.8A Active CN103457778B (en) 2013-09-09 2013-09-09 Method and equipment for communication of Ethernet switched network

Country Status (1)

Country Link
CN (1) CN103457778B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495322A (en) * 2018-12-25 2019-03-19 华为技术有限公司 Network failure locating method, relevant device and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001165A (en) * 2006-01-11 2007-07-18 大唐移动通信设备有限公司 Network failure recovery method with redundancy port
CN101523805A (en) * 2006-09-28 2009-09-02 西门子公司 Method for reconfiguring a communication network
CN101699799A (en) * 2009-11-13 2010-04-28 福建星网锐捷网络有限公司 Method and network equipment for preventing network loop and spanning tree protocol network system
US20110317548A1 (en) * 2010-06-29 2011-12-29 Ruggedcom Inc. Method of and device for recovering from a root bridge failure
CN102510414A (en) * 2011-11-17 2012-06-20 华为数字技术有限公司 Host name transfer method and device adopting same
US8355348B1 (en) * 2009-08-17 2013-01-15 Calix, Inc. Joining multiple spanning tree networks across ring network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001165A (en) * 2006-01-11 2007-07-18 大唐移动通信设备有限公司 Network failure recovery method with redundancy port
CN101523805A (en) * 2006-09-28 2009-09-02 西门子公司 Method for reconfiguring a communication network
US8355348B1 (en) * 2009-08-17 2013-01-15 Calix, Inc. Joining multiple spanning tree networks across ring network
CN101699799A (en) * 2009-11-13 2010-04-28 福建星网锐捷网络有限公司 Method and network equipment for preventing network loop and spanning tree protocol network system
US20110317548A1 (en) * 2010-06-29 2011-12-29 Ruggedcom Inc. Method of and device for recovering from a root bridge failure
CN102510414A (en) * 2011-11-17 2012-06-20 华为数字技术有限公司 Host name transfer method and device adopting same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495322A (en) * 2018-12-25 2019-03-19 华为技术有限公司 Network failure locating method, relevant device and computer storage medium

Also Published As

Publication number Publication date
CN103457778B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN103607349A (en) Method for determining route in virtual network and provider edge equipment
CN107071083B (en) Embedded multi-board-card IP address generation method and device
CN104386094A (en) Method and device for generating rail transit station line diagram
CN110505152A (en) Route filtering method, device and electronic equipment
CN106921578A (en) The generation method and device of a kind of forwarding-table item
CN106484652B (en) A kind of more queue communication method and system based on NTB hardware
CN106878199A (en) The collocation method and device of a kind of access information
CN109474495A (en) A kind of tunnel detection method and device
CN103634145A (en) Method for realizing independent management and centralized management of interchanger in cloud equipment
CN104965676A (en) Random access memory access method and apparatus and control chip
CN114143283A (en) Tunnel self-adaptive configuration method and device, center-end equipment and communication system
CN110839007B (en) Cloud network security processing method and device and computer storage medium
CN108304333A (en) A kind of one master and multiple slaves formula bus
EP3748913A1 (en) Link bandwidth utilization rate acquisition method and device, and terminal
KR102492097B1 (en) Message generation method and apparatus, and message processing method and apparatus
CN111866916B (en) Service configuration method, equipment and server
CN103457778A (en) Method and equipment for communication of Ethernet switched network
CN104536926A (en) Control method and device of serial devices
CN109150707B (en) Routing path analysis method and device
CN110535724A (en) Application program net reading and writing method for limiting, device, electronic equipment and storage medium
CN110995483A (en) Network topology discovery method and device
CN103889021A (en) Low power and lossy network member updating method and DODAG root node
CN103227723B (en) A kind of service issuing method, service publication server and service register machine
CN104852849A (en) OSPF configuration method and related device
CN109005122A (en) File transmitting method, device and the network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant