CN107948077A - The retransmission method and device of a kind of data message - Google Patents
The retransmission method and device of a kind of data message Download PDFInfo
- Publication number
- CN107948077A CN107948077A CN201810028069.3A CN201810028069A CN107948077A CN 107948077 A CN107948077 A CN 107948077A CN 201810028069 A CN201810028069 A CN 201810028069A CN 107948077 A CN107948077 A CN 107948077A
- Authority
- CN
- China
- Prior art keywords
- data message
- switching equipment
- information
- flow table
- port
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present invention provides a kind of retransmission method of data message, is related to technical field of the computer network, can simplify the configuration and management of network, reduces the complexity of switching equipment forwarding data packets, while can reduce the cost of switching equipment.This method includes:SDN controllers determine the first flow table and the second flow table;And SDN controllers send the first flow table to the first switching equipment, the second flow table is sent to the second switching equipment, first flow table is received for the first switching equipment of instruction after the first data message, encapsulate the first data message, second flow table is received for the second switching equipment of instruction after the first data message after encapsulation, unseal the first data message after dress encapsulation, first switching equipment is the starting point switching equipment in VXLAN tunnels, and the second switching equipment is the terminal switching equipment in VXLAN tunnels.
Description
Technical field
The present embodiments relate to the retransmission method and dress of technical field of the computer network, more particularly to a kind of data message
Put.
Background technology
With the development of virtual LAN, using virtual expansible LAN (virtual extensible local
Area network, abbreviation VXLAN) technology increasingly attracted attention by the method for VXLAN tunnels forwarding data packets.
As shown in Figure 1, at present in the repeating process of data message, starting point switching equipment (the i.e. friendship in Fig. 1 in network
Exchange device 1) by the input port of the switching equipment 1 receive service server 1 send data message after, which sets
Standby 1 VXLAN tunnel tables in the switching equipment 1, VXLAN interfaces table, routing table, medium education (media
Access control, MAC) table, determine VXLAN tunnel headers, which includes VXLAN heads, user data
Datagram protocol (User Datagram Protocol, abbreviation UDP) head, Internet protocol (internet protocol, abbreviation
IP) head and MAC header, then switching equipment 1 encapsulate the switching equipment 1 according to its definite VXLAN tunnel header and receive
The data message arrived, i.e., add above-mentioned VXLAN tunnel headers to the data message, and switching equipment 1 again passes through the data message
VXLAN tunnels are sent to terminal switching equipment (i.e. switching equipment 2 in Fig. 1), and switching equipment 2 receives switching equipment 1 and passes through
VXLAN tunnels send it is encapsulated after data message after, decapsulate the data message after the encapsulation, that is, delete data message
VXLAN tunnel headers, the data message after decapsulating then is sent to business by the output port of the switching equipment 2
Server 2, so as to complete forwarding of the data message in VXLAN.
However, in the above method, during forwarding data packets, starting point switching equipment need to determine VXLAN tunnels
Head, therefore above-mentioned starting point switching equipment needs to configure VXLAN tunnel tables, VXLAN interfaces table, routing table and MAC table etc. firmly
Part resource, and configuration VXLAN agreements and Routing Protocol are also needed, the configuration and management of network are more complicated, so as to also make total
It is more complicated according to the repeating process of message.
The content of the invention
The application provides a kind of retransmission method and device of data message, can simplify the configuration and management of network, reduces
The complexity of switching equipment forwarding data packets, while the cost of switching equipment can be reduced.
To reach above-mentioned purpose, the application adopts the following technical scheme that:
First aspect, there is provided a kind of retransmission method of data message, this method can include:SDN controllers determine first
Flow table and the second flow table;And the SDN controllers send the first flow table to the first switching equipment, and are sent out to the second switching equipment
The second flow table is sent, the first flow table includes the address information of at least one data message and the packaging information of at least one data message
Between correspondence, the address information of the second flow table including at least one data message and the deblocking of at least one data message
The correspondence between information is filled, which is used for after indicating that the first switching equipment receives the first data message, envelope
The first data message is filled, which is used for after indicating that the second switching equipment receives the first data message after encapsulating,
The first data message after decapsulation encapsulation, the first switching equipment are the starting point switching equipment in VXLAN tunnels, and the second exchange is set
Standby is the terminal switching equipment in VXLAN tunnels.
Second aspect, there is provided a kind of retransmission method of data message, this method can include:First switching equipment receives
The flow table that SDN controllers are sent, the flow table include the address information of at least one data message and at least one data message
Correspondence between packaging information, first switching equipment are the starting point switching equipment in VXLAN tunnels;And first exchanges
Equipment receives the first data message;And first switching equipment according to the address information of the first data message, determined in flow table
The packaging information of first data message;And the first switching equipment is according to the packaging information of the first data message, the number of encapsulation first
According to message.
The third aspect, there is provided a kind of retransmission method of data message, this method can include:Second switching equipment receives
The flow table that SDN controllers are sent, the flow table include the address information of at least one data message and at least one data message
The correspondence between information is decapsulated, the second switching equipment is the terminal switching equipment in VXLAN tunnels;And second exchanges
Equipment receives the first data message after the encapsulation of the first switching equipment that the first switching equipment is sent by VXLAN tunnels;With
And second switching equipment according to the address information of the first data message after encapsulation, the solution of the first data message is determined in flow table
Packaging information;And the second switching equipment unseals first after above-mentioned dress encapsulation according to the decapsulation information of the first data message
Data message.
Fourth aspect, there is provided a kind of SDN controllers, including determining module and sending module.Wherein it is determined that module, is used for
Determine the first flow table and the second flow table, the first flow table includes the address information of at least one data message and at least one datagram
Correspondence between the packaging information of text, the second flow table include the address information of at least one data message and at least one number
According to the correspondence between the decapsulation information of message;Sending module, for sending the first flow table to the first switching equipment, and
To the second switching equipment send the second flow table, the first flow table be used for indicate the first switching equipment receive the first data message it
Afterwards, encapsulate the first data message, the second flow table be used for indicate the second switching equipment receive encapsulation after the first data message it
Afterwards, the first data message after above-mentioned dress encapsulation is unsealed, the first switching equipment is the starting point switching equipment in VXLAN tunnels, the
Two switching equipment are the terminal switching equipment in VXLAN tunnels.
5th aspect, there is provided a kind of first switching equipment, including receiving module, determining module and package module.Wherein, connect
Module is received, for receiving the flow table of SDN controllers transmission, and receives the first data message, which includes at least one number
According to the correspondence between the address information of message and the packaging information of at least one data message, the first switching equipment is
Starting point switching equipment in VXLAN tunnels;Determining module, it is true in flow table for the address information according to the first data message
The packaging information of fixed first data message;Package module, for the packaging information according to the first data message, encapsulates the first data
Message.
6th aspect, there is provided a kind of second switching equipment, including receiving module, determining module and decapsulation module.Wherein,
Receiving module, for receiving the flow table of SDN controllers transmission, and receives what the first switching equipment was sent by VXLAN tunnels
The first data message after the encapsulation of the first switching equipment, the address information of the flow table including at least one data message with least
Correspondence between the decapsulation information of one data message, the second switching equipment are that the terminal exchange in VXLAN tunnels is set
It is standby;Determining module, for the address information according to the first data message after encapsulation, determines the first data message in flow table
Decapsulate information;Decapsulation module, for the decapsulation information according to the first data message, decapsulates first after above-mentioned encapsulation
Data message.
7th aspect, there is provided a kind of SDN controllers, the SDN controllers include processor, transceiver and memory.Wherein,
Memory is used to store computer instruction, and when the SDN controllers are run, processor performs the computer of the memory storage
Instruction, so that the SDN controllers perform the retransmission method of the data message described in first aspect.
Eighth aspect, there is provided a kind of computer-readable recording medium, be stored with computer-readable recording medium one or
Multiple programs, one or more programs include computer instruction, when the processor of SDN controllers performs the computer instruction,
The SDN controllers perform the retransmission method of the data message described in above-mentioned first aspect.
9th aspect, there is provided a kind of computer program product including computer instruction, when the computer program product exists
When being run on SDN controllers so that the SDN controllers perform the retransmission method of the data message described in above-mentioned first aspect.
Tenth aspect, there is provided a kind of first switching equipment, first switching equipment include processor, transceiver and storage
Device.Wherein, memory is used to store computer instruction, and when first switching equipment is run, processor performs the memory and deposits
Computer instruction of storage, so that first switching equipment performs the retransmission method of the data message described in second aspect.
Tenth on the one hand, there is provided a kind of computer-readable recording medium, is stored with one in computer-readable recording medium
Or multiple programs, one or more programs include computer instruction, refer to when the processor of the first switching equipment performs the computer
When making, which performs the retransmission method of the data message described in above-mentioned second aspect.
12nd aspect, there is provided a kind of computer program product including computer instruction, when the computer program product
In the upper operation of the first switching equipment so that the data message performed described in above-mentioned second aspect of first switching equipment
Retransmission method.
13rd aspect, there is provided a kind of second switching equipment, second switching equipment include processor, transceiver and storage
Device.Wherein, memory is used to store computer instruction, and when second switching equipment is run, processor performs the memory and deposits
Computer instruction of storage, so that second switching equipment performs the retransmission method of the data message described in the third aspect.
Fourteenth aspect, there is provided a kind of computer-readable recording medium, is stored with one in computer-readable recording medium
Or multiple programs, one or more programs include computer instruction, refer to when the processor of the second switching equipment performs the computer
When making, which performs the retransmission method of the data message described in the above-mentioned third aspect.
15th aspect, there is provided a kind of computer program product including computer instruction, when the computer program product
In the upper operation of the second switching equipment so that the data message performed described in the above-mentioned third aspect of second switching equipment
Retransmission method.
The retransmission method and device for the data message that the application provides, SDN controllers can determine in different scenes
First flow table and the second flow table, and first flow table is sent into the first switching equipment, the second flow table is sent to the second exchange
Equipment, so that the first switching equipment can directly encapsulate its data message received, the second switching equipment according to the first flow table
Its data message received can be directly decapsulated according to the second flow table.Compared with prior art, since SDN controllers can be with
The flow table of data message is determined for encapsulation of data message or decapsulated, and flow table is sent to corresponding switching equipment, from
And the hardware resources such as VXLAN tunnel tables, VXLAN interfaces table, routing table and MAC table need not be reconfigured on switching equipment, also without
VXLAN agreements and Routing Protocol need to be run, so, it is possible to simplify the configuration and management of network, reduces switching equipment forwarding data
The complexity of message, while the cost of switching equipment can be reduced.
Brief description of the drawings
Fig. 1 is a kind of configuration diagram one of communication system provided in an embodiment of the present invention;
Fig. 2 is a kind of configuration diagram two of communication system provided in an embodiment of the present invention;
Fig. 3 is a kind of hardware schematic of server provided in an embodiment of the present invention;
Fig. 4 is a kind of hardware schematic of interchanger provided in an embodiment of the present invention;
Fig. 5 is a kind of retransmission method schematic diagram one of data message provided in an embodiment of the present invention;
Fig. 6 is VXLAN tunnel headers structure diagram provided in an embodiment of the present invention;
Fig. 7 is a kind of retransmission method schematic diagram two of data message provided in an embodiment of the present invention;
Fig. 8 is a kind of retransmission method schematic diagram three of data message provided in an embodiment of the present invention;
Fig. 9 is a kind of configuration diagram three of communication system provided in an embodiment of the present invention;
Figure 10 is a kind of retransmission method schematic diagram four of data message provided in an embodiment of the present invention;
Figure 11 is a kind of retransmission method schematic diagram five of data message provided in an embodiment of the present invention;
Figure 12 is a kind of structure diagram one of SDN controllers provided in an embodiment of the present invention;
Figure 13 is a kind of structure diagram two of SDN controllers provided in an embodiment of the present invention;
Figure 14 is a kind of structure diagram one of first switching equipment provided in an embodiment of the present invention;
Figure 15 is a kind of structure diagram two of first switching equipment provided in an embodiment of the present invention;
Figure 16 is a kind of structure diagram one of second switching equipment provided in an embodiment of the present invention;
Figure 17 is a kind of structure diagram two of second switching equipment provided in an embodiment of the present invention.
Embodiment
The retransmission method and device of data message provided in an embodiment of the present invention are described in detail below in conjunction with the accompanying drawings.
Term " first " and " second " in the specification and claims of the embodiment of the present invention etc. are to be used to distinguish not
Same object, rather than the particular order for description object.For example, the first flow table and the second flow table etc. are to be used to distinguish difference
Flow table, rather than for describing the particular order of flow table.
In embodiments of the present invention, " exemplary " or " such as " etc. word be used for represent example, illustration or explanation.This hair
Be described as in bright embodiment " exemplary " or " such as " any embodiment or designing scheme be not necessarily to be construed as than it
Its embodiment or designing scheme more preferably or more advantage.Specifically, use " exemplary " or " such as " etc. word be intended to
Related notion is presented in a concrete fashion.
In the description of the embodiment of the present invention, unless otherwise indicated, the implication of " multiple " refers to two or more.Example
Such as, multiple processing units refer to two or more processing units;Multiple systems refer to two or more systems.
In addition, the term " comprising " and " having " being previously mentioned in description of the invention and their any deformation, it is intended that
It is to cover non-exclusive include.Such as process, method, system, product or the equipment for containing series of steps or unit do not have
The step of having listed or unit are defined in, but alternatively further includes the step of other are not listed or unit, or alternatively
Further include for the intrinsic other steps of these processes, method, product or equipment or unit.
Based on background technology there are the problem of, the embodiment of the present invention provided the retransmission method and dress of a kind of data message
Put, software defined network (Software Defined Network, abbreviation SDN) controller can be sent to starting point switching equipment
For the flow table of encapsulation of data message, the flow table of decapsulation data message is sent to terminal switching equipment, is set so that starting point exchanges
It is standby can be according to the flow table encapsulation of data message of encapsulated message, and the data message after encapsulation is sent to terminal switching equipment,
Then terminal switching equipment decapsulates data message according to the flow table of decapsulation data message, and compared with prior art, exchange is set
It is standby to be above reconfigured at the hardware resources such as VXLAN tunnel tables, VXLAN interfaces table, routing table and MAC table, without operation
VXLAN agreements and Routing Protocol, so, it is possible to simplify the configuration and management of network, reduce switching equipment forwarding data packets
Complexity, while the cost of switching equipment can be reduced.
The retransmission method of data message provided in an embodiment of the present invention can be applied in communication system, and Fig. 2 show this
A kind of configuration diagram for communication system that inventive embodiments provide, in fig. 2, which includes the first switching equipment
10th, the second switching equipment 11 and SDN controllers 12, SDN controllers 12 can control the first switching equipment of management 10 and second to hand over
Exchange device 11, the first switching equipment transmit data by building VXLAN Tunnel Passings IP network to the second switching equipment 11.
SDN controllers provided in an embodiment of the present invention are, it is specified that flexible based on agreements such as open flows (OpenFlow)
Processing data packets specification, can control the connected switching equipment of management or routing device, for example, control switching equipment according to
Forwarding rule forwarding data packet or data message etc..SDN controllers are a kind of software application, it can be carried in the server,
To realize the function of the SDN controllers.Specifically introduced with reference to Fig. 3 and provided in an embodiment of the present invention carry SDN controllers
Server each component parts.As shown in figure 3, the server can include:Processor 20, memory 21 and communication interface
22 etc..
Processor 20:It is the core component of server, for the application in the operating system and server of runtime server
Program (including system application and third party application, such as SDN controllers).
In the embodiment of the present invention, processor 20 be specifically as follows central processing unit (Central Processing Unit,
Abbreviation CPU), general processor, digital signal processor (Digital Signal Processor, abbreviation DSP) is special integrated
Circuit (Application-Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field
Programmable Gate Array, abbreviation FPGA) or other programmable logic device, transistor logic, Hardware Subdivision
Part or its any combination, it can realize or perform described various exemplary with reference to content disclosed by the embodiments of the present invention
Logic block, module and circuit;Processor can also be the combination for realizing computing function, such as include one or more micro- places
Manage device combination, combination of DSP and microprocessor etc..
Memory 21:Available for storage software program and module, processor 20 is stored in memory 21 by operation
Software program and module so that the various function application of execute server and data processing.Memory 21 can include one
A or multiple computer-readable recording mediums.Memory 21 includes storing program area and storage data field, wherein, storing program area
Can storage program area, application program needed at least one function etc., storage data field can the data that create of storage server
Deng, in the embodiment of the present invention, the application program of SDN controllers can be included in memory 21, by run SDN controllers should
With program to control the other equipment in service chaining topological structure.
In the embodiment of the present invention, memory 21 can specifically include volatile memory (Volatile Memory), such as
Random access memory (Random-Access Memory, abbreviation RAM);The memory can also include nonvolatile memory
(Non-Volatile Memory), such as read-only storage (Read-Only Memory, abbreviation ROM), flash memory
(Flash Memory), hard disk (Hard Disk Drive, abbreviation HDD) or solid state hard disc (Solid-State Drive, referred to as
SSD);The memory can also include the combination of the memory of mentioned kind.
Communication interface 22:The interface circuit to communicate for server with other equipment, communication interface can be transmitting-receiving
Device, transmission circuit etc. have the structure of transmission-receiving function, and communication interface includes serial communication interface, parallel communication interface and network
Interface etc..
Switching equipment in the embodiment of the present invention can be interchanger, and Fig. 4 is interchanger provided in an embodiment of the present invention
Hardware schematic, as shown in figure 4, interchanger as shown in Figure 4 can include:The portions such as processor 30, memory 31 and interface 32
Part.Exemplary explanation is carried out to each component parts of interchanger below.
Processor 30:For by 32 forwarding data packets of interface, usually using ASIC cores in the processor 30 of interchanger
Piece, to realize the high speed forward of data message.
Memory 31:For storing the configuration of interchanger, operating system, retransmission protocol software etc..Can have in interchanger
Multiple memorizers, such as RAM, ROM, flash memory.
Interface 32:Also referred to as port, the port in interchanger can include forwarding port and control port.Port is forwarded to use
Data message is sent and received in interchanger;Control port is used for user or administrator is communicated using terminal with interchanger,
Complete the configuration to interchanger.
With reference to above-mentioned communication system as shown in Figure 2, based on VXLAN, in different scenes, SDN controllers can be with
Flow table is sent to the first switching equipment and the second switching equipment.Specifically, scene one is the deployment side of the switching equipment in VXLAN
Formula is that (the first switching equipment and the second switching equipment are two-layer switching equipment, and are connected with the first switching equipment for two layers of deployment
The first service server and the second service server for being connected with the second switching equipment between data forwarding mode be two layers
Forward mode);Scene two is that the deployment way of the switching equipment in VXLAN is that (the first switching equipment and second is handed over for three layers of deployment
Exchange device is still two-layer switching equipment, but to user realize or present be three layers of VXLAN gateway functions, i.e., exchange and set with first
Data forwarding mode between first service server of standby connection and the second service server being connected with the second switching equipment
For three layers of forward mode);Scene three is that the deployment way of the switching equipment in VXLAN is three layers of bridge joint deployment, i.e. communication system
In switching equipment be still two-layer switching equipment, but to service server present be three layers of VXLAN gateway functions or three layers
VXLAN bridging functionalities, i.e., the first service server being connected with the first switching equipment, the second industry being connected with the second switching equipment
Data forwarding mode between business server and the 3rd service server being connected with the 3rd switching equipment is three layers of forwarding mould
Formula, and can be as the bridging device to communicate between other switching equipment there are at least one switching equipment.
Respectively from the angle of different scenes in following embodiments, the forwarding of the data message proposed to the embodiment of the present invention
Method is described in detail.
With reference to Fig. 2, as shown in figure 5, in scene one and scene two, the forwarding of data message provided in an embodiment of the present invention
Method can include S101-S112:
S101, SDN controller determine the first flow table and the second flow table.
In the embodiment of the present invention, with reference to communication system as shown in Figure 2, the first switching equipment and the second switching equipment can be with
By the VXLAN tunnel communications established therebetween, there are specific message lattice by the data message of VXLAN tunnel transmissions
Formula, i.e., after the first switching equipment receives the data message from service server, the first switching equipment need to be by the datagram
Text is encapsulated as the message of specific format, the second switching equipment receive the data message after the encapsulation of the first switching equipment transmission it
Afterwards, the data message decapsulation after the second switching equipment need to encapsulate this.And the SDN controllers in communication system can be with control pipe
The first switching equipment and the second switching equipment in reason system.Specifically, SDN controllers can determine to be used for the first switching equipment
The flow table of encapsulation of data message and the flow table for the second switching equipment decapsulation data message.
Form above by the data message of VXLAN tunnel transmissions is:The packaging V XLAN again on the basis of original message
Tunnel header, VXLAN tunnel headers include VXLAN heads, User Datagram Protocol UDP heads, IP heads and MAC header,
It is illustrated in figure 6 VXLAN tunnel header structure diagrams.
In the embodiment of the present invention, the first flow table includes the address information of at least one data message and at least one datagram
Correspondence between the packaging information of text, the second flow table include the address information of at least one data message and at least one number
According to the correspondence between the decapsulation information of message.
Optionally, in above-mentioned scene one, SDN controllers can be determined according to the MAC Address of at least one data message
First flow table and the second flow table, wherein, the packaging information of the data message in the first flow table includes the VXLAN tunnels of data message
First port information in the content on head and the first switching equipment, the first port of first port information instruction are used to send
Data message (the first data message after encapsulating) after the encapsulation of the first switching equipment;Data message in second flow table
Decapsulating information includes the second port information on the second switching equipment, and the second port of second port information instruction is used to send out
Data message (i.e. the first data message) after the decapsulation of the second switching equipment of the warp let-off.
Optionally, in scene two, SDN controllers determine the first flow table according to the IP address of at least one data message
With the second flow table, wherein, the packaging information of the data message in the first flow table include the MAC Address of data message modified values,
First port information in the content of the VXLAN tunnel headers of data message and the first switching equipment, the first port information
The first port of instruction is used to send the data message (the first data message after encapsulating) after the encapsulation of the first switching equipment;
The decapsulation information of data message in second flow table is included in the modified values and the second switching equipment of the MAC Address of data message
Second port information, the second port information instruction second port be used for send through the second switching equipment decapsulation after number
According to message (i.e. the first data message).
S102, SDN controller send the first flow table to the first switching equipment.
S103, the first switching equipment receive the first flow table that SDN controllers are sent.
S104, SDN controller send the second flow table to the second switching equipment.
S105, the second switching equipment receive the second flow table that SDN controllers are sent.
It should be noted that the embodiment of the present invention can not limit the execution sequence of S102-S103 and S104-S105.I.e.
The embodiment of the present invention can first carry out S102-S103, perform S104-S105 afterwards;S104-S105 can also be first carried out, it is rear to perform
S102-S103;S102-S103 and S104-S105 can also be performed at the same time.
S106, the first switching equipment receive the first data message.
In the embodiment of the present invention, the first service server being connected with the first switching equipment is connected to the second switching equipment
The second service server when sending Layer 2 data message (the Layer 2 data message is referred to as the first data message below), the
First data message is sent to the first switching equipment of transmission by one service server, then is handed over through the first switching equipment and second
Exchange device is sent to the second service server.
S107, the first switching equipment determine the first data according to the address information of the first data message in the first flow table
The packaging information of message.
S108, the first switching equipment encapsulate the first data message according to the packaging information of the first data message.
In the embodiment of the present invention, since the first flow table includes the address information of at least one data message, and including
The packaging information of at least one data message corresponding with the address information of at least one data message, the first switching equipment
After receiving the first data message, the first switching equipment can be according to the address information of the first data message, from the first flow table
In determine packaging information corresponding with the address information of first data message, as the first data message packaging information, so
The first switching equipment is according to the packaging information of first data message afterwards, encapsulates the first datagram, last first switching equipment from
First data message after encapsulating is sent to the second switching equipment by the first port of first switching equipment.
Optionally, in scene one, the first switching equipment is according to the MAC Address of the first data message, from the first flow table
Determine the packaging information of the first data message;In scene two, the first switching equipment according to the IP address of the first data message, from
The packaging information of the first data message is determined in first flow table.
S109, the first switching equipment send the first data message after encapsulation to the second switching equipment by VXLAN tunnels.
S110, the second switching equipment receive the first data after the encapsulation that the first switching equipment is sent by VXLAN tunnels
Message.
S111, the second switching equipment are determined according to the address information of the first data message after encapsulation in the second flow table
The decapsulation information of first data message.
S112, the second switching equipment decapsulate the first number after the encapsulation according to the decapsulation information of the first data message
According to message.
With above-mentioned S108, since the second flow table includes the address information of at least one data message, and including with this
The decapsulation information of the corresponding at least one data message of address information of at least one data message, the second switching equipment connect
After receiving the first data message after the encapsulation of the first switching equipment transmission, the second switching equipment can be according to the after encapsulation
Address information (address information of the first data message after the encapsulation and the first datagram in above-mentioned S108 of one data message
The implication of the address information of text is identical), deblocking corresponding with the address information of first data message is determined from the second flow table
Information is filled, is the decapsulation information of the first data message, then the second switching equipment is according to the deblocking of first data message
Information is filled, decapsulates the first data message after the encapsulation, second end of the second last switching equipment from second switching equipment
First data message after decapsulating is sent to the second service server by mouth.
Optionally, with reference to Fig. 5, as shown in fig. 7, in scene one, above-mentioned S108 can specifically be realized by S108a:
S108a, the first switching equipment add the VXLAN tunnel headers of the first data message in the first data message.
In the embodiment of the present invention, it is specially to be added in the first data message that the first switching equipment, which encapsulates the first data message,
The content of the VXLAN tunnel headers of the first data message obtained from the packaging information of the first data message, so as to be sealed
The first data message after dress.
As shown in fig. 7, in scene one, above-mentioned S112 can specifically be realized by S112a:
S112a, the second switching equipment delete the VXLAN tunnel headers of the first data message after encapsulation.
In the embodiment of the present invention, first datagram stationery of the first switching equipment decapsulation after the encapsulation of the first switching equipment
Body is:VXLAN in the first data message after encapsulation is deleted, the first data message after being decapsulated.
Optionally, with reference to Fig. 5, as shown in figure 8, in scene two, above-mentioned S108 can specifically be realized by S108b:
S108b, the first switching equipment change the first data message according to the modified values of the MAC Address of the first data message
MAC Address, and add in the first data message the VXLAN tunnel headers of the first data message.
It should be noted that in the embodiment of the present invention, since in scene one, the first service server and the second business take
Data forwarding mode between business device is two layers of forward mode (i.e. based on MAC Address forwarding data packets), the first switching equipment
The first data message is received, the source MAC of first data message is the MAC Address of the first service server, this
The target MAC (Media Access Control) address of one data message is the MAC Address of the second service server, and therefore, the first switching equipment is in encapsulation the
During one data message, it is not necessary to modify the MAC Address of first data message.
In the embodiment of the present invention, in scene two, the data between the first service server and the second service server turn
Hair pattern is three layers of forward mode (being based on IP address forwarding data packets), and the first switching equipment receives the first data message,
When the first switching equipment encapsulates first data message, which need to by the source MAC of first data message
Location is revised as the MAC Address of the first switching equipment by the MAC Address of the first service server, by the target of the first data message
MAC Address is revised as the MAC Address of the second switching equipment by the MAC Address of the first switching equipment, then adds the first data again
The VXLAN tunnel headers of message, the first data message after being encapsulated.
As shown in figure 8, in scene two, above-mentioned S112 can specifically be realized by S112b:
S112b, the second switching equipment delete the VXLAN tunnel headers of the first data message after encapsulation, and according to the
The modified values of the MAC Address of one data message, change the MAC Address of the first data message.
In the embodiment of the present invention, the first data message that the second switching equipment decapsulates after above-mentioned encapsulation is specially:Will envelope
VXLAN in the first data message after dress is deleted, then by the source MAC of the first data message by the first switching equipment
MAC Address is revised as the MAC Address of the second switching equipment, by the target MAC (Media Access Control) address of the first data message by the second switching equipment
MAC Address be revised as the MAC Address of the second service server.
As shown in figure 9, the configuration diagram of the communication system for scene three, in fig.9, the first switching equipment are the second friendships
Bridging device between exchange device and the 3rd switching equipment, can not directly lead between the second switching equipment and the 3rd switching equipment
Letter, and the first switching equipment can communicate with the second switching equipment, the first switching equipment can also communicate with the 3rd switching equipment,
Such first switching equipment can be as the bridging device between the second switching equipment and the 3rd switching equipment, the 3rd switching equipment
When sending datagram to the second switching equipment, data message is first sent to the first switching equipment by the 3rd switching equipment, by
Data message is sent to the second switching equipment by one switching equipment again.
With reference to Fig. 9, as shown in Figure 10, in scene three, the retransmission method of data message provided in an embodiment of the present invention can
With including S201-S218:
S201, SDN controller determine the first flow table, the second flow table and the 3rd flow table.
In the embodiment of the present invention, the first switching equipment is the second switching equipment and the bridging device of the 3rd switching equipment, is somebody's turn to do
First flow table includes corresponding between the address information and the packaging information of at least one data message of at least one data message
Relation;Second flow table is included between the address information of at least one data message and the decapsulation information of at least one data message
Correspondence;3rd flow table includes the address information of at least one data message and believes with the encapsulation of at least one data message
Correspondence between breath.
Other descriptions for S201 may refer to for the associated description of S101 in above-described embodiment, no longer superfluous herein
State.
S202, SDN controller send the first flow table to the first switching equipment.
S203, the first switching equipment receive the first flow table that SDN controllers are sent.
S204, SDN controller send the second flow table to the second switching equipment.
S205, the second switching equipment receive the second flow table that SDN controllers are sent.
S206, SDN controller send the 3rd flow table to the 3rd switching equipment.
S207, the 3rd switching equipment receive the 3rd flow table that SDN controllers are sent.
It should be noted that the embodiment of the present invention can not limit S202-S203, S204-S205 and S206-S207
Execution sequence.
It should be noted that in scene three, the first switching equipment, the second switching equipment and the 3rd switching equipment are two
Layer exchange device, the data forwarding mode between the first service server, the second service server and the 3rd service server
For three layers of forward mode (i.e. based on IP address forwarding data packets), wherein, the first switching equipment is the second switching equipment and
Bridging device between three switching equipment.
S208, the 3rd switching equipment receive the first data message.
S209, the 3rd switching equipment determine the first datagram according to the IP address of the first data message in the 3rd flow table
The packaging information of text.
In the embodiment of the present invention, the packaging information of the data message in the 3rd flow table includes the MAC Address of data message
The 3rd port information on modified values, the content of the VXLAN tunnel headers of data message and the 3rd switching equipment.3rd port
3rd port of information instruction is used to send the data message after the encapsulation of the 3rd switching equipment.
The packaging information of the first data message of S210, the 3rd switching equipment in the 3rd flow table, encapsulates the first data
Message.
It is understood that the 3rd switching equipment receives what the service server being connected with the 3rd switching equipment was sent
After first data message, the 3rd switching equipment encapsulates the method for the first data message and the first switching equipment in above-mentioned S108b
The method of the first data message is encapsulated similar to (the 3rd switching equipment need to be by the source MAC of first data message by first
The MAC Address of service server is revised as the MAC Address of the 3rd switching equipment), unlike above-mentioned S108b, the 3rd exchanges
The target MAC (Media Access Control) address of first data message is revised as the MAC Address of the first switching equipment by equipment, other descriptions for S210
The associated description of above-mentioned S108b is may refer to, details are not described herein again.
S211, the 3rd switching equipment are by the VXLAN tunnels between the 3rd switching equipment and the first switching equipment, to
One switching equipment sends the first data message after encapsulation.
In the embodiment of the present invention, the 3rd switching equipment can be from the 3rd port on the 3rd switching equipment by after encapsulation
First data message is sent to the first switching equipment.
S212, the first switching equipment receive the first data message after the encapsulation that the 3rd switching equipment is sent.
S213, the first switching equipment determine the according to the IP address of the first data message after encapsulation in the first flow table
The packaging information of one data message.
In the embodiment of the present invention, in scene three, the packaging information of the data message in the first flow table (can be understood as replacing
Change packaging information) include the modified values of MAC Address of the data message after the encapsulation of the 3rd switching equipment, data message
First port information in the modification content of VXLAN tunnel headers and the first switching equipment.
The packaging information of the first data message of S214, the first switching equipment in the first flow table, replace encapsulation this
One data message.
S215, the first switching equipment are by the VXLAN tunnels between first switching equipment and the second switching equipment, to
Two switching equipment send the first data message after replacing encapsulation.
In the embodiment of the present invention, the first switching equipment can will be replaced from the first port on first switching equipment and encapsulated
The first data message afterwards is sent to the second switching equipment.
S216, the second switching equipment receive the first data message after the replacement encapsulation that the first switching equipment is sent.
S217, the second switching equipment according to the replacement encapsulate after the first data message IP address, in the second flow table
Determine the decapsulation information of the first data message.
In the embodiment of the present invention, the decapsulation information of the data message in the second flow table includes the MAC Address of data message
Modified values and the second switching equipment on second port information.
The decapsulation information of the first data message of S218, the second switching equipment in the second flow table, decapsulation are replaced
The first data message after encapsulation.
It is understood that the second equipment receives the first data message after the replacement encapsulation of the first switching equipment transmission
Afterwards, the second switching equipment decapsulates the method for the first data message after replacement encapsulation and exchanges and set with above-mentioned S112b second
The method of the first data message of standby decapsulation is similar, and the associated description of above-mentioned S112b is may refer to for the specific descriptions of S218,
Details are not described herein again.
In the embodiment of the present invention, above-mentioned the first number after the first switching equipment replaces encapsulation of the second switching equipment decapsulation
According to message, after the first data message after being decapsulated, the second switching equipment can be from the second of second switching equipment
First data message after decapsulating is sent to the service server being connected with second switching equipment by port.
Optionally, with reference to Figure 10, as shown in figure 11, above-mentioned S214 can be realized by S214a:
S214a, the first switching equipment change the first data message according to the modified values of the MAC Address of the first data message
MAC Address, and the modification content of the VXLAN tunnel headers according to the first data message, the first data message of modification
VXLAN tunnel headers.
In the embodiment of the present invention, the first switching equipment receives the first data message after the encapsulation of the 3rd switching equipment,
The source MAC of first data message need to be revised as first by first switching equipment by the MAC Address of the 3rd switching equipment
The MAC Address of switching equipment, is revised as by the destination-mac address of the first data message by the MAC Address of the first switching equipment
The MAC Address of two switching equipment, then further according to the first data message VXLAN tunnel headers modification content, modification first
The VXLAN tunnel headers of data message, obtain replacing the first data message after encapsulation, last first switching equipment replaces this
Data message after encapsulation is sent to the second switching equipment.
The modified values of the modification content of above-mentioned VXLAN tunnel headers including MAC header, the modified values on IP heads and
The modified values on VXLAN heads.
The retransmission method of data message provided in an embodiment of the present invention, SDN controllers can determine in different scenes
First flow table and the second flow table, and first flow table is sent into the first switching equipment, the second flow table is sent to the second exchange
Equipment, so that the first switching equipment can directly encapsulate its data message received, the second switching equipment according to the first flow table
Its data message received can be directly decapsulated according to the second flow table.Compared with prior art, since SDN controllers can be with
The flow table of data message is determined for encapsulation of data message or decapsulated, and flow table is sent to corresponding switching equipment, from
And the hardware resources such as VXLAN tunnel tables, VXLAN interfaces table, routing table and MAC table need not be reconfigured on switching equipment, also without
VXLAN agreements and Routing Protocol need to be run, so, it is possible to simplify the configuration and management of network, reduces switching equipment forwarding data
The complexity of message, while the cost of switching equipment can be reduced.
In the case where dividing each function module using corresponding each function, Figure 12 shows involved in above-described embodiment
And SDN controllers a kind of possible structure diagram, as shown in figure 12, which can include:Determining module 40
With sending module 41.
Determining module 40, for determining the first flow table and the second flow table, which includes at least one data message
Address information and at least one data message packaging information between correspondence, which includes at least one number
According to the correspondence between the address information of message and the decapsulation information of at least one data message, such as above-mentioned determining module
40 can be used for supporting SDN controllers to perform S101 and S201 in above method embodiment;Sending module 41, for first
Switching equipment sends the first flow table, and sends the second flow table to the second switching equipment, which is used to indicate that first hands over
After exchange device receives the first data message, the first data message is encapsulated, which is used to indicate the second switching equipment
After receiving the first data message after encapsulation, the first data message after above-mentioned dress encapsulation, first switching equipment are unsealed
For the starting point switching equipment in VXLAN tunnels, which is the terminal switching equipment in VXLAN tunnels, such as is sent out
Send module 41 can be used for supporting SDN controllers perform S102, S104, S202, S204 in above method embodiment and
S206.Wherein, all related contents for each step that above method embodiment is related to can quote corresponding function module
Function describes, and details are not described herein.
Optionally, if the deployment way of the switching equipment in VXLAN is two layers of deployment, above-mentioned determining module 40 is specific to use
In the MAC Address according at least one data message, the first flow table and the second flow table, the packaging information of a data message are determined
First port information in the content and the first switching equipment of VXLAN tunnel headers including data message, the first end message
The first port of breath instruction is used to send the data message after the encapsulation of the first switching equipment, the decapsulation letter of a data message
Breath includes the second port information on the second switching equipment, and the second port of second port information instruction is used to send to be handed over through first
Data message after exchange device encapsulation.
Optionally, if the deployment way of the switching equipment in VXLAN is three layers of deployment, above-mentioned determining module 40 is specific to use
In the IP address according at least one data message, the first flow table and the second flow table, the packaging information of a data message are determined
On the modified values of MAC Address including data message, the content of the VXLAN tunnel headers of data message and the first switching equipment
First port information, first port information instruction first port be used for send through the first switching equipment encapsulation after datagram
Text, the decapsulation information of a data message include the in the modified values and the second switching equipment of the MAC Address of data message
Two-port netwerk information, the second port of second port information instruction are used to send the datagram after the decapsulation of the second switching equipment
Text.
Optionally, if the deployment way of the switching equipment in VXLAN is disposed for three layers of bridge joint, above-mentioned determining module 40, tool
Body is used for the IP address according at least one data message, determines the first flow table and the second flow table, the encapsulation of a data message
Information includes the modified values of MAC Address, the modification content of the VXLAN tunnel headers of data message and the first friendship of data message
First port information on exchange device, the first port of first port information instruction are used to send after the encapsulation of the first switching equipment
Data message, the decapsulation information of a data message includes the modified values of the MAC Address of data message and second and exchanges and set
Standby upper second port information, the second port of second port information instruction are used to send after the decapsulation of the second switching equipment
Data message.
In the case of using integrated unit, Figure 13 shows the one of SDN controllers involved in above-described embodiment
The possible structure diagram of kind.As shown in figure 13, SDN controllers can include:Processing module 50 and communication module 51.Handle mould
The action that block 50 can be used for SDN controllers is controlled management, for example, processing module 50 can be used for supporting SDN controls
Device performs the S101 and S201 in above method embodiment, and/or other processes for techniques described herein.Communicate mould
Block 51 can be used for the communication for supporting SDN controllers and other network entities, such as communication module 51 can be used for supporting SDN controls
Device processed performs S102, S104, S202, S204 and S206 in above method embodiment.Optionally, as shown in figure 13, the SDN
Controller can also include memory module 52, for storing the program code and data of SDN controllers.
Wherein, processing module 50 can be that processor or controller (such as can be above-mentioned processors as shown in Figure 3
20).Communication module 51 can be that transceiver, transmission circuit or communication interface etc. (such as can be above-mentioned communication as shown in Figure 3
Interface 22).Memory module 52 can be memory (such as can be above-mentioned memory 21 as shown in Figure 3).
When processing module 50 is processor, communication module 51 is transceiver, when memory module 52 is memory, processor,
Transceiver can be connected with memory by bus.Bus can be Peripheral Component Interconnect standard (peripheral
Component interconnect, PCI) bus or expanding the industrial standard structure (extended Industry standard
Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, controlling bus etc..
In the case where dividing each function module using corresponding each function, Figure 14 shows involved in above-described embodiment
And the first switching equipment a kind of possible structure diagram, as shown in figure 14, which can include:Receive
Module 60, determining module 61 and package module 62.
Receiving module 60, for receiving the flow table of SDN controllers transmission, and receives the first data message, the flow table bag
The correspondence between the address information of at least one data message and the packaging information of at least one data message is included, this first
Switching equipment be VXLAN tunnels in starting point switching equipment, such as receiving module 60 can be used for support the first switching equipment hold
S103, S106, S203 and S212 in row above method embodiment;Determining module 61, for according to the first data message
Address information, determines that the packaging information of the first data message, such as determining module 61 can be used for supporting first to hand in flow table
Exchange device performs the S107 and S213 in above method embodiment;Package module 62, for the encapsulation according to the first data message
Information, encapsulates the first data message, such as package module 62 can be used for supporting the first switching equipment to perform the above method and implement
S108 (including S108a or S108b) and S214 (including S214a) in example.Wherein, each step that above method embodiment is related to
Rapid all related contents can quote the function description of corresponding function module, and details are not described herein.
Optionally, if the deployment way of the switching equipment in VXLAN is two layers of deployment, the packaging information of a data message
First port information in the content and the first switching equipment of VXLAN tunnel headers including data message, the first end message
The first port of breath instruction is used to send the data message after the encapsulation of the first switching equipment;Above-mentioned package module 62, it is specific to use
In the VXLAN tunnel headers that the first data message is added in the first data message.
Optionally, if the deployment way of the switching equipment in VXLAN is three layers of deployment, the packaging information of a data message
On the modified values of MAC Address including data message, the content of the VXLAN tunnel headers of data message and the first switching equipment
First port information, the first port information instruction first port be used for send through the first switching equipment encapsulation after data
Message;Above-mentioned package module 62, specifically for the modified values of the MAC Address according to the first data message, changes the first datagram
The MAC Address of text, and add in the first data message the VXLAN tunnel headers of the first data message.
Optionally, if the deployment way of the switching equipment in VXLAN is disposed for three layers of bridge joint, the encapsulation of a data message
Information includes the modified values of MAC Address, the modification content of the VXLAN tunnel headers of data message and the first friendship of data message
First port information on exchange device, the first port of first port information instruction is used to send to be encapsulated through the first switching equipment
Data message afterwards;Above-mentioned package module 62, specifically for the modified values of the MAC Address according to the first data message, modification the
The MAC Address of one data message, and the modification content of the VXLAN tunnel headers according to the first data message, the number of modification first
According to the VXLAN tunnel headers of message.
In the case of using integrated unit, Figure 15 shows the first switching equipment involved in above-described embodiment
A kind of possible structure diagram.As shown in Figure 10, the first switching equipment can include:Processing module 70 and communication module 71.
The action that processing module 70 can be used for the first switching equipment is controlled management, for example, processing module 70 can be used for propping up
Hold the first switching equipment and perform S107, S108 (including S108a or S108b), S213 and S214 in above method embodiment
(including S214a), and/or other processes for techniques described herein.Communication module 71 can be used for supporting first to hand over
The communication of exchange device and other network entities, such as communication module 71 can be used for supporting the first switching equipment to perform the above method
S103, S106, S203 and S212 in embodiment.Optionally, as shown in figure 15, which can also include depositing
Module 72 is stored up, for storing the program code and data of the first switching equipment.
Wherein, processing module 70 can be that processor or controller (such as can be above-mentioned processors as shown in Figure 4
30).Communication module 71 can be that transceiver, transmission circuit or communication interface etc. (such as can be above-mentioned communication as shown in Figure 4
Interface 32).Memory module 72 can be memory (such as can be above-mentioned memory 41 as shown in Figure 4).
When processing module 70 is processor, communication module 71 is transceiver, when memory module 72 is memory, processor,
Transceiver can be connected with memory by bus.Bus can be pci bus or eisa bus etc..Bus can be divided into address
Bus, data/address bus, controlling bus etc..
In the case where dividing each function module using corresponding each function, Figure 16 shows involved in above-described embodiment
And the second switching equipment a kind of possible structure diagram, as shown in figure 16, which can include:Receive
Module 80, determining module 81 and decapsulation module 82.
Receiving module 80, for receiving the flow table of SDN controllers transmission, and receives the first switching equipment and passes through VXLAN
The first data message after the encapsulation of the first switching equipment that tunnel is sent, the flow table include the address of at least one data message
Correspondence between information and the decapsulation information of at least one data message, second switching equipment are the first VXLAN tunnels
Terminal switching equipment in road, such as receiving module 80 can be used for supporting the second switching equipment to perform in above method embodiment
S105, S110, S205 and S216;Determining module 81, for the address information according to the first data message after encapsulation,
Determine that the decapsulation information of the first data message, such as determining module 81 can be used for supporting the second switching equipment to perform in flow table
S111 and S217 in above method embodiment;Decapsulation module 82, for the decapsulation information according to the first data message, solution
The first data message after stating dress encapsulation is sealed up, such as decapsulation module 82 can be used for supporting that the execution of the second switching equipment is above-mentioned
S112 (including S112a or S112b) and S218 in embodiment of the method.Wherein, each step that above method embodiment is related to
All related contents can quote corresponding function module function description, details are not described herein.
Optionally, if the deployment way of the switching equipment in VXLAN is two layers of deployment, the decapsulation letter of a data message
Breath includes the second port information on the second switching equipment, and the second port of second port information instruction is used to send to be handed over through second
Data message after exchange device decapsulation;Above-mentioned decapsulation module 82, specifically for deleting the first data message after encapsulating
VXLAN tunnel headers.
Optionally, if the deployment way of the switching equipment in VXLAN is three layers of deployment or the portion of the switching equipment in VXLAN
Management side formula is disposed for three layers of bridge joint, the decapsulation information of a data message include the modified values of the MAC Address of data message with
Second port information on second switching equipment, the second port of second port information instruction are used to send through the second switching equipment
Data message after decapsulation;Above-mentioned decapsulation module 82, the VXLAN tunnels specifically for deleting the first data message after encapsulating
Road head, and the modified values of the MAC Address according to the first data message, change the MAC Address of the first data message.
In the case of using integrated unit, Figure 17 shows the second switching equipment involved in above-described embodiment
A kind of possible structure diagram.As shown in figure 17, the second switching equipment can include:Processing module 90 and communication module 91.
The action that processing module 90 can be used for the second switching equipment is controlled management, for example, processing module 70 can be used for propping up
Hold the second switching equipment and perform S111, S112 (including S112a or S112b), S217 and S218 in above method embodiment,
And/or other processes for techniques described herein.Communication module 91 can be used for supporting the second switching equipment and other
The communication of network entity, such as communication module 91 can be used for supporting the second switching equipment to perform in above method embodiment
S105, S110, S205 and S216.Optionally, as shown in figure 17, which can also include memory module 92,
For storing the program code and data of the second switching equipment.
Wherein, processing module 90 can be that processor or controller (such as can be above-mentioned processors as shown in Figure 4
30).Communication module 91 can be that transceiver, transmission circuit or communication interface etc. (such as can be above-mentioned communication as shown in Figure 4
Interface 32).Memory module 92 can be memory (such as can be above-mentioned memory 41 as shown in Figure 4).
When processing module 90 is processor, communication module 91 is transceiver, when memory module 92 is memory, processor,
Transceiver can be connected with memory by bus.Bus can be pci bus or eisa bus etc..Bus can be divided into address
Bus, data/address bus, controlling bus etc..
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real
It is existing.When being realized using software program, can realize in the form of a computer program product whole or in part.The computer journey
Sequence product includes one or more computer instructions.It is all or part of when loading and perform on computers the computer instruction
Ground is produced according to the flow or function in the embodiment of the present invention.The computer can be all-purpose computer, special purpose computer, calculating
Machine network or other programmable devices.The computer instruction can store in a computer-readable storage medium, or from one
A computer-readable recording medium is transmitted to another computer-readable recording medium, for example, the computer instruction can be from one
A web-site, computer, server or data center pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line
(digital subscriber line, abbreviation DSL)) mode or wireless (such as infrared, wireless, microwave etc.) mode be to another
A web-site, computer, server or data center's transmission.The computer-readable recording medium can be that computer can be deposited
The data storage such as any usable medium taken or the server integrated including one or more usable mediums, data center is set
It is standby.The usable medium can be magnetic medium (for example, floppy disk, disk, tape), optical medium (for example, digital video disk
(digital video disc, abbreviation DVD)) or semiconductor medium (such as solid state hard disc (solid state drives,
Abbreviation SSD)) etc..
The above description is merely a specific embodiment, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention answers the scope of the claims of being subject to.
Claims (22)
- A kind of 1. retransmission method of data message, it is characterised in that including:Software defined network SDN controllers determine the first flow table and the second flow table, and first flow table includes at least one data Correspondence between the address information of message and the packaging information of at least one data message, second flow table include Correspondence between the address information of at least one data message and the decapsulation information of at least one data message;The SDN controllers send first flow table to the first switching equipment, and send described the to the second switching equipment Two flow tables, first flow table are used for after indicating that first switching equipment receives the first data message, encapsulation described the One data message, second flow table are used to indicate that second switching equipment receives the first data message after the encapsulation Afterwards, the first data message after the encapsulation is decapsulated, first switching equipment is virtual expansible LAN VXLAN tunnels Starting point switching equipment in road, second switching equipment are the terminal switching equipment in the VXLAN tunnels.
- 2. according to the method described in claim 1, it is characterized in that, the deployment way of the switching equipment in the VXLAN is two Layer deployment, the SDN controllers determine the first flow table and the second flow table, including:The SDN controllers according to the MAC address of at least one data message, determine first flow table and Second flow table, the packaging information of a data message include content and the institute of the VXLAN tunnel headers of the data message State the first port information on the first switching equipment, the first port of the first port information instruction is used to sending through described the Data message after the encapsulation of one switching equipment, the decapsulation information of a data message include the on second switching equipment Two-port netwerk information, the second port of the second port information instruction are used to send after second switching equipment decapsulation Data message.
- 3. according to the method described in claim 1, it is characterized in that, the deployment way of the switching equipment in the VXLAN is three Layer deployment, the SDN controllers determine the first flow table and the second flow table, including:The SDN controllers determine first flow table and institute according to the internet protocol address of at least one data message The second flow table is stated, the packaging information of a data message includes modified values, the datagram of the MAC Address of the data message First port information in the content of the VXLAN tunnel headers of text and first switching equipment, the first port information The first port of instruction is used to send the data message after first switching equipment encapsulation, the decapsulation of a data message Information includes the second port information in the modified values and second switching equipment of the MAC Address of the data message, described The second port of second port information instruction is used to send the data message after second switching equipment decapsulation.
- 4. the method according to claim 1, it is characterised in that the deployment side of the switching equipment in the VXLAN Formula is disposed for three layers of bridge joint, and the SDN controllers determine the first flow table and the second flow table, including:The SDN controllers determine first flow table and institute according to the internet protocol address of at least one data message The second flow table is stated, the packaging information of a data message includes modified values, the datagram of the MAC Address of the data message First port information in the modification content of the VXLAN tunnel headers of text and first switching equipment, the first port The first port that information is used to indicate is used to send the data message after first switching equipment encapsulation, a data message Decapsulation information including the data message MAC Address modified values and second switching equipment on second end message Breath, the second port of the second port information instruction are used to send the datagram after second switching equipment decapsulation Text.
- A kind of 5. retransmission method of data message, it is characterised in that including:First switching equipment receives the flow table that software defined network SDN controllers are sent, and the flow table includes at least one data Correspondence between the address information of message and the packaging information of at least one data message, first switching equipment For the starting point switching equipment in virtual expansible LAN VXLAN tunnels;First switching equipment receives the first data message;First switching equipment determines first number according to the address information of first data message in the flow table According to the packaging information of message;First switching equipment encapsulates first data message according to the packaging information of first data message.
- 6. according to the method described in claim 5, it is characterized in that, the deployment way of the switching equipment in the VXLAN is two Layer deployment, the packaging information of a data message include the content and described first of the VXLAN tunnel headers of the data message First port information on switching equipment, the first port of the first port information instruction is used to send to be exchanged through described first Data message after equipment packages;First switching equipment encapsulates first data message according to the packaging information of first data message, including:First switching equipment adds the VXLAN tunnel headers of first data message in first data message.
- 7. according to the method described in claim 5, it is characterized in that, the deployment way of the switching equipment in the VXLAN is three Layer deployment, the packaging information of a data message include the modified values of the MAC address of the data message, institute State the first port information in the content and first switching equipment of the VXLAN tunnel headers of data message, described first The first port that port information is used to indicate is used to send the data message after first switching equipment encapsulation;First switching equipment encapsulates first data message according to the packaging information of first data message, including:First switching equipment changes first datagram according to the modified values of the MAC Address of first data message The MAC Address of text, and add in first data message VXLAN tunnel headers of first data message.
- 8. according to the method described in claim 5, it is characterized in that, the deployment way of the switching equipment in the VXLAN is three Layer bridge joint deployment, the packaging information of a data message include modified values, the datagram of the MAC Address of the data message First port information in the modification content of the VXLAN tunnel headers of text and first switching equipment, the first port The first port of information instruction is used to send the data message after first switching equipment encapsulation;First switching equipment encapsulates first data message according to the packaging information of first data message, including:First switching equipment changes first datagram according to the modified values of the MAC Address of first data message The MAC Address of text, and the modification content of the VXLAN tunnel headers according to first data message, modification first number According to the VXLAN tunnel headers of message.
- A kind of 9. retransmission method of data message, it is characterised in that including:Second switching equipment receives the flow table that software defined network SDN controllers are sent, and the flow table includes at least one data Correspondence between the address information of message and the decapsulation information of at least one data message, second exchange are set The standby terminal switching equipment in the virtual expansible LAN VXLAN tunnels;Second switching equipment receives the first switching equipment and is encapsulated by what VXLAN tunnels were sent through first switching equipment The first data message afterwards;Second switching equipment determines institute according to the address information of the first data message after the encapsulation in the flow table State the decapsulation information of the first data message;Second switching equipment decapsulates the first number after the encapsulation according to the decapsulation information of first data message According to message.
- 10. according to the method described in claim 9, it is characterized in that, the deployment way of the switching equipment in the VXLAN is two Layer deployment, the decapsulation information of a data message include the second port information on second switching equipment, and described second The second port of port information instruction is used to send the data message after second switching equipment decapsulation;Second switching equipment decapsulates the first number after the encapsulation according to the decapsulation information of first data message According to message, including:Second switching equipment deletes the VXLAN tunnel headers of the first data message after the encapsulation.
- 11. according to the method described in claim 10, it is characterized in that, the deployment way of the switching equipment in the VXLAN is The deployment way of three layers of deployment or the switching equipment in the VXLAN is disposed for three layers of bridge joint, the decapsulation of a data message Information includes the second end in the modified values and second switching equipment of the MAC address of the data message Message ceases, and the second port of the second port information instruction is used to send the data after second switching equipment decapsulation Message;Second switching equipment decapsulates the first number after the encapsulation according to the decapsulation information of first data message According to message, including:Second switching equipment deletes the VXLAN tunnel headers of the first data message after the encapsulation, and according to described The modified values of the MAC Address of first data message, change the MAC Address of first data message.
- 12. a kind of software defined network SDN controllers, it is characterised in that including determining module and sending module;The determining module, for determining the first flow table and the second flow table, first flow table includes at least one data message Address information and at least one data message packaging information between correspondence, second flow table include at least Correspondence between the address information of one data message and the decapsulation information of at least one data message;The sending module, for sending first flow table to the first switching equipment, and sends institute to the second switching equipment The second flow table is stated, first flow table is used for after indicating that first switching equipment receives the first data message, encapsulates institute The first data message is stated, second flow table is used to indicate that second switching equipment receives the first data after the encapsulation After message, the first data message after the encapsulation is decapsulated, first switching equipment is virtual expansible LAN Starting point switching equipment in VXLAN tunnels, second switching equipment are the terminal switching equipment in the VXLAN tunnels.
- 13. SDN controllers according to claim 12, it is characterised in that the deployment side of the switching equipment in the VXLAN Formula is two layers of deployment,The determining module, specifically for the MAC address according at least one data message, determines described One flow table and second flow table, the packaging information of a data message include the VXLAN tunnel headers of the data message First port information in content and first switching equipment, the first port of the first port information instruction are used to send Data message after first switching equipment encapsulation, the decapsulation information of a data message include the described second exchange and set Standby upper second port information, the second port of the second port information instruction is used to send seals through first switching equipment Data message after dress.
- 14. SDN controllers according to claim 12, it is characterised in that the deployment side of the switching equipment in the VXLAN Formula is three layers of deployment,The determining module, specifically for the internet protocol address according at least one data message, determines described first Flow table and second flow table, the packaging information of a data message include the modified values of the MAC Address of the data message, institute State the first port information in the content and first switching equipment of the VXLAN tunnel headers of data message, described first The first port of port information instruction is used to send the data message after first switching equipment encapsulation, a data message Decapsulation information including the data message MAC Address modified values and second switching equipment on second end message Breath, the second port of the second port information instruction are used to send the datagram after second switching equipment decapsulation Text.
- 15. SDN controllers according to claim 12, it is characterised in that the deployment side of the switching equipment in the VXLAN Formula is disposed for three layers of bridge joint,The determining module, specifically for the internet protocol address according at least one data message, determines described first Flow table and second flow table, the packaging information of a data message include the modified values of the MAC Address of the data message, institute The first port information in the modification content and first switching equipment of the VXLAN tunnel headers of data message is stated, it is described The first port of first port information instruction is used to send the data message after first switching equipment encapsulation, a data The decapsulation information of message includes the second end in the modified values and second switching equipment of the MAC Address of the data message Message ceases, and the second port of the second port information instruction is used to send the data after second switching equipment decapsulation Message.
- 16. a kind of first switching equipment, it is characterised in that including receiving module, determining module and package module;The receiving module, for receiving the flow table of software defined network SDN controllers transmission, and receives the first datagram Text, the flow table are included between the address information of at least one data message and the packaging information of at least one data message Correspondence, first switching equipment is the starting point switching equipment in virtual expansible LAN VXLAN tunnels;The determining module, for the address information according to first data message, determines described first in the flow table The packaging information of data message;The package module, for the packaging information according to first data message, encapsulates first data message.
- 17. the first switching equipment according to claim 16, it is characterised in that the portion of the switching equipment in the VXLAN Management side formula is two layers of deployment, and the packaging information of a data message includes the content of the VXLAN tunnel headers of the data message With the first port information on first switching equipment, the first port of the first port information instruction is used to send through institute State the data message after the encapsulation of the first switching equipment;The package module, the VXLAN tunnels specifically for adding first data message in first data message Head.
- 18. the first switching equipment according to claim 16, it is characterised in that the portion of the switching equipment in the VXLAN Management side formula is three layers of deployment, and the packaging information of a data message includes the MAC address of the data message Modified values, the first end message on the content of the VXLAN tunnel headers of the data message and first switching equipment Breath, the first port of the first port information instruction are used to send the data message after first switching equipment encapsulation;The package module, specifically for the modified values of the MAC Address according to first data message, modification first number According to the MAC Address of message, and add in first data message VXLAN tunnel headers of first data message.
- 19. the first switching equipment according to claim 16, it is characterised in that the portion of the switching equipment in the VXLAN Management side formula is disposed for three layers of bridge joint, the modified values of MAC Address of the packaging information including the data message of a data message, First port information in the modification content of the VXLAN tunnel headers of the data message and first switching equipment, institute The first port for stating the instruction of first port information is used to send the data message after first switching equipment encapsulation;The package module, specifically for the modified values of the MAC Address according to first data message, modification first number According to the MAC Address of message, and the modification content of the VXLAN tunnel headers according to first data message, modification described the The VXLAN tunnel headers of one data message.
- 20. a kind of second switching equipment, it is characterised in that including receiving module, determining module and decapsulation module;The receiving module, for receiving the flow table of software defined network SDN controllers transmission, and receives the first switching equipment The first data message after first switching equipment encapsulation sent by virtual expansible LAN VXLAN tunnels, institute Stating flow table is included between the address information of at least one data message and the decapsulation information of at least one data message Correspondence, second switching equipment are the terminal switching equipment in the VXLAN tunnels;The determining module, for the address information according to the first data message after the encapsulation, determines in the flow table The decapsulation information of first data message;The decapsulation module, for the decapsulation information according to first data message, decapsulates after the encapsulation One data message.
- 21. the second switching equipment according to claim 20, it is characterised in that the portion of the switching equipment in the VXLAN Management side formula is two layers of deployment, and the decapsulation information of a data message includes the second end message on second switching equipment Breath, the second port of the second port information instruction are used to send the datagram after second switching equipment decapsulation Text;The decapsulation module, specifically for the VXLAN tunnel headers of the first data message after the deletion encapsulation.
- 22. the second switching equipment according to claim 20, it is characterised in that the portion of the switching equipment in the VXLAN Management side formula is that the deployment way of three layers of deployment or switching equipment in the VXLAN is three layers of bridge joint deployment, a data message Decapsulation information including the data message MAC address modified values and second switching equipment on Second port information, the second port of second port information instruction is used to send to be decapsulated through second switching equipment Data message afterwards;The decapsulation module, the VXLAN tunnel headers specifically for deleting the first data message after the encapsulation, and root According to the modified values of the MAC Address of first data message, the MAC Address of modification first data message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810028069.3A CN107948077B (en) | 2018-01-11 | 2018-01-11 | Method and device for forwarding data message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810028069.3A CN107948077B (en) | 2018-01-11 | 2018-01-11 | Method and device for forwarding data message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107948077A true CN107948077A (en) | 2018-04-20 |
CN107948077B CN107948077B (en) | 2021-06-29 |
Family
ID=61938593
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810028069.3A Active CN107948077B (en) | 2018-01-11 | 2018-01-11 | Method and device for forwarding data message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107948077B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600106A (en) * | 2018-04-28 | 2018-09-28 | 北京邮电大学 | A kind of DEU data exchange unit and method of low time delay |
CN113098749A (en) * | 2020-01-08 | 2021-07-09 | 华为技术有限公司 | Message sending method, device and storage medium |
CN113992592A (en) * | 2021-10-27 | 2022-01-28 | 锐捷网络股份有限公司 | Message forwarding method and device, port drainage system and storage medium |
CN114301737A (en) * | 2021-12-29 | 2022-04-08 | 迈普通信技术股份有限公司 | Network configuration method and device, network equipment and computer readable storage medium |
CN115134315A (en) * | 2022-09-01 | 2022-09-30 | 珠海星云智联科技有限公司 | Message forwarding method and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104601432A (en) * | 2014-12-31 | 2015-05-06 | 杭州华三通信技术有限公司 | Method and device for transmitting message |
CN104660574A (en) * | 2013-11-22 | 2015-05-27 | 华为技术有限公司 | Configuration method, control entity and forwarding entity of data center |
US9215093B2 (en) * | 2012-10-30 | 2015-12-15 | Futurewei Technologies, Inc. | Encoding packets for transport over SDN networks |
CN105591955A (en) * | 2015-10-30 | 2016-05-18 | 杭州华三通信技术有限公司 | Message transmission method and device |
US20170019331A1 (en) * | 2015-07-13 | 2017-01-19 | Futurewei Technologies, Inc. | Internet Control Message Protocol Enhancement for Traffic Carried by a Tunnel over Internet Protocol Networks |
-
2018
- 2018-01-11 CN CN201810028069.3A patent/CN107948077B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9215093B2 (en) * | 2012-10-30 | 2015-12-15 | Futurewei Technologies, Inc. | Encoding packets for transport over SDN networks |
CN104660574A (en) * | 2013-11-22 | 2015-05-27 | 华为技术有限公司 | Configuration method, control entity and forwarding entity of data center |
CN104601432A (en) * | 2014-12-31 | 2015-05-06 | 杭州华三通信技术有限公司 | Method and device for transmitting message |
US20170019331A1 (en) * | 2015-07-13 | 2017-01-19 | Futurewei Technologies, Inc. | Internet Control Message Protocol Enhancement for Traffic Carried by a Tunnel over Internet Protocol Networks |
CN105591955A (en) * | 2015-10-30 | 2016-05-18 | 杭州华三通信技术有限公司 | Message transmission method and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108600106A (en) * | 2018-04-28 | 2018-09-28 | 北京邮电大学 | A kind of DEU data exchange unit and method of low time delay |
US10531168B2 (en) | 2018-04-28 | 2020-01-07 | Beijing University Of Posts And Telecommunications | Low-latency data switching device and method |
CN113098749A (en) * | 2020-01-08 | 2021-07-09 | 华为技术有限公司 | Message sending method, device and storage medium |
CN113992592A (en) * | 2021-10-27 | 2022-01-28 | 锐捷网络股份有限公司 | Message forwarding method and device, port drainage system and storage medium |
CN113992592B (en) * | 2021-10-27 | 2023-11-17 | 锐捷网络股份有限公司 | Message forwarding method and device, port drainage system and storage medium |
CN114301737A (en) * | 2021-12-29 | 2022-04-08 | 迈普通信技术股份有限公司 | Network configuration method and device, network equipment and computer readable storage medium |
CN114301737B (en) * | 2021-12-29 | 2023-10-24 | 迈普通信技术股份有限公司 | Network configuration method, device, network equipment and computer readable storage medium |
CN115134315A (en) * | 2022-09-01 | 2022-09-30 | 珠海星云智联科技有限公司 | Message forwarding method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN107948077B (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107948077A (en) | The retransmission method and device of a kind of data message | |
CN103888386B (en) | The transmission method and device, system of expansible virtual local area network packet | |
US8565124B2 (en) | Node, network, correspondence relationship generation method and frame transfer program | |
CN113207192B (en) | Message forwarding method and device | |
CN106254256B (en) | Data message forwarding method and equipment based on three layers of VXLAN gateway | |
CN107911258A (en) | A kind of realization method and system in the secure resources pond based on SDN network | |
CN104702479A (en) | Tunnel building method and device in Software Defined Network (SDN) | |
CN109412922B (en) | Method, forwarding device, controller and system for transmitting message | |
CN107404436A (en) | Communication means and device for virtual expansible LAN | |
CN105991387A (en) | Message transformation method and device of virtual extensible local area network (VXLAN) | |
US20170288998A1 (en) | Apparatus for processing network packet using service function chaining and method for controlling the same | |
CN113411243A (en) | Data transmission method and device | |
CN107113241A (en) | Route determining methods, network collocating method and relevant apparatus | |
CN109218200A (en) | A kind of message processing method and device | |
WO2021088433A1 (en) | Message processing method, device and system | |
CN109617995A (en) | To management system, method and the electronic equipment of tenant's cluster VPC internal container | |
CN106330779A (en) | Server, physical switch, and communication system | |
CN110311860A (en) | Multi-link load balance method and device under VXLAN | |
CN109936492A (en) | A kind of methods, devices and systems by tunnel transmission message | |
CN104486227B (en) | The system and method for IPv6 flexible deployments is realized by VxLAN technologies | |
CN106878072A (en) | A kind of message transmitting method and device | |
CN104038446B (en) | link discovery method and device | |
CN105227498A (en) | The method of stacking network switch and use thereof | |
CN110022263B (en) | Data transmission method and related device | |
CN109982384A (en) | Message forwarding method, device, the network equipment and medium |
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 |