+

CN104348797B - A kind of dynamic vlan attribute logging method and device - Google Patents

A kind of dynamic vlan attribute logging method and device Download PDF

Info

Publication number
CN104348797B
CN104348797B CN201310328318.8A CN201310328318A CN104348797B CN 104348797 B CN104348797 B CN 104348797B CN 201310328318 A CN201310328318 A CN 201310328318A CN 104348797 B CN104348797 B CN 104348797B
Authority
CN
China
Prior art keywords
vlan
event
attribute
attribute registration
registration information
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.)
Active
Application number
CN201310328318.8A
Other languages
Chinese (zh)
Other versions
CN104348797A (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 Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New 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

Landscapes

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

Abstract

The invention provides a kind of dynamic vlan attribute logging method and device, technical scheme to be:Dynamic vlan attribute logging function is configured on the ED of this website;After this ED receives the VLAN attribute logging messages in station network, VLAN attribute logging information in VLAN attribute logging messages is sent to the ED for being configured with dynamic vlan attribute logging function remote station, the ED of remote station regenerates VLAN attribute loggings message corresponding to the VLAN attribute logging information and propagated in remote station.The present invention can realize the dynamic vlan attribute logging across data center.

Description

Dynamic VLAN (virtual local area network) attribute registration method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for dynamic Virtual Local Area Network (VLAN) attribute registration.
Background
Ethernet Virtualization Interconnection (EVI) is a "MAC (Media Access Control) in IP" technology for implementing L2VPN (Layer 2Virtual Private Network) based on an IP (internet protocol) core Network. The EVI network consists of a core network, a site network and an overlapping network, wherein the site network is a two-layer network which is connected to the core network through one or more edge devices and has an independent service function; the overlapped network is a virtual network established between edge devices, provides two-layer interconnection between site networks, advertises MAC addresses of all hosts and routers connected to the edge devices, and interconnects a plurality of sites to form a larger two-layer forwarding domain; the core network is a network that provides interconnection between networks of sites carried by the IP routing device.
In a site network of an EVI network, a generic VLAN attribute registration Protocol (GARP VLAN registration Protocol, GVRP) is usually adopted to assist distribution, propagation, and registration of VLAN information among members in the same local area network. Each port on the device that participates in the protocol may be considered an application entity, and when a GVRP application is started on a port, the port may be considered a GVRP application entity. The GVRP application entity informs other GVRP application entities to register or cancel own VLAN attribute information through the sent declaration or the recovery declaration, and registers or cancels the VLAN attribute information of the other party according to the declaration or the recovery declaration sent by other entities. Through the GVRP mechanism, the configuration information on one GVRP application entity can be rapidly spread throughout the local area network.
Referring to fig. 1, fig. 1 is a schematic diagram of performing VLAN attribute registration by using a GVRP mechanism in the prior art, where a port 1 of a device a is connected to a port 2 of a device B, and both the port 1 and the port 2 start GVRP applications, and may send a VLAN attribute declaration or a VLAN attribute declaration to the port 2 from the port 1, and when a VLAN attribute declaration (Join message) sent from the port 1 is received at the port 2, the port 2 registers the VLAN attribute included in the declaration, that is, the port 2 is added to the VLAN; when port 2 receives a reclaim declaration (Leave message) of the VLAN attribute sent from port 1, port 2 will deregister the VLAN attribute contained in the declaration, i.e., exit the port from the VLAN.
At present, the GVRP only supports two-layer networks, and with the development of large two-layer network technologies across data centers, the GVRP deployed in such networks cannot meet the needs.
Referring to fig. 2, fig. 2 is a schematic diagram of an EVI networking, in the networking shown in fig. 2, a site network site1 is connected to a core network through an edge device ED1, a site network site2 is connected to the core network through an edge device ED2, the site1 includes switching devices SW-1 and SW-2, SW-1 newly joins a user device 1, and the user device 1 is classified into a VLAN 100; site2 includes switching devices SW-3 and SW-4, SW-3 is newly added to user device 2, and user device 2 is classified into VLAN 100; GVRP functionality is enabled on all devices in site1 and site 2.
Since the user equipment 1 and the user equipment 2 are in different data centers (site networks), when the GVRP registration message reaches the edge device ED of the data center, the edge device ED cannot send the VLAN registration information to the opposite-end data center, so that the data communication of the VLAN100 cannot be performed between the user equipment 1 and the user equipment 2.
In order to solve the above problem, conventionally, VLAN configuration is usually performed on an edge device ED of a site network in advance, and when a new user device joins the site network and the new user device is classified into a new VLAN (before, there is no user device belonging to the VLAN in the site network), a reserved VLAN manner needs to be adopted, that is, these reserved VLANs, such as VLAN100, are configured in advance on an EVI interface of the ED of the site network, however, in a case that there is no user device belonging to VLAN100 in the site network, broadcast messages of VLANs 100 of other sites still flood into the site network.
Disclosure of Invention
In view of this, the present invention provides a dynamic VLAN attribute registration method and apparatus, which can implement cross-data center dynamic VLAN attribute registration.
In order to achieve the purpose, the technical scheme provided by the invention is as follows:
a dynamic VLAN attribute registration method is applied to an edge device ED of a site network in an Ethernet virtualization interconnection EVI network, and a dynamic VLAN attribute registration function is configured on the ED in advance, and the method comprises the following steps:
receiving VLAN attribute registration messages from the site where the ED is located, and sending VLAN attribute registration information carried by the VLAN attribute registration messages out from an output interface corresponding to the ED of the remote site configured with the dynamic VLAN attribute registration function;
receiving VLAN attribute registration information sent by ED of a remote station, executing VLAN attribute registration of a receiving interface according to the VLAN attribute registration information, generating a VLAN attribute registration message corresponding to the VLAN attribute registration information, and sending the generated VLAN attribute registration message out of all ports with a VLAN attribute registration function;
the VLAN attribute registration information comprises an attribute event and an attribute value, wherein the attribute value is a VLAN ID.
A dynamic VLAN attribute registration device is applied to an edge device ED of a site network in an Ethernet Virtualization Interconnection (EVI) network, and comprises the following components: the device comprises a configuration unit, a transmitting-receiving unit and a control unit;
the configuration unit is used for configuring a dynamic VLAN attribute registration function on the ED in advance;
the receiving and sending unit is used for receiving VLAN attribute registration messages from the site where the ED is located and sending VLAN attribute registration information carried by the VLAN attribute registration messages out of an output interface corresponding to the ED of the remote site which is configured with a dynamic VLAN attribute registration function; the VLAN attribute registration information is used for receiving the VLAN attribute registration information sent by the ED of the remote station and sending the VLAN attribute registration information to the control unit;
the control unit is used for executing VLAN attribute registration of the receiving interface according to the VLAN attribute registration information when receiving the VLAN attribute registration information sent by the receiving and sending unit and generating a VLAN attribute registration message corresponding to the VLAN attribute registration information;
the receiving and sending unit is also used for sending the VLAN attribute registration message generated by the control unit out of all ports with the VLAN attribute registration function enabled;
the VLAN attribute registration information comprises an attribute event and an attribute value, wherein the attribute value is a VLANID.
In summary, the present invention configures a dynamic VLAN attribute registration function on an edge device of a site network, and after receiving an attribute registration message, such as a GVRP message, from within the site network, the present invention may send VLAN attribute registration information in the VLAN attribute registration message to an ED of each remote site configured with the dynamic VLAN attribute registration function, and the ED of the remote site regenerates the VLAN attribute registration message according to the VLAN attribute registration information and transmits the VLAN attribute registration message within the remote site, thereby implementing dynamic VLAN attribute registration across data centers.
Drawings
FIG. 1 is a diagram of a prior art generic VLAN attribute registration protocol mechanism;
FIG. 2 is a schematic diagram of a prior art Ethernet virtualized internetworking;
fig. 3 is a flowchart of a method for dynamic vlan attribute registration according to an embodiment of the present invention;
FIG. 4 is a schematic representation of a Neighbor TLV of an embodiment of the present invention;
FIG. 5 is a schematic diagram of a VLAN Registration TLV according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a dynamic vlan attribute registration apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention will be described in detail with reference to the accompanying drawings.
In the embodiment of the invention, in order to realize the cross-data center dynamic VLAN attribute registration, for a site network needing to support the cross-data center dynamic VLAN attribute registration function, the dynamic VLAN attribute registration function can be configured on the edge device of the site network in advance. When the ED of the site network receives a VLAN attribute registration message from the site network, VLAN attribute registration information carried by the VLAN attribute registration message is sent out from an outgoing interface corresponding to the ED of the remote site network configured with a dynamic VLAN attribute registration function and finally reaches the ED of the remote site network, the ED of the remote site network performs VLAN attribute registration on a receiving interface, and regenerates the VLAN attribute registration message according to the VLAN attribute registration information and transmits the VLAN attribute registration message in the remote site network, thereby realizing the dynamic VLAN attribute registration across the data center.
The following describes in detail how to implement a process of crossing data centers (i.e., crossing site networks) by ED when a GVRP mechanism is used to register an intra-site VLAN attribute in an EVI site network.
Referring to fig. 3, fig. 3 is a flowchart of a dynamic vlan attribute registration method according to an embodiment of the present invention, where the method is applied to an edge device ED of a site network in an EVI network, and mainly includes the following steps:
step 301, configuring a dynamic VLAN attribute registration function on the ED in advance.
Taking fig. 2 as an example, for the site network site1, a dynamic VLAN attribute registration function is configured in the ED 1; for site network site2, a dynamic VLAN attribute registration function is configured in ED 2.
The ED is configured with a dynamic VLAN attribute registration function, which indicates that the ED supports VLAN attribute registration between site networks.
Step 302, receiving a VLAN attribute registration message from a site network where the ED is located, and sending VLAN attribute registration information carried in the VLAN attribute registration message out from an egress interface corresponding to the ED of the remote site configured with the dynamic VLAN attribute registration function.
An outgoing interface corresponding to the ED of the remote site is an EVI interface, that is, an interface on an EVI link established between the ED of the remote site and the ED of the remote site.
The VLAN attribute registration message is a GVRP message using a GVRP mechanism, which can implement dynamic configuration of a VLAN and is an application based on a GARP working mechanism.
The method for exchanging information between GARP application entities may include three types of messages (also referred to as messages), which are a declaration (Join) message, a revocation (Leave) message, and a revocation all attribute (Leave all) message. Wherein,
the Join message is divided into a declaration unregistered attribute (JoinEmpty) and a declaration unregistered attribute (JoinIn), and the differences are as follows: JoinEmpty denotes an attribute that declares that it is not registered, and JoinIn denotes an attribute that declares that it is registered. When a GARP application entity wants other equipment to register own attribute information, the GARP application entity sends Join information to the outside; when receiving Join messages of other entities or the device is statically configured with certain attributes and needs other GARP application entities to register, the device also sends the Join messages outwards.
The Leave message is divided into a unregistered attribute (Leave empty) and a unregistered attribute (Leave in), and the difference is as follows: the LeaveEmpty indicates that an attribute which is not registered per se is revoked, and the LeaveIn indicates that an attribute which is registered per se is revoked. When a GARP application entity wants other equipment to log out the attribute information of the GARP application entity, the GARP application entity sends a Leave message to the outside; when the Leave message of other entity logs off some attributes or statically logs off some attributes, it will send the Leave message outwards.
A Leave all (leveall) message is used to log out all attributes, so that other GARP application entities re-register all attribute information on the entity, thereby periodically clearing the network of spam attributes (e.g. an attribute has been deleted, but due to sudden power off of the device, no Leave message is sent to notify other entities to log out the attribute). After each GARP application entity is started, a LeaveAll timer is started at the same time, and after the timer is overtime, the GARP application entity sends a LeaveAll message to the outside.
In the embodiment of the present invention, when the VLAN attribute registration packet is a GVRP packet, the VLAN attribute registration information may specifically include an attribute event and an attribute value, where the attribute event may be a logout event of all attributes (LeaveAll), a declaration of a registered attribute (JoinIn), a declaration of an unregistered attribute (JoinEmpty), a logout event of a registered attribute (LeaveIn), or a logout event of an unregistered attribute (leaveeempty), and the attribute value is a VLAN Identifier (ID). Of course, the same or similar attribute registration information may be available for other attribute registration messages.
Step 303, receiving VLAN attribute registration information sent by the ED of the remote station, performing VLAN attribute registration of the receiving interface, generating a VLAN attribute registration packet corresponding to the VLAN attribute registration information, and sending the generated VLAN attribute registration packet out from all ports that enable the VLAN attribute registration function.
When the ED of the remote site network configured with the dynamic VLAN registration function receives a VLAN attribute registration message from the remote site network, the ED of the remote site network configured with the dynamic VLAN registration function also sends VLAN attribute registration information carried in the VLAN attribute registration message to an egress interface corresponding to the ED of another site network configured with the dynamic VLAN registration function.
After the ED of the local site or the ED of the remote site receives the VLAN attribute registration information sent by the other site, the ED of the local site or the ED of the remote site generates a corresponding VLAN attribute registration message and sends the VLAN attribute registration message through the other port, so that devices in each site network, such as SW-1, SW-2, SW-3, and SW-4 in fig. 2, can register the VLAN attribute at the port thereof, so as to ensure that the message in the VLAN can be transmitted in the site network and between the site networks.
In this step, after receiving the VLAN attribute registration information sent by the ED of the remote site, the local ED needs to perform VLAN attribute registration of a receiving interface (an interface that receives the VLAN attribute registration information), so that the receiving interface processes the VLAN packet. The method for executing VLAN attribute registration of the receiving interface according to the VLAN attribute registration information is different depending on the attribute event in the received VLAN attribute registration information, and specifically includes:
if the attribute event in the VLAN attribute registration information is a leave all event, all VLAN attributes are cancelled on the receiving interface;
if the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, registering all VLANs included in the attribute value in the VLAN attribute registration information on the receiving interface;
and if the attribute event in the VLAN attribute registration information is a leave in event or a leave empty event, canceling all VLANs included by the attribute value in the VLAN attribute registration information on the receiving interface.
In this step, after receiving the VLAN attribute registration information sent by the ED of the remote site, the ED may modify the local EVI extended VLAN according to the VLAN attribute registration information, so that the ED may learn the corresponding MAC address based on the extended VLAN, so as to effectively and accurately forward the packet in the VLAN to the corresponding device port. That is, the local EVI extended VLAN is to limit the MAC addresses synchronized to the remote site, and only MAC addresses learned within each VLAN included in the ED local EVI extended VLAN are allowed to be synchronized to the remote site.
The method for modifying the local EVI extended VLAN according to the VLAN attribute registration information is different according to the different attribute events in the received VLAN attribute registration information, and specifically comprises the following steps:
if the attribute event in the VLAN attribute registration information is a leave all event, clearing all dynamic VLANs in the local EVI extended VLAN;
if the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, adding all VLANs included by the attribute value in the VLAN attribute registration information into a local EVI extended VLAN;
if the attribute event in the VLAN attribute registration information is a leave in event or a leave empty event, all VLANs included in the attribute value in the VLAN attribute registration information are removed from the local EVI extended VLAN.
It should be noted that, when the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, all VLANs included in the attribute value in the VLAN attribute registration information are added as dynamic VLANs to the local EVI extended VLAN. For the VLAN pre-configured in the ED, this embodiment does not need to do special processing.
In this embodiment, the VLAN attribute registration packet refers to a packet that uses the general VLAN attribute registration protocol (GVRP), and the method for generating the VLAN attribute registration packet corresponding to the VLAN attribute registration information by the ED may specifically be: and generating a GVRP message, filling the attribute event in the VLAN attribute registration information into an attribute event field of the GVRP message, and filling the attribute value in the VLAN attribute registration information into an attribute value field of the GVRP message. Thus, the ED can register the VLAN attribute of the VLAN attribute registration information sent by the remote site in the GVRP packet mode in the local site according to the normal GVRP mechanism.
In the embodiment of the present invention shown in fig. 3, in order to notify, after receiving a GVRP packet in a site, VLAN attribute registration information carried in the GVRP packet to a remote site configured with a dynamic VLAN registration function, an egress interface corresponding to an ED of the remote site configured with the dynamic VLAN registration function needs to be known, and the known methods may include the following two methods:
the first method comprises the following steps: the ED of the other sites configured with the dynamic VLAN registration function is pre-configured or stored on the ED of each site configured with the dynamic VLAN registration function, so that the corresponding outgoing interface of the ED of the remote site network configured with the dynamic VLAN registration function on the ED of the site can be obtained according to the ED of the other remote sites stored on the local ED.
And the second method comprises the following steps: and carrying out dynamic VLAN registration function notification among the EDs of the site network configured with the dynamic VLAN registration function, and acquiring an output interface corresponding to the ED of the remote site in the notification process.
Specifically, after the ED of a certain site network IS configured with the dynamic VLAN registration function, a Hello packet (or other EVI IS-IS protocol packets) carrying the dynamic VLAN attribute registration flag may be sent to the ED of the remote site network, and the Hello packet carrying the dynamic VLAN attribute registration flag sent by the ED of the remote site network IS also received.
For example, in fig. 2, after the ED1 is configured with the dynamic VLAN attribute registration function, it sends a Hello packet carrying a dynamic VLAN attribute registration flag to the ED 2; after the ED2 is configured with the dynamic VLAN attribute registration function, it sends a Hello packet carrying a dynamic VLAN attribute registration flag to the ED 1. After receiving the Hello message carrying the dynamic VLAN attribute registration flag sent by the ED2, the ED1 records the EVI interface receiving the Hello message as the outgoing interface corresponding to the ED 2. Similarly, after the ED2 receives the Hello message carrying the dynamic VLAN attribute registration flag sent by the ED1, the EVI interface receiving the Hello message is recorded as the outgoing interface corresponding to the ED 1.
It should be noted that, since there are only two site networks in fig. 2: therefore, site1 and site2 are only sending Hello messages carrying dynamic VLAN attribute registration tags to the opposite side by ED1 in site1 and ED2 in site2, if there are other site networks in fig. 2, both ED1 and ED2 need to send Hello messages carrying dynamic VLAN attribute registration tags to the EDs of the other site networks, and if the EDs of the other site networks configure dynamic VLAN attribute registration functions, Hello messages carrying dynamic VLAN attribute registration tags also need to be sent to ED1 and ED 2.
In this embodiment, a Neighbor TLV may be added to the Hello packet, and the Neighbor TLV is used to carry the dynamic VLAN attribute registration flag. A schematic diagram of an embodiment Neighbor TLV of the present invention, such as that shown in fig. 4, wherein,
the Type field occupies 1 byte, takes a value of 0x91 and indicates a Neighbor TLV;
the Length field occupies 1 byte, and the Length field is the Length of the Value field;
the Value field includes: an Exist smallst Neighbor field indicating that the minimum Neighbor exists occupies 1 bit; an Exist Laget Neighbor field indicating that the largest Neighbor exists occupies 1 bit; a VLAN Registration field (also called a dynamic VLAN attribute Registration flag field) occupies 1bit, and takes a value of 1 to indicate that dynamic VLAN attribute Registration is supported, and takes a value of 0 to indicate that dynamic VLAN attribute Registration is not supported; reserved (Resv) field, occupying 4 bits; the fields of Neighbor records include fault bit, Resv, MTU, MAC address. In the Value field, an Exist SmallestNeighbor field and an Exist Lagest Neighbor field are mainly used for fragmentation of the Hello message.
In the embodiment of the present invention shown in fig. 3, the sending of the VLAN attribute registration information may also be implemented by using a Hello packet. Specifically, the sending of the VLAN attribute Registration information carried by the GVRP packet can be realized by adding a VLAN Registration TLV to the Hello packet, filling the VLAN attribute Registration information carried by the GVRP packet in the VLAN Registration TLV, and sending the Hello packet carrying the VLAN Registration TLV. For example, fig. 5 is a schematic diagram of VLAN Registration TLV according to an embodiment of the present invention, wherein,
the Type field occupies 1 byte, takes a value of 0x96, and indicates VLAN Registration TLV;
the Length field occupies 1 byte, and the Length field is the Length of the Value field;
the Value field includes: whether the S field is the minimum VLAN or not is marked, and 1bit is occupied; indicating whether the L field is the L field of the maximum VLAN and occupying 1 bit; resv field, occupying 5 bits; a VLAN Attribute registration information (Attribute sub-TLV) field.
In the Value field, an S field and an L field are used for Hello packet fragmentation. The VLAN attribute registration information field is also a TLV, and a type field of the TLV occupies 1 byte, where a tag value corresponding to an attribute event in the VLAN attribute registration information is stored, and there are 5 kinds of values, where each value represents an attribute event, for example: 0x00 represents a LeaveAll event, 0x01 represents a JoinEmpty event, 0x02 represents a JoinIn event, 0x03 represents a leaveeempty event, and 0x04 represents a LeaveIn event; the Length field of the TLV occupies 1 byte, and the Value is the Length of the Value field of the TLV; the Value field of the TLV is stored with the attribute Value (VLAN ID) in the VLAN attribute registration information; when the Value of the Type field in the TLV is the flag Value 0x00 corresponding to the LeaveAll event, the Value field in the TLV is invalid.
In the embodiment of the present invention shown in fig. 3, the above step 302 and step 303 may not be in a sequential order.
In the above embodiment of the method of the present invention, when performing VLAN attribute registration only with a GVRP mechanism in a site network of an EVI network, how an ED in the site network performs dynamic VLAN attribute registration between cross-site networks, a person skilled in the art may understand that, in practical applications, if a network site performs other attribute registration, it may also implement dynamic VLAN attribute registration between cross-site networks through the ED, and a specific implementation process of the method is similar to that of the method using the GVRP mechanism, but a format of a specific VLAN attribute registration packet is different, or a specific implementation process of the VLAN attribute registration packet is different, and thus, the embodiment of the present invention is not particularly limited.
The above describes in detail the dynamic VLAN attribute registration method according to the embodiment of the present invention, and the present invention further provides a dynamic VLAN attribute registration apparatus, which is described below with reference to fig. 6.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a dynamic vlan attribute registration apparatus according to an embodiment of the present invention, which is applied to an ED of a station network in an EVI network, and as shown in fig. 6, the apparatus includes: a configuration unit 601, a transmitting/receiving unit 602, and a control unit 603; wherein,
a configuration unit 601, configured to configure a dynamic VLAN attribute registration function on the local ED in advance;
a transceiver unit 602, configured to send, when receiving a VLAN attribute registration message from a site where an ED is located, VLAN attribute registration information carried in the VLAN attribute registration message from an egress interface corresponding to the ED of a remote site configured with a dynamic VLAN attribute registration function; the VLAN attribute registration information is used for receiving VLAN attribute registration information sent by an ED of a remote station;
a control unit 603, configured to, when the transceiver unit 602 receives VLAN attribute registration information sent by the ED of the remote site, perform VLAN attribute registration of the receiving interface according to the VLAN attribute registration information, and generate a VLAN attribute registration packet corresponding to the VLAN attribute registration information;
the transceiving unit 602 is further configured to send the VLAN attribute registration packet generated by the control unit 603 out of all ports that enable the VLAN attribute registration function;
the VLAN attribute registration information comprises an attribute event and an attribute value, wherein the attribute value is a VLANID.
The device of this embodiment may be deployed in a site network as an ED, so that VLAN attribute registration between different site networks may be implemented, and for specific implementation, reference may be made to the description of the method embodiment of the present invention.
In the apparatus shown in fig. 6, the configuration unit 601 may be further configured to store, in the local ED, an ED of a remote station configured with a dynamic VLAN attribute registration function in advance;
or,
the transceiver 602 is further configured to send a Hello packet carrying a dynamic VLAN attribute registration flag to the ED of the remote site after the configuration unit 601 configures the dynamic VLAN attribute registration function on the ED; receiving a Hello message which is sent by an ED (edge device) of a remote site and carries a dynamic VLAN (virtual local area network) attribute registration mark;
the control unit 603 is further configured to, when the transceiver unit 602 receives a Hello packet carrying a dynamic VLAN attribute registration flag sent by an ED of a remote site, determine that the ED of the remote site configures a dynamic VLAN attribute registration function, and record a receiving interface as an egress interface corresponding to the ED of the remote site.
In the apparatus shown in fig. 6, the control unit 603 may be further configured to, after the transceiver 602 receives VLAN attribute registration information sent by the ED of the remote station, modify the local EVI extended VLAN according to the VLAN attribute registration information;
wherein, the attribute event in the VLAN attribute registration information received by the transceiving unit 602 from the remote site is a LeaveAll event, a JoinIn event, a JoinEmpty event, a LeaveIn event, or a leaveeempty event;
the control unit 603, when modifying the local EVI extended VLAN according to the VLAN attribute registration information, is configured to:
if the attribute event in the VLAN attribute registration information is a leave all event, clearing the local EVI extended VLAN;
if the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, adding all VLANs included by the attribute value in the VLAN attribute registration information into a local EVI extended VLAN;
if the attribute event in the VLAN attribute registration information is a leave in event or a leave empty event, all VLANs included in the attribute value in the VLAN attribute registration information are removed from the local EVI extended VLAN.
In the apparatus shown in fig. 6, the attribute event in the VLAN attribute registration information received by the transceiver 602 from the ED of the remote site is a LeaveAll event, a JoinIn event, a JoinEmpty event, a LeaveIn event, or a leavempty event;
when the control unit 603 performs VLAN attribute registration of the receiving interface according to the VLAN attribute registration information, the control unit may specifically be configured to:
if the attribute event in the VLAN attribute registration information is a leave all event, all VLAN attributes are cancelled on the receiving interface;
if the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, registering all VLANs included in the attribute value in the VLAN attribute registration information on the receiving interface;
and if the attribute event in the VLAN attribute registration information is a leave in event or a leave empty event, canceling all VLANs included by the attribute value in the VLAN attribute registration information on the receiving interface.
In the apparatus shown in fig. 6, the VLAN attribute registration packet may specifically be a packet using a general VLAN attribute registration protocol GVRP;
when generating the VLAN attribute registration packet corresponding to the VLAN attribute registration information, the control unit 603 is configured to: and generating a GVRP message, filling the attribute event in the VLAN attribute registration information into an attribute event field of the GVRP message, and filling the attribute value in the VLAN attribute registration information into an attribute value field of the GVRP message.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A dynamic virtual local area network VLAN attribute registration method is applied to an edge device ED of a site network in an Ethernet virtualization interconnection EVI network, and is characterized in that a dynamic VLAN attribute registration function is configured on the ED in advance, so that the ED supports VLAN attribute registration between the site networks; the method comprises the following steps:
receiving VLAN attribute registration messages from the site where the ED is located, and sending VLAN attribute registration information carried by the VLAN attribute registration messages out from an output interface corresponding to the ED of the remote site configured with the dynamic VLAN attribute registration function; an output interface corresponding to the ED of the remote station is an interface on an EVI link established between the ED and the ED of the remote station;
receiving VLAN attribute registration information sent by ED of a remote station, executing VLAN attribute registration of an interface for receiving the VLAN attribute registration information according to the VLAN attribute registration information, generating a VLAN attribute registration message corresponding to the VLAN attribute registration information, and sending the generated VLAN attribute registration message out from all ports with a VLAN attribute registration function;
the VLAN attribute registration information comprises an attribute event and an attribute value, wherein the attribute value is a VLAN ID.
2. The method of claim 1, further comprising:
the method comprises the steps that an ED of a remote station with a dynamic VLAN attribute registration function is stored in the ED in advance;
or,
after configuring the dynamic VLAN attribute registration function on the ED, the method further includes:
sending a Hello message carrying a dynamic VLAN attribute registration mark to an ED of a remote station;
and when receiving a Hello message carrying the dynamic VLAN attribute registration mark sent by the ED of the remote site, determining that the ED of the remote site is configured with a dynamic VLAN attribute registration function, and recording a receiving interface as an outgoing interface corresponding to the ED of the remote site.
3. The method according to claim 1, wherein after receiving the VLAN attribute registration information sent by the ED of the remote station, the method further comprises:
modifying a local EVI extended VLAN according to the VLAN attribute registration information;
the VLAN attribute registration information received from the remote site comprises VLAN attribute registration information, wherein the attribute events in the VLAN attribute registration information received from the remote site are all attribute leaveAll event logout, registered attribute joinIn event declaration, unregistered attribute joinEmpty event declaration, registered attribute leaveIn event logout or unregistered attribute leaveEmpty event logout;
the method for modifying the local EVI extended VLAN according to the VLAN attribute registration information comprises the following steps:
if the attribute event in the VLAN attribute registration information is a leave all event, clearing all dynamic VLANs in the local EVI extended VLAN;
if the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, all VLANs included by the attribute value in the VLAN attribute registration information are used as dynamic VLANs and added into a local EVI extended VLAN;
if the attribute event in the VLAN attribute registration information is a leave in event or a leave empty event, all VLANs included in the attribute value in the VLAN attribute registration information are removed from the local EVI extended VLAN.
4. The method of claim 1,
the attribute event in the VLAN attribute registration information received from the ED of the remote site is a LeaveAll event, a Joinlin event, a JoinEmpty event, a LeaveIn event or a LeaveEmpty event;
the method for executing VLAN attribute registration of the receiving interface comprises the following steps:
if the attribute event in the VLAN attribute registration information is a leave all event, all VLAN attributes are cancelled on the receiving interface;
if the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, registering all VLANs included in the attribute value in the VLAN attribute registration information on the receiving interface;
and if the attribute event in the VLAN attribute registration information is a leave in event or a leave empty event, canceling all VLANs included by the attribute value in the VLAN attribute registration information on the receiving interface.
5. The method according to claim 1, wherein the VLAN attribute registration packet is specifically a packet using the general VLAN attribute registration protocol GVRP;
the method for generating the VLAN attribute registration message corresponding to the VLAN attribute registration information comprises the following steps:
and generating a GVRP message, filling the attribute event in the VLAN attribute registration information into an attribute event field of the GVRP message, and filling the attribute value in the VLAN attribute registration information into an attribute value field of the GVRP message.
6. A dynamic Virtual Local Area Network (VLAN) attribute registration device is applied to an Edge Device (ED) of a site network in an Ethernet Virtualization Interconnection (EVI) network, and is characterized by comprising the following steps: the device comprises a configuration unit, a transmitting-receiving unit and a control unit;
the configuration unit is used for configuring a dynamic VLAN attribute registration function on the ED in advance, so that the ED supports VLAN attribute registration between site networks;
the receiving and sending unit is used for receiving VLAN attribute registration messages from the site where the ED is located and sending VLAN attribute registration information carried by the VLAN attribute registration messages out of an output interface corresponding to the ED of the remote site which is configured with a dynamic VLAN attribute registration function; the VLAN attribute registration information is used for receiving the VLAN attribute registration information sent by the ED of the remote station and sending the VLAN attribute registration information to the control unit; an output interface corresponding to the ED of the remote station is an interface on an EVI link established between the ED and the ED of the remote station;
the control unit is used for executing VLAN attribute registration of an interface for receiving the VLAN attribute registration information according to the VLAN attribute registration information when receiving the VLAN attribute registration information sent by the receiving and sending unit and generating a VLAN attribute registration message corresponding to the VLAN attribute registration information;
the receiving and sending unit is also used for sending the VLAN attribute registration message generated by the control unit out of all ports with the VLAN attribute registration function enabled;
the VLAN attribute registration information comprises an attribute event and an attribute value, and the attribute value is a VLAN ID.
7. The apparatus of claim 6,
the configuration unit is further configured to store, in advance, the ED of the remote station configured with the dynamic VLAN attribute registration function in the ED;
or,
the receiving and sending unit is further configured to send a Hello packet carrying a dynamic VLAN attribute registration flag to the ED of the remote site after the configuration unit configures the dynamic VLAN attribute registration function on the ED; and the device is used for receiving a Hello message which is sent by the ED of the remote site and carries the dynamic VLAN attribute registration mark;
the control unit is further configured to, when the transceiver unit receives a Hello packet carrying a dynamic VLAN attribute registration flag sent by an ED of a remote site, determine that the ED of the remote site configures a dynamic VLAN attribute registration function, and record a receiving interface as an egress interface corresponding to the ED of the remote site.
8. The apparatus of claim 6,
the control unit is also used for modifying the local EVI extended VLAN according to the VLAN attribute registration information after the receiving and sending unit receives the VLAN attribute registration information sent by the ED of the remote site;
wherein, the attribute event in the VLAN attribute registration information received by the transceiver unit from the remote site is a LeaveAll event, a Joinlin event, a JoinEmpty event, a LeaveIn event or a LeaveEmpty event;
when modifying the local EVI extended VLAN according to the VLAN attribute registration information, the control unit is specifically configured to:
if the attribute event in the VLAN attribute registration information is a leave all event, clearing all dynamic VLANs in the local EVI extended VLAN;
if the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, all VLANs included by the attribute value in the VLAN attribute registration information are used as dynamic VLANs and added into a local EVI extended VLAN;
if the attribute event in the VLAN attribute registration information is a leave in event or a leave empty event, all VLANs included in the attribute value in the VLAN attribute registration information are removed from the local EVI extended VLAN.
9. The apparatus of claim 6,
the attribute event in the VLAN attribute registration information received by the transceiver unit from the ED of the remote site is a LeaveAll event, a Joinlin event, a JoinEmpty event, a LeaveIn event or a LeaveEmpty event;
when the control unit executes VLAN attribute registration of the receiving interface according to the VLAN attribute registration information, the control unit is specifically configured to:
if the attribute event in the VLAN attribute registration information is a leave all event, all VLAN attributes are cancelled on the receiving interface;
if the attribute event in the VLAN attribute registration information is a JoinIn event or a JoinEmpty event, registering all VLANs included in the attribute value in the VLAN attribute registration information on the receiving interface;
and if the attribute event in the VLAN attribute registration information is a leave in event or a leave empty event, canceling all VLANs included by the attribute value in the VLAN attribute registration information on the receiving interface.
10. The apparatus according to claim 6, wherein the VLAN attribute registration packet is specifically a packet that uses the general VLAN attribute registration protocol GVRP;
when generating the VLAN attribute registration packet corresponding to the VLAN attribute registration information, the control unit is configured to: and generating a GVRP message, filling the attribute event in the VLAN attribute registration information into an attribute event field of the GVRP message, and filling the attribute value in the VLAN attribute registration information into an attribute value field of the 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 CN104348797A (en) 2015-02-11
CN104348797B true 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)

Families Citing this family (2)

* 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
CN115987716B (en) * 2021-10-15 2025-05-30 大唐移动通信设备有限公司 VLAN dynamic configuration method, 5GS network bridge, electronic equipment and storage medium

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

Also Published As

Publication number Publication date
CN104348797A (en) 2015-02-11

Similar Documents

Publication Publication Date Title
EP3734906B1 (en) Method and device for bearing multicast virtual private network
RU2735725C1 (en) Method and device for processing and sending packets, pe node and node
US10484203B2 (en) Method for implementing communication between NVO3 network and MPLS network, and apparatus
Kompella et al. Virtual private LAN service (VPLS) using BGP for auto-discovery and signaling
Lasserre et al. Framework for data center (DC) network virtualization
CN104253759B (en) Message forwarding method, apparatus and system
CN110784411A (en) Method, apparatus and system for establishing a BIER forwarding entry
WO2019201014A1 (en) Ethernet segment identifier adjacency detection processing method, device, and storage medium
EP2991284B1 (en) Method and device used in ethernet virtual private network
CN110380959B (en) Message forwarding method and device
CN107040441B (en) Cross-data-center data transmission method, device and system
CN103326940A (en) Method for forwarding message in network and edge device of operator
CN101286922A (en) A signaling control method, system and device
KR102621953B1 (en) Packet detection method and first network device
CN103326915A (en) Method, device and system for achieving three-layer VPN
CN108259466B (en) DDoS traffic re-injection method, SDN controller and network system
WO2016192618A1 (en) Method, apparatus and system for collecting access control list
CN101908996A (en) Method for accessing private network, data transmission method, device and system
WO2012122844A1 (en) Method and system for domain-based interconnection of transparent interconnection over lots of links network
CN102045250A (en) Forwarding method for multicast message in VPLS, and service provider edge equipment
CN102647328B (en) A kind of label distribution method, equipment and system
CN114978975A (en) Fast rerouting of BUM traffic in ethernet virtual private networks
CN104348797B (en) A kind of dynamic vlan attribute logging method and device
CN103379187A (en) Data processing method and gateway network element
CN109728926A (en) Communication method and network device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载