WO2020083380A1 - 报文处理 - Google Patents

报文处理 Download PDF

Info

Publication number
WO2020083380A1
WO2020083380A1 PCT/CN2019/113293 CN2019113293W WO2020083380A1 WO 2020083380 A1 WO2020083380 A1 WO 2020083380A1 CN 2019113293 W CN2019113293 W CN 2019113293W WO 2020083380 A1 WO2020083380 A1 WO 2020083380A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
identifier
vxlan
update
preset
Prior art date
Application number
PCT/CN2019/113293
Other languages
English (en)
French (fr)
Inventor
黄李伟
郭威
王伟
Original Assignee
新华三技术有限公司
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 新华三技术有限公司 filed Critical 新华三技术有限公司
Publication of WO2020083380A1 publication Critical patent/WO2020083380A1/zh

Links

Images

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

Definitions

  • Extensible Virtual Local Area Network (English: Virtual eXtensible LAN, referred to as VXLAN) is a layer 2 encapsulation method that uses media access control (English: Media Access Control User Protocol Date, MAC: UDP) in the user packet protocol Virtual private network (English: Virtual Private Network, referred to as: VPN) technology.
  • VXLAN can be based on the existing Internet Protocol (English: Internet Protocol, referred to as: IP) network, to provide distributed physical sites with Layer 2 interconnection.
  • VXLAN networking includes: Extensible Virtual Local Area Network tunnel endpoints (English: Virtual eXtensible LAN Tunnel End Point, referred to as: VTEP), Gateway (English: Gat e Way, referred to as GW) equipment, multiple virtual Machine (English: Virtual Machine, referred to as: V).
  • VTEP Virtual eXtensible LAN Tunnel End Point
  • GW Gat e Way
  • V Virtual Machine
  • Access circuit (English: Attachment Circuit, abbreviated as: AC) 1 is the interface connected to VM1 on VTEP.
  • the VTEP may receive the first message sent by VM1, and the first message may carry Tag 1. If the access mode of AC1 is the Ethernet (Ethernet) access mode, VTEP directly encapsulates the first packet by VXLAN, and sends the encapsulated first packet to the GW device.
  • the GW device may forward the first message to the destination device (which may be VM2).
  • the GW device can generate an address resolution protocol (English: Address Resolution Protocol, abbreviated as: ARP) entry corresponding to VM1, and the correspondence between VM1 and Tag (that is, Tag1 in the first message) is recorded in the ARP entry.
  • ARP Address Resolution Protocol
  • the GW device may add Tag1 to the second message according to the ARP entry corresponding to VM1 and send it to VTEP.
  • VTEP forwards the second message to VM1.
  • VTEP deletes Tag1 in the first message, and then encapsulates the first message with VXLAN and encapsulates it
  • the first message is sent to the GW device.
  • the GW device can forward the first message to VM2 and generate an ARP entry corresponding to VM1.
  • the tag corresponding to VM1 is empty.
  • the GW device receives the second message, the GW device does not add a tag to the second message according to the ARP entry corresponding to VM1 and sends it to the VTEP.
  • VTEP adds Tag1 to the second message and sends it to VM1.
  • FIG. 1 is a framework diagram of a networking provided by an embodiment of this application.
  • FIG. 2 is a flowchart of a packet processing method provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of a packet processing method provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of an example of a packet processing method provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of an example of a packet processing method provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of an example of a packet processing method provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of an example of a packet processing method provided by an embodiment of the present application.
  • FIG. 8 is a structural diagram of a packet processing device according to an embodiment of the present application.
  • FIG. 9 is a structural diagram of a packet processing device according to an embodiment of the present application.
  • FIG. 10 is a structural diagram of a VTEP provided by an embodiment of this application.
  • FIG. 11 is a structural diagram of a GW device provided by an embodiment of the present application.
  • the embodiments of the present application provide a message processing method, which can be applied to VTEP and GW devices in VXLAN.
  • the packet processing method of the embodiment of the present application may be applied to the VTEP in FIG. 1.
  • VTEP may determine VM1 corresponding to AC1, where the information carries the identification of the target access mode.
  • VTEP can generate an update reminder message according to the VM1 ID, target access mode ID, and preset update reminder flag, and send the update reminder message to the GW device, so that the GW device updates the ARP table according to the update reminder message Entry, and forward the received message according to the updated ARP entry.
  • the message processing method of the embodiment of the present application can also be applied to the GW device in FIG. 1, the GW device can receive the message sent by VTEP, and then, the GW device can determine whether the message carries a preset update Reminder sign. If the message carries an update reminder flag, the GW device may update the ARP entry according to the message, and forward the received message according to the updated ARP entry.
  • the ARP entry may be learned by the GW according to the received message. For example, for the ARP entry, refer to Table (1).
  • Table (1) is the ARP entry corresponding to VM1 in the GW device, where 10.1.1.2 is the IP address of VM1, 1-1-1 is the MAC address of VM1, and VXLAN tunnel 1 is the communication between the GW device and VTEP tunnel.
  • the GW device receives a packet whose destination address is the IP address of VM1, it can send the packet to VTEP through VXLAN tunnel 1. After the VTEP receives the message, it can send the message to VM1. 10 indicates the value of the tag added by the GW device to the message sent to VM1.
  • the VTEP when the VTEP detects that the access mode of AC1 changes, it can promptly remind the GW device to update the ARP entry, so that the GW device can forward the received packet according to the updated ARP entry, thereby avoiding Network services are interrupted.
  • FIG. 2 is a flowchart of a packet processing method provided by an embodiment of the present application.
  • the method is applied to VTEP in a VXLAN.
  • the VXLAN may further include a GW device, and a VXLAN may be provided between the VTEP and the GW device.
  • the method may include the following steps:
  • the information carries the identification of the target access mode.
  • the first AC may be any AC in VTEP.
  • the corresponding relationship between the recorded AC and VM may be determined by VTEP according to the message sent by the VM in the local site and the AC of the message received by VTEP.
  • AC1 corresponds to VM1 in the correspondence between AC and VM recorded. For example, see Table (2).
  • VTEP receives the message sent by VM1 through AC1, then VTEP can generate the correspondence between VM1 and AC1 as shown in Table (2).
  • Table (2) 10.1.1.2 in Table (2) is the IP address of VM1.
  • VM1 can be identified by the IP address of VM1.
  • you can also use the MAC address of VM1 to identify VM1.
  • the access method of AC can be set by technicians according to business requirements. For example, technicians can perform the following configuration on AC1 (it can be called configuration 1):
  • Interface ten1 / 0/1 means to configure interface ten1 / 0/1
  • service-instance 10 means to use service instance 10 to match the packets received on interface ten1 / 0/1
  • encapsulation s-vid 10 means to match Packets with a Tag of 10 are matched.
  • Xconnectvsivpnb means that the packets are forwarded using the MAC address table of a virtual switching instance (English: Virtual Switch) (abbreviation: VSI) named vpnb.
  • VSI is a virtual switching instance that provides Layer 2 switching services for VXLAN on VTEP. It has all the functions of a traditional Ethernet switch, such as source MAC address learning, MAC address aging, and flooding.
  • AC1 access method is not specified in Configuration 1, it is the default VLAN access method.
  • VTEP can delete the tag in the packet sent by VM1, and then encapsulate the packet in VXLAN and send it to the GW device.
  • the technician can perform the following configuration on AC1 (may be referred to as configuration two):
  • Interface ten1 / 0/1 means to configure interface ten1 / 0/1
  • service-instance 10 means to use service instance 10 to match packets received on interface ten1 / 0/1
  • encapsulation-s-vid 10 means to carry The packets with Tag 10 are matched.
  • Xconnect vsi vpnb acess-mode Ethernet indicates that the specified access mode is Ethernet access mode.
  • VTEP When the configuration of AC1 is configuration two, VTEP does not process any tags in the packets sent by VM1, directly encapsulates the packets in VXLAN, and sends them to the GW device.
  • the VTEP may receive information indicating that the access mode of the first AC has changed.
  • the VTEP may determine the VM corresponding to the first AC (ie, the first VM) in the recorded correspondence between the AC and the VM.
  • VTEP can determine VM1 corresponding to AC1 from table (2), and can obtain the identity of VM1 (that is, IP address 10.1 .1.2).
  • S202 Generate an update reminder message according to the first VM identifier, the target access mode identifier, and the preset update reminder flag.
  • the preset update reminder flag can be set by a technician according to experience, and the GW device can recognize the update reminder flag and update the ARP entry.
  • the VTEP may generate an update reminder message according to the identifier of the first VM, the target access mode identifier, and the update reminder flag.
  • VTEP can adopt different ways to generate an update reminder message.
  • the VTEP may generate an update reminder message according to the data message sent by the first VM, and S202 may include the following two situations:
  • Case 1 If the identifier of the target access mode indicates the Ethernet access mode, when the data message sent by the first VM is received, the data message is VXLAN encapsulated to obtain an update reminder message.
  • the first preset field in the VXLAN header of the update reminder message is the identifier of the first VM
  • the second preset field is the Tag (namely the target Tag) carried in the above information
  • the third preset field is the update reminder Logo.
  • VTEP encapsulates the data packet with VXLAN, that is, adds the VXLAN header to the outer user datagram protocol (English: User Datagram Protocol, UDP) header of the data packet and the original Layer 2 data frame . See table (3).
  • VXLAN message header The structure of the VXLAN message header can be found in Table (4).
  • VXLAN ID is a VXLAN identifier used to identify VXLAN; the flag field RRRRIRRL: "I" is 1, indicating that the VXLAN ID in the VXLAN header is valid, and "I” is 0, indicating the VXLAN header The VXLAN ID in is invalid. Others are reserved unused fields, set to 0.
  • the first preset field, the second preset field, and the third preset field may belong to reserved unused fields in the VXLAN packet header.
  • the information indicating that the AC access mode has changed may carry a modified Tag (that is, the target Tag).
  • VTEP may set the first preset field in the VXLAN header to the identifier of the first VM, and set the second preset field in the VXLAN header to Target Tag, set the third preset field in the VXLAN header to the update reminder flag, and then VTEP can add the VXLAN header to the outer UDP header of the data packet and the original Layer 2 data frame Time, get the update reminder message.
  • Case 2 If the identifier of the target access mode indicates the VLAN access mode, when the data message sent by the first VM is received, the data message is VXLAN encapsulated to obtain an update reminder message.
  • the first preset field in the VXLAN message header of the update reminder message is the identifier of the first VM, the second preset field is empty, and the third preset field is the update reminder flag.
  • the VXLAN packet header can be described in detail in Table (4) above.
  • the first preset field, the second preset field, and the third preset field may belong to reserved unused fields in the VXLAN packet header.
  • the VTEP when the VTEP receives the data packet sent by the first VM, the VTEP may set the first preset field in the VXLAN packet header to the first For the ID of the VM, set the second preset field in the VXLAN header to be empty, and set the third preset field in the VXLAN header to the update reminder flag. Then, VTEP can add the VXLAN header to the An update reminder message is obtained between the outer UDP header of the data packet and the original layer 2 data frame.
  • VTEP may also generate an update reminder message according to the protocol message, and S202 may also include the following two situations:
  • Case three if the target access mode identifier indicates the Ethernet access mode, the preset protocol packet is VXLAN encapsulated to obtain an update reminder packet.
  • the first preset field in the VXLAN message header of the update reminder message is the identifier of the first VM
  • the second preset field is the target Tag
  • the third preset field is the update reminder flag.
  • the preset protocol message may be a VXLAN tunnel protocol message.
  • the information indicating that the AC access mode has changed may carry a modified Tag (that is, the target Tag).
  • VTEP can set the first preset field in the VXLAN header to the identifier of the first VM, set the second preset field in the VXLAN header to the target Tag, and set the third preset in the VXLAN header The field is set to the update reminder flag, and then VTEP can add the VXLAN header between the outer UDP header of the protocol packet and the original Layer 2 data frame to get the update reminder message.
  • Case four if the identifier of the target access mode indicates the VLAN access mode, VXLAN encapsulation is performed on the preset protocol message to obtain an update reminder message.
  • the first preset field in the VXLAN message header of the update reminder message is the identifier of the first VM, the second preset field is empty, and the third preset field is the update reminder flag.
  • the preset protocol message may be a VXLAN tunnel protocol message.
  • VTEP may set the first preset field in the VXLAN header to the identifier of the first VM, and set the second pre-set field in the VXLAN header Set the field to blank, set the third preset field in the VXLAN header to the update reminder flag, and then VTEP can add the VXLAN header to the outer UDP header and the original Layer 2 of the protocol packet Between data frames, update reminder messages are obtained.
  • S203 Send an update reminder message to the GW device, so that the GW device updates the ARP entry according to the update reminder message, and forwards the received message according to the updated ARP entry.
  • the VTEP can send an update reminder message to the GW device through the VXLAN tunnel.
  • the GW device can update the ARP entry, and according to the updated ARP table The item forwards the received message to avoid network service interruption to a certain extent.
  • FIG. 3 is a flowchart of a packet processing method provided by an embodiment of the present application.
  • the method is applied to a GW device in a VXLAN.
  • the VXLAN may also include a VTEP.
  • this method can include the following steps:
  • S301 When receiving a message sent by VTEP, determine whether the message carries a preset update reminder flag.
  • the preset update reminder flag can be set by the technician according to experience.
  • VTEP may write the update reminder flag to a field in the VXLAN packet header of the packet (for example, the third preset field above).
  • the GW device when the GW device receives the message sent by the VTEP through the VXLAN tunnel, the GW device can determine whether the message carries an update reminder flag to determine whether it wants to update the ARP entry.
  • the GW device when the GW device determines that the message sent by the VTEP carries an update reminder flag, the GW device may update the ARP entry according to the message, and further, the GW device may receive The received message is forwarded.
  • the method for the GW device to forward the received message according to the updated ARP entry is the same as that in the prior art, and details are not described in this embodiment of the present application.
  • the GW device may parse the third preset field of the message received from the VTEP, and when the GW device determines that the third preset field of the message is an update reminder flag, the GW device may update the ARP entry according to the message .
  • the GW device may not update the ARP entry.
  • the GW device can update the ARP entry according to the packet sent by the VTEP, and further forward the received packet according to the updated ARP entry, thereby avoiding the network Business interruption.
  • the GW device may update the ARP entry according to the information carried in the VXLAN packet header in the packet carrying the update reminder flag, and S302 may include the following steps:
  • Step 1 Parse the first preset field of the message to obtain the identifier of the first virtual machine VM.
  • the first preset field can be set by a technician according to experience.
  • the first preset field may belong to a reserved unused field in the VXLAN packet header of the packet.
  • VXLAN packet header can refer to Table (4) for detailed introduction.
  • the GW device when the GW device determines that the third preset field of the packet is an update reminder flag, the GW device may obtain the VM (that is, the first VM) carried in the first preset field in the packet Logo.
  • Step 2 Parse the second preset field of the message.
  • the second preset field can be set by a technician according to experience.
  • the second preset field may belong to a reserved unused field in the VXLAN packet header of the packet.
  • the GW device when the GW device determines that the third preset field of the message is an update reminder flag, the GW device may parse the second preset field of the message to determine whether the second preset field is empty.
  • Step 3 If the second preset field is empty, set the Tag in the ARP entry corresponding to the first VM to be empty.
  • the GW device when the GW device determines that the second preset field of the packet is empty, the GW device may set the Tag in the ARP entry corresponding to the first VM to be empty.
  • the packet received by the GW device carries the identifier of the first VM and the update reminder flag, and the second preset field of the packet is If it is empty, the ARP entry corresponding to the first VM after updating can be referred to Table (5).
  • 10.1.1.2 indicates the IP address of the first VM
  • 1-1-1 indicates the MAC address of the first VM
  • VXLAN tunnel 1 is the communication tunnel between the GW device and VTEP,-indicates that the GW device is performing VXLAN on the packet When encapsulating, no tag is added.
  • Step 4 If the second preset field is not empty, obtain the target Tag carried in the second preset field, and set the Tag in the ARP entry corresponding to the first VM as the target Tag.
  • the GW device may acquire the Tag (that is, the target Tag) carried in the second preset field.
  • the GW device may set the Tag in the ARP entry corresponding to the first VM as the target Tag.
  • the ARP entry corresponding to the first VM before the update is Table (5)
  • the packet received by the GW device carries the identifier of the first VM and the update reminder flag, and the second preset field of the packet is 20
  • the ARP entry corresponding to the first VM after the update can be referred to Table (6).
  • 10.1.1.2 indicates the IP address of the first VM
  • 1-1-1 indicates the MAC address of the first VM
  • VXLAN tunnel 1 is the communication tunnel between the GW device and VTEP
  • 20 indicates that the GW device is performing VXLAN on the packet The value of the tag added during packaging.
  • FIG. 4 is a flowchart of an example of a packet processing method provided by an embodiment of the present application.
  • the embodiment of the present application takes the method applied to the VTEP and GW devices in FIG. 1 as an example for illustration. It includes the following steps:
  • VTEP When receiving the information indicating that the access mode of AC1 has changed, VTEP determines the VM1 corresponding to AC1 in the recorded correspondence between AC and VM, and encapsulates the data packet sent by VM1 by VXLAN to obtain the target report Text.
  • the information carries the target access mode identifier
  • the target access mode identifier indicates the Ethernet access mode
  • the above information also carries the target tag.
  • the first preset field in the VXLAN packet header of the target packet is the identifier of VM1
  • the second preset field is the target Tag
  • the third preset field is the preset update reminder flag.
  • VTEP sends a target message to the GW device.
  • the GW device determines that the target message carries a preset update reminder flag, parses the first preset field of the target message, obtains the ID of VM1, and obtains the target Tag carried in the second preset field, which will correspond to the VM1
  • the Tag in the ARP entry is changed to the target Tag, and the packet sent to VM1 is forwarded according to the updated ARP entry.
  • FIG. 5 is a flowchart of an example of a packet processing method provided by an embodiment of the present application.
  • the embodiment of the present application takes the method applied to the VTEP and GW devices in FIG. 1 as an example for illustration. It includes the following steps:
  • VTEP When receiving the information indicating that the access mode of AC1 has changed, VTEP determines the VM1 corresponding to AC1 in the recorded correspondence between AC and VM, and encapsulates the data packet sent by VM1 by VXLAN to obtain the target report Text.
  • the information carries a target access mode identifier, and the target access mode identifier represents a VLAN access mode.
  • the first preset field in the VXLAN packet header of the target packet is the identifier of VM1, the second preset field is empty, and the third preset field is a preset update reminder flag.
  • VTEP sends a target message to the GW device.
  • the GW device determines that the target packet carries a preset update reminder flag, parses the first preset field of the target packet to obtain the ID of VM1, and determines that the second preset field of the target packet is empty and will be linked to VM1
  • the Tag in the corresponding ARP entry is changed to empty, and the packet sent to VM1 is forwarded according to the updated ARP entry.
  • FIG. 6 is a flowchart of an example of a message processing method provided by an embodiment of the present application.
  • the embodiment of the present application takes the method applied to the VTEP and GW devices in FIG. 1 as an example for illustration. It includes the following steps:
  • VTEP When receiving information indicating that the access mode of AC1 has changed, VTEP determines the VM1 corresponding to AC1 in the recorded correspondence between AC and VM, and performs VXLAN encapsulation on the preset protocol packet to obtain the target report Text.
  • the information carries the target access mode identifier
  • the target access mode identifier indicates the Ethernet access mode
  • the information also carries the target tag.
  • the first preset field in the VXLAN packet header of the target packet is the identifier of VM1
  • the second preset field is the target Tag
  • the third preset field is the preset update reminder flag.
  • VTEP sends a target message to the GW device.
  • the GW device determines that the target message carries a preset update reminder flag, parses the first preset field of the target message, obtains the ID of VM1, and obtains the target Tag carried in the second preset field, which will correspond to the VM1
  • the Tag in the ARP entry is changed to the target Tag, and the packet sent to VM1 is forwarded according to the updated ARP entry.
  • FIG. 7 is a flowchart of an example of a packet processing method provided by an embodiment of the present application.
  • the embodiment of the present application takes the method applied to the VTEP and GW devices in FIG. 1 as an example for illustration. It includes the following steps:
  • VTEP When receiving the information indicating that the access mode of AC1 is changed, VTEP determines the VM1 corresponding to AC1 in the recorded correspondence between AC and VM, and performs VXLAN encapsulation on the preset protocol packet to obtain the target report Text.
  • the information carries a target access mode identifier, and the target access mode identifier represents a VLAN access mode.
  • the first preset field in the VXLAN packet header of the target packet is the identifier of VM1, the second preset field is empty, and the third preset field is a preset update reminder flag.
  • VTEP sends a target message to the GW device.
  • the GW device determines that the target packet carries a preset update reminder flag, parses the first preset field of the target packet to obtain the ID of VM1, and determines that the second preset field of the target packet is empty and will be linked to VM1
  • the Tag in the corresponding ARP entry is changed to empty, and the packet sent to VM1 is forwarded according to the updated ARP entry.
  • VTEP when receiving information indicating that the access mode of AC1 has changed, VTEP can determine the VM1 corresponding to AC1 in the recorded correspondence between AC and VM, According to the identifier of VM1, the identifier of the target access mode and the preset update reminder flag, a target packet is generated and sent to the GW device.
  • the GW device determines that the target message carries a preset update reminder flag.
  • the GW device may update the ARP entry according to the target message, and forward the received message according to the updated ARP entry.
  • the VTEP when the VTEP detects that the access mode of AC1 changes, it can promptly remind the GW device to update the ARP entry, so that the GW device can forward the packet according to the updated ARP entry, thereby avoiding the interruption of network services .
  • FIG. 8 is a structural diagram of a packet processing apparatus provided by an embodiment of the present application.
  • the apparatus is applied to VTEP in VXLAN, and VXLAN further includes GW equipment.
  • GW equipment include:
  • the determining module 801 is configured to determine the first VM corresponding to the first AC in the recorded correspondence between the AC and the virtual machine VM when receiving information indicating that the access mode of the first access circuit AC changes. ,
  • the information carries the target access mode identifier;
  • the generating module 802 is configured to generate an update reminder message according to the first VM identifier, the target access mode identifier, and a preset update reminder flag;
  • the sending module 803 is configured to send an update reminder message to the GW device, so that the GW device updates the address resolution protocol ARP entry according to the update reminder message, and forwards the received message according to the updated ARP entry.
  • the generation module 802 is specifically configured to, if the target access mode identifier indicates the Ethernet access mode, when receiving the data packet sent by the first VM, encapsulate the data packet by VXLAN to obtain an update reminder Message, where the first preset field in the VXLAN header of the update reminder message is the identifier of the first VM, the second preset field is the target tag carried in the information, and the third preset field is update Reminder sign
  • the data packet is VXLAN encapsulated to obtain an update reminder message, where the VXLAN of the reminder message is updated
  • the first preset field in the packet header is the identifier of the first VM
  • the second preset field is empty
  • the third preset field is the update reminder flag.
  • the generation module 802 is specifically used to encapsulate the preset protocol message in VXLAN to obtain the update reminder message if the target access mode identifier indicates the Ethernet access method, in which the VXLAN report of the update reminder message is updated
  • the first preset field in the header is the identifier of the first VM
  • the second preset field is the target Tag carried in the information
  • the third preset field is the update reminder flag
  • VXLAN encapsulation is performed on the preset protocol message to obtain an update reminder message, wherein the first preset field in the VXLAN header of the update reminder message is the first The identifier of the VM, the second preset field is empty, and the third preset field is an update reminder flag.
  • FIG. 9 is a structural diagram of a packet processing apparatus provided by an embodiment of the present application.
  • the apparatus is applied to a GW device in VXLAN, and VXLAN further includes VTEP.
  • VTEP include:
  • the judgment module 901 is used to judge whether a preset update reminder flag is carried in the message when the message sent by the VTEP is received;
  • the update module 902 is configured to update the address resolution protocol ARP entry according to the message if the message carries an update reminder flag, and forward the received message according to the updated ARP entry.
  • the update module 902 is specifically used to parse the first preset field of the packet to obtain the identifier of the first virtual machine VM;
  • the second preset field is not empty, obtain the target Tag carried in the second preset field, and set the Tag in the ARP entry corresponding to the first VM as the target Tag.
  • the VTEP when receiving the information indicating that the access mode of the first AC has changed, the VTEP may determine the correspondence between the first AC in the recorded correspondence between the AC and the VM
  • the first VM generates an update reminder message according to the identifier of the first VM, the target access mode identifier, and the preset update reminder flag, and sends it to the GW device.
  • the GW device may update the ARP entry according to the update reminder message, and forward the received message according to the updated ARP entry.
  • VTEP detects that the AC access mode changes, it can promptly remind the GW device to update the ARP entry, so that the GW device can forward the packet according to the updated ARP entry, thereby avoiding the interruption of network services .
  • an embodiment of the present application further provides a VTEP.
  • the VXLAN to which the VTEP belongs also includes a GW device.
  • the VTEP includes: a processor 1001 and a machine-readable storage medium 1002.
  • the read storage medium 1002 stores machine executable instructions that can be executed by the processor 1001.
  • the machine executable instructions include: a determination instruction 1021, a generation instruction 1022, and a transmission instruction 1023;
  • the processor is determined to instruct the instruction 1021 to realize: when receiving the information indicating that the access mode of the first AC changes, determine the first VM corresponding to the first AC in the recorded correspondence between AC and VM, wherein The information carries the identification of the target access method;
  • the processor is prompted by the generated instruction 1022 to implement: generate an update reminder message according to the first VM identifier, the target access mode identifier, and the preset update reminder flag;
  • the processor is sent instruction 1023 to cause the implementation: sending an update reminder message to the GW device, so that the GW device updates the ARP entry according to the update reminder message, and forwards the received message according to the updated ARP entry.
  • the generation instruction 1022 specifically causes the processor to:
  • the data packet is VXLAN encapsulated to obtain an update reminder message, in which the VXLAN message of the reminder message is updated
  • the first preset field in the header is the identifier of the first VM
  • the second preset field is the target Tag carried in the information
  • the third preset field is the update reminder flag
  • the data packet is VXLAN encapsulated to obtain an update reminder message, in which the VXLAN message of the reminder message is updated
  • the first preset field in the header is the identifier of the first VM
  • the second preset field is empty
  • the third preset field is the update reminder flag.
  • the generation instruction 1022 specifically causes the processor to:
  • the preset protocol message is VXLAN encapsulated to obtain an update reminder message, where the first preset field in the VXLAN header of the update reminder message is first The identifier of the VM, the second preset field is the target Tag carried in the information, and the third preset field is the update reminder flag;
  • VXLAN encapsulation is performed on the preset protocol message to obtain an update reminder message, wherein the first preset field in the VXLAN header of the update reminder message is the first The identifier of the VM, the second preset field is empty, and the third preset field is an update reminder flag.
  • the VTEP may also include a system bus 1003.
  • the system bus 1003 may be a peripheral component interconnection standard (English: Peripheral Component Interconnect, abbreviation: PCI) bus or an extended industry standard structure (English: Extended Industry Standard Architecture, abbreviation: EISA) bus, or the like.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the system bus 1003 can be divided into an address bus, a data bus, and a control bus.
  • the machine-readable storage medium 1002 may include random access memory (English: Random Access Memory, RAM for short), or non-volatile memory (English: Non-Volatile Memory, NVM for short), for example, at least one disk memory .
  • the machine-readable storage medium 1002 may also be at least one storage device located away from the foregoing processor 1001.
  • the processor 1001 may be a general-purpose processor, including a central processor (English: Central Processing Unit, abbreviated as: CPU), a network processor (English: Network Processor, abbreviated as: NP), etc .; or a digital signal processor (English: Digital Processing (abbreviation: DSP), Application Specific Integrated Circuit (English: Application Specific Integrated Circuit (abbreviation: ASIC), Field Programmable Gate Array (English: Field-Programmable Gate Array, abbreviation: FPGA) or other programmable logic devices, Discrete gates or transistor logic devices, discrete hardware components.
  • a central processor English: Central Processing Unit, abbreviated as: CPU
  • a network processor English: Network Processor, abbreviated as: NP
  • NP Network Processor
  • DSP Digital Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field Programmable Gate Array
  • an embodiment of the present application further provides a GW device.
  • the VXLAN to which the GW device belongs also includes VTEP.
  • the GW device includes a processor 1101 and a machine-readable storage medium 1102
  • the machine-readable storage medium 1102 stores machine-executable instructions that can be executed by the processor 1101.
  • the machine-executable instructions include: a judgment instruction 1121 and an update instruction 1122;
  • the processor is prompted to realize the instruction 1121: when receiving the message sent by VTEP, it is determined whether the message carries a preset update reminder flag;
  • the processor is prompted by the update instruction 1122 to implement: if the message carries an update reminder flag, the address resolution protocol ARP entry is updated according to the message, and the received message is forwarded according to the updated ARP entry.
  • the update instruction 1122 specifically causes the processor to:
  • the second preset field is not empty, obtain the target Tag carried in the second preset field, and set the Tag in the ARP entry corresponding to the first VM as the target Tag.
  • the GW device may further include a system bus 1103.
  • the processor 1101, the machine-readable storage medium 1102 complete communication interaction.
  • the system bus 1103 may be a PCI bus, an EISA bus, or the like.
  • the system bus 1103 can be divided into an address bus, a data bus, and a control bus.
  • the machine-readable storage medium 1102 may include RAM, and may also include NVM, for example, at least one disk storage. In addition, the machine-readable storage medium 1102 may also be at least one storage device located away from the foregoing processor 1101.
  • the processor 1101 may be a general-purpose processor, including CPU, NP, etc .; it may also be a DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component.
  • a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above-mentioned reports applied to VTEP are implemented. Steps of document processing method.
  • a computer-readable storage medium stores a computer program.
  • any of the above-mentioned applications to the GW device is implemented. The steps of the message processing method.
  • a computer program product containing instructions, which when run on a computer, causes the computer to execute any message processing method applied to VTEP in any of the above embodiments.
  • a computer program product containing instructions is also provided, which, when running on a computer, causes the computer to execute any message processing method applied to the GW device in the above embodiments.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server or data center Transmit to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
  • relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is any such actual relationship or order.
  • the terms “include”, “include” or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also those not explicitly listed Or other elements that are inherent to this process, method, article, or equipment.
  • the element defined by the sentence “include one " does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.

Abstract

一种报文处理方法和装置,该方法应用于VXLAN中的VTEP,当接收到指示第一AC的接入方式发生改变的信息时,在记录的AC与VM的对应关系中,确定第一AC对应的第一VM,根据第一VM的标识、目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文,并发送至GW设备,GW设备则根据更新提醒报文更新ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。基于上述处理,当VTEP检测到AC的接入方式发生变化时,可以及时提醒GW设备更新ARP表项,使得GW设备可以根据更新后的ARP表项对报文进行转发处理,进而避免网络业务中断。

Description

报文处理
相关申请的交叉引用
本申请要求于2018年10月26日提交中国专利局、申请号为201811260264.5发明名称为“一种报文处理方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
背景技术
可扩展虚拟局域网络(英文:Virtual eXtensible LAN,简称VXLAN)是一种采用用户数据包协议中的媒体访问控制(英文:Media Access Control in User Dategram Protocol,简称:MAC in UDP)封装方式的二层虚拟专用网络(英文:Virtual Private Network,简称:VPN)技术。VXLAN可以基于已有的网际协议(英文:Internet Protocol,简称:IP)网络,为分散的物理站点提供二层互联。
如图1所示,VXLAN组网包括:可扩展虚拟局域网络隧道端点(英文:Virtual eXtensible LAN Tunnel End Point,简称:VTEP)、网关(英文:Gat e Way,简称:GW)设备、多个虚拟机(英文:Virtual Machine,简称:V M)。
接入电路(英文:Attachment Circuit,简称:AC)1为VTEP上与VM1连接的接口。VTEP可以接收VM1发送的第一报文,第一报文中可以携带有Tag(标签)1。如果AC1的接入方式为Ethernet(以太网)接入方式,VTEP直接对第一报文进行VXLAN封装,并将封装后的第一报文发送至GW设备。GW设备可以将第一报文转发至目的设备(可以为VM2)。另外,GW设备可以生成VM1对应的地址解析协议(英文:Address Resolution Protocol,简称:ARP)表项,该ARP表项中记录有VM1和Tag(即第一报文中的Tag1)的对应关系。当GW设备接收到VM2发往VM1的第二报文时,GW设备可以根据VM1对应的ARP表项,将Tag1添加到第二报文中,并发送至VTEP。VTEP将第二报文转发至VM1。
如果AC1的接入方式为虚拟局域网(英文:Virtual Local Area Network,简称:VLAN)接入方式,VTEP删除第一报文中的Tag1,然后,对第一报文 进行VXLAN封装,并将封装后的第一报文发送至GW设备,同理,GW设备可以将第一报文转发至VM2,并生成VM1对应的ARP表项,此时,VM1对应的Tag为空。当GW设备接收到第二报文时,GW设备根据VM1对应的ARP表项,不在第二报文中添加Tag,并发送至VTEP。VTEP将Tag1添加到第二报文中,并发送至VM1。
附图简要说明
图1为本申请实施例提供的一种组网的框架图;
图2为本申请实施例提供的一种报文处理方法的流程图;
图3为本申请实施例提供的一种报文处理方法的流程图;
图4为本申请实施例提供的一种报文处理方法的示例的流程图;
图5为本申请实施例提供的一种报文处理方法的示例的流程图;
图6为本申请实施例提供的一种报文处理方法的示例的流程图;
图7为本申请实施例提供的一种报文处理方法的示例的流程图;
图8为本申请实施例提供的一种报文处理装置的结构图;
图9为本申请实施例提供的一种报文处理装置的结构图;
图10为本申请实施例提供的一种VTEP的结构图;
图11为本申请实施例提供的一种GW设备的结构图。
具体实施方式
为使本申请的目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
现有技术中,针对图1,如果AC1从以太网接入方式变为虚拟局域网接入方式,此时,接收到第二报文后,GW设备仍为第二报文添加Tag1,并发送至VTEP。VTEP接收到已添加Tag1的第二报文后,会再次为第二报文添加Tag1,导致报文出错。或者,AC1从虚拟局域网接入方式变为以太网接入方式,此时,接收到第二报文后,GW设备不在第二报文中添加Tag1,并发送至VTEP。VTEP接收到第二报文后,也不在第二报文中添加Tag1,同样会 导致报文出错。
可见,现有技术中,当AC1的接入方式发生变化时,会导致报文出错,进而造成网络业务中断。
本申请实施例提供了一种报文处理方法,可以应用于VXLAN中的VTEP和GW设备。
参见图1的应用场景,本申请实施例的报文处理方法可以应用于图1中的VTEP。当接收到指示AC1的接入方式发生改变的信息时,VTEP可以确定AC1对应的VM1,其中,该信息中携带有目标接入方式的标识。VTEP可以根据VM1的标识和目标接入方式的标识以及预设的更新提醒标志,生成更新提醒报文,并将更新提醒报文发送至GW设备,以使GW设备根据更新提醒报文更新ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
相应的,本申请实施例的报文处理方法还可以应用于图1中的GW设备,GW设备可以接收VTEP发送的报文,然后,GW设备可以判断该报文中是否携带有预设的更新提醒标志。如果该报文中携带有更新提醒标志,GW设备可以根据该报文更新ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。ARP表项可以为GW根据接收到的报文学习得到的,例如,ARP表项可以参见表(1)。
表(1)
IP地址 MAC地址 出接口 Tag
10.1.1.2 1-1-1 VXLAN隧道1 10
表(1)为GW设备中与VM1对应的ARP表项,其中,10.1.1.2为VM1的IP地址,1-1-1为VM1的MAC地址,VXLAN隧道1为GW设备与VTEP之间的通信隧道。当GW设备接收到目的地址为VM1的IP地址的报文时,可以将该报文通过VXLAN隧道1发送至VTEP。VTEP接收到该报文后,可以将该报文发送至VM1,10表示GW设备为发往VM1的报文添加的Tag的数值。
基于上述处理,当VTEP检测到AC1的接入方式发生变化时,可以及时提醒GW设备更新ARP表项,使得GW设备可以根据更新后的ARP表项对 接收到的报文进行转发处理,进而避免网络业务中断。
参见图2,图2为本申请实施例提供的一种报文处理方法的流程图,该方法应用于VXLAN中的VTEP,该VXLAN还可以包括GW设备,VTEP与GW设备之间可以设置有VXLAN隧道,该方法可以包括以下步骤:
S201:当接收到指示第一AC的接入方式发生改变的信息时,在记录的AC与VM的对应关系中,确定第一AC对应的第一VM。
其中,该信息中携带有目标接入方式的标识。第一AC可以为VTEP中的任一AC。记录的AC与VM的对应关系可以是VTEP根据本地站点内的VM发送的报文以及VTEP接收报文的AC确定的。
例如,VTEP通过AC1接收到VM1发送的报文,则记录的AC与VM的对应关系中AC1与VM1相对应。例如,可以参见表(2)。
表(2)
VM AC
10.1.1.2 AC1
VTEP通过AC1接收VM1发送的报文,则VTEP可以生成如表(2)所示的VM1与AC1的对应关系。其中,表(2)中10.1.1.2为VM1的IP地址,在该对应关系中,可以用VM1的IP地址对VM1进行标识。另外,也可以用VM1的MAC地址对VM1进行标识。
AC的接入方式可以由技术人员根据业务需求进行设置,例如,技术人员可以对AC1进行以下配置(可以称为配置一):
Interface ten1/0/1
service-instance 10
encapsulation s-vid 10
xconnect vsi vpnb
其中,Interface ten1/0/1表示对接口ten1/0/1进行配置,service-instance 10表示采用服务实例10对接口ten1/0/1接收到的报文进行匹配,encapsulation  s-vid 10表示对携带的Tag为10的报文进行匹配,xconnect vsi vpnb表示以名为vpnb的虚拟交换实例(英文:Virtual Switch Instance,简称:VSI)的MAC地址表对报文进行转发。配置一表示,根据服务实例10的报文匹配规则,对从接口ten1/0/1接收到的携带有Tag为10的报文进行匹配,根据名为vpnb的VSI的MAC地址表对符合报文匹配规则的报文进行转发。VSI为VTEP上为VXLAN提供二层交换服务的虚拟交换实例,它具有传统以太网交换机的所有功能,例如,源MAC地址学习、MAC地址老化、泛洪等功能。
配置一中未指定AC1的接入方式,即为默认的VLAN接入方式。当AC1的配置为配置一时,VTEP可以删除VM1发送的报文中的Tag,然后对报文进行VXLAN封装,并发送至GW设备。
或者,技术人员可以对AC1进行以下配置(可以称为配置二):
Interface ten1/0/1
service-instance 10
encapsulation s-vid 10
xconnect vsi vpnb acess-mode Ethernet
Interface ten1/0/1表示对接口ten1/0/1进行配置,service-instance 10表示采用服务实例10对接口ten1/0/1接收到的报文进行匹配,encapsulation s-vid 10表示对携带的Tag为10的报文进行匹配,xconnect vsi vpnb acess-mode Ethernet表示指定接入方式为Ethernet接入方式。
当AC1的配置为配置二时,VTEP对VM1发送的报文中的Tag不进行任何处理,直接对该报文进行VXLAN封装,并发送至GW设备。
在本申请实施例中,当更改第一AC的接入方式时,相应的,VTEP则可以接收到指示第一AC的接入方式发生改变的信息。VTEP可以在记录的AC与VM的对应关系中,确定第一AC对应的VM(即第一VM)。例如,针对表(2),当VTEP接收到指示AC1的接入方式发生改变的信息时,VTEP可以从表(2)中确定与AC1对应的VM1,并可以获取VM1的标识(即IP地址10.1.1.2)。
S202:根据第一VM的标识、目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文。
其中,预设的更新提醒标志可以由技术人员根据经验进行设置,GW设备可以识别该更新提醒标志,并更新ARP表项。
在本申请实施例中,当VTEP确定第一AC对应的第一VM后,VTEP可以根据第一VM的标识、目标接入方式的标识和更新提醒标志,生成更新提醒报文。
针对不同的目标接入方式的标识,VTEP可以采取不同的方式生成更新提醒报文。
可选的,VTEP可以根据第一VM发送的数据报文,生成更新提醒报文,则S202可以包括以下两种情况:
情况一,如果目标接入方式的标识表示Ethernet接入方式,当接收到第一VM发送的数据报文时,对数据报文进行VXLAN封装,得到更新提醒报文。
其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为上述信息中携带的Tag(即目标Tag)、第三预设字段为更新提醒标志。
VTEP对数据报文进行VXLAN封装,即,将VXLAN报文头添加到数据报文的外层用户数据报协议(英文:User Datagram Protocol,简称:UDP)报文头和原始二层数据帧之间。参见表(3)。
表(3)
外层IP报文头 外层UDP报文头 VXLAN报文头 原始二层数据帧
VXLAN报文头的结构可以参见表(4)。
表(4)
Figure PCTCN2019113293-appb-000001
表(4)中,VXLAN ID为VXLAN标识符,用于标识VXLAN;标志字段RRRRIRRL:“I”为1,表示VXLAN报文头中的VXLAN ID有效,“I”为0,表示VXLAN报文头中的VXLAN ID无效。其他为保留未用字段,设置为0。
第一预设字段、第二预设字段和第三预设字段可以属于VXLAN报文头中的保留未用字段。
在本申请实施例中,如果目标接入方式为Ethernet接入方式,指示AC的接入方式发生改变的信息中可以携带有修改后的Tag(即目标Tag)。当VTEP接收到第一VM发送的数据报文时,VTEP可以将VXLAN报文头中的第一预设字段设置为第一VM的标识,将VXLAN报文头中的第二预设字段设置为目标Tag,将VXLAN报文头中的第三预设字段设置为更新提醒标志,然后,VTEP可以将该VXLAN报文头添加到数据报文的外层UDP报文头和原始二层数据帧之间,得到更新提醒报文。
情况二,如果目标接入方式的标识表示VLAN接入方式,当接收到第一VM发送的数据报文时,对数据报文进行VXLAN封装,得到更新提醒报文。
其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为空、第三预设字段为更新提醒标志。
VXLAN报文头可以参见上述表(4)的详细介绍。第一预设字段、第二预设字段和第三预设字段可以属于VXLAN报文头中的保留未用字段。
在本申请实施例中,如果目标接入方式为VLAN接入方式,当VTEP接收到第一VM发送的数据报文时,VTEP可以将VXLAN报文头中的第一预设字段设置为第一VM的标识,将VXLAN报文头中的第二预设字段设置为空,将VXLAN报文头中的第三预设字段设置为更新提醒标志,然后,VTEP可以将该VXLAN报文头添加到数据报文的外层UDP报文头和原始二层数据帧之间,得到更新提醒报文。
可选的,VTEP还可以根据协议报文,生成更新提醒报文,则S202还可以包括以下两种情况:
情况三,如果目标接入方式的标识表示Ethernet接入方式,对预设的协议 报文进行VXLAN封装,得到更新提醒报文。
其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为目标Tag、第三预设字段为更新提醒标志。预设的协议报文可以为VXLAN隧道协议报文。
在本申请实施例中,如果目标接入方式为Ethernet接入方式,指示AC的接入方式发生改变的信息中可以携带有修改后的Tag(即目标Tag)。VTEP可以将VXLAN报文头中的第一预设字段设置为第一VM的标识,将VXLAN报文头中的第二预设字段设置为目标Tag,将VXLAN报文头中的第三预设字段设置为更新提醒标志,然后,VTEP可以将该VXLAN报文头添加到协议报文的外层UDP报文头和原始二层数据帧之间,得到更新提醒报文。
情况四,如果目标接入方式的标识表示VLAN接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文。
其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为空、第三预设字段为更新提醒标志。预设的协议报文可以为VXLAN隧道协议报文。
在本申请实施例中,如果目标接入方式为VLAN接入方式,VTEP可以将VXLAN报文头中的第一预设字段设置为第一VM的标识,将VXLAN报文头中的第二预设字段设置为空,将VXLAN报文头中的第三预设字段设置为更新提醒标志,然后,VTEP可以将该VXLAN报文头添加到协议报文的外层UDP报文头和原始二层数据帧之间,得到更新提醒报文。
S203:向GW设备发送更新提醒报文,以使GW设备根据更新提醒报文更新ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
在本申请实施例中,VTEP可以通过VXLAN隧道向GW设备发送更新提醒报文,相应的,GW设备在接收到更新提醒报文后,可以对ARP表项进行更新,并根据更新后的ARP表项对接收到的报文进行转发处理,进而可以在一定程度上避免网络业务中断。
相应的,参见图3,图3为本申请实施例提供的一种报文处理方法的流程图,该方法应用于VXLAN中的GW设备,VXLAN还可以包括VTEP,VTEP 与GW设备之间可以设置有VXLAN隧道,该方法可以包括以下步骤:
S301:当接收到VTEP发送的报文时,判断该报文中是否携带有预设的更新提醒标志。
其中,预设的更新提醒标志可以由技术人员根据经验进行设置。例如,VTEP可以将更新提醒标志写入报文的VXLAN报文头中的一个字段(例如,上文中的第三预设字段)。
在本申请实施例中,当GW设备通过VXLAN隧道接收到VTEP发送的报文时,GW设备可以判断该报文中是否携带有更新提醒标志,以确定自身是否要更新ARP表项。
S302:如果该报文中携带有更新提醒标志,根据该报文更新ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
在本申请实施例中,当GW设备判定VTEP发送的报文中携带有更新提醒标志时,GW设备可以根据该报文更新ARP表项,进而,GW设备可以根据更新后的ARP表项对接收到的报文进行转发处理。GW设备根据更新后的ARP表项对接收到的报文进行转发处理的方法,与现有技术相同,本申请实施例不再赘述。
例如,GW设备可以解析从VTEP接收到的报文的第三预设字段,当GW设备判定该报文的第三预设字段为更新提醒标志时,GW设备可以根据该报文更新ARP表项。
另外,当GW设备判定该报文的第三预设字段不是更新提醒标志时,GW设备可以不更新ARP表项。
可见,基于本申请实施例提供的报文处理方法,GW设备可以根据VTEP发送的报文更新ARP表项,进而,根据更新后的ARP表项对接收到的报文进行转发处理,进而避免网络业务中断。
可选的,GW设备可以根据携带有更新提醒标志的报文中的VXLAN报文头携带的信息,对ARP表项进行更新,S302可以包括以下步骤:
步骤一,解析该报文的第一预设字段,得到第一虚拟机VM的标识。
其中,第一预设字段可以由技术人员根据经验进行设置。例如,第一预设字段可以属于该报文的VXLAN报文头中的保留未用字段。VXLAN报文头可以参考表(4)的详细介绍。
在本申请实施例中,当GW设备判定该报文的第三预设字段为更新提醒标志时,GW设备可以获取该报文中的第一预设字段携带的VM(即第一VM)的标识。
步骤二,解析该报文的第二预设字段。
其中,第二预设字段可以由技术人员根据经验进行设置。例如,第二预设字段可以属于该报文的VXLAN报文头中的保留未用字段。
在本申请实施例中,当GW设备判定该报文的第三预设字段为更新提醒标志时,GW设备可以解析该报文的第二预设字段,判断第二预设字段是否为空。
步骤三,如果第二预设字段为空,将与第一VM对应的ARP表项中的Tag设置为空。
在本申请实施例中,当GW设备判定该报文的第二预设字段为空时,GW设备可以将与第一VM对应的ARP表项中的Tag设置为空。
例如,如果更新前第一VM对应的ARP表项为表(1),GW设备接收到的报文中携带有第一VM的标识和更新提醒标志,且该报文的第二预设字段为空,则更新后第一VM对应的ARP表项可以参见表(5)。
表(5)
IP地址 MAC地址 出接口 Tag
10.1.1.2 1-1-1 VXLAN隧道1 -
其中,10.1.1.2表示第一VM的IP地址,1-1-1表示第一VM的MAC地址,VXLAN隧道1为GW设备与VTEP之间的通信隧道,-表示GW设备在对报文进行VXLAN封装时,不添加Tag。
步骤四,如果第二预设字段不为空,获取第二预设字段携带的目标Tag, 将与第一VM对应的ARP表项中的Tag设置为目标Tag。
在本申请实施例中,当GW设备判定该报文的第二预设字段不为空时,GW设备可以获取第二预设字段携带的Tag(即目标Tag)。GW设备可以将与第一VM对应的ARP表项中的Tag设置为目标Tag。
例如,如果更新前第一VM对应的ARP表项为表(5),GW设备接收到的报文中携带有第一VM的标识和更新提醒标志,且该报文的第二预设字段为20,则更新后第一VM对应的ARP表项可以参见表(6)。
表(6)
IP地址 MAC地址 出接口 Tag
10.1.1.2 1-1-1 VXLAN隧道1 20
其中,10.1.1.2表示第一VM的IP地址,1-1-1表示第一VM的MAC地址,VXLAN隧道1为GW设备与VTEP之间的通信隧道,20表示GW设备在对报文进行VXLAN封装时添加的Tag的数值。
参见图4,图4为本申请实施例提供的一种报文处理方法的示例的流程图,本申请实施例以该方法应用于图1中的VTEP和GW设备为例进行说明,该方法可以包括以下步骤:
S401:当接收到指示AC1的接入方式发生改变的信息时,VTEP在记录的AC与VM的对应关系中,确定AC1对应的VM1,并对VM1发送的数据报文进行VXLAN封装,得到目标报文。
其中,所述信息中携带有目标接入方式的标识,目标接入方式的标识表示Ethernet接入方式,上述信息中还携带有目标Tag。目标报文的VXLAN报文头中第一预设字段为VM1的标识、第二预设字段为目标Tag、第三预设字段为预设的更新提醒标志。
S402:VTEP向GW设备发送目标报文。
S403:GW设备判定目标报文中携带有预设的更新提醒标志,解析目标报文的第一预设字段,得到VM1的标识,获取第二预设字段携带的目标Tag,将与VM1对应的ARP表项中的Tag修改为目标Tag,并根据更新后的ARP 表项对发往VM1的报文进行转发处理。
参见图5,图5为本申请实施例提供的一种报文处理方法的示例的流程图,本申请实施例以该方法应用于图1中的VTEP和GW设备为例进行说明,该方法可以包括以下步骤:
S501:当接收到指示AC1的接入方式发生改变的信息时,VTEP在记录的AC与VM的对应关系中,确定AC1对应的VM1,并对VM1发送的数据报文进行VXLAN封装,得到目标报文。
其中,所述信息中携带有目标接入方式的标识,目标接入方式的标识表示VLAN接入方式。目标报文的VXLAN报文头中第一预设字段为VM1的标识、第二预设字段为空、第三预设字段为预设的更新提醒标志。
S502:VTEP向GW设备发送目标报文。
S503:GW设备判定目标报文中携带有预设的更新提醒标志,解析目标报文的第一预设字段,得到VM1的标识,判定目标报文的第二预设字段为空,将与VM1对应的ARP表项中的Tag修改为空,并根据更新后的ARP表项对发往VM1的报文进行转发处理。
参见图6,图6为本申请实施例提供的一种报文处理方法的示例的流程图,本申请实施例以该方法应用于图1中的VTEP和GW设备为例进行说明,该方法可以包括以下步骤:
S601:当接收到指示AC1的接入方式发生改变的信息时,VTEP在记录的AC与VM的对应关系中,确定AC1对应的VM1,并对预设的协议报文进行VXLAN封装,得到目标报文。
其中,所述信息中携带有目标接入方式的标识,目标接入方式的标识表示Ethernet接入方式,所述信息中还携带有目标Tag。目标报文的VXLAN报文头中第一预设字段为VM1的标识、第二预设字段为目标Tag、第三预设字段为预设的更新提醒标志。
S602:VTEP向GW设备发送目标报文。
S603:GW设备判定目标报文中携带有预设的更新提醒标志,解析目标 报文的第一预设字段,得到VM1的标识,获取第二预设字段携带的目标Tag,将与VM1对应的ARP表项中的Tag修改为目标Tag,并根据更新后的ARP表项对发往VM1的报文进行转发处理。
参见图7,图7为本申请实施例提供的一种报文处理方法的示例的流程图,本申请实施例以该方法应用于图1中的VTEP和GW设备为例进行说明,该方法可以包括以下步骤:
S701:当接收到指示AC1的接入方式发生改变的信息时,VTEP在记录的AC与VM的对应关系中,确定AC1对应的VM1,并对预设的协议报文进行VXLAN封装,得到目标报文。
其中,所述信息中携带有目标接入方式的标识,目标接入方式的标识表示VLAN接入方式。目标报文的VXLAN报文头中第一预设字段为VM1的标识、第二预设字段为空、第三预设字段为预设的更新提醒标志。
S702:VTEP向GW设备发送目标报文。
S703:GW设备判定目标报文中携带有预设的更新提醒标志,解析目标报文的第一预设字段,得到VM1的标识,判定目标报文的第二预设字段为空,将与VM1对应的ARP表项中的Tag修改为空,并根据更新后的ARP表项对发往VM1的报文进行转发处理。
由以上示例可见,基于本申请实施例的报文处理方法,当接收到指示AC1的接入方式发生改变的信息时,VTEP可以在记录的AC与VM的对应关系中,确定AC1对应的VM1,根据VM1的标识、目标接入方式的标识和预设的更新提醒标志,生成目标报文,并发送至GW设备。GW设备判定目标报文中携带有预设的更新提醒标志,GW设备可以根据目标报文更新ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。基于上述处理,当VTEP检测到AC1的接入方式发生变化时,可以及时提醒GW设备更新ARP表项,使得GW设备可以根据更新后的ARP表项对报文进行转发处理,进而避免网络业务中断。
与图2的方法实施例相对应,参见图8,图8为本申请实施例提供的一种报文处理装置的结构图,该装置应用于VXLAN中的VTEP,VXLAN还包括 GW设备,该装置包括:
确定模块801,用于当接收到指示第一接入电路AC的接入方式发生改变的信息时,在记录的AC与虚拟机VM的对应关系中,确定第一AC对应的第一VM,其中,所述信息中携带有目标接入方式的标识;
生成模块802,用于根据第一VM的标识、目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文;
发送模块803,用于向GW设备发送更新提醒报文,以使GW设备根据更新提醒报文更新地址解析协议ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
可选的,生成模块802,具体用于如果目标接入方式的标识表示以太网Ethernet接入方式,当接收到第一VM发送的数据报文时,对数据报文进行VXLAN封装,得到更新提醒报文,其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为所述信息中携带的目标标签Tag、第三预设字段为更新提醒标志;
如果目标接入方式的标识表示虚拟局域网VLAN接入方式,当接收到第一VM发送的数据报文时,对数据报文进行VXLAN封装,得到更新提醒报文,其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为空、第三预设字段为更新提醒标志。
可选的,生成模块802,具体用于如果目标接入方式的标识表示Ethernet接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文,其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为所述信息中携带的目标Tag、第三预设字段为更新提醒标志;
如果目标接入方式的标识表示VLAN接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文,其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为空、第三预设字段为更新提醒标志。
与图3的方法实施例相对应,参见图9,图9为本申请实施例提供的一种报文处理装置的结构图,该装置应用于VXLAN中的GW设备,VXLAN还 包括VTEP,该装置包括:
判断模块901,用于当接收到VTEP发送的报文时,判断报文中是否携带有预设的更新提醒标志;
更新模块902,用于如果报文中携带有更新提醒标志,根据报文更新地址解析协议ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
可选的,更新模块902,具体用于解析报文的第一预设字段,得到第一虚拟机VM的标识;
解析报文的第二预设字段;
如果第二预设字段为空,将与第一VM对应的ARP表项中的Tag设置为空;
如果第二预设字段不为空,获取第二预设字段携带的目标Tag,将与第一VM对应的ARP表项中的Tag设置为目标Tag。
由以上可见,基于本申请实施例的报文处理装置,当接收到指示第一AC的接入方式发生改变的信息时,VTEP可以在记录的AC与VM的对应关系中,确定第一AC对应的第一VM,根据第一VM的标识、目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文,并发送至GW设备。GW设备可以根据更新提醒报文更新ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。基于上述处理,当VTEP检测到AC的接入方式发生变化时,可以及时提醒GW设备更新ARP表项,使得GW设备可以根据更新后的ARP表项对报文进行转发处理,进而避免网络业务中断。
基于相同的技术构思,如图10所示,本申请实施例还提供了一种VTEP,该VTEP所属的VXLAN还包括GW设备,该VTEP包括:处理器1001和机器可读存储介质1002,机器可读存储介质1002存储有能够被处理器1001执行的机器可执行指令,机器可执行指令包括:确定指令1021、生成指令1022、发送指令1023;
处理器被确定指令1021促使实现:当接收到指示第一AC的接入方式发生改变的信息时,在记录的AC与VM的对应关系中,确定第一AC对应的第 一VM,其中,所述信息中携带有目标接入方式的标识;
处理器被生成指令1022促使实现:根据第一VM的标识、目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文;
处理器被发送指令1023促使实现:向GW设备发送更新提醒报文,以使GW设备根据更新提醒报文更新ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
在本申请的一个可选实施例中,生成指令1022具体促使处理器:
如果目标接入方式的标识表示Ethernet接入方式,当接收到第一VM发送的数据报文时,对数据报文进行VXLAN封装,得到更新提醒报文,其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为所述信息中携带的目标Tag、第三预设字段为更新提醒标志;
如果目标接入方式的标识表示VLAN接入方式,当接收到第一VM发送的数据报文时,对数据报文进行VXLAN封装,得到更新提醒报文,其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为空、第三预设字段为更新提醒标志。
在本申请的一个可选实施例中,生成指令1022具体促使处理器:
如果目标接入方式的标识表示Ethernet接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文,其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为所述信息中携带的目标Tag、第三预设字段为更新提醒标志;
如果目标接入方式的标识表示VLAN接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文,其中,更新提醒报文的VXLAN报文头中第一预设字段为第一VM的标识、第二预设字段为空、第三预设字段为更新提醒标志。
如图10所示,VTEP还可以包括系统总线1003。通过系统总线1003,处理器1001、机器可读存储介质1002之间完成通信交互。系统总线1003可以是外设部件互连标准(英文:Peripheral Component Interconnect,简称:PCI) 总线或扩展工业标准结构(英文:Extended Industry Standard Architecture,简称:EISA)总线等。该系统总线1003可以分为地址总线、数据总线、控制总线等。
机器可读存储介质1002可以包括随机存取存储器(英文:Random Access Memory,简称:RAM),也可以包括非易失性存储器(英文:Non-Volatile Memory,简称:NVM),例如至少一个磁盘存储器。另外,机器可读存储介质1002还可以是至少一个位于远离前述处理器1001的存储装置。
处理器1001可以是通用处理器,包括中央处理器(英文:Central Processing Unit,简称:CPU)、网络处理器(英文:Network Processor,简称:NP)等;还可以是数字信号处理器(英文:Digital Signal Processing,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)、现场可编程门阵列(英文:Field-Programmable Gate Array,简称:FPGA)或其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
基于相同的技术构思,如图11所示,本申请实施例还提供了一种GW设备,该GW设备所属的VXLAN还包括VTEP,该GW设备包括:处理器1101和机器可读存储介质1102,机器可读存储介质1102存储有能够被处理器1101执行的机器可执行指令,机器可执行指令包括:判断指令1121、更新指令1122;
处理器被判断指令1121促使实现:当接收到VTEP发送的报文时,判断报文中是否携带有预设的更新提醒标志;
处理器被更新指令1122促使实现:如果报文中携带有更新提醒标志,根据报文更新地址解析协议ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
在本申请的一个可选实施例中,更新指令1122具体促使处理器:
解析报文的第一预设字段,得到第一虚拟机VM的标识;
解析报文的第二预设字段;
如果第二预设字段为空,将与第一VM对应的ARP表项中的标签Tag设置为空;
如果第二预设字段不为空,获取第二预设字段携带的目标Tag,将与第一VM对应的ARP表项中的Tag设置为目标Tag。
如图11所示,GW设备还可以包括系统总线1103。通过系统总线1103,处理器1101、机器可读存储介质1102之间完成通信交互。系统总线1103可以是PCI总线或EISA总线等。该系统总线1103可以分为地址总线、数据总线、控制总线等。
机器可读存储介质1102可以包括RAM,也可以包括NVM,例如至少一个磁盘存储器。另外,机器可读存储介质1102还可以是至少一个位于远离前述处理器1101的存储装置。
处理器1101可以是通用处理器,包括CPU、NP等;还可以是DSP、ASIC、FPGA或其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现上述任一应用于VTEP的报文处理方法的步骤。
在本申请提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,计算机程序被处理器执行时实现上述任一应用于GW设备的报文处理方法的步骤。
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一应用于VTEP的报文处理方法。
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一应用于GW设备的报文处理方法。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或 者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
可选的,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质及计算机程序产品实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (12)

  1. 一种报文处理方法,所述方法应用于可扩展虚拟局域网络VXLAN中的可扩展虚拟局域网络隧道端点VTEP,所述VXLAN还包括网关GW设备,所述方法包括:
    当接收到指示第一接入电路AC的接入方式发生改变的信息时,在记录的AC与虚拟机VM的对应关系中,确定所述第一AC对应的第一VM,其中,所述信息中携带有目标接入方式的标识;
    根据所述第一VM的标识、所述目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文;
    向所述GW设备发送所述更新提醒报文,以使所述GW设备根据所述更新提醒报文更新地址解析协议ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
  2. 根据权利要求1所述的方法,所述根据所述第一VM的标识、所述目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文,包括:
    如果所述目标接入方式的标识表示以太网Ethernet接入方式,当接收到所述第一VM发送的数据报文时,对所述数据报文进行VXLAN封装,得到更新提醒报文,其中,所述更新提醒报文的VXLAN报文头中第一预设字段为所述第一VM的标识、第二预设字段为所述信息中携带的目标标签Tag、第三预设字段为所述更新提醒标志;
    如果所述目标接入方式的标识表示虚拟局域网VLAN接入方式,当接收到所述第一VM发送的数据报文时,对所述数据报文进行VXLAN封装,得到更新提醒报文,其中,所述更新提醒报文的VXLAN报文头中第一预设字段为所述第一VM的标识、第二预设字段为空、第三预设字段为所述更新提醒标志。
  3. 根据权利要求1所述的方法,所述根据所述第一VM的标识、所述目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文,包括:
    如果所述目标接入方式的标识表示Ethernet接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文,其中,所述更新提醒报文的VXLAN 报文头中第一预设字段为所述第一VM的标识、第二预设字段为所述信息中携带的目标Tag、第三预设字段为所述更新提醒标志;
    如果所述目标接入方式的标识表示VLAN接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文,其中,所述更新提醒报文的VXLAN报文头中第一预设字段为所述第一VM的标识、第二预设字段为空、第三预设字段为所述更新提醒标志。
  4. 一种报文处理方法,所述方法应用于可扩展虚拟局域网络VXLAN中的网关GW设备,所述VXLAN还包括可扩展虚拟局域网络隧道端点VTEP,所述方法包括:
    当接收到所述VTEP发送的报文时,判断所述报文中是否携带有预设的更新提醒标志;
    如果所述报文中携带有所述更新提醒标志,根据所述报文更新地址解析协议ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
  5. 根据权利要求4所述的方法,所述根据所述报文更新ARP表项,包括:
    解析所述报文的第一预设字段,得到第一虚拟机VM的标识;
    解析所述报文的第二预设字段;
    如果所述第二预设字段为空,将与所述第一VM对应的ARP表项中的标签Tag设置为空;
    如果所述第二预设字段不为空,获取所述第二预设字段携带的目标Tag,将与所述第一VM对应的ARP表项中的Tag设置为所述目标Tag。
  6. 一种可扩展虚拟局域网络隧道端点VTEP,所述VTEP所属的可扩展虚拟局域网络VXLAN还包括网关GW设备,所述VTEP包括:处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述机器可执行指令包括:确定指令、生成指令、发送指令;
    所述处理器被所述确定指令促使实现:当接收到指示第一接入电路AC的接入方式发生改变的信息时,在记录的AC与虚拟机VM的对应关系中, 确定所述第一AC对应的第一VM,其中,所述信息中携带有目标接入方式的标识;
    所述处理器被所述生成指令促使实现:根据所述第一VM的标识、所述目标接入方式的标识和预设的更新提醒标志,生成更新提醒报文;
    所述处理器被所述发送指令促使实现:向所述GW设备发送所述更新提醒报文,以使所述GW设备根据所述更新提醒报文更新地址解析协议ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
  7. 根据权利要求6所述的VTEP,所述生成指令具体促使所述处理器:
    如果所述目标接入方式的标识表示以太网Ethernet接入方式,当接收到所述第一VM发送的数据报文时,对所述数据报文进行VXLAN封装,得到更新提醒报文,其中,所述更新提醒报文的VXLAN报文头中第一预设字段为所述第一VM的标识、第二预设字段为所述信息中携带的目标标签Tag、第三预设字段为所述更新提醒标志;
    如果所述目标接入方式的标识表示虚拟局域网VLAN接入方式,当接收到所述第一VM发送的数据报文时,对所述数据报文进行VXLAN封装,得到更新提醒报文,其中,所述更新提醒报文的VXLAN报文头中第一预设字段为所述第一VM的标识、第二预设字段为空、第三预设字段为所述更新提醒标志。
  8. 根据权利要求6所述的VTEP,所述生成指令具体促使所述处理器:
    如果所述目标接入方式的标识表示Ethernet接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文,其中,所述更新提醒报文的VXLAN报文头中第一预设字段为所述第一VM的标识、第二预设字段为所述信息中携带的目标Tag、第三预设字段为所述更新提醒标志;
    如果所述目标接入方式的标识表示VLAN接入方式,对预设的协议报文进行VXLAN封装,得到更新提醒报文,其中,所述更新提醒报文的VXLAN报文头中第一预设字段为所述第一VM的标识、第二预设字段为空、第三预设字段为所述更新提醒标志。
  9. 一种网关GW设备,所述GW设备所属的可扩展虚拟局域网络VXLAN还包括可扩展虚拟局域网络隧道端点VTEP,所述GW设备包括:处理器和机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令,所述机器可执行指令包括:判断指令、更新指令;
    所述处理器被所述判断指令促使实现:当接收到所述VTEP发送的报文时,判断所述报文中是否携带有预设的更新提醒标志;
    所述处理器被所述更新指令促使实现:如果所述报文中携带有所述更新提醒标志,根据所述报文更新地址解析协议ARP表项,并根据更新后的ARP表项对接收到的报文进行转发处理。
  10. 根据权利要求9所述的GW设备,所述更新指令具体促使所述处理器:
    解析所述报文的第一预设字段,得到第一虚拟机VM的标识;
    解析所述报文的第二预设字段;
    如果所述第二预设字段为空,将与所述第一VM对应的ARP表项中的标签Tag设置为空;
    如果所述第二预设字段不为空,获取所述第二预设字段携带的目标Tag,将所述与所述第一VM对应的ARP表项中的Tag设置为所述目标Tag。
  11. 一种机器可读存储介质,存储有机器可执行指令,在被处理器调用和执行时,所述机器可执行指令促使所述处理器:实现权利要求1-3任一所述的方法步骤。
  12. 一种机器可读存储介质,存储有机器可执行指令,在被处理器调用和执行时,所述机器可执行指令促使所述处理器:实现权利要求4-5任一所述的方法步骤。
PCT/CN2019/113293 2018-10-26 2019-10-25 报文处理 WO2020083380A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811260264.5 2018-10-26
CN201811260264.5A CN109450767B (zh) 2018-10-26 2018-10-26 一种报文处理方法和装置

Publications (1)

Publication Number Publication Date
WO2020083380A1 true WO2020083380A1 (zh) 2020-04-30

Family

ID=65548726

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/113293 WO2020083380A1 (zh) 2018-10-26 2019-10-25 报文处理

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450767B (zh) * 2018-10-26 2020-06-12 新华三技术有限公司 一种报文处理方法和装置
CN111935013B (zh) * 2020-09-17 2021-01-08 南京中兴软件有限责任公司 流量转发控制方法及装置、流量转发方法及芯片、交换机

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160285773A1 (en) * 2013-04-19 2016-09-29 International Business Machines Corporation Overlay network priority inheritance
CN107547349A (zh) * 2017-07-31 2018-01-05 新华三技术有限公司 一种虚拟机迁移的方法及装置
CN107783815A (zh) * 2016-08-30 2018-03-09 华为技术有限公司 一种确定虚拟机迁移的方法和装置
CN108075956A (zh) * 2016-11-16 2018-05-25 新华三技术有限公司 一种数据处理方法和装置
CN109450767A (zh) * 2018-10-26 2019-03-08 新华三技术有限公司 一种报文处理方法和装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9130775B2 (en) * 2013-07-10 2015-09-08 Cisco Technology, Inc. Support for virtual extensible local area network segments across multiple data center sites
CN107612808B (zh) * 2017-09-13 2020-09-08 新华三技术有限公司 隧道建立方法和装置
CN107819677B (zh) * 2017-10-26 2020-03-06 新华三技术有限公司 一种报文转发方法及装置
CN108322338B (zh) * 2018-01-23 2021-02-26 新华三技术有限公司 一种广播抑制方法和vtep设备
CN108337158B (zh) * 2018-01-23 2020-12-04 新华三技术有限公司 单播报文转发方法和装置
CN108199968B (zh) * 2018-03-30 2020-12-25 新华三技术有限公司 路由处理方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160285773A1 (en) * 2013-04-19 2016-09-29 International Business Machines Corporation Overlay network priority inheritance
CN107783815A (zh) * 2016-08-30 2018-03-09 华为技术有限公司 一种确定虚拟机迁移的方法和装置
CN108075956A (zh) * 2016-11-16 2018-05-25 新华三技术有限公司 一种数据处理方法和装置
CN107547349A (zh) * 2017-07-31 2018-01-05 新华三技术有限公司 一种虚拟机迁移的方法及装置
CN109450767A (zh) * 2018-10-26 2019-03-08 新华三技术有限公司 一种报文处理方法和装置

Also Published As

Publication number Publication date
CN109450767B (zh) 2020-06-12
CN109450767A (zh) 2019-03-08

Similar Documents

Publication Publication Date Title
US10778532B2 (en) Overlay network movement operations
US10541836B2 (en) Virtual gateways and implicit routing in distributed overlay virtual environments
WO2018059284A1 (zh) 一种数据传输的方法及网络设备
US10103998B2 (en) Overlay network priority inheritance
US9065766B2 (en) Medium for storing packet conversion program, packet conversion apparatus and packet conversion method
US8755377B2 (en) Facilitating operation of one or more virtual networks
US8982707B2 (en) Interoperability of data plane based overlays and control plane based overlays in a network environment
WO2016173271A1 (zh) 报文处理方法、设备及系统
US10187274B1 (en) Flow sampling with dynamic sampling threshold adjustment
EP3282667A1 (en) Method, device and system for authorizing service of user
WO2021082879A1 (zh) 传输组播报文的方法和相关装置
US10404648B2 (en) Addressing for customer premises LAN expansion
CN110943901A (zh) 一种报文转发方法、装置、设备和存储介质
WO2020083380A1 (zh) 报文处理
EP3618365A1 (en) Packet forwarding
US11102115B2 (en) Forwarding packet
WO2019033964A1 (zh) 一种传输报文的方法、转发设备、控制器及系统
CN107547665A (zh) 一种dhcp地址分配的方法、设备及系统
US9203741B1 (en) Managing multi-customer network traffic using lower layer protocol attributes
WO2020043106A1 (zh) 通信方法和通信设备
US9749290B2 (en) Distributing and virtualizing a network address translation (NAT)
CN108471374B (zh) 数据报文的转发方法及装置
WO2023273957A1 (zh) 算力发布方法、算力更新方法及装置
CN108282404B (zh) 一种路由生成方法、装置及系统
WO2022166979A1 (zh) 报文处理方法、客户端设备、服务器端设备和计算机可读介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19875037

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19875037

Country of ref document: EP

Kind code of ref document: A1