CN104348797A - Dynamic VLAN (Virtual Local Area Network) attribute registration method and device - Google Patents

Dynamic VLAN (Virtual Local Area Network) attribute registration method and device Download PDF

Info

Publication number
CN104348797A
CN104348797A CN201310328318.8A CN201310328318A CN104348797A CN 104348797 A CN104348797 A CN 104348797A CN 201310328318 A CN201310328318 A CN 201310328318A CN 104348797 A CN104348797 A CN 104348797A
Authority
CN
China
Prior art keywords
vlan
attribute
event
attribute logging
vlan attribute
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
CN201310328318.8A
Other languages
Chinese (zh)
Other versions
CN104348797B (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.)
Hangzhou H3C 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 CN201310328318.8A priority Critical patent/CN104348797B/en
Publication of CN104348797A publication Critical patent/CN104348797A/en
Application granted granted Critical
Publication of CN104348797B publication Critical patent/CN104348797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes
    • H04L12/4679Arrangements for the registration or de-registration of VLAN attribute values, e.g. VLAN identifiers, port VLAN membership

Abstract

The invention provides a dynamic VLAN (Virtual Local Area Network) attribute registration method and device. According to the technical scheme, the method comprises the following steps: configuring a dynamic VLAN attribute registration function on an ED (Edge Device) of a current site; and after the ED receives a VLAN attribute registration message from a site network, transmitting VLAN attribute registration information in the VLAN attribute registration message to an ED of a remote site configured with the dynamic VLAN attribute registration function, regenerating a VLAN attribute registration message corresponding to the VLAN attribute registration information by using the ED of the remote site, and transmitting the regenerated VLAN attribute registration message in the remote site. Through adoption of the method and the device, cross-data-center dynamic VLAN attribute registration can be realized.

Description

A kind of dynamic vlan attribute logging method and device
Technical field
The present invention relates to communication technical field, particularly a kind of dynamic virtual local area network (LAN) (VLAN) attribute logging method and device.
Background technology
Virtual interconnected (the Ethernet Virtualization Interconnection of Ethernet, EVI) be a kind of " MAC(Media Access Control; media interviews control) in IP " technology, for realizing based on IP(Internet Protocol, Internet Protocol) the L2VPN(Layer2Virtual Private Network of core net, Layer 2 virtual private network).EVI network is made up of core network, station network and crossover network, and wherein, station network is the double layer network with separate traffic function being connected to core network by or multiple stage edge device; Crossover network is the virtual network set up between edge device, provide between station network two layers interconnected, notice and be connected to the MAC Address of edge device All hosts and router, forward territories by larger for interconnected for multiple website formation two layers; Core network be carried by IP routing device network interconnected between station network is provided.
In the station network of EVI network, usually adopt general VLAN attributes registration protocol (GARP VLAN Registration Protocol, GVRP), assist to distribute between each member in same local area network (LAN), propagate and registration vlan information.On equipment, the port of each participation agreement can be considered as an application entity, and when GVRP is applied on port after startup, this port just can be considered a GVRP application entity.GVRP application entity is by the statement that sends out or reclaim statement and notify that the VLAN attribute information of oneself is registered or nullified to other GVRP application entity, and the statement of sending according to other entity or reclaim the VLAN attribute information that the other side was registered or nullified in statement.By GVRP mechanism, the configuration information in a GVRP application entity can spread all over rapidly whole local area network (LAN).
See Fig. 1, Fig. 1 is the schematic diagram that existing employing GVRP mechanism carries out VLAN attribute logging, the port one of device A is connected with the port 2 of equipment B, port one and port 2 all start GVRP application, the statement of VLAN attribute can be sent from port one to port 2 or reclaim statement, when receiving statement (the Join message) of the VLAN attribute sent from port one at port 2, the VLAN attribute that port 2 will comprise in this statement of registration, also joins in this VLAN by port 2; When receiving recovery statement (Leave message) of the VLAN attribute sent from port one at port 2, port 2, by nullifying the VLAN attribute comprised in this statement, also exits this VLAN by this port.
At present, GVRP only supports double layer network, and along with the development of the large double layer network technology across data center, GVRP disposes and cannot satisfy the demand in this type of networking.
See Fig. 2, Fig. 2 is EVI networking schematic diagram, in the networking shown in this Fig. 2, station network site1 is connected to core network by edge device ED1, station network site2 is connected to core network by edge device ED2, comprise switching equipment SW-1 and SW-2 in site1, SW-1 newly adds subscriber equipment 1, and subscriber equipment 1 is put under in a VLAN100; Comprise switching equipment SW-3 and SW-4 in site2, SW-3 newly adds subscriber equipment 2, and subscriber equipment 2 is put under in VLAN100; All devices in site1 and site2 all enables GVRP function.
Because subscriber equipment 1 and subscriber equipment 2 are in different data center'ss (station network), when GVRP logon message arrives the edge device ED of data center, VLAN log-on message cannot be sent in the data center of opposite end by edge device ED, causes the data communication cannot carrying out VLAN100 between subscriber equipment 1 and subscriber equipment 2.
In order to solve the problem, existingly usually on the edge device ED of station network, carry out VLAN configuration in advance, station network is joined for there being new subscriber equipment, and new subscriber equipment is put under new VLAN(there is not the subscriber equipment belonging to this VLAN in this station network before this) when, then need to adopt reserved VLAN mode, also i.e. these reserved VLAN pre-configured on the EVI interface of the ED of this station network, such as VLAN100, but, this can cause the subscriber equipment not having VLAN100 in station network, the broadcasting packet of the VLAN100 of other websites still can be flooded in this station network.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of dynamic vlan attribute logging method and device, the dynamic vlan attribute logging across data center can be realized.
For achieving the above object, technical scheme provided by the invention is:
A kind of dynamic vlan attribute logging method, be applied to the edge device ED of station network in the virtual interconnected EVI network of Ethernet, on this ED, configure dynamic vlan attribute logging function in advance, the method comprises:
Receive from the VLAN attribute logging message in the website of this ED place, the VLAN attribute logging information that this VLAN attribute logging message carries is sent from the outgoing interface corresponding with the ED of the remote station being configured with dynamic vlan attribute logging function;
The VLAN attribute logging information that the ED receiving remote station sends, according to the VLAN attribute logging of this VLAN attribute logging information and executing receiving interface, and generate VLAN attribute logging message corresponding to this VLAN attribute logging information, this VLAN attribute logging message generated is sent from all of the port enabling VLAN attribute logging function;
Wherein, VLAN attribute logging information comprises attribute event and attribute value, and described attribute value is VLAN ID.
A kind of dynamic vlan attribute logging device, be applied to the edge device ED of station network in the virtual interconnected EVI network of Ethernet, this device comprises: dispensing unit, Transmit-Receive Unit, control unit;
Described dispensing unit, for configuring dynamic vlan attribute logging function in advance on this ED;
Described Transmit-Receive Unit, for receiving from the VLAN attribute logging message in the website of this ED place, the VLAN attribute logging information that this VLAN attribute logging message carries is sent from the outgoing interface corresponding with the ED of the remote station being configured with dynamic vlan attribute logging function; And the VLAN attribute logging information that the ED for receiving remote station sends, and this VLAN attribute logging information is sent to control unit;
Described control unit, for receive Transmit-Receive Unit send VLAN attribute logging information time, according to the VLAN attribute logging of this VLAN attribute logging information and executing receiving interface, and generate VLAN attribute logging message corresponding to this VLAN attribute logging information;
Described Transmit-Receive Unit, the VLAN attribute logging message also for being generated by control unit sends from all of the port enabling VLAN attribute logging function;
Wherein, described VLAN attribute logging information comprises attribute event and attribute value, and described attribute value is VLAN ID.
In sum, the present invention by configuring dynamic vlan attribute logging function on the edge device of station network, receive from the attribute logging message in station network, such as, after GVRP message, VLAN attribute logging information in VLAN attribute logging message can be sent to the ED of each remote station being configured with dynamic vlan attribute logging function, regenerated VLAN attribute logging message by the ED of remote station according to this VLAN attribute logging information and propagate in remote station, realizing the dynamic vlan attribute logging across data center.
Accompanying drawing explanation
Fig. 1 is prior art general virtual Local Area Network attributes log-in protocol schematic diagram of mechanism;
Fig. 2 is the virtual interconnected networking schematic diagram of prior art Ethernet;
Fig. 3 is embodiment of the present invention dynamic virtual Local Area Network attributes register method flow chart;
Fig. 4 is embodiment of the present invention Neighbor TLV schematic diagram;
Fig. 5 is embodiment of the present invention VLAN Registration TLV schematic diagram;
Fig. 6 is the structural representation of embodiment of the present invention dynamic virtual Local Area Network attributes register device.
Embodiment
For making object of the present invention, technical scheme and advantage clearly understand, to develop simultaneously embodiment referring to accompanying drawing, scheme of the present invention is described in further detail.
In the embodiment of the present invention, in order to realize the dynamic vlan attribute logging across data center, supporting the station network across the dynamic vlan attribute logging function of data center for needing, dynamic vlan attribute logging function can be configured in advance on the edge device of this station network.When the ED of this station network receives from VLAN attribute logging message in this station network, the VLAN attribute logging information of being carried by VLAN attribute logging message sends from the outgoing interface that the ED of the remote station network being configured with dynamic vlan attribute logging function is corresponding, the ED of this remote station network of final arrival, VLAN attribute logging is carried out at receiving interface by the ED of this remote station network, and regenerate VLAN attribute logging message according to this VLAN attribute logging information, and propagate in this remote station network, thus the dynamic vlan attribute logging realized across data center.
Below by with in the station network of EVI, when adopting GVRP mechanism to carry out VLAN attribute logging in website, how realize the process across data center's (i.e. cross-site network) by ED, embodiment of the present invention technical scheme is described in detail.
Be embodiment of the present invention dynamic virtual Local Area Network attributes register method flow chart see Fig. 3, Fig. 3, the method is applied to the edge device ED of station network in EVI network, mainly comprises the following steps:
Step 301, on this ED, configure dynamic vlan attribute logging function in advance.
For Fig. 2, for station network site1, in ED1, configure dynamic vlan attribute logging function; For station network site2, in ED2, configure dynamic vlan attribute logging function.
Wherein, ED upper configuration dynamic vlan attribute logging function, shows that this ED is supported between station network and carries out VLAN attribute logging.
Step 302, receive from the VLAN attribute logging message in the station network of this ED place, the VLAN attribute logging information that this VLAN attribute logging message carries is sent from the outgoing interface corresponding with the ED of the remote station being configured with dynamic vlan attribute logging function.
The outgoing interface that the ED of remote station is corresponding is EVI interface, is also the interface of this ED above and on the EVI link set up between the ED of remote station.
Here VLAN attribute logging message, just refer to the GVRP message adopting GVRP mechanism, GVRP can realize the dynamic-configuration of VLAN, is to apply based on the one of GARP working mechanism.
Wherein, for the information exchange between GARP application entity, three class messages (also referred to as message) can be included, be respectively statement (Join) message, cancellation (Leave) message and nullify all properties (LeaveAll) message.Wherein,
Join message, is divided into the unregistered attribute of statement (JoinEmpty) and the unregistered attribute of statement (JoinIn) two kinds, is distinguished as: JoinEmpty represents that one, statement itself does not have the attribute registered, and JoinIn represents the chartered attribute of one, statement itself.When a GARP application entity wishes the attribute information of miscellaneous equipment registration oneself, it will externally send Join message; When receiving some attribute of the Join message of other entity or this equipment static configuration, when needing other GARP application entity to register, it also can outwards send Join message.
Leave message is divided into canceling unregistered attribute (LeaveEmpty) and nullifies registered attribute (LeaveIn) two kinds, be distinguished as: LeaveEmpty represents that cancellation one itself does not have the attribute registered, and LeaveIn represents the chartered attribute of cancellation one itself.When a GARP application entity wishes that miscellaneous equipment nullifies the attribute information of oneself, it will externally send Leave message; After the Leave message receiving other entity nullifies some attribute or static state has nullified some attribute, it also can outwards send Leave message.
Nullify all properties (LeaveAll) message, be used for nullifying all attributes, attribute informations all on this entity is re-registered to make other GARP application entity, (such as certain attribute is deleted for the rubbish attribute periodically removed in network with this, but due to the unexpected power-off of equipment, do not send Leave message and notify that other entities nullify this attribute).Each GARP application entity will start LeaveAll timer, when GARP application entity after this timer expiry will externally send LeaveAll message after starting simultaneously.
In embodiments of the present invention, when VLAN attribute logging message is GVRP message, described VLAN attribute logging information specifically can comprise attribute event and attribute value, wherein attribute event can be and nullifies all properties (LeaveAll) event, states registered attribute (JoinIn) event, states unregistered attribute (JoinEmpty) event, nullifies registered attribute (LeaveIn) event or canceling unregistered attribute (LeaveEmpty) event, and attribute value is VLAN mark (ID).Certainly, during for other attribute logging message of employing, same or similar attribute logging information can also be had.
The VLAN attribute logging information that step 303, the ED receiving remote station send, perform the VLAN attribute logging of receiving interface, generate the VLAN attribute logging message that this VLAN attribute logging information is corresponding, and the VLAN attribute logging message of generation is sent from all of the port enabling VLAN attribute logging function.
When the ED being configured with the remote station network of dynamic vlan registering functional receives from VLAN attribute logging message in remote station network, the VLAN attribute logging information that this VLAN attribute logging message carries can be sent from the outgoing interface corresponding with the ED of other station network being configured with dynamic vlan registering functional too.
After the ED of site-local or the ED of remote station receives the VLAN attribute logging information of other website transmission, by generating corresponding VLAN attribute logging message, and sent by other port, so just can make the equipment in each station network, as SW-1, SW-2, SW-3, the SW-4 in Fig. 2 all can register VLAN attribute by port thereon, to guarantee that the message in this VLAN in station network, and can transmit between station network.
In this step, after the VLAN attribute logging information that the ED that this ED receives remote station sends, need the VLAN attribute logging performing receiving interface (receiving the interface of this VLAN attribute logging information), like this, this receiving interface just can process the message of this VLAN.Wherein, the difference of attribute event in the VLAN attribute logging information received, not identical according to the method for the VLAN attribute logging of this VLAN attribute logging information and executing receiving interface yet, be specially:
If attribute event is LeaveAll event in this VLAN attribute logging information, then on this receiving interface, nullify all VLAN attributes;
If attribute event is JoinIn event or JoinEmpty event in this VLAN attribute logging information, then on this receiving interface, register all VLAN that in this VLAN attribute logging information, attribute value comprises;
If attribute event is LeaveIn event or LeaveEmpty event in this VLAN attribute logging information, then on this receiving interface, nullify all VLAN that in this VLAN attribute logging information, attribute value comprises.
In this step, after the VLAN attribute logging information that the ED that this ED receives remote station sends, also can expand VLAN by the EVI local according to the amendment of this VLAN attribute logging information, like this, this ED just can based on this expansion VLAN, message in VLAN, to corresponding MAC Address, is accurately forwarded to corresponding device port with effective by study.Namely local EVI expands VLAN is in order to limits synchronization is to the MAC Address of remote station, just the MAC Address only learnt in each VLAN included by the local EVI expansion VLAN of ED allows to be synchronized to remote station.
Wherein, the difference of attribute event in the VLAN attribute logging information received, the method that the EVI local according to the amendment of this VLAN attribute logging information expands VLAN is not identical yet, is specially:
If attribute event is LeaveAll event in this VLAN attribute logging information, then remove all dynamic vlans in local EVI expansion VLAN;
If attribute event is JoinIn event or JoinEmpty event in this VLAN attribute logging information, then all VLAN that attribute value in this VLAN attribute logging information comprises is joined local EVI and expand in VLAN;
If attribute event is LeaveIn event or LeaveEmpty event in this VLAN attribute logging information, then all VLAN attribute value in this VLAN attribute logging information comprised expand VLAN from the EVI of this locality and remove.
It should be noted that, in this VLAN attribute logging information attribute event be JoinIn event or JoinEmpty event, all VLAN that in this VLAN attribute logging information, attribute value comprises join local EVI as dynamic vlan to expand in VLAN.For VLAN pre-configured in ED, the present embodiment does not need to do special process.
In the present embodiment, VLAN attribute logging message refers to the message that have employed general VLAN attributes registration protocol (GVRP), the method that ED generates VLAN attribute logging message corresponding to VLAN attribute logging information specifically can be: generate a GVRP message, attribute event in this VLAN attribute logging information is inserted in the attribute event field of this GVRP message, the attribute value in this VLAN attribute logging information is inserted in the attribute value field of this GVRP message.Like this, ED by the VLAN attribute logging information of the transmission of remote station, with GVRP message mode, can carry out VLAN attribute logging according to normal GVRP mechanism in this website.
In the embodiment of the present invention shown in Fig. 3, in order to after receiving the GVRP message in website, VLAN attribute logging information announcement GVRP message can carried is to the remote station being configured with dynamic vlan registering functional, need to know that the outgoing interface that the ED of the remote station being configured with dynamic vlan registering functional is corresponding, acquisition method can have following two kinds:
The first: pre-configured or store the ED that other is configured with the website of dynamic vlan registering functional on the ED of each website being configured with dynamic vlan registering functional, like this, according to the ED of other remote station that local ED stores, the ED that just can obtain this website is configured with the outgoing interface that the ED of the remote station network of dynamic vlan registering functional is corresponding.
The second: carry out the notice of dynamic vlan registering functional between the ED being configured with the station network of dynamic vlan registering functional, know the outgoing interface that the ED of remote station is corresponding in announcement process.
Particularly, after the ED of a certain station network is configured with dynamic vlan registering functional, the ED of distally station network can send the hello packet (also can other EVI Intermediate System to Intermediate System message) carrying dynamic vlan attribute logging mark, the hello packet carrying dynamic vlan attribute logging mark that the ED simultaneously also receiving remote station network sends, when receive a certain remote station network ED send carry dynamic vlan attribute logging mark hello packet time, can determine that the ED of this remote station network is configured with dynamic vlan attribute logging function, therefore the port receiving this hello packet is recorded as the outgoing interface that the ED of this remote station network is corresponding.
Such as in fig. 2, after ED1 being configured with dynamic vlan attribute logging function, send the hello packet carrying dynamic vlan attribute logging mark to ED2; After ED2 being configured with dynamic vlan attribute logging function, send the hello packet carrying dynamic vlan attribute logging mark to ED1.Wherein, after what ED1 received that ED2 sends carry the hello packet of dynamic vlan attribute logging mark, outgoing interface corresponding to ED2 can be recorded as by receiving the EVI interface of this hello packet.Equally, after what ED2 received that ED1 sends carry the hello packet of dynamic vlan attribute logging mark, outgoing interface corresponding to ED1 can be recorded as by receiving the EVI interface of this hello packet.
It should be noted that, owing to only there being two station network: site1 and site2 in Fig. 2, therefore the ED2 in ED1 and site2 in site1 only sends the hello packet carrying dynamic vlan attribute logging mark to the other side, if also there is other station network in Fig. 2, then ED1 and ED2 all needs to send to the ED of other station network the hello packet carrying dynamic vlan attribute logging mark, if the ED of other station network is configured with dynamic vlan attribute logging function, need too to send to ED1, ED2 the hello packet carrying dynamic vlan attribute logging mark.
In the present embodiment, by increasing a Neighbor TLV in hello packet, dynamic vlan attribute logging mark can be carried with this Neighbor TLV.Embodiment of the present invention Neighbor TLV schematic diagram such as shown in Fig. 4, wherein,
The type field takies 1 byte, value 0x91, is shown to be Neighbor TLV;
Length field takies 1 byte, and its value is the length of Value field;
Then comprise in Value field: indicate the Exist Smallest neighbor field that there are minimum neighbours, take 1 bit; Indicate the Exist Lagest neighbor field that there are maximum neighbours, take 1 bit; VLAN Registration field (being also dynamic vlan attribute logging tag field), take 1bit, value is 1, expresses support for dynamic vlan attribute logging, and value is that dynamic vlan attribute logging is not supported in 0 expression; Retain (Resv) field, take 4 bits; Neighbor records field, comprising fault bit, Resv, MTU, the several field of MAC Address.In Value field, Exist Smallest neighbor field and Exist Lagest neighbor field are mainly used in hello packet burst.
In the embodiment of the present invention shown in Fig. 3, the transmission of VLAN attribute logging information also can utilize hello packet to realize.Particularly, can by increasing VLAN Registration TLV in hello packet, in this VLAN Registration TLV, inserting the VLAN attribute logging information that GVRP message carries, realizing the transmission of the VLAN attribute logging information that GVRP message carries by sending the hello packet carrying VLAN Registration TLV.Embodiment of the present invention VLAN Registration TLV schematic diagram such as shown in Fig. 5, wherein,
The type field takies 1 byte, value 0x96, is shown to be VLAN Registration TLV;
Length field takies 1 byte, and its value is the length of Value field;
Then comprise in Value field: whether be the S field of minimum VLAN, take 1 bit if indicating; Whether be the L field of maximum VLAN, take 1 bit if indicating; Resv field, takies 5bit; VLAN attribute logging information (Attribute sub-TLV) field.
In this Value field, S field and L field are used for hello packet burst.VLAN attribute logging information field is also a TLV, the type field of this TLV takies 1 byte, wherein deposit the mark value that attribute event in VLAN attribute logging information is corresponding, have 5 kinds of values, often kind of value represents a kind of attribute event, such as: 0x00 represents LeaveAll event, 0x01 represents JoinEmpty event, 0x02 represents JoinIn event, and 0x03 represents LeaveEmpty event, and 0x04 represents LeaveIn event; The Length field of this TLV takies 1 byte, and value is the length of the Value field of this TLV; The attribute value (VLAN ID) in VLAN attribute logging information is deposited in the Value field of this TLV; When the value of the type field in this TLV is mark value 0x00 corresponding to LeaveAll event, the Value field in this TLV is invalid.
In the embodiment of the present invention shown in Fig. 3, above-mentioned step 302 and step 303 can in no particular order sequentially.
In the invention described above embodiment of the method, only with in the station network of EVI network, when carrying out VLAN attribute logging with GVRP mechanism, how ED in station network carries out cross-site internetwork dynamic VALN attribute logging, it will be appreciated by those skilled in the art that, in practical application, if website adopts other attribute logging, it can realize the dynamic VALN attribute logging of across a network website equally by ED, its specific implementation process is similar with employing GVRP mechanism, the form of just concrete VLAN attribute logging message is different, or specific implementation process can be different, this embodiment of the present invention is not particularly limited.
Above embodiment of the present invention dynamic vlan attribute logging method is described in detail, has present invention also offers a kind of dynamic vlan attribute logging device, be described below in conjunction with Fig. 6.
See the structural representation that Fig. 6, Fig. 6 are embodiment of the present invention dynamic virtual Local Area Network attributes register devices, this device, is applied to the ED of station network in EVI network, and as shown in Figure 6, this device comprises: dispensing unit 601, Transmit-Receive Unit 602, control unit 603; Wherein,
Dispensing unit 601, for configuring dynamic vlan attribute logging function in advance on this ED;
Transmit-Receive Unit 602, during for receiving from VLAN attribute logging message in the website of this ED place, the VLAN attribute logging information of being carried by this VLAN attribute logging message sends from the outgoing interface corresponding with the ED being configured with dynamic vlan attribute logging function remote station; For the VLAN attribute logging information that the ED receiving remote station sends;
Control unit 603, when receiving the VLAN attribute logging information of ED transmission of remote station for Transmit-Receive Unit 602, according to the VLAN attribute logging of this VLAN attribute logging information and executing receiving interface, and generate VLAN attribute logging message corresponding to this VLAN attribute logging information;
Transmit-Receive Unit 602, the VLAN attribute logging message also for being generated by control unit 603 sends from all of the port enabling VLAN attribute logging function;
Wherein, described VLAN attribute logging information comprises attribute event and attribute value, and described attribute value is VLAN ID.
The present embodiment device can be deployed in station network, and as ED, thus can realize in the VLAN attribute logging between different station network, its specific implementation can see the explanation of the invention described above embodiment of the method.
In device shown in above-mentioned Fig. 6, described dispensing unit 601, also can be used for the ED of the remote station of stored configuration dynamic vlan attribute logging function in this ED in advance;
Or,
Described Transmit-Receive Unit 602, is further used for after dispensing unit 601 configures dynamic vlan attribute logging function on this ED, and distally the ED of website sends the hello packet carrying dynamic vlan attribute logging mark; And, the hello packet carrying dynamic vlan attribute logging mark that the ED receiving remote station sends;
Described control unit 603, also for Transmit-Receive Unit 602 receive remote station ED send carry dynamic vlan attribute logging mark hello packet time, determine that the ED of this remote station is configured with dynamic vlan attribute logging function, receiving interface is recorded as the outgoing interface that the ED of this remote station is corresponding.
In device shown in above-mentioned Fig. 6, described control unit 603, after also can be used for the VLAN attribute logging information that ED that Transmit-Receive Unit 602 receives remote station sends, the EVI local according to the amendment of this VLAN attribute logging information expands VLAN;
Wherein, Transmit-Receive Unit 602 distally in the VLAN attribute logging information that receives of website attribute event be LeaveAll event, JoinIn event, JoinEmpty event, LeaveIn event or LeaveEmpty event;
Described control unit 603 when the EVI local according to the amendment of this VLAN attribute logging information expands VLAN, for:
If attribute event is LeaveAll event in this VLAN attribute logging information, then empties local EVI and expand VLAN;
If attribute event is JoinIn event or JoinEmpty event in this VLAN attribute logging information, then all VLAN that attribute value in this VLAN attribute logging information comprises is joined local EVI and expand in VLAN;
If attribute event is LeaveIn event or LeaveEmpty event in this VLAN attribute logging information, then all VLAN attribute value in this VLAN attribute logging information comprised expand VLAN from the EVI of this locality and remove.
In device shown in above-mentioned Fig. 6, in the VLAN attribute logging information that the ED of described Transmit-Receive Unit 602 distally website receives, attribute event is LeaveAll event, JoinIn event, JoinEmpty event, LeaveIn event or LeaveEmpty event;
Described control unit 603, when the VLAN attribute logging according to this VLAN attribute logging information and executing receiving interface, specifically can be used for:
If attribute event is LeaveAll event in this VLAN attribute logging information, then on this receiving interface, nullify all VLAN attributes;
If attribute event is JoinIn event or JoinEmpty event in this VLAN attribute logging information, then on this receiving interface, register all VLAN that in this VLAN attribute logging information, attribute value comprises;
If attribute event is LeaveIn event or LeaveEmpty event in this VLAN attribute logging information, then on this receiving interface, nullify all VLAN that in this VLAN attribute logging information, attribute value comprises.
In device shown in above-mentioned Fig. 6, described VLAN attribute logging message specifically can be the message adopting general VLAN attributes registration protocol GVRP;
Described control unit 603 is when the VLAN attribute logging message that this VLAN attribute logging information of generation is corresponding, for: generate a GVRP message, attribute event in this VLAN attribute logging information is inserted in the attribute event field of this GVRP message, the attribute value in this VLAN attribute logging information is inserted in the attribute value field of this GVRP message.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a dynamic virtual local area network (LAN) VLAN attribute logging method, be applied to the edge device ED of station network in the virtual interconnected EVI network of Ethernet, it is characterized in that, on this ED, configure dynamic vlan attribute logging function in advance, the method comprises:
Receive from the VLAN attribute logging message in the website of this ED place, the VLAN attribute logging information that this VLAN attribute logging message carries is sent from the outgoing interface corresponding with the ED of the remote station being configured with dynamic vlan attribute logging function;
The VLAN attribute logging information that the ED receiving remote station sends, according to the VLAN attribute logging of this VLAN attribute logging information and executing receiving interface, and generate VLAN attribute logging message corresponding to this VLAN attribute logging information, this VLAN attribute logging message generated is sent from all of the port enabling VLAN attribute logging function;
Wherein, VLAN attribute logging information comprises attribute event and attribute value, and described attribute value is VLAN ID.
2. method according to claim 1, is characterized in that, also comprises:
The ED of the remote station of stored configuration dynamic vlan attribute logging function in this ED in advance;
Or,
After this ED configures dynamic vlan attribute logging function, comprise further:
Distally the ED of website sends the hello packet carrying dynamic vlan attribute logging mark;
And, when what the ED receiving remote station sent carries the hello packet of dynamic vlan attribute logging mark, determine that the ED of this remote station is configured with dynamic vlan attribute logging function, receiving interface is recorded as the outgoing interface that the ED of this remote station is corresponding.
3. method according to claim 1, is characterized in that, after the VLAN attribute logging information of the ED transmission of described reception remote station, also comprises:
The EVI local according to the amendment of this VLAN attribute logging information expands VLAN;
Wherein, distally in the VLAN attribute logging information that receives of website attribute event for nullifying all properties LeaveAll event, stating registered attribute JoinIn event, state unregistered attribute JoinEmpty event, nullifying registered attribute LeaveIn event or canceling unregistered attribute LeaveEmpty event;
The method that the described EVI local according to the amendment of this VLAN attribute logging information expands VLAN is:
If attribute event is LeaveAll event in this VLAN attribute logging information, then remove all dynamic vlans in local EVI expansion VLAN;
If attribute event is JoinIn event or JoinEmpty event in this VLAN attribute logging information, then all VLAN that attribute value in this VLAN attribute logging information comprises is joined local EVI and expand in VLAN;
If attribute event is LeaveIn event or LeaveEmpty event in this VLAN attribute logging information, then all VLAN attribute value in this VLAN attribute logging information comprised expand VLAN from the EVI of this locality and remove.
4. method according to claim 1, is characterized in that,
Distally in the VLAN attribute logging information that receives of the ED of website, attribute event is LeaveAll event, JoinIn event, JoinEmpty event, LeaveIn event or LeaveEmpty event;
The method performing the VLAN attribute logging of receiving interface is:
If attribute event is LeaveAll event in this VLAN attribute logging information, then on this receiving interface, nullify all VLAN attributes;
If attribute event is JoinIn event or JoinEmpty event in this VLAN attribute logging information, then on this receiving interface, register all VLAN that in this VLAN attribute logging information, attribute value comprises;
If attribute event is LeaveIn event or LeaveEmpty event in this VLAN attribute logging information, then on this receiving interface, nullify all VLAN that in this VLAN attribute logging information, attribute value comprises.
5. method according to claim 1, is characterized in that, described VLAN attribute logging message is specially the message adopting general VLAN attributes registration protocol GVRP;
The method generating VLAN attribute logging message corresponding to this VLAN attribute logging information is:
Generate a GVRP message, the attribute event in this VLAN attribute logging information is inserted in the attribute event field of this GVRP message, the attribute value in this VLAN attribute logging information is inserted in the attribute value field of this GVRP message.
6. a dynamic virtual local area network (LAN) VLAN attribute logging device, be applied to the edge device ED of station network in the virtual interconnected EVI network of Ethernet, it is characterized in that, this device comprises: dispensing unit, Transmit-Receive Unit, control unit;
Described dispensing unit, for configuring dynamic vlan attribute logging function in advance on this ED;
Described Transmit-Receive Unit, for receiving from the VLAN attribute logging message in the website of this ED place, the VLAN attribute logging information that this VLAN attribute logging message carries is sent from the outgoing interface corresponding with the ED of the remote station being configured with dynamic vlan attribute logging function; And the VLAN attribute logging information that the ED for receiving remote station sends, and this VLAN attribute logging information is sent to control unit;
Described control unit, for receive Transmit-Receive Unit send VLAN attribute logging information time, according to the VLAN attribute logging of this VLAN attribute logging information and executing receiving interface, and generate VLAN attribute logging message corresponding to this VLAN attribute logging information;
Described Transmit-Receive Unit, the VLAN attribute logging message also for being generated by control unit sends from all of the port enabling VLAN attribute logging function;
Wherein, described VLAN attribute logging information comprises attribute event and attribute value, and described attribute value is VLAN ID.
7. device according to claim 6, is characterized in that,
Described dispensing unit, also for the ED of the remote station of stored configuration dynamic vlan attribute logging function in this ED in advance;
Or,
Described Transmit-Receive Unit, is further used for after dispensing unit configures dynamic vlan attribute logging function on this ED, and distally the ED of website sends the hello packet carrying dynamic vlan attribute logging mark; And, the hello packet carrying dynamic vlan attribute logging mark that the ED for receiving remote station sends;
Described control unit, also for Transmit-Receive Unit receive remote station ED send carry dynamic vlan attribute logging mark hello packet time, determine that the ED of this remote station is configured with dynamic vlan attribute logging function, receiving interface is recorded as the outgoing interface that the ED of this remote station is corresponding.
8. device according to claim 6, is characterized in that,
Described control unit, after the VLAN attribute logging information that the ED also receiving remote station for Transmit-Receive Unit sends, the EVI local according to the amendment of this VLAN attribute logging information expands VLAN;
Wherein, Transmit-Receive Unit distally in the VLAN attribute logging information that receives of website attribute event be LeaveAll event, JoinIn event, JoinEmpty event, LeaveIn event or LeaveEmpty event;
Described control unit when the EVI local according to the amendment of this VLAN attribute logging information expands VLAN, specifically for:
If attribute event is LeaveAll event in this VLAN attribute logging information, then remove all dynamic vlans in local EVI expansion VLAN;
If attribute event is JoinIn event or JoinEmpty event in this VLAN attribute logging information, then all VLAN that attribute value in this VLAN attribute logging information comprises is joined local EVI and expand in VLAN;
If attribute event is LeaveIn event or LeaveEmpty event in this VLAN attribute logging information, then all VLAN attribute value in this VLAN attribute logging information comprised expand VLAN from the EVI of this locality and remove.
9. device according to claim 6, is characterized in that,
In the VLAN attribute logging information that the ED of Transmit-Receive Unit distally website receives, attribute event is LeaveAll event, JoinIn event, JoinEmpty event, LeaveIn event or LeaveEmpty event;
Described control unit when the VLAN attribute logging according to this VLAN attribute logging information and executing receiving interface, specifically for:
If attribute event is LeaveAll event in this VLAN attribute logging information, then on this receiving interface, nullify all VLAN attributes;
If attribute event is JoinIn event or JoinEmpty event in this VLAN attribute logging information, then on this receiving interface, register all VLAN that in this VLAN attribute logging information, attribute value comprises;
If attribute event is LeaveIn event or LeaveEmpty event in this VLAN attribute logging information, then on this receiving interface, nullify all VLAN that in this VLAN attribute logging information, attribute value comprises.
10. device according to claim 6, is characterized in that, described VLAN attribute logging message is specially the message adopting general VLAN attributes registration protocol GVRP;
Described control unit is when the VLAN attribute logging message that this VLAN attribute logging information of generation is corresponding, for: generate a GVRP message, attribute event in this VLAN attribute logging information is inserted in the attribute event field of this GVRP message, the attribute value in this VLAN attribute logging information is inserted in the attribute value field of this GVRP message.
CN201310328318.8A 2013-07-31 2013-07-31 A kind of dynamic vlan attribute logging method and device Active CN104348797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310328318.8A CN104348797B (en) 2013-07-31 2013-07-31 A kind of dynamic vlan attribute logging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310328318.8A CN104348797B (en) 2013-07-31 2013-07-31 A kind of dynamic vlan attribute logging method and device

Publications (2)

Publication Number Publication Date
CN104348797A true CN104348797A (en) 2015-02-11
CN104348797B CN104348797B (en) 2017-12-15

Family

ID=52503611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310328318.8A Active CN104348797B (en) 2013-07-31 2013-07-31 A kind of dynamic vlan attribute logging method and device

Country Status (1)

Country Link
CN (1) CN104348797B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465561A (en) * 2017-09-22 2017-12-12 安徽皖通邮电股份有限公司 The implementation method that a kind of ether exchange network NE management is opened certainly

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6847620B1 (en) * 1999-05-13 2005-01-25 Intermec Ip Corp. Mobile virtual LAN
CN101119275A (en) * 2007-09-19 2008-02-06 杭州华三通信技术有限公司 Method, equipment and system for service provider equipment to obtain information
CN101483573A (en) * 2009-02-09 2009-07-15 杭州华三通信技术有限公司 Method and network node for GVRP dynamic learning
CN101945044A (en) * 2010-09-09 2011-01-12 中兴通讯股份有限公司 Attribute registration method for switched network and switching equipment
CN102594711A (en) * 2012-03-28 2012-07-18 杭州华三通信技术有限公司 Message forwarding method and edge device therefor
CN103095508A (en) * 2013-02-25 2013-05-08 杭州华三通信技术有限公司 Business access method and edge device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6847620B1 (en) * 1999-05-13 2005-01-25 Intermec Ip Corp. Mobile virtual LAN
CN101119275A (en) * 2007-09-19 2008-02-06 杭州华三通信技术有限公司 Method, equipment and system for service provider equipment to obtain information
CN101483573A (en) * 2009-02-09 2009-07-15 杭州华三通信技术有限公司 Method and network node for GVRP dynamic learning
CN101945044A (en) * 2010-09-09 2011-01-12 中兴通讯股份有限公司 Attribute registration method for switched network and switching equipment
CN102594711A (en) * 2012-03-28 2012-07-18 杭州华三通信技术有限公司 Message forwarding method and edge device therefor
CN103095508A (en) * 2013-02-25 2013-05-08 杭州华三通信技术有限公司 Business access method and edge device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465561A (en) * 2017-09-22 2017-12-12 安徽皖通邮电股份有限公司 The implementation method that a kind of ether exchange network NE management is opened certainly

Also Published As

Publication number Publication date
CN104348797B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
US11431526B2 (en) Deterministic forwarding across L2 and L3 networks
US9197583B2 (en) Signaling of attachment circuit status and automatic discovery of inter-chassis communication peers
CN104579728B (en) Network element device configuration and management method, device and network element device
CN105577502B (en) Service transmission method and device
CN102413060B (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
EP2983331B1 (en) Method and device for storing and sending mac address entry
WO2021068641A1 (en) Virtual private network multicast method based on ipv6 netwrok and electronic device
US9288067B2 (en) Adjacency server for virtual private networks
CN107040441B (en) Cross-data-center data transmission method, device and system
US8964749B2 (en) Method, device and system for establishing a pseudo wire
WO2018171396A1 (en) Data transmission method, device and system
CN103209092A (en) Method and system for suppressing broadcast storm
JP5774711B2 (en) Pseudowire routing propagation method and apparatus
CN107018076A (en) A kind of monitoring messages method and apparatus
CN102255762A (en) Method and device for constructing network example
CN103780437A (en) Information synchronization method and device
CN102170710B (en) A kind of method and system realizing leaf node and find in label switched path
WO2013117165A1 (en) Method and node for realizing e-tree service based on vpls
US9548887B2 (en) Proactive creation of multicast state in an overlay transport network to achieve fast convergence on failover
CN103369064B (en) The learning method of a kind of ARP and equipment
CN104348797A (en) Dynamic VLAN (Virtual Local Area Network) attribute registration method and device
SE541314C2 (en) Methods and apparatuses for routing data packets in a network topology
CN103095507B (en) Based on message transmitting method and the edge device of Ethernet virtualization internet network
CN103414646B (en) A kind of multicast service negotiation method and device
CN107948069B (en) UTN network fusion method based on IP technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: Xinhua three Technology 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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant