Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Having multiple radio network interface on multilink equipment, the plurality of radio network interface is registered in different operation respectively
On the network of business, there is different IP addresses, such as, be registered in respectively on the network of movement, UNICOM, three operators of telecommunications
Three radio network interfaces, are respectively provided with movement, UNICOM, the IP address of three operators' offers of telecommunications.And with multilink equipment
The server end of communication is probably the multi-thread machine room comprising the network line that different operators provides, such as, described multi-thread machine room
Server host accessed movement, UNICOM, the network of three operators of telecommunications, thus there is the most corresponding movement, UNICOM, electricity
Three IP addresses of the network of three operators of letter.In existing communication chainlink control method, when the network interface of multilink equipment
The Virtual network operator of IP address of IP address and server when differing, owing to there is competitive relation between each operator, he
Carry out between often being limited by certain during network mutual access, thus result in the IP of the network interface that Virtual network operator differs
The data transmission efficiency of the communication link between the IP address of address and server is low, Web vector graphic efficiency is low.
For solving the problems referred to above, embodiments provide a kind of line control of communication method, in multilink equipment end
Perform, as it is shown in figure 1, described method includes:
Step 101: obtain the communication request information that in multilink equipment, arbitrary network interface is initiated, described communication request is believed
Breath includes the IP address of described network interface;
Step 102: determine the address properties of the described network interface of correspondence according to the IP address of described network interface;
Step 103: according to the address properties of described network interface, determines what the address properties with described network interface mated
The address properties of server;
Step 104: according to the address properties of the described server determined, obtains corresponding with the address properties of described server
The IP address of server;
Step 105: set up the communication connection between the IP address of described network interface and the IP address of described server.
Specifically, described multilink equipment includes the terminal unit with multiple network interface, such as mobile phone, computer and
Intelligent television etc.;Described network interface includes radio network interface;The address properties bag that the IP address of described network interface is corresponding
Include the attribute that network operator information and/or network type etc. are relevant to network interface IP address;Described server includes MPTCP
Proxy server, it is also possible to include carrying out the destination server of MPTCP communication, described destination server with described multilink equipment
Support MPTCP function;The address properties of described server includes the operator's informaiton belonging to network type and/or address, also may be used
To include other attributes relevant to the IP address of server, the present invention does not limits;The IP address of described network interface and right
The address properties answered can be saved in the memory element of multilink equipment, and the IP address of described server and the address of correspondence belong to
Property can be pre-stored in the memory element of multilink equipment, it is also possible to server obtain, the present invention does not limits;
Described address properties can include that an attribute can also include two or more attributes, the embodiment of the present invention
In, when described address properties includes two or more, the described address properties according to described network interface, determine and institute
State the address properties of the server of the address properties coupling of network interface, the address properties according to described network interface can be included
In an attribute, determine the address properties of the server that the address properties with described network interface mates;Described address properties
In an attribute both can include that preset attribute can also include any attribute, the present invention does not limits.
The address properties of server that the address properties with described network interface mates is determined by single attribute, it is simple to
Quickly determine the address properties of the server that the address properties with described network interface mates;
In other embodiments, it is also possible to the whole attributes comprised according to the address properties of described network interface determine and institute
State the address properties of the server of the address properties coupling of network interface;
The ground of server that the address properties with described network interface mates is determined by two or more attributes
Location attribute, improves the matching precision of address properties, is conducive to improving further network usage and data transmission efficiency;
The IP address of the server that the address properties of described and described server is corresponding can include one or more,
The present invention does not limits;
When the IP address of the server corresponding when the address properties of described and described server includes more than one, described in build
Communication connection between IP address and the IP address of described server of vertical described network interface, may include that and set up institute respectively
State the IP address of network interface and server corresponding with the address properties of described server more than one Suo Shu IP address it
Between connection;Can also include: select the IP ground of more than one described server corresponding with the address properties of described server
The IP address of performance preferably at least one server in location, the IP address setting up described network interface is more excellent with the performance of selection
At least one server IP address between connection, the present invention does not limits;
The line control of communication method that the embodiment of the present invention provides, by the described net comprised in described communication request information
The IP address of network interface determines the address properties of the described network interface of correspondence, according to the address properties of described network interface, really
The address properties of the fixed server mated with the address properties of described network interface, thus obtain the address with described server and belong to
The IP address of the server that property is corresponding, sets up the communication between the IP address of described network interface and the IP address of described server
Connect, it is to avoid owing to the IP address of the network interface of multilink equipment is connected with the IP address of server at random, or with in advance
If the IP address of server connects, the IP address of the network interface of the multilink equipment caused is not mated with the IP address of server
The problem of (such as, the two belongs to different operator), thus avoid owing to the data transmission effect caused is not mated in IP address
Rate is low, the inefficient problem of Web vector graphic, improves data transmission efficiency and Web vector graphic efficiency.
The alternative line control of communication method flow diagram that Fig. 2 provides for the embodiment of the present invention, as in figure 2 it is shown, upper
On the basis of stating embodiment, described method obtain arbitrary network interface is initiated in multilink equipment communication request information it
Before, also include:
Step 201: receive the IP address list of the described server that described server sends, the IP address of described server
List includes one or more IP address and the address properties of correspondence;
Specifically, in the embodiment of the present invention, the IP address list of described server can include the institute of described server
There is the address properties of IP address and correspondence, the IP address list of the most described server can also include part
Preferably IP address and the address properties of correspondence, the present invention does not limits;
The side of a kind of IP address list receiving the described server that server sends that Fig. 3 provides for the embodiment of the present invention
Method schematic diagram, as it is shown on figure 3, in the embodiment of the present invention, multilink equipment is indirect and purpose service by MPTCP proxy server
Device carries out MPTCP communication, and before carrying out MPTCP communication, described multilink equipment first passes through the IP address of default network interface
Communicate with the domain name of described MPTCP proxy server, send certification request to described MPTCP proxy server, described
MPTCP proxy server receives described certification request, and described certification request is sent to certificate server and is authenticated, when
After the certification of described certificate server, described MPTCP proxy server sends HTTPS request, institute to described multilink equipment
State HTTPS request and include the IP address list of described MPTCP proxy server, the IP address column of described MPTCP proxy server
Table includes all IP addresses and the address properties of correspondence of described MPTCP proxy server;
In other embodiments, it is also possible to received the IP address list of the server that server sends by additive method,
The present invention does not limits.
Step 202: preserve the IP address list of described server;
By receiving and preserve the IP address list of server, it is simple to according to the IP comprised in the IP address list of server
Address and the address properties of correspondence, determine the IP ground of the server that the address properties with the network interface of multilink equipment mates
Location, and when described server changes, can upgrade in time preserved by receiving the IP address list of server
The IP address list of server;
Step 203: obtain the address properties of each network interface in described multilink equipment and the IP address of correspondence;
Step 204: set up the IP address list of described network interface, the IP address list of described network interface includes institute
State IP address and the address properties of correspondence of network interface.
Specifically, multilink equipment reads address properties and the IP address of correspondence of own network interface, sets up described
The IP address list of network interface;
By setting up the IP address list of network interface, it is simple to determine the institute of correspondence according to the IP address of described network interface
State the address properties of network interface;
Specifically, based on step 201~204:
The described IP address according to described network interface determines the address properties of the described network interface of correspondence, including: root
According to initiating the IP address of network interface of described communication request information, inquire about the IP address list of described network interface, obtain with
The address properties that the IP address of described network interface is corresponding;
Owing to, in the IP address list of network interface, the IP address of network interface is corresponding with address properties, by
The IP address list of network interface is inquired about the IP address of network interface, it is possible to quick obtaining is to corresponding address properties.
The described address properties according to described network interface, determines the service that the address properties with described network interface mates
The address properties of device, including:
According to the address properties of described network interface, inquire about the IP address list of described server, however, it is determined that described service
The IP address list of device exists the address properties of the server consistent with the address properties of described network interface, then address is belonged to
The address properties of the server that property is consistent is defined as the address properties of the server mated with the address properties of described network interface;
Owing to comprising the address properties of the IP address of Servers-all in the IP address list of server, by service
The IP address list of device is inquired about the address properties of the server consistent with the address properties of described network interface, it is possible to the most true
The address properties of the fixed server mated with the address properties of described network interface.
The described address properties according to the described server determined, obtains the clothes corresponding with the address properties of described server
The IP address of business device, including:
According to the address properties of the described server determined, inquire about the IP address list of described server, obtain with described
The IP address of the server that the address properties of server is corresponding.
Owing to, in the IP address list of server, the IP address of server is corresponding with address properties, by service
The IP address list of device is inquired about address properties, it is possible to the IP address of quick obtaining to the server corresponding with address properties.
Another line control of communication method flow diagram that Fig. 4 provides for the embodiment of the present invention, as shown in Figure 4, the present invention
The line control of communication method that embodiment provides, after inquiring about the IP address list of described server, also includes:
Step 301: if it is determined that do not exist in the IP address list of described server and the address properties of described network interface
The address properties of consistent server, then obtain other IP addresses of described server, and other IP addresses described at least include two
Individual;
Specifically, other IP addresses of server can include all IP addresses in the IP address list of server, also
Can include the preferably at least two IP address in the IP address list of server, the present invention does not limits;
Step 302: obtain the network state information of other IP addresses of described server;
Specifically, described network state information can include the information such as network formats or the network bandwidth, other of server
The network state information of IP address both can by obtaining to server request, when other IP addresses with the IP of network interface ground
When communication connection is set up in location, it is also possible to by detecting the network of communication link corresponding to other IP addresses of built vertical communication connection
The mode of state obtains, and the present invention does not limits;
Step 303: according to described network state information, determine other IP ground of the described server of network state optimum
Location;
Step 304: set up other of the IP address of the described network interface described server optimum with described network state
Communication connection between IP address.
By setting up the communication between other IP addresses of the IP address of network interface and the optimum server of network state
Connect, it is ensured that communication is carried out under preferably network state, is conducive to improving data transmission efficiency;
Multilink equipment the most all can be preset with default network interface, default network interface preferred network state preferably net
Network interface, the IP address of the IP address server by default of the server being connected with the IP address of default network interface, at it
In his embodiment, when the IP address list determine server does not exist the server consistent with the address properties of network interface
During address properties, it is also possible to set up the communication connection between the IP address of network interface and the IP address of default server;
By setting up the communication connection between the IP address of network interface and the IP address of default server, can not only be fast
The vertical communication connection of run-up, moreover it is possible to ensure that communication is carried out under preferably network state, be conducive to improving data transmission efficiency;
It is below a concrete control method example of the embodiment of the present invention:
The line control of communication method schematic diagram that Fig. 5 provides for the present invention one specific embodiment, referring also to Fig. 5 and Fig. 3,
After the domain name of multilink equipment Yu proxy server communicates and completes certification, proxy server pass through HTTPS request
The IP address list of proxy server is sent to multilink equipment, the IP address list of described server comprises described service
All IP addresses of device and address properties;
In the embodiment of the present invention, the address properties of described server includes network operator information, described Virtual network operator
Such as move, telecommunications, UNICOM etc..
The IP address list of the server that multilink equipment Receiving Agent server sends, and obtain in multilink equipment every
The address properties of individual network interface (such as move, telecommunications, the operator's informaiton such as UNICOM) and the IP address of correspondence, set up network
The IP address list of interface;The IP address list of server and the IP address list of network interface are write kernel by multilink equipment
Protocol stack, to increase new line control of communication method in MPTCP agreement.
New line control of communication method i.e. route matching (PartMesh) method, by providing network to application layer
(Netlink) interface, makes the application layer can be according to the IP address list of the IP address list of server and network interface to network
Line control of communication (path_managers) structure in space MPTCP analog network environment (netns_mptcp) is grasped
Make.
Specifically, when the network interface at multilink equipment initiates TCP connection, the line control of communication of multilink equipment
(Path Manager) structure can be according to route matching (PartMesh) method, scanning server IP address pool, if server
IP address list includes that the TCP initiated connects the IP address of corresponding server, then the network interface connected according to initiation TCP
IP address determines the network operator information of the network interface of correspondence, then believes according to the Virtual network operator of described network interface
Breath, determines the Virtual network operator of the server that the Virtual network operator with network interface mates, further according to the net of the server determined
Network operator, obtains the IP address of the server corresponding with the Virtual network operator of server, finally by the net with multilink equipment
The IP address of the server of the IP address coupling of network interface joins remotely operation (remote) list of socket (socket),
Set up the communication connection between the IP address of described network interface and the IP address of described server.
Such as, it is UNICOM that multilink equipment initiates the Virtual network operator of the network interface that TCP connects, then can pass through above-mentioned side
The IP address of the server that case finds Virtual network operator to be UNICOM from the IP address list of server, sets up described network interface
IP address and the IP address of described server between communication connection.
When the address that there is not the server consistent with the address properties of network interface in the IP address list of server belongs to
During property, set up the communication connection between the IP address of network interface and the IP address of default server.
The line control of communication method that the embodiment of the present invention provides, can be by being provided the net of network service by same operator
Network interface IP address and server ip address carry out data transmission, it is to avoid the network provided by different operators is being exchanged visits
Time limited problem, thus the data transmission efficiency avoiding the communication link thus caused is low, Web vector graphic is inefficient
Problem.
For realizing above-mentioned line control of communication method, embodiments provide a kind of line control of communication device, Fig. 6
The line control of communication apparatus structure schematic diagram provided for the embodiment of the present invention, as shown in Figure 6, described device includes:
Acquisition module 10 is for obtaining the communication request information that in multilink equipment, arbitrary network interface is initiated, described logical
Letter solicited message includes the IP address of described network interface;
Determine module 20, for determining that according to the IP address of described network interface the address of the described network interface of correspondence belongs to
Property;According to the address properties of described network interface, determine the address of the server that the address properties with described network interface mates
Attribute;
Acquisition module 10, is additionally operable to the address properties according to the described server determined, obtains the ground with described server
The IP address of the server that location attribute is corresponding;
Communication module 30, for setting up the communication between the IP address of described network interface and the IP address of described server
Connect.
Further, the line control of communication device that the embodiment of the present invention provides, also include:
Receiver module, for receiving the IP address list of the described server that described server sends, described server
IP address list includes one or more IP address and the address properties of correspondence;
Memory module, for preserving the IP address list of described server.
Further, the line control of communication device that the embodiment of the present invention provides, also include:
Acquisition module 10, for obtaining address properties and the IP of correspondence of each network interface in described multilink equipment
Address;
Described memory module, for setting up the IP address list of described network interface, the IP address column of described network interface
Table includes IP address and the address properties of correspondence of described network interface.
Specifically, it is determined that module 20 is used for: according to the IP address of the network interface initiating described communication request information, inquiry
The IP address list of described network interface, obtains the address properties corresponding with the IP address of described network interface.
Further, it is determined that module 20 is used for: according to the address properties of described network interface, inquire about the IP of described server
Address list, however, it is determined that there is the service consistent with the address properties of described network interface in the IP address list of described server
The address properties of device, then be defined as the address properties of server consistent for address properties and the address properties of described network interface
The address properties of the server of coupling.
Specifically, acquisition module 10 is used for: according to the address properties of the described server determined, inquire about described server
IP address list, obtains the IP address of the server corresponding with the address properties of described server.
Further, the line control of communication device that the embodiment of the present invention provides, also include:
Acquisition module 10, for if it is determined that do not exist in the IP address list of described server and the ground of described network interface
The address properties of the server that location attribute is consistent, then obtain other IP addresses of described server, and other IP addresses described are at least
Including two;And obtain the network state information of other IP addresses of described server;
Determine module 20, for according to described network state information, determine its of the optimum described server of network state
His IP address;
Communication module 30, for setting up the described server that the IP address of described network interface is optimum with described network state
Other IP addresses between communication connection.
Specifically, described address properties includes the operator's informaiton belonging to the network type of address and/or address.
The line control of communication device that the embodiment of the present invention provides, by the described net comprised in described communication request information
The IP address of network interface determines the address properties of the described network interface of correspondence, according to the address properties of described network interface, really
The address properties of the fixed server mated with the address properties of described network interface, thus obtain the address with described server and belong to
The IP address of the server that property is corresponding, sets up the communication between the IP address of described network interface and the IP address of described server
Connect, it is to avoid owing to the IP address of network interface of multilink equipment does not mate the data biography caused with the IP address of server
The inefficient problem of defeated inefficiency, Web vector graphic, improves data transmission efficiency and Web vector graphic efficiency.
Device embodiment described above is only schematically, and the wherein said unit illustrated as separating component can
To be or to may not be physically separate, the parts shown as unit can be or may not be physics list
Unit, i.e. may be located at a place, or can also be distributed on multiple NE.Can be selected it according to the actual needs
In some or all of module realize the purpose of the present embodiment scheme.Those of ordinary skill in the art are not paying creativeness
Work in the case of, be i.e. appreciated that and implement.
Through the above description of the embodiments, those skilled in the art it can be understood that to each embodiment can
The mode adding required general hardware platform by software realizes, naturally it is also possible to pass through hardware.Based on such understanding, on
State the part that prior art contributes by technical scheme the most in other words to embody with the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD etc., including some fingers
Make with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs each and implements
The method described in some part of example or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;Although
With reference to previous embodiment, the present invention is described in detail, it will be understood by those within the art that: it still may be used
So that the technical scheme described in foregoing embodiments to be modified, or wherein portion of techniques feature is carried out equivalent;
And these amendment or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.