CN106888144B - A kind of message forwarding method and device - Google Patents
A kind of message forwarding method and device Download PDFInfo
- Publication number
- CN106888144B CN106888144B CN201710029071.8A CN201710029071A CN106888144B CN 106888144 B CN106888144 B CN 106888144B CN 201710029071 A CN201710029071 A CN 201710029071A CN 106888144 B CN106888144 B CN 106888144B
- Authority
- CN
- China
- Prior art keywords
- vlan tag
- vxlan
- message
- target
- distal end
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
- H04L12/4645—Details on frame tagging
- H04L12/465—Details on frame tagging wherein a single frame includes a plurality of VLAN tags
- H04L12/4658—Details on frame tagging wherein a single frame includes a plurality of VLAN tags wherein a VLAN tag represents a service provider backbone VLAN, e.g. B-Tag, S-Tag
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Small-Scale Networks (AREA)
Abstract
The application provides a kind of message forwarding method and device, the described method includes: when receiving message from single port that hangs, and need to hang the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment that the corresponding target VXLAN ID inquiry in port pre-saves according to the list to the distal end VTEP device forwards message;When the mapping relations in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved including the target VXLAN ID and target VLAN tag, and the VLAN tag carried in the message and the target VLAN tag it is inconsistent when, the VLAN tag carried in the message is replaced with into target VLAN tag, and the replaced message of VLAN tag is transmitted to distal end VTEP equipment.Using the embodiment of the present application may be implemented singly hung in the VTEP equipment for forming polymerization port vlan tag it is inconsistent in the case where, single communication hung between the virtual machine connected under port.
Description
Technical field
This application involves network communication technology field more particularly to a kind of message forwarding methods and device.
Background technique
VXLAN (Virtual Extensible Local Area Network, expansible Virtual Local Area Network) is to be based on
IP (Internet Protocol, Internet protocol) network, using " MAC (Media Access Control, media interviews control
System) in UDP (User Datagram Protocol, User Datagram Protocol) " packing forms two-layer VPN (Virtual
Private Network, Virtual Private Network) technology.VXLAN can be based on existing service provider or enterprise IP network, be
The physical site of dispersion provides two layers of interconnection, and business isolation can be provided for different tenants.
Summary of the invention
The application provides a kind of message forwarding method and device, to solve the VTEP equipment for forming polymerization in the prior art
When list extension port vlan tag is inconsistent, this two lists hang the problem of can not being communicated between the virtual machine connected under ports.
According to the embodiment of the present application in a first aspect, a kind of message forwarding method is provided, applied to virtual expansible local
The target VXLAN endpoint of a tunnel VTEP equipment of polymerization is formed in net VXLAN distribution polymerization networking, which comprises
Message is received when hanging port from list, and is needed to the distal end VTEP device forwards message, port is singly hung according to this
The virtual LAN VLAN label tag and VXLAN ID for the distal end VTEP equipment that corresponding target VXLAN ID inquiry pre-saves
Mapping relations;
When in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved include the target
The mapping relations of VXLAN ID and target VLAN tag, and the VLAN tag carried in the message and the target VLAN tag are not
When consistent, the VLAN tag carried in the message is replaced with into the target VLAN tag, and by the replaced report of VLAN tag
Text is transmitted to distal end VTEP equipment.
According to the second aspect of the embodiment of the present application, a kind of apparatus for forwarding message is provided, is applied to virtual expansible local
The target VXLAN endpoint of a tunnel VTEP equipment of polymerization is formed in net VXLAN distribution polymerization networking, described device includes:
Receiving unit, for receiving message;
Query unit for receiving message from single port that hangs when the receiving unit, and is needed to distal end VTEP equipment
The message is forwarded, the virtual office for the distal end VTEP equipment that the corresponding target VXLAN ID inquiry in port pre-saves is hung according to the list
The mapping relations of domain net VLAN tag tag and VXLAN mark ID;
Replacement unit, for when in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved
Mapping relations including the target VXLAN ID Yu target VLAN tag, and the VLAN tag carried in the message and the mesh
When mark VLAN tag is inconsistent, the VLAN tag carried in the message is replaced with into the target VLAN tag;
Transmission unit, for the replaced message of VLAN tag to be transmitted to distal end VTEP equipment.
Using the embodiment of the present application, message is received when hanging port from list, and need to the distal end VTEP device forwards report
Text, according to the list hang the VLAN tag of the distal end VTEP equipment that the corresponding target VXLAN ID in port inquiry pre-saves with
The mapping relations of VXLAN ID are wrapped when in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved
The VLAN tag for including the mapping relations of the target VXLAN ID Yu target VLAN tag, and being carried in the message and the target
When VLAN tag is inconsistent, the VLAN tag carried in the message is replaced with into target VLAN tag, and VLAN tag is replaced
Message afterwards is transmitted to distal end VTEP equipment, realizes in the VTEP equipment for forming polymerization that singly to hang port vlan tag different
In the case where cause, single communication hung between the virtual machine connected under port.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of VXLAN distribution polymerization networking;
Fig. 2 is the configuration diagram that scene is singly hung in a kind of polymerization networking of VXLAN distribution;
Fig. 3 is a kind of flow diagram of message forwarding method provided by the embodiments of the present application;
Fig. 4 is a kind of configuration diagram of concrete application scene provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of apparatus for forwarding message provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of another apparatus for forwarding message provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of another apparatus for forwarding message provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present application, and keep the application real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to technical side in the embodiment of the present application
Case is described in further detail.
In order to improve the reliability of VXLAN network, occurs the concept of distributed polymerization in VXLAN network at present, such as
Shown in Fig. 1, equipment A (CE (Customer Edge, user's side edge) A i.e. as shown in the figure) has 2 physical ports additions 1 poly-
It heals up, other end is 2 physical equipments B and C (VTEP (VXLAN Tunnel End Point, VXLAN tunnel i.e. as shown in the figure
Road endpoint) B and VTEP C), every physical equipment has a physical link that aggregation port, for CE A, VTEP B is added
It is 1 equipment with VTEP C, but they are two equipment in fact, thus, it is reliable to play VTEP B and VTEP the C business of raising
The effect of property.
In the polymerization networking of VXLAN distribution, when on the common port (i.e. non-polymeric mouth) of VTEP equipment for forming polymerization
Under when hanging with virtual machine (virtual machine is properly termed as the virtual machine singly hung), for example, for the networking shown in Fig. 2, VTEP B and
Hung with down respectively on the non-polymeric mouth of VTEP C CE F and CE G (wherein, on VTEP B connect CE F non-polymeric mouth and
The non-polymeric mouth that CE G is connected on VTEP C is properly termed as single extension port), then it is needed between CE F and CE G by two
It is synchronous that MAC Address is carried out between VTEP (i.e. VTEP B and VTEP C), could complete communication.
However practice discovery, in the polymerization networking of existing VXLAN distribution, single when the VTEP equipment for forming polymerization hangs end
When mouth VLAN (Virtual Local Area Network, virtual LAN) tag (label) is inconsistent, this two single extension ports
It can not be communicated between the virtual machine of lower connection.
Fig. 3 is referred to, is a kind of flow diagram of message forwarding method provided by the embodiments of the present application, wherein the party
Method can be applied to the target VTEP equipment that polymerization is formed in the polymerization networking of VXLAN distribution, as shown in figure 3, the message forwards
Method may comprise steps of:
Step 301, when receiving message from single port that hangs, and need to distal end VTEP device forwards message, according to the list
Hang the mapping of the VLAN tag and VXLAN ID of the distal end VTEP equipment that the corresponding target VXLAN ID inquiry in port pre-saves
Relationship.
In the embodiment of the present application, target VTEP equipment and the VTEP equipment for being not specific to a certain fixation, but may refer to
Any VTEP equipment of polymerization is formed in the polymerization networking of VXLAN distribution, the embodiment of the present application is subsequent no longer to be repeated.
In addition, VTEP equipment in distal end mentioned in this article, which refers both to be formed with target VTEP equipment, to be polymerize if non-specified otherwise
Other VTEP equipment.
In the embodiment of the present application, in order to make the single of VTEP equipment for forming polymerization in the polymerization networking of VXLAN distribution hang end
The virtual function connected under mouthful is communicated in the case where the VLAN tag for singly hanging port is inconsistent, forms each VTEP of polymerization
Equipment is required to know the mapping relations of single VLAN tag and VXLAN ID for hanging port of distal end VTEP equipment, and when distal end
Exist in VTEP equipment and hang that the VXLAN ID of port is identical with local single, but when different single of VLAN tag hangs port, it is remote to this
When holding the message of the VTEP device forwards VXLAN ID, need to carry out the replacement of VLAN tag.
Correspondingly, in the embodiment of the present application, when target VTEP equipment receives message from single extension port, target VTEP
Equipment can determine message next-hop according to the target MAC (Media Access Control) address of the message, if the next-hop of discovery message is that distal end VTEP is set
Standby, that is, when needing to distal end VTEP device forwards message, target VTEP equipment needs first singly to hang the corresponding VXLAN in port according to this
The VLAN tag and VXLAN ID's for the distal end VTEP equipment that ID (referred to herein as target VXLAN ID) inquiry pre-saves reflects
Relationship is penetrated, whether includes mesh in the mapping relations to determine the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved
The corresponding VLAN tag of target VXLAN ID (is known as target VLAN tag herein) by mark VXLAN ID and target VLAN tag
Mapping relations.
As one of embodiment, in the embodiment of the present application, can with the following steps are included:
11) first kind message that VTEP equipment in distal end is sent, is received, carries the distal end in the first kind message
The corresponding VLAN tag in port and VXLAN ID are singly hung in VTEP equipment;
12), in the mapping relations for the VLAN tag and VXLAN ID for locally saving distal end VTEP equipment.
In this embodiment, being formed between the VTEP equipment of polymerization can mutually notify local single extension port corresponding
VLAN tag and VXLAN ID, so that distal end VTEP equipment saves the mapping relations of the VLAN tag and VXLAN ID that receive.
Correspondingly, when target VTEP equipment receives carrying in the VTEP equipment of the distal end singly for distal end VTEP equipment transmission
When hanging message (the referred to herein as first kind message) of port corresponding VLAN tag and VXLAN ID, target VTEP equipment can
The corresponding VLAN tag in port and VXLAN ID are singly hung in the distal end VTEP equipment carried in the first kind message to obtain, and
Locally saving the mapping relations that port corresponding VLAN tag and VXLAN ID is singly hung in the VTEP equipment of the distal end.
As one of embodiment, in the embodiment of the present application, can also include:
When detecting that local single extension port has virtual machine to access or receive service message, it is corresponding that this is singly hung to port
VLAN tag and VXLAN ID are sent to distal end VTEP equipment.
In this embodiment, when target VTEP equipment detects that local single port that hangs has virtual machine to access or receive industry
When business message, the corresponding VLAN tag and VXLAN ID in list extension port can be sent to distal end VTEP and set by target VTEP equipment
It is standby.
For example, target VTEP equipment can hang the corresponding VLAN tag and VXLAN ID in port according to the list generates the VLAN
The mapping relations of tag and VXLAN ID, and the mapping relations of the VLAN tag and VXLAN ID are sent to distal end VTEP equipment,
For example, being sent by above-mentioned first kind message.
It is worth noting that in the embodiment of the present application, above-mentioned first kind message can be by existing distributed poly-
It closes the mode that protocol massages are extended to realize, can also be realized by way of defining new distributed aggregation protocol message,
The embodiment of the present application does not limit this.
It should be appreciated that mutually notifying the corresponding VLAN in local single extension port above by the VTEP equipment for forming polymerization
Tag and VXLAN ID, so that each VTEP equipment for forming polymerization, which saves, singly hangs the corresponding VLAN in port in distal end VTEP equipment
The realization of the mapping relations of tag and VXLAN ID only realizes that target VTEP equipment saves distal end in the embodiment of the present application
A kind of specific example of the mapping relations of the corresponding VLAN tag in port and VXLAN ID is singly hung in VTEP equipment, and is not pair
The restriction of the application protection scope can also realize that target VTEP equipment saves in the embodiment of the present application otherwise
The mapping relations of port corresponding VLAN tag and VXLAN ID are singly hung in the VTEP equipment of distal end, for example, can be by user (as managed
Reason person) the VLAN tag and VXLAN ID that port is singly hung in distal end VTEP equipment are configured in the VTEP equipment for forming polymerization manually
Mapping relations, specific implementation do not repeat them here herein.
Step 302, when including in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved
The mapping relations of target VXLAN ID and target VLAN tag, and the VLAN tag carried in the message and target VLAN tag are not
When consistent, the VLAN tag carried in the message is replaced with into target VLAN tag, and the replaced message of VLAN tag is turned
Issue distal end VTEP equipment.
In the embodiment of the present application, when target VTEP equipment determine the VLAN tag of distal end VTEP equipment pre-saved with
When including the mapping relations of target VXLAN ID and target VLAN tag in the mapping relations of VXLAN ID, target VTEP equipment can
Further to judge whether the VLAN tag carried in target VLAN tag and the message received is consistent.
If the VLAN tag carried in target VLAN tag and the message is inconsistent, in order to guarantee that the message can be smooth
It is forwarded to destination, target VTEP equipment forwards the packet to before the VTEP equipment of distal end, needs first to carry in the message
VLAN tag replace with target VLAN tag, and the replaced message of VLAN tag is transmitted to distal end VTEP equipment.
It is worth noting that in the embodiment of the present application, if the VLAN tag carried in target VLAN tag and the message
Unanimously, then target VTEP equipment can directly forward the message, without carrying out VLAN tag replacement.
In addition, if the mapping of the VLAN tag and VXLAN ID of the distal end VTEP equipment that target VTEP equipment pre-saves are closed
It does not include that (i.e. target VTEP equipment does not save target VXLAN for the mapping relations of target VXLAN ID and target VLAN tag in system
The mapping relations of ID and target VLAN tag) when, target VTEP equipment can not be forwarded the message, for example, target
VTEP equipment can directly abandon the message, alternatively, the message directly (can not carried out VLAN tag to replace by target VTEP equipment
The message changed) it is transmitted to distal end VTEP equipment, distal end VTEP equipment receives the process flow after the message, may refer to existing
There is the related realization in related procedure, this will not be repeated here.
As it can be seen that in method flow shown in Fig. 3, by the VLAN tag and VXLAN ID that save distal end VTEP equipment
Mapping relations, when single in target VTEP equipment hangs, singly to hang port in the corresponding VLAN tag in port and distal end VTEP equipment corresponding
VLAN tag it is inconsistent, and there are when communication requirement between this two single virtual machines for hanging the connection under ports, target VTEP
Equipment can be by the mapping relations of the VLAN tag and VXLAN ID for the distal end VTEP equipment that inquiry locally saves, will be in message
VLAN tag replace with the VLAN tag that port is singly hung on remote equipment, and the replaced message of VLAN tag is transmitted to far
Hold VTEP equipment, thus realize singly hung in the VTEP equipment for forming polymerization port vlan tag it is inconsistent in the case where, it is single
Hang the communication between the virtual machine connected under port.
In order to make those skilled in the art more fully understand technical solution provided by the embodiments of the present application, below with reference to specific
Technical solution provided by the embodiments of the present application is described in application scenarios.
Fig. 4 is referred to, is a kind of configuration diagram of concrete application scene provided by the embodiments of the present application, as shown in figure 4,
In the application scenarios, VTEP B and VTEP C form distributed polymerization, and virtual machine CE F hangs port port1 access by single
The corresponding VLAN tag of VTEP B, port1 is 3, and the VXALN ID of mapping is 100;Virtual machine CE G hangs port port2 by single
VTEP C is accessed, the corresponding VLAN tag of port2 is 4, and the VXLAN ID of mapping is 100.
Application scenarios based on shown in Fig. 4, message forwarding scheme implementation process provided by the embodiments of the present application are as follows:
1, virtual machine CE F accesses VTEP B, configures VXLAN access point, and the VLAN tag for accessing VLAN is 3, mapping
VXLAN ID is 100, then locally generates the mapping relations that VLAN 3 arrives VXLAN 100 in VTEP B, format can be such as 1 institute of table
Show:
Table 1
2, after VTEP B generates above-mentioned mapping relations, which is synchronized to other distal end VTEP in paradigmatic system and is set
Standby (i.e. VTEP C in Fig. 4), synchronization message form can be as shown in table 2:
Table 2
MSG type (type of message) | VLAN mapping to VXLAN |
VLAN tag | 3 |
VXLAN ID | 100 |
3, after VTEP C receives above-mentioned synchronization message, the synchronization message is parsed, obtains singly hanging above VTEP B
The mapping relations of standby VLAN tag and VXLAN ID, and in the VLAN tag and VXLAN ID for locally saving distal end VTEP equipment
Mapping relations, format can be as shown in table 3:
Table 3
4, when VTEP C receives the message that virtual machine CE G is sent from port2 (the VLAN tag carried in message is 4)
When, the VLAN tag and VXLAN of the distal end VTEP equipment that VTEP C is locally saved according to the corresponding VXLAN ID inquiry of port2
The mapping relations of ID, there are matched mapping relations for discovery, but carried in the VLAN tag (3) in the mapping relations and message
VLAN tag (4) is different, at this point, the VLAN tag in the message can be replaced with 3 by 4 by VTEP C, and VLAN tag is replaced
Message after changing is transmitted to VTEP B, has VTEP B to forward the message to CE F.
Through above description as can be seen that in technical solution provided by the embodiments of the present application, received when from single port that hangs
It to message, and needs to the distal end VTEP device forwards message, the corresponding target VXLAN ID in port is singly hung according to this and is inquired in advance
The mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment first saved, when the distal end VTEP equipment pre-saved
It include the mapping relations of target VXLAN ID and target VLAN tag in the mapping relations of VLAN tag and VXLAN ID, and the report
When the VLAN tag and target VLAN tag carried in text is inconsistent, the VLAN tag carried in the message is replaced with into target
VLAN tag, and the replaced message of VLAN tag is transmitted to distal end VTEP equipment, it realizes in the VTEP for forming polymerization
Singly hung in equipment port vlan tag it is inconsistent in the case where, single communication hung between the virtual machine connected under port.
Fig. 5 is referred to, is a kind of structural schematic diagram of apparatus for forwarding message provided by the embodiments of the present application, wherein described
Apparatus for forwarding message can be applied to the target VTEP equipment in above method embodiment, as shown in figure 5, the apparatus for forwarding message
May include
Receiving unit 510, for receiving message;
Query unit 520 for receiving message from single port that hangs when the receiving unit 510, and is needed to distal end
The VTEP device forwards message hangs the corresponding target VXLAN ID in port according to the list and inquires the distal end VTEP equipment pre-saved
Virtual LAN VLAN label tag and VXLAN mark ID mapping relations;
Replacement unit 530, the mapping for VLAN tag and VXLAN ID when the distal end VTEP equipment pre-saved are closed
It include the mapping relations of the target VXLAN ID and target VLAN tag, and the VLAN tag carried in the message and institute in system
State target VLAN tag it is inconsistent when, the VLAN tag carried in the message is replaced with into the target VLAN tag;
Transmission unit 540, for the replaced message of VLAN tag to be transmitted to distal end VTEP equipment.
The receiving unit 510 in one of the embodiments, is also used to receive the first kind of distal end VTEP equipment transmission
Type message carries in the first kind message and singly hangs the corresponding VLAN tag and VXLAN in port in the VTEP equipment of the distal end
The mapping relations of ID;
Correspondingly, please also refer to Fig. 6, for the structural representation of another apparatus for forwarding message provided by the embodiments of the present application
Figure, as shown in fig. 6, on the basis of apparatus for forwarding message shown in Fig. 5, apparatus for forwarding message shown in fig. 6 can also include:
Storage unit 550, for being closed in the mapping for the VLAN tag and VXLAN ID for locally saving distal end VTEP equipment
System.
Such as scheme please also refer to Fig. 7 for the structural schematic diagram of another apparatus for forwarding message provided by the embodiments of the present application
Shown in 7, on the basis of apparatus for forwarding message shown in Fig. 5, apparatus for forwarding message shown in Fig. 7 can also include: detection unit
560;Wherein:
The detection unit 560, for detecting whether local single extension port has virtual machine to access or whether receive business
Message;
The transmission unit 540 is also used to detect that there is virtual machine access in local single port that hangs when the detection unit 560
Or when receiving service message, which is hung into the corresponding VLAN tag and VXLAN ID in port and is sent to distal end VTEP equipment.
The transmission unit 540 in one of the embodiments, is also used to when the distal end VTEP equipment pre-saved
It include the mapping relations of the target VXLAN ID and target VLAN tag in the mapping relations of VLAN tag and VXLAN ID, and
When the VLAN tag carried in the message is consistent with the target VLAN tag.
The transmission unit 540 in one of the embodiments, is also used to when the distal end VTEP equipment pre-saved
It does not include the mapping relations of the target VXLAN ID Yu target VLAN tag in the mapping relations of VLAN tag and VXLAN ID
When, distal end VTEP equipment is forwarded the packet to, or, abandoning the message.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
As seen from the above-described embodiment, it when receiving message from single port that hangs, and needs to the distal end VTEP device forwards report
Text, according to the list hang the VLAN tag of the distal end VTEP equipment that the corresponding target VXLAN ID in port inquiry pre-saves with
The mapping relations of VXLAN ID are wrapped when in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved
The VLAN tag for including the mapping relations of the target VXLAN ID Yu target VLAN tag, and being carried in the message and the target
When VLAN tag is inconsistent, the VLAN tag carried in the message is replaced with into target VLAN tag, and VLAN tag is replaced
Message afterwards is transmitted to distal end VTEP equipment, realizes in the VTEP equipment for forming polymerization that singly to hang port vlan tag different
In the case where cause, single communication hung between the virtual machine connected under port.
Those skilled in the art will readily occur to its of the application after considering specification and practicing application disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.
Claims (10)
1. a kind of message forwarding method, applied to formation polymerization in virtual expansible local area network VXLAN distribution polymerization networking
Target VXLAN endpoint of a tunnel VTEP equipment, which is characterized in that the described method includes:
Message is received when hanging port from list, and is needed to the distal end VTEP device forwards message, it is corresponding that port is singly hung according to this
The target VXLAN ID inquiry virtual LAN VLAN label tag and VXLAN ID of distal end VTEP equipment that pre-saves reflect
Penetrate relationship;Wherein, the connection user side edge C E equipment in the VTEP equipment of polymerization is formed in VXLAN distribution polymerization networking
Non-polymeric mouth is known as single extension port;
When in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved include the target VXLAN
The mapping relations of ID and target VLAN tag, and the VLAN tag carried in the message and the target VLAN tag are inconsistent
When, the VLAN tag carried in the message is replaced with into the target VLAN tag, and the replaced message of VLAN tag is turned
Issue distal end VTEP equipment;Wherein, remote equipment, which refers to, forms other VTEP equipment polymerizeing with target VTEP equipment.
2. the method according to claim 1, wherein the method also includes:
The first kind message that VTEP equipment in distal end is sent is received, carries distal end VTEP equipment in the first kind message
Upper list hangs port corresponding VLAN tag and VXLAN ID;
In the mapping relations for the VLAN tag and VXLAN ID for locally saving distal end VTEP equipment.
3. the method according to claim 1, wherein the method also includes:
When detecting that local single extension port has virtual machine to access or receive service message, this is singly hung to the corresponding VLAN in port
Tag and VXLAN ID is sent to distal end VTEP equipment.
4. the method according to claim 1, wherein the method also includes:
When in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved include the target VXLAN
The mapping relations of ID and target VLAN tag, and when the VLAN tag carried in the message is consistent with the target VLAN tag,
Forward the packet to distal end VTEP equipment.
5. the method according to claim 1, wherein the method also includes:
When not including the target in the mapping relations of the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved
When the mapping relations of VXLAN ID and target VLAN tag, distal end VTEP equipment is forwarded the packet to, or, abandoning the report
Text.
6. a kind of apparatus for forwarding message, applied to formation polymerization in virtual expansible local area network VXLAN distribution polymerization networking
Target VXLAN endpoint of a tunnel VTEP equipment, which is characterized in that described device includes:
Receiving unit, for receiving message;
Query unit for receiving message from single port that hangs when the receiving unit, and is needed to distal end VTEP device forwards
The message hangs the virtual LAN for the distal end VTEP equipment that the corresponding target VXLAN ID inquiry in port pre-saves according to the list
The mapping relations of VLAN tag tag and VXLAN mark ID;Wherein, the VTEP that polymerization is formed in VXLAN distribution polymerization networking is set
The non-polymeric mouth of standby upper connection user side edge C E equipment is known as single extension port;
Replacement unit, for when including in the mapping relations for the VLAN tag and VXLAN ID of distal end VTEP equipment that pre-save
The mapping relations of the target VXLAN ID and target VLAN tag, and the VLAN tag carried in the message and the target
When VLAN tag is inconsistent, the VLAN tag carried in the message is replaced with into the target VLAN tag;Wherein, remote equipment
Refer to and forms other VTEP equipment polymerizeing with target VTEP equipment;
Transmission unit, for the replaced message of VLAN tag to be transmitted to distal end VTEP equipment.
7. device according to claim 6, which is characterized in that
The receiving unit is also used to receive the first kind message of distal end VTEP equipment transmission, in the first kind message
It carries and singly hangs the corresponding VLAN tag in port and VXLAN ID in the VTEP equipment of the distal end;
Described device further include:
Storage unit, for the mapping relations in the VLAN tag and VXLAN ID for locally saving distal end VTEP equipment.
8. device according to claim 6, which is characterized in that described device further include: detection unit, in which:
The detection unit, for detecting whether local single extension port has virtual machine to access or whether receive service message;
The transmission unit is also used to detect that local single port that hangs has virtual machine to access or receive industry when the detection unit
When business message, which is hung into the corresponding VLAN tag and VXLAN ID in port and is sent to distal end VTEP equipment.
9. device according to claim 6, which is characterized in that
The transmission unit is also used to the mapping relations as the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved
In include the target VXLAN ID and target VLAN tag mapping relations, and the VLAN tag carried in the message with it is described
When target VLAN tag is consistent, distal end VTEP equipment is forwarded the packet to.
10. device according to claim 6, which is characterized in that
The transmission unit is also used to the mapping relations as the VLAN tag and VXLAN ID of the distal end VTEP equipment pre-saved
In when not including the mapping relations of the target VXLAN ID and target VLAN tag, forward the packet to distal end VTEP and set
It is standby, or, abandoning the message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710029071.8A CN106888144B (en) | 2017-01-16 | 2017-01-16 | A kind of message forwarding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710029071.8A CN106888144B (en) | 2017-01-16 | 2017-01-16 | A kind of message forwarding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106888144A CN106888144A (en) | 2017-06-23 |
CN106888144B true CN106888144B (en) | 2019-11-12 |
Family
ID=59176402
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710029071.8A Active CN106888144B (en) | 2017-01-16 | 2017-01-16 | A kind of message forwarding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106888144B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107645433B (en) * | 2017-08-31 | 2021-03-30 | 新华三技术有限公司 | Message forwarding method and device |
CN111800329B (en) * | 2020-06-28 | 2022-01-21 | 浪潮思科网络科技有限公司 | Message forwarding method, device and medium based on SDN and OVN |
CN111865749B (en) * | 2020-06-30 | 2023-04-18 | 新华三信息安全技术有限公司 | Port binding method and device |
CN114666269B (en) * | 2022-04-11 | 2024-05-14 | 浪潮思科网络科技有限公司 | VLAN message forwarding method, device, equipment and medium based on IP subnet |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888386A (en) * | 2012-12-24 | 2014-06-25 | 华为技术有限公司 | Extensible virtual local area network message transmission method, device and system |
CN103905283A (en) * | 2012-12-25 | 2014-07-02 | 华为技术有限公司 | Communication method and apparatus based on expandable virtual local area network |
CN104104747A (en) * | 2014-07-28 | 2014-10-15 | 杭州华三通信技术有限公司 | Method and device for message transmission |
CN104601427A (en) * | 2013-10-31 | 2015-05-06 | 杭州华三通信技术有限公司 | Message forwarding method and device in data center network |
CN106330719A (en) * | 2016-10-26 | 2017-01-11 | 杭州迪普科技有限公司 | VXLAN message forwarding method and device |
-
2017
- 2017-01-16 CN CN201710029071.8A patent/CN106888144B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888386A (en) * | 2012-12-24 | 2014-06-25 | 华为技术有限公司 | Extensible virtual local area network message transmission method, device and system |
CN103905283A (en) * | 2012-12-25 | 2014-07-02 | 华为技术有限公司 | Communication method and apparatus based on expandable virtual local area network |
CN104601427A (en) * | 2013-10-31 | 2015-05-06 | 杭州华三通信技术有限公司 | Message forwarding method and device in data center network |
CN104104747A (en) * | 2014-07-28 | 2014-10-15 | 杭州华三通信技术有限公司 | Method and device for message transmission |
CN106330719A (en) * | 2016-10-26 | 2017-01-11 | 杭州迪普科技有限公司 | VXLAN message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106888144A (en) | 2017-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3509256B1 (en) | Determining routing decisions in a software-defined wide area network | |
CN106878047B (en) | Fault handling method and device | |
US10361885B2 (en) | Method and apparatus for providing a point-to-point connection over a network | |
CN105706400B (en) | The method and apparatus of grouping are forwarded on network | |
CN106888144B (en) | A kind of message forwarding method and device | |
EP3222012B1 (en) | Method and system for virtualizing flow tables in a software-defined networking (sdn) system | |
US9473404B2 (en) | Symmetric flow processing in a software-defined networking (SDN) system | |
US20130173788A1 (en) | Network access apparatus | |
US20130185446A1 (en) | Method and device for connecting to virtual private network across domains | |
CN107342941B (en) | A kind of optimization method and device of VXLAN control plane | |
CN107547366A (en) | A kind of message forwarding method and device | |
CN108259302B (en) | Method and device for realizing centralized gateway networking | |
TW201541262A (en) | Method for virtual machine migration using software defined networking (SDN) | |
CN104113459A (en) | Method for smoothly migrating virtual machine in Ethernet virtual interconnection (EVI) network, and device for smoothly migrating virtual machine in EVI network | |
CN104427010A (en) | NAT (network address translation) method and device applied to DVPN (dynamic virtual private network) | |
CN105847185B (en) | Message processing method, device and the distributed apparatus of distributed apparatus | |
WO2018171529A1 (en) | Method, device and computer storage medium for implementing double control plane | |
CN110290093A (en) | The SD-WAN network architecture and network-building method, message forwarding method | |
CN103248720A (en) | Method and device for inquiring physical address | |
CN107547349A (en) | A kind of method and device of virtual machine (vm) migration | |
CN103795631A (en) | Flow forwarding method and device equipped with Ethernet virtual interconnection (EVI) in network | |
EP4274368A3 (en) | Method and system for communicating between private mesh network and public network | |
CN107094110A (en) | A kind of DHCP message retransmission method and device | |
CN109274588A (en) | The processing method and processing device of IP packet | |
EP3605960B1 (en) | Mac address synchronization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |