[go: up one dir, main page]

CN103095545A - Message transmitting method and switching device based on bridge protocol data unit tunnel - Google Patents

Message transmitting method and switching device based on bridge protocol data unit tunnel Download PDF

Info

Publication number
CN103095545A
CN103095545A CN2013100031448A CN201310003144A CN103095545A CN 103095545 A CN103095545 A CN 103095545A CN 2013100031448 A CN2013100031448 A CN 2013100031448A CN 201310003144 A CN201310003144 A CN 201310003144A CN 103095545 A CN103095545 A CN 103095545A
Authority
CN
China
Prior art keywords
message
lldp
port
equipment
mapped identification
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
CN2013100031448A
Other languages
Chinese (zh)
Other versions
CN103095545B (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201310003144.8A priority Critical patent/CN103095545B/en
Publication of CN103095545A publication Critical patent/CN103095545A/en
Application granted granted Critical
Publication of CN103095545B publication Critical patent/CN103095545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message transmitting method based on a bridge protocol data unit tunnel. The message transmitting method based on the bridge protocol data unit tunnel comprises the following steps: a phase encoding (PE) device basing on link layer discovery protocol (LLDP) function of bridge protocol data unit tunnel (BPDU)-Tunnel on each port enables of a chip enable (CE) side, at the same time mapping identification for the port enables of the CE side, and transmitting carrying the mapping identification of the port enable when transmitting passing through LLDP message received by any port; when receiving message transmitted by operator networks, analyzing and obtaining the mapping identification carried by the BPDU-Tunnel message, and transmitting the message through the enabled mapping identification port. Based on the same concept, the invention further provides a switching device which can reduce transmitting of unnecessary message and enable a CE device to flexibly build LLDP neighboring nodes.

Description

A kind of message forwarding method and switching equipment based on tunnel, bridge protocol data unit
Technical field
The application relates to communication technical field, particularly a kind of message forwarding method and switching equipment based on tunnel, bridge protocol data unit.
Background technology
Tunnel, bridge protocol data unit (BPDU Tunnel) technology makes the user can build by carrier network the double layer network of oneself after occurring, and this makes the different piece of same private network can be in the both sides of runner public-network.
Referring to Fig. 1, Fig. 1 is BPTU tunnel networking structure schematic diagram.The Link Layer Discovery Protocol that in Fig. 1, public network PE equipment 1 is sent private network CE equipment 1 (Link Layer Discovery Protocol, LLDP) message encapsulates, two-layer protocol message after encapsulation is called BPDU Tunnel message, its target MAC (Media Access Control) address is replaced to a specific multicast mac address, then forward in carrier network.As, the purpose MAC of LLDP message is 0x0180-C200-000E, when the LLDP message arrives provider network edge (PE) equipment 1 from customer edge (CE) equipment 1, carrying out MAC at PE equipment 1 end replaces, suppose to replace with default 0x010F-E200-0003, BPDU Tunnel message will be take 0x010F-E200-0003 as purpose MAC at the public network repeating so.
This BPDU Tunnel message is forwarded to the PE equipment 2 of the carrier network other end take 0x010F-E200-0003 as purpose MAC, after carrying out decapsulation, PE equipment 2 places are reduced to original LLDP message, and send to CE equipment 2, concerning CE equipment 2, the purpose MAC of the LLDP message of receiving remains 0x0180-C200-000E, and perception is less than the variation of LLDP message.
CE equipment 2 is also mutual in the same way toward the protocol massages that CE equipment 1 sends.Wherein, the target MAC (Media Access Control) address of LLDP message has uniqueness, and the multicast mac address after replacement also has uniqueness.
Support that at present the agreement of BPDU Tunnel is more, as: the VLAN log-in protocol (GVRP) in CISCO discovery protocol (CDP), device link detection protocol (DLDP), Generic Attribute Registration Protocol, Link Aggregation Control Protocol (LACP), LLDP, Spanning-Tree Protocol (STP), every vlan spanning-tree (PVST), vlan trunking protocol (vtp) etc.Because the BPDU message of different user network is broadcasted in the different VLAN of carrier network, only have the BPDU message of different user network mutually to isolate, just can independently calculate.
For the LLDP agreement, usually be all the broadcasting one to one of carrying out protocol massages on direct connected link, do not have problem in calculating, but after passing through carrier network in BPDU Tunnel mode, link is not to arrive one to one the opposite end, when PE equipment was connected with a plurality of CE equipment, BPDU Tunnel message can be broadcast to each port, by the CE device forwards message of each port to correspondence.When number of links is more, each CE equipment can receive this should not be forwarded to this equipment, and due to the message of all broadcasting at each port of PE equipment, when receiving message, CE equipment will be set up neighbours with the opposite end CE equipment that sends message, and generate a plurality of LLDP neighborhood tables across public network, may produce bulk redundancy.
Suppose that PE equipment 1 side has that N bar link is connected with private network, PE equipment 2 sides have M bar link to be connected with private network, in the private network of PE equipment 1 side, single device will have (N*M+N* (N-1)) individual LLDP neighbor entry, in the private network of PE equipment 2 sides, single device has (N*M+M* (M-1)) individual LLDP neighbor entry.In fact a lot of list items are redundancies, also can cause a lot of links because the restriction of specification can't form the LLDP neighbor entry.
In addition, form the application scenarios of the relation of respective links one by one for some hope, as the LACP agreement, this neighborhood does not obviously satisfy the requirement of using; Can utilize VLAN to come isolated port in practical application, make respective link corresponding one by one.
Referring to Fig. 2, Fig. 2 is LLDP cross operator network link corresponding networking schematic diagram one by one.As can be seen from Fig. 2, a link needs a VLAN ID to come isolated port to make it to form one-to-one relationship, but such realization will be wasted a large amount of VLAN resources.
Summary of the invention
In view of this, the application provides a kind of message forwarding method and switching equipment based on tunnel, bridge protocol data unit, can reduce the forwarding of unnecessary message, sets up flexibly the LLDP neighborhood.
For solving the problems of the technologies described above, technical scheme of the present invention is achieved in that
A kind of message forwarding method based on tunnel, bridge protocol data unit, be applied in LLDP cross operator network organizing, connect by BPDU Tunnel between PE equipment in described networking, PE equipment in described networking is when the LLDP function that enables for each CE side ports based on BPDU-Tunnel, for this port enables mapped identification, comprising:
If this PE equipment receives by arbitrary port the LLDP message that the CE side sends, when this LLDP message is encapsulated as BPDU Tunnel message, be encapsulated as the mapped identification that this port enables, and at described carrier network repeating;
If this PE equipment receives the BPDU Tunnel message that the carrier network side sends, when the BPDU Tunnel message that receives is descapsulated into the LLDP message, resolve and obtain the mapped identification that this BPDU Tunnel message carries, and with the LLDP message after decapsulation, the port repeat by the mapped identification that enabled to obtain is to corresponding CE equipment.
A kind of switching equipment, can be applicable in Link Layer Discovery Protocol LLDP cross operator network organizing, in this networking, as connecting by BPDU Tunnel between the switching equipment of service provider network edge device, described switching equipment comprises: enable unit, receiving element, encapsulation unit, decapsulation unit and transmitting element;
The described unit that enables is when being used to each port of CE side to enable LLDP function based on BPDU-Tunnel, for this port enables mapped identification;
Described receiving element is used for receiving by arbitrary port the LLDP message that the CE side sends; Receive the BPDU Tunnel message that the carrier network side sends;
Described encapsulation unit receives by this port the LLDP message that the CE side sends if be used for described receiving element, when this LLDP message is encapsulated as BPDU Tunnel message, encapsulates the described mapped identification that the unit enables for this port that enables;
If described decapsulation unit when receiving the BPDU Tunnel message of carrier network side transmission for described receiving element, when the BPDU Tunnel message that receives is descapsulated into the LLDP message, is resolved and is obtained the mapped identification that this BPDU Tunnel message carries;
Described transmitting element is used for the BPDU Tunnel message after described encapsulation unit encapsulation at described carrier network repeating; With the LLDP message after described decapsulation unit decapsulation, by described enable cell enable the port repeat of mapped identification of this acquisition give corresponding CE equipment.
In sum, the application when each port of CE side enables LLDP function based on BPDU-Tunnel, enables mapped identification by PE equipment, when forwarding the LLDP message that receives by arbitrary port, carries the mapped identification that enables for this port; When receiving the message of carrier network repeating, resolve the mapped identification of carrying in acquisition BPDUTunnel message, and this message of port repeat by having enabled this mapped identification, the port that does not namely enable the mapped identification of this parsing acquisition does not forward this message, can reduce the forwarding of unnecessary message, make CE equipment set up flexibly the LLDP neighborhood.
Description of drawings
Fig. 1 is BPTU tunnel networking structure schematic diagram;
Fig. 2 is LLDP cross operator network link corresponding networking schematic diagram one by one;
Fig. 3 is based on the message forwarding method schematic flow sheet in tunnel, bridge protocol data unit in the embodiment of the present invention one;
Fig. 4 is based on the message forwarding method schematic flow sheet in tunnel, bridge protocol data unit in the embodiment of the present invention two;
Fig. 5 is LLDP TLV format content schematic diagram;
Fig. 6 is Organizationally Specific TLV format content schematic diagram;
Fig. 7 is LLDP message structure schematic diagram in the specific embodiment of the invention;
Fig. 8 is the LLDP networking schematic diagram based on BPDU Tunnel in the embodiment of the present invention three;
Fig. 9 is applied to the structural representation of the switching equipment of above-mentioned technology in the specific embodiment of the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, scheme of the present invention is described in further detail.
Propose a kind of message forwarding method based on tunnel, bridge protocol data unit in the embodiment of the present invention, be applied in LLDP cross operator network organizing, connect by BPDU Tunnel between PE equipment in this networking.In this technical scheme, PE equipment when the LLDP function that enables for each port of CE side based on BPDU-Tunnel, enables mapped identification for this port simultaneously.When this PE equipment receives the message of CE side transmission by arbitrary port, carry the mapped identification that enables for this port; When receiving the message of carrier network side, resolve and obtain the mapped identification that this message carries, the port repeat of the mapped identification by having enabled this acquisition is given corresponding CE equipment, namely, do not deposit in the mapped identification that arbitrary port enables when resolving the mapped identification that obtains, not by this message of this port repeat.By the method, can reduce the forwarding of unnecessary message, set up flexibly the LLDP neighborhood.
In specific implementation, prevent in the networking of loopback at needs, this PE equipment is unique in this locality in the mapped identification that enables for each port of CE side.
Embodiment one
Referring to Fig. 3, Fig. 3 is based on the message forwarding method schematic flow sheet in tunnel, bridge protocol data unit in the embodiment of the present invention one.Concrete steps are:
Step 301 if this PE equipment receives by arbitrary port the LLDP message that the CE side sends, when this LLDP message is encapsulated as BPDU Tunnel message, is encapsulated as the mapped identification that this port enables, and at described carrier network repeating.
This PE equipment is that the mapped identification that enables of each port of CE side is one or more, therefore, when being encapsulated as the mapped identification that this port enables, encapsulates one or more, has namely enabled several mapped identification, namely when encapsulated message, encapsulates several.
This PE equipment is when enabling a plurality of mapped identification for certain port, and the number of the mapped identification that enables is no more than 255, when the mapped identification number that enables when needs surpasses 255, can realize based on the LLDP function of BPDU-Tunnel by only enabling.
Step 302, if this PE equipment receives the BPDU Tunnel message that the carrier network side sends, when the BPDU Tunnel message that receives is descapsulated into the LLDP message, resolve and obtain the mapped identification that this BPDU Tunnel message carries, and with the LLDP message after decapsulation, the port repeat of the mapped identification by having enabled this acquisition is given corresponding CE equipment.
The mapped identification that BPDU Tunnel message carries is one or more, when the mapped identification of resolving acquisition is 1, as long as enabled the CE side ports of this mapped identification, and will be by the LLDP message after this port repeat decapsulation; When the mapped identification that resolve to obtain when being a plurality of, as long as enabled to resolve any CE side ports in the mapped identification that obtains, will be by the LLDP message after this port repeat encapsulation.
The LLDP message of this PE equipment after with decapsulation in this step, the port repeat of the mapped identification by having enabled this acquisition makes this CE equipment set up the LLDP neighbor entry of cross operator network according to this LLDP message to corresponding CE equipment.Be all the message of necessary forwarding due to the message that is transmitted to CE equipment, can not exist and also to pass through this port repeat by the message of other port repeats to this CE, so the LLDP neighbor entry number of setting up on CE equipment be limited.Can be because of the restriction of specification, some necessary LLDP neighbor entry can not generate.
Embodiment two
Referring to Fig. 4, Fig. 4 is based on the message forwarding method schematic flow sheet in tunnel, bridge protocol data unit in the embodiment of the present invention two.Concrete steps are:
Step 401, if this PE equipment receives by arbitrary port the LLDP message that the CE side sends, when this LLDP message is encapsulated as BPDU Tunnel message, add expansion type length value (TLV) in this BPDU Tunnel message, TLV carries the mapped identification that enables for this port by this expansion, and at described carrier network repeating.
Referring to Fig. 5, Fig. 5 is LLDP TLV format content schematic diagram.Fig. 5 intermediate value is that 127 TLV type is used for expanded definition, can define sub tlv.802.1AB middle definition is referring to Fig. 6, Fig. 6 is for organizing distinctive TLV(Organizationally Specific TLV) the format content schematic diagram.Wherein, the sub type that is worth for 5-255 is reserved, realizes expansion TLV in the specific embodiment of the invention by this interval sub type value.
According to the standard criterion of IEEE802.1AB definition, will increase the expansion that a sub tlv realizes the LLDP attribute under BPDU Tunnel in type127 in the specific embodiment of the invention, namely carry the mapped identification that enables in BPDU Tunnel message.Referring to Fig. 7, Fig. 7 is LLDP message structure schematic diagram in the specific embodiment of the invention.
LLDP message after encapsulation in Fig. 7 in the visible specific embodiment of the invention, namely BPDU Tunnel message, compare with existing BPDU Tunnel message, increased the TLV of an expansion.Other realize that with having realization now, after arriving public network as the B-DMAC:LLDP message, BPDU Tunnel is the purpose MAC of its replacement; After the B-SMAC:LLDP message arrived public network, BPDU Tunnel was the source MAC of its replacement; B-Tag: message is at the affiliated VLAN of public network transmission; Type:0x88CC.
In the specific embodiment of the invention, the TLV type value of newly-increased expansion TLV is 127; The TLV Value of expansion TLV comprises: organization unique identifier (OUI), subtype (sub-type) and mapped identification, wherein, the value of described sub-type is to be not less than 5 and be not more than 255 integer, as long as other sub type conflicts of discord.Mapped identification (Mapping ID) is used for being stored as the mapped identification that port enables, and the number of the mapped identification of storage is no more than 255, and the span of each mapped identification is 1 to 255.
Step 402, if this PE equipment receives the BPDU Tunnel message that the carrier network side sends, when the BPDU Tunnel message that receives is descapsulated into the LLDP message, resolve and obtain the mapped identification that this BPDU Tunnel message carries, the mapped identification that arbitrary mapped identification in the mapped identification of this acquisition and local each port of CE side enable is mated, and with the LLDP message after decapsulation, exist when mating appropriate ports to be transmitted to corresponding CE equipment.
The mapped identification that arbitrary mapped identification in the mapped identification that in this step, this PE equipment will obtain and local each port of CE side enable is mated, as long as there is the arbitrary mapped identification in the mapped identification that obtains in the mapped identification that enables, be defined as existing coupling.
Embodiment three
Illustrate the message forwarding method in tunnel, bridge protocol data unit to set up the many-one neighborhood.Referring to Fig. 8, Fig. 8 is the LLDP networking schematic diagram based on BPDU Tunnel in the embodiment of the present invention three.
The link 1, link 2, link 3 of supposing CE equipment 1 needs and the link 3 of CE equipment 2 is set up neighborhood.When PE equipment 1 enables LLDP function based on BPDU-Tunnel at its port PE1_Port1, enable simultaneously mapped identification 1, specifically can realize by enabling bpdu-tunnel dot1q lldp1 order line; When PE equipment 1 enables LLDP function based on BPDU-Tunnel at its port PE1_Port2, enable simultaneously mapped identification 2, specifically can realize by enabling bpdu-tunnel dot1q lldp2 order line; When PE equipment 1 enables LLDP function based on BPDU-Tunnel at its port PE1_Port3, enable simultaneously mapped identification 3, specifically can realize by enabling bpdu-tunnel dot1q lldp3 order line.
PE equipment 2 enables LLDP function based on BPDU-Tunnel at its port PE2_Port3, enables simultaneously mapped identification 1,2,3, specifically can realize by enabling bpdu-tunnel dot1q lldp123 order line.
PE equipment 1 in carrier network is if receive by port PE1_Port1 the LLDP message that CE equipment 1 sends by port CE1_Port1.This LLDP message is encapsulated, and PE equipment 1 is revised as B-DMAC with the dmac address (0x0180-c200-000E) of LLDP message, as, special multicast mac address, be assumed to be default 0x010F-E200-0003, and the SMAC of correspondence is revised as B-SMAC, be i.e. the MAC Address of PE equipment 1.And be 1 because port PE1_Port1 enables mapped identification, when this LLDP message is encapsulated as BPDU Tunnel message, need to expands at it and carry mapped identification 1 in TLV.As seen when the LLDP message is encapsulated, with existing the realization, just the mapped identification that enables is encapsulated in the expansion TLV of message.
in carrier network, BPDU Tunnel message is taken as in the VLAN of data message under the user and forwards, output at carrier network, this BPDU Tunnel message of PE equipment 2 decapsulations, the message that is 0x010F-E200-0003 with target MAC (Media Access Control) address identifies, its dmac address is reduced to 0x0180-C200-000E, the SMAC address is reduced to the MAC Address of CE equipment 1, and parsing obtains the mapped identification 1 that this BPDUTunnel message carries, coupling mapped identification 1 in the mapped identification that each port of the CE of PE equipment 2 side enables, there is mapped identification 1 in the mapped identification that a certain port enables, determine to exist coupling, by above-mentioned configuration as can be known, the mapped identification that enables at port PE2_Port3 is 1, 2, 3, therefore, LLDP message by port PE2_Port3 after with decapsulation sends to CE equipment 2.
Equally, when CE equipment 1 sent message by port CE1_Port2 or CE1_Port3,2 pairs of messages that receive of PE equipment 1 and PE equipment carried out similar processing.When CE equipment 2 receives by port CE2_Port3 cross operator network the message that CE equipment 1 sends by port CE1_Port1, port CE1_Port2, port CE1_Port3, generate the LLDP neighbor entry in this locality.Referring to table 1, the content that the LLDP neighbor entry that table 1 generates for CE equipment 2 comprises.
Figure BDA00002702527000071
Table 1
By as seen from Table 1, the link 3 of CE equipment 2 needs and link 1, the link 2 of CE equipment 1, when link 3 is set up neighborhood, only need to generate the LLDP neighbor entry shown in table 1.If have now when realizing that PE equipment 2 receives BPDU Tunnel message, can be at all of the port broadcasting packet of CE side, CE equipment 2 can receive the LLDP message of PE equipment 2 broadcasting by port CE2_Port1, port CE2_Port2 and port CE2_Port3, can generate each port respectively with port CE1_Port1, port CE1_Port2, neighbor entry that port CE1_Port3 is relevant.Therefore can set up LLDP neighborhood flexibly for the private network of public network both sides by technical scheme of the present invention, and PE equipment has reduced the transmission of unnecessary message.
PE equipment 2 in carrier network, if receive by port PE2_Port3 the LLDP message that CE equipment 2 sends by port CE2_Port3, this LLDP message is encapsulated, PE equipment 2 is revised as B-DMAC with the dmac address (0x0180-c200-000E) of LLDP message, as, special multicast mac address is assumed to be default 0x010F-E200-0003, and the SMAC of correspondence is revised as B-SMAC, i.e. the MAC Address of PE equipment 2.And be 1,2,3 because port PE2_Port3 enables mapped identification, when this LLDP message is encapsulated as BPDU Tunnel message, need to expands at it and carry mapped identification 1,2,3 in TLV.As seen when the LLDP message is encapsulated, with existing the realization, just the mapped identification that enables is encapsulated in the expansion TLV of message.
in carrier network, BPDU Tunnel message is taken as in the VLAN of data message under the user and forwards, output at carrier network, this BPDU Tunnel message of PE equipment 1 decapsulation, the message that is 0x010F-E200-0003 with target MAC (Media Access Control) address identifies, its dmac address is reduced to 0x0180-C200-000E, the SMAC address is reduced to the MAC Address of CE equipment 2, and parsing obtains the mapped identification 1 that this BPDUTunnel message carries, 2, 3, coupling mapped identification 1 in the mapped identification that each port of the CE of PE equipment 1 side enables, 2, 3, there is mapped identification 1 in the mapped identification that a certain port enables, 2 or 3 o'clock, determine to exist coupling, by above-mentioned configuration as can be known, the mapped identification that enables at port PE1_Port1 is 1, the mapped identification that enables at port PE1_Port2 is 2, the mapped identification that enables at port PE1_Port3 is 3, therefore LLDP message that need to be after these three these decapsulations of port repeat.
When CE equipment 1 receives from port CE1_Port1, CE1_Port2, CE1_Port3 cross operator network the LDDP message that CE2 sends by port CE2_Port3 respectively, generate the LLDP neighbor entry in this locality.Referring to table 2, the content that the LLDP neighbor entry that table 2 generates for CE equipment 1 comprises.
Figure BDA00002702527000081
Table 2
By as seen from Table 2, when the link 3 of the link 1 of CE equipment 1, link 2, link 3 needs and CE equipment 2 is set up neighborhood, only need to generate the LLDP neighbor entry shown in table 2.If have now when realizing that PE equipment 1 receives BPDU Tunnel message, can be at all of the port broadcasting packet of CE side, CE equipment 1 can receive by port CE2_Port1, port CE2_Port2 and port CE2_Port3 the LLDP message of PE equipment 1 broadcasting, CE equipment 3 can receive by port CE3_Port1 and port CE3_Port2 the LLDP message of PE equipment 1 broadcasting, and CE equipment 3 can generate respectively local each port neighbor entry relevant with port CE2_Port3 with CE equipment 1 in various places.Therefore can set up LLDP neighborhood flexibly for the private network of public network both sides by technical scheme of the present invention, and PE equipment has reduced the transmission of unnecessary message.
When needs are set up one to one the LLDP neighborhood, set up neighborhood as link 4 needs of CE equipment 3 and the link 2 of CE equipment 2, when only needing PE equipment 1 to enable BPDU Tunnel function based on LLDP on its port PE1_Port4, enable mapped identification 4, when PE equipment 2 enables based on the BPDU Tunnel function of LLDP on its port PE2_Port2, enable mapped identification 4 and get final product.
Above-mentioned mapped identification 1,2, the 3 and 4 concrete numerical value for concrete example, concrete user can according to link in network what etc. any number of situation in selecting 1 to 255, if need to prevent loopback in this networking, PE equipment is that the mapped identification that enables of each port of CE side is unique in this locality, reduces the redundancy of LLDP neighbor entry.
Above-mentioned to setting up many-one and man-to-man LLDP neighborhood is given an example respectively, when needs are set up the LLDP neighborhood of multi-to-multi, realize realizing similarly with above-mentioned, exemplify no longer one by one here.
Based on same inventive concept, also propose a kind of switching equipment in the specific embodiment of the invention, can be applicable in LLDP cross operator network organizing, connect as passing through BPDU Tunnel between the switching equipment of service provider network edge device in this networking.Referring to Fig. 9, Fig. 9 is applied to the structural representation of the switching equipment of above-mentioned technology in the specific embodiment of the invention.This switching equipment comprises: enable unit 901, receiving element 902, encapsulation unit 903, decapsulation unit 904 and transmitting element 905.
Enable unit 901, when being used to each port of CE side to enable LLDP function based on BPDU-Tunnel, for this port enables mapped identification.
Receiving element 902 is used for receiving by arbitrary port the LLDP message that the CE side sends; Receive the BPDU Tunnel message that the carrier network side sends.
Encapsulation unit 903 receives by this port the LLDP message that the CE side sends if be used for receiving element 902, and when this LLDP message was encapsulated as BPDU Tunnel message, encapsulation enabled the mapped identification that unit 901 enables for this port.
If decapsulation unit 904 when receiving the BPDU Tunnel message of carrier network side transmission for receiving element 902, when the BPDU Tunnel message that receives is descapsulated into the LLDP message, is resolved and is obtained the mapped identification that this BPDU Tunnel message carries.
Transmitting element 905 is used for the BPDU Tunnel message after encapsulation unit 903 encapsulation at described carrier network repeating; With the LLDP message after decapsulation unit 904 decapsulations, the port repeat that has enabled the mapped identification of this acquisition by enabling unit 901 is given corresponding CE equipment.
Preferably,
Transmitting element 905, be further used for the LLDP message after decapsulation unit 904 decapsulations, the port repeat that has enabled the mapped identification of this acquisition by enabling unit 901 is given corresponding CE equipment, makes this CE equipment set up LLDP neighbor entry across described carrier network according to this LLDP message.
Preferably,
Enable the mapped identification that unit 901 enables for each port of CE side unique in this locality.
Preferably,
Encapsulation unit 903, when being used for this LLDP message is encapsulated as BPDU Tunnel message, add expansion TLV in this BPDU Tunnel message, TLV carries mapped identification by this expansion, wherein, the TLVValue of described expansion TLV comprises: OUI, sub-type and mapped identification, the value of described sub-type are to be not less than 5 and be not more than 255 integer.
Preferably,
Decapsulation unit 904 be used for to resolve obtains the mapped identification that this BPDU Tunnel message carries, and the mapped identification that the arbitrary mapped identification in the mapped identification of this acquisition and local each port of CE side enable is mated.
Transmitting element 905 is used for the LLDP message after decapsulation, exists appropriate ports to be transmitted to corresponding CE equipment when mating by decapsulation unit.
The unit of above-described embodiment can be integrated in one, and also can separate deployment; A unit can be merged into, also a plurality of subelements can be further split into.
In sum, in the specific embodiment of the invention by PE equipment when each port of CE side enables LLDP function based on BPDU-Tunnel, enable mapped identification, when forwarding the LLDP message that receives by arbitrary port, carry the mapped identification that enables for this port; When receiving the message of carrier network repeating, resolve the mapped identification of carrying in acquisition BPDU Tunnel message, and this message of port repeat by having enabled this mapped identification, the port that does not namely enable the mapped identification of this parsing acquisition does not forward this message, can reduce the forwarding of unnecessary message, make CE equipment set up flexibly the LLDP neighborhood.
It can be one or more being given in the mapped identification that each port enables in specific embodiment, can satisfy one to one like this, many-one, and the foundation of the LLDP neighborhood of multi-to-multi, thereby make the foundation of neighborhood more meet user's use intention.
The above is only preferred embodiment of the present invention, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. message forwarding method based on tunnel, bridge protocol data unit BPDU Tunnel, be applied in Link Layer Discovery Protocol LLDP cross operator network organizing, connect by BPDU Tunnel between service provider network edge PE equipment in described networking, it is characterized in that, in described networking, PE equipment is when the LLDP function that enables for each customer edge CE side ports based on BPDU-Tunnel, for this port enables mapped identification, comprising:
If this PE equipment receives by arbitrary port the LLDP message that the CE side sends, when this LLDP message is encapsulated as BPDU Tunnel message, be encapsulated as the mapped identification that this port enables, and at described carrier network repeating;
If this PE equipment receives the BPDU Tunnel message that the carrier network side sends, when the BPDU Tunnel message that receives is descapsulated into the LLDP message, resolve and obtain the mapped identification that this BPDU Tunnel message carries, and with the LLDP message after decapsulation, the port repeat by the mapped identification that enabled to obtain is to corresponding CE equipment.
2. method according to claim 1, is characterized in that, described method further comprises:
The LLDP message of this PE equipment after with decapsulation, the port repeat by the mapped identification that enabled to obtain be to corresponding CE equipment, makes this CE equipment set up LLDP neighbor entry across described carrier network according to this LLDP message.
3. method according to claim 1, is characterized in that, this PE equipment is that the mapped identification that enables of each port of CE side is unique in this locality.
4. according to claim 1-3 described methods of any one, it is characterized in that, it is described when this LLDP message is encapsulated as BPDU Tunnel message, be encapsulated as the mapped identification that this port enables, comprise: when this LLDP message is encapsulated as BPDU Tunnel message, add expansion type length value TLV in this BPDU Tunnel message, TLV carries mapped identification by this expansion, wherein, the TLV Value of described expansion TLV comprises: organization unique identifier OUI, subtype sub-type and mapped identification, the value of described sub-type is to be not less than 5 and be not more than 255 integer.
5. method according to claim 4, it is characterized in that, described parsing obtains the mapped identification that this BPDU Tunnel message carries, and with the LLDP message after decapsulation, the port repeat of the mapped identification by having enabled this acquisition is given corresponding CE equipment, comprising:
This PE device parses obtains the mapped identification that this BPDU Tunnel message carries, the mapped identification that arbitrary mapped identification in the mapped identification of this acquisition and local each port of CE side enable is mated, and with the LLDP message after decapsulation, exist when mating appropriate ports to be transmitted to corresponding CE equipment.
6. switching equipment, can be applicable in Link Layer Discovery Protocol LLDP cross operator network organizing, connect as passing through BPDU Tunnel between the switching equipment of service provider network edge device in this networking, it is characterized in that, described switching equipment comprises: enable unit, receiving element, encapsulation unit, decapsulation unit and transmitting element;
The described unit that enables is when being used to each port of customer edge CE side to enable LLDP function based on bridge protocol data unit tunnel BPDU-Tunnel, for this port enables mapped identification;
Described receiving element is used for receiving by arbitrary port the LLDP message that the CE side sends; Receive the BPDU Tunnel message that the carrier network side sends;
Described encapsulation unit receives by this port the LLDP message that the CE side sends if be used for described receiving element, when this LLDP message is encapsulated as BPDU Tunnel message, encapsulates the described mapped identification that the unit enables for this port that enables;
If described decapsulation unit when receiving the BPDU Tunnel message of carrier network side transmission for described receiving element, when the BPDU Tunnel message that receives is descapsulated into the LLDP message, is resolved and is obtained the mapped identification that this BPDU Tunnel message carries;
Described transmitting element is used for the BPDU Tunnel message after described encapsulation unit encapsulation at described carrier network repeating; With the LLDP message after described decapsulation unit decapsulation, by described enable cell enable the port repeat of mapped identification of this acquisition give corresponding CE equipment.
7. switching equipment according to claim 6, is characterized in that,
Described transmitting element, be further used for the LLDP message after described decapsulation unit decapsulation, by described enable cell enable the port repeat of mapped identification of this acquisition give corresponding CE equipment, make this CE equipment set up LLDP neighbor entry across described carrier network according to this LLDP message.
8. switching equipment according to claim 6, is characterized in that,
The described unit that enables is that the mapped identification that enables of each port of CE side is unique in this locality.
9. according to claim 6-8 described switching equipment of any one, is characterized in that,
Described encapsulation unit, when being used for this LLDP message is encapsulated as BPDU Tunnel message, add expansion type length value TLV in this BPDU Tunnel message, TLV carries mapped identification by this expansion, wherein, the TLV Value of described expansion TLV comprises: organize unique indications OUI, subtype sub-type and mapped identification, the value of described sub-type is to be not less than 5 and be not more than 255 integer.。
10. switching equipment according to claim 9, is characterized in that,
Described decapsulation unit be used for to resolve obtains the mapped identification that this BPDU Tunnel message carries, and the mapped identification that the arbitrary mapped identification in the mapped identification of this acquisition and local each port of CE side enable is mated;
Described transmitting element is used for the LLDP message after decapsulation, exists appropriate ports to be transmitted to corresponding CE equipment when mating by described decapsulation unit.
CN201310003144.8A 2013-01-04 2013-01-04 A kind of message forwarding method based on bridge protocol data unit tunnel and switching equipment Active CN103095545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310003144.8A CN103095545B (en) 2013-01-04 2013-01-04 A kind of message forwarding method based on bridge protocol data unit tunnel and switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310003144.8A CN103095545B (en) 2013-01-04 2013-01-04 A kind of message forwarding method based on bridge protocol data unit tunnel and switching equipment

Publications (2)

Publication Number Publication Date
CN103095545A true CN103095545A (en) 2013-05-08
CN103095545B CN103095545B (en) 2015-11-25

Family

ID=48207700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310003144.8A Active CN103095545B (en) 2013-01-04 2013-01-04 A kind of message forwarding method based on bridge protocol data unit tunnel and switching equipment

Country Status (1)

Country Link
CN (1) CN103095545B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018214359A1 (en) * 2017-05-22 2018-11-29 深圳市中兴微电子技术有限公司 Method for processing data packet, and access network device and non-transient readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863148A (en) * 2005-09-05 2006-11-15 华为技术有限公司 Method for implementing interaction BPDU message between VLAN apparatus through two layer tunnel network
CN101018183A (en) * 2007-03-12 2007-08-15 杭州华为三康技术有限公司 A topology notification method, system and device based on L2VPN
CN103001847A (en) * 2012-12-07 2013-03-27 杭州华三通信技术有限公司 Method and device for transmitting protocol message through message protocol data unit tunnel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863148A (en) * 2005-09-05 2006-11-15 华为技术有限公司 Method for implementing interaction BPDU message between VLAN apparatus through two layer tunnel network
CN101018183A (en) * 2007-03-12 2007-08-15 杭州华为三康技术有限公司 A topology notification method, system and device based on L2VPN
CN103001847A (en) * 2012-12-07 2013-03-27 杭州华三通信技术有限公司 Method and device for transmitting protocol message through message protocol data unit tunnel

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018214359A1 (en) * 2017-05-22 2018-11-29 深圳市中兴微电子技术有限公司 Method for processing data packet, and access network device and non-transient readable storage medium
CN108933756A (en) * 2017-05-22 2018-12-04 深圳市中兴微电子技术有限公司 A kind of processing method of data packet, access network equipment and computer readable storage medium
CN108933756B (en) * 2017-05-22 2020-06-30 深圳市中兴微电子技术有限公司 A data packet processing method, access network device and computer-readable storage medium

Also Published As

Publication number Publication date
CN103095545B (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US9509522B2 (en) Forwarding multicast data packets
CN104067566B (en) Shortest path bridging is improved in multizone network
EP2842278B1 (en) Three stage folded clos optimization for 802.1aq
CN103269299B (en) Message forwarding method in SPBM network and device
CN102932254B (en) Message forwarding method and device
CN105379197A (en) Tunnel establishment method, label allocation method, device, and network system
CN104378296A (en) Message forwarding method and device
CN103227745B (en) Shortest path bridge net and layer 3 VLAN interoperability methods and common edge device
CN114465920B (en) Method, device and system for determining corresponding relation
US8902794B2 (en) System and method for providing N-way link-state routing redundancy without peer links in a network environment
WO2022048412A1 (en) Method for generating table item, method for sending message, device, and system
CN108696414A (en) Return cut-in method, device and more home nodes more
CN104283782A (en) Method and device for determining message forwarding paths in multi-protocol label switching network
CN105591897B (en) The MAC Address synchronous method and device of TRILL network
US20170195213A1 (en) Multipath switching using per-hop virtual local area network classification
CN102215112B (en) Method applied to FCoE (Fiber Channel over Ethernet) networking and used for optimizing FSPE (Fiber Shortest Path First) protocol and switchboards
CN104919767A (en) Method and apparatus for implementing shortest path bridging MAC mode support on a virtual private LAN service network
CN103368863A (en) Method and equipment for sharing load in SPB (Shortest Path Bridging) network
CN103152265A (en) Message forwarding method and equipment in SPB (Shortest Path Bridge) network
CN102480413B (en) Digital microwave equipment, network and network management data transmission method
CN105049351A (en) Multi-link transparent interconnection algorithm based on SDN
CN102238040B (en) Method for monitoring CE (Customer Edge router) and routing device
EP3197133B1 (en) Notification method and device and acquisition device for mac address of esadi
CN104219073A (en) Message forwarding method and device in SPBM network
CN103095545B (en) A kind of message forwarding method based on bridge protocol data unit tunnel and switching 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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230718

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right