CN109450767A - A kind of message processing method and device - Google Patents

A kind of message processing method and device Download PDF

Info

Publication number
CN109450767A
CN109450767A CN201811260264.5A CN201811260264A CN109450767A CN 109450767 A CN109450767 A CN 109450767A CN 201811260264 A CN201811260264 A CN 201811260264A CN 109450767 A CN109450767 A CN 109450767A
Authority
CN
China
Prior art keywords
message
mark
update notifying
preset field
vxlan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811260264.5A
Other languages
Chinese (zh)
Other versions
CN109450767B (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 CN201811260264.5A priority Critical patent/CN109450767B/en
Publication of CN109450767A publication Critical patent/CN109450767A/en
Priority to PCT/CN2019/113293 priority patent/WO2020083380A1/en
Application granted granted Critical
Publication of CN109450767B publication Critical patent/CN109450767B/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]
    • 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/4645Details on frame tagging

Abstract

The embodiment of the present application provides a kind of message processing method and device, this method is applied to the VTEP in VXLAN, when receiving the modification instruction for the access way of the first AC, in the corresponding relationship of the AC and VM of record, determine corresponding first VM of the first AC, according to the mark of the first VM, the mark of target access way and preset update notifying mark, generate update notifying message, and it is sent to GW equipment, GW equipment then updates ARP entry according to update notifying message, and is forwarded processing to the message received according to updated ARP entry.GW equipment can be reminded to update ARP entry in time, allow GW equipment to be forwarded processing to message according to updated ARP entry, and then network service is avoided to interrupt when VTEP detects the access way transmission variation of AC based on above-mentioned processing.

Description

A kind of message processing method and device
Technical field
This application involves technical field of the computer network, more particularly to a kind of message processing method and device.
Background technique
VXLAN (Virtual eXtensible LAN, expansible Virtual Local Area Network) is a kind of using MAC (Media Access Control, media access control) in UDP (User Dategram Protocol, User Datagram Protocol) encapsulation Two-layer VPN (Virtual Private Network, Virtual Private Network) technology of mode.VXLAN can be based on existing IP (Internet Protocol, Internet protocol) network provides two layers of interconnection for the physical site of dispersion.
As shown in Figure 1, VXLAN networking include: VTEP (VXLAN Tunnel End Point, V XLAN endpoint of a tunnel), GW (Gate Way, gateway) equipment, multiple VM (Virtual Machin e, virtual machine).
AC (Attachment Circuit accesses circuit) 1 interface to be connect on VTEP with VM1.VTEP can receive The first message that VM1 is sent can carry Tag (label) 1 in the first message.If the access way of AC1 is Ethernet (Ethernet) access way, VTEP directly carries out VXLAN encapsulation to the first message, and the first message after encapsulation is sent to GW Equipment.The purpose equipment (can be VM2) that first message can be forwarded to by GW equipment.In addition, GW equipment can be generated VM1 pairs ARP (Address Resolution Protocol, the address resolution protocol) list item answered, in the ARP entry record have VM1 and The corresponding relationship of Tag (i.e. Tag1 in the first message).When GW equipment, which receives VM2, is sent to the second message of VM1, GW equipment Tag1 can be added in the second message, and be sent to VTEP according to VM1 corresponding ARP entry.VTEP turns the second message It is sent to VM1.
If the access way of AC1 is VLAN (Virtual Local Area Network, virtual LAN) access side Formula, VTEP delete the Tag1 in the first message first, then, carry out VXLAN encapsulation to the first message, and by first after encapsulation Message is sent to GW equipment, and similarly, the first message can be forwarded to VM2 by GW equipment, and generate the corresponding ARP entry of VM1, this When, the corresponding Tag of VM1 is sky.When GW equipment receives the second message, GW equipment does not exist according to the corresponding ARP entry of VM1 Tag is added in second message, and is sent to VTEP.Tag1 is added in the second message by VTEP, and is sent to VM1.
However, if AC1 becomes virtual LAN access way from Ethernet access mode, at this point, receiving the second report Wen Hou, GW equipment are still the second message addition Tag1, and are sent to VTEP.VTEP receives the second message for having added Tag1 Afterwards, Tag1 can be added for the second message again, message is caused to malfunction.Alternatively, AC1 becomes ether from virtual LAN access way Net access way, at this point, GW equipment does not add Tag1 in the second message, and is sent to VTEP after receiving the second message. After VTEP receives the second message, also Tag1 is not added in the second message, also results in message error.
As it can be seen that in the prior art, when the access way of AC1 sends variation, will lead to message error, in turn resulting in network Service disconnection.
Summary of the invention
The embodiment of the present application is designed to provide a kind of message processing method and device, can be to avoid in network service It is disconnected.Specific technical solution is as follows:
In a first aspect, in order to achieve the above object, the embodiment of the present application discloses a kind of message processing method, the method Applied to the expansible Virtual Local Area Network endpoint of a tunnel VTEP in expansible Virtual Local Area Network VXLAN, the VXLAN is also wrapped Include gateway GW equipment, which comprises
When receiving the modification instruction for the access way of the first access circuit AC, in the AC and virtual machine VM of record Corresponding relationship in, determine corresponding first VM of the first AC, wherein carry target access way in modification instruction Mark;
According to the mark of the first VM, the mark of the target access way and preset update notifying mark, generate Update notifying message;
Send the update notifying message to the GW equipment so that the GW equipment according to the update notifying message more New Address Resolution Protocol ARP list item, and processing is forwarded to the message received according to updated ARP entry.
Optionally, described to be mentioned according to the mark of the first VM, the mark of the target access way and preset update It wakes up and indicates, generate update notifying message, comprising:
If the mark of the target access way indicates Ethernet Ethernet access way, when receiving described first When the data message that VM is sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update Reminding the first preset field is the first VM in the VXLAN heading of message mark, the second preset field is the modification The target labels Tag that carries in instruction, third preset field are the update notifying mark;
If the mark of the target access way indicates virtual LAN VLAN access way, when receiving described first When the data message that VM is sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update Reminding mark, the second preset field that the first preset field is the first VM in the VXLAN heading of message is that empty, third is pre- If field is the update notifying mark.
Optionally, described to be mentioned according to the mark of the first VM, the mark of the target access way and preset update It wakes up and indicates, generate update notifying message, comprising:
If the mark of the target access way indicates Ethernet access way, preset protocol massages are carried out VXLAN encapsulation, obtains update notifying message, wherein the first preset field is in the VXLAN heading of the update notifying message Mark, the second preset field of first VM is the target Tag carried in the modification instruction, third preset field is described Update notifying mark;
If the mark of the target access way indicates VLAN access way, VXLAN is carried out to preset protocol massages Encapsulation, obtains update notifying message, wherein the first preset field is described in the VXLAN heading of the update notifying message Mark, the second preset field of first VM is sky, third preset field is the update notifying mark.
Second aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of message processing method, the method Applied to the gateway GW equipment in expansible Virtual Local Area Network VXLAN, the VXLAN further includes expansible Virtual Local Area Network Endpoint of a tunnel VTEP, which comprises
When receiving the message that the VTEP is sent, judge preset update notifying mark whether is carried in the message Will;
If carrying the update notifying mark in the message, Address Resolution Protocol ARP is updated according to the message List item, and processing is forwarded to the message received according to updated ARP entry.
It is optionally, described that ARP entry is updated according to the message, comprising:
The first preset field for parsing the message obtains the mark of the first virtual machine VM;
Parse the second preset field of the message;
If second preset field is sky, set label Tag corresponding with the first VM in ARP entry to It is empty;
If second preset field is not target Tag empty, that acquisition second preset field carries, will be described Tag corresponding with the first VM is set as the target Tag in ARP entry.
The third aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of message process device, described device Applied to the expansible Virtual Local Area Network endpoint of a tunnel VTEP in expansible Virtual Local Area Network VXLAN, the VXLAN is also wrapped Gateway GW equipment is included, described device includes:
Determining module, for recording when receiving the modification instruction for the access way of the first access circuit AC AC and virtual machine VM corresponding relationship in, determine corresponding first VM of the first AC, wherein the modification instruct in carry There is the mark of target access way;
Generation module, for mark, the mark and preset update of the target access way according to the first VM Reminder flag generates update notifying message;
Sending module, for sending the update notifying message to the GW equipment, so that the GW equipment is according to Update notifying message updates Address Resolution Protocol ARP list item, and is turned according to updated ARP entry to the message received Hair processing.
Optionally, the generation module, if the mark specifically for the target access way indicates Ethernet Ethernet access way carries out VXLAN envelope to the data message when receiving the data message that the first VM is sent Dress, obtains update notifying message, wherein the first preset field is described the in the VXLAN heading of the update notifying message Described in the mark of one VM, the second preset field are the target labels Tag carried in the modification instruction, third preset field is more New reminder flag;
If the mark of the target access way indicates virtual LAN VLAN access way, when receiving described first When the data message that VM is sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update Reminding mark, the second preset field that the first preset field is the first VM in the VXLAN heading of message is that empty, third is pre- If field is the update notifying mark.
Optionally, the generation module, if the mark specifically for the target access way indicates that Ethernet connects Enter mode, VXLAN encapsulation is carried out to preset protocol massages, obtains update notifying message, wherein the update notifying message It is to carry in the modification instruction that the first preset field, which is mark, the second preset field of the first VM, in VXLAN heading Target Tag, third preset field be the update notifying mark;
If the mark of the target access way indicates VLAN access way, VXLAN is carried out to preset protocol massages Encapsulation, obtains update notifying message, wherein the first preset field is described in the VXLAN heading of the update notifying message Mark, the second preset field of first VM is sky, third preset field is the update notifying mark.
Fourth aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of message process device, described device Applied to the gateway GW equipment in expansible Virtual Local Area Network VXLAN, the VXLAN further includes expansible Virtual Local Area Network Endpoint of a tunnel VTEP, described device include:
Judgment module, for judging whether to carry in the message pre- when receiving the message that the VTEP is sent If update notifying mark;
Update module, if updating ground according to the message for carrying the update notifying mark in the message Location analysis protocol ARP entry, and processing is forwarded to the message received according to updated ARP entry.
Optionally, the update module obtains the first virtual machine specifically for parsing the first preset field of the message The mark of VM;
Parse the second preset field of the message;
If second preset field is sky, set empty for Tag corresponding with the first VM in ARP entry;
If second preset field is not target Tag empty, that acquisition second preset field carries, will be described Tag corresponding with the first VM is set as the target Tag in ARP entry.
On the other hand, in order to achieve the above object, the embodiment of the present application provides a kind of electronic equipment, including processor, Communication interface, memory and communication bus, wherein processor, communication interface, memory are completed each other by communication bus Communication;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in first aspect.
On the other hand, in order to achieve the above object, the embodiment of the present application provides a kind of electronic equipment, including processor, Communication interface, memory and communication bus, wherein processor, communication interface, memory are completed each other by communication bus Communication;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in second aspect.
On the other hand, in order to achieve the above object, the application implementation provides a kind of machine readable storage medium, is stored with Machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotes the processor: realizing the Method and step described in one side.
On the other hand, in order to achieve the above object, the application implementation provides a kind of machine readable storage medium, is stored with Machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotes the processor: realizing the Method and step described in two aspects.
On the other hand, in order to achieve the above object, the application implements to provide a kind of computer program production comprising instruction Product, when run on a computer, so that computer executes method and step described in above-mentioned first aspect.
On the other hand, in order to achieve the above object, the application implements to provide a kind of computer program production comprising instruction Product, when run on a computer, so that computer executes method and step described in above-mentioned second aspect.
A kind of message processing method and device provided by the embodiments of the present application, can be applied to the VTEP and GW in VXLAN Equipment is applied to for VTEP in this way, and when receiving the modification instruction for the access way of the first AC, VTEP can be with In the corresponding relationship of the AC and VM of record, corresponding first VM of the first AC is determined, according to the mark of the first VM, target access side The mark of formula and preset update notifying mark generate update notifying message, and are sent to GW equipment.GW equipment then can basis Update notifying message updates ARP entry, and is forwarded processing to the message received according to updated ARP entry.It is based on Above-mentioned processing can remind GW equipment to update ARP entry in time, make when VTEP detects the access way transmission variation of AC Processing can be forwarded to the message received according to updated ARP entry by obtaining GW equipment, and then be avoided in network service It is disconnected.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach all the above excellent Point.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of frame diagram of networking provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of message processing method provided by the embodiments of the present application;
Fig. 3 is a kind of flow chart of message processing method provided by the embodiments of the present application;
Fig. 4 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application;
Fig. 5 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application;
Fig. 6 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application;
Fig. 7 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application;
Fig. 8 is a kind of structure chart of message process device provided by the embodiments of the present application;
Fig. 9 is a kind of structure chart of message process device provided by the embodiments of the present application;
Figure 10 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application;
Figure 11 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of message processing method, can be applied to VTEP the and GW equipment in VXLAN.
Referring to the application scenarios of Fig. 1, the message processing method of the application can be applied to the VTEP in Fig. 1.When receiving For AC1 access way modification instruction when, VTEP can determine the corresponding VM1 of AC1, wherein modification instruction in carry The mark of target access way.VTEP can be mentioned according to the mark of VM1 and the mark of target access way and preset update It wakes up and indicates, update notifying message is generated, and update notifying message is sent to GW equipment, so that GW equipment is according to update notifying report Text updates ARP entry, and is forwarded processing to the message received according to updated ARP entry.
Correspondingly, the message processing method of the application can also be applied to the GW equipment in Fig. 1, GW equipment be can receive The message that VTEP is sent, then, GW equipment may determine that preset update notifying mark whether is carried in the message.If should Update notifying mark is carried in message, GW equipment can update ARP entry according to the message, and according to updated ARP table Item is forwarded processing to the message received.What ARP entry can learn for GW according to the message received, specifically , ARP entry may refer to table (1).
Table (1)
IP address MAC Address Outgoing interface Tag
10.1.1.2 1-1-1 The tunnel VXLAN 10
Table (1) is ARP entry corresponding with VM1 in GW equipment, wherein 10.1.1.2 is the IP address of VM1, and 1-1-1 is The MAC Address of VM1, communication tunnel of the tunnel VXLAN between GW equipment and VTEP.It is when GW equipment receives destination address When the message of the IP address of VM1, which can be sent to VTEP by the tunnel VXLAN.It, can after VTEP receives the message The message is sent to VM1,10 expression GW equipment are the numerical value for being sent to the Tag of message addition of VM1.
GW equipment can be reminded in time more when VTEP detects the access way transmission variation of AC1 based on above-mentioned processing New ARP entry allows GW equipment to be forwarded processing to the message received according to updated ARP entry, and then keeps away Exempt from network service interruption.
Referring to fig. 2, Fig. 2 is a kind of flow chart of message processing method provided by the embodiments of the present application, and this method is applied to VTEP in VXLAN, the VXLAN can also include GW equipment, and the tunnel VXLAN can be set between VTEP and GW equipment, should Method may comprise steps of:
S201: when receiving the modification instruction for the access way of the first AC, in the corresponding pass of the AC and VM of record In system, corresponding first VM of the first AC is determined.
Wherein, the mark of target access way is carried in modification instruction.First AC can be any AC in VTEP.Note The corresponding relationship of the AC and VM of record can be VTEP and receives message according to the message sent of the VM in site-local and VTEP What AC was determined.
For example, VTEP receives the message of VM1 transmission by AC1, then in the corresponding relationship of the AC and VM that record AC1 with VM1 is corresponding.Specifically, may refer to table (2).
Table (2)
VM AC
10.1.1.2 AC1
VTEP receives the message that VM1 is sent by AC1, then pair of the VM1 and AC1 as shown in table (2) can be generated in VTEP It should be related to.Wherein, the IP address that 10.1.1.2 is VM1 in table (2) can use the IP address pair of VM1 in the corresponding relationship VM1 is identified.Alternatively, it is also possible to be identified with the MAC Address of VM1 to VM1.
The access way of AC can be configured by technical staff according to business demand, for example, technical staff can be to AC1 Carry out following configuration (being properly termed as configuration one):
Interface ten1/0/1
service-instance 10
encapsulation s-vid 10
xconnect vsi vpnb
Wherein, Interface ten1/0/1 expression configures interface ten1/0/1, service-instance 10 It indicates to match the interface ten1/0/1 message received using Service Instance 10,10 table of encapsulation s-vid The message for showing that the Tag to carrying is 10 matches, and xconnect vsi vpnb is indicated with the VSI (Virtual of entitled vpnb Switch Instance, virtual switch instance) mac address table message is forwarded.Configuration one indicates, real according to service The message matching rule of example 10 matches the message that Tag is 10 that carries received from interface ten1/0/1, according to name Mac address table for the VSI of vpnb is forwarded the message for meeting message matching rule.VSI is provides for VXLAN on VTEP The virtual switch instance of Layer2 switching service, it has the institute of traditional ethernet interchanger functional, such as source MAC Habit, MAC address aging, the functions such as flood.
The access way of not specified AC1, the VLAN access way as defaulted in configuration one.It is configured to configure as AC1 For the moment, VTEP can delete the Tag in the message of VM1 transmission, then carry out VXLAN encapsulation to the message, and be sent to GW and set It is standby.
Alternatively, technical staff can carry out following configuration (being properly termed as configuration two) to AC1:
Interface ten1/0/1
service-instance 10
encapsulation s-vid 10
xconnect vsi vpnb acess-mode Ethernet
Interface ten1/0/1 expression configures interface ten1/0/1, and service-instance 10 is indicated The interface ten1/0/1 message received is matched using Service Instance 10, the expression pair of encapsulation s-vid 10 The message that the Tag of carrying is 10 is matched, and xconnect vsi vpnb acess-mode Ethernet indicates specified access Mode is Ethernet access way.
When AC1 is when being configured to configuration two, the Tag in message that VTEP sends VM1 is directly right without any processing The message carries out VXLAN encapsulation, and is sent to GW equipment.
In an implementation, when changing the access way of the first AC, correspondingly, VTEP then can receive for the first AC's The modification of access way instructs.VTEP can determine the corresponding VM of the first AC (i.e. in the corresponding relationship of the AC and VM of record One VM).For example, be directed to table (2), when VTEP receive for AC1 modification instruction when, VTEP can be determined from table (2) and The corresponding VM1 of AC1, and the mark (i.e. IP address 10.1.1.2) of available VM1.
S202: it according to the mark of the first VM, the mark of target access way and preset update notifying mark, generates and updates Remind message.
Wherein, preset update notifying mark can be rule of thumb configured by technical staff, and GW equipment can identify The update notifying mark, and update ARP entry.
In an implementation, after VTEP determines a first AC corresponding VM, VTEP can be according to mark, the target of the first VM The mark and update notifying mark of access way generate update notifying message.
For the mark of different target access ways, VTEP can take different modes to generate update notifying message.
Optionally, the data message that VTEP can be sent according to the first VM, generates update notifying message, then S202 can wrap Include following two situation:
Situation one is sent if the mark of target access way indicates Ethernet access way when receiving the first VM Data message when, to data message carry out VXLAN encapsulation, obtain update notifying message.
Wherein, the first preset field is the first VM in the VXLAN heading of update notifying message mark, the second predetermined word Section is the Tag (i.e. target Tag) carried in modification instruction, third preset field is update notifying mark.
VTEP carries out VXLAN encapsulation to data message, that is, VXLAN heading is added to the outer layer UDP of data message (User Datagram Protocol, User Datagram Protocol) is between heading and original Layer 2 data frame.Referring to table (3).
Table (3)
Outer layer IP packet head Outer layer UDP heading VXLAN heading Original Layer 2 data frame
The structure of VXLAN heading may refer to table (4).
Table (4)
In table (4), VXLAN ID is VXLAN identifier, for identifying VXLAN;Attribute field RRRRIRRL: " I " is 1, Indicate that the VXLAN ID in VXLAN heading is effective, " I " is 0, indicates that the VXLAN ID in VXLAN heading is invalid.Other are It is left unused field, is set as 0.
First preset field, the second preset field and third preset field may belong to the reservation in VXLAN heading not Use field.
In an implementation, if target access way is Ethernet access way, modification can be carried in modification instruction Tag (i.e. target Tag) afterwards.When VTEP receives the data message of the first VM transmission, VTEP can will be in VXLAN heading The first preset field be set as the mark of the first VM, set target Tag for the second preset field in VXLAN heading, Update notifying mark is set by the third preset field in VXLAN heading, then, VTEP can be by the VXLAN heading It is added between the outer layer UDP heading of data message and original Layer 2 data frame, obtains update notifying message.
Situation two, if the mark of target access way indicates VLAN access way, when the number for receiving the first VM transmission When according to message, VXLAN encapsulation is carried out to data message, obtains update notifying message.
Wherein, the first preset field is the first VM in the VXLAN heading of update notifying message mark, the second predetermined word Section is sky, third preset field is update notifying mark.
VXLAN heading may refer to being discussed in detail for above-mentioned table (4).First preset field, the second preset field and Three preset fields may belong in VXLAN heading be left unused field.
In an implementation, if target access way is VLAN access way, when VTEP receives the data of the first VM transmission When message, VTEP can set the first preset field in VXLAN heading to the mark of the first VM, by VXLAN heading In the second preset field be set as empty, set update notifying mark for the third preset field in VXLAN heading, so Afterwards, which can be added between the outer layer UDP heading of data message and original Layer 2 data frame by VTEP, Obtain update notifying message.
Optionally, VTEP can also generate update notifying message according to protocol massages, then S202 can also include following two Kind situation:
Situation three, if target access way mark indicate Ethernet access way, to preset protocol massages into Row VXLAN encapsulation, obtains update notifying message.
Wherein, the first preset field is the first VM in the VXLAN heading of update notifying message mark, the second predetermined word Section is the target Tag carried in modification instruction, third preset field is update notifying mark.Preset protocol massages can be VXLAN tunnel protocol message.
In an implementation, if target access way is Ethernet access way, modification can be carried in modification instruction Tag (i.e. target Tag) afterwards.VTEP can set the first preset field in VXLAN heading to the mark of the first VM, will The second preset field in VXLAN heading is set as target Tag, sets the third preset field in VXLAN heading to The VXLAN heading can be added to the outer layer UDP heading of protocol massages and original by update notifying mark, then, VTEP Between Layer 2 data frame, update notifying message is obtained.
Situation four carries out preset protocol massages if the mark of target access way indicates VLAN access way VXLAN encapsulation, obtains update notifying message.
Wherein, in the VXLAN heading of update notifying message the first preset field be the mark of the first VM, it is second pre- If field is sky, third preset field is update notifying mark.Preset protocol massages can be VXLAN tunnel protocol message.
In an implementation, if target access way is VLAN access way, VTEP can be by first in VXLAN heading Preset field is set as the mark of the first VM, sets empty for the second preset field in VXLAN heading, by VXLAN message Third preset field in head is set as update notifying mark, and then, which can be added to agreement report by VTEP Between the outer layer UDP heading and original Layer 2 data frame of text, update notifying message is obtained.
S203: sending update notifying message to GW equipment, so that GW equipment updates ARP entry according to update notifying message, And processing is forwarded to the message received according to updated ARP entry.
In an implementation, VTEP can send update notifying message to GW equipment by the tunnel VXLAN, correspondingly, GW equipment After receiving update notifying message, ARP entry can be updated, and according to updated ARP entry to receiving Message is forwarded processing, and then can be to avoid service disconnection.
Correspondingly, Fig. 3 is a kind of flow chart of message processing method provided by the embodiments of the present application, this method referring to Fig. 3 Applied to the GW equipment in VXLAN, VXLAN can also include VTEP, and VXLAN tunnel can be set between VTEP and GW equipment Road, this method may comprise steps of:
S301: when receiving the message of VTEP transmission, judge preset update notifying mark whether is carried in the message Will.
Wherein, preset update notifying mark can be rule of thumb configured by technical staff.Specifically, VTEP can be with By the field (for example, third preset field above) in the VXLAN heading of update notifying mark write-in message.
In an implementation, when GW equipment receives the message of VTEP transmission by the tunnel VXLAN, GW equipment may determine that this Update notifying mark whether is carried in message, and whether ARP entry itself will be updated with determination.
S302: if carrying update notifying mark in the message, ARP entry is updated according to the message, and according to update ARP entry afterwards is forwarded processing to the message received.
In an implementation, when GW equipment determines to carry update notifying mark in message that VTEP is sent, GW equipment can be with ARP entry is updated according to the message, in turn, GW equipment can turn the message received according to updated ARP entry Hair processing.The method that GW equipment is forwarded processing to the message received according to updated ARP entry, with prior art phase Together, details are not described herein.
For example, GW equipment can parse the third preset field of the message received from VTEP, when GW equipment determines the report When the third preset field of text is update notifying mark, GW equipment can update ARP entry according to the message.
In addition, GW equipment does not need when GW equipment determines that the third preset field of the message is not update notifying mark Update ARP entry.
Optionally, the letter that GW equipment can be carried according to the VXLAN heading in the message for carrying update notifying mark Breath, is updated ARP entry.Specifically, S302 may comprise steps of:
Step 1 parses the first preset field of the message, obtains the mark of the first virtual machine VM.
Wherein, the first preset field can be rule of thumb configured by technical staff.Specifically, the first preset field can Field is left unused in VXLAN heading to belong to the message.VXLAN heading being discussed in detail with reference table (3).
In an implementation, when GW equipment determines the third preset field of the message for update notifying mark, GW equipment can be with Obtain the mark for the VM (i.e. the first VM) that the first preset field in the message carries.
Step 2 parses the second preset field of the message.
Wherein, the second preset field can be rule of thumb configured by technical staff.Specifically, the second preset field can Field is left unused in VXLAN heading to belong to the message.
In an implementation, when GW equipment determines the third preset field of the message for update notifying mark, GW equipment can be with The second preset field for parsing the message judges whether the second preset field is empty.
Step 3 sets empty for Tag corresponding with the first VM in ARP entry if the second preset field is sky.
In an implementation, when GW equipment determines the second preset field of the message for sky, GW equipment can will be in ARP entry Tag corresponding with the first VM is set as empty.
For example, being carried in the message that GW equipment receives if updating the corresponding ARP entry of preceding first VM is table (1) The mark and update notifying mark of first VM, and the second preset field of the message is sky, the then corresponding ARP of the first VM after updating List item may refer to table (5).
Table (5)
IP address MAC Address Outgoing interface Tag
10.1.1.2 1-1-1 The tunnel VXLAN -
Wherein, 10.1.1.2 indicates the IP address of the first VM, and 1-1-1 indicates the MAC Address of the first VM, and the tunnel VXLAN is Communication tunnel between GW equipment and VTEP ,-indicate that GW equipment when carrying out VXLAN encapsulation to message, does not add Tag.
Step 4, if the second preset field is not target Tag empty, that the second preset field of acquisition carries, by ARP entry In Tag corresponding with the first VM be set as target Tag.
In an implementation, when GW equipment determines that the second preset field of the message is not sky, GW equipment available second The Tag (i.e. target Tag) that preset field carries.GW equipment can set target for Tag corresponding with the first VM in ARP entry Tag。
For example, being carried in the message that GW equipment receives if updating the corresponding ARP entry of preceding first VM is table (5) The mark and update notifying mark of first VM, and the second preset field of the message is 20, then the corresponding ARP of the first VM after updating List item may refer to table (6).
Table (6)
IP address MAC Address Outgoing interface Tag
10.1.1.2 1-1-1 The tunnel VXLAN 20
Wherein, 10.1.1.2 indicates the IP address of the first VM, and 1-1-1 indicates the MAC Address of the first VM, and the tunnel VXLAN is Communication tunnel between GW equipment and VTEP, number of the 20 expression GW equipment in the Tag for add when VXLAN encapsulation to message Value.
Referring to fig. 4, Fig. 4 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application, this implementation Example is applied to be illustrated for VTEP the and GW equipment in Fig. 1 in this way, and this method may comprise steps of:
S401: when receiving the modification instruction for the access way of AC1, VTEP is in the corresponding pass of the AC and VM of record In system, determines the corresponding VM1 of AC1, and VXLAN encapsulation is carried out to the data message that VM1 is sent, obtain object message.
Wherein, the mark of target access way is carried in modification instruction, the mark of target access way indicates Ethernet access way is modified in instruction and also carries target Tag.First predetermined word in the VXLAN heading of object message Section be VM1 mark, the second preset field be target Tag, third preset field is preset update notifying mark.
S402:VTEP sends object message to GW equipment.
Preset update notifying mark is carried in S403:GW equipment judgement object message, parses the first of object message Preset field obtains the mark of VM1, obtains the target Tag that the second preset field carries, will be corresponding with VM1 in ARP entry Tag is revised as target Tag, and is forwarded processing to the message for being sent to VM1 according to updated ARP entry.
Referring to Fig. 5, Fig. 5 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application, this implementation Example is applied to be illustrated for VTEP the and GW equipment in Fig. 1 in this way, and this method may comprise steps of:
S501: when receiving the modification instruction for the access way of AC1, VTEP is in the corresponding pass of the AC and VM of record In system, determines the corresponding VM1 of AC1, and VXLAN encapsulation is carried out to the data message that VM1 is sent, obtain object message.
Wherein, the mark of target access way is carried in modification instruction, the mark of target access way indicates that VLAN connects Enter mode.The first preset field is VM1 in the VXLAN heading of object message mark, the second preset field are that empty, third is pre- If field is preset update notifying mark.
S502:VTEP sends object message to GW equipment.
Preset update notifying mark is carried in S503:GW equipment judgement object message, parses the first of object message Preset field obtains the mark of VM1, determines that the second preset field of object message is sky, will be corresponding with VM1 in ARP entry Tag is revised as sky, and is forwarded processing to the message for being sent to VM1 according to updated ARP entry.
Referring to Fig. 6, Fig. 6 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application, this implementation Example is applied to be illustrated for VTEP the and GW equipment in Fig. 1 in this way, and this method may comprise steps of:
S601: when receiving the modification instruction for the access way of AC1, VTEP is in the corresponding pass of the AC and VM of record In system, determines the corresponding VM1 of AC1, and VXLAN encapsulation is carried out to preset protocol massages, obtain object message.
Wherein, the mark of target access way is carried in modification instruction, the mark of target access way indicates Ethernet access way is modified in instruction and also carries target Tag.First predetermined word in the VXLAN heading of object message Section be VM1 mark, the second preset field be target Tag, third preset field is preset update notifying mark.
S602:VTEP sends object message to GW equipment.
Preset update notifying mark is carried in S603:GW equipment judgement object message, parses the first of object message Preset field obtains the mark of VM1, obtains the target Tag that the second preset field carries, will be corresponding with VM1 in ARP entry Tag is revised as target Tag, and is forwarded processing to the message for being sent to VM1 according to updated ARP entry.
Referring to Fig. 7, Fig. 7 is a kind of exemplary flow chart of message processing method provided by the embodiments of the present application, this implementation Example is applied to be illustrated for VTEP the and GW equipment in Fig. 1 in this way, and this method may comprise steps of:
S701: when receiving the modification instruction for the access way of AC1, VTEP is in the corresponding pass of the AC and VM of record In system, determines the corresponding VM1 of AC1, and VXLAN encapsulation is carried out to preset protocol massages, obtain object message.
Wherein, the mark of target access way is carried in modification instruction, the mark of target access way indicates that VLAN connects Enter mode.The first preset field is VM1 in the VXLAN heading of object message mark, the second preset field are that empty, third is pre- If field is preset update notifying mark.
S702:VTEP sends object message to GW equipment.
Preset update notifying mark is carried in S703:GW equipment judgement object message, parses the first of object message Preset field obtains the mark of VM1, determines that the second preset field of object message is sky, will be corresponding with VM1 in ARP entry Tag is revised as sky, and is forwarded processing to the message for being sent to VM1 according to updated ARP entry.
By above example as it can be seen that the message processing method based on the embodiment of the present application, when receiving the access side for AC1 When the modification instruction of formula, VTEP can determine the corresponding VM1 of AC1, according to VM1's in the corresponding relationship of the AC and VM of record Mark, the mark of target access way and preset update notifying mark generate object message, and are sent to GW equipment.GW is set Standby to determine to carry preset update notifying mark in object message, GW equipment can update ARP entry according to object message, and Processing is forwarded to the message received according to updated ARP entry.Based on above-mentioned processing, when VTEP detects AC1's When access way sends variation, GW equipment can be reminded to update ARP entry in time, allow GW equipment according to updated ARP entry is forwarded processing to message, and then network service is avoided to interrupt.
Corresponding with the embodiment of the method for Fig. 2, referring to Fig. 8, Fig. 8 is a kind of Message processing dress provided by the embodiments of the present application The structure chart set, device are applied to the VTEP in VXLAN, and VXLAN further includes GW equipment, which includes:
Determining module 801, for remembering when receiving the modification instruction for the access way of the first access circuit AC In the corresponding relationship of the AC and virtual machine VM of record, corresponding first VM of the first AC is determined, wherein take in the modification instruction Mark with target access way;
Generation module 802, for according to the mark of the first VM, the mark of the target access way and it is preset more New reminder flag generates update notifying message;
Sending module 803, for sending the update notifying message to the GW equipment, so that the GW equipment is according to institute It states update notifying message and updates Address Resolution Protocol ARP list item, and the message received is carried out according to updated ARP entry Forward process.
Optionally, the generation module 802, if the mark specifically for the target access way indicates Ethernet Ethernet access way carries out VXLAN envelope to the data message when receiving the data message that the first VM is sent Dress, obtains update notifying message, wherein the first preset field is described the in the VXLAN heading of the update notifying message Described in the mark of one VM, the second preset field are the target labels Tag carried in the modification instruction, third preset field is more New reminder flag;
If the mark of the target access way indicates virtual LAN VLAN access way, when receiving described first When the data message that VM is sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update Reminding mark, the second preset field that the first preset field is the first VM in the VXLAN heading of message is that empty, third is pre- If field is the update notifying mark.
Optionally, the generation module 802, if the mark specifically for the target access way indicates Ethernet Access way carries out VXLAN encapsulation to preset protocol massages, obtains update notifying message, wherein the update notifying message VXLAN heading in the first preset field be the first VM mark, the second preset field be to be taken in modification instruction The target Tag of band, third preset field are the update notifying mark;
If the mark of the target access way indicates VLAN access way, VXLAN is carried out to preset protocol massages Encapsulation, obtains update notifying message, wherein the first preset field is described in the VXLAN heading of the update notifying message Mark, the second preset field of first VM is sky, third preset field is the update notifying mark.
Corresponding with the embodiment of the method for Fig. 3, referring to Fig. 9, Fig. 9 is a kind of Message processing dress provided by the embodiments of the present application The structure chart set, the device are applied to the GW equipment in VXLAN, and VXLAN further includes VTEP, which includes:
Judgment module 901, for judging whether carry in the message when receiving the message that the VTEP is sent Preset update notifying mark;
Update module 902, if updated for carrying the update notifying mark in the message according to the message Address Resolution Protocol ARP list item, and processing is forwarded to the message received according to updated ARP entry.
Optionally, the update module 902 obtains the first void specifically for parsing the first preset field of the message The mark of quasi- machine VM;
Parse the second preset field of the message;
If second preset field is sky, set empty for Tag corresponding with the first VM in ARP entry;
If second preset field is not target Tag empty, that acquisition second preset field carries, will be described Tag corresponding with the first VM is set as the target Tag in ARP entry.
As seen from the above, based on the message process device of the embodiment of the present application, when receiving the access side for the first AC When the modification instruction of formula, in the corresponding relationship of the AC and VM of record, corresponding first VM of the first AC is determined, according to the first VM's Mark, the mark of target access way and preset update notifying mark generate update notifying message, and are sent to GW equipment. GW equipment can update ARP entry according to update notifying message, and be carried out according to updated ARP entry to the message received Forward process.GW equipment can be reminded in time more when VTEP detects the access way transmission variation of AC based on above-mentioned processing New ARP entry allows GW equipment to be forwarded processing to message according to updated ARP entry, and then avoids network industry Business is interrupted.
The embodiment of the present application also provides a kind of electronic equipment, as shown in Figure 10, including processor 1001, communication interface 1002, memory 1003 and communication bus 1004, wherein processor 1001, communication interface 1002, memory 1003 pass through communication Bus 1004 completes mutual communication,
Memory 1003, for storing computer program;
Processor 1001, when for executing the program stored on memory 1003, so that electronic equipment executes following step Suddenly, which includes:
When receiving the modification instruction for the access way of the first access circuit AC, in the AC and virtual machine VM of record Corresponding relationship in, determine corresponding first VM of the first AC, wherein carry target access way in modification instruction Mark;
According to the mark of the first VM, the mark of the target access way and preset update notifying mark, generate Update notifying message;
Send the update notifying message to the GW equipment so that the GW equipment according to the update notifying message more New Address Resolution Protocol ARP list item, and processing is forwarded to the message received according to updated ARP entry.
Optionally, described to be mentioned according to the mark of the first VM, the mark of the target access way and preset update It wakes up and indicates, generate update notifying message, comprising:
If the mark of the target access way indicates Ethernet Ethernet access way, when receiving described first When the data message that VM is sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update Reminding the first preset field is the first VM in the VXLAN heading of message mark, the second preset field is the modification The target labels Tag that carries in instruction, third preset field are the update notifying mark;
If the mark of the target access way indicates virtual LAN VLAN access way, when receiving described first When the data message that VM is sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update Reminding mark, the second preset field that the first preset field is the first VM in the VXLAN heading of message is that empty, third is pre- If field is the update notifying mark.
Optionally, described to be mentioned according to the mark of the first VM, the mark of the target access way and preset update It wakes up and indicates, generate update notifying message, comprising:
If the mark of the target access way indicates Ethernet access way, preset protocol massages are carried out VXLAN encapsulation, obtains update notifying message, wherein the first preset field is in the VXLAN heading of the update notifying message Mark, the second preset field of first VM is the target Tag carried in the modification instruction, third preset field is described Update notifying mark;
If the mark of the target access way indicates VLAN access way, VXLAN is carried out to preset protocol massages Encapsulation, obtains update notifying message, wherein the first preset field is described in the VXLAN heading of the update notifying message Mark, the second preset field of first VM is sky, third preset field is the update notifying mark.
The embodiment of the present application also provides a kind of electronic equipment, as shown in figure 11, including processor 1101, communication interface 1102, memory 1103 and communication bus 1104, wherein processor 1101, communication interface 1102, memory 1103 pass through communication Bus 1104 completes mutual communication,
Memory 1103, for storing computer program;
Processor 1101, when for executing the program stored on memory 1103, so that electronic equipment executes following step Suddenly, which includes:
When receiving the message that the VTEP is sent, judge preset update notifying mark whether is carried in the message Will;
If carrying the update notifying mark in the message, Address Resolution Protocol ARP is updated according to the message List item, and processing is forwarded to the message received according to updated ARP entry.
It is optionally, described that ARP entry is updated according to the message, comprising:
The first preset field for parsing the message obtains the mark of the first virtual machine VM;
Parse the second preset field of the message;
If second preset field is sky, set label Tag corresponding with the first VM in ARP entry to It is empty;
If second preset field is not target Tag empty, that acquisition second preset field carries, will be described Tag corresponding with the first VM is set as the target Tag in ARP entry.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described be applied to when being executed by processor The step of message processing method of VTEP.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program is realized any of the above-described applied to GW when being executed by processor The step of message processing method of equipment.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any message processing method applied to VTEP in above-described embodiment.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that computer executes any message processing method applied to GW equipment in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, computer readable storage medium and computer program product embodiments, since it is substantially similar to method reality Example is applied, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (14)

1. a kind of message processing method, which is characterized in that the method be applied to expansible Virtual Local Area Network VXLAN in can Virtual Local Area Network endpoint of a tunnel VTEP is extended, the VXLAN further includes gateway GW equipment, which comprises
When receiving the modification instruction for the access way of the first access circuit AC, in pair of the AC and virtual machine VM of record In should being related to, corresponding first VM of the first AC is determined, wherein the mark of target access way is carried in the modification instruction Know;
According to the mark of the first VM, the mark of the target access way and preset update notifying mark, generates and update Remind message;
The update notifying message is sent to the GW equipment, so that the GW equipment updates ground according to the update notifying message Location analysis protocol ARP entry, and processing is forwarded to the message received according to updated ARP entry.
2. the method according to claim 1, wherein mark, the target according to the first VM connects Enter mode mark and preset update notifying mark, generate update notifying message, comprising:
If the mark of the target access way indicates Ethernet Ethernet access way, sent out when receiving the first VM When the data message sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update notifying It is the modification instruction that the first preset field, which is mark, the second preset field of the first VM, in the VXLAN heading of message The target labels Tag of middle carrying, third preset field are the update notifying mark;
If the mark of the target access way indicates virtual LAN VLAN access way, sent out when receiving the first VM When the data message sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update notifying It is empty, third predetermined word that the first preset field, which is mark, the second preset field of the first VM, in the VXLAN heading of message Section is the update notifying mark.
3. the method according to claim 1, wherein mark, the target according to the first VM connects Enter mode mark and preset update notifying mark, generate update notifying message, comprising:
If the mark of the target access way indicates Ethernet access way, VXLAN is carried out to preset protocol massages Encapsulation, obtains update notifying message, wherein the first preset field is described in the VXLAN heading of the update notifying message Mark, the second preset field of first VM is the target Tag carried in the modification instruction, third preset field is the update Reminder flag;
If the mark of the target access way indicates VLAN access way, VXLAN encapsulation is carried out to preset protocol massages, Obtain update notifying message, wherein the first preset field is the first VM in the VXLAN heading of the update notifying message Mark, the second preset field be it is empty, third preset field is the update notifying mark.
4. a kind of message processing method, which is characterized in that the method is applied to the net in expansible Virtual Local Area Network VXLAN GW equipment is closed, the VXLAN further includes expansible Virtual Local Area Network endpoint of a tunnel VTEP, which comprises
When receiving the message that the VTEP is sent, judge preset update notifying mark whether is carried in the message;
If carrying the update notifying mark in the message, Address Resolution Protocol ARP list item is updated according to the message, And processing is forwarded to the message received according to updated ARP entry.
5. according to the method described in claim 4, it is characterized in that, described update ARP entry according to the message, comprising:
The first preset field for parsing the message obtains the mark of the first virtual machine VM;
Parse the second preset field of the message;
If second preset field is sky, set empty for label Tag corresponding with the first VM in ARP entry;
If second preset field is not target Tag empty, that acquisition second preset field carries, by the ARP table The corresponding Tag of first VM described in Xiang Zhongyu is set as the target Tag.
6. a kind of message process device, which is characterized in that described device be applied to expansible Virtual Local Area Network VXLAN in can Virtual Local Area Network endpoint of a tunnel VTEP is extended, the VXLAN further includes gateway GW equipment, and described device includes:
Determining module, for when receive for first access circuit AC access way modification instruction when, in the AC of record In the corresponding relationship of virtual machine VM, corresponding first VM of the first AC is determined, wherein carry mesh in the modification instruction Mark the mark of access way;
Generation module, for mark, the mark and preset update notifying of the target access way according to the first VM Mark generates update notifying message;
Sending module, for sending the update notifying message to the GW equipment, so that the GW equipment is according to the update It reminds message to update Address Resolution Protocol ARP list item, and place is forwarded to the message received according to updated ARP entry Reason.
7. device according to claim 6, which is characterized in that the generation module, if connect specifically for the target The mark for entering mode indicates Ethernet Ethernet access way, right when receiving the data message that the first VM is sent The data message carries out VXLAN encapsulation, obtains update notifying message, wherein the VXLAN heading of the update notifying message In the first preset field be the first VM mark, the second preset field be the target labels that carry in the modification instruction Tag, third preset field are the update notifying mark;
If the mark of the target access way indicates virtual LAN VLAN access way, sent out when receiving the first VM When the data message sent, VXLAN encapsulation is carried out to the data message, obtains update notifying message, wherein the update notifying It is empty, third predetermined word that the first preset field, which is mark, the second preset field of the first VM, in the VXLAN heading of message Section is the update notifying mark.
8. device according to claim 6, which is characterized in that the generation module, if connect specifically for the target The mark for entering mode indicates Ethernet access way, carries out VXLAN encapsulation to preset protocol massages, obtains update notifying report Text, wherein in the VXLAN heading of the update notifying message the first preset field be the mark of the first VM, it is second pre- If field is the target Tag carried in the modification instruction, third preset field is the update notifying mark;
If the mark of the target access way indicates VLAN access way, VXLAN encapsulation is carried out to preset protocol massages, Obtain update notifying message, wherein the first preset field is the first VM in the VXLAN heading of the update notifying message Mark, the second preset field be it is empty, third preset field is the update notifying mark.
9. a kind of message process device, which is characterized in that described device is applied to the net in expansible Virtual Local Area Network VXLAN GW equipment is closed, the VXLAN further includes expansible Virtual Local Area Network endpoint of a tunnel VTEP, and described device includes:
Judgment module, for judging whether to carry in the message preset when receiving the message that the VTEP is sent Update notifying mark;
Update module, if updating address solution according to the message for carrying the update notifying mark in the message Agreement ARP entry is analysed, and processing is forwarded to the message received according to updated ARP entry.
10. device according to claim 9, which is characterized in that the update module, specifically for parsing the message First preset field obtains the mark of the first virtual machine VM;
Parse the second preset field of the message;
If second preset field is sky, set empty for label Tag corresponding with the first VM in ARP entry;
If second preset field is not target Tag empty, that acquisition second preset field carries, by the ARP table The corresponding Tag of first VM described in Xiang Zhongyu is set as the target Tag.
11. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any side claim 1-3 Method step.
12. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any side claim 4-5 Method step.
13. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and When execution, the machine-executable instruction promotes the processor: realizing any method and step of claim 1-3.
14. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and When execution, the machine-executable instruction promotes the processor: realizing any method and step of claim 4-5.
CN201811260264.5A 2018-10-26 2018-10-26 Message processing method and device Active CN109450767B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811260264.5A CN109450767B (en) 2018-10-26 2018-10-26 Message processing method and device
PCT/CN2019/113293 WO2020083380A1 (en) 2018-10-26 2019-10-25 Message processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811260264.5A CN109450767B (en) 2018-10-26 2018-10-26 Message processing method and device

Publications (2)

Publication Number Publication Date
CN109450767A true CN109450767A (en) 2019-03-08
CN109450767B CN109450767B (en) 2020-06-12

Family

ID=65548726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811260264.5A Active CN109450767B (en) 2018-10-26 2018-10-26 Message processing method and device

Country Status (2)

Country Link
CN (1) CN109450767B (en)
WO (1) WO2020083380A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020083380A1 (en) * 2018-10-26 2020-04-30 新华三技术有限公司 Message processing
CN111935013A (en) * 2020-09-17 2020-11-13 南京中兴软件有限责任公司 Flow forwarding control method and device, flow forwarding method and chip, and switch

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105359465A (en) * 2013-07-10 2016-02-24 思科技术公司 Support for virtual extensible local area network segments across multiple data center sites
CN107547349A (en) * 2017-07-31 2018-01-05 新华三技术有限公司 A kind of method and device of virtual machine (vm) migration
CN107612808A (en) * 2017-09-13 2018-01-19 新华三技术有限公司 Tunnel establishing method and device
CN107783815A (en) * 2016-08-30 2018-03-09 华为技术有限公司 A kind of method and apparatus for determining virtual machine (vm) migration
CN107819677A (en) * 2017-10-26 2018-03-20 新华三技术有限公司 A kind of message forwarding method and device
CN108075956A (en) * 2016-11-16 2018-05-25 新华三技术有限公司 A kind of data processing method and device
CN108199968A (en) * 2018-03-30 2018-06-22 新华三技术有限公司 Route processing method and device
CN108322338A (en) * 2018-01-23 2018-07-24 新华三技术有限公司 A kind of broadcast suppressing method and VTEP equipment
CN108337158A (en) * 2018-01-23 2018-07-27 新华三技术有限公司 Unicast message retransmission method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9391906B2 (en) * 2013-04-19 2016-07-12 International Business Machines Corporation Overlay network priority inheritance
CN109450767B (en) * 2018-10-26 2020-06-12 新华三技术有限公司 Message processing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105359465A (en) * 2013-07-10 2016-02-24 思科技术公司 Support for virtual extensible local area network segments across multiple data center sites
CN107783815A (en) * 2016-08-30 2018-03-09 华为技术有限公司 A kind of method and apparatus for determining virtual machine (vm) migration
CN108075956A (en) * 2016-11-16 2018-05-25 新华三技术有限公司 A kind of data processing method and device
CN107547349A (en) * 2017-07-31 2018-01-05 新华三技术有限公司 A kind of method and device of virtual machine (vm) migration
CN107612808A (en) * 2017-09-13 2018-01-19 新华三技术有限公司 Tunnel establishing method and device
CN107819677A (en) * 2017-10-26 2018-03-20 新华三技术有限公司 A kind of message forwarding method and device
CN108322338A (en) * 2018-01-23 2018-07-24 新华三技术有限公司 A kind of broadcast suppressing method and VTEP equipment
CN108337158A (en) * 2018-01-23 2018-07-27 新华三技术有限公司 Unicast message retransmission method and device
CN108199968A (en) * 2018-03-30 2018-06-22 新华三技术有限公司 Route processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
A. GHANWANI等: "A Framework for Multicast in Network Virtualization over Layer 3", 《INTERNET ENGINEERING TASK FORCE (IETF)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020083380A1 (en) * 2018-10-26 2020-04-30 新华三技术有限公司 Message processing
CN111935013A (en) * 2020-09-17 2020-11-13 南京中兴软件有限责任公司 Flow forwarding control method and device, flow forwarding method and chip, and switch

Also Published As

Publication number Publication date
WO2020083380A1 (en) 2020-04-30
CN109450767B (en) 2020-06-12

Similar Documents

Publication Publication Date Title
US10999189B2 (en) Route optimization using real time traffic feedback
CN108259291B (en) VXLAN message processing method, device and system
US20190079897A1 (en) Remote direct memory access in computing systems
US11509532B2 (en) Switch triggered traffic tracking
CN105656796B (en) The method and apparatus for realizing three layers of virtual extended local area network forwarding
WO2021008533A1 (en) Method for determining path, and related device
CN106502335B (en) For configuring the machine frame system and its configuration method of one or more servomechanisms
EP3884624B1 (en) Active targeted data plane traffic monitoring for wired networks
US11736397B2 (en) Packet tracing mechanism in a network leveraging SRV6
CN104038401A (en) Interoperability for distributed overlay virtual environments
US20150370848A1 (en) System and method for managing data integrity in electronic data storage
US10944641B1 (en) Systems and methods for application traffic simulation using captured flows
US8995398B2 (en) System and method for efficient L3 mobility in a wired/wireless network
CN107682275B (en) Message monitoring method and device
CN106130819B (en) The detection method and device of VTEP exception
US10911341B2 (en) Fabric data plane monitoring
CN106921578A (en) The generation method and device of a kind of forwarding-table item
CN106155264B (en) Manage the computer approach and computer system of the power consumption of storage subsystem
CN107547665A (en) A kind of method, equipment and the system of dhcp address distribution
CN109525501A (en) A kind of method and apparatus adjusting forward-path
CN109450767A (en) A kind of message processing method and device
CN109818804B (en) Network monitoring method and device
CN107465621A (en) A kind of router finds method, SDN controllers, router and network system
CN109347748A (en) A kind of method and apparatus of synchronization of routing information
CN107294746B (en) Method and equipment for deploying service

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