CN108809793A - A kind of data transmission method, apparatus and system - Google Patents

A kind of data transmission method, apparatus and system Download PDF

Info

Publication number
CN108809793A
CN108809793A CN201710286724.0A CN201710286724A CN108809793A CN 108809793 A CN108809793 A CN 108809793A CN 201710286724 A CN201710286724 A CN 201710286724A CN 108809793 A CN108809793 A CN 108809793A
Authority
CN
China
Prior art keywords
packet header
physical machine
message
vtep
outer layer
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.)
Pending
Application number
CN201710286724.0A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710286724.0A priority Critical patent/CN108809793A/en
Publication of CN108809793A publication Critical patent/CN108809793A/en
Pending legal-status Critical Current

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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

A kind of data transmission method of the embodiment of the present application offer, apparatus and system, it is related to the communications field, the process of encapsulation/decapsulation can be optimized, shortens the time needed for encapsulation/decapsulation, the efficiency of encapsulation/decapsulation is improved, and then improves the efficiency of data transmission.The data transmission method includes:First physical machine obtains the first message that the second physical machine is sent;First physical machine confirms that the first message is virtual expansible LAN VXLAN messages, wherein VXLAN messages include at least the first packet header and the second message;First physical machine will move preset length after the pointer of the first message, and obtain the second message, wherein preset length is the length in the first packet header.

Description

A kind of data transmission method, apparatus and system
Technical field
The invention relates to the communications field more particularly to a kind of data transmission method, apparatus and systems.
Background technology
Virtual expansible LAN (Virtual eXtensible Local Area Network, VXLAN) is virtual office The extension of domain net (Virtual Local Area Network, VLAN) is a kind of to seal internal layer message with three layer protocols The network virtualization technology of dress, can be extended double layer network in three-layer network so that user builds on three-layer network Double layer network.Network isolation function may be implemented by VXLAN so that be provided with abundance in the cloud environment of extensive multi-tenant Virtual network partitioned resources.Wherein, Network Isolation refer to two or more computer or network disconnecting On the basis of the information exchange realized and resource-sharing.
A kind of existing VXLAN messages as shown in Figure 1, be packaged with the packet header VXLAN (also known as successively outside internal layer message VXLAN header), the packet header outer users datagram protocol (User Datagram Protocol, UDP) (also known as Outer UDP header), interconnection protocol between VXLAN termination point of a tunnel (VXLAN Tunneling End Point, VTEP) outer layer network Packet header (Internet Protocol, IP) (also known as VTEP Outer IP header) and VTEP outer layer media access controls Layer packet header (Media Access Control, MAC) (also known as VTEP Outer MAC header).Sending upstream data When, physical machine needs are packaged data according to VXLAN message structures shown in FIG. 1;When receiving downlink data, physical machine Also data are decapsulated according to VXLAN message structures shown in FIG. 1.
However, existing data when being packaged/decapsulating, are required for by corresponding protocol layer filling/removal pair The packet header for answering agreement causes encapsulation/decapsulation to occupy longer time, reduces the efficiency of data transmission.
Invention content
The embodiment of the present application provides a kind of data transmission method, apparatus and system, can to the process of encapsulation/decapsulation into Row optimization, shortens the time needed for encapsulation/decapsulation, improves the efficiency of encapsulation/decapsulation, and then improves the effect of data transmission Rate.
In order to achieve the above objectives, the embodiment of the present application adopts the following technical scheme that:
In a first aspect, the embodiment of the present application provides a kind of data transmission method, which includes:First, One physical machine obtains the first message that the second physical machine is sent;Secondly, the first physical machine confirms that the first message is VXLAN messages (including at least the first packet header and the second message);Finally, the first physical machine will move preset length after the pointer of the first message, and obtain To the second message, wherein preset length is the length in the first packet header.
The first physical machine in the embodiment of the present application can identify whether the first message that the second physical machine is sent is VXLAN Message, and in the case where the first message is VXLAN messages, preset length will be moved after the pointer of the first message, and obtain second Message.With existing data when being decapsulated, it is required for corresponding to the packet header of agreement by corresponding protocol layer filling/removal Method compare, the first physical machine in the embodiment of the present application can optimize the process of decapsulation, directly by first report It is moved after the pointer of text, to the first packet header of removal, shortens the time needed for decapsulation, improve the efficiency of decapsulation, Jin Erti The high efficiency of data transmission.
In the first possible realization method of first aspect, the first packet header include the packet header VXLAN, the packet header outer layer UDP, The packet header outer layer IP VTEP and the packet header VTEP outer layer MAC.First physical machine confirms that the first message is the method for VXLAN messages, specifically It may comprise steps of:First physical machine judges whether the protocol type in the packet header VTEP outer layer MAC is IP agreement;If outside VTEP The protocol type in the packet header layer MAC is IP agreement, then the first physical machine judges whether the protocol type in the packet header VTEP outer layer IP is UDP Agreement;If the protocol type in the packet header VTEP outer layer IP is udp protocol, the first physical machine judges the destination in the packet header outer layer UDP Slogan whether the destination slogan for being VXLAN;If the destination slogan in the packet header outer layer UDP is the destination slogan of VXLAN, the One physical machine confirms that the first message is VXLAN messages.
In second of possible realization method of first aspect, the first packet header include the packet header VXLAN, the packet header outer layer UDP, The packet header VTEP outer layer IP, the VTEP outer layers virtual LAN packet header (Virtual Local Area Network, VLAN) and VTEP The packet header outer layer MAC.First physical machine confirms that the first message is the method for VXLAN messages, can specifically include following steps:First Physical machine judges whether the protocol type in the packet header VTEP outer layer MAC is VLAN agreements;If the protocol type in the packet header VTEP outer layer MAC For VLAN agreements, then the first physical machine judges whether the protocol type in VTEP outside VLANs packet header is IP agreement;If VTEP outer layers The protocol type in the packet header VLAN is IP agreement, then the first physical machine judges whether the protocol type in the packet header VTEP outer layer IP is UDP Agreement;If the protocol type in the packet header VTEP outer layer IP is udp protocol, the first physical machine judges the destination in the packet header outer layer UDP Slogan whether the destination slogan for being VXLAN;If the destination slogan in the packet header outer layer UDP is the destination slogan of VXLAN, the One physical machine confirms that the first message is VXLAN messages.
In the third possible realization method of first aspect, the first physical machine includes at least one physical network card.This Applying for the data transmission method that embodiment provides can also include:First, the first physical machine receives the by the first physical network card The 4th message that three physical machines are sent, wherein the first physical network card is any one Physical Network at least one physical network card Card;Secondly, the first physical machine handles the 4th message according to preset rules;Finally, the first physical machine by the first physical network card to 4th physical machine sends treated the 4th message.As it can be seen that the first physical machine can also forward the 4th that other physical machines are sent Message, and the 4th message is that the first physical machine is sended and received by the first physical network card, realize message it is same into Go out together, and then realizes the high-performance forwarding of data.
Second aspect, the embodiment of the present application provide a kind of data transmission method, which includes:First, Two physical machines obtain third message;Secondly, the second physical machine is from address resolution protocol (Address Resolution Protocol, ARP) MAC Address corresponding with third message is obtained in cache table;Again, the second physical machine is according to MAC Address, The packet header VTEP outer layer MAC is added for third message, generates the first message, wherein the first message is VXLAN messages;Finally, second Physical machine sends the first message to the first physical machine.
The second physical machine in the embodiment of the present application can obtain third message and MAC Address corresponding with third message, And the packet header VTEP outer layer MAC is added for third message, the first message is generated, subsequent second physical machine can be sent out to the first physical machine Send the first message.With existing data when being packaged, it is required for corresponding to agreement by corresponding protocol layer filling/removal The method in packet header is compared, and the second physical machine can optimize the process of encapsulation, directly from address ARP cache table obtain with The corresponding MAC Address of third message shortens the time needed for encapsulation, improves the efficiency of encapsulation, and then improve data transmission Efficiency.
In the first possible realization method of second aspect, the method that the second physical machine obtains third message, specifically It may comprise steps of:Second physical machine obtains the second message;Second physical machine is that the second message adds VXLAN packets successively The packet header interconnection protocol IP between head, the packet header outer users datagram protocol UDP, VTEP outer layer networks generates third message;Alternatively, Second physical machine is that the second message adds the packet header VXLAN, the packet header outer layer UDP, the packet header outer layer IP VTEP and VTEP outer layer void successively The quasi- packet header LAN VLAN, generates third message.
In second of possible realization method of second aspect, the second physical machine is obtained from arp cache table and third The method of the corresponding MAC Address of message, can specifically include:Second physical machine is according to the packet header VTEP outer layer IP, from arp cache table It is middle to obtain MAC Address corresponding with the packet header outer layer IP VTEP.
The first physical machine or the second physical machine in the embodiment of the present application both can be the sending ending equipment of data, can also For the receiving device of data, therefore, data transmission method provided by the embodiments of the present application is being sealed with existing data When dress/decapsulation, the method for being required for the packet header for corresponding to agreement by corresponding protocol layer filling/removal is compared, physics function It is enough that the process of encapsulation/decapsulation is optimized, the time needed for encapsulation/decapsulation is shortened, the effect of encapsulation/decapsulation is improved Rate, and then improve the efficiency of data transmission.
The third aspect, the embodiment of the present application provide a kind of physical machine, which is the first physical machine, which includes Acquisition module, confirmation module and processing module.Specifically, acquisition module, the first message for obtaining the transmission of the second physical machine; Confirmation module, for confirming that the first message that acquisition module is got is virtual expansible LAN VXLAN messages, wherein VXLAN messages include at least the first packet header and the second message;Processing module, for confirming that the first message is in confirmation module After VXLAN messages, preset length will be moved after the pointer of the first message, and obtain the second message, wherein preset length is the first packet The length of head.
In the first possible realization method of the third aspect, the first packet header includes the packet header VXLAN, outer users data The packet header interconnection protocol IP and VTEP outer layers between the packet header datagram protocol UDP, virtual expansible LAN termination point of a tunnel VTEP outer layer networks The packet header MAC layer MAC.Confirmation module, specifically for judging whether the protocol type in the packet header VTEP outer layer MAC is IP Agreement;If the protocol type in the packet header VTEP outer layer MAC be IP agreement, judge the packet header VTEP outer layer IP protocol type whether be Udp protocol;If the protocol type in the packet header VTEP outer layer IP be udp protocol, judge the packet header outer layer UDP destination slogan whether For the destination slogan of VXLAN;If the destination slogan in the packet header outer layer UDP is the destination slogan of VXLAN, the first report is confirmed Text is VXLAN messages.
In second of possible realization method of the third aspect, the first packet header include the packet header VXLAN, the packet header outer layer UDP, The packet header VTEP outer layer IP, the outer layer virtual LAN VLAN packet header VTEP and the packet header VTEP outer layer MAC.Confirmation module is specifically used for Judge whether the protocol type in the packet header VTEP outer layer MAC is VLAN agreements;If the protocol type in the packet header VTEP outer layer MAC is VLAN Agreement then judges whether the protocol type in VTEP outside VLANs packet header is IP agreement;If the protocol class in VTEP outside VLANs packet header Type is IP agreement, then judges whether the protocol type in the packet header VTEP outer layer IP is udp protocol;If the agreement in the packet header VTEP outer layer IP Type is udp protocol, then judge the packet header outer layer UDP destination slogan whether the destination slogan for being VXLAN;If outer layer UDP The destination slogan in packet header is the destination slogan of VXLAN, then confirms that the first message is VXLAN messages.
In the third possible realization method of the third aspect, above-mentioned first physical machine includes at least one Physical Network Card.First physical machine further includes receiving module and sending module.Specifically, receiving module, for being clamped by the first Physical Network Receive the 4th message that third physical machine is sent, wherein the first physical network card is any one object at least one physical network card Manage network interface card;Processing module is additionally operable to the 4th message received according to preset rules, processing receiving module;Sending module, for leading to It crosses the first physical network card and sends processing module treated the 4th message to the 4th physical machine.
The specific descriptions of the embodiment of the present application third aspect and its various realization methods can refer to first aspect and its each Detailed description in kind realization method;Also, the advantageous effect of the third aspect and its various realization methods can refer to first party Advantageous effect analysis in face and its various realization methods, details are not described herein again.
Fourth aspect, the embodiment of the present application provide a kind of physical machine, which is the second physical machine, the physical machine packet Include acquisition module, processing module and sending module.Specifically, acquisition module, for obtaining third message;And from address resolution MAC layer MAC Address corresponding with third message is obtained in agreement arp cache table;Processing module, for according to MAC Address, it is raw for the virtual expansible packet header LAN termination point of a tunnel VTEP outer layer MAC of third message addition that acquisition module is got At the first message, wherein the first message is virtual expansible LAN VXLAN messages;Sending module is used for the first physical machine Send the first message that processing module generates.
In the first possible realization method of fourth aspect, acquisition module is specifically used for obtaining the second message;And Interconnection protocol between the packet header VXLAN, the packet header outer users datagram protocol UDP, VTEP outer layer networks is added successively for the second message The packet header IP generates third message;Alternatively, adding the packet header VXLAN, the packet header outer layer UDP, VTEP outer layer IP packets successively for the second message Head and VTEP outer layer virtual LAN VLANs packet header generate third message.
In second of possible realization method of fourth aspect, acquisition module is specifically used for according to VTEP outer layer IP packets Head obtains MAC Address corresponding with the packet header outer layer IP VTEP from arp cache table.
The specific descriptions of the embodiment of the present application fourth aspect and its various realization methods can refer to second aspect and its each Detailed description in kind realization method;Also, the advantageous effect of fourth aspect and its various realization methods can refer to second party Advantageous effect analysis in face and its various realization methods, details are not described herein again.
5th aspect, the embodiment of the present application also provide a kind of physical machine, which is the first physical machine, the physical machine packet Include memory, processor, communication interface and system bus;Memory, processor and communication interface are connected by system bus, are deposited Reservoir is used to execute the computer instruction of memory storage for storing computer instruction, processor, so that the physical machine executes Data transmission method in above-mentioned first aspect or its any one optional realization method.
The specific descriptions of the aspect of the embodiment of the present application the 5th and its various realization methods can refer to first aspect and its each Detailed description in kind realization method;Also, the advantageous effect of the 5th aspect and its various realization methods, can refer to first party Advantageous effect analysis in face and its various realization methods, details are not described herein again.
6th aspect, the embodiment of the present application also provide a kind of physical machine, which is the second physical machine, the physical machine packet Include memory, processor, communication interface and system bus;Memory, processor and communication interface are connected by system bus, are deposited Reservoir is used to execute the computer instruction of memory storage for storing computer instruction, processor, so that the physical machine executes Data transmission method in above-mentioned second aspect or its any one optional realization method.
The specific descriptions of the aspect of the embodiment of the present application the 6th and its various realization methods can refer to second aspect and its each Detailed description in kind realization method;Also, the advantageous effect of the 6th aspect and its various realization methods, can refer to second party Advantageous effect analysis in face and its various realization methods, details are not described herein again.
7th aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer readable storage medium In be stored with instruction;When it runs in physical machine so that the physical machine executes such as above-mentioned first aspect or its any one Data transmission method in optional realization method, or the physical machine is made to execute such as above-mentioned second aspect or its any one Data transmission method in optional realization method.
The specific descriptions of the 7th aspect of the embodiment of the present application and its various realization methods, can refer to first aspect, second Detailed description in aspect and its various realization methods;Also, the advantageous effect of the 7th aspect and its various realization methods, can be with With reference to the advantageous effect analysis in first aspect, second aspect and its various realization methods, details are not described herein again.
Eighth aspect, the embodiment of the present application provides a kind of computer program product including instruction, when the computer program Product in physical machine when running so that the physical machine executes such as above-mentioned first aspect or its any one optional realization method In data transmission method, or the physical machine is executed such as above-mentioned second aspect or its any one optional realization method In data transmission method.
The specific descriptions of the embodiment of the present application eighth aspect and its various realization methods can refer to first aspect, second Detailed description in aspect and its various realization methods;Also, the advantageous effect of eighth aspect and its various realization methods, can be with With reference to the advantageous effect analysis in first aspect, second aspect and its various realization methods, details are not described herein again.
9th aspect, the embodiment of the present application provide a kind of data transmission system, including have such as the third aspect or it is arbitrary A kind of first physical machine in optional realization method, and with such as fourth aspect or its any one optional realization method In the second physical machine;Alternatively, including the first physics having in terms of the such as the 5th or in its any one optional realization method Machine, and with the second physical machine in terms of the such as the 6th or in its any one optional realization method.
The specific descriptions of the 9th aspect of the embodiment of the present application and its various realization methods, can refer to first aspect, second Detailed description in aspect and its various realization methods;Also, the advantageous effect of the 9th aspect and its various realization methods, can be with With reference to the advantageous effect analysis in first aspect, second aspect and its various realization methods, details are not described herein again.
In the embodiment of the present application, the name of above-mentioned physical machine does not constitute equipment or function module itself restriction, in reality During border is realized, these equipment or function module can occur with other titles.If the function of each equipment or function module and The application is similar, belongs within the scope of the application claim and its equivalent technologies.
These aspects or other aspects of the embodiment of the present application in the following description can more straightforwards.
Description of the drawings
Fig. 1 is a kind of existing schematic diagram of VXLAN messages;
Fig. 2 is the structural schematic diagram of data transmission system provided by the embodiments of the present application;
Fig. 3 is the hardware architecture diagram of the physical machine in the embodiment of the present application;
Fig. 4 is the flow diagram of data transmission method provided by the embodiments of the present application;
Fig. 5 (a) is the schematic diagram one of third message provided by the embodiments of the present application;
Fig. 5 (b) is the schematic diagram two of third message provided by the embodiments of the present application;
Fig. 6 (a) is the schematic diagram one of the first message provided by the embodiments of the present application;
Fig. 6 (b) is the schematic diagram two of the first message provided by the embodiments of the present application;
Fig. 7 (a) is physical machine A provided by the embodiments of the present application will move preset length schematic diagram after the pointer of first message One;
Fig. 7 (b) is physical machine A provided by the embodiments of the present application will move preset length schematic diagram after the pointer of first message Two;
Fig. 8 is the schematic diagram for the message that physical machine A provided by the embodiments of the present application forwards the transmission of other physical machines;
Fig. 9 is the structural schematic diagram one of physical machine provided by the embodiments of the present application;
Figure 10 is the structural schematic diagram two of physical machine provided by the embodiments of the present application.
Specific implementation mode
Term "and/or" in the embodiment of the present application, only a kind of incidence relation of description affiliated partner, expression can deposit In three kinds of relationships, for example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.
Term " first ", " second ", " third " in the description and claims of this application and above-mentioned attached drawing and " Four " etc. be for distinguishing different objects, rather than for limiting particular order.
Data transmission method provided by the embodiments of the present application can be applied in VXLAN, since VXLAN maximums can be supported 16000000 quarantine domain, realize the network isolation function in super large network environment.Meanwhile existing physical machine is to VXLAN When message is packaged/decapsulates, be required for corresponding to the packet header of agreement by corresponding protocol layer filling/removal, cause encapsulation/ Decapsulation occupies longer time.Therefore, the embodiment of the present application provides a kind of data transmission method, and physical machine can be to envelope The process of dress/decapsulation optimizes, and shortens the time needed for encapsulation/decapsulation, improves the efficiency of encapsulation/decapsulation, into And improve the efficiency of data transmission.
Data transmission method provided by the embodiments of the present application is applied to data transmission system.Fig. 2 is that the embodiment of the present application carries The structural schematic diagram of the data transmission system of confession.Referring to Fig. 2, which includes at least two physical machines 20, each Pass through network connection between physical machine 20.It can be passed between the adjacent physical machine 20 of any two at least two physical machines 20 Transmission of data.
Physical machine 20 can be wireless terminal, can also be catv terminal.Wireless terminal can refer to providing a user language The equipment of sound and/or data connectivity has the portable equipment of wireless connecting function or is connected to radio modem Other processing equipments.Wireless terminal can be mobile terminal, such as mobile phone (or being " honeycomb " phone) and with mobile whole The computer at end can also be the mobile device of portable pocket, hand-held, built-in computer.
Illustratively, physical machine 20 shown in Fig. 2 is general purpose computing device.
It should be noted that any physical machine 20 in Fig. 2 can be the sending ending equipment of data, or data Receiving device.
With reference to Fig. 3, each component parts of any physical machine 20 in Fig. 2 is specifically introduced.
As shown in figure 3, physical machine 20 includes:Communication interface 30, processor 31, memory 32.Wherein, communication interface 30, It is connected by system bus 33 between processor 31 and memory 32, and completes communication each other.
Communication interface 30 is used for and other equipment or communication, such as other physical machines.
Memory 32 can be used for storing control information, can be used for storage software program and application module, processor 31 are stored in the software program and application module of memory 32 by operation, to execute the various function application of physical machine with And data processing.
Memory 32 can include mainly storing program area 320 and storage data field 321, wherein storing program area 320 can deposit Store up the application program needed for operating system, at least one function;Storage data field 321 can store control information etc..
In the embodiment of the present application, memory 32 may include volatile memory, such as non-volatile dynamic random is deposited Take memory (English:Nonvolatile Random Access Memory, NVRAM), phase change random access memory (English: Phase Change RAM, PRAM), magnetic-resistance random access memory (English:Magnetic Random Access Memory, MRAM) etc.;Memory 32 can also include nonvolatile memory, for example, at least disk memory, an Electrical Erasable Programmable read only memory (English:Electrically Erasable Programmable Read-Only Memory, EEPROM), flush memory device, such as anti-or flash memory (English:NOR flash memory) or anti-and flash memory (English:NAND flash memory).Nonvolatile storage stores the operating system and application program performed by processor 31.Processor 31 is from non- Volatile memory load operating program is stored in memory and by data content in mass storage with data.
Memory 32 can be individually present, and be connected with processor 31 by system bus 33.Memory 32 can also It is integrated with processor 31.
Processor 31 is the control centre of physical machine.Processor 31 utilizes various interfaces and the entire physical machine of connection Various pieces by running or execute the software program being stored in memory 32 and/or application module, and are called and are stored in Data in memory 32 execute the various functions and processing data of physical machine, to physical machine integral monitoring.
Processor 31 can only include central processing unit (English:Central Processing Unit, CPU), it can also It is CPU, digital signal processor (English:Digital Signal Processor, DSP) and communication unit in control core The combination of piece.In the application embodiment, CPU can be single operation core, can also include multioperation core.Specific real In existing, as a kind of embodiment, processor 31 may include one or more CPU, such as the processor 31 in Fig. 3 includes CPU 0 and CPU 1.
System bus 33 can be industry standard architecture (English:Industry Standard Architecture, ISA) bus, external equipment interconnection (English:Peripheral Component Interconnect, PCI) bus or extension work Industry standard architecture (English:Extended Industry Standard Architecture, EISA) bus etc..This is System bus 33 can be divided into address bus, data/address bus, controlling bus etc..For clear explanation in the embodiment of the present application, in Fig. 3 It is middle that various buses are all illustrated as system bus 33.
Fig. 4 is a kind of flow diagram of data transmission method provided by the embodiments of the present application, which can With in application data transmission system shown in Fig. 2.In data transmission system shown in Fig. 2, any physical machine 20 can be number According to sending ending equipment, or the receiving device of data.The embodiment of the present application is with the first physical machine and the second physical machine Between transmission data and the first physical machine be receiving device, the second physical machine is to illustrate for sending ending equipment.In order to Convenient for description, the embodiment of the present application indicates the first physical machine with physical machine A, the second physical machine is indicated with physical machine B.
Referring to Fig. 4, data transmission method provided by the embodiments of the present application includes:
S101, physical machine B obtain third message.
The method that physical machine B obtains third message can be it is following any one:
(1), physical machine B obtain the second message, and for second message add successively the packet header VXLAN, the packet header outer layer UDP and The packet header VTEP outer layer IP generates third message.
(2), physical machine B obtain the second message, and for second message add successively the packet header VXLAN, the packet header outer layer UDP, The packet header outer layer IP VTEP and VTEP outside VLANs packet header generate third message.
The second message in the embodiment of the present application is internal layer message, which can be understood as original message.It is above-mentioned In method (1), the second message is transferred into the ports VXLAN by conventional forwarding process, so that physical machine B utilizes the ends VXLAN Mouthful give out a contract for a project function on virtual switch of increasing income (OpenvSwitch, OVS) and add packet header VXLAN, outer successively for the second message The packet header layer UDP, the packet header VTEP outer layer IP, generate third message.Shown in the schematic diagram of the third message such as Fig. 5 (a).The above method (2) in, the second message is transferred into the ports VXLAN by conventional forwarding process, so that physical machine B utilizes the ports VXLAN Give out a contract for a project function and adds the packet header VXLAN, the packet header outer layer UDP, the packet header outer layer IP VTEP and VTEP successively on OVS for second message Outside VLAN packet header generates third message.Shown in the schematic diagram of the third message such as Fig. 5 (b).
The above method (1) and the above method (2) difference lies in:In method (1), physical machine B is not in VTEP outer layers IP VTEP outside VLANs packet header is added outside packet header;In method (2), physical machine B also added outside the packet header VTEP outer layer IP outside VTEP The packet header layer VLAN.VTEP outside VLANs packet header is implemented for network isolation function.
S102, physical machine B obtain MAC Address corresponding with third message from arp cache table.
Specifically, the method that physical machine B obtains MAC Address corresponding with third message from arp cache table is:Physical machine B obtains MAC Address corresponding with the packet header outer layer IP VTEP according to the packet header VTEP outer layer IP from arp cache table.
It should be noted that the arp cache table can be stored in advance in physical machine B (such as directly configuration exist In the ports VXLAN, or be arranged in the correspondence flow table of OVS), can also be by study obtain (such as when physical machine B receive To other physical machines send message when, can parse to obtain and store MAC Address corresponding with the packet header outer layer IP VTEP, this Shen Please embodiment this is not specifically limited.
Due to storing MAC Address corresponding with the packet header outer layer IP VTEP in arp cache table so that physical machine B can be compared with The MAC Address of message is obtained soon, is shortened the time needed for encapsulation, the efficiency of encapsulation is improved, to improve data transmission Efficiency.
You need to add is that the MAC Address corresponding with the packet header outer layer IP VTEP stored in arp cache table may exist one Fixed life cycle, i.e., only when MAC Address corresponding with the packet header outer layer IP VTEP is unaged, physical machine A can be from ARP The MAC Address of message is obtained in cache table.Certainly, the MAC Address corresponding with the packet header outer layer IP VTEP stored in arp cache table It can also periodically or aperiodically update, to ensure the timeliness of MAC Address corresponding with the packet header outer layer IP VTEP.
S103, physical machine B add the packet header VTEP outer layer MAC according to MAC Address, for third message, generate the first message, In, the first message is VXLAN messages.
If the schematic diagram of third message is above-mentioned Fig. 5 (a), the schematic diagram of the first message is Fig. 6 (a).If third message Schematic diagram be above-mentioned Fig. 5 (b), then the schematic diagram of the first message be Fig. 6 (b).
S104, physical machine B send the first message to physical machine A.
After physical machine B generates the first message, physical machine B sends the first message to physical machine A.
With existing data when being packaged, it is required for corresponding to the packet of agreement by corresponding protocol layer filling/removal The method of head is compared, and physical machine B can optimize the process of encapsulation, acquisition and third directly from address ARP cache table The corresponding MAC Address of message shortens the time needed for encapsulation, improves the efficiency of encapsulation, and then improve the effect of data transmission Rate.
S105, physical machine A obtain the first message that physical machine B is sent.
Specifically, the physical network card of physical machine A can be cut by packet receiving Hook Function (such as netdev_frame_hook) It wins the first place message.
S106, physical machine A confirm that the first message is VXLAN messages, wherein VXLAN messages include at least the first packet header and Second message.
As can be seen from the above description, the first packet header of the first message may include the packet header VXLAN, the packet header outer layer UDP, outside VTEP The layer packet header IP and the packet header VTEP outer layer MAC can also include the packet header VXLAN, the packet header outer layer UDP, the packet header VTEP outer layer IP, VTEP Outside VLAN packet header and the packet header VTEP outer layer MAC.
Include outside the packet header VXLAN, the packet header outer layer UDP, the packet header outer layer IP VTEP and VTEP in the first packet header of the first message In the scene in the packet header layer MAC, physical machine A confirms that the first message is that the method for VXLAN messages can specifically include step S106a- S106g:
S106a, physical machine A judge whether the protocol type in the packet header VTEP outer layer MAC is IP agreement.
If the protocol type in the packet header S106b, VTEP outer layer MAC is not IP agreement, physical machine A confirms that the first message is not VXLAN messages.
If the protocol type in the packet header S106c, VTEP outer layer MAC is IP agreement, physical machine A judges the packet header VTEP outer layer IP Protocol type whether be udp protocol.
If the protocol type in the packet header S106d, VTEP outer layer IP is not udp protocol, physical machine A confirms that the first message is not VXLAN messages.
If the protocol type in the packet header S106e, VTEP outer layer IP is udp protocol, physical machine A judges the packet header outer layer UDP Destination slogan whether the destination slogan for being VXLAN;
If the destination slogan of S106f, the packet header outer layer UDP are not the destination slogan of VXLAN, physical machine A confirms the One message is not VXLAN messages.
If the destination slogan that the destination slogan of S106g, the packet header outer layer UDP are VXLAN, physical machine A confirm first Message is VXLAN messages.
The first packet header include the packet header VXLAN, the packet header outer layer UDP, the packet header VTEP outer layer IP, VTEP outside VLANs packet header and In the scene in the packet header VTEP outer layer MAC, physical machine A confirms that the first message is that the method for VXLAN messages can specifically include step S106h-S106p:
S106h, physical machine A judge whether the protocol type in the packet header VTEP outer layer MAC is VLAN agreements.
If the protocol type in the packet header S106i, VTEP outer layer MAC is not VLAN agreements, physical machine A confirms the first message not For VXLAN messages.
If the protocol type in the packet header S106j, VTEP outer layer MAC is VLAN agreements, physical machine A judges VTEP outside VLANs Whether the protocol type in packet header is IP agreement.
If the protocol type in S106k, VTEP outside VLAN packet header is not IP agreement, physical machine A confirms the first message not For VXLAN messages.
If the protocol type in S106l, VTEP outside VLAN packet header is IP agreement, physical machine A judges VTEP outer layer IP packets Whether the protocol type of head is udp protocol.
If the protocol type in the packet header S106m, VTEP outer layer IP is not udp protocol, physical machine A confirms that the first message is not VXLAN messages.
If the protocol type in the packet header S106n, VTEP outer layer IP is udp protocol, physical machine A judges the packet header outer layer UDP Destination slogan whether the destination slogan for being VXLAN;
If the destination slogan of S106o, the packet header outer layer UDP are not the destination slogan of VXLAN, physical machine A confirms the One message is not VXLAN messages.
If the destination slogan that the destination slogan of S106p, the packet header outer layer UDP are VXLAN, physical machine B confirm first Message is VXLAN messages.
S107, physical machine A will move preset length after the pointer of the first message, and obtain the second message, wherein preset length For the length in the first packet header.
Since physical machine A is in the case where the first message is VXLAN messages, can will be moved after the pointer of the first message default Length so that physical machine A can directly read the second message from pointer.
First packet header of the first message includes the packet header VXLAN, the packet header outer layer UDP, the packet header outer layer IP VTEP and VTEP outer layers In the scene in the packet header MAC, physical machine A will be moved shown in schematic diagram such as Fig. 7 (a) of preset length after the pointer of the first message.First First packet header of message includes the packet header VXLAN, the packet header outer layer UDP, the packet header VTEP outer layer IP, VTEP outside VLANs packet header and VTEP In the scene in the packet header outer layer MAC, physical machine A will be moved shown in schematic diagram such as Fig. 7 (b) of preset length after the pointer of the first message.
Illustratively, the packet header VXLAN is usually 8 bytes, and the packet header outer layer UDP is usually 8 bytes, VTEP outer layer IP packets Head is usually 20 bytes, and VTEP outside VLANs packet header is usually 4 bytes, and the packet header VTEP outer layer MAC is usually 14 bytes. Therefore, if the first packet header includes the packet header VXLAN, the packet header outer layer UDP, the packet header outer layer IP VTEP and the packet header VTEP outer layer MAC, the The length in one packet header is 50 bytes, and physical machine A will move 50 bytes after the pointer of the first message, you can obtain the second message.If the One packet header includes the packet header VXLAN, the packet header outer layer UDP, the packet header VTEP outer layer IP, VTEP outside VLANs packet header and VTEP outer layers MAC Packet header, then the length in the first packet header is 54 bytes, and physical machine A will move 54 bytes after the pointer of the first message, you can obtain second Message.
As can be seen that physical machine A can optimize the process of decapsulation, will directly be moved after the pointer of the first message, To the first packet header of removal, the time needed for decapsulation is shortened, improves the efficiency of decapsulation, and then improve data transmission Efficiency.
Further, the first message that physical machine A is sent in addition to that can receive physical machine B, physical machine A can be also used for turning Send out the message of other physical machines transmission.Specifically, physical machine A includes at least one physical network card, the first physical network card is physics Any one physical network card at least one physical network card included by machine A, in this way, physical machine A passes through the first physical network card The 4th message that physical machine C is sent is received, and according to preset rules, handles the 4th message, then, physical machine A passes through the first object Network interface card is managed to physical machine D the 4th message that sends that treated.
Illustratively, as shown in figure 8, physical machine A includes physical network card a, physical network card b, physical network card c and Physical Network Block d, physical machine A can send and receive message by the same physical network card.Such as the physical network card a of physical machine A can connect It receives and sends a message (shown in solid in such as Fig. 8), the physical network card d of physical machine A can send and receive another report Literary (as indicated by the dotted lines in figure 8) realizes the same into going out of message, and then realizes the high-performance forwarding of data.
In conclusion with existing data when being packaged/decapsulating, be required for by the filling of corresponding protocol layer/ The method in the packet header of the corresponding agreement of removal is compared, the physical machine in the embodiment of the present application can to the process of encapsulation/decapsulation into Row optimization, shortens the time needed for encapsulation/decapsulation, improves the efficiency of encapsulation/decapsulation, and then improves data transmission Efficiency.
The embodiment of the present application provides a kind of physical machine 9, which is the first physical machine, the physical machine 9 for execute with The step performed by the first physical machine (i.e. physical machine B) in upper data transmission method.Physical machine 9 provided by the embodiments of the present application It may include the module corresponding to corresponding steps.
The embodiment of the present application can carry out physical machine 9 according to the above method example division of function module, for example, can be with Corresponding each function divides each function module, and two or more functions can also be integrated in a function module In.The form that hardware had both may be used in above-mentioned integrated module is realized, can also be realized in the form of software function module.This Apply for that in embodiment be schematical, only a kind of division of logic function to the division of module, can have in actual implementation another Outer dividing mode.
In the case where dividing each function module using corresponding each function, Fig. 9 shows involved in above-described embodiment And physical machine 9 a kind of possible structural schematic diagram.As shown in figure 9, physical machine 9 includes acquisition module 10, confirmation module 11 With processing module 12.Acquisition module 10 is used to support the S105 that the physical machine 9 executes in embodiment illustrated in fig. 4;Confirmation module 11 For supporting the physical machine 9 to execute the S106 in embodiment illustrated in fig. 4;Processing module 12 is for supporting the physical machine 9 to execute Fig. 4 S107 in illustrated embodiment.Optionally, physical machine 9 can also include memory module 13, and the memory module 13 is soft for storing Part program and application module.Wherein, all related contents for each step that above method embodiment is related to can be quoted The function of corresponding function module describes, and details are not described herein.
In hardware realization, above-mentioned acquisition module 10 can be the communication interface 30 in above-mentioned Fig. 3, above-mentioned memory module 13 It can be the memory 32 in above-mentioned Fig. 3.Above-mentioned confirmation module 11 and processing module 12 can be the processor in above-mentioned Fig. 3 31.It is no longer described in detail herein.
The embodiment of the present application provides a kind of physical machine.Description based on above-described embodiment, since the first physical machine can be known Whether the first message that other second physical machine is sent is VXLAN messages, and in the case where the first message is VXLAN messages, will Preset length is moved after the pointer of first message, and obtains the second message.With existing data when being decapsulated, be required for through The method for crossing the packet header that corresponding protocol layer filling/removal corresponds to agreement is compared, and the first physical machine can be to the process of decapsulation It optimizes, will directly be moved after the pointer of the first message, to the first packet header of removal, shorten the time needed for decapsulation, carry The efficiency of height decapsulation, and then improve the efficiency of data transmission.
The embodiment of the present application provides a kind of physical machine 10, which is the second physical machine, which is used for Execute the step performed by the second physical machine (i.e. physical machine A) in data above transmission method.It is provided by the embodiments of the present application Physical machine 10 may include the module corresponding to corresponding steps.
The embodiment of the present application can carry out physical machine 10 according to the above method example division of function module, for example, can Each function module is divided with each function of correspondence, two or more functions can also be integrated in a function module In.The form that hardware had both may be used in above-mentioned integrated module is realized, can also be realized in the form of software function module.This Apply for that in embodiment be schematical, only a kind of division of logic function to the division of module, can have in actual implementation another Outer dividing mode.
In the case where dividing each function module using corresponding each function, Figure 10 shows involved in above-described embodiment And physical machine 10 a kind of possible structural schematic diagram.As shown in Figure 10, physical machine 10 includes acquisition module 40, processing module 41 and sending module 42.Acquisition module 40 is used to support the S101 and S102 that the physical machine 10 executes in embodiment illustrated in fig. 4;Place Reason module 41 is used to support the S103 that the physical machine 10 executes in embodiment illustrated in fig. 4;Sending module 42 is for supporting the physics Machine 10 executes the S104 in embodiment illustrated in fig. 4.Optionally, physical machine 10 can also include memory module 43, the memory module 43 for storing software program and application module.Wherein, all related contents for each step that above method embodiment is related to The function description of corresponding function module can be quoted, details are not described herein.
In hardware realization, above-mentioned acquisition module 40 and sending module 42 can be the communication interface 30 in above-mentioned Fig. 3, on It can be the memory 32 in above-mentioned Fig. 3 to state storage unit 43.Above-mentioned processing module 41 can be the processor in above-mentioned Fig. 3 31.It is no longer described in detail herein.
The embodiment of the present application provides a kind of physical machine.The second physical machine of description based on above-described embodiment can obtain third Message and MAC Address corresponding with third message, and the packet header VTEP outer layer MAC is added for third message, the first message is generated, with The second physical machine can send the first message to the first physical machine afterwards.With existing data when being packaged, be required for by The method in the packet header that corresponding protocol layer filling/removal corresponds to agreement is compared, and the second physical machine can carry out the process of encapsulation Optimization obtains MAC Address corresponding with third message directly from address ARP cache table, shortens the time needed for encapsulation, carries The efficiency of height encapsulation, and then improve the efficiency of data transmission.
In the above-described embodiments, all or part of can be come in fact by software, hardware, firmware or its arbitrary combination It is existing.When being realized using software program, can entirely or partly occur 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, entirely Portion is partly generated according to the flow or function described in the embodiment of the present application.The computer can be all-purpose computer, specially With computer, computer network or other programmable devices.The computer instruction can be stored in computer-readable storage In medium, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the meter Calculation machine instruction can from a web-site, computer, server or data center by it is wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, service Device or data center's transmission.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 Magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can as needed and will be upper It states function distribution to be completed by different function modules, i.e., the internal structure of device is divided into different function modules, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to The corresponding process in embodiment of the method is stated, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute Display or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor execute described in each embodiment of the application The all or part of step of method.And storage medium above-mentioned includes:It is flash memory, mobile hard disk, read-only memory, random Access the various media that can store program code such as memory, magnetic disc or CD.
The above, the only specific implementation mode of the application, but the protection domain of the application is not limited thereto, it is any Change or replacement in the technical scope that the application discloses, should all cover within the protection domain of the application.Therefore, this Shen Protection domain please should be based on the protection scope of the described claims.

Claims (15)

1. a kind of data transmission method, which is characterized in that including:
First physical machine obtains the first message that the second physical machine is sent;
First physical machine confirms that first message is virtual expansible LAN VXLAN messages, wherein the VXLAN Message includes at least the first packet header and the second message;
First physical machine will move preset length after the pointer of first message, and obtain second message, wherein institute State the length that preset length is first packet header.
2. data transmission method according to claim 1, which is characterized in that first packet header includes the packet header VXLAN, outer The packet header interconnection protocol IP between the packet header layer User Datagram Protocol UDP, virtual expansible LAN termination point of a tunnel VTEP outer layer networks With the packet header VTEP outer layer MAC layer MAC;
First physical machine confirms that first message is VXLAN messages, specifically includes:
First physical machine judges whether the protocol type in the packet header VTEP outer layers MAC is IP agreement;
If the protocol type in the packet header VTEP outer layers MAC is IP agreement, first physical machine judges the VTEP outer layers Whether the protocol type in the packet header IP is udp protocol;
If the protocol type in the packet header VTEP outer layers IP is udp protocol, first physical machine judges the outer layer UDP packets Head destination slogan whether the destination slogan for being VXLAN;
If the destination slogan in the packet header the outer layer UDP is the destination slogan of VXLAN, described in the first physical machine confirmation First message is the VXLAN messages.
3. data transmission method according to claim 1, which is characterized in that first packet header includes the packet header VXLAN, outer The packet header layer UDP, the packet header VTEP outer layer IP, the outer layer virtual LAN VLAN packet header VTEP and the packet header VTEP outer layer MAC;
First physical machine confirms that first message is VXLAN messages, specifically includes:
First physical machine judges whether the protocol type in the packet header VTEP outer layers MAC is VLAN agreements;
If the protocol type in the packet header VTEP outer layers MAC is the VLAN agreements, described in the first physical machine judgement Whether the protocol type in VTEP outside VLANs packet header is IP agreement;
If the protocol type in VTEP outside VLANs packet header is IP agreement, first physical machine judges the VTEP outer layers Whether the protocol type in the packet header IP is udp protocol;
If the protocol type in the packet header VTEP outer layers IP is udp protocol, first physical machine judges the outer layer UDP packets Head destination slogan whether the destination slogan for being VXLAN;
If the destination slogan in the packet header the outer layer UDP is the destination slogan of VXLAN, described in the first physical machine confirmation First message is the VXLAN messages.
4. a kind of data transmission method, which is characterized in that including:
Second physical machine obtains third message;
Second physical machine obtains media interviews control corresponding with the third message from Address Resolution Protocol ARP cache table Preparative layer MAC Address;
Second physical machine is according to the MAC Address, for the virtual expansible LAN termination point of a tunnel of third message addition The packet header VTEP outer layer MAC generates the first message, wherein first message is virtual expansible LAN VXLAN messages;
Second physical machine sends first message to the first physical machine.
5. data transmission method according to claim 4, which is characterized in that second physical machine obtains third message, It specifically includes:
Second physical machine obtains the second message;
Second physical machine be second message add successively the packet header VXLAN, the packet header outer users datagram protocol UDP, The packet header interconnection protocol IP between VTEP outer layer networks, generates the third message;Alternatively, second physical machine is second report Text adds the packet header VXLAN, the packet header the outer layer UDP, the packet header VTEP outer layers IP and VTEP outer layer virtual local areas successively The packet header VLAN is netted, the third message is generated.
6. data transmission method according to claim 5, which is characterized in that second physical machine is from arp cache table MAC Address corresponding with the third message is obtained, is specifically included:
Second physical machine obtains and the VTEP outer layers according to the packet header VTEP outer layers IP from the arp cache table The corresponding MAC Address in the packet header IP.
7. a kind of physical machine, which is characterized in that the physical machine is the first physical machine, and the physical machine includes acquisition module, really Recognize module and processing module;
The acquisition module, the first message for obtaining the transmission of the second physical machine;
The confirmation module, for confirming that first message that the acquisition module is got is virtual expansible LAN VXLAN messages, wherein the VXLAN messages include at least the first packet header and the second message;
The processing module, for after the confirmation module confirms first message for VXLAN messages, described first to be reported Preset length is moved after the pointer of text, and obtains second message, wherein the preset length is the length in first packet header Degree.
8. physical machine according to claim 7, which is characterized in that first packet header includes the packet header VXLAN, outer users The packet header interconnection protocol IP and VTEP between the packet header datagram protocol UDP, virtual expansible LAN termination point of a tunnel VTEP outer layer networks The packet header outer layer MAC layer MAC;
The confirmation module, specifically for judging whether the protocol type in the packet header VTEP outer layers MAC is IP agreement;If described The protocol type in the packet header VTEP outer layer MAC is IP agreement, then judges whether the protocol type in the packet header VTEP outer layers IP is UDP Agreement;If the protocol type in the packet header VTEP outer layers IP is udp protocol, the destination interface in the packet header the outer layer UDP is judged Number whether the destination slogan for being VXLAN;If the destination slogan in the packet header the outer layer UDP is the destination slogan of VXLAN, Confirm that first message is the VXLAN messages.
9. physical machine according to claim 7, which is characterized in that first packet header includes the packet header VXLAN, outer layer UDP Packet header, the packet header VTEP outer layer IP, the outer layer virtual LAN VLAN packet header VTEP and the packet header VTEP outer layer MAC;
The confirmation module, specifically for judging whether the protocol type in the packet header VTEP outer layers MAC is VLAN agreements;If institute The protocol type for stating the packet header VTEP outer layer MAC is the VLAN agreements, then judges the protocol class in VTEP outside VLANs packet header Whether type is IP agreement;If the protocol type in VTEP outside VLANs packet header is IP agreement, the VTEP outer layers IP is judged Whether the protocol type in packet header is udp protocol;If the protocol type in the packet header VTEP outer layers IP is udp protocol, institute is judged State the packet header outer layer UDP destination slogan whether the destination slogan for being VXLAN;If the destination interface in the packet header the outer layer UDP Number be VXLAN destination slogan, then confirm first message be the VXLAN messages.
10. a kind of physical machine, which is characterized in that the physical machine is the second physical machine, and the physical machine includes acquisition module, place Manage module and sending module;
The acquisition module, for obtaining third message;And it is obtained and the third from Address Resolution Protocol ARP cache table The corresponding MAC layer MAC Address of message;
The processing module, for according to the MAC Address, the third message addition got for the acquisition module to be empty Intend the expansible packet header LAN termination point of a tunnel VTEP outer layer MAC, generate the first message, wherein first message is virtually may be used Extend LAN VXLAN messages;
The sending module, for sending first message that the processing module generates to the first physical machine.
11. physical machine according to claim 10, which is characterized in that
The acquisition module is specifically used for obtaining the second message;And packet header VXLAN, outer is added successively for second message The packet header interconnection protocol IP between the packet header layer User Datagram Protocol UDP, VTEP outer layer networks, generates the third message;Alternatively, being Second message is added successively outside the packet header VXLAN, the packet header the outer layer UDP, the packet header VTEP outer layers IP and VTEP Layer virtual LAN VLAN packet header, generates the third message.
12. physical machine according to claim 11, which is characterized in that
The acquisition module, is specifically used for according to the packet header VTEP outer layers IP, obtained from the arp cache table with it is described The corresponding MAC Address in the packet header VTEP outer layer IP.
13. a kind of computer readable storage medium, instruction is stored in the computer readable storage medium, which is characterized in that When the computer readable storage medium is run in physical machine so that physical machine is executed as any one in claim 1-3 Data transmission method described in, or execute the data transmission method as described in any one of claim 4-6.
14. a kind of computer program product including instruction, which is characterized in that when the computer program product is in physical machine When operation so that physical machine executes the data transmission method as described in any one of claim 1-3, or executes such as right It is required that the data transmission method described in any one of 4-6.
15. a kind of data transmission system, which is characterized in that include with the physical machine described in any one of claim 7-9, And with the physical machine described in any one of claim 10-12.
CN201710286724.0A 2017-04-27 2017-04-27 A kind of data transmission method, apparatus and system Pending CN108809793A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710286724.0A CN108809793A (en) 2017-04-27 2017-04-27 A kind of data transmission method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710286724.0A CN108809793A (en) 2017-04-27 2017-04-27 A kind of data transmission method, apparatus and system

Publications (1)

Publication Number Publication Date
CN108809793A true CN108809793A (en) 2018-11-13

Family

ID=64070174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710286724.0A Pending CN108809793A (en) 2017-04-27 2017-04-27 A kind of data transmission method, apparatus and system

Country Status (1)

Country Link
CN (1) CN108809793A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887317A (en) * 2021-01-30 2021-06-01 北京中安星云软件技术有限公司 Method and system for protecting database based on VXLAN network

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095546A (en) * 2013-01-28 2013-05-08 华为技术有限公司 Method, device and data center network for processing messages
CN104410541A (en) * 2014-11-18 2015-03-11 盛科网络(苏州)有限公司 Method and device for counting VXLAN inner layer virtual machine flux on intermediate switch
WO2015149253A1 (en) * 2014-03-31 2015-10-08 华为技术有限公司 Data center system and virtual network management method of data center
CN105591982A (en) * 2015-07-24 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN105721359A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 VXLAN message transmission method and device
CN105763444A (en) * 2016-01-27 2016-07-13 杭州华三通信技术有限公司 Route synchronization method and route synchronization device
CN105827495A (en) * 2016-01-05 2016-08-03 杭州华三通信技术有限公司 Message forwarding method and device for VXLAN gateway
US20160261496A1 (en) * 2013-10-31 2016-09-08 Hangzhou H3C Technologies Co., Ltd. Packet forwarding in data center network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095546A (en) * 2013-01-28 2013-05-08 华为技术有限公司 Method, device and data center network for processing messages
US20160261496A1 (en) * 2013-10-31 2016-09-08 Hangzhou H3C Technologies Co., Ltd. Packet forwarding in data center network
WO2015149253A1 (en) * 2014-03-31 2015-10-08 华为技术有限公司 Data center system and virtual network management method of data center
CN104410541A (en) * 2014-11-18 2015-03-11 盛科网络(苏州)有限公司 Method and device for counting VXLAN inner layer virtual machine flux on intermediate switch
CN105721359A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 VXLAN message transmission method and device
CN105591982A (en) * 2015-07-24 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN105827495A (en) * 2016-01-05 2016-08-03 杭州华三通信技术有限公司 Message forwarding method and device for VXLAN gateway
CN105763444A (en) * 2016-01-27 2016-07-13 杭州华三通信技术有限公司 Route synchronization method and route synchronization device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887317A (en) * 2021-01-30 2021-06-01 北京中安星云软件技术有限公司 Method and system for protecting database based on VXLAN network

Similar Documents

Publication Publication Date Title
US11621869B2 (en) Enabling access to dedicated resources in a virtual network using top of rack switches
US9602307B2 (en) Tagging virtual overlay packets in a virtual networking system
CN116057910B (en) Virtual private cloud communication and configuration method and related device
CN105791463B (en) A kind of method and apparatus for realizing virtual machine communication
US9432287B2 (en) Virtual gateways and implicit routing in distributed overlay virtual environments
JP6982104B2 (en) BRAS system-based packet encapsulation methods and equipment
WO2017113300A1 (en) Route determining method, network configuration method and related device
CN112702252A (en) Message processing method, system and related equipment
WO2020057469A1 (en) Data processing method, related device, and computer storage medium
CN109617995B (en) Management system and method for VPC (virtual private network) internal container of tenant cluster and electronic equipment
CN105763385B (en) Traffic scheduling method and device
CN109412922B (en) Method, forwarding device, controller and system for transmitting message
CN107948077B (en) Method and device for forwarding data message
WO2021174943A1 (en) Data forwarding method and apparatus, and device and storage medium
CN109936492A (en) A kind of methods, devices and systems by tunnel transmission message
CN112787923A (en) Message processing method, device and system
CN107547665A (en) A kind of method, equipment and the system of dhcp address distribution
CN111294268B (en) Method and device for avoiding IP address conflict
CN107294746B (en) Method and equipment for deploying service
CN111130978B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN108809793A (en) A kind of data transmission method, apparatus and system
CN110351394B (en) Network data processing method and device, computer device and readable storage medium
CN108934058B (en) Communication method and device
JP2024506089A (en) Packet forwarding methods, devices, and systems
US9246820B1 (en) Methods and apparatus for implementing multiple loopback links

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113