CN103166864A - Method and device for private VLAN (virtual local area network) information management - Google Patents

Method and device for private VLAN (virtual local area network) information management Download PDF

Info

Publication number
CN103166864A
CN103166864A CN201310100867XA CN201310100867A CN103166864A CN 103166864 A CN103166864 A CN 103166864A CN 201310100867X A CN201310100867X A CN 201310100867XA CN 201310100867 A CN201310100867 A CN 201310100867A CN 103166864 A CN103166864 A CN 103166864A
Authority
CN
China
Prior art keywords
private network
network vlan
vlan
message
report message
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
CN201310100867XA
Other languages
Chinese (zh)
Other versions
CN103166864B (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 CN201310100867.XA priority Critical patent/CN103166864B/en
Publication of CN103166864A publication Critical patent/CN103166864A/en
Application granted granted Critical
Publication of CN103166864B publication Critical patent/CN103166864B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for private VLAN (virtual local area network) information management. The method and the device are applied to a QinQ network, and a core switching device maintains private VLAN table entries according to private VLAN information carried in exchanged messages by exchanging query messages and report messages related to the private VLAN information between an access switching device and the core switching device. Compared with the prior art, the method and the device have the advantage that VLAN configuration operations of QinQ on the core switching device are decreased.

Description

A kind of private network vlan information management method and equipment
Technical field
The present invention relates to the communications field, relate in particular to a kind of private network vlan information management method and equipment of the QinQ of being applied to networking.
Background technology
Needing in catenet has a large amount of VLAN(Virtual Local Area Network, VLAN), limited amount due to VLAN, only support the VLAN quantity of 4K, therefore need the label by employing double layer VLAN Tag(VLAN) the QinQ technology VLAN is expanded, realize 4K * 4K user's differentiation.QinQ is the abbreviation of 802.1Q in 802.1Q, also claims the VLAN secondary encapsulation, is used for realizing user private network VLAN Tag is encapsulated in public network VLAN Tag, makes message with the backbone network (public network) of two-layer VLAN Tag passing through provider.
Fig. 1 is a kind of networking mode of QinQ, each subscriber equipment belongs to a private network VLAN, and customer flow is connected to the convergence-level switch by access-layer switch, enables QinQ on the convergence-level switch, stamp outside VLAN Tag for client traffic, send to core switch.Core switch is enabled VLAN termination (Routing QinQ), divests inside and outside two-layer VLAN Tag, then carries out three layers and is forwarded to the Internet(the Internet).Internet sends to user's flow also to encapsulate two-layer VLAN Tag by core switch and sends to corresponding subscriber equipment.
MVRP(Multiple VLAN Registration Protocol, multi-VLAN log-in protocol) be according to MSTP(Multiple Spanning Tree Protocol, Multiple Spanning Tree Protocol) each MSTI(Multiple Spanning Tree Instance in, Multiple Spanning Tree Instance) carry out the registration of dynamic vlan.By the MRP(Multiple Register Protocol of MVRP, multiattribute log-in protocol) message issue and study VLAN configuration information.When device start after MVRP, equipment is propagated the VLAN configuration information of this locality to miscellaneous equipment, can also accept simultaneously the VLAN configuration information from miscellaneous equipment, the dynamic VLAN configuration information that upgrades this locality is reached an agreement the VLAN configuration information of all devices.
VLAN has 6 kinds of attribute status, and corresponding numerical value is respectively 0-5, and is as shown below:
0: attribute status is New, expression: just statement, also not registration;
1: attribute status is JoinIn, expression: statement, and registered;
2: attribute status is In, expression: without proper notice, but register;
3: attribute status is JoinMT, expression: statement, but unregistered;
4: attribute status is MT, and the expression without proper notice is also unregistered;
5: attribute status is LV, and expression is nullified.
Being embodied as by configuration on the VLAN of core switch virtual interface of Routing QinQ specified private network VLAN(second-dot1q VLANid at present), be used for carrying out inner VLAN Tag coupling.Due to corresponding QinQ outside VLAN Tag of inner VLAN Tag of a plurality of subscriber equipmenies, so to configure a plurality of second-dot1q VLANid on the VLAN virtual interface of core switch, corresponding with user's private network VLAN.When a lot of private network VLAN was arranged, it is very loaded down with trivial details that the configuration operation on core switch can become, and easily make mistakes.
In order to reduce the second-dot1q VLANid configuration of core switch, can be by second-dot1q any being set, coupling private network VLAN 1 to all private network VLAN of VLAN 4094.But can bring following problem so again:
When the Internet external flow sends to subscriber equipment by core switch, but there be not the purpose IP ARP(Address Resolution Protocol corresponding to address of this traffic messages on core switch, address resolution protocol) during list item, core switch need to by sending the ARP request message to subscriber equipment, be searched subscriber equipment corresponding to this purpose IP address.But because core switch does not know which private network VLAN this subscriber equipment belongs to, so it need to all send to all private network VLAN the ARP request.The quantity that the CPU per second of switch sends the ARP message is limited, sends 100 as example take the ARP message transmitting spped rate as every 5 seconds, sends the time that 4094 ARP messages need to reach clock more than 3 minutes.If the corresponding VLAN ID of the ARP list item of institute's requesting query is VLAN 4094 just, core switch acquire time of this ARP list item just need to be at clock more than 3 minutes, ARP list item learning efficiency is low, and then affects the business serviceability.
Summary of the invention
The embodiment of the present invention provides a kind of private network vlan information management method and equipment, is applied to the QinQ network, and in order to simplify private network vlan information bookkeeping, described method comprises:
Core switching device sends private network VLAN query message according to setting cycle to the access switching equipment according to the private network vlan table item of this plant maintenance, carries the private network vlan information of institute's requesting query in described private network VLAN query message; Wherein, private network vlan table item comprises the sign of private network VLAN, the sign of public network VLAN;
Described core switching device receives the private network VLAN report message that the access switching equipment sends, and according to the private network vlan information that carries in the private network VLAN report message that receives, safeguards corresponding private network vlan table item.
A kind of private network vlan information management method that the embodiment of the present invention provides is applied to the QinQ network, and described method comprises:
The access switching equipment is after the private network VLAN query message that receives the core switching device transmission, send private network VLAN report message according to described private network VLAN query message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item;
After the port of described access switching equipment carries out many private networks VLAN log-in protocol functional configuration or after the private network VLAN configuration variation on the port of described access switching equipment, described access switching equipment sends private network VLAN report message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item.
A kind of switching equipment that the embodiment of the present invention provides is applied to QinQ server layer, comprising:
Private network virtual LAN VLAN enquiry module is used for the private network vlan table item according to this plant maintenance, sends private network VLAN query message according to setting cycle to the access switching equipment, carries the private network vlan information of institute's requesting query in described private network VLAN query message; Wherein, private network vlan table item comprises the sign of private network VLAN, the sign of public network VLAN;
Private network vlan table item maintenance module is used for according to the private network vlan information that carries in the private network VLAN report message that receives, safeguarding corresponding private network vlan table item after this equipment receives the private network VLAN report message of access switching equipment transmission.
A kind of switching equipment that the embodiment of the present invention provides is applied to the Access Layer of QinQ network, comprising:
The inquiry response module, be used for after this equipment receives the private network VLAN query message of core switching device transmission, send private network VLAN report message according to described private network VLAN query message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item;
The report initiation module, be used for after the port of this equipment carries out many private networks VLAN log-in protocol functional configuration or after the private network VLAN configuration variation on the port of described access switching equipment, send private network VLAN report message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item.
In the above embodiment of the present invention, by mutual query message and report message about the private network vlan information between access switching equipment and core switching device, make core switching device safeguard private network vlan table item according to the private network vlan information that carries in mutual message, compared with prior art, reduced the VLAN configuration operation of the Routing QinQ on the core switching device.
Description of drawings
Fig. 1 is Routing QinQ networking schematic diagram of the prior art;
Fig. 2 is the MSVRP report message format schematic diagram in the embodiment of the present invention;
Fig. 3 is the MSVRP request message format schematic diagram in the embodiment of the present invention;
Fig. 4 is the QinQ networking schematic diagram in the embodiment of the present invention;
Fig. 5 is the MSVRP message interaction schematic flow sheet in the embodiment of the present invention;
The structural representation of Access Layer switching equipment in the QinQ networking that Fig. 6 provides for the embodiment of the present invention;
The structural representation of core layer exchange device in the QinQ networking that Fig. 7 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention can be applicable to Routing QinQ networking, is used for Dynamic Discovery and the renewal of the inner VLAN Tag of Routing QinQ.The embodiment of the present invention is by introducing the reciprocal process that is used for inquiry and report private network vlan information between access switch and core switch, make core switch can detect the private network VLAN of subscriber equipment, and Dynamic Maintenance private network vlan table item, thereby simplified and specified the configuration operation of private network VLAN on the core switch, even on subscriber equipment, change or VLAN deletion occur the VLAN of ports having, can both automatically upgrade dynamically private network vlan table item on core switch.
On the other hand, when there being external flow to send to subscriber equipment, but its purpose IP address is not in the situation that there is no corresponding ARP list item on core switch, core switch is according to the private network vlan table item of safeguarding by the way, sending inner VLAN Tag is the ARP request of these private networks VLAN, thereby inquire about respective user equipment in these private networks VLAN scope, with specify private network VLAN according to manual mode configuration, searching respective user equipment in all private network VLAN scopes compares, reduce the quantity of ARP request message, accelerated ARP list item pace of learning.
The embodiment of the present invention can realize based on user terminal/server framework, namely, access switch is as client, core switch is as server end, user end to server end announcement private network vlan information, server end is safeguarded private network vlan table item, and regularly sends query requests, with requesting query private network vlan information.Certainly, also can realize based on other framework form, it is realized principle and realizes that based on user terminal/server framework principle is similar.
In order to realize mutual private network vlan information between access switch and core switch, in order to safeguard private network vlan table item, the embodiment of the present invention has defined two kinds of messages: private network VLAN query message and private network VLAN report message, and stipulated rules of interaction and the handling process of two kinds of messages.For convenience of description, the embodiment of the present invention is defined as MSVRP(Multiple Sub-VLAN Registration Protocol with rules of interaction and the handling process of these two kinds of messages, many private networks VLAN log-in protocol, or claim many inner VLAN log-in protocol), namely, between access switch and core switch, the private network vlan information is inquired about and the message of report in mutual being used for, and relevant handling process, all follows the regulation of this agreement.Accordingly, in the embodiment of the present invention, private network VLAN query message is called MSVRP request (MSVRP request) message, being used for core switch transmission sub-VLAN(is private network VLAN) inquiry, private network VLAN report message is called MSVRP report (MSVRP report) message, and being used for access switch transmission sub-VLAN(is private network VLAN) information.
The form of the MSVRP protocol massages in the following paper embodiment of the present invention.The form of MSVRP protocol massages described below only for for example, does not consist of limitation of the scope of the invention.
(1) MSVRP report message
The target MAC (Media Access Control) address of MSVRP report message uses specific multicast mac address, as 01-80-C2-00-00-100.Comprise a Message(information in message) unit, Attribute Type(attribute type) value is for 0x03, the private network vlan information is encapsulated in Attribute List(attribute list) in field.
As shown in Figure 2, comprise Vector Attribute(vector attribute in Attribute List) and End Mark(end mark), wherein Vector Attribute can have 1 or a plurality of, is used for the carrying vlan information; End Mark is 0x0000.Vector Attribute field comprises the Vector Header(vector head of 2 bytes), the initial VLAN of First VLAN(of 2 bytes), and the Vector of 171 bytes.Vector Header field wherein comprises that the Leave All Event(of 3bit uses 000 expression), and the quantity of the Number Of Values(value of 13bit), be used for illustrating Vector Attribute with the VLAN number.The attribute status of VLAN and computational methods in the Vector field are used the property value and the computational methods that have the MVRP agreement now, that is, indicate from which VLAN by First VLAN, and each byte of Vector field represents the attribute status of 3 VLAN.Such as, the attribute status that need to indicate VLAN 2 is New,: the value of First VLAN field is 2, expression is from VLAN 2, the Vector field is 1 byte length, 3 property values wherein are followed successively by New, MT, MT, and the attribute of expression VLAN 2 is New, VLAN 3 and VLAN 4 without proper notices.
In MSVRP report message, 4 kinds of VLAN attribute status, these 4 kinds of property values are respectively:
0: i.e. New, the expression corresponding VLAN be the VLAN that newly states.This attribute is used for configuration MSVRP client functionality, perhaps when port carries out the VLAN switching, in the MSVRP report message of initiatively initiating.
1: i.e. JoinIn, the expression corresponding VLAN was stated.Be used for responding the MSVRP report message of MSVRP request message.
4: i.e. MT, the expression corresponding VLAN does not exist, without proper notice.In MSVRP report message when being applied to initiatively initiation or responding MSVRP request.
5: i.e. LV, corresponding VLAN is nullified in expression.Be used for the client functionality at deletion MSVRP, when perhaps port carries out the VLAN switching, initiatively initiate the announcement of vlan information.
(2) MSVRP request message
The form of MSVRP request message as shown in Figure 3.The purpose MAC of MSVRP request message uses specific multicast mac address, as 01-80-C2-00-00-100, comprises a Message in message, and Attribute Type value is 0x02, and Attribute List value is full 0.
Optionally, MSVRP request message can be also unicast message, that is, the target MAC (Media Access Control) address of MSVRP request message can use unicast mac address to send.
The below is described in detail the embodiment of the present invention to adopt client/server approach as example.
At first the below is illustrated as and realizes the embodiment of the present invention, the configuration operation that need to carry out on access switch and core switch, and the relevant regulations of MSVRP agreement.
The regulation of (1) configuration operation on access switch, and MSVRP client behavior
Configuration MSVRP client functionality on the port of access user equipment on access switch.Two kinds of configuration modes are arranged:
Configuration mode one: configuration MSVRP client functionality on access switch and port that subscriber equipment is connected.Preferably, can give tacit consent to this function of configuration on access switch and all of the port that subscriber equipment is connected.When cancelling the MSVRP client functionality, as long as cancel the MSVRP client functionality on the corresponding port.
Configuration mode two: configuration MSVRP client functionality on private network VLAN like this, belongs on access switch on the port (being the port that subscriber equipment accesses) of this VLAN and has also just configured the MSVRP client functionality.Preferably, can give tacit consent to this function of configuration on all private network VLAN.When cancelling its MSVRP client functionality for the VLAN that has configured the MSVRP client functionality, belong on access switch on the port of this VLAN and also just cancelled the MSVRP client functionality.
The MSVRP client functionality is mainly used in realizing sending MSVRP report message and receiving MSVRP request message.
As previously mentioned, the VLAN attribute that carries in the MSVRP report message that the MSVRP client sends has 4 kinds: New(shows that corresponding VLAN is the VLAN of new statement, this property value is 0), JoinIn(shows that corresponding VLAN is declared VLAN, this property value is 1), MT(shows that corresponding VLAN does not exist, without proper notice, this property value is 4), LV(shows that corresponding VLAN nullifies, this property value is 5).
Access switch sends the VLAN attribute that carries in MSVRP report message and message, and following A, B, several situations of C, D can be arranged:
A: when after configuration MSVRP client functionality on port, this port initiatively sends MSVRP report message, in order to announce the private network vlan information to core switch, in this message, for the added VLAN of this port, its property value is New, with existing of statement corresponding VLAN.Such as, adopting above-mentioned configuration mode one after configuration MSVRP client functionality on port, if the current VLAN 2 that added of this port, in the MSVRP report message that this port sends, the value of the First VLAN field in Vector Attribute field is 2, the Vector field is 1 byte length, and 3 property values wherein are followed successively by New, MT, MT, and the attribute of expression VLAN 2 is New, VLAN 3 and VLAN 4 without proper notices.Certainly, if adopt above-mentioned configuration mode one to configure the MSVRP client functionality on certain port, but this port does not also add any VLAN at present, and this port also can not send MSVRP report message.In like manner, adopt above-mentioned configuration mode two after configuration MSVRP client functionality on port, also send in the manner described above MSVRP report message.
B: when the port at configuration MSVRP client functionality carries out the VLAN switching, this port initiatively sends MSVRP report message, in order to announce the private network vlan information to core switch, in this message, for the VLAN under this port after switching, its property value is New, in order to state the existence of this VLAN, for the VLAN under this port before switching, its property value is LV, in order to nullify this VLAN.Such as, certain port arrangement the MSVRP client functionality, the current VLAN 2 that belongs to of this port, after this port was switched to VLAN 3 from VLAN 2, this port sent MSVRP report message, and the value of the First VLAN field in this message in Vector Attribute field is 2, the Vector field is 1 byte length, 3 property values wherein are followed successively by LV, New, MT, and the attribute of expression VLAN 2 is that the attribute of LV, VLAN 3 is New, VLAN 4 without proper notices.
C: when cancelling this function on the port that configures the MSVRP client functionality, this port initiatively sends MSVRP report message, in order to announce the private network vlan information to core switch, in this message, for the added VLAN of this port, its property value is LV, nullifies corresponding VLAN with statement.Such as, adopting above-mentioned configuration mode one after configuration MSVRP client functionality on port, if cancel the MSVRP function on this port, because this port has added VLAN 2, this port sends in MSVRP report message, and the value of the First VLAN field in Vector Attribute field is that 2, Vector field is 1 byte length, 3 property values wherein are followed successively by LV, MT, MT, and the attribute of expression VLAN 2 is LV, VLAN 3 and VLAN 4 without proper notices.Certainly, when cancelling the MSVRP client functionality that configures on certain port, if this port does not also add any VLAN at present, this port also can not send MSVRP report message.In like manner, adopt above-mentioned configuration mode two after cancelling the MSVRP client functionality on port, also send in the manner described above MSVRP report message.
After D, access switch receive the MSVRP request message that core switch sends, this message is propagated in the private network VLAN of this message institute requesting query, wherein, the private network VLAN of institute's requesting query determines according to the VLAN Tag that carries in this message.After the port that has configured the MSVRP client functionality on access switch is received the MSVRP request message that core switch sends, return to MSVRP report message, in order to announce the private network vlan information to core switch, in this message, for the added VLAN of this port, its property value is JoinIn.Such as, after the port that has configured the MSVRP client functionality and belonged to VLAN 2 is received MSVRP request message, return to MSVRP report message, the value of the First VLAN field in this message in Vector Attribute field is 2, the Vector field is 1 byte length, 3 property values wherein are followed successively by JoinIn, MT, MT, and the attribute of expression VLAN 2 is JoinIn, VLAN 3 and VLAN 4 without proper notices.
In addition, when adopting above-mentioned configuration mode one after configuration MSVRP client functionality on certain port, if this port not yet adds any VLAN at present, when this port being added VLAN, this port initiatively sends MSVRP report message, in this message, for the VLAN that this port adds, its property value is New.After this, if this port is left this VLAN, this port initiatively sends MSVRP report message, and in this message, for the VLAN that this port leaves, its property value is LV.
In order to improve the transmission of reliability and minimizing message, after port initiatively sends MSVRP report message, start timer corresponding to this port, the duration of this timer is to be not less than the Cycle Length that core switch sends MSVRP request message, preferably, can be set to times over the Cycle Length that sends MSVRP request message.For convenience of description, in the present embodiment with this timer called after listentimer.After access switch receives the MSVRP request message of core switch transmission, reply MSVRP report message according to this MSVRP request message, and listentimer timer corresponding to this port of resetting.If listentimer timer expiry, illustrate in listentimer timer timing time, this port does not receive the MSVRP request message of the corresponding private network VLAN of requesting query, the MSVRP client thinks that core switch do not receive the corresponding MSVRP report message that this client initiatively sends, this MSVRP client sends MSVRP report message again, and deletes this listentimer timer.In the MSVRP report message that again sends, for the VLAN under this port, its property value is New.
Optionally, can also realize the function of vlan traffic monitoring and respective handling on access switch.
Do not have the PC of carry PC or carry not power under some private network VLAN, in order to reduce message interaction and the processing for these private networks VLAN, economize on resources, can increase the vlan traffic monitoring function on access switch.In a period of time length, when certain private network VLAN did not have flow (namely this private network VLAN is in non operating state), access switch was not reported the information of this private network VLAN to core switch, to reach the purpose of saving resource.
Concrete, when the port of access switch need to be by MSVRP report message report private network vlan information (such as needs initiatively send MSVRP report message, or when needing to return to MSVRP report message according to the MSVRP request message that receives), before carrying out the report of private network vlan information, whether the VLAN that judgement will be reported is in running order, if in running order, announce the information of this VLAN by MSVRP report message, otherwise, do not announce the information of this VLAN.Concrete, if this port includes a plurality of VLAN, the VLAN that wherein has is in running order, some VLAN are in non operating state, in the MSVRP report message that this port sends, for the VLAN that is in non operating state, do not carry its vlan information; Be in non operating state if only comprise a VLAN and this VLAN on this port, perhaps configured a plurality of VLAN but all be in non operating state, do not send MSVRP report message, to reduce the mutual of MSVRP message, saving resource.
Vlan traffic monitor mode (namely judging whether in running order mode of VLAN) has two kinds:
Monitor mode one: by checking the mac address table on access switch, for the VLAN on the port of enabling the MSVRP client functionality, check whether the MAC Address of this VLAN list item is arranged in mac address table, if do not have, think that this VLAN is in non operating state, otherwise think that this VLAN is in running order;
Monitor mode two: each enables the port open timer of MSVRP client functionality, if there is no flow on this port in the timer timing time, think that the VLAN on this port is in non operating state, otherwise think that the VLAN on this port is in running order.Concrete, but each port cycle of enabling the MSVRP client functionality is added up the flow of each VLAN on this port, and record flow in each cycle, when needs judge that VLAN is whether in running order, can judge according to the statistical value of a current nearest vlan traffic measurement period.
Considering to have a plurality of ports all to configure identical VLAN on access switch, and the MSVRP client functionality of all enabling.If in these ports, there is a port to send a MSVRP report message, because MSVRP report message is multicast message, therefore other port that has configured identical VLAN also can be received this MSVRP report message, therefore, MSVRP agreement regulation: configured the port of MSVRP client functionality, do not processed for the MSVRP report message that receives, can directly abandon.
The regulation of (2) configuration operation on core switch, and MSVRP server end behavior
Configuration MSVRP server capability on the VLAN virtual interface of enabling Routing QinQ function on core switch, be mainly used in regularly sending MSVRP request message, be used for the private network vlan information of inquiring client terminal, and safeguard private network vlan table item (hereinafter referred to as the sub-VLAN list item).Primaryly in the sub-VLAN list item comprise following content: the ID of private network VLAN, the ID of corresponding public network VLAN can further include the mac address information of access switch.
The port of configuration MSVRP server capability can receive MSVRP report message, the private network vlan information in analytic message, and safeguard the sub-VLAN list item; Can regularly send MSVRP request message according to the sub-VLAN list item of safeguarding.Each private network vlan table item that the Sub-VLAN list item is safeguarded all starts corresponding timer, the timing duration of this timer is the transmission cycle duration that is not less than MSVRP request message, preferably, can be set to send many times of Cycle Length of MSVRP request message.For convenience of describing, in the present embodiment with this timer called after holdtimer.After core switch receives that at every turn attribute is the private network vlan information of New or JoinIn, match corresponding private network vlan table item and the corresponding holdtimer timer of resetting.If the holdtimer timer expiry illustrates the MSVRP report message of not receiving corresponding private network VLAN in the timing time of this timer, record corresponding to this private network VLAN during core switch deletion sub-VLAN shows.
Preferably, the port of configuration MSVRP server capability also can start timer, the timing length of this timer is less than the transmission Cycle Length of MSVRP request message, and is preferred, can be set to the MSVRPrequest message the transmission Cycle Length 1/10th to 1/5th.For convenience of description, this timer called after looktimer.The main purpose that starts the looktimer timer is in order to prevent from receiving the MSVRP report message of a large amount of identical VLAN, causes that the MSVRP server ceaselessly revises the sub-VLAN list item.If the port of configuration MSVRP server capability is received the MSVRP report message of identical vlan information in looktimer timer timing time, do not refresh the holdtimer timer of corresponding list item in the sub-VLAN table.
Concrete, a kind of preferred implementation is: the port of configuration MSVRP server capability is each the private network VLAN configuration looktimer timer in sub-vlan; After the port of configuration MSVRP server capability is received MSVRP report message, parse the private network vlan information of announcing, check corresponding looktimer timer according to this vlan information, if this looktimer timer is (namely not overtime) in timing course, abandon this MSVRP report message that receives, if this looktimer timer is overtime, this looktimer timer of resetting, and safeguard corresponding sub-vlan list item according to the MSVRP report message that receives, comprise the holdtimer timer of the corresponding sub-vlan list item of resetting.
After the port of configuration MSVRP server capability is received MSVRP report message, according to the difference of the VLAN attribute that wherein carries, process also difference to some extent in operation, specifically can comprise following situation:
A: if the VLAN attribute that parses in MSVRP report message is New or JoinIn, inquiring about and whether having had this attribute in the sub-VLAN table is the corresponding list item of VLAN of New or JoinIn, if exist, the holdtimer timer of this list item of resetting; If do not exist, add list item corresponding to this VLAN in the sub-VLAN table, corresponding holdtimer timer is set.
B: if the VLAN attribute that parses in MSVRP report message is LV, be sub-VLAN list item corresponding to VLAN inquiry of LV according to this attribute, the reset holdtimer timer of this list item, and send MSVRP request message, being used for this attribute of inquiry is the vlan information of LV.After this processing is ditto described, comprising: if received the MSVRP report message that is used for this vlan information of announcement, the holdtimer timer that this VLAN that resets is corresponding in this holdtimer timer timing time; If this holdtimer timer expiry is deleted record corresponding to this private network VLAN in sub-VLAN.
C: if the VLAN attribute that parses in MSVRP report message is MT, core switch is not processed this VLAN.
When core switch sends the MSVRP message, according to the sub-VLAN list item, encapsulate two-layer VLAN Tag, outside VLAN is to enable the VLAN virtual interface VLAN of MSVRP server capability, and inner VLAN is the corresponding private network VLAN that records in sub-VLAN.The MSVRP report message that carries two-layer VLAN Tag sends to convergence switch through the port that configures the MSVRP server capability.
Consider when on access switch, a port belongs to a plurality of VLAN, in the sub-VLAN table, the MAC ID of this access switch can to many list items should be arranged, send corresponding MSVRP request message for each list item when core switch sends MSVRP request message.In order to reduce the transmission of message, in the sub-VLAN table, when having the MAC Address of a plurality of list items identical in list item corresponding to identical public network VLAN, only send a MSVRP request message for these list items, this MSVRP request message inner VLAN Tag is a certain private network VLAN in these list items.
For example, in the sub-VLAN table, the corresponding private network VLAN 2 of public network VLAN 100 and private network VLAN3, private network VLAN 2 is identical with the MAC Address of the access switch of private network VLAN 3 correspondences, identical for MAC Address and belong to the list item of same public network VLAN, an outer VLAN tag that only needs to send is VLAN 100, and inner VLAN tag is that the MSVRP request message of VLAN 2 gets final product.
(3) configuration operation on the convergence-level switch, and the behavior of convergence-level switch regulation
Configuration operation on the convergence-level switch is same as the prior art.
After convergence switch receives MSVRP request message, carry out transparent transmission in outside VLAN Tag place VLAN.Because the interface enabling QinQ function that is connected with access switch on Routing QinQ networking requirement convergence-level switch, and enable the PVID(Port VLAN ID of the port of QinQ function, port vlan ID, being the port default VLAN) the VLAN value of VLAN virtual interface of enabling Routing QinQ on value and core switch is identical, therefore MSVRP request message by the port of enabling QinQ on convergence switch after, divest outside VLAN Tag.It is that the message of private network VLAN sends to access switch that MSVRP request message only carries one deck VLAN.
Message is according to the private network vlan information packaging V LAN Tag's that records in the sub-VLAN list item because core switch sends MSVRP request, therefore, MSVRP request message can be dealt into all VLAN in the sub-VLAN list item, therefore, when access switch receives MSVRP request message, just can think that also core switch received its MSVRP report message.
After receiving when core switch the message of sending from the Internet network, the ARP list item corresponding according to the purpose IP address lookup of this message; If do not match corresponding ARP list item, inquire about the sub-VLAN list item of this plant maintenance, according to all private network VLAN that inquire, encapsulation ARP request message also sends to corresponding VLAN.The corresponding ARP request message of each private network VLAN, each ARP request message comprise twice VLAN encapsulation, and outside VLAN is the public network VLAN that records in corresponding list item, and inner VLAN is corresponding private network VLAN.After core switching device receives the arp reply message, according to response message study ARP list item, and according to study to the ARP list item message of sending from the Internet network is encapsulated and is sent to target UE.
For the clearer explanation embodiment of the present invention, the below describes the specific implementation process of the embodiment of the present invention in detail take networking shown in Figure 4 as example.
As shown in Figure 4, equipment 1 and equipment 2 are access switch, are mainly used in being connected with subscriber equipment.Equipment 3 is convergence switch, and its sw3_p1 and sw3_p2 interface enabling QinQ function are used for the message that equipment 1 and equipment 2 are sent is stamped the Tag that outside VLAN tag(is VLAN 100 or VLAN 200), then message is sent to core switch.Equipment 4 is core switch, its sw4_p1 port is the Trunk mouth, the VLAN virtual interface of corresponding VLAN 100 and VLAN 200 in Fig. 4, enable Routing QinQ function, configuration second-dot1q VLANid on VLAN 100 and VLAN 200 virtual interfaces, be mainly used in user's message is divested two-layer VLAN Tag, then carry out three layers of forwarding; For the message that external network is sent, when entering the sw4_p1 port, message is stamped corresponding two-layer VLAN Tag, send to corresponding subscriber equipment.Configuration MSVRP server capability on the VLAN virtual interface of enabling Routing QinQ function on equipment 4.
When after enabling the MSVRP client functionality on the sw1_p1 of equipment 1 port, the sw1_p1 port sends MSVRP report message, and (this message is multicast message, target MAC (Media Access Control) address is the specific multicast MAC Address), the value of the First VLAN field in this message in Vector Attribute field is 2, the Vector field is 1 byte length, and 3 property values wherein are followed successively by New, MT, MT.After enabling the MSVRP client functionality on the sw1_p1 port, this port also starts corresponding listentimer timer, and the duration of this timer is 5s.
After this MSVRP report message arrives the sw3_p1 port of equipment 3, because this port is that QinQ port, pvid are VLAN 100, therefore the MSVRP report message that enters is stamped the outside VLAN Tag of VLAN 100, and be forwarded to equipment 4.
After equipment 4 received this MSVRP report message, the property value that parses the VLAN 2 that carries in this MSVRP report message was New, is indicated as the VLAN of new statement; Equipment 4 does not inquire corresponding list item according to its sub-VLAN table of safeguarding of information inquiry of the VLAN 2 that parses, therefore creates the list item of this VLAN in the sub-VLAN table, and the holdtimer timer of this list item is set.
In like manner, when other port (sw1_p2, sw1_p3, sw1_p4) at equipment 1, and after sw2_p1, the sw2_p2 of equipment 2, sw2_p3, sw2_p4 interface enabling MSVRP client functionality, can trigger equally MSVRP report message and send, so that equipment 4 is safeguarded corresponding sub-VLAN list item according to the MSVRP report message that receives.
By above handling process, the Sub-VLAN list item (table 1.2 shows the MAC Address of the access switch that in table 1.1, each MAC ID is corresponding) as shown in table 1.1 of safeguarding on equipment 4, the duration of Holdtimer wherein is that 2min(is 120000ms).
Table 1.1
Figure BDA00002968521100161
Table 1.2
MAC?ID MAC Address Public network VLAN ID
1 00-00-00-00-00-01 100
2 00-00-00-00-00-02 100
3 00-00-00-00-00-03 100
4 00-00-00-00-00-04 100
5 00-00-00-00-00-05 200
6 00-00-00-00-00-06 200
7 00-00-00-00-00-07 200
8 00-00-00-00-00-08 200
Be the transmission Cycle Length of MSVRP request message every 1000ms(), equipment 4 is for each list item in its Sub-VLAN table of safeguarding, send MSVRP request message by the sw4_p1 port, the two-layer VLAN Tag of this MSVRP request message encapsulation, skin is the VLAN of VLAN virtual interface, and internal layer is the private network VLAN that records in sub-VLAN.Such as, equipment 4 is for (private network VLAN2 in table 1, public network VLAN 100) corresponding list item, generating outside VLAN Tag is that VLAN 100, inner VLAN Tag are the MSVRP request message of VLAN 2, and sends this MSVRP request message from the VLAN virtual interface of VLAN 100.This MSVRP request message is multicast message, and target MAC (Media Access Control) address is specific multicast mac address.
After the MSVRP request message that equipment 4 sends arrived equipment 3, equipment 3 sent to access switch after divesting outside VLAN Tag.Such as, it is after VLAN 100, inner VLAN Tag are the MSVRP request message of VLAN 2 that equipment 4 receives outside VLAN Tag, because the pvid of sw3_p1 port is VLAN 100, so this port divests the outer VLAN tag of VLAN 100, sends to equipment 1.
Equipment 1 receives after MSVRP request message this message in the interior propagation of VLAN 2.After the sw1_p1 of equipment 1 port receives this MSVRP request message, because the VLAN that carries in the VLAN that configures on this port and this MSVRP request message is complementary, therefore reply the MSVRP report message of the information of carrying the affiliated VLAN of the port.Owing to enabling the MSVRP client functionality on the sw1_p1 port, this port had sent MSVRP report message, and in the MSVRP report message that therefore sends this moment, the property value of VLAN2 is JoinIn, represents that this VLAN stated.The sw1_p1 port after receiving this MSVRP request message, the corresponding listentimer timer of also resetting.
After this, this MSVRP report message is transparent to equipment 4 by equipment 3.After equipment 4 was received this MSVRP report message, the property value that parses the private network VLAN 2 that carries in this MSVRP report message was JoinIn; Equipment 4 inquires about according to the vlan information that parses the sub-VLAN table that it is safeguarded, inquires corresponding list item, the holdtimer timer of this list item of therefore resetting.
In like manner, other port (sw1_p2, sw1_p3, sw1_p4) when equipment 1, and after the sw2_p1 of equipment 2, sw2_p2, sw2_p3, sw2_p4 port receive MSVRP request message, can return to MSVRP report message, so that equipment 4 is safeguarded corresponding sub-VLAN list item according to the MSVRP report message that receives.
After the VLAN 4 under the sw1_P3 port of equipment 1 was switched to VLAN 6, the sw1_P3 port sent MSVRP report message, the corresponding listentimer timer of resetting.The value of the First VLAN field in the Vector Attribute field in this message is 4, the Vector field is 1 byte length, 3 property values wherein are followed successively by LV, MT, New, and the attribute of expression VLAN4 is that the attribute of LV, VLAN 5 is MT, and the attribute of VLAN 6 is New.After equipment 4 receives this MSVRP report message, the attribute that parses VLAN 6 is New, therefore insert (public network VLAN 100, private network VLAN 6) corresponding list item, and start corresponding Holdtimer timer, and the attribute that parses VLAN 4 is LV, (public network VLAN 100 therefore resets, private network VLAN 4) the Holdtimer timer of corresponding list item, and send the MSVRP request message that is used for inquiry VLAN 4.After this, due to the Holdtimer timer expiry of list item corresponding to (public network VLAN 100, private network VLAN 4), therefore delete list item corresponding to (public network VLAN 100, private network VLAN 4).Through after above-mentioned processing, the sub-VLAN list item (has omitted the list item that is used for MAC Address corresponding to record sheet 2.1 each MAC ID herein) as shown in table 2.1:
Table 2.1
Figure BDA00002968521100181
When the MSVRP client functionality of sw1_p2 port on cancellation equipment 1, the sw1_p2 port sends MSVRP report message, the value of the First VLAN field in the Vector Attribute field in this message is 3, the Vector field is 1 byte length, 3 property values wherein are followed successively by LV, MT, MT, and the attribute of expression VLAN 3 is that the attribute of LV, VLAN 4 and VLAN5 is MT.After equipment 4 receives this MSVRP report message, the Holdtimer timer of list item corresponding to (public network VLAN 100, private network VLAN 3) of resetting, and send the MSVRP request message that is used for inquiry VLAN 3.After this, due to the Holdtimer timer expiry of list item corresponding to (public network VLAN 100, private network VLAN 3), therefore delete list item corresponding to (public network VLAN 100, private network VLAN 3).Through after above-mentioned processing, the sub-VLAN list item (has omitted the list item that is used for MAC Address corresponding to record sheet 3.1 each MAC ID herein) as shown in table 3.1:
Table 3.1
Figure BDA00002968521100182
After this, because public network VLAN ID on equipment 4 does not receive the MSVRP report message that carries private network VLAN 5 information for a long time on 100 virtual interface, the holdtime timer time of corresponding list item is reduced to 0, if also do not receive the MSVRP report message that carries private network VLAN 5 information this moment, be list item deletion from the sub-VLAN table of 0 with this holdtime timer numerical value.Through after above-mentioned processing, the sub-VLAN list item (has omitted the list item that is used for MAC Address corresponding to record sheet 4.1 each MAC ID herein) as shown in table 4.1:
Table 4.1
Figure BDA00002968521100191
The sw1_P3 port of equipment 1 is after switching VLAN, do not receive the MSVRP request message (this moment, the sw1_P3 port belonged to VLAN 6) of the information that carries VLAN 6 in 5s, corresponding listentimer timer expiry, the sw1_p3 port sends MSVRP report message, and the corresponding listentimer timer of resetting.The value of the First VLAN field in the Vector Attribute field in this message is that 6, Vector field is 1 byte length, and 3 property values wherein are followed successively by New, MT, MT.After this, the handling process of this message is ditto described, is not described in detail in this.
After receiving when equipment 4 message that comes from Internet, the ARP list item corresponding according to the purpose IP address lookup of this message do not inquire corresponding list item, therefore sends the ARP request message according to its Sub-VLAN list item of safeguarding.The Sub-VLAN list item of safeguarding take equipment 4 such as table 4.1 are as example, and equipment 4 sends 6 ARP request messages, and its outer and internal memory VLAN Tag encapsulates and is respectively:
ARP request message 1: outside VLAN Tag is 100, and inner VLAN Tag is 2;
ARP request message 2: outside VLAN Tag is 100, and inner VLAN Tag is 6;
ARP request message 3: outside VLAN Tag is 200, and inner VLAN Tag is 5;
ARP request message 4: outside VLAN Tag is 200, and inner VLAN Tag is 6;
ARP request message 5: outside VLAN Tag is 200, and inner VLAN Tag is 7;
ARP request message 6: outside VLAN Tag is 200, and inner VLAN Tag is 8.
After equipment 4 is received the arp response message, carry out the study of ARP list item, and obtain MAC Address corresponding to purpose IP address according to the ARP list item that study is arrived, encapsulate this message and forward.
Based on networking shown in Figure 4, Fig. 5 shows the flow process that the private network vlan information under concrete scene administers and maintains.As shown in Figure 5, this flow process can comprise:
Step 1: after the sw1_p1 of equipment 1 interface enabling MSVRP client functionality, send a MSVRP report message, the VLAN Tag of this message is VLAN2, and the attribute of the VLAN2 that carries in this message is New.
Step 2: the sw3_p1 port of equipment 3 is stamped the outside VLAN Tag of VLAN 100 after receiving this MSVRP report message for this message, and sends to equipment 4.
Step 3: after the sw4_p1 port of equipment 4 receives MSVRP report message with two-layer VLAN Tag, resolving the private network vlan information that carries in MSVRP report message is VLAN 2, VLAN2 is recorded in the sub-VLAN table as private network VLAN, and starts the Holdtimer timer.
Step 4: be the length that MSVRP request message sends the cycle through 1000ms() after, equipment 4 is according to sub-VLAN list item encapsulation MSVRP request message and transmission, the two-layer VLAN Tag of this message encapsulation, outer VLAN tag is VLAN 100, inner VLAN tag is VLAN 2.
Step 5: after equipment 3 receives this message, peel off the outer VLAN tag of VLAN 100, keep the Tag of VLAN 2, and this message is sent to equipment 1 by the sw3_p1 port.
Step 6: after the MSVRP request message that it is VLAN 2 that equipment 1 receives this VLAN Tag, propagate in VLAN 2.After the Sw1_p1 port receives this MSVRP request message, because this port belongs to VLAN 2, therefore send a MSVRP report message, the VLAN Tag that goes out of message is VLAN 2, and the attribute of the VLAN 2 that carries in this message is JoinIn.
Step 7~8: this MSVRP report message is after equipment 3 is transparent to equipment 4, and equipment 4 is safeguarded corresponding Sub-VLAN list item according to this message.
Can find out by above description, the embodiment of the present invention is safeguarded private network vlan table item by the mutual mode of protocol massages, reduces the VLAN configuration of Routing QinQ.In addition, by carry out message interaction between access switch and core switch, make core switch private network VLAN can be detected, like this, when external flow sends to subscriber equipment by core switch, can reduce the VLAN scope that core switch sends the ARP request message, reduce ARP and flood, accelerate the ARP pace of learning.
The above embodiment of the present invention mainly realizes by carrying vlan information in the MSVRP message, and the MSVRP message that is used for carrying vlan information uses specific multicast address to send.During specific implementation; also can carry vlan information by the message of other agreement or similar MSVRP agreement; perhaps realize the embodiment of the present invention with other multicast address, if thought and the above embodiment of the present invention is similar all should be within protection scope of the present invention.
Based on identical technical conceive, the invention process also provides a kind of network equipment.
The structural representation of Access Layer switching equipment in the QinQ networking that Fig. 6 provides for the embodiment of the present invention.As shown in the figure, this switching equipment can comprise: inquiry response module 61, report initiation module 62, wherein:
Inquiry response module 61, be used for after this equipment receives the private network VLAN query message of core switching device transmission, send private network VLAN report message according to described private network VLAN query message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item;
Report initiation module 62, be used for after the port of this equipment carries out many private networks VLAN log-in protocol functional configuration or after the private network VLAN configuration variation on the port of described access switching equipment, send private network VLAN report message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item.
Wherein, the destination address of described private network VLAN query message and described private network VLAN report message is multicast mac address.
Concrete, inquiry response module 61 specifically is used for: the private network VLAN query message that receives is propagated in the private network VLAN of institute's requesting query; Configure on this equipment to some extent and to send private network VLAN report message after the port of the private network VLAN of requesting query receives described private network VLAN query message, the attribute that wherein indicates the private network VLAN of institute's requesting query is JoinIn.
Concrete, report initiation module 62 specifically is used for: when after many private networks of configuration VLAN log-in protocol function on the port of this equipment connection subscriber equipment, send private network VLAN report message by this port, carry the information of the affiliated private network VLAN of this port in described private network VLAN report message, wherein, the attribute of the private network VLAN under this port is New; Perhaps, after cancelling many private networks VLAN log-in protocol function on the port of this equipment connection subscriber equipment, send private network VLAN report message by this port, carry the information of the affiliated private network VLAN of this port in described private network VLAN report message, wherein, the attribute of the private network VLAN under this port is LV.
Concrete, report initiation module 62 specifically is used for: if the private network VLAN of the port of this equipment switches, send private network VLAN report message to core switching device, wherein carry before switching and the private network vlan information after switching, wherein, the attribute of VLAN before switching is LV, and the attribute of the VLAN after switching is New.
Further, report initiation module 62 starts the timer corresponding with transmit port after sending private network VLAN report message, and the duration of described timer is not less than the Cycle Length that core switching device sends private network VLAN query message; And, work as timer expiry, this timer of resetting, and send private network VLAN report message from the port of correspondence, and wherein carry the affiliated vlan information of this port, wherein, the attribute of the VLAN under this port is New.Accordingly, inquiry response module 61 also is used for, when this equipment receives private network VLAN query message, and after sending private network VLAN report message, and timer corresponding to replacement receiving port.
Concrete, whether inquiry response module 61 had flow in the private network VLAN that judgement will be reported before sending private network VLAN report message to core switching device; If in the private network VLAN that judgement is reported, flow is arranged, send private network VLAN report message to core switching device, otherwise abandon sending private network VLAN report message to core switching device.Or/and whether report initiation module 62 had flow in the private network VLAN that judgement will be reported before sending private network VLAN report message to core switching device; If in the private network VLAN that judgement is reported, flow is arranged, send private network VLAN report message to core switching device, otherwise abandon sending private network VLAN report message to core switching device.
The structural representation of core layer exchange device in the QinQ networking that Fig. 7 provides for the embodiment of the present invention.As shown in the figure, this switching equipment can comprise: private network VLAN enquiry module 71, private network vlan table item maintenance module 72, further, also can comprise ARP processing module 73, wherein:
Private network VLAN enquiry module 71 is used for the private network vlan table item according to this plant maintenance, sends private network VLAN query message according to setting cycle to the access switching equipment, carries the private network vlan information of institute's requesting query in described private network VLAN query message; Wherein, private network vlan table item comprises the sign of private network VLAN, the sign of public network VLAN;
Private network vlan table item maintenance module 72 is used for according to the private network vlan information that carries in the private network VLAN report message that receives, safeguarding corresponding private network vlan table item after this equipment receives the private network VLAN report message of access switching equipment transmission.
Wherein, the destination address of described private network VLAN query message and described private network VLAN report message is multicast mac address.
Further, private network vlan table item maintenance module 72 also is used for, for each private network VLAN in the private network vlan table arranges corresponding timer.Private network vlan table item maintenance module 72 is after this equipment receives private network VLAN report message, according to the private network vlan information that carries in described private network VLAN report message, the timer that inquiry is corresponding, if corresponding timer is not overtime, abandon the private network VLAN report message that receives, if corresponding timer expiry, the timer of the described correspondence of resetting, and according to the private network vlan information that carries in described private network VLAN report message, safeguard corresponding private network vlan table item.
concrete, private network VLAN enquiry module 71 specifically is used for: when the cycle that sends private network VLAN query message arrives, inquiry private network vlan table item, if inquire corresponding to the access switching equipment media access control MAC address in a plurality of private network vlan table items of same public network VLAN identical, send a private network VLAN query message for described a plurality of private network vlan table items, the outside VLAN of described private network VLAN query message is public network VLAN corresponding to described a plurality of private network VLAN, inner VLAN is private network VLAN corresponding to any one list item in described a plurality of private network vlan table item.
Concrete, private network vlan table item maintenance module 72 specifically is used for: resolve the private network VLAN report message that this equipment receives, and private network vlan table item corresponding to coupling; If parsing the attribute of private network VLAN is New or JoinIn, and match corresponding private network vlan table item, the timer of the private network vlan table item correspondence that matches reset; If parse the attribute of private network VLAN and be New or JoinIn but do not match corresponding private network vlan table item, add corresponding private network vlan table item, and the timer of this private network vlan table item correspondence is set; If parsing the attribute of private network VLAN is LV, and match corresponding private network vlan table item, it is the private network VLAN of LV that the timer of the private network vlan table item correspondence match reset, and send private network VLAN query message, described private network VLAN query message are used for the attribute that query parse goes out; If the timer expiry of private network vlan table item correspondence is deleted private network vlan table item corresponding to this timer.
Concrete, ARP processing module 73 is used for after this equipment receives the message of external network transmission, the ARP list item corresponding according to the purpose IP matching addresses of described message, if do not match, inquire about all private network vlan table items of this plant maintenance, and send the ARP request message to the private network VLAN of each private network vlan table item correspondence.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a station terminal equipment (can be mobile phone, personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.

Claims (27)

1. a private network virtual LAN VLAN approaches to IM, be applied to VLAN secondary encapsulation QinQ network, it is characterized in that, described method comprises:
Core switching device sends private network VLAN query message according to setting cycle to the access switching equipment according to the private network vlan table item of this plant maintenance, carries the private network vlan information of institute's requesting query in described private network VLAN query message; Wherein, private network vlan table item comprises the sign of private network VLAN, the sign of public network VLAN;
Described core switching device receives the private network VLAN report message that the access switching equipment sends, and according to the private network vlan information that carries in the private network VLAN report message that receives, safeguards corresponding private network vlan table item.
2. the method for claim 1, is characterized in that, described core switching device is that each private network VLAN in the private network vlan table arranges corresponding timer;
According to the private network vlan information that carries in the private network VLAN report message that receives, safeguard corresponding private network vlan table item, specifically comprise:
After described core switching device receives private network VLAN report message, according to the private network vlan information that carries in described private network VLAN report message, the timer that inquiry is corresponding, if corresponding timer is not overtime, abandon the private network VLAN report message that receives, if corresponding timer expiry, the timer of the described correspondence of resetting, and according to the private network vlan information that carries in described private network VLAN report message, safeguard corresponding private network vlan table item.
3. the method for claim 1, is characterized in that, core switching device sends private network VLAN query message according to setting cycle to the access switching equipment according to the private network vlan table item of this plant maintenance, specifically comprises:
When the cycle that sends private network VLAN query message arrives, described core switching device inquiry private network vlan table item, if inquire corresponding to the access switching equipment media access control MAC address in a plurality of private network vlan table items of same public network VLAN identical, send a private network VLAN query message for described a plurality of private network vlan table items, the outside VLAN of described private network VLAN query message is public network VLAN corresponding to described a plurality of private network VLAN, and inner VLAN is private network VLAN corresponding to any one list item in described a plurality of private network vlan table item.
4. the method for claim 1, is characterized in that, according to the private network vlan information that carries in described private network VLAN report message, safeguards corresponding private network vlan table item, specifically comprises:
Described core switching device is resolved the private network VLAN report message that receives, and private network vlan table item corresponding to coupling;
If the attribute that parses private network VLAN is for new statement New or stated JoinIn, and matches corresponding private network vlan table item, the timer of the private network vlan table item correspondence that matches reset; If parse the attribute of private network VLAN and be New or JoinIn but do not match corresponding private network vlan table item, add corresponding private network vlan table item, and the timer of this private network vlan table item correspondence is set;
If parse the attribute of private network VLAN for nullifying LV, and match corresponding private network vlan table item, it is the private network VLAN of LV that the timer of the private network vlan table item correspondence match reset, and send private network VLAN query message, described private network VLAN query message are used for the attribute that query parse goes out;
If the timer expiry of private network vlan table item correspondence is deleted private network vlan table item corresponding to this timer.
5. the method for claim 1, is characterized in that, described method also comprises:
After described core switching device receives the message of external network transmission, the ARP list item corresponding according to the purpose IP matching addresses of described message, if do not match, inquire about all private network vlan table items of this plant maintenance, and send the ARP request message to the private network VLAN of each private network vlan table item correspondence.
6. as the described method of claim 1-5 Arbitrary Term, it is characterized in that, the destination address of described private network VLAN query message and described private network VLAN report message is multicast mac address.
7. a private network virtual LAN VLAN approaches to IM, be applied to VLAN secondary encapsulation QinQ network, it is characterized in that, described method comprises:
The access switching equipment is after the private network VLAN query message that receives the core switching device transmission, send private network VLAN report message according to described private network VLAN query message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item;
After the port of described access switching equipment carries out many private networks VLAN log-in protocol functional configuration or after the private network VLAN configuration variation on the port of described access switching equipment, described access switching equipment sends private network VLAN report message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item.
8. method as claimed in claim 7, is characterized in that, described access switching equipment sends private network VLAN report message according to described private network VLAN query message to core switching device, specifically comprises:
Described access switching equipment is propagated the private network VLAN query message that receives in the private network VLAN of institute's requesting query;
Configure the port of the private network VLAN of requesting query to some extent on described access switching equipment, send private network VLAN report message after receiving described private network VLAN query message, wherein indicate the attribute of private network VLAN of institute's requesting query for stating JoinIn.
9. method as claimed in claim 7, it is characterized in that, after the port of described access switching equipment carries out many private networks VLAN log-in protocol functional configuration, described access switching equipment sends private network VLAN report message to core switching device, carry the private network vlan information in described private network VLAN report message, specifically comprise:
After many private networks of configuration VLAN log-in protocol function on the port that connects subscriber equipment at the access switching equipment, described access switching equipment sends private network VLAN report message by this port, carry the information of the affiliated private network VLAN of this port in described private network VLAN report message, wherein, the attribute of the private network VLAN under this port is new statement New;
Perhaps, after cancelling many private networks VLAN log-in protocol function on the port that connects subscriber equipment at the access switching equipment, described access switching equipment sends private network VLAN report message by this port, carry the information of the affiliated private network VLAN of this port in described private network VLAN report message, wherein, the attribute of the private network VLAN under this port is for nullifying LV.
10. method as claimed in claim 7, it is characterized in that, after private network VLAN configuration variation on the port of described access switching equipment, described access switching equipment sends private network VLAN report message to core switching device, carry the private network vlan information in described private network VLAN report message, specifically comprise:
If the private network VLAN of the port of described access switching equipment switches, described access switching equipment sends private network VLAN report message to core switching device, wherein carry before switching and the private network vlan information after switching, wherein, the attribute of VLAN before switching is LV, and the attribute of the VLAN after switching is New.
11. method as described in claim 9 or 10 is characterized in that, described method also comprises:
Described access switching equipment starts the timer corresponding with transmit port after sending private network VLAN report message, and the duration of described timer is not less than the Cycle Length that core switching device sends private network VLAN query message;
After described access switching equipment receives private network VLAN query message, send private network VLAN report message, wherein carry the affiliated vlan information of this port, and timer corresponding to replacement receiving port;
If timer expiry, described access switching equipment this timer of resetting, and send private network VLAN report message from the port of correspondence wherein carries the vlan information under this port, and wherein, the attribute of the VLAN under this port is New.
12. method as claimed in claim 7 is characterized in that, described method also comprises: before described access switching equipment sends private network VLAN report message to core switching device, in the private network VLAN that judgement will be reported, whether flow is arranged;
If described access switching equipment has flow in the private network VLAN that judgement is reported, send private network VLAN report message to core switching device, otherwise abandon sending private network VLAN report message to core switching device.
13. method as claimed in claim 12 is characterized in that, in the private network VLAN that described judgement will be reported, whether flow is arranged, and specifically comprises:
Described access device is inquired about the media access control MAC address table of this equipment according to the private network VLAN that will report, if inquire the MAC Address list item of the private network VLAN that will report, judge in the private network VLAN that will report flow is arranged, otherwise, there is no flow in the private network VLAN that judgement will be reported;
Perhaps, the traffic statistics value of private network VLAN within a nearest traffic statistics cycle that described access device inquiry will be reported, and judge in the private network VLAN that will report according to the traffic statistics value that inquires whether flow is arranged.
14. as claim 7-10,12, the 13 described methods of Arbitrary Term, it is characterized in that, the destination address of described private network VLAN query message and described private network VLAN report message is multicast mac address.
15. a switching equipment is applied to VLAN secondary encapsulation QinQ server layer, it is characterized in that, comprising:
Private network virtual LAN VLAN enquiry module is used for the private network vlan table item according to this plant maintenance, sends private network VLAN query message according to setting cycle to the access switching equipment, carries the private network vlan information of institute's requesting query in described private network VLAN query message; Wherein, private network vlan table item comprises the sign of private network VLAN, the sign of public network VLAN;
Private network vlan table item maintenance module is used for according to the private network vlan information that carries in the private network VLAN report message that receives, safeguarding corresponding private network vlan table item after this equipment receives the private network VLAN report message of access switching equipment transmission.
16. switching equipment as claimed in claim 15 is characterized in that, described private network vlan table item maintenance module also is used for, for each private network VLAN in the private network vlan table arranges corresponding timer;
Described private network vlan table item maintenance module specifically is used for, after this equipment receives private network VLAN report message, according to the private network vlan information that carries in described private network VLAN report message, the timer that inquiry is corresponding if corresponding timer is not overtime, abandons the private network VLAN report message that receives, if corresponding timer expiry, the timer of the described correspondence of resetting, and according to the private network vlan information that carries in described private network VLAN report message, safeguard corresponding private network vlan table item.
17. switching equipment as claimed in claim 15, it is characterized in that, described private network VLAN enquiry module specifically is used for, when the cycle that sends private network VLAN query message arrives, inquiry private network vlan table item, if inquire corresponding to the access switching equipment media access control MAC address in a plurality of private network vlan table items of same public network VLAN identical, send a private network VLAN query message for described a plurality of private network vlan table items, the outside VLAN of described private network VLAN query message is public network VLAN corresponding to described a plurality of private network VLAN, inner VLAN is private network VLAN corresponding to any one list item in described a plurality of private network vlan table item.
18. switching equipment as claimed in claim 15 is characterized in that, described private network vlan table item maintenance module specifically is used for, and resolves the private network VLAN report message that this equipment receives, and private network vlan table item corresponding to coupling; If the attribute that parses private network VLAN is for new statement New or stated JoinIn, and matches corresponding private network vlan table item, the timer of the private network vlan table item correspondence that matches reset; If parse the attribute of private network VLAN and be New or JoinIn but do not match corresponding private network vlan table item, add corresponding private network vlan table item, and the timer of this private network vlan table item correspondence is set; If parse the attribute of private network VLAN for nullifying LV, and match corresponding private network vlan table item, it is the private network VLAN of LV that the timer of the private network vlan table item correspondence match reset, and send private network VLAN query message, described private network VLAN query message are used for the attribute that query parse goes out; If the timer expiry of private network vlan table item correspondence is deleted private network vlan table item corresponding to this timer.
19. switching equipment as claimed in claim 15 is characterized in that, also comprises:
The ARP processing module, be used for after this equipment receives the message of external network transmission, the ARP list item corresponding according to the purpose IP matching addresses of described message, if do not match, inquire about all private network vlan table items of this plant maintenance, and send the ARP request message to the private network VLAN of each private network vlan table item correspondence.
20. as the described switching equipment of claim 15-19 Arbitrary Term, it is characterized in that, the destination address of described private network VLAN query message and described private network VLAN report message is multicast mac address.
21. a switching equipment is applied to the Access Layer of VLAN secondary encapsulation QinQ network, it is characterized in that, comprising:
The inquiry response module, be used for after this equipment receives the private network VLAN query message of core switching device transmission, send private network VLAN report message according to described private network VLAN query message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item;
The report initiation module, be used for after the port of this equipment carries out many private networks VLAN log-in protocol functional configuration or after the private network VLAN configuration variation on the port of described access switching equipment, send private network VLAN report message to core switching device, carry the private network vlan information in described private network VLAN report message, be used for triggering described core switching device and safeguard corresponding private network vlan table item.
22. switching equipment as claimed in claim 21 is characterized in that, described inquiry response module specifically is used for, and the private network VLAN query message that receives is propagated in the private network VLAN of institute's requesting query; Configure on this equipment to some extent and to send private network VLAN report message after the port of the private network VLAN of requesting query receives described private network VLAN query message, wherein indicate the attribute of private network VLAN of institute's requesting query for stating JoinIn.
23. switching equipment as claimed in claim 21, it is characterized in that, described report initiation module specifically is used for, when after many private networks of configuration VLAN log-in protocol function on the port of this equipment connection subscriber equipment, send private network VLAN report message by this port, carry the information of the affiliated private network VLAN of this port in described private network VLAN report message, wherein, the attribute of the private network VLAN under this port is new statement New; Perhaps, after cancelling many private networks VLAN log-in protocol function on the port of this equipment connection subscriber equipment, send private network VLAN report message by this port, carry the information of the affiliated private network VLAN of this port in described private network VLAN report message, wherein, the attribute of the private network VLAN under this port is for nullifying LV.
24. switching equipment as claimed in claim 21, it is characterized in that, described report initiation module specifically is used for, if the private network VLAN of the port of this equipment switches, send private network VLAN report message to core switching device, wherein carry before switching and the private network vlan information after switching, wherein, the attribute of VLAN before switching is LV, and the attribute of the VLAN after switching is New.
25. switching equipment as described in claim 23 or 24, it is characterized in that, described report initiation module also is used for, after sending private network VLAN report message, start the timer corresponding with transmit port, the duration of described timer is not less than the Cycle Length that core switching device sends private network VLAN query message; And, work as timer expiry, this timer of resetting, and send private network VLAN report message from the port of correspondence, and wherein carry the affiliated vlan information of this port, wherein, the attribute of the VLAN under this port is New;
Described inquiry response module also is used for, when this equipment receives private network VLAN query message, and after sending private network VLAN report message, and timer corresponding to replacement receiving port.
26. switching equipment as claimed in claim 21 is characterized in that, described inquiry response module specifically is used for, and before sending private network VLAN report message to core switching device, in the private network VLAN that judgement will be reported, whether flow is arranged; If in the private network VLAN that judgement is reported, flow is arranged, send private network VLAN report message to core switching device, otherwise abandon sending private network VLAN report message to core switching device;
Or/and described report initiation module specifically is used for, before sending private network VLAN report message to core switching device, in the private network VLAN that judgement will be reported, whether flow is arranged; If in the private network VLAN that judgement is reported, flow is arranged, send private network VLAN report message to core switching device, otherwise abandon sending private network VLAN report message to core switching device.
27. as claim 21-24, the 26 described methods of Arbitrary Term, it is characterized in that, the destination address of described private network VLAN query message and described private network VLAN report message is multicast mac address.
CN201310100867.XA 2013-03-26 2013-03-26 A kind of private network vlan information management method and equipment Active CN103166864B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310100867.XA CN103166864B (en) 2013-03-26 2013-03-26 A kind of private network vlan information management method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310100867.XA CN103166864B (en) 2013-03-26 2013-03-26 A kind of private network vlan information management method and equipment

Publications (2)

Publication Number Publication Date
CN103166864A true CN103166864A (en) 2013-06-19
CN103166864B CN103166864B (en) 2016-01-20

Family

ID=48589614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310100867.XA Active CN103166864B (en) 2013-03-26 2013-03-26 A kind of private network vlan information management method and equipment

Country Status (1)

Country Link
CN (1) CN103166864B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939226A (en) * 2016-07-01 2016-09-14 浪潮集团有限公司 Redundant network equipment based on layer 3 switch
CN106161113A (en) * 2016-08-31 2016-11-23 浪潮(北京)电子信息产业有限公司 The QinQ message processing method of a kind of linux system and platform
CN107547686A (en) * 2017-08-29 2018-01-05 新华三技术有限公司 ARP request message processing method and device
CN108183863A (en) * 2017-12-22 2018-06-19 新华三技术有限公司 A kind of broadcasting packet sends system, method and apparatus
CN108259298A (en) * 2017-05-31 2018-07-06 新华三技术有限公司 A kind of message forwarding method and device
CN109547267A (en) * 2019-01-02 2019-03-29 京东方科技集团股份有限公司 LAN system and core layer, access-layer switch and its configuration method
CN109660438A (en) * 2018-12-07 2019-04-19 北京卫星信息工程研究所 A kind of ground system of satellite communication
CN110351398A (en) * 2019-06-21 2019-10-18 武汉微创光电股份有限公司 A kind of external equipment identification monitoring method and system
WO2020087327A1 (en) * 2018-10-31 2020-05-07 Oppo广东移动通信有限公司 Communication method and device
WO2022147792A1 (en) * 2021-01-08 2022-07-14 华为技术有限公司 Switching system, switching network and switching node

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227407A (en) * 2008-01-25 2008-07-23 华为技术有限公司 Method and apparatus for sending message based on two layer tunnel protocol
CN101808430A (en) * 2009-02-13 2010-08-18 上海贝尔股份有限公司 Method and device of cross-domain service strategy interaction for fixed mobile convergence network
US20110299539A1 (en) * 2010-06-02 2011-12-08 Cisco Technology, Inc. Virtual Fabric Membership Assignments for Fiber Channel Over Ethernet Network Devices
CN102904817A (en) * 2012-10-24 2013-01-30 福建星网锐捷网络有限公司 Transmitting method for link state advertisement (LSA), OSPF (open shortest path first interior gateway protocol) equipment and network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227407A (en) * 2008-01-25 2008-07-23 华为技术有限公司 Method and apparatus for sending message based on two layer tunnel protocol
CN101808430A (en) * 2009-02-13 2010-08-18 上海贝尔股份有限公司 Method and device of cross-domain service strategy interaction for fixed mobile convergence network
US20110299539A1 (en) * 2010-06-02 2011-12-08 Cisco Technology, Inc. Virtual Fabric Membership Assignments for Fiber Channel Over Ethernet Network Devices
CN102904817A (en) * 2012-10-24 2013-01-30 福建星网锐捷网络有限公司 Transmitting method for link state advertisement (LSA), OSPF (open shortest path first interior gateway protocol) equipment and network system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105939226A (en) * 2016-07-01 2016-09-14 浪潮集团有限公司 Redundant network equipment based on layer 3 switch
CN106161113A (en) * 2016-08-31 2016-11-23 浪潮(北京)电子信息产业有限公司 The QinQ message processing method of a kind of linux system and platform
CN106161113B (en) * 2016-08-31 2018-12-18 浪潮(北京)电子信息产业有限公司 A kind of the QinQ message processing method and platform of linux system
CN108259298B (en) * 2017-05-31 2020-12-29 新华三技术有限公司 Message forwarding method and device
CN108259298A (en) * 2017-05-31 2018-07-06 新华三技术有限公司 A kind of message forwarding method and device
US11283645B2 (en) 2017-05-31 2022-03-22 New H3C Technologies Co., Ltd. Forwarding packet
CN107547686A (en) * 2017-08-29 2018-01-05 新华三技术有限公司 ARP request message processing method and device
CN107547686B (en) * 2017-08-29 2021-05-28 新华三技术有限公司 ARP request message processing method and device
CN108183863A (en) * 2017-12-22 2018-06-19 新华三技术有限公司 A kind of broadcasting packet sends system, method and apparatus
CN108183863B (en) * 2017-12-22 2021-05-07 新华三技术有限公司 Broadcast message sending system, method and device
WO2020087327A1 (en) * 2018-10-31 2020-05-07 Oppo广东移动通信有限公司 Communication method and device
CN109660438A (en) * 2018-12-07 2019-04-19 北京卫星信息工程研究所 A kind of ground system of satellite communication
CN109547267A (en) * 2019-01-02 2019-03-29 京东方科技集团股份有限公司 LAN system and core layer, access-layer switch and its configuration method
CN110351398A (en) * 2019-06-21 2019-10-18 武汉微创光电股份有限公司 A kind of external equipment identification monitoring method and system
WO2022147792A1 (en) * 2021-01-08 2022-07-14 华为技术有限公司 Switching system, switching network and switching node

Also Published As

Publication number Publication date
CN103166864B (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN103166864B (en) A kind of private network vlan information management method and equipment
CN104935516B (en) Communication system and method based on software defined network
US20180205575A1 (en) Broadband access
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
JP6722816B2 (en) Packet transfer
JP2015095894A (en) Management server and management method thereof for managing cloud appliances in virtual local area networks
CN102263774A (en) Method and device for processing source role information
CN105187311A (en) Message forwarding method and message forwarding device
WO2012146120A1 (en) Method for forwarding response packet from dhcp server, forwarding device and system
US9402224B2 (en) Method, apparatus and system for neighbor discovery
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
WO2016101515A1 (en) Method and apparatus for determining information technology (it) device port
CN104486217A (en) Cross network message transmitting method and equipment
EP3503484B1 (en) Message transmission methods and devices
CN104601463B (en) Message forwarding method and device in a kind of VXLAN networks
CN101119275B (en) Method, equipment and system for service provider equipment to obtain information
CN108306825A (en) A kind of equivalence forwarding-table item generation method and VTEP equipment
CN108833284B (en) Communication method and device for cloud platform and IDC network
CN102594941B (en) Method for device access and device communication in building intercom system
CN110620715B (en) Virtual extended local area network communication method, tunnel endpoint and controller
EP2979434A1 (en) Method and system for assigning a location-based address to a network-node
WO2016141818A1 (en) Service uplink forwarding and downlink forwarding methods and corresponding apparatus
CN107547686B (en) ARP request message processing method and device
KR20230022251A (en) BIER OAM detection method, device, and system
CN112511440A (en) Message forwarding method, system, storage medium and electronic 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
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.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230625

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.