CN110022263A - A kind of method and relevant apparatus of data transmission - Google Patents

A kind of method and relevant apparatus of data transmission Download PDF

Info

Publication number
CN110022263A
CN110022263A CN201810020503.3A CN201810020503A CN110022263A CN 110022263 A CN110022263 A CN 110022263A CN 201810020503 A CN201810020503 A CN 201810020503A CN 110022263 A CN110022263 A CN 110022263A
Authority
CN
China
Prior art keywords
vxlan
message
interchanger
vtep
tunnel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810020503.3A
Other languages
Chinese (zh)
Other versions
CN110022263B (en
Inventor
秦涛
冯海东
刘贵峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital 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 CN201810020503.3A priority Critical patent/CN110022263B/en
Publication of CN110022263A publication Critical patent/CN110022263A/en
Application granted granted Critical
Publication of CN110022263B publication Critical patent/CN110022263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/7453Address table lookup; Address filtering using hashing

Landscapes

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

Abstract

This application discloses a kind of method of data transmission, this method is applied to virtual expansible local area network VXLAN, and VXLAN includes the tunnel VXLAN, and the tunnel VXLAN is used for the communication of the first interchanger and second switch.First interchanger receives the first Ethernet message, encapsulates the first tunnel VXLAN head for the first Ethernet message and obtains the first VXLAN message, the first tunnel VXLAN head includes the Internet protocol IP address of the VXLAN endpoint of a tunnel VTEP of the first interchanger.First interchanger determines the first instruction set according to the first forwarding table and the first VXLAN message, wherein first forwarding table includes the IP address of the VTEP of first interchanger and the corresponding relationship of the first instruction set.First interchanger forwards the first VXLAN message so that the first VXLAN message is sent to second switch by the tunnel VXLAN according to first instruction set.Through the above way, first interchanger can forward the VXLAN message of source IP address (the namely IP address of VTEP) having the same according to first forwarding table, the process for searching EMC table and DPCLS table according to VXLAN message is avoided, the forwarding performance of network is improved.

Description

A kind of method and relevant apparatus of data transmission
Technical field
The method and relevant apparatus transmitted this application involves the communications field more particularly to a kind of data.
Background technique
Software definition networking (software-defined networking, SDN) is a kind of novel network architecture, it Design concept be by network-based control plane and data forwarding planar separation, and controlling plane can Direct Programming.SDN Bottom hardware is controlled by the programmable of software platform in control plane, realizes the flexible allotment to Internet resources.In SDN In network, the network equipment such as interchanger in Forwarding plane is only responsible for simple data forwarding.This control plane and forwarding surface Isolated mode improves the efficiency of forwarding data.
As shown in Figure 1, SDN network generally includes business presentation layer 101, control layer 102, physical network layer 103 and service Device layer 104.Business presentation layer 101 includes cloud data center operation management platform (abbreviation cloud platform), is mainly directed towards data center, It realizes calculating, the storage in data center, respective resources can also be controlled and be managed, realize the virtualization of Internet resources, And underlying device such as interchanger etc. is programmed by the programming interface that control layer 102 provides.The center of control layer 102 Component is controller, and controller can be merged with underlay network device height.Physical network layer 103 provides bottom for SDN network and sets It is standby to support, the high-speed channel of service bearer is provided, the network equipment in physical network layer 103 may include leaf node, backbone section Point and gateway.Server layer 104 may include physical server 109 and the server 106 for supporting virtualization.Support virtualization Server 106 can fictionalize virtual machine 107 and virtual switch 108, and virtual machine 107 is connect by virtual switch 108 Enter physical network layer.In order to meet the needs of capable of identifying a large number of users group in big double layer network environment, can be used can virtually expand Local area network (virtual extensible local area network, VXLAN) is opened up to be superimposed greatly on existing three-layer network Measure double layer network, each overlay network is referred to as a VXLAN network segment, each VXLAN network segment by 24 bits VXLAN network Mark (VXLAN Network Identifier, VNI) is identified, therefore can at most be existed simultaneously in a management domain 16M VXLAN network segment.Specifically, the extended mode of this double layer network is realized by VXLAN technology, and VXLAN technology is to pass through The raw data packets that virtual machine or server issue are packaged into VXLAN message, are then transmitted on physical network.Reach purpose By VXLAN endpoint of a tunnel (VXLAN tunnel end point, VTEP) the VXLAN message is decapsulated to obtain this behind ground original Data packet, and the raw data packets are sent to target virtual machine or server.Just because of this encapsulation, existing three-layer network Double layer network can be largely superimposed on network.The function of above-mentioned VTEP can be realized also by software realization, such as by physical equipment Shown in Fig. 1, virtual switch 108 includes VTEP 105.The leaf node and VXLAN gateway for connecting physical server 109 can also be with Including respective VTEP.
When the network equipment runs OpenFlow agreement, accurate matching cache table (exact is stored on each network equipment Match cache, EMC) table and data channel classify (datapath classifer, DPCLS) table.Wherein, EMC table is claimed again For microflow cache table, DPCLS table is otherwise known as asterisk wildcard matching cache table or megaflow cache table.EMC table is deposited Storage in the buffer, has lesser specification (i.e. entry number), and DPCLS table is stored in memory, and has biggish specification.EMC table Each list item include cryptographic Hash and corresponding instruction set or cryptographic Hash and the index for being directed toward DPCLS table.The DPCLS table it is every A list item include at least one occurrence asterisk wildcard and corresponding instruction set.At least one occurrence may include following One or more of occurrence: the tunnel (tunnel) of first layer (layer 1) identifies (identifier, ID), input terminal Mouth (in port), service quality (quality of service, QoS) priority;The source MAC of the second layer (layer 2) Location, target MAC (Media Access Control) address, VLAN ID (virtual local area network, VLAN) ID, EtherType (Ethernet type);The address source IP v4 of third layer (layer 3), destination IP v4, the address source IP v6, the address destination IP v6; 4th layer (layer 4) transmission control protocol (Transmission Control Protocol, TCP) port numbers, number of users According to datagram protocol (User Datagram Protocol, UDP) port numbers, internet message control protocol (Internet Control Message Protocol, ICMP) port numbers.
Specifically, in data forwarding process, when the network equipment (can be physical network device or virtual switch) connects When receiving Ethernet message (also known as Ether frame), the network equipment first generates cryptographic Hash according to the field to be matched of the Ethernet message, Then EMC table, when not finding corresponding list item in the EMC table according to the cryptographic Hash, network are searched according to the cryptographic Hash Equipment according to the field to be matched of the Ethernet message search DPCLS table, when in the DPCLS list item found the Ethernet message go out When interface is the VTEP of the network equipment, which is sent to the VTEP, which is that the Ethernet message adds VXLAN Tunnel head obtains VXLAN message, which includes VXLAN, user datagram (User Datagram Protocol, UDP) head, outer layer Internet protocol (Internet Protocol, IP) head and outer layer Ethernet header.The VXLAN message It can be considered as new message, therefore the VXLAN message can be looped back to the entrance of forwarding process by the network equipment, be searched again EMC table and DPCLS table.
In the prior art, each VXLAN message can be looped back to entrance and the retriggered inquiry of forwarding process again The step of EMC table and DPCLS table, needs to expend more time due to searching EMC table and DPLCS table, and the above process affects number According to the efficiency of forwarding.
Summary of the invention
This application provides a kind of data transmission method and relevant apparatus, the embodiment of the present application can under VXLAN scene, It avoids searching EMC table and DPCLS table according to VXLAN message, directly the first relatively simple forwarding table of lookup mapping relations, improve The forwarding performance of network.In addition, the embodiment of the present application dynamic when updating EMC table and DPCLS table updates the first forwarding table, really Protected first forwarding table content can real-time update, ensure that the accuracy of repeating process.
The first aspect of the embodiment of the present invention provides a kind of method of data transmission, and the method is applied to virtual expansible In local area network VXLAN, the VXLAN includes the tunnel VXLAN, and the tunnel VXLAN is used for the first interchanger and second switch Between communication.
Firstly, first interchanger receives the first Ethernet message.Interchanger needs the first ether sent to virtual machine Message is packaged, to the interchanger that message is packaged can be physical switches be also possible to it is virtual by virtualization technology Virtual switch out.Furthermore interchanger also can receive VXLAN message pair other than it can be packaged to Ethernet message The VXLAN message is decapsulated.First interchanger can be regarded to the interchanger of source herein as, for receiving common message And the equipment being packaged.
Then, first interchanger is that first Ethernet message the first tunnel VXLAN head of encapsulation obtains the first VXLAN Message.First tunnel VXLAN head of encapsulation includes outer layer Ethernet header, outer layer IP, outer layer UDP and VXLAN head, wherein outer layer The source IP address for including in IP is exactly the IP address of the VTEP of first interchanger.The VTEP of source and the VTEP group of opposite end The virtual channel for the VXLAN message transmissions that can be used for encapsulating at one.
The first instruction set is determined according to the first forwarding table and the first VXLAN message, wherein first forwarding table is used In the IP address for the VTEP for indicating the first interchanger and the corresponding relationship of first instruction set, first interchanger further includes Accurate matching caching EMC table and data channel are classified DPCLS table, and first forwarding table is different from the EMC table and described DPCLS table, what EMC table was used to indicate is the corresponding pass between the cryptographic Hash and instruction set calculated by field to be matched System, and DPCLS table using to be the information such as asterisk wildcard match message.
First interchanger forwards the first VXLAN message so that described first according to first instruction set VXLAN message is sent to the second switch by the tunnel VXLAN.First instruction set is for indicate how by first VXLAN message forwards, and specifically may include which port that the first VXLAN message is sent to server.
By the above-mentioned means, there is the VXLAN message of identical outer layer source IP address (the namely IP address of VTEP) can be straight It connects and is forwarded based on first forwarding table, avoid the process for searching EMC table and DPCLS table according to VXLAN message, improve net The forwarding performance of network.
In conjunction with the embodiment of the present invention in a first aspect, the first implementation of the first aspect in the embodiment of the present invention In, before first interchanger receives the first Ethernet message, the method also includes:
First interchanger first receives the second Ethernet message before receiving the first Ethernet message, receives the second ether report Text is to obtain first further according to the 2nd VXLAN message to generate the 2nd VXLAN message according to the second Ethernet message according to subsequent The corresponding relationship of the IP address of the VTEP of interchanger and first instruction set establishes the first forwarding table with this.
First interchanger is that second Ethernet message the 2nd tunnel VXLAN head of encapsulation obtains the 2nd VXLAN message, It is similar that the process of the first Ethernet message is encapsulated in second Ethernet message encapsulation process and above-mentioned implementation, the 2nd tunnel VXLAN The important informations such as source IP address are contained in outer layer IP in head, source IP address also refers to the tunnel VXLAN of the first interchanger The IP address of endpoint VTEP.
When the corresponding list item of the IP address that the EMC table and DPCLS table do not include the VTEP of first interchanger, First interchanger generates the IP address and described first of the VTEP of first interchanger according to the 2nd VXLAN message The corresponding relationship of instruction set, first interchanger are instructed according to the IP address of the VTEP of first interchanger and described first The corresponding relationship of collection generates first forwarding table.
When the corresponding list item of the IP address that the EMC table and DPCLS table include the VTEP of first interchanger, then root The result that EMC table and DPCLS table obtain is inquired according to the 2nd VXLAN message and establishes the first forwarding table, and inquiry can obtain instruction set Mean that there is certain corresponding relationship between the targeted output port of the source IP address and server in the 2nd VXLAN message, The source IP address for including in the 2nd VXLAN message again is also the IP address of the VTEP of the first interchanger, therefore according to the 2nd VXLAN Message produces the IP address of the VTEP of the first interchanger and corresponding relationship, that is, forwarding table of first instruction set.
Secondly, in the embodiment of the present application, before receiving the first Ethernet message, first receive an Ethernet message, and by its Encapsulation, the IP address of the VTEP of the first interchanger and the correspondence of first instruction set are obtained according to the VXLAN message after encapsulation Relationship establishes the first forwarding table accordingly, hereafter has the VXLAN message of identical outer layer source IP address with regard to nothing with the VXLAN message The EMC table and DPCLS table in time-consuming cost source need to be inquired, directly forwards VXLAN message can efficiently, quickly according to the first forwarding table Ground E-Packets, and improves the efficiency of data transmission.
In conjunction with the first aspect of the embodiment of the present invention or the first implementation of first aspect, in the embodiment of the present invention In second of implementation of first aspect, the method also includes:
Each interchanger both can be used as the interchanger for sending that side of VXLAN message, can also be used as and receives VXLAN report The interchanger of text.When receiving, first interchanger receives the of second switch transmission by the tunnel VXLAN Three VXLAN messages, the 3rd VXLAN message are that the interchanger i.e. second switch by opposite end carry out third Ethernet message Obtained message is encapsulated, the 3rd VXLAN message includes the 3rd tunnel VXLAN head, and the 3rd tunnel VXLAN head includes institute State the IP address of the VTEP of second switch;
The first interchanger for receiving the 3rd VXLAN message decapsulates the VXLAN message at VTEP, that is, deletes Except the 3rd tunnel the VXLAN head of the 3rd VXLAN message, third Ethernet message is obtained, third Ethernet message is opposite end Want the message sent.
First interchanger forwards the third Ethernet message according to the EMC table or the DPCLS table, passes through inquiry List item in the interchanger obtains corresponding instruction set, for indicate how message to be given to the purpose virtual machine of receiving end.
In the embodiment of the present application, the first interchanger also can be used as recipient and receive the VXLAN message that opposite end is sent, and then exist VTEP decapsulates VXLAN message, and the tunnel packaging V XLAN head is in order to enable Ethernet message can smoothly pass under VXLAN network It is defeated, once reaching the interchanger where purpose virtual machine, the tunnel head of encapsulation can be laid down.
In conjunction with the embodiment of the present invention first aspect into second of implementation of first aspect any one realization Mode, in the third implementation of the first aspect of the embodiment of the present invention, the method also includes:
First interchanger is the virtual switch of deployment on the server, and virtual switch is to pass through virtualization technology The equipment for fictionalizing the encapsulation reconciliation encapsulation function of the achievable VTEP come, interchanger can be configured to management one by void Communication in the virtual network or subnet of quasi- machine composition between virtual machine, virtual machine are connected into physical network by interchanger.
First instruction set includes that the first VXLAN message is sent to the target port of the server, and first refers to Enable collection be according to the co-determination of instruction set in VXLAN message and forwarding table, once field to be matched in VXLAN message with Occurrence in forwarding table corresponds to, so that it may obtain corresponding instruction set in list item.
The encapsulation reconciliation encapsulation function of VTEP can be realized by interchanger in the embodiment of the present application, therefore not need to increase it His network equipment realizes the function of VTEP, reduces the number of devices in network, simplifies network topology.
In conjunction with the embodiment of the present invention first aspect into the third implementation of first aspect any one realization Mode, it is described according to the first forwarding table and described first in the 4th kind of implementation of the first aspect of the embodiment of the present invention VXLAN message determines before the first instruction set:
Determine that first forwarding table is effective status.
Enabled mark is contained in first forwarding table, enabled mark is used to indicate whether the first forwarding table currently uses, if Significance bit in first forwarding table enables to be identified as 1, then next homologous IP packet can directly be passed through first by explanation Forwarding table obtains corresponding instruction set, which, which is used to indicate, forwards VXLAN message by the physical port of server.If having Imitating position is 0, then illustrates that the first forwarding table cannot currently use, then needs the VXLAN message that will be encapsulated by EMC table and DPCLS Table inquiry, forwards according to instruction set.
In the embodiment of the present application, conclude whether the first forwarding table can make by judging the significance bit in the first forwarding table With, it avoids VXLAN message and inquires the first unavailable or wrong forwarding table, it, can be with once the first forwarding table of discovery is unavailable VLXAN message is forwarded using EMC table and DPCLS table, improves the accuracy rate of data transmission.
In conjunction with the embodiment of the present invention first aspect into the 4th kind of implementation of first aspect any one realization Mode, in the 5th kind of implementation of the first aspect of the embodiment of the present invention, the method also includes:
If the IP address of the VTEP of first interchanger changes, first interchanger is according to the IP of the VTEP after change Address updates first forwarding table, the accurate matching cache table and the data channel classification chart.
First interchanger generates the IP address and first instruction of the VTEP of the first interchanger according to the 2nd VXLAN message The corresponding relationship of collection, and the first forwarding table is established, then first forwarding table forwarding just can be used directly in the first VXLAN message VXLAN message, the first VXLAN message and the 2nd VXLAN message are with having IP address i.e. the outer layer source IP of identical VTEP Location.If the IP address of the VTEP of the first interchanger changes, the first forwarding table, the accurate matching cache table and the data Contents in table in the classification chart of channel is also required to dynamically connect with the IP address of VTEP, synchronizes and is refreshed.Work as VTEP IP address variation when, EMC table and DPCLS table first can be accordingly updated, then first VXLAN message of exchange opportunity The result of inquiry EMC table and DPCLS table obtains the IP address of new VTEP and the corresponding relationship of corresponding instruction collection, according to new pair It should be related to and refresh the first forwarding table.
In the embodiment of the present application, in IP address i.e. the source IP variation of VTEP, according to source IP address to global variable The content of static table, EMC table and DPCLS table carries out real-time update, ensure that the accuracy of repeating process.
The second aspect of the embodiment of the present invention provides a kind of device of data transmission, and described device is applied to virtual expansible In local area network VXLAN, the VXLAN includes the tunnel VXLAN, and the tunnel VXLAN is used for the first interchanger and second switch Between communication, described device is first interchanger, and first interchanger includes:
First receiving module, for receiving the first Ethernet message;
Package module obtains the first VXLAN message for encapsulating the first tunnel VXLAN head for first Ethernet message, First tunnel VXLAN head includes the Internet protocol IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger;
Determining module, for determining the first instruction set according to the first forwarding table and the first VXLAN message, wherein institute State the IP address for the VTEP that the first forwarding table includes first interchanger and the corresponding relationship of first instruction set;Described One interchanger further includes accurate matching caching EMC table and data channel classification DPCLS table, and first forwarding table is different from described EMC table and the DPCLS table;
First forwarding module, for forwarding the first VXLAN message according to first instruction set so that described the One VXLAN message is sent to the second switch by the tunnel VXLAN.
By the above-mentioned means, there is the VXLAN message of identical source IP address (the namely IP address of VTEP) can be direct It is forwarded based on first forwarding table, avoids the process for searching EMC table and DPCLS table according to VXLAN message, improve network Forwarding performance.In addition, the embodiment of the present application dynamic when updating EMC table and DPCLS table updates global variable static table, it is ensured that The content of the global variable static table can real-time update, ensure that the accuracy of repeating process.
In conjunction with the second aspect of the embodiment of the present invention, in the first implementation of the second aspect of the embodiment of the present invention In,
The receiving module is also used to receive the second Ethernet message before receiving first Ethernet message;
The package module is also used to obtain the 2nd VXLAN for second Ethernet message the 2nd tunnel VXLAN head of encapsulation Message, the 2nd tunnel VXLAN head include the IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger.
The data transmission device further includes generation module, for not including described the when the EMC table and DPCLS table When the corresponding list item of the IP address of the VTEP of one interchanger, first interchanger is generated according to the 2nd VXLAN message The corresponding relationship of the IP address of VTEP and first instruction set;And according to the IP address of the VTEP of first interchanger and institute The corresponding relationship for stating the first instruction set generates first forwarding table.
Secondly, in the embodiment of the present application, before receiving the first Ethernet message, first receive an Ethernet message, and by its Encapsulation, establishes the first forwarding table according to the VXLAN message after encapsulation, hereafter has identical outer layer with the VXLAN message in forwarding It is just not necessarily to inquire the time-consuming EMC table and DPCLS table for expending resource when the VXLAN message of source IP address, directly according to the first forwarding Table can efficiently, rapidly forward VXLAN message, improve the efficiency of data transmission.
In conjunction with the second aspect of the embodiment of the present invention or the first implementation of second aspect, in the embodiment of the present invention In second of implementation of second aspect, described device further include: the second receiving module, for passing through the tunnel VXLAN The 3rd VXLAN message that the second switch is sent is received, the 3rd VXLAN message includes the 3rd tunnel VXLAN head, institute State the IP address that the 3rd tunnel VXLAN head includes the VTEP of the second switch;
Removing module obtains third ether for deleting the 3rd tunnel the VXLAN head of the 3rd VXLAN message Message;
Second forwarding module, for forwarding the third Ethernet message according to the EMC table or the DPCLS table.
In the embodiment of the present application, the first interchanger also can be used as recipient and receive the VXLAN message that opposite end is sent, and then exist VTEP decapsulates the VXLAN message, and the tunnel packaging V XLAN head is in order to enable Ethernet message can be under VXLAN network smoothly Transmission can lay down these outer layer packet header once reaching the interchanger where purpose virtual machine.
In conjunction with the embodiment of the present invention second aspect into second of implementation of second aspect any one realization Mode, in the third implementation of the second aspect of the embodiment of the present invention, the data transmission device includes:
The determining module is also used to determine that first forwarding table is effective shape before determining first instruction set State.
In the embodiment of the present application, conclude whether forwarding table can use by judging the significance bit in the first forwarding table, keeps away Exempted from VXLAN message and inquired unavailable or wrong forwarding table, once discovery forwarding table it is unavailable, can use EMC table and DPCLS table forwards VLXAN message, improves the accuracy rate and efficiency of message forwarding.
In conjunction with the embodiment of the present invention second aspect into the 4th kind of implementation of second aspect any one realization Mode, in the 5th kind of implementation of the second aspect of the embodiment of the present invention, the method also includes:
Update module, for when the VTEP of first interchanger IP address change when, according to the VTEP's after change IP address updates first forwarding table, the accurate matching cache table and the data channel classification chart.
In the embodiment of the present application, in IP address i.e. the source IP variation of VTEP, forwarded according to source IP address to first The content real-time update of table, EMC table and DPCLS table, ensure that the accuracy of repeating process.
The application third aspect provides a kind of data transmission device, and the data transmission device includes processor and storage Device;The memory is for storing executable computer program code;The processor is for reading the computer program Code runs computer program corresponding with the computer program code, for executing appointing such as the application first aspect A kind of method in possible embodiment.
The application fourth aspect provides a kind of computer program product, when run on a computer, so that computer The method in any possible embodiment of above-mentioned first aspect can be executed.
The 5th aspect of the application provides a kind of computer storage medium, soft for being stored as computer used in the above method Part instruction, when run on a computer, allows computer to execute any possible implementation of above-mentioned first aspect Method in mode.
Detailed description of the invention
Fig. 1 is the network architecture diagram of SDN in the prior art;
Fig. 2 is the network topological diagram that VXLAN technology is utilized in the embodiment of the present application;
Fig. 3 is the structural schematic diagram of VXLAN message in the embodiment of the present application;
Fig. 4 is processing flow schematic diagram of the VXLAN message inside interchanger in the embodiment of the present application;
Fig. 5 is a Signalling exchange schematic diagram of data transmission method in the embodiment of the present application;
Fig. 6 is one embodiment schematic diagram of data transmission method in the embodiment of the present application;
Fig. 7 is one embodiment schematic diagram of data transmission device in the embodiment of the present application;
Fig. 8 is another embodiment schematic diagram of data transmission device in the embodiment of the present application;
Fig. 9 is another embodiment schematic diagram of data transmission device in the embodiment of the present application;
Figure 10 is the another embodiment schematic diagram of data transmission device in the embodiment of the present application.
Specific embodiment
This application provides a kind of data transmission method and relevant apparatus, the embodiment of the present application can under VXLAN scene, It avoids searching EMC table and DPCLS table according to VXLAN message, improves the forwarding performance of network.In addition, the embodiment of the present application exists Dynamic updates global variable static table when the EMC table and DPCLS table of update, it is ensured that the content of the global variable static table can Real-time update ensure that the accuracy of repeating process.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
SDN network can be divided into four layers according to the difference of effect, as shown in Figure 1, SDN network include 101 business presentation layers, 102 control layers, 103 physical network layers and 104 server layers.
In SDN network, the communication that VXLAN technology can be used between the virtual machine in virtual network, VXLAN is built upon Virtual ethernet on physical network, the core technology of VXLAN be at the endpoint VTEP in the tunnel VXLAN to ethernet frame into Row encapsulation, then by the tunnel transmission VXLAN message between local terminal VTEP and opposite end VTEP, then is unsealed in opposite end VTEP Dress obtains original Ethernet frame, and VTEP can be realized the function of encapsulation or the decapsulation of data by interchanger.The interchanger can To be virtual switch or physical switches.
Referring to Fig. 2, Fig. 2 is the network topological diagram based on VXLAN, E-Packeted below to introduce using VXLAN with Fig. 2 Process:
The effect of the basic conception and each equipment in message repeating process is introduced first:
Server: in virtualization technology, can fictionalize more interchangers and Duo Tai virtual machine on a server, (for example, fictionalizing virtual machine 202 and virtual switch 203 on server 201,207 He of virtual machine is fictionalized on server 208 Virtual switch 206).Each virtual switch can be configured to management one by virtual robot arm at virtual network or son Communication in net between virtual machine, virtual machine are linked into network by virtual switch.Server can control the void of physical resource Quasi-ization and scheduling, use for one or more virtual machine.Virtual machine will need the message sent to send into virtual switch, VTEP (such as VTEP204 or VTEP205) in virtual switch is responsible for being packaged the message, and virtual switch again will place The message managed is sent to the VTEP of next network equipment, the two VTEP constitute the virtual of a transmission VXLAN message Tunnel.Message can also be E-Packeted by way of the tunnel transmission message that the VTEP on backbone node and leaf node is formed.
The endpoint in the tunnel VTEP:VXLAN, the VTEP on interchanger can be packaged or decapsulate to message, encapsulated message When, using the IP address of the VTEP as outer layer source IP address, opposite end is received into the IP address of the VTEP of the message as outer layer mesh IP address.Under the scene of the embodiment of the present application, the VTEP on backbone node and leaf node can be solely for E-Packeting, no The operation such as it is packaged or decapsulates to message.
Backbone node and leaf node: the network facilities, backbone node and leaf node are provided the foundation at this for VXLAN network It can be solely for forwarding in scheme, the operation such as not be packaged or decapsulate to message.When for virtual under different VXLAN networks When the communication of machine, the VTEP on node can function as gateway, receive the message that a upper interchanger is sent, and seek for the message Routing is looked for, which is sent to the VTEP of next network equipment, so that message reaches recipient's virtual machine.
It will be below sender with the virtual machine 202 in Fig. 2, virtual machine 207 is recipient, and two virtual machines are in For under same VXLAN network, illustrate the communication process of two virtual machines.
Virtual machine 202 sends message to virtual machine 207, and the VTEP 105 that virtual machine 202 connects has received the message, by this Message is packaged, and encapsulated message Shi Xianwei original message adds virtual LAN extension header, that is, VXLAN head, is successively added later Outer users datagram protocol head, that is, UDP, outer layer internet protocol header, that is, IP and outer layer Ethernet header, that is, MAC header, encapsulation obtain VXLAN message structure it is as shown in Figure 3.Outer layer source IP address, outer layer purpose are contained in the tunnel VXLAN head after encapsulation The important informations such as IP address, outer layer source MAC and outer layer target MAC (Media Access Control) address.VTEP in the interchanger being connect with virtual machine 202 IP address as outer layer source IP address, the IP address of VTEP is as outer layer destination IP in the interchanger connecting with virtual machine 207 Address.The VXLAN message of encapsulation passes through the tunnel transmission formed between the VTEP on network on backbone node and leaf node.? After the VXLAN message reaches the corresponding VTEP205 of virtual machine 207, which dismantles this to VXLAN message decapsulation Outer layer Ethernet header, the head outer layer IP and the head outer layer UDP of VXLAN message check what the VNI of message and original message were carried Target MAC (Media Access Control) address, confirmation purpose virtual machine 207 be connected with this VTEP 205 after, VXLAN head of dismantling, leave be exactly it is original with Too message, then the original message is sent to virtual machine 207, communication is completed.
If the virtual machine under heterogeneous networks needs to communicate, two networks, net can be connected by increasing gateway Pass can be deployed on backbone node or leaf node, and each backbone node and leaf node can be configured for routing.
Fig. 4 is processing flow schematic diagram of the VXLAN message inside interchanger under VXLAN scene.VTEP is by virtual machine The message sent is packaged, and the VXLAN message after encapsulating can be considered a new message, therefore the VXLAN by interchanger The entrance that message can be looped back to again forwarding by interchanger is tabled look-up.Traditional retransmission technique be the VXLAN message that will encapsulate again The entrance of loopback forwarding process searches EMC table and DPCLS table again, then issues the VXLAN message according to lookup result and takes Business device, the process that part is passed through as dashed lines.It is by second of loopback in data transfer mode in the embodiment of the present application The processing mode tabled look-up is simplified, process as shown by the solid line in the drawings, and the scheme of use is one fast path of bypass, establishes one The forwarding table different from EMC table and DPCLS table is opened, is known as the first forwarding table in the application.First forwarding table includes interchanger VTEP IP address and first instruction set corresponding relationship, the interchanger receive virtual machine send Ethernet message simultaneously it is right The Ethernet message carries out VXLAN encapsulation.If the enabled position 1 in figure, illustrating can be identical to next outer layer source IP address VXLAN message corresponding instruction set is directly obtained according to the forwarding table, which is used to indicate the physics end to server Mouth E-Packets.First forwarding table can regard one as and provide the forwarding table of global routing relation, due to each in table Feature will not generate variation, therefore can be called global variable static table again, and specific name is not construed as limiting herein.
Referring to FIG. 5, Fig. 5 is a kind of interaction schematic diagram of data transmission method provided in an embodiment of the present invention, wherein number It is applied in VXLAN according to the method for transmission, VXLAN includes the tunnel VXLAN, and the tunnel VXLAN is handed over for the first interchanger and second Communication between changing planes.
In 301, first interchanger receives the first Ethernet message.
First interchanger receives the first Ethernet message.Interchanger can carry out the first Ethernet message that virtual machine needs to send Encapsulation, the first interchanger can be physical switches can also be by virtualization technology fictionalize come virtual switch.This Outer interchanger can be packaged Ethernet message to obtain VXLAN message, also can receive VXLAN message to the VXLAN message into Row decapsulation obtains Ethernet message.The first interchanger can be regarded as exchange that source is packaged Ethernet message herein Machine, for the equipment for receiving Ethernet message and being packaged to the Ethernet message.
In 302, first interchanger is that first Ethernet message the first tunnel VXLAN head of encapsulation obtains first VXLAN message, the first tunnel VXLAN head include the IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger.
First interchanger is that the first tunnel Ethernet message packaging V XLAN head obtains the first VXLAN message in VTEP, here First interchanger can be described as source interchanger.VXLAN is successively added when packaging V XLAN tunnel head before original Ethernet message Head, UDP, outer layer IP and outer layer Ethernet header, these constitute a complete VXLAN message.As shown in figure 3, Fig. 3 is The composed structure schematic diagram of VXLAN message.It should be noted that the source IP address for including in outer layer IP refers to source interchanger In VTEP IP address, purpose IP address refers to the IP address of the VTEP in peer switches.
It should be noted that VTEP is the role that interchanger undertakes, only a part of switch function. That is, and the not all message for entering interchanger can all walk the tunnel VXLAN, when table in the list item found by message When the outgoing interface of the bright Ethernet message is the port VTEP, can just the Ethernet message be sent to the port VTEP, for the ether report The text addition tunnel VXLAN head, if contents in table shows that the outgoing interface of Ethernet message is common port, what message was walked is common Two or three layers of forwarding process.
In 303, the first instruction set is determined according to the first forwarding table and the first VXLAN message, wherein described first Forwarding table includes the IP address of the VTEP of first interchanger and the corresponding relationship of first instruction set, first exchange Machine further includes accurate matching caching EMC table and data channel classification DPCLS table, and first forwarding table is different from the EMC table With the DPCLS table.
The interchanger for either sending VXLAN message is still used to receive the interchanger of VXLAN message, receives in interchanger When to VXLAN message, can first judge source IP in the VXLAN message received whether the IP address with the VTEP of this end switch It is identical, if the same illustrate that the interchanger is the interchanger for forwarding VXLAN message, acquisition instruction of next tabling look-up collection, The VXLAN message is forwarded according to instruction set, can specifically include: the VXLAN message is sent to the target port of server, it should Target port is the physical port of server.If it is judged that the source IP in VXLAN message is not the VTEP of this end switch IP address then deletes the tunnel head of VXLAN message.
In first interchanger include EMC table, DPCLS table and the first forwarding table, the first forwarding table be different from EMC table and DPCLS table, comprising the mapping relations between cryptographic Hash and instruction set in EMC table, the first exchange opportunity is first according to the Ethernet message Field to be matched generate cryptographic Hash, EMC table is then searched according to the cryptographic Hash, when not having in the EMC table according to the cryptographic Hash When finding corresponding list item, which is passed to DPCLS table by the first interchanger, according to the field to be matched of the Ethernet message DPCLS table is searched, obtains corresponding instruction set until finding matched list item information, is obtained by EMC table and the inquiry of DPCLS table The process of instruction set is more slow, and needs to expend a large amount of resource, and the mapping relations for including in the first forwarding table are more Simply, and variable wherein included is all static, thus match the source IP address time-varying in VXLAN message obtain it is convenient and quick, According in VXLAN message source IP address search the first forwarding table can corresponding first instruction set of quick obtaining, the instruction Collection is mainly used for indicating how to forward the first VXLAN message, concretely: the first VXLAN message is sent to server Target port, the message for sending out port passes through physical network layer again to be transmitted.
The IP address of the VTEP of enabled mark, exit port and source is contained in each list item of first forwarding table, is enabled Mark is used to indicate whether the table currently uses, which port the message that exit port is used to indicate packaged VXLAN needs to be sent to, The VTEP IP address of source namely is used to send the IP address of VTEP in the interchanger of message, if in the first forwarding table Enabled mark is that significance bit is 1, then illustrates that next homologous IP packet can directly be passed through the table obtains corresponding instruction set, The instruction set includes being E-Packeted by the physics exit port of server, if the significance bit in the first forwarding table is 0, is illustrated The forwarding table is unavailable, can carry out the forwarding of message according to EMC table and DPCLS table at this time.
If the IP address of the VTEP of the first interchanger changes, the message being packaged from the VTEP is just original The first forwarding table in matching less than corresponding list item, at this moment need according to the IP address of the VTEP after change update original first Forwarding table, the accurate matching cache table and the data channel classification chart.
In 304, first interchanger forwards the first VXLAN message so that institute according to first instruction set It states the first VXLAN message and the second switch is sent to by the tunnel VXLAN.
It is matched the first VXLAN message to obtain corresponding instruction set with the first forwarding table, due in the first forwarding table Include is the IP address of the VTEP of interchanger and the corresponding relationship of corresponding instruction collection, then being used in the first forwarding table matched Field should be the IP address of the VTEP of interchanger, if a certain in the source IP address and the first forwarding table in the first VXLAN message The IP address of the VTEP of list item is consistent, then has illustrated in the VXLAN message matching the first forwarding table, then according in the list item Instruction set forwards the VXLAN message, which includes but be not limited only to indicate the first VXLAN message which end be sent to Mouthful, can also include others be used to indicate message forwarding instructions, such as when two interchangers of communication be not at it is same When under network, two networks can be connected by increasing a gateway, instruction at this time can serve to indicate that will be in VXLAN message Target MAC (Media Access Control) address is revised as the MAC Address of the gateway.
In 305, second switch receives the first VXLAN message that the first interchanger is sent.
VTEP on first interchanger and second switch forms a virtual tunnel VXLAN in logic, and message is logical Cross the tunnel transmission.VXLAN encapsulation has been carried out just because of to Ethernet message, therefore the VXLAN message after encapsulating could be VXLAN is transmitted in tunnel.
In 306, the second switch deletes the first tunnel the VXLAN head of the first VXLAN message, obtains First Ethernet message.
After the VTEP of second switch receives VXLAN message, the outer layer for message of dismantling is decapsulated to the message MAC header, the head outer layer IP and the head outer layer UDP check the target MAC (Media Access Control) address that the VNI of message and original message carry, confirmation After purpose virtual machine is connected with this VTEP, VXLAN stem of dismantling, what is left is exactly that sender wants the original ether report sent Text, then the original message is consigned into virtual machine, communication is completed.
In 307, the second switch forwards first Ethernet message according to the EMC table or the DPCLS table.
Second switch namely receives the interchanger of VXLAN message, obtains original after VTEP is to the decapsulation of VXLAN message The Ethernet message of beginning matches EMC table and DPCLS table further according to the Ethernet message, corresponding contents in table is matched, according to list item Instruction set in content executes the Ethernet message, specifically include how by Ethernet message be sent into purpose virtual machine.
In the embodiment of the present application, after source VTEP is packaged the Ethernet message that interchanger receives, interchanger The IP address of the VTEP of the interchanger and the corresponding relationship of corresponding instruction set can be obtained, establishes and forwards further according to the corresponding relationship Table has the VXLAN message of identical source IP address (the namely IP address of VTEP) can be directly by based on first forwarding table Forwarding avoids the process for searching EMC table and DPCLS table according to VXLAN message, improves the forwarding performance of network.
In the embodiment of the present application in the another embodiment of data transfer mode, first interchanger is being executed shown in Fig. 5 Method receive the first Ethernet message before, also execution Fig. 6 shown in each step.
In 401, first interchanger receives the second Ethernet message.
Before the first interchanger receives the first Ethernet message, another Ethernet message i.e. the second ether report is first received Text is packaged the second Ethernet message to obtain the 2nd VXLAN message, can obtain establishing the first forwarding according to the VXLAN message Corresponding relationship between the IP address of VTEP needed for table and corresponding port, in the VXLAN message of encapsulation in outer layer IP Source IP address refers to the IP address of the VTEP of the first interchanger, therefore includes first interchanger in the first forwarding table The corresponding relationship of the IP address of VTEP and first instruction set.
In 402, first interchanger is that second Ethernet message the 2nd tunnel VXLAN head of encapsulation obtains second VXLAN message, the 2nd tunnel VXLAN head include the IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger.
2nd VXLAN message is to carry out VXLAN by the VTEP in the first interchanger to encapsulate, therefore the 2nd VXLAN Outer layer source IP address in the outer layer source IP address and the first VXLAN message of message is the same, i.e. the first interchanger The IP address of VTEP.After establishing the first forwarding table according to the 2nd VXLAN message, the first interchanger could be according to first forwarding Table forwards the first VXLAN message.
In the present embodiment, first interchanger is that second Ethernet message encapsulates the 2nd tunnel VXLAN head and obtains the In the mode and above-described embodiment of two VXLAN messages content described by step 302, that is, first interchanger be described first with Too it is similar to obtain the first VXLAN message for the first tunnel VXLAN head of message encapsulation, therefore is not repeated herein.
In 403, when the IP address that the EMC table and DPCLS table do not include the VTEP of first interchanger is corresponding List item when, first interchanger generates the IP address of the VTEP of first interchanger according to the 2nd VXLAN message With the corresponding relationship of first instruction set.
When in EMC table with meaning when not including the corresponding list item of the IP address of VTEP of the first interchanger in DPCLS table The 2nd VXLAN message that is packaged into according to the second Ethernet message in EMC table and DPCLS all without occurrence, cannot basis The two tables obtain corresponding instruction set and forward the message, and the first interchanger can generate the according to the 2nd VXLAN message at this time The corresponding relationship of the IP address of the VTEP of one interchanger and first instruction set, the corresponding relationship can also be used for indicating next There is the message i.e. forwarding of the first VXLAN message of identical outer layer source IP with the 2nd VXLAN message.
Mean the when the corresponding list item of the IP address of the VTEP in EMC table or in DPCLS table including the first interchanger Two VXLAN messages can match EMC table or DPCLS table obtains corresponding instruction set.First interchanger is first according to the 2nd VXLAN It searches EMC table and forwards the report according to the corresponding instruction set of EMC list item matched if finding matched EMC list item Text.If not finding corresponding EMC list item in the EMC table, the first exchange opportunity is searched according to the 2nd VXLAN message DPCLS table obtains the instruction set in the DPCLS list item when finding corresponding DPCLS list item, which includes that will report Text is sent to the movement of which port.First interchanger can be built according to the instruction set in the EMC list item or DPCLS list item found Vertical first forwarding table.
First forwarding table is substantially primarily used to outer layer source IP address and server in the 2nd VXLAN message of instruction Exit port between corresponding relationship, therefore next VXLAN message for having identical outer layer source IP address can match this One forwarding table, and server is transferred by the exit port in first forwarding table.In the application, the first interchanger is not needed EMC table and DPCLS table are searched to each VXLAN message, improve the efficiency of forwarding data.
In 404, first interchanger is instructed according to the IP address of the VTEP of first interchanger and described first The corresponding relationship of collection generates first forwarding table.
There is corresponding relationship, it is generally the case that first between the IP address of the VTEP of first interchanger and the first instruction set Interchanger only has a VTEP, and therefore, which is only used for recording pair of the IP address of the VTEP and the first instruction set It should be related to.When the first interchanger has multiple VTEP, which may include multiple list items, and each list item is for recording The IP address of one VTEP and corresponding instruction set.Instruction set in multiple list item can correspond to the same exit port, can also With the different exit port of correspondence.
In the embodiment of the present application, before receiving the first Ethernet message, interchanger encapsulates to obtain according to the second Ethernet message 2nd VXLAN message determines the IP address and first instruction set of the VTEP of the first interchanger further according to the 2nd VXLAN message Corresponding relationship, save this corresponding relationship with the first forwarding table, the first VXLAN message can match this forwarding table and be instructed Collection forwards the first VXLAN message according to the forwarding behavior in the instruction set, avoids VXLAN message and searches EMC table and DPCLS The complicated processes of table substantially increase the forwarding performance of network.
The data transmission device in the present invention is described in detail below, referring to Fig. 7, the number in the embodiment of the present invention Include: according to transmitting device 50
First receiving module 501, for receiving the first Ethernet message;
Package module 502 obtains the first VXLAN report for encapsulating the first tunnel VXLAN head for first Ethernet message Text, the first tunnel VXLAN head include the Internet protocol IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger;
Determining module 503, for determining the first instruction set according to the first forwarding table and the first VXLAN message, wherein First forwarding table includes the IP address of the VTEP of first interchanger and the corresponding relationship of first instruction set;It is described First interchanger further includes accurate matching caching EMC table and data channel classification DPCLS table, and first forwarding table is different from institute State EMC table and the DPCLS table;
First forwarding module 504, for forwarding the first VXLAN message so that described according to first instruction set First VXLAN message is sent to the second switch by the tunnel VXLAN.
By the above-mentioned means, there is the VXLAN message of identical source IP address (the namely IP address of VTEP) can be direct It is forwarded based on first forwarding table, avoids the process for searching EMC table and DPCLS table according to VXLAN message, improve network Forwarding performance.In addition, the embodiment of the present application dynamic when updating EMC table and DPCLS table updates global variable static table, it is ensured that The content of the global variable static table can real-time update, ensure that the accuracy of repeating process.
In one embodiment, first receiving module 501 is also used to before receiving first Ethernet message The second Ethernet message is received, the package module 502 is also used to encapsulate the 2nd tunnel VXLAN head for second Ethernet message and obtain To the 2nd VXLAN message, the 2nd tunnel VXLAN head includes the IP of the VXLAN endpoint of a tunnel VTEP of first interchanger Address.
Based on the corresponding embodiment of above-mentioned Fig. 7, referring to Fig. 8, the data transmission device 50 in the embodiment of the present invention also wraps It includes:
Generation module 505, the IP address of the VTEP for generating first interchanger according to the 2nd VXLAN message With the corresponding relationship of first instruction set, and according to the IP address of the VTEP of first interchanger and first instruction set Corresponding relationship generate first forwarding table.
Secondly, in the embodiment of the present application, before receiving the first Ethernet message, first receive an Ethernet message, and by its Encapsulation, the IP address of the VTEP of the first interchanger and the correspondence of first instruction set are obtained according to the VXLAN message after encapsulation Relationship establishes the first forwarding table accordingly, hereafter has the VXLAN message of identical outer layer source IP address with regard to nothing with the VXLAN message The EMC table and DPCLS table in time-consuming cost source need to be inquired, directly can efficiently, rapidly be E-Packeted according to first forwarding table, Improve the efficiency of data transmission.
Another alternative embodiment in the embodiment of the present application is referring to Fig. 9, data transmission device 50 further include:
Second receiving module 506, for receiving the third that the second switch is sent by the tunnel VXLAN VXLAN message, the 3rd VXLAN message include the 3rd tunnel VXLAN head, and the 3rd tunnel VXLAN head includes described the The IP address of the VTEP of two interchangers;
Removing module 507, for deleting the 3rd tunnel the VXLAN head of the 3rd VXLAN message, obtain third with Too message;
Second forwarding module 508, for forwarding the third Ethernet message according to the EMC table or the DPCLS table.
Further, in one embodiment of the present invention, the determining module 503 is also used to determining that described first refers to Order determines first forwarding table as effective status before integrating.
In another embodiment, the data transmission device further include:
Update module, for when the VTEP of first interchanger IP address change when, according to the VTEP's after change IP address updates first forwarding table, the accurate matching cache table and the data channel classification chart.
In the embodiment of the present application, the first interchanger also can be used as recipient and receive the VXLAN message that opposite end is sent, and then exist VTEP decapsulates VXLAN message, and the tunnel packaging V XLAN head is in order to enable Ethernet message can smoothly pass under VXLAN network It is defeated, once reaching the interchanger where purpose virtual machine, the tunnel head of encapsulation can be laid down.
Another embodiment provides for a kind of data communication equipments by the application, as shown in Figure 10, the data communication equipment packet Include processor 1001 and memory 1002.
For storing instruction, the processing method processor 1001 of message is for executing for the processing method memory 1002 of message The instruction that the processing method memory 1002 of message stores, when the processing method memory 1002 that processor 1001 executes message is deposited When the instruction of storage, the processing method equipment of message is for executing Fig. 5 and method shown in fig. 6.
Optionally, as shown in Figure 10, which can also include communication interface 1003, wherein communication interface 1003 include one or more communication interfaces, for sending data, or the data that the other equipment of reception are sent to other equipment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meter When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present invention.The computer can To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium Transmission.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and 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 unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage 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.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (13)

1. a kind of method of data transmission, which is characterized in that the method is applied in virtual expansible local area network VXLAN, institute Stating VXLAN includes the tunnel VXLAN, and the tunnel VXLAN is for the communication between the first interchanger and second switch, the side Method includes:
First interchanger receives the first Ethernet message;
The interchanger is that first Ethernet message encapsulates the first tunnel VXLAN head and obtains the first VXLAN message, described first The tunnel VXLAN head includes the Internet protocol IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger;
The first instruction set is determined according to the first forwarding table and the first VXLAN message, wherein first forwarding table includes institute The IP address of the VTEP of the first interchanger and the corresponding relationship of first instruction set are stated, first interchanger further includes accurate Matching caching EMC table and data channel classification DPCLS table, first forwarding table are different from the EMC table and the DPCLS Table;
First interchanger forwards the first VXLAN message so that the first VXLAN according to first instruction set Message is sent to the second switch by the tunnel VXLAN.
2. the method according to claim 1, wherein first interchanger receive the first Ethernet message before, The method also includes:
First interchanger receives the second Ethernet message;
First interchanger is that second Ethernet message the 2nd tunnel VXLAN head of encapsulation obtains the 2nd VXLAN message, described 2nd tunnel VXLAN head includes the IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger;
It is described when the corresponding list item of the IP address that the EMC table and DPCLS table do not include the VTEP of first interchanger First interchanger generates the IP address and first instruction of the VTEP of first interchanger according to the 2nd VXLAN message The corresponding relationship of collection;
First interchanger is according to the IP address of the VTEP of first interchanger and the corresponding relationship of first instruction set Generate first forwarding table.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
First interchanger receives the 3rd VXLAN message that the second switch is sent by the tunnel VXLAN, described 3rd VXLAN message includes the 3rd tunnel VXLAN head, and the 3rd tunnel VXLAN head includes the VTEP of the second switch IP address;
First interchanger deletes the 3rd tunnel the VXLAN head of the 3rd VXLAN message, obtains third ether report Text;
First interchanger forwards the third Ethernet message according to the EMC table or the DPCLS table.
4. method described in any one of -3 according to claim 1, which is characterized in that
First interchanger is the virtual switch of deployment on the server;
First instruction set includes sending the first VXLAN message to the target port of the server.
5. method described in any one of -4 according to claim 1, which is characterized in that described according to the first forwarding table and described Before first VXLAN message determines the first instruction set, the method also includes:
Determine that first forwarding table is effective status.
6. the method according to any one of claims 1 to 5, which is characterized in that the method also includes:
If the IP address of the VTEP of first interchanger changes, first interchanger is according to the IP address of the VTEP after change Update first forwarding table, the accurate matching cache table and the data channel classification chart.
7. a kind of device of data transmission, which is characterized in that described device is applied in virtual expansible local area network VXLAN, institute Stating VXLAN includes the tunnel VXLAN, and the tunnel VXLAN is for the communication between the first interchanger and second switch, the dress It is set to first interchanger, described device includes:
First receiving module, for receiving the first Ethernet message;
Package module obtains the first VXLAN message for encapsulating the first tunnel VXLAN head for first Ethernet message, described First tunnel VXLAN head includes the Internet protocol IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger;
Determining module, for determining the first instruction set according to the first forwarding table and the first VXLAN message, wherein described One forwarding table includes the IP address of the VTEP of first interchanger and the corresponding relationship of first instruction set;Described first hands over Changing planes further includes accurate matching caching EMC table and data channel classification DPCLS table, and first forwarding table is different from the EMC Table and the DPCLS table;
First forwarding module, for forwarding the first VXLAN message so that described first according to first instruction set VXLAN message is sent to the second switch by the tunnel VXLAN.
8. device according to claim 7, which is characterized in that
The receiving module is also used to receive the second Ethernet message before receiving first Ethernet message;
The package module is also used to obtain the 2nd VXLAN report for second Ethernet message the 2nd tunnel VXLAN head of encapsulation Text, the 2nd tunnel VXLAN head include the IP address of the VXLAN endpoint of a tunnel VTEP of first interchanger;
The data transmission device further include:
Generation module, for do not include when the EMC table and DPCLS table first interchanger VTEP IP address it is corresponding List item when, according to the 2nd VXLAN message generate the VTEP of first interchanger IP address and it is described first instruction The corresponding relationship of collection;And it is generated according to the corresponding relationship of the IP address of the VTEP of first interchanger and first instruction set First forwarding table.
9. device according to claim 7 or 8, which is characterized in that the data transmission device further include:
Second receiving module, for receiving the 3rd VXLAN message that the second switch is sent by the tunnel VXLAN, The 3rd VXLAN message includes the 3rd tunnel VXLAN head, and the 3rd tunnel VXLAN head includes the second switch The IP address of VTEP;
Removing module obtains third Ethernet message for deleting the 3rd tunnel the VXLAN head of the 3rd VXLAN message;
Second forwarding module, for forwarding the third Ethernet message according to the EMC table or the DPCLS table.
10. the device according to any one of claim 7 to 9, which is characterized in that
The determining module is also used to determine that first forwarding table is effective status before determining first instruction set.
11. device according to any one of claims 7 to 10, which is characterized in that the data transmission device further include:
Update module, for when the VTEP of first interchanger IP address change when, according to the IP of the VTEP after change Location updates first forwarding table, the accurate matching cache table and the data channel classification chart.
12. a kind of computer readable storage medium, including instruction, when described instruction is run on computers, so that computer Execute the method as described in any one of claim 1 to 6.
13. a kind of computer program product comprising instruction, when run on a computer, so that computer executes such as right It is required that method described in any one of 1 to 6.
CN201810020503.3A 2018-01-08 2018-01-08 Data transmission method and related device Active CN110022263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810020503.3A CN110022263B (en) 2018-01-08 2018-01-08 Data transmission method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810020503.3A CN110022263B (en) 2018-01-08 2018-01-08 Data transmission method and related device

Publications (2)

Publication Number Publication Date
CN110022263A true CN110022263A (en) 2019-07-16
CN110022263B CN110022263B (en) 2020-12-15

Family

ID=67187869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810020503.3A Active CN110022263B (en) 2018-01-08 2018-01-08 Data transmission method and related device

Country Status (1)

Country Link
CN (1) CN110022263B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887185A (en) * 2019-11-29 2021-06-01 华为技术有限公司 Communication method and device of overlay network
CN113225376A (en) * 2021-03-29 2021-08-06 桂林电子科技大学 Ethernet frame and SDN data frame adapting method based on FPGA
CN115134315A (en) * 2022-09-01 2022-09-30 珠海星云智联科技有限公司 Message forwarding method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954218A (en) * 2014-03-24 2015-09-30 杭州华三通信技术有限公司 Distributed virtual switching device and forwarding method
CN106209553A (en) * 2015-04-30 2016-12-07 华为技术有限公司 Message processing method, equipment and system
US9621508B2 (en) * 2013-08-20 2017-04-11 Arista Networks, Inc. System and method for sharing VXLAN table information with a network controller
CN106911547A (en) * 2017-02-10 2017-06-30 新华三技术有限公司 A kind of message forwarding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9621508B2 (en) * 2013-08-20 2017-04-11 Arista Networks, Inc. System and method for sharing VXLAN table information with a network controller
CN104954218A (en) * 2014-03-24 2015-09-30 杭州华三通信技术有限公司 Distributed virtual switching device and forwarding method
CN106209553A (en) * 2015-04-30 2016-12-07 华为技术有限公司 Message processing method, equipment and system
CN106911547A (en) * 2017-02-10 2017-06-30 新华三技术有限公司 A kind of message forwarding method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHIFENG ZHAO;FENG HONG;RONGPENG LI: "SDN Based VxLAN Optimization in Cloud Computing Networks", 《IEEE ACCESS》 *
齐保社: "面向数据中心的VXLAN系统设计与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887185A (en) * 2019-11-29 2021-06-01 华为技术有限公司 Communication method and device of overlay network
CN112887185B (en) * 2019-11-29 2024-03-15 华为云计算技术有限公司 Communication method and device of overlay network
CN113225376A (en) * 2021-03-29 2021-08-06 桂林电子科技大学 Ethernet frame and SDN data frame adapting method based on FPGA
CN115134315A (en) * 2022-09-01 2022-09-30 珠海星云智联科技有限公司 Message forwarding method and related device

Also Published As

Publication number Publication date
CN110022263B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN105577548B (en) Message processing method and device in a kind of software defined network
CN104935516B (en) Communication system and method based on software defined network
CN104702479B (en) The method and apparatus that tunnel is established in SDN network
CN103997414B (en) Generate method and the network control unit of configuration information
KR101913490B1 (en) Flow table management method and relevant device and system
CN106254256B (en) Data message forwarding method and equipment based on three layers of VXLAN gateway
CN107925613A (en) It is used for the methods, devices and systems to E-Packet in business function chain SFC
CN107370673B (en) Method, controller and system for establishing forwarding path in network
CN106789667A (en) A kind of data forwarding method, relevant device and system
CN107113241B (en) Route determining method, network configuration method and related device
CN108632145B (en) Message forwarding method and leaf node equipment
CN110427334A (en) A kind of method and apparatus for realizing virtual machine communication
CN107786437B (en) Message forwarding method and device
CN107404436A (en) Communication means and device for virtual expansible LAN
CN105227466B (en) Communication processing method and device
CN111630817A (en) Routing method and device
TWI759571B (en) Data transfer method based on flow table
CN107342941A (en) A kind of optimization method and device of VXLAN control planes
CN107094110A (en) A kind of DHCP message retransmission method and device
CN110022263A (en) A kind of method and relevant apparatus of data transmission
EP3913870A1 (en) Packet forwarding method and network device
CN110311860A (en) Multi-link load balance method and device under VXLAN
CN111147372A (en) Downlink message sending and forwarding method and device
CN105471747A (en) Intelligent router routing method and apparatus thereof
CN107070790A (en) A kind of route learning method and routing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220117

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right