CN102137108A - Method for message registration and exchanger - Google Patents

Method for message registration and exchanger Download PDF

Info

Publication number
CN102137108A
CN102137108A CN2011100635025A CN201110063502A CN102137108A CN 102137108 A CN102137108 A CN 102137108A CN 2011100635025 A CN2011100635025 A CN 2011100635025A CN 201110063502 A CN201110063502 A CN 201110063502A CN 102137108 A CN102137108 A CN 102137108A
Authority
CN
China
Prior art keywords
message
address
interface
gmac
switch
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.)
Pending
Application number
CN2011100635025A
Other languages
Chinese (zh)
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 CN2011100635025A priority Critical patent/CN102137108A/en
Publication of CN102137108A publication Critical patent/CN102137108A/en
Priority to PCT/CN2011/083008 priority patent/WO2012122824A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a method for message registration and an exchanger. The exchanger is used in an operator network to carry out message registration. The method of the embodiment of the invention comprises the following steps: when receiving a registered message, acquiring a GMAC (Group Media Access Control) address of a two-layer control protocol; adding the corresponding relationship of the GMAC address and an interface identification of an interface receiving the registered message into a transmitting table; and transmitting the received registered message. The embodiment of the invention also discloses the exchanger which can carry out message registration; and the exchanger can effectively avoid that the condition that the two-layer control protocol message is broadcasted in the penetration transmission process, and solves the problem that bandwidth of the two-layer control protocol message broadcast is occupied.

Description

Message process registration, switch
Technical field
The present invention relates to network communications technology field, relate in particular to message process registration, switch.
Background technology
In existing network communication, a lot of users realize two layers of access by carrier network, and promptly operator provides the two-layer virtual private network (VPN, Virtual Private Network) for the user.
When there is a plurality of branch in the user, big double layer network of the common composition of the network of these branches.For double layer network, owing to may there be loop, so user network need be enabled two layers of control protocol and safeguards the double layer network of oneself.In actual applications, user network may use two layers of identical control protocol with carrier network, for the protocol massages of distinguishing user network and the protocol massages of carrier network, user's protocol massages can not directly be transmitted in carrier network, therefore otherwise will cause the switch in the carrier network when use agreement, to make a mistake, need set up the transmission that two layers of control protocol tunnel make that user's protocol massages can be in carrier network.
In the prior art, the implementation in two layers of control protocol tunnel is with the medium access control (MAC in user's the protocol massages, Media Access Control) address transition is multicast medium access control GMAC address, wherein the GMAC address is to obtain after the MAC Address of two layers of control protocol is changed, be common multicast mac address, because the MAC Address of switch can not learnt multicast mac address, make the carrier network switch in carrier network, broadcast as data message user's protocol massages, when exporting, be MAC information with the GMAC address transition in user's the protocol massages again at the carrier network edge.
The inventor finds that under study for action the implementation in existing two layers of control protocol tunnel has following defective: two layers of control protocol message that MAC Address are converted to the GMAC address will be broadcasted in whole carrier network, take more link bandwidth.
Summary of the invention
The embodiment of the invention provides message process registration, switch, be used for the carrier network switch and carry out the message registration, make two layers of control protocol message to transmit according to the corresponding relation of GMAC address in transmitting and interface identifier, rather than in carrier network, broadcast, effectively solved two layers of control protocol message bandwidth occupancy problem in repeating process.
The message process registration comprises in the embodiment of the invention: when receiving logon message, obtain the multicast medium access control GMAC address of two layers of control protocol according to the logon message that receives; The corresponding relation of GMAC address and the interface identifier of the interface that receives logon message added transmit; The logon message that forwarding receives.
Switch comprises in the embodiment of the invention: acquiring unit, be used for when receiving logon message, and obtain the multicast medium access control GMAC address of two layers of control protocol according to the logon message that receives; Transmit updating block, be used for the GMAC address and the corresponding relation adding of the interface identifier of the interface that receives logon message are transmitted; First retransmission unit is used to transmit the logon message that receives.
As can be seen from the above technical solutions, the embodiment of the invention has the following advantages:
In embodiments of the present invention, by the GMAC address of two layers of control protocol in the logon message corresponding relation with the interface identifier of the interface that receives logon message is added in the transmitting of switch, switch can be transmitted the interface identifier of determining that message is transmitted by inquiry when transmitting two layers of control protocol message, from registered interface, transmit, and can in carrier network, not broadcast, effectively solved two layers of bandwidth occupancy problem that control protocol broadcasting brings.
Description of drawings
Fig. 1 is the system diagram of user network and carrier network in the embodiment of the invention;
Fig. 2 is a schematic diagram of message process registration in the embodiment of the invention;
Fig. 3 is another schematic diagram of message process registration in the embodiment of the invention;
Fig. 4 is a schematic diagram of the method for registration revocation in the embodiment of the invention;
Fig. 5 is a schematic diagram of switch in the embodiment of the invention;
Fig. 6 is another schematic diagram of switch in the embodiment of the invention.
Embodiment
The embodiment of the invention provides message process registration, switch, the switch that is used for carrier network carries out the registration of the GMAC address of two layers of control protocol according to logon message, the GAMC address of transmitting middle interpolation correspondence in switch and the corresponding relation of interface identifier, make two layers of control protocol message to transmit according to transmitting, avoid two layers of control protocol message pass-through mode of broadcast type, can effectively reduce the bandwidth that takies in two layers of control protocol message repeating process.
Need to prove that the switch in the embodiment of the invention can be the network equipment that has switch function arbitrarily, do not do qualification herein.
In carrier network, technology for a better understanding of the present invention, see also Fig. 1, system diagram for user network in the embodiment of the invention and carrier network, wherein, switch A, B, C, D are the double layer network in the user network, and switch 1,2,3,4 is the switch in the carrier network, when needing two layers of control protocol of transparent transmission between subscriber exchange A and the B, need on the switch of carrier network, carry out the message registration.Below with the concrete message process registration of introducing.
See also Fig. 2, the embodiment for message process registration in the embodiment of the invention comprises:
201, when receiving logon message, obtain the multicast medium access control GMAC address of two layers of control protocol according to the logon message that receives.
After the switch in the carrier network receives logon message, to obtain the GMAC address of two layers of control protocol according to logon message, wherein, carry the GMAC address in the logon message, and logon message generates and sends switch to other by the switch that obtains the order of two-layer protocol transparent transmission, and the order of two-layer protocol transparent transmission is sent or directly disposed on switch by network management device.
In embodiments of the present invention, two layers of control protocol are to have the fixedly Ethernet protocol of MAC Address, for example: CISCO discovery protocol (CDP:Cisco Discovery Protocol), dynamic trunking protocol (DTP, Dynamic Trunking Protocol), Spanning-Tree Protocol (STP, Spanning Tree Protocol), link aggregate control protocol (LACP, Link Aggregation Control Protocol), Link Layer Discovery Protocol (LLDP, Link Layer Discovery Protocol) or the like.
202, the corresponding relation of GMAC address and the interface identifier of the interface that receives logon message added transmit.
Switch gets access to after the GMAC address of two layers of control protocol, the corresponding relation of this GMAC address with the interface identifier of the interface that receives logon message added in the transmitting of switch, wherein, transmit the corresponding relation of the GMAC address that is used to preserve two layers of control protocol and the interface identifier of the interface that is used to transmit these two layers of control protocols, make in two layers of control protocol message forwarding process, switch can be searched the interface identifier of the interface of transmitting these two layers of control protocol messages according to receiving two layers of GMAC address in the control protocol message in transmitting, need to prove that a GMAC address in transmitting can corresponding one or more interface identifier.
In embodiments of the present invention, switch can be described as the message registration with the process that the corresponding relation of the GMAC address of two layers of control protocol and interface identifier adds in the transmitting of switch.
203, transmit the logon message that receives.
After the GMAC address that has added two layers of control protocol in the transmitting of switch and the corresponding relation of the interface identifier of the interface that receives these two layers of control protocols, switch will be transmitted the logon message that receives to network side interface (NNI, Network-Network Interface).Wherein, switch can not transmitted this logon message to the network side interface that receives above-mentioned logon message, and promptly switch can be transmitted this logon message to the network side interface that does not receive above-mentioned logon message.
During switch is transmitted with the corresponding relation adding of the interface identifier of the interface that receives logon message by the GMAC address that will get access in embodiments of the present invention, and logon message is transmitted the message of realizing a plurality of switches register, make switch in carrier network in the process of two layers of control protocol message of transparent transmission, can determine two layers of control protocol message forwarding interface according to transmitting, and can not transmit with the form of broadcasting, effectively reduced by two layers of control protocol message and transmitted shared bandwidth.
In the present invention is embodiment illustrated in fig. 2, message process registration when describing switch in detail and receiving logon message will be described switch below in detail and generate logon message and carry out the message process registration, see also Fig. 3, embodiment for message registration in the embodiment of the invention comprises:
301, when obtaining the order of two-layer protocol transparent transmission, according to the corresponding relation of configuration MAC Address and GMAC address on the interface of the interface identifier correspondence of two-layer protocol transparent transmission order in the order of two-layer protocol transparent transmission, the order of two-layer protocol transparent transmission comprises the corresponding relation between MAC Address, GMAC address and the interface identifier of two layers of control protocol.
Can the order of pre-configured two-layer protocol transparent transmission on the switch, also can receive the order of two-layer protocol transparent transmission from network management device.After switch obtains the order of two-layer protocol transparent transmission, according to the corresponding relation of configuration GMAC address and MAC Address on the interface of the interface identifier correspondence of two-layer protocol transparent transmission order in the order of two-layer protocol transparent transmission.The order of two-layer protocol transparent transmission comprises the corresponding relation between MAC Address, GMAC address and the interface identifier of two layers of control protocol, and this interface identifier is for receiving the interface identifier of the interface that the switch of user network of the message of above-mentioned two layers of control protocol is connected with needs.Switch is in the process of carrying out two layers of control protocol message transmission, can be according to the corresponding relation of MAC Address that disposes on the above-mentioned interface and GMAC address, send to carrier network after the MAC Address of two layers of control protocol message that the switch of user network is sent is converted to corresponding GMAC address, also the GMAC address transition of two layers of control protocol message in the carrier network can be sent to the switch of user network after for corresponding MAC Address.
302, the corresponding relation of GMAC address and interface identifier added transmit.
After switch obtains the order of two-layer protocol transparent transmission, during switch is transmitted the corresponding relation adding of GMAC address in two layers of transparent transmission order and interface identifier, make two layers of control protocol message after arriving this switch, can be transmitted to the switch of user side interface (UNI, User-Network Interface) from the interface of the corresponding relation that disposed MAC Address and GMAC address.
303, carry the logon message of GMAC address according to two-layer protocol transparent transmission order generation.
Switch generates logon message according to the order of two-layer protocol transparent transmission, carries the GMAC address in the logon message, and the switch that is used to receive this logon message carries out the message registration.
Need to prove, in embodiments of the present invention, when switch obtains a plurality of two-layer protocol transparent transmission order, can generate a logon message, carry the GMAC address in the order of above-mentioned a plurality of two-layer protocol transparent transmission in this logon message, this logon message of generation can be used for the registration that switch is realized a plurality of GMAC address.
Can also comprise the MAC Address of two layers of control protocol and the corresponding relation of GMAC address in the logon message, be used for switch mismatched and put inspection.Concrete mode is: after passing through to receive two-layer protocol transparent transmission order or the registration of logon message realization message in the switch, owing to all comprise the corresponding relation of MAC Address and GMAC address in order of two-layer protocol transparent transmission and the logon message, therefore switch can be preserved this corresponding relation, when switch receives the logon message of identical two layers of control protocol, can compare with the MAC Address and the GMAC address corresponding relation of these two layers of control protocols of having preserved, when corresponding relation is inequality, illustrating then that mismatching appears in this switch puts, and switch mismatches transmission and puts signal.
304, send the logon message that generates.
Switch sends the logon message that generates to the network side interface after generating logon message, make the switch that receives this logon message in the carrier network can realize the message registration, and according to circumstances transmit this logon message.
In embodiments of the present invention, describe the generation and the forwarding of logon message in detail, switch is realized the process of the generation and the message registration of logon message according to the two-layer protocol transparent transmission order that receives.The logon message that switch generates can be transmitted in carrier network, makes the switch that receives this logon message can and receive that the interface identifier of the interface of this logon message finishes the message registration according to the GMAC address in the logon message.Make in the process of two layers of control protocol message transmission of correspondence, switch can be transmitted two layers of control protocol message that receive according to the corresponding relation of GAMC address in transmitting and interface identifier, avoided the broadcasting of two layers of control protocol message, effectively reduced by two layers of control protocol message and transmitted shared bandwidth.And because two layers of control protocol message can not broadcast, the malicious attack that can effectively avoid the switch of the generation of network error and user network to generate, the fail safe that has improved network.
Switch on the carrier network is after carrying out the message registration, two layers of control protocol message can be transmitted the transparent transmission of realizing two layers of control protocol message by searching, in addition, can also carry out registration revocation as required, perhaps regularly transmitting in the switch checked and carried out the registration revocation of two layers of control protocol, wherein registration revocation is meant the interface identifier deletion from transmit with certain GMAC information correspondence in the switch, for example, see also Fig. 1, if switch A, B, can carry out the transparent transmission of STP BPDUs between the C, when switch C will be not need be in carrier network during transparent transmission STP agreement, can interrupt the path that switch C receives the STP agreement by the mode of registration revocation, the method of concrete registration revocation sees also Fig. 4, comprising:
401, when receiving the registration revocation message, according to the GMAC address in the registration revocation message from transmit the GMAC address and the corresponding relation of interface identifier in deletion receive the interface identifier of the interface of registration revocation message.
When switch receives the registration revocation message, switch receives the interface identifier of registration revocation message according to deletion in the corresponding relation of this GMAC address and the interface identifier from transmit of the GMAC address in the registration revocation message, to realize the switch registration revocation.Need to prove that when carrying out registration revocation, when corresponding interface identifier has only one in transmitting as if the GMAC address in the registration revocation message, switch will be deleted this GMAC address and corresponding interface sign from transmit.
Need to prove that the registration revocation message can be generated and sent by the switch that obtains the registration revocation order, in embodiments of the present invention, the registration revocation order is sent by network management device, is perhaps disposed on switch by administrative staff.Comprise the corresponding relation between MAC Address, GMAC address and the interface identifier of two layers of control protocol that need un-register in the registration revocation order.After switch obtains the registration revocation order, according to the MAC Address that disposes on the interface identifier corresponding interface in the order of registration revocation order deletion registration revocation and the corresponding relation of GMAC address, and, delete in the interface identifier with the GMAC address correspondence of this registration revocation order from transmit of the interface identifier in the registration revocation order according to GMAC address and the interface identifier in the registration revocation order.Be specially: when corresponding interface identifier has only one in is transmitting the GMAC address in the registration revocation order, this GMAC address of deletion and corresponding interface identifier thereof from transmit.And for example, when the interface identifier of correspondence is more than one in is transmitting the GMAC address in the registration revocation order, interface identifier from transmit in the order of deletion registration revocation is not deleted other corresponding with the GMAC address of registration revocation order in transmitting interface identifier.
When switch is deleted the GMAC address in the registration revocation order and the corresponding relation between the interface identifier according to the registration revocation order from transmit after, when transmitting the GMAC address that does not have in the registration revocation order.Perhaps when in the corresponding relation of this GMAC address from transmit and interface identifier with corresponding interface identifier deletion after, in transmitting this GMAC address only corresponding during an interface identifier, when the number of the interface identifier of this GMAC address correspondence is no more than 1 in promptly transmitting, switch generates according to the registration revocation order and carries the registration revocation message of GMAC address, sends the registration revocation message that generates to the network side interface.Optionally, in the corresponding relation of this GMAC address from transmit and interface identifier with after the corresponding interface identifier deletion, in transmitting this GMAC address only corresponding during an interface identifier, the registration revocation message that also can be only sends to the corresponding interface of the interface identifier of this GMAC address correspondence.
When 402, the religion order of corresponding interface identifier is no more than 1 in is transmitting the GMAC address in the registration revocation message, transmit the registration revocation message.
Switch according to the registration revocation message to transmit delete after, if transmit the GMAC address that does not comprise in the registration revocation message or transmit in this GMAC address only corresponding during an interface identifier, switch is transmitted the registration revocation message that receives to the network side interface.Optionally, in transmitting this GMAC address only corresponding during an interface identifier, also can be only transmit the registration revocation message that receives to the corresponding interface of the interface identifier of this GMAC address correspondence.
In embodiments of the present invention, switch is carried out the operation of registration revocation, make carrier network can effectively control the transparent transmission of two layers of control protocol message by utilizing registration revocation order or registration revocation message.
Technical scheme for a better understanding of the present invention, the method of carrying out message process registration and registration revocation on a plurality of switches will be introduced, see also the user network shown in Figure 1 and the system diagram of carrier network, will need transparent transmission STP agreement with switch A and switch b in application examples of the present invention is that example is introduced technical scheme of the present invention.
1) when needing transparent transmission STP agreement between switch A and the switch b, switch 1 obtains the two-layer protocol transparent transmission order of administrative staff's configuration or network management device transmission.For instance, the MAC Address that comprises in the order of two-layer protocol transparent transmission is 0180-C200-0000, corresponding GMAC address is 0100-0000-0001, corresponding interface identifier is the interface identifier of interface 1, then switch 1 will dispose the corresponding relation of MAC Address 0180-C200-0000 and GMAC address 0100-0000-0001 on interface 1, and the corresponding relation of the interface identifier of GMAC address 0100-0000-0001 and interface 1 added transmit, so the GMAC address is that the forwarding interface of message in switch 1 of 0100-0000-0001 is: interface 1.Transmit the logon message that after upgrading generation is carried this GMAC address 0100-0000-0001, finish after the message registration, will send logon message to switch 2.
After switch 2 receives logon message from interface 1, with the GMAC address 0100-0000-0001 in this logon message and receive the interface identifier of the interface of this logon message, the corresponding relation of interface identifier that is the interface 1 of GMAC address 0100-0000-0001 and switch 2 adds in the transmitting of switch 2, makes that the GMAC address is that the forwarding interface of message in switch 2 of 0100-0000-0001 is: interface 1.Finish after the message registration, switch 2 will be transmitted logon message to switch 3 and switch 4 from interface 2 and interface 3.
Switch 3 and switch 4 receive after the logon message, will finish message registration, make that promptly the GMAC address is that the forwarding interface of message in switch 3 of 0100-0000-0001 is interface 1, and the forwarding interface in switch 4 is an interface 2.
Switch 3 and switch 4 are finished after the message registration, have just finished the message registration of the switch on the path of two layers of control protocol message transmission that lead to switch A.Message registration for the switch on the path of realizing leading to switch b, switch 3 will obtain the order of two-layer protocol transparent transmission, the MAC Address that comprises in this two-layer protocol transparent transmission order is 0180-C200-0000, corresponding GMAC address is 0100-0000-0001, and corresponding interface identifier is the interface identifier of interface 2.Logon message will generate in switch 3, to send to switch 2 after finishing the message registration, switch 2 is finished after the message registration, logon message is transmitted to switch 1 and 4, switch 1 and 4 has been finished after the message registration, can realize that STP BPDUs carries out transparent transmission by the corresponding interface in transmitting between switch A and the B.Wherein, the corresponding relation of GMAC address 0100-0000-0001 and interface was as follows during each switch was transmitted:
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 1: interface 1, interface 2;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 2: interface 1, interface 2;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 3: interface 1, interface 2;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 4: interface 2.
Switch is finished after the registration, if switch A sends STP BPDUs to switch b, switch 1 will receive STP BPDUs by interface 1, and with MAC Address 0180-C200-0000 in the STP BPDUs, be converted to corresponding GMAC address 0100-0000-0001, in the transmitting of switch 1, be interface 1 to the corresponding interface of forwarding interface sign of this STP BPDUs according to the GMAC address search, interface 2, because switch can not transmitted STP BPDUs from the interface that receives STP BPDUs, therefore switch 1 will be transmitted STP BPDUs to switch 2 from interface 2, switch 2 is after interface 1 receives STP BPDUs, to obtain the corresponding interface of forwarding interface sign from transmit is interface 1 and interface 2, because switch 2 can not transmitted the STP BPDUs that receives from interface 1 again from interface 1, therefore switch 2 will be transmitted STP BPDUs from interface 2, in like manner, the switch 3 that receives STP BPDUs from interface 1 will be transmitted STP BPDUs to switch B from interface 2, finish the purpose of switch A to switch b transparent transmission STP BPDUs.
Need to prove that though the interface of the interface identifier correspondence of this STP is an interface 2 in the switch 4, because switch 2 can not transmitted STP BPDUs from interface 3, so switch 4 does not still receive this STP BPDUs.
2) when can be when transmitting the transparent transmission of finishing STP between the switch A of user network, B, the C, if the GMAC of this STP is 0100-0000-0001, the interface that each switch is transmitted STP BPDUs in the carrier network be respectively:
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 1: interface 1, interface 2;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 2: interface 1, interface 2, interface 3;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 3: interface 1, interface 2;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 4: interface 1, interface 2.
When switch C does not need carrier network transparent transmission STP agreement, switch 4 will obtain the registration revocation order, the MAC Address of STP in the registration revocation order is 0180-C200-0000, corresponding GMAC address is 0100-0000-0001, interface identifier is the interface identifier of interface 1, switch will be according to the MAC Address 0180-C200-0000 of configuration on the registration revocation order delete interface 1 and the corresponding relation of GMAC address 0100-0000-0001, and the interface identifier of interface 1 deleted from the interface identifier of this GMAC address correspondence, switch 4 deletions are transmitted after the interface 1 of middle GMAC address correspondence, the GMAC address will be only corresponding interface 2, when the interface of this GMAC address correspondence in the switch 4 is no more than 1, switch 4 generates and carries the registration revocation message of GMAC address, and send the registration revocation messages to switch 2 from interface 2, switch 2 will receive in the forwarding interface of interface identifier GMAC address 0100-0000-0001 from transmit of interface 3 of registration revocation message and delete, make that the forwarding interface of GMAC address 0100-0000-0001 becomes in the switch 2: interface 1, interface 2, surpass 1 owing to transmit the interface of STP BPDUs in the switch 2, so switch 2 will stop the registration revocation message forwarding.After the registration revocation message forwarding stops, switch C will no longer participate in the transparent transmission of STP BPDUs.The interface that each switch in the carrier network is transmitted this STP agreement is:
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 1: interface 1, interface 2;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 2: interface 1, interface 2;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 3: interface 1, interface 2;
The forwarding interface of GMAC address 0100-0000-0001 is in the switch 4: interface 2.
See also Fig. 5, the embodiment for a kind of switch in the embodiment of the invention comprises:
Acquiring unit 501 is used for when receiving logon message, obtains the multicast medium access control GMAC address of two layers of control protocol according to the logon message that receives;
Transmit updating block 502, be used for the corresponding relation adding of GMAC address and interface identifier is transmitted;
First retransmission unit 503 is used to transmit the logon message that receives.
In embodiments of the present invention, when switch receives the logon message of forwarding, acquiring unit 501 will obtain the GMAC address according to the logon message that receives, add and to transmit by transmitting the corresponding relation of updating block 502 again GMAC address and the interface identifier of the interface that receives logon message, transmit after the renewal, retransmission unit 503 is transmitted the logon message that receives, and has finished the message registration of this switch.
In embodiments of the present invention, by carry out the message registration according to the logon message that receives, during the corresponding relation of GMAC address and interface identifier adding is soon transmitted, make switch when transparent transmission comprises two layers of control protocol of this GMAC address, can carry out the message forwarding, will can not cause the broadcasting of two-layer protocol control command according to transmitting.
For better understanding technology, see also Fig. 6, another embodiment for switch in the embodiment of the invention comprises:
Delete cells 601 is used for when receiving the registration revocation message, receives the interface identifier of the interface of registration revocation message according to deletion in the corresponding relation of GMAC address and the interface identifier from transmit of the GMAC address in the registration revocation message;
Second retransmission unit 602 when the number that is used in is transmitting the GMAC address of described registration revocation message corresponding interface identifier is no more than 1, is transmitted described registration revocation message;
Generate and transmitting element 603, be used for when the number of transmitting GMAC address corresponding interface is no more than 1, generate according to the registration revocation order and carry the registration revocation message of GMAC address, send the registration revocation message;
Dispensing unit 604, be used for when obtaining the order of two-layer protocol transparent transmission, according to the corresponding relation of configuration MAC Address and GMAC address on the interface of the interface identifier correspondence of two-layer protocol transparent transmission order in the order of two-layer protocol transparent transmission, the order of two-layer protocol transparent transmission comprises the corresponding relation between MAC Address, GMAC address and the interface identifier of two layers of control protocol.
Above-mentioned switch can also comprise transmitting element 605, is used for when obtaining the order of two-layer protocol transparent transmission, generates according to the order of two-layer protocol transparent transmission and carries the logon message of GMAC address, sends the logon message that generates.
And delete cells 601 also is used for when obtaining the registration revocation order, according to the medium access control MAC Address that disposes on the interface identifier corresponding interface in the order of registration revocation order deletion registration revocation and the corresponding relation of GMAC address, the registration revocation order comprises the corresponding relation between MAC Address, GMAC address and the interface identifier that need cancel, and is used for deleting in the corresponding relation of interface identifier with the GMAC address correspondence of registration revocation order GMAC address and interface identifier from transmit.
When switch receives the registration revocation message, delete cells 601 receives the interface identifier of registration revocation message according to deletion in the corresponding relation of GMAC address and the interface identifier from transmit of the GMAC address in the registration revocation message, after the deletion, when the number of corresponding interface identifier is no more than 1 in is transmitting the GMAC address in the registration revocation message, the registration revocation message that second retransmission unit 602 receives forwarding.
After switch obtains the registration revocation order, delete cells 601 will be according to the MAC Address that disposes on the interface identifier corresponding interface in the order of registration revocation order deletion registration revocation and the corresponding relation of GMAC address, and delete in the corresponding relation with the interface identifier of the GMAC address correspondence in registration revocation order GMAC address and interface identifier from transmit, after the deletion, when the right number of answering interface identifier in GMAC address is no more than 1 in transmitting, generation and transmitting element 603 generate according to the registration revocation order and carry the registration revocation message of GMAC address, and send the registration revocation message.
When switch obtains the order of two-layer protocol transparent transmission, dispensing unit 604 is according to the corresponding relation of configuration MAC Address and GMAC address on the interface of the interface identifier correspondence of two-layer protocol transparent transmission order in the order of two-layer protocol transparent transmission, then, transmitting element 605 will generate the logon message that comprises the GMAC address according to the order of two-layer protocol transparent transmission, and send the logon message that generates.
During switch is transmitted with the corresponding relation adding of the interface identifier of the interface that receives logon message by the GMAC address that will get access in embodiments of the present invention, and logon message is transmitted the message of realizing a plurality of switches register, make switch in carrier network in the process of two layers of control protocol message of transparent transmission, can determine two layers of control protocol message forwarding interface according to transmitting, and can not transmit with the form of broadcasting, effectively reduced by two layers of control protocol message and transmitted shared bandwidth.Simultaneously, switch can upgrade transmitting by the registration revocation message that obtains, and the interface identifier of deletion GMAC address correspondence manages and safeguards transmitting.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
More than to message process registration provided by the present invention, switch is described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. a message process registration is characterized in that, comprising:
When receiving logon message, obtain the multicast medium access control GMAC address of two layers of control protocol according to the logon message that receives;
The corresponding relation of described GMAC address and the interface identifier of the interface that receives described logon message added transmit;
The described logon message that forwarding receives.
2. method according to claim 1 is characterized in that, described method also comprises:
When receiving the registration revocation message, receive the interface identifier of the interface of described registration revocation message according to deletion the corresponding relation of GMAC address and the interface identifier described in transmit of the GMAC address in the described registration revocation message;
When the number of corresponding interface identifier is no more than 1 in is transmitting the GMAC address in the described registration revocation message, transmit described registration revocation message.
3. method according to claim 2 is characterized in that, described method also comprises:
When obtaining the registration revocation order, delete the medium access control MAC Address that disposes on the interface identifier corresponding interface in the described registration revocation order and the corresponding relation of GMAC address according to described registration revocation order, described registration revocation order comprises the corresponding relation between MAC Address, GMAC address and the interface identifier that need cancel;
Delete the corresponding relation with the interface identifier of the GMAC address correspondence in described registration revocation order GMAC address and interface identifier described in transmit.
4. method according to claim 3 is characterized in that, also comprises after according to described registration revocation order the corresponding relation of GMAC address in the registration revocation order and interface identifier being deleted from transmit:
When the number of the interface identifier of the address of GMAC described in transmitting correspondence is no more than 1, generate according to described registration revocation order and to carry the registration revocation message of GMAC address, send described registration revocation message.
5. method according to claim 1 is characterized in that, described method also comprises:
When obtaining the order of two-layer protocol transparent transmission, according to the corresponding relation of configuration MAC Address and GMAC address on the interface of the interface identifier correspondence of described two-layer protocol transparent transmission order in the order of two-layer protocol transparent transmission, the order of described two-layer protocol transparent transmission comprises the corresponding relation between MAC Address, GMAC address and the interface identifier of two layers of control protocol;
The corresponding relation of described GMAC address and interface identifier added transmit.
6. method according to claim 1 is characterized in that, also comprises:
When obtaining the order of two-layer protocol transparent transmission, carry the logon message of described GMAC address according to described two-layer protocol transparent transmission order generation;
Send the described logon message that generates.
7. a switch is characterized in that, comprising:
Acquiring unit is used for when receiving logon message, obtains the multicast medium access control GMAC address of two layers of control protocol according to the logon message that receives;
Transmit updating block, be used for the described GMAC address and the corresponding relation adding of the interface identifier of the interface that receives described logon message are transmitted;
First retransmission unit is used to transmit the described logon message that receives.
8. switch according to claim 7 is characterized in that, described switch also comprises:
Delete cells is used for when receiving the registration revocation message, receives the interface identifier of the interface of described registration revocation message according to deletion the corresponding relation of GMAC address and the interface identifier described in transmit of the GMAC address in the described registration revocation message;
Second retransmission unit when number that is used in is transmitting the GMAC address of described registration revocation message corresponding interface identifier is no more than 1, is transmitted described registration revocation message.
9. switch according to claim 8 is characterized in that,
Described delete cells also is used for when obtaining the registration revocation order, delete the medium access control MAC Address that disposes on the interface identifier corresponding interface in the described registration revocation order and the corresponding relation of GMAC address according to described registration revocation order, described registration revocation order comprises the corresponding relation between MAC Address, GMAC address and the interface identifier that need cancel, and is used for deleting the corresponding relation with the interface identifier of the GMAC address correspondence of described registration revocation order GMAC address and interface identifier described in transmit.
10. switch according to claim 9 is characterized in that, described switch also comprises:
Generate and transmitting element, be used for when the right number of answering interface identifier in the address of GMAC described in transmitting is no more than 1, generate according to described registration revocation order and carry the registration revocation message of GMAC address, send described registration revocation message.
11. switch according to claim 7 is characterized in that, described switch also comprises:
Transmitting element is used for when obtaining the order of two-layer protocol transparent transmission, generates according to described two-layer protocol transparent transmission order and carries the logon message of described GMAC address, sends the described logon message that generates.
12. switch according to claim 7 is characterized in that, described switch also comprises:
Dispensing unit, be used for when obtaining the order of two-layer protocol transparent transmission, according to the corresponding relation of configuration MAC Address and GMAC address on the interface of the interface identifier correspondence of described two-layer protocol transparent transmission order in the order of two-layer protocol transparent transmission, the order of described two-layer protocol transparent transmission comprises the corresponding relation between MAC Address, GMAC address and the interface identifier of two layers of control protocol.
CN2011100635025A 2011-03-16 2011-03-16 Method for message registration and exchanger Pending CN102137108A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2011100635025A CN102137108A (en) 2011-03-16 2011-03-16 Method for message registration and exchanger
PCT/CN2011/083008 WO2012122824A1 (en) 2011-03-16 2011-11-26 Message registration method and switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100635025A CN102137108A (en) 2011-03-16 2011-03-16 Method for message registration and exchanger

Publications (1)

Publication Number Publication Date
CN102137108A true CN102137108A (en) 2011-07-27

Family

ID=44296763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100635025A Pending CN102137108A (en) 2011-03-16 2011-03-16 Method for message registration and exchanger

Country Status (2)

Country Link
CN (1) CN102137108A (en)
WO (1) WO2012122824A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012122824A1 (en) * 2011-03-16 2012-09-20 华为技术有限公司 Message registration method and switch

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217463A (en) * 2007-12-27 2008-07-09 华为技术有限公司 Method and device for controlling message forwarding
CN101453399A (en) * 2007-11-30 2009-06-10 华为技术有限公司 Virtual network configuration, section switching method, apparatus and system
CN101488964A (en) * 2009-02-20 2009-07-22 杭州华三通信技术有限公司 Method, system and router for implementing address resolution and double layered communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137108A (en) * 2011-03-16 2011-07-27 华为技术有限公司 Method for message registration and exchanger

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453399A (en) * 2007-11-30 2009-06-10 华为技术有限公司 Virtual network configuration, section switching method, apparatus and system
CN101217463A (en) * 2007-12-27 2008-07-09 华为技术有限公司 Method and device for controlling message forwarding
CN101488964A (en) * 2009-02-20 2009-07-22 杭州华三通信技术有限公司 Method, system and router for implementing address resolution and double layered communication

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012122824A1 (en) * 2011-03-16 2012-09-20 华为技术有限公司 Message registration method and switch

Also Published As

Publication number Publication date
WO2012122824A1 (en) 2012-09-20

Similar Documents

Publication Publication Date Title
JP4916934B2 (en) Passive optical network system and method for supporting virtual Ethernet service
US9154330B2 (en) Method and device of link aggregation and method and system for transceiving MAC frames
CN101719877B (en) Message forwarding device, network equipment and method
CN102263704B (en) Topology construction method and device supporting layer 2 interconnection of data centers
CN103841023B (en) The method and apparatus of data forwarding
CN101577722B (en) Method for realizing MAC forced forwarding function and device
CN102025591A (en) Method and system for implementing virtual private network
CN103139037A (en) Method and device used for achieving flexible virtual local area network
JP2015095894A (en) Management server and management method thereof for managing cloud appliances in virtual local area networks
CN103220215B (en) The retransmission method of FCoE message and device in TRILL network
CN103312546A (en) Method for automatically configuring and managing ZigBee network
CN103441932A (en) Host routing table entry generating method and device
EP2552058B1 (en) Method, system and device for implementing multicast preview
CN109121026B (en) Method and system for realizing VOLT (Voice over Internet protocol) based on logic port
CN101616014A (en) A kind of method that realizes cross-virtual private local area network multicast
CN101778035B (en) Virtual private LAN service communication method and device
CN101242370B (en) Method for realizing Ethernet and frame-relay Internet and protocol conversion device
CN105187311A (en) Message forwarding method and message forwarding device
CN103701679A (en) VLAN (virtual local area network) conversion implementation method
CN105635335B (en) Social resources cut-in method, apparatus and system
CN103685007B (en) A kind of mac learning method when edge device message forwards and edge device
CN108632147A (en) Message multicast processing method and device
CN101908996A (en) Method for accessing private network and data transmission method, device and system
US20200244579A1 (en) Flexible Ethernet Frame Forwarding Method and Apparatus
CN101729355A (en) Method for realizing particular virtual local area network and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110727