CN105450521B - A kind of multi-path network stream real time dynamic optimization method of software definition - Google Patents

A kind of multi-path network stream real time dynamic optimization method of software definition Download PDF

Info

Publication number
CN105450521B
CN105450521B CN201511021471.1A CN201511021471A CN105450521B CN 105450521 B CN105450521 B CN 105450521B CN 201511021471 A CN201511021471 A CN 201511021471A CN 105450521 B CN105450521 B CN 105450521B
Authority
CN
China
Prior art keywords
network
message
path
network equipment
user terminal
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.)
Active
Application number
CN201511021471.1A
Other languages
Chinese (zh)
Other versions
CN105450521A (en
Inventor
谢海永
刘琼
高阳阳
吕博
杨阳朝
梁慜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Electronics Technology Group Corp CETC
Original Assignee
China Electronics Technology Group Corp CETC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Electronics Technology Group Corp CETC filed Critical China Electronics Technology Group Corp CETC
Priority to CN201511021471.1A priority Critical patent/CN105450521B/en
Publication of CN105450521A publication Critical patent/CN105450521A/en
Application granted granted Critical
Publication of CN105450521B publication Critical patent/CN105450521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/253Routing or path finding in a switch fabric using establishment or release of connections between ports

Abstract

The invention discloses a kind of multi-path network stream real time dynamic optimization methods of software definition, applied in wide area network, it include: the network equipment, user terminal and the server disposing controller, the intelligence software of multi-path network stream real time dynamic optimization in the wide area network and defining, wherein controller and the network equipment constitute the multi-path network framework that control plane is separated with the face of exchange, and user terminal accesses server by the multi-path network flow path of real time dynamic optimization under multi-path network framework;The network equipment automatically to network carry out network state measurement, and in real time or near real-time upload network state information to controller;The network topology structure of controller storage multi-path network framework, and real-time update network topology structure, and preferred path and corresponding flow table of each network flow under new network topology structure are calculated, and by corresponding flow table issuance to the network equipment, improve the efficiency of transmission of network link.

Description

A kind of multi-path network stream real time dynamic optimization method of software definition
Technical field
The invention belongs to a kind of real-time dynamics of the multi-path network stream of network communication technology field more particularly to software definition Optimization method.
Background technique
With the network size sharply expanded, the rich and varied network application of type, the structure and function of internet is increasingly Complexity, and network control ability increasingly weakens, and can't bear the heavy load particularly as the software-defined network equipment of the core of network, it is soft Part defines the thought of network (Software Defined Network, SDN) and framework comes into being.
SDN explicitly defines the ideological system separated in network control layer with forwarding, and control logic is concentrated on proprietary set Standby upper, and forwarding logic is then disposed by distribution mode, each doing his best, respectively applies its duty, the flexibility of network system and can expand Malleability finds full expression.But SDN provides only an Open Framework, concrete function and realization details are to be developed, such as control The connection state for the network topology reaction network equipment that device processed saves is only capable of for the network equipment switching chain disconnected Road;And when there is conspicuousness delay in link or when packet loss, then not can be carried out link selection or optimization, not can solve high delay and The problem of high packet loss link, significantly affects the experience of user.Therefore, it is necessary to a kind of multi-path network of software definition is flow-optimized Method solves above-mentioned technical problem of the existing technology.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of multi-path network stream real time dynamic optimization sides of software definition Method improves the efficiency of transmission of link, enhances user experience.
The technical solution adopted by the present invention is that:
A kind of multi-path network stream real time dynamic optimization method of software definition is applied in wide area network, comprising: multipath Network architecture construction step: controller, the intelligence software of multi-path network stream real time dynamic optimization are disposed in the wide area network The network equipment, user terminal and the server of definition, wherein the controller and the network equipment constitute control plane and exchange face Isolated multi-path network framework, the user terminal pass through the multipath of real time dynamic optimization under the multi-path network framework Server described in network flow path access;Monitor step in real time: the network equipment automatically carries out network state to network Measurement, and in real time or near real-time upload network state information to controller;The controller stores the multi-path network The network topology structure of framework, and the current network state information uploaded according to the network equipment, in conjunction with pre-defined or The network application scene characteristic information of person's default definition, network topology structure described in real-time update, and calculate each network flow and exist Preferred path and corresponding flow table under new network topology structure, and by corresponding flow table issuance to the network equipment.
Preferably, after the real time monitoring step, the method, further includes: the controller receives the user terminal Registration request;The user terminal requests to send the first message to the controller;It is described after the controller agrees to request User terminal specifies one in the network equipment, and calculates the optimal path of the user terminal to the server;It is described After user terminal carries out the first tunnel operations to first message, first message is sent to the network equipment;It is described It is described to searching whether to have after first message the second tunnel operations of progress after the network equipment receives first message The flow table of first message;If the network equipment has the flow table of first message, the network equipment is according to described The flow table of one message forwards first message, until first message reaches the server;The server receives institute After stating the first message, first message to the path of the server is sent according to the user terminal and returns to the second message to institute State user terminal.
Preferably, after the network equipment searches whether the flow table for having first message, the method is also wrapped Include: if the network equipment does not have the flow table of first message, first message is forwarded to by the network equipment The controller, the controller calculate the stream of optimal path and first message between the user terminal and server Table, and the flow table of first message is sent to the network equipment.
Preferably, the controller calculates the flow table of first message, specifically includes: the controller is according to the net Current network state information and the network application scene characteristic information that network equipment uploads calculate the flow table of first message.
Preferably, the controller specifies one in the network equipment for the user terminal, specifically includes:
The controller is according to the current network state information and the network application scene characteristic information to the use Specify a network equipment in family end;Alternatively, the controller is the use according to IP address similarity or network availability bandwidth Specify a network equipment in family end.
Preferably, the network equipment carries out the second tunnel operations to first message, and specifically include: the network is set It is standby successively to carry out the operation of solution header to first message and add header operation.
Preferably, the server sends first message to the path of the server according to the user terminal and returns Second message is specifically included to the user terminal: the network equipment carries out after adding header operation second message, according to The user terminal sends first message to the path of the server and returns to second message to the user terminal.
Preferably, after the server receives first message, first message is sent extremely according to the user terminal The path of the server returns to the second message to the user terminal, further includes the adjacent network device transparency of neighbor server Proxy step: when the adjacent network equipment receives first message, source IP address and the source of first message are saved TCP port to special list, and by first message source IP address and source tcp port replace with the neighbouring software and determine The IP address and designated ends slogan of the adopted network equipment;When the neighbouring software defined network equipment receives second message, Corresponding table item is searched in the special list according to the purpose TCP port number of second message to replace in second message Purpose IP address and purpose TCP port number.
Using above technical scheme, the present invention at least has the effect that the multipath of software definition provided by the invention Network flow real time dynamic optimization method improves high delay and height is lost by expanding the function of the network equipment and the controller The efficiency of transmission of packet rate link, enhances user experience.
Detailed description of the invention
Fig. 1 is the flow chart of the multi-path network stream real time dynamic optimization method of first embodiment of the invention software definition;
Fig. 2 is the schematic diagram of the multi-path network stream real time dynamic optimization method of second embodiment of the invention software definition;
Fig. 3 is the flow chart of the multi-path network stream real time dynamic optimization method of third embodiment of the invention software definition;
Fig. 4 is that controller and user terminal are handed in the multi-path network stream real time dynamic optimization method of software definition shown in Fig. 2 Mutual flow chart;
Fig. 5 is that controller updates flow table rule in the multi-path network stream real time dynamic optimization method of software definition shown in Fig. 3 Schematic diagram then;
Fig. 6 is the network equipment in the multi-path network stream real time dynamic optimization method of fourth embodiment of the invention software definition The schematic diagram that header changes when E-Packeting;
Fig. 7 is the schematic diagram of controller real time monitoring in the flow-optimized method of multi-path network of software definition shown in Fig. 1.
Specific embodiment
In order to be more clearly understood that the object, technical solutions and advantages of the present invention, hereinafter, referring to the drawings and the embodiments, to this Invention is described in further detail.It should be appreciated that described herein, specific examples are only used to explain the present invention, and unlimited Due to the present invention.
First embodiment
As shown in Figure 1, the multi-path network stream real time dynamic optimization method of software definition provided in this embodiment, is applied to In wide area network, specific steps include: multi-path network framework construction step S10: it is real to dispose multi-path network stream in the wide area network When dynamic optimization controller, the network equipment, user terminal and the server that intelligence software defines, wherein controller and the network equipment The multi-path network framework that control plane is separated with the face of exchange is constituted, user terminal passes through real time dynamic optimization in multi-path network framework Multi-path network flow path access server.Further include monitoring step S20 in real time: the network equipment automatically carries out network The measurement of network state, and in real time or near real-time upload network state information to controller;Controller stores the multipath The network topology structure of the network architecture, and the current network state information uploaded according to the network equipment, in conjunction with pre-defined or The network application scene characteristic information of person's default definition, real-time update network topology structure, and each network flow is calculated new Preferred path and corresponding flow table under network topology structure, and by corresponding flow table issuance to the network equipment.
Specifically, the present embodiment deploys the net that 1 controller Floodlight and multiple intelligence softwares define beyond the clouds Network equipment OVS constructs above-mentioned multi-path network framework, and carries out system testing, in particular scp for scp and http service Test scene deploys 1 dedicated cloud server server, in addition deploys the user terminal for needing to access network service, user It holds and server, the mesh of the present embodiment is accessed by the multi-path network flow path of real time dynamic optimization under multi-path network framework Be provided for user terminal message forwarding path, safeguard multi-path network stream optimum choice.
Above-mentioned network refers to Internet, and the network equipment that deployment controller and intelligence software define in the network is intended to Set up the multi-path network framework of control plane and the separation of exchange face.Wherein there is controller user terminal management function, network to set Standby management function and flow table optimum management function.Network device management function refers to that controller is stored with multi-path network framework Network topology structure, and the order of collection network status information is assigned in timing to the network equipment;Controller receives network and sets When the standby network state information uploaded, time-delay table is updated;When finding that the case where increasing or removing occurs in the network equipment, update The network topology structure of storage.Flow table optimum management function refers to generation and maintenance for the stream of network equipment forwarding user terminal message Table.
The function that the network equipment has includes tunnel operations, flow table operation, Transparent Proxy and network monitor function.Network prison When brake refers to that the network equipment receives the network state information collection order that controller issues, measurement and other network equipments Between network delay and packet loss and upload controller (referring to fig. 2).In addition, Transparent Proxy refers to the network of neighbor server The message that equipment interconnection is received carries out the processing of address and port numbers replacement, i.e., when the network equipment receives the report that user terminal is sent Wen Shi, the source IP address and source tcp port for saving message are replaced with the IP address of current network device to special list With designated ends slogan;And when the network equipment receives the message that server is sent, according to the destination slogan of message special The purpose IP address and purpose TCP port number of search corresponding table item replacement message in door list.
The function that user terminal has includes controller registration and message agent functionality.Controller registration refers to that user terminal accesses It registers when server to controller to use the multi-path network framework in the present embodiment.
Second embodiment
As shown in Fig. 2, Fig. 3 and Fig. 5, after monitoring step S20 in real time, the real-time dynamic of multi-path network stream of the present embodiment Optimization method, further includes: step S100: controller Floodlight receives the registration request of user terminal;Step S30: user terminal It requests to send the first message to controller;Step S40: after controller agrees to request, a network equipment is specified to user terminal OVS, and calculate the optimal path between user terminal Client and server S erver;Step S50: user terminal is to the first message After carrying out the first tunnel operations, the first message is sent to the network equipment;Step S60: after the network equipment receives the first message, The flow table for having the first message is searched whether after carrying out the second tunnel operations to the first message;Step S80: if the network equipment has The flow table of first message, then the network equipment forwards the first message until server according to the flow table of the first message;Step S90: clothes After business device receives the first message, the first message to the path of server is sent according to user terminal and returns to the second message to user terminal.
Need to use the flow table operation of the network equipment in the present embodiment, the network equipment carries out flow table to the message of forwarding Match, successful match then normally forwards, and it fails to match then takes passages message relevant information upload controller, so that controller carries out flow table Calculating and update (referring to 3rd embodiment).
The user terminal management function that the controller mentioned in first embodiment has, which refers to, receives user terminal registration information When, the search adjacent network equipment response user terminal high with the IP similarity of user terminal, IP similarity shows user terminal and the net Network device geographical location near, and safeguard active user end initiate service connection.
Preferably, controller specifies a network equipment to user terminal, specifically includes: controller is according to IP address phase A network equipment is specified to user terminal like degree.
User terminal carries out the message agent functionality that the first tunnel operations refer to user terminal, tool to the first message in the present embodiment Body, user terminal carries out protocol fields to the first message using the IP address of the adjacent network equipment of controller response and is encoded to 253 tunnel operations, after thus completing the first tunnel operations, directive sending to the neighbor network equipment.
As can be seen that the user terminal that the present embodiment on SDN Open Source Framework, is business access is expanded and realizes optimal path choosing It selects and is forwarded by optimal path, including returning to the data packet that server returns along optimal path road.
3rd embodiment
As shown in Figure 3 and Figure 5, in step S60: after the network equipment searches whether the flow table for having the first message, this reality Apply the multi-path network stream real time dynamic optimization method of example, further includes: step S70: the network equipment does not have the stream of the first message Table, then the first message is forwarded to controller by the network equipment, and controller recalculates the optimal road between user terminal and server After the flow table of diameter and the first message, the flow table of the first message is sent to the network equipment.It is to accuse that controller, which generates flow table function, When device processed receives network equipment upload unmatched first message, judged according to the source IP address of first message, if the use Family end belongs to registered user terminal, then calculates the optimal path for reaching server for user terminal, otherwise ignore the first of upload Message.
The function that controller maintenance flow table is used in the present embodiment refers to the net that controller updates time-delay table, updates storage Network topological structure or discovery network state or when application scenarios characteristic variations, according to current network topology structure, network-like State information and application scenarios characteristic information recalculate the new flow path for generating the first message, and update the flow table of the first message.
Fourth embodiment
As shown in fig. 6, user terminal carries out the first tunnel operations to the first message of institute, specifically include: user terminal is reported to first Text carries out plus header operation.
In addition, after server receives the first message, the first message to the path of server is sent according to user terminal and returns to the Two messages are to user terminal, and further include the adjacent network device transparency proxy step of neighbor server: adjacent network equipment receives When the first message, the source IP address and source tcp port for saving the first message are to special list, and by the source IP in the first message Location and source tcp port replace with the IP address and designated ends slogan of adjacent network equipment;Adjacent network equipment receives the second report Wen Shi searches for the purpose in corresponding table item the second message of replacement according to the purpose TCP port number of the second message in special list IP address and purpose TCP port number.
In addition, the network equipment carries out the second tunnel operations to the first message, specifically include: the network equipment is to the first message point The operation of solution header is not carried out and adds header operation.When the network equipment receives the first message that user terminal is sent, solution report is first carried out Head carries out again plus header operation;2) it when receiving the second message that server is sent, only carries out adding header, be sent according to user terminal First message to the path of server returns to the second message to user terminal.IP header protocol code field involved in tunnel operations It is 253.
The flow-optimized method of multi-path network of the invention is described in detail combined with specific embodiments below.The present embodiment Illustrate the flow-optimized method of multi-path network based on SDN.
Embodiment 1: the realization of controller function
Embodiment 1.1: the realization of user terminal management function in controller:
As shown in figures 2 and 5, after user terminal sends registration request to controller, controller can establish one for user terminal New user terminal record, inquires local network device list, obtains geographical location near the net of user terminal according to IP similarity The IP address of network equipment.
In IP address of the user terminal record comprising user terminal, chain travel permit number, link objects array LinkElement and link The title array of stream.Wherein chain travel permit number, i.e. this user terminal existing chain travel permit number, using link source IP, destination IP is identified. Every jump that link is recorded in LinkElement is any role respectively, such as first jumps, and second jumps, final jump etc.;Link The title array of middle stream, doing so keeps change link or Delete query more convenient, and each network equipment has two stream back and forth List item, recording mode are 0, No. 1 element that two flow tables that first record first is jumped are array, and the second two flow tables jumped are array 2, No. 3 elements, and so on.
Embodiment 1.2: the realization of network device management function in controller:
As shown in figure 5, controller can establish one for each network equipment after each network equipment is connect with controller Network equipment object.
Embodiment 1.3: the realization of flow table optimum management function in controller:
In order to realize the calculating of shortest path, as shown in figure 5, controller must safeguard a time-delay table.The time-delay table is One bivariate table, each row and column respectively indicate a network equipment, when the intersection of ranks indicates the delay that the two communicates with each other Between or packet loss.After link Updating time reaches predetermined interval, controller obtains all network device lists, will Network device list saves and is issued to each network equipment, and the network equipment goes acquisition and the network equipment according to network device list The delay time and packet loss of each network equipment in table, and it is uploaded to controller.Controller, which receives to update after above-mentioned data, to be prolonged When table (referring to fig. 2).Controller goes to calculate new shortest path according to the link of each user terminal record, if obtaining new most short Path is different from original path, and new shortest path is more than predefined in aspect of performance superiority compared to link before Threshold value, then update optimal path, and be issued to the network equipment after regenerating new flow table.The network equipment obtains new flow table New forward rule is executed later, completes link switching.
Embodiment 2: the realization of network equipment function.
Embodiment 2.1: the realization of flow table function in the network equipment:
User terminal accesses server, first registers in the controller, obtains the IP address of the network equipment near user terminal, And the first message is directed to the network equipment.The network equipment carries out flow table matching to first message and tunnel form turns Hair carries out source address and source port number replacement when first message reaches the adjacent network equipment of neighbor server, and remembers Record is got off, and server returns to the second message along the path that the first message is sent.
In conjunction with Fig. 6, the change procedure of entire message is described with timing diagram:
S401 user terminal C sends to controller and requests;
S402 controller returns to the IP address of the network equipment A nearest from C according to the user terminal C server S to be accessed, And controller, which can generate most, path and flow table rule, and flow table rule is issued to each network equipment, in addition to the One network equipment A and the last one network equipment Z, the flow table rule of each intermediate network equipment are identical.
The first message that S403 user terminal C is issued will be captured by Microsoft Loopback Adapter, and be first message addition one A header, so that message will be directed to nearest A:
A|C|S|C|Port_C|Port_S|HTTP
First A of S404 receives the first message from C, first checks whether there is or not header, and no then normal forwarding has, solves Header, the first message becomes after unlocking:
S|C|Port_C|Port_S|HTTP
S405 A carries out flow table matching to the first message of deblocking, and A can add after matching flow table rule for the first message One layer of header, the first message become:
Z|C|S|C|Port_C|Port_S|HTTP
S406 Z receives the first message from A, first checks whether there is or not header, and no then normal forwarding has, solves header, solves The first message becomes after opening:
S|C|Port_C|Port_S|HTTP
S407 Z carries out flow table matching to the first message of deblocking, executes respective action after matching flow table rule, can give birth to At a unique TCP port number, the first message source port is replaced, records TCP five-tuple, and replace the first message with the IP of Z Replaced first message is sent to server by source IP, and after replacement, the first message becomes:
S|Z|Port_Z|Port_S|HTTP
After S408 S receives the first message, the second message of response is returned into Z after processing data, Z receives the second report Text, message are as follows:
Z|S|Port_S|Port_Z|HTTP
After the neighbouring Z of S409 neighbor server receives server the second message of return, matching port numbers find the second message Corresponding TCP five-tuple forwards the second message after doing corresponding replacement, and the second message format becomes:
A|Z|C|S|Port_C|Port_S|HTTP
It after S410 A receives the second message of server return, first checks whether there is or not header, no then normal forwarding has, solves Header, the second message becomes after unlocking:
C|S|Port_C|Port_S|HTTP
S411 A carries out flow table matching to the second message of deblocking, and A can add after matching flow table rule for the second message One layer of header is simultaneously forwarded back to user terminal, completes whole process, and the second message becomes:
C|S|Port_S|Port_C|HTTP
Embodiment 2.2: the realization of tunnelling function in the network equipment:
As shown in fig. 6, tunnelling function is to add the head IP by the outer layer in original message to realize, message is enable to send The destination address specified into flow table rule, to realize the function of multi-path network flow orientation.After reaching purpose, addition IP takes off on head, obtains former message and carries out next step operation, whole process is similar to pass through a tunnel.
Addition header is realized by rewriteeing the function of the mod_nw_dst movement in the network equipment (modification destination IP) 's.Movement in the network equipment is all as defined in OpenFlow agreement, if it is desired to realize addition to by newly-increased movement Header function, it is necessary to biggish change be made to OpenFlow agreement, the scope of application of this system, thus this hair can be reduced in this way It is bright to have selected rewriting to have movement to realize addition header function.
The network equipment carrys out stored messages using the sk_buff structural body of linux kernel, which has reserved a part of sky Between convenient for after be inserted into header information, the reserved space by sk_buff head pointer and data pointer indicate, add the head IP Before, MAC header is saved first, then moves the two pointer vacating spaces, finally fills each field on the head IP.
Solving header is exactly the head outer layer IP for stripping message, so as to view the head internal layer IP of message, the head There is message to want the destination address IP really reached.
Arranging the message that protocol number is 253 in the head IP in the present invention is outside being added to by user terminal or the network equipment The message on the head layer IP.Therefore when the network equipment receives message, the protocol number in the head IP is first checked for, if 253, is then executed Solve header operation.Before stripping the head outer layer IP, the data pointer of sk_buff is moved first, is reduced space, is then used MAC header Cover the original head outer layer IP.
Embodiment 2.3: the realization of Transparent Proxy in the network equipment:
Referring to Fig. 6, Transparent Proxy is can also specify along controller for the second message for returning to server first The transmitting path of message returns.Transparent Proxy in this system is for TCP connection, due to that cannot be changed to server, The redirection of the first message cannot be thus realized by addition outer header as the Microsoft Loopback Adapter of multi-path network framework, Transparent Proxy can be very good to solve this problem.After server calculates optimal path, it can most be had on path Each jump network equipment issues flow table rule, most has the final jump network equipment on path to be just used as a Transparent Proxy.When When the first message with syn mark in the TCP connection that user terminal is initiated reaches Transparent Proxy, the TCP five-tuple of the first message (source IP, destination IP, source port number, destination slogan and protocol number) is saved, and it is raw that Transparent Proxy will use this five-tuple Random and unique port numbers between 2000~65535 are distributed at cryptographic Hash, then for it.Later with this port The source port of number the first message of replacement, the source IP of the first message is replaced with the IP of this network equipment, can ensure that clothes in this way The second message that business device returns can centainly reach this network equipment.The five-tuple for belonging to the message of a TCP connection is It is identical, therefore the cryptographic Hash generated is also identical, therefore the end before this cryptographic Hash is searched for TCP connection distribution can be used Slogan.When the second message that server returns reaches Transparent Proxy, searched using the destination slogan of the second message associated Five-tuple, and replace the corresponding field of the second message.Then outer header, such second message are added to the second message User terminal is returned along specified path.Transparent Proxy function is by rewriteeing mod_tp_src movement (modification TCP source port Number) function realize.
Embodiment 2.4: the realization of network monitor in the network equipment:
The IP for each network equipment that network monitor is periodically issued using controller measures the machine and other each networks Delay time and packet loss between equipment, and measurement result can be uploaded to controller.
Network monitor is embodied as a thread of network equipment db-server process, its meeting periodic detection network equipment is It is no establish or be disconnected with controller connect.When the network equipment is using set-controller order connection controller, meeting The IP of controller is preserved in a manner of shared drive, when the network equipment detects that the connection with controller has been established, It will use this IP and controller additionally establish a TCP connection, which issues on IP and the network equipment dedicated for controller Pass measurement result.Controller can periodically issue the IP of each network equipment, and the network equipment can measure and other each nets after receiving The delay time and packet loss of network equipment, and it is uploaded to controller.The network equipment can construct icmp packet and send each other The network equipment, according to the message amount of return and time come computation delay time and packet loss.When the network equipment uses del- When controller order disconnects the connection with controller, additional TCP connection also be will disconnect, and delete previously stored control The IP of device, referring to Fig. 7.
Embodiment 3: the function of user terminal is realized.
Embodiment 3.1: the realization in user terminal with controller interactive function:
After user terminal sends registration request to controller, controller can establish a new user terminal pair for user terminal As inquiring local network device list, obtaining geographical location near the IP address of the network equipment according to IP similarity.It is specific thin Section description may refer to embodiment 1.1.
Embodiment 3.2: the realization of message agent functionality in user terminal:
User terminal sets default router table, and the first message is allowed all to be handled by Microsoft Loopback Adapter.The first of destination will be sent to Message is all redirected in Microsoft Loopback Adapter (tun equipment), Microsoft Loopback Adapter obtain after the first message for the first message add one it is new (IP should be provided in new packet header IP agreement items by controller using 253, in order to play identification in the network device in packet header Effect), then issued by true network interface card.The transmission of first message uses the library libnet, the first message obtained in the tun equipment Include IP or more all message datas.Using this segment data as the payload data of new IP data packet.
Embodiment 4: it realizes in system cloud.
The process of user terminal access server as shown in Figure 2, controller selection optimal path are arrived by 3 network equipments Up to server, there is not the unmatched situation of message, the network equipment periodically uploads link state under the control of the controller, obtains It obtains flow table to update, entire access process is described below.
User terminal initiates communication, registers to controller, and controller obtains the network near user terminal according to IP similarity The IP address of equipment, returns to user terminal, and user terminal encapsulates the first message using the IP address and is sent to the network equipment.When encapsulation The head of first message must include the protocol fields that value is 253, so that the network equipment identifies and decapsulates.
The network equipment first looks for flow table after receiving the first message, if successful match, executes the second tunnel operations and turns Hair.When the first message is forwarded to the adjacent network equipment of neighbor server, the Transparent Proxy of the adjacent network equipment saves the The source IP address and source port number of one message, with the IP address of adjacent network equipment and the port numbers replacing source IP being specifically generated First message is forwarded to server by location and source port number.Server response generates the second message and returns to the adjacent network equipment, Its Transparent Proxy is searched according to the destination slogan of second message and is recorded, and with the IP address and port numbers replacement the in recording Two message purpose IP address and destination slogan, then the second message handles through tunnel and is forwarded back to user terminal.
By the explanation of specific embodiment, the technological means and function that predetermined purpose is taken should can be reached to invention Effect is able to more deeply and specifically understand, however appended diagram is only to provide reference and description and is used, and is not used to this hair It is bright to limit.

Claims (7)

1. a kind of multi-path network stream real time dynamic optimization method of software definition, which is characterized in that be applied in wide area network, packet It includes:
Multi-path network framework construction step: the control of multi-path network stream real time dynamic optimization is disposed in the wide area network The network equipment, user terminal and the server that device, intelligence software define, wherein the controller and the network equipment constitute control The multi-path network framework that face is separated with exchange face, the user terminal are excellent by dynamic in real time under the multi-path network framework The multi-path network flow path of change accesses the server;
Monitor step in real time: the network equipment automatically carries out the measurement of network state, and real-time or near real-time to network Ground uploads network state information to controller;The controller stores the network topology structure of the multi-path network framework, and And the current network state information uploaded according to the network equipment, in conjunction with pre-defined or default definition network application field Scape characteristic information, network topology structure described in real-time update, and it is excellent under new network topology structure to calculate each network flow Routing diameter and corresponding flow table, and by corresponding flow table issuance to the network equipment;
Wherein, after the real time monitoring step, the method, further includes:
The controller receives the registration request of the user terminal;
The user terminal requests to send the first message to the controller;
After the controller agrees to request, one in the network equipment is specified for the user terminal, and calculate the use Family end to the server optimal path;
After the user terminal carries out the first tunnel operations to first message, first message is sent to the network and is set It is standby;
After the network equipment receives first message, searched whether after carrying out the second tunnel operations to first message There is the flow table of first message;
If the network equipment has a flow table of first message, the network equipment is according to the flow table of first message First message is forwarded, until first message reaches the server;
After the server receives first message, first message is sent to the server according to the user terminal Path returns to the second message to the user terminal.
2. the multi-path network stream real time dynamic optimization method of software definition according to claim 1, which is characterized in that institute It states after the network equipment searches whether the flow table for having first message, the method, further includes: if the network equipment is not There is the flow table of first message, then first message is forwarded to the controller, the control by the network equipment Device calculates the flow table of optimal path and first message between the user terminal and server, and by first message Flow table is sent to the network equipment.
3. the multi-path network stream real time dynamic optimization method of software definition according to claim 2, which is characterized in that institute The flow table that controller calculates first message is stated, is specifically included:
The current network state information and the network application scene characteristic that the controller is uploaded according to the network equipment are believed Breath calculates the flow table of first message.
4. the multi-path network stream real time dynamic optimization method of software definition according to any one of claim 1 to 3, It being characterized in that, the controller specifies one in the network equipment for the user terminal, it specifically includes:
The controller is according to the current network state information and the network application scene characteristic information to the user terminal Specify a network equipment;Alternatively,
The controller is that the user terminal specifies a network equipment according to IP address similarity or network availability bandwidth.
5. the multi-path network stream real time dynamic optimization method of software definition according to claim 1, which is characterized in that institute It states the network equipment and the second tunnel operations is carried out to first message, specifically include:
The network equipment successively carries out the operation of solution header to first message and adds header operation.
6. the multi-path network stream real time dynamic optimization method of software definition according to claim 1, which is characterized in that institute It states server and sends first message to the path of the server according to the user terminal and return to the second message to the use Family end, specifically includes:
The network equipment carries out after adding header operation second message, sends first message according to the user terminal Second message is returned to the user terminal to the path of the server.
7. the multi-path network stream real time dynamic optimization method of software definition according to claim 1, which is characterized in that institute It states after server receives first message, is returned according to the path that the user terminal sends the first message to the server The second message is returned to the user terminal, further includes the adjacent network device transparency proxy step of neighbor server:
When adjacent network equipment receives first message, the source IP address and source tcp port for saving first message are extremely Special list, and by first message source IP address and source tcp port replace with the IP of the adjacent network equipment Location and designated ends slogan;
When the adjacent network equipment receives second message, according to the purpose TCP port number of second message in institute It states and searches for corresponding table item in special list and replace purpose IP address and purpose TCP port number in second message.
CN201511021471.1A 2015-12-31 2015-12-31 A kind of multi-path network stream real time dynamic optimization method of software definition Active CN105450521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511021471.1A CN105450521B (en) 2015-12-31 2015-12-31 A kind of multi-path network stream real time dynamic optimization method of software definition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511021471.1A CN105450521B (en) 2015-12-31 2015-12-31 A kind of multi-path network stream real time dynamic optimization method of software definition

Publications (2)

Publication Number Publication Date
CN105450521A CN105450521A (en) 2016-03-30
CN105450521B true CN105450521B (en) 2019-10-25

Family

ID=55560323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511021471.1A Active CN105450521B (en) 2015-12-31 2015-12-31 A kind of multi-path network stream real time dynamic optimization method of software definition

Country Status (1)

Country Link
CN (1) CN105450521B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105956707A (en) * 2016-05-09 2016-09-21 王君岳 Method of optimizing oil reservoir monitoring system
TW201803314A (en) 2016-06-29 2018-01-16 日本電氣股份有限公司 Server, switch, communication system, communication method, and recording medium
US9985870B2 (en) * 2016-07-29 2018-05-29 Nanning Fugui Precision Industrial Co., Ltd. Network service method and system based on software defined networking
TWI623223B (en) * 2016-08-02 2018-05-01 Chunghwa Telecom Co Ltd Software-defined network controller supporting diverse architecture components
CN107948232B (en) * 2016-10-13 2021-03-19 腾讯科技(深圳)有限公司 Hook API-based proxy implementation method, data transmission method, device and system
CN109787801B (en) 2017-11-15 2022-01-21 华为技术有限公司 Network service management method, device and system
CN109039893B (en) * 2018-09-03 2021-09-03 北京红云融通技术有限公司 Data exchange network and method based on wide area IP network
CN112217680B (en) * 2020-10-19 2022-12-02 中国信息通信研究院 Controller capability benchmark test method and device based on software-defined wide area network
CN112311697B (en) * 2020-10-26 2022-05-24 新华三大数据技术有限公司 Path configuration method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2672668A1 (en) * 2012-06-06 2013-12-11 Juniper Networks, Inc. Creating searchable and global database of user visible process traces
CN103731307A (en) * 2013-12-30 2014-04-16 浙江大学 Method for standardized data surface dynamic reconstruction for multiple services
CN104253749A (en) * 2014-09-18 2014-12-31 华南理工大学 Client distributed path computation method based on software defined network architecture
CN104363084A (en) * 2014-11-28 2015-02-18 杭州华三通信技术有限公司 Link status synchronization method and device
CN104518993A (en) * 2014-12-29 2015-04-15 华为技术有限公司 Allocation method, device and system for communication paths of cloud network
CN104579977A (en) * 2014-12-23 2015-04-29 广东顺德中山大学卡内基梅隆大学国际联合研究院 Bandwidth constraint multipath routing method and system for SDN controller
CN105119840A (en) * 2015-09-01 2015-12-02 华东师范大学 Data center network load balancing method based on SDN and employing fat-tree topological structure

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2672668A1 (en) * 2012-06-06 2013-12-11 Juniper Networks, Inc. Creating searchable and global database of user visible process traces
CN103731307A (en) * 2013-12-30 2014-04-16 浙江大学 Method for standardized data surface dynamic reconstruction for multiple services
CN104253749A (en) * 2014-09-18 2014-12-31 华南理工大学 Client distributed path computation method based on software defined network architecture
CN104363084A (en) * 2014-11-28 2015-02-18 杭州华三通信技术有限公司 Link status synchronization method and device
CN104579977A (en) * 2014-12-23 2015-04-29 广东顺德中山大学卡内基梅隆大学国际联合研究院 Bandwidth constraint multipath routing method and system for SDN controller
CN104518993A (en) * 2014-12-29 2015-04-15 华为技术有限公司 Allocation method, device and system for communication paths of cloud network
CN105119840A (en) * 2015-09-01 2015-12-02 华东师范大学 Data center network load balancing method based on SDN and employing fat-tree topological structure

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Wenfeng Xia等.A Survey on Software-Defined Networking.《IEEE COMMUNICATION SURVEYS & TUTORIALS》.2014,第17卷(第1期),第27-51页. *

Also Published As

Publication number Publication date
CN105450521A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN105450521B (en) A kind of multi-path network stream real time dynamic optimization method of software definition
CN110034817B (en) Low-orbit satellite network routing method and device based on software defined network
EP2582099B1 (en) Communication system, logic channel control device, communication method and program
EP2933979B1 (en) Dht-based control network implementation method and system, and network controller
CN107925681A (en) The system and method that the load balance in network packet core system is defined for distributed software
CN105553680A (en) System and method for creating virtual interfaces based on network characteristics
CN105814922B (en) Address mark distributing method and relevant device and system
CN102780779A (en) Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
CN106487837B (en) The method and apparatus for being sent into network and obtaining target data from network
CN105874756B (en) The transmission method and equipment of control signaling
CN106209615B (en) A kind of Dynamic Route Control method and system calculating forward-path based on SPFA algorithm
CN104936254B (en) Wireless network seamless handoff method and its device based on software defined network
CN105812257B (en) Business chain route management system and its application method
CN105474692B (en) Method for handover control, device and cordless communication network
CN105530185A (en) Overlay routing network, routing method based on overlay routing network, and router
Król et al. Weave: Efficient geographical routing in large-scale networks
CN104661249A (en) System and method for reducing content acquisition delay for NDN mobile users
CN110022263A (en) A kind of method and relevant apparatus of data transmission
Jiang et al. Research on OLSR adaptive routing strategy based on dynamic topology of UANET
US10862858B2 (en) Information centric approach in achieving anycast in machine type communications
CN105122776B (en) Address acquiring method and network virtualization edge device
Rahmani et al. On performance of logical-clustering of flow-sensors
CN108390899B (en) Software defined network-based method for content collaboration of two-layer switch
CN110912823B (en) SDN and IPv6 reliable routing method oriented to heterogeneous wired and wireless converged network
CN115037669A (en) Cross-domain data transmission method based on federal learning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant