CN103312807A - Data transmission method, data transmission device and data transmission system - Google Patents

Data transmission method, data transmission device and data transmission system Download PDF

Info

Publication number
CN103312807A
CN103312807A CN201310245625XA CN201310245625A CN103312807A CN 103312807 A CN103312807 A CN 103312807A CN 201310245625X A CN201310245625X A CN 201310245625XA CN 201310245625 A CN201310245625 A CN 201310245625A CN 103312807 A CN103312807 A CN 103312807A
Authority
CN
China
Prior art keywords
message
data
link
terminal equipment
data link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310245625XA
Other languages
Chinese (zh)
Other versions
CN103312807B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310245625.XA priority Critical patent/CN103312807B/en
Publication of CN103312807A publication Critical patent/CN103312807A/en
Application granted granted Critical
Publication of CN103312807B publication Critical patent/CN103312807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a data transmission method, a data transmission device and a data transmission system. The data transmission method includes: establishing a TCP (transmission control protocol) control link between a network node and terminal equipment; receiving an HTTP (hyper text transfer protocol) request message sent by the terminal equipment via the control link; determining the quantity of data links required to be established according to a message header of a returned HTTP response message, and distributing data link port numbers and/or target IP (internet protocol) addresses for the data links required to be established; constructing a redirect message which is used for redirecting the HTTP request message to the data links; sending the redirect message to the terminal equipment via the control link; and receiving the HTTP request message resent by the terminal equipment via a first data link and sending the HTTP response message to the terminal equipment by the aid of the network node. By the aid of the data transmission method and the data transmission device, concurrent processing efficiency of data transmission and bandwidth availability ratio can be improved, response time delay of the response message is reduced, and network congestion is released.

Description

Data transmission method, Apparatus and system
Technical field
The present invention relates to communication technical field, relate in particular to a kind of data transmission method, Apparatus and system.
Background technology
HTML (Hypertext Markup Language) (Hyper Text Transfer Protocol, HTTP) is widely used in the transmission of World Wide Web (WWW) (World Wide Web, the WWW) data based on the request/response model.User end to server sends a request, request header comprises: the transmission means of this request, Uniform Resource Identifier (Uniform Resource Identifier, URI), protocol version and the message structure (comprising request modifier, customer information and content etc.) that is similar to multipurpose internet mail expansion (Multipurpose Internet Mail Extensions, MIME).As response, the content of response comprises the version of messaging protocol to server with a statusline, and success or error coded add and comprise server info, entity metamessage and possible entity content.
HTTP mainly comprises 3 kinds of message transmissions modes: and short connection, long connection (Keep-alive) and the long connection that is connected (the long connection+pipeline).In short connected mode, a transmission control protocol (Transmission Control Protocol, TCP) link only sends a HTTP request, receive and just disconnect TCP after replying and connect, when next HTTP request sends, need to again create TCP and connect, then the transmission of data.In long connected mode, a TCP link can transmit a plurality of HTTP requests, and each HTTP request must just send after replying of previous HTTP request receives.In parallel long connected mode, a TCP link can transmit a plurality of HTTP requests and can send continuously a plurality of HTTP requests, and replying of all HTTP requests must sequentially be sent out according to the reception of HTTP request.
Parallel TCP is a kind of data transmission technology that is operated in application layer, is at the parallel data transmission method that uses a plurality of TCP to connect of a network path, the technology that improves the TCP performance by increasing number that TCP connects and the cooperation between the TCP stream.Parallel TCP does not need to revise existing tcp protocol stack in the realization of application layer, just to the modification of tcp window change mechanism, has good feasibility and autgmentability in the realization of transport layer yet.
Under browser/server (B/S) pattern, current most of main flow browsers (such as IE, FireFox, Safari, Chome etc.) adopt the long connected mode of parallel TCP+HTTP mostly.Adopt parallel TCP technology in transport layer, browser creates 5~10 TCP links simultaneously, the parallel request message that sends.Use the long connected mode of HTTP to transmit message in application layer, reduce message response time.Yet the link number of TCP parallel transmission is arranged by browser options, can't dynamically adjust.And owing to not adopting parallel long (Pipeline) mode that connects of HTTP, after sending a HTTP request, to receiving complete HTTP response message during this period of time, Client side browser can't send other messages.Cause rear end equipment once can only process a request, the Data Concurrent treatment effeciency is low.
Current main-stream browser (such as Opera etc.) adopts the Pipeline technology to send the HTTP message in addition, can a plurality of request message of disposable transmission, improved bandwidth availability ratio.Yet according to the http protocol regulation, the Pipeline technology must strictly be supported the characteristic of first in first out (FIFO): the response message of a plurality of HTTP requests of Batch sending also must return according to sending order.Therefore, if a very slow dynamic requests (when for example transmitting larger data) is arranged in the formation, so, response message with its follow-up HTTP request in same TCP passage, must wait for that all this request finishes dealing with first, could send follow-up message, cause the response delay of response message elongated, easily cause network congestion.
Summary of the invention
The purpose of this invention is to provide a kind of data transmission method, Apparatus and system, can improve concurrent processing efficient and the bandwidth availability ratio of transfer of data, reduce the response delay of response message, reduce network congestion.
For achieving the above object, first aspect present invention provides a kind of data transmission method, and described method comprises:
Network node and terminal equipment are set up transmission control protocol TCP control link;
Described network node receives the HTML (Hypertext Markup Language) HTTP request message that described terminal equipment sends by described control link;
The described HTTP request message of described network node is transmitted to server;
The heading of the HTTP response message corresponding with described HTTP request message that described network node returns according to described server, definite quantity that needs the data link of foundation, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation;
Described network node structure redirection message, described redirection message is used for described HTTP request message is redirected to data link, carries Data-Link port numbers and/or purpose IP in the described redirection message;
Described network node sends described redirection message to described terminal equipment, so that described terminal equipment is set up the first data link according to described redirection message and described network node by described control link;
Described network node receives the HTTP request message that described terminal equipment resends by described the first data link, and the transmission HTTP response message corresponding with the described HTTP request message that resends is to described terminal equipment.
In conjunction with first aspect, in the possible execution mode of the first of first aspect, the heading of the HTTP response message corresponding with described HTTP request message that described network node returns according to described server, definite quantity that needs the data link of foundation, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation, comprising:
From the heading of described HTTP response message, resolve type of message or the message length information that obtains described response message;
According to described type of message or message length information, determine the priority of described response message;
According to the priority of described response message, in conjunction with current control link situation or the definite quantity that needs the data link of foundation of loading condition, be described data link distribute data chain port numbers and/or the purpose IP that needs foundation.
In conjunction with the possible execution mode of the first of first aspect, in the possible execution mode of the second of first aspect, described network node structure redirection message, described redirection message is used for described HTTP request message is redirected to data link, comprising:
For described HTTP request message is specified described the first data link, described HTTP request message is redirected to the first data link of this appointment;
According to the priority of HTTP response message corresponding to described HTTP request message, determine described HTTP request message and be redirected to the transmission sequence of other HTTP request message on the first data link of described appointment on the first data link of described appointment;
Utilize the first data link of described appointment and the described transmission sequence of determining, generate redirection message, carry corresponding Data-Link port numbers and/or the purpose IP of the first data link of described appointment in the described redirection message.
In conjunction with first aspect, in the third possible execution mode of first aspect, send described redirection message by described control link to the described terminal equipment at described network node, also comprise:
When the Internet Transmission Quality Down of described the first data link, the HTTP request message on described the first data link is redirected on other data link.
In conjunction with first aspect, in the 4th kind of possible execution mode of first aspect,, also comprise to the described terminal equipment at the described transmission HTTP response message corresponding with the described HTTP request message that resends:
When the response delay of the HTTP response message in described the first data link is overtime, priority according to response message corresponding to described HTTP request message, the HTTP request message of low priority is redirected on other data link, responds again the HTTP request message of high priority.
In conjunction with first aspect, in the 5th kind of possible execution mode of first aspect, at the described transmission HTTP response message corresponding with the described HTTP request message that resends to the described terminal equipment, also comprise: detect the Internet Transmission quality in the process of transmission response message, dynamically adjust the quantity of described data link according to described Internet Transmission quality.
In conjunction with the 5th kind of possible execution mode of first aspect, in the 6th kind of possible execution mode of first aspect, dynamically adjust the quantity of described data link according to described Internet Transmission quality, comprising:
When described Internet Transmission quality is lower than predetermined threshold value, increase new data link, be described new data link distribute data chain port numbers;
Described be new data link distribute data chain port numbers after, described method also comprises:
The HTTP request message that part HTTP response message is corresponding is redirected to this new data link, the redirection message that structure is corresponding, and the redirection message that sends described correspondence by described Quality Initiative is to described terminal equipment;
Receive the HTTP request message that described terminal equipment resends by described new data link, and send corresponding HTTP response message to described terminal equipment.
In conjunction with first aspect, in the 7th kind of possible execution mode of first aspect, described control link or described the first data link adopt the parallel transmission pattern to carry out transfer of data.
Second aspect also provides a kind of data transmission method, and described method comprises:
Network node and terminal equipment are set up transmission control protocol TCP control link;
Described network node receives the HTML (Hypertext Markup Language) HTTP request message that described terminal equipment sends by described control link; Wherein, described HTTP request message is polling request;
If having the data of renewal to wait for, described network node pushes, whether the quantity of then judging the data of upgrading in time interval of HTTP request of twice poll surpasses predetermined threshold value, if surpass, then construct redirection message, described redirection message is redirected to data link for the HTTP request of the poll that will receive, and sends described redirection message to described terminal equipment by described control link; If do not surpass, then adjust the poll stand-by period according to the renewal speed of described data, the described poll stand-by period after adjusting and the data of described renewal are sent to described terminal equipment;
If the data that described network node does not have to upgrade are waited for propelling movement, then construct without the content update message, the poll stand-by period is set, and the described poll stand-by period without content update message and setting is sent to described terminal equipment.
In conjunction with second aspect, in the possible execution mode of the first of second aspect, sending described redirection message by described control link to the described terminal equipment, also comprise:
Judge whether the first data link of described appointment is monopolized, if, then construct without the content update message and the poll stand-by period is set, be sent to after the described terminal equipment by described the first data link, send described redirection message to described terminal equipment by described control link again.
In conjunction with second aspect, in the possible execution mode of the second of second aspect, described renewal speed according to described data is adjusted the poll stand-by period, comprising:
When the renewal speed of described data is accelerated, shorten the described poll stand-by period;
When the renewal speed of described data slows down, prolong the described poll stand-by period.
In conjunction with second aspect, in the third possible execution mode of second aspect,, also comprise to the described terminal equipment at the described transmission HTTP response message corresponding with the described HTTP request message that resends:
Receive the polling request that described terminal equipment sends by described the first data link, when having polling request to arrive in described the first data link, the data of upgrading are pushed to described terminal equipment as pushing content.
In conjunction with second aspect, in the 4th kind of possible execution mode of second aspect, after described data-pushing with renewal is given described terminal equipment, also comprise:
Be lower than predetermined threshold value if the renewal speed of the data that current polling request will push slows to, structure is issued described terminal equipment and chain rupture without the content update message.
The third aspect, the present invention also provides a kind of data transmission method, and described method comprises:
TCP control link between terminal equipment foundation and the network node;
Described terminal equipment sends the HTTP request message to described network node by described control link;
Described terminal equipment receives the redirection message that described network node returns;
Described terminal equipment according to described redirection message create with described network node between TCP be connected as the first data link, and resend the HTTP request message in described the first data link and give described network node, the described HTTP request message that resends is the described HTTP request message after being redirected;
Described terminal equipment receives HTTP response message corresponding to the described HTTP request message that resends by described the first data link.
In conjunction with the third aspect, in the possible execution mode of the first of the third aspect, carry one or more Data-Link port numbers and/or purpose IP in the described redirection message;
Described terminal equipment according to described redirection message create with described network node between TCP be connected as the first data link, comprising:
Described terminal equipment creates one or more TCP and connects as described the first data link according to the Data-Link port numbers in the described redirection message and/or purpose IP.
In conjunction with the third aspect, in the possible execution mode of the second of the third aspect, after described terminal equipment receives response message corresponding to the described HTTP request message that resends by described the first data link, also comprise:
When the HTTP response message that will receive in described the first data link all receives, close described the first data link.
In conjunction with the third aspect, in the third possible execution mode of the third aspect, described control link or described the first data link adopt the parallel transmission pattern to carry out transfer of data.
Fourth aspect also provides a kind of data transmission method, and described method comprises:
TCP control link between terminal equipment foundation and the network node;
Described terminal equipment sends the HTTP request message to described network node by described control link; Wherein, described HTTP request message is polling request;
Described terminal equipment receives propelling movement content or the redirection message that described network node returns;
If what receive is to push content, then after the stand-by period, send next polling request to described network node by described control link at described default poll;
If what receive is redirection message, then again send described current polling request to described network node according to first data link of described redirection message by appointment, and monopolize this first data link, receive the data that described network node pushes by described the first data link.
In conjunction with fourth aspect, in the possible execution mode of the first of fourth aspect, described terminal equipment receives the data of described network node propelling movement by described the first data link after, also comprise: after described terminal equipment receives the data of described network node propelling movement, keep the connection status of described the first data link.
In conjunction with fourth aspect, in the possible execution mode of the second of fourth aspect, described terminal equipment receives the data of described network node propelling movement by described the first data link after, also comprise: when receive that described network node sends without the content update message time, discharge monopolizing described the first data link;
After stand-by period, send new HTTP request message to described network node by described control link at default poll.
In conjunction with fourth aspect, in the third possible execution mode of fourth aspect, if when described first data link of appointment did not exist in the described redirection message, described method also comprised: described terminal equipment creates corresponding TCP according to described redirection message and connects as described the first data link.
The 5th aspect, the present invention also provides a kind of network node, and described network node comprises: link setup module, transceiver module, processing module and redirection module;
Described link setup module is used for setting up the TCP control link with terminal equipment;
Described transceiver module, be used for receiving the HTTP request message that described terminal equipment sends by the described control link that described link setup module is set up, described HTTP request message is transmitted to server, and receives the HTTP response message corresponding with described HTTP request message that described server returns;
Described processing module, be used for returning according to described server the heading of the HTTP response message corresponding with described HTTP request message, definite quantity that needs the data link of foundation, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation;
Described redirection module, be used for the result structure redirection message according to described processing module, described redirection message is used for described HTTP request message is redirected to data link, carries Data-Link port numbers and/or purpose IP in the described redirection message;
Described transceiver module also is used for sending the described redirection message of described redirection module structure to described terminal equipment by described control link, to set up the first data link according to described redirection message by described link setup module and described terminal equipment, and receive the HTTP request message that described terminal equipment resends by described the first Data-Link, and the transmission HTTP response message corresponding with the described HTTP request message that resends is to described terminal equipment.
In conjunction with the 5th aspect, in the possible execution mode of the first aspect the 5th, described processing module specifically comprises: resolution unit, priority determining unit and number of links determining unit;
Described resolution unit is used for resolving type of message or the message length information that obtains described response message from the heading of described HTTP response message;
Described priority determining unit for the described type of message or the message length information that obtain according to described resolution unit, is determined the priority of described response message;
Described number of links determining unit, be used for the priority according to the definite described response message of described priority determining unit, in conjunction with current control link situation or the definite quantity that needs the data link of foundation of loading condition, be described data link distribute data chain port numbers and/or the purpose IP that needs foundation.
In conjunction with the 5th aspect, in the possible execution mode of the second aspect the 5th, described redirection module comprises: data link designating unit, order adjustment unit and message generation unit;
Described data link designating unit is used to described HTTP request message to specify described the first data link, described HTTP request message is redirected to the first data link of this appointment;
Described order adjustment unit, be used for the priority according to HTTP response message corresponding to described HTTP request message, determine described HTTP request message and be redirected to the transmission sequence of other HTTP request message on the first data link of described appointment on the first data link of described appointment;
Described message generation unit, be used for utilizing the first data link of described appointment and the described transmission sequence of determining, generate redirection message, carry data link ports corresponding to the first data link of described appointment number and/or purpose IP in the described redirection message.
In conjunction with the 5th aspect, in the possible execution mode of aspect the 5th the third, described redirection module also is used for when the Internet Transmission Quality Down of described the first data link the HTTP request message on described the first data link being redirected on other data link.
In conjunction with the 5th aspect, in the 4th kind of possible execution mode aspect the 5th, described redirection module also is used for when the response delay of the HTTP of described the first data link response message is overtime, priority according to response message corresponding to described HTTP request message, the HTTP request message of low priority is redirected on other data link, responds again the HTTP request message of high priority.
In conjunction with the 5th aspect, in the 5th kind of possible execution mode aspect the 5th, described processing module is also for detection of the Internet Transmission quality in the process of transmission response message;
Described redirection module also is used for the described Internet Transmission quality according to described processing module detection, dynamically adjusts the quantity of described data link.
The 5th kind of possible execution mode in conjunction with the 5th aspect, in the 6th kind of possible execution mode aspect the 5th, described redirection module specifically is used for when described Internet Transmission quality is lower than predetermined threshold value, increase new data link, be described new data link distribute data chain port numbers, the HTTP request message that part HTTP response message is corresponding is redirected to this new data link, the redirection message that structure is corresponding;
Described transceiver module sends the redirection message of described correspondence to described terminal equipment by described control link, and receive the HTTP request message that described terminal equipment resends by described new data link, and send corresponding HTTP response message to described terminal equipment.
In conjunction with the third aspect, in the 7th kind of possible execution mode of the third aspect, described transceiver module adopts the parallel transmission pattern to carry out transfer of data in described control link or described the first data link.
The 6th aspect also provides a kind of network node, and described network node comprises: link setup module, transceiver module, processing module and redirection module;
Described link setup module is used for setting up the TCP control link with terminal equipment;
Described transceiver module is used for receiving the HTTP request message that described terminal equipment sends by the described control link that described link setup module is set up, and wherein, described HTTP request message is polling request;
Described processing module, be used for judging whether described network node has the data of renewal to wait for and push, if having the data of renewal to wait for, described network node pushes, whether the quantity of then judging the data of upgrading in time interval of HTTP request of twice poll surpasses predetermined threshold value, if surpass, then utilize described redirection module structure redirection message, described redirection message is redirected to data link for the HTTP request of the poll that will receive, and sends described redirection message to described terminal equipment in described control link by described transceiver module; If do not surpass, then adjust the poll stand-by period according to the renewal speed of described data, the data communication device of the described poll stand-by period after adjusting and described renewal is crossed described transceiver module be sent to described terminal equipment;
If the data that described network node does not have to upgrade are waited for propelling movement, then construct without the content update message, the poll stand-by period is set, and the described poll stand-by period without content update message and setting is sent to described terminal equipment by described transceiver module.
In conjunction with the 6th aspect, in the possible execution mode of the first aspect the 6th, described processing module also is used for judging whether the first data link of described appointment is monopolized, if, then construct without the content update message and the poll stand-by period is set, after in described the first data link, being sent to described terminal equipment by described transceiver module, in described control link, send described redirection message to described terminal equipment by described transceiver module again.
In conjunction with the 6th aspect, in the possible execution mode of the second aspect the 6th, described processing module specifically is used for shortening the described poll stand-by period when the renewal speed quickening of described data; Perhaps, when the renewal speed of described data slows down, prolong the described poll stand-by period.
In conjunction with the 6th aspect, in the possible execution mode of the third aspect the 6th, described transceiver module also is used for receiving by described the first data link the polling request of described terminal equipment;
Described processing module also is used for giving described terminal equipment by described transceiver module with the data-pushing of renewal when described the first data link has polling request to arrive.
In conjunction with the 6th aspect, in the 4th kind of possible execution mode aspect the 6th, if described processing module also is used for the renewal speed of the data that current polling request will push and slows to and be lower than predetermined threshold value, structure is issued described terminal equipment and chain rupture with described without the content update message by described transceiver module without the content update message.
The 7th aspect, the present invention also provides a kind of terminal equipment, and described terminal equipment comprises: link setup module, transceiver module and processing module;
Described link setup module is used for the TCP control link between foundation and the network node;
Described transceiver module is used for sending the HTTP request message to described network node by the described control link that described link setup module is set up, and receives the redirection message that described network node returns;
Described processing module is used for the described redirection message that receives according to described transceiver module, is connected as the first data link with TCP between the described network node by described link setup module creation;
The HTTP request message that described transceiver module also is used for resending in described the first data link is to described network node, the described HTTP request message that resends is the described HTTP request message after being redirected, and receives HTTP response message corresponding to the described HTTP request message that resends by described the first data link.
In conjunction with the 7th aspect, in the possible execution mode of the first aspect the 7th, carry one or more Data-Link port numbers and/or purpose IP in the described redirection message that described transceiver module receives;
Described processing module connects as described the first data link by described link setup module creation one or more TCP according to the Data-Link port numbers in the described redirection message and/or purpose IP.
In conjunction with the 7th aspect, in the possible execution mode of the second aspect the 7th, described processing module also is used for closing described the first data link when HTTP response message that described transceiver module will receive in described the first data link all receives.
In conjunction with the 7th aspect, in the possible execution mode of the third aspect the 7th, described control link or described the first data link adopt the parallel transmission pattern to carry out transfer of data.
Eight aspect also provides a kind of terminal equipment, and described terminal equipment comprises: link setup module, transceiver module and processing module;
Described link setup module is used for the TCP control link between foundation and the network node;
Described transceiver module, be used for sending the HTTP request message to described network node by the described control link that described link setup module is set up, wherein, described HTTP request message is polling request, and receives propelling movement content or redirection message that described network node returns;
Described processing module if what be used for to receive is to push content, then, sends next polling request by described transceiver module and arrives described network node after the stand-by period at described default poll in described control link;
If what receive is redirection message, then again send described current polling request to described network node according to first data link of described redirection message by appointment, and monopolize this first data link, receive the data that described network node pushes by described the first data link.
In conjunction with eight aspect, in the possible execution mode of the first of eight aspect, described processing module also is used for keeping the connection status of described the first data link after described transceiver module receives the data of described network node propelling movement.
In conjunction with eight aspect, in the possible execution mode of the second of eight aspect, described processing module also be used for when described transceiver module receive described server transmission without the content update message time, release is monopolized described the first data link, and after the stand-by period, in described control link send HTTP request message to described network node by described transceiver module at default poll.
In conjunction with eight aspect, in the third possible execution mode of eight aspect, described processing module also is used for creating corresponding TCP by described link setup module according to described redirection message and connecting as described the first data link when described first data link of described redirection message appointment does not exist.
The 9th aspect, the present invention also provides a kind of data transmission system, and described system comprises:
The described network node of the embodiment of the invention and the described terminal equipment of the embodiment of the invention.
Data transmission method provided by the invention, Apparatus and system, request message and response message are separately independently transmitted by control link and data link respectively, improve request message concurrent processing efficient and bandwidth availability ratio, by the mode that is redirected, adjust flexibly the order of response message, reduce the response delay of response message, realize the high priority requests preferential answering, reduce network congestion.
Description of drawings
The Organization Chart of the data transmission system that Fig. 1 provides for the embodiment of the invention;
A kind of data transmission method flow chart that Fig. 2 provides for the embodiment of the invention one;
The method flow diagram of the structure redirection message that Fig. 3 provides for the embodiment of the invention one;
The schematic diagram of the initial request message sequence that in control link, transmits that Fig. 4 a provides for the embodiment of the invention one;
The schematic diagram that is redirected the rear again request message order of in data link, transmitting that Fig. 4 b provides for the embodiment of the invention one;
The another kind of data transmission method flow chart that Fig. 5 provides for the embodiment of the invention one;
The process schematic diagram of a kind of transfer of data that Fig. 6 provides for the embodiment of the invention one;
A kind of data transmission method flow chart that Fig. 7 provides for the embodiment of the invention two;
The another kind of data transmission method flow chart that Fig. 8 provides for the embodiment of the invention two;
The structural representation of a kind of network node that Fig. 9 provides for the embodiment of the invention three;
The structural representation of a kind of subscriber equipment that Figure 10 provides for the embodiment of the invention three;
The structural representation of a kind of server that Figure 11 provides for the embodiment of the invention four;
The structural representation of a kind of subscriber equipment that Figure 12 provides for the embodiment of the invention four;
Figure 13 forms schematic diagram for the structure of the network node that the embodiment of the invention five provides;
Figure 14 forms schematic diagram for the structure of the terminal equipment that the embodiment of the invention five provides.
Embodiment
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
The data transmission method that the embodiment of the invention provides and device are applicable to network data transmission, in the data transmission procedure that especially employing HTTP mode is carried out between client and network node.Wherein, network node can be to use distribution controller (Application Delivery Controller, ADC)/server (Server)/gateway/data center etc.
To take the data transmission system that comprises ADC as example describes, it will be appreciated by those skilled in the art that ADC also can correspondingly replace with other network nodes, such as server etc. in embodiments of the present invention.ADC is upgrading, the expansion of traditional Network Load Balance, it is a kind of comprehensive delivery platform equipment, it combines the comprehensive platform of the various technological means such as load balance, TCP optimum management, url management, encryption socket layer Virtual Private Network (Security Socket Layer Virtual Private Network, SSL VPN), compression optimization, intelligent network address transition, senior route, intelligent port mirror image.
Fig. 1 is the Organization Chart of the data transmission system that provides of the embodiment of the invention, and as shown in Figure 1, described system comprises: terminal equipment 10, ADC20 and server 30.In the ADC scene, the request msg that terminal equipment 10 sends is connected to the ADC20 with load-balancing function by IP network, after shunting through ADC20, is transmitted to a plurality of servers 30 in rear end.Server 30 returns corresponding reply data to ADC20, is transmitted to terminal equipment 10 again.
Embodiment one
Fig. 2 is the data transmission method flow chart that the present embodiment provides, and as shown in Figure 2, data transmission method of the present invention comprises:
S101, ADC and terminal equipment are set up the TCP control link.
After ADC received the TCP connection foundation request of terminal equipment transmission, foundation was connected with the TCP of terminal equipment, and as control link.In general, control link only has one, and the destination interface of control link is 80 usually.
The HTTP request message that S102, ADC send by described control link receiving terminal apparatus.
S103, ADC issue corresponding server with described HTTP request message.
ADC resolves described HTTP request message, according to the result who resolves the HTTP request message is issued corresponding server.
The HTTP response message corresponding with described HTTP request message that S104, ADC reception server return.
S105, ADC be according to the heading of described HTTP response message, need to determine the quantity of the data link set up, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation.
S106, ADC construct redirection message, and described redirection message is used for described HTTP request message is redirected to data link.
Carry Data-Link port numbers and/or purpose IP in the described redirection message, wherein, the Data-Link port numbers is that ADC is the described pre-assigned port numbers of data link that needs foundation, usually can be in 0~255 any one, but generally do not select fixedly universal port (such as 80 etc.), purpose IP is that ADC is the described pre-assigned IP of the data link address set up of needing.According to the corresponding relation between the Data-Link port numbers in the redirection message or purpose IP and the described HTTP request message, described HTTP request message can be redirected to corresponding data link.
S107, ADC send described redirection message to terminal equipment by described control link, so that described terminal equipment is set up the first data link according to described redirection message and ADC.
The HTTP request message that S108, ADC resend by described the first data link receiving terminal apparatus, and send corresponding response message to terminal equipment.
According to the heading of described response message, described HTTP request message is redirected to the first data link of appointment among the S105, the structure redirection message as shown in Figure 3, specifically comprises:
S1051, from the heading of described HTTP response message, resolve type of message or the message length information obtain described response message.
After getting access to the heading of response message, ADC resolves those headings, obtains type of message or the message length information of described response message.
S1052, according to described type of message or message length information, determine the priority of described response message.
According to the response message type corresponding priority being set, is 0, HTML priority 1 such as CSS priority, the picture priority 3, and JS priority is 4 etc., the less priority of numeral is higher.
Message length information is the size of message body, is 1 etc. such as, the 512k priority take the priority of interior message body as the message body of 0,1M, and the less priority of numeral is higher.
Certainly, the priority of response message also can be by the User Defined setting.
S1053, according to the priority of described response message, need to determine the quantity of the data link set up in conjunction with current control link situation or loading condition, be each described data link distribute data chain port numbers and/or purpose IP of setting up of needing.
After getting access to a certain amount of response message, ADC determines the quantity of required data link according to current link circuit condition or loading condition, maximum is no more than browser and supports maximum concurrent number, and is each described data link Random assignment Data-Link port numbers or purpose IP.
Construct redirection message among the S106, described redirection message is used for described HTTP request message is redirected to data link, comprise: for described HTTP request message is specified described the first data link, described HTTP request message is redirected to the first data link of this appointment; According to the priority of HTTP response message corresponding to described HTTP request message, determine described HTTP request message and be redirected to the transmission sequence of other HTTP request message on the first data link of described appointment on the first data link of described appointment; Utilize the first data link of described appointment and the described transmission sequence of determining, generate redirection message.
Priority according to response message is carried out order adjustment to the HTTP request message in same the first data link, so that the message of high priority as far as possible the shortest time send back to subscriber equipment, the response message of high priority sends faster than the response message of low priority.Like this, be that high priority can preferentially send for the less response message of message length, and be that low priority is assigned to the back and sends for the larger response message of message length, it is the relation of parallel processing between the different data link, be independent of each other mutually, can avoid occurring slowly causing owing to the larger response message transmission of message length the time-delay of the less response message of message length, reduce network congestion.
Carry Data-Link port numbers and/or the purpose IP of described first data link of appointment in the described redirection message.The Data-Link port numbers that the HTTP request message that terminal equipment resends by the first data link then distributes with ADC is as the destination slogan, and the purpose IP that distributes with ADC is as purpose IP.
The information of Data-Link port numbers and/or purpose IP is stored in the Uniform Resource Identifier URI field of message usually, the Data-Link port numbers and/or the purpose IP that redistribute are generated new URI, the formation of structure redirection message, and send described redirection message to described terminal equipment by described control link.Redirection message is usually very little, can only comprise the necessary information such as Data-Link port numbers and URI, substantially can not increase volume of transmitted data, can effectively improve efficiency of transmission.
Give an example, shown in Fig. 4 a, in control link, there are 9 initial request message Req1~Req9 to be sent to server from terminal equipment, determine first the priority of response message corresponding to each request message, the priority of request message is corresponding with the priority of response message, thereby also to can be understood as be the priority of determining request message, the result who obtains is: Req1, Req4, Req7 are the message of grade 1, Req2, Req5, Req8 are the message of grade 2, and Req3, Req6, Req9 are the message of grade 3.Priority according to message, in conjunction with current link circuit condition or loading condition, the specified data number of links is 3, and distribute data chain port numbers is to identify those data link, request message after being redirected is shown in Fig. 4 b, in data link 1, preferentially send the Req1 of high priority, send again the Req2 of time priority, send at last the Req3 of low priority.In like manner the order in data link 2 is Req4, Req5, Req6, and the order in data link 3 is Req7, Req8, Req9, to send first the high request message of priority.
Need to prove, being redirected is disposable being redirected, the Data-Link port of its distribution is temporary transient, if subsequent user is asked identical content again by terminal equipment, must send by control link the original URL of request, the port that adopts is generally 80, again obtains new redirected response message.For new HTTP request message, terminal equipment sends by control link, transmits redirection message and response message in data link.
Optionally, after S107, also comprise: when the Internet Transmission Quality Down of described the first data link, the HTTP request message on described the first data link is redirected on other data link.
Optionally, after S107, also comprise: when the response delay of the HTTP response message in described the first data link is overtime, the order that shows the HTTP request message is unreasonable, then according to the priority of response message corresponding to described HTTP request message, the HTTP request message of low priority is redirected on other data link, responds again the HTTP request message of high priority.
Optionally, after S108, also comprise: detect the Internet Transmission quality in the data transmission procedure, dynamically adjust the quantity of described data link according to described Internet Transmission quality.Specifically comprise:
When the Internet Transmission quality of data link improves, can reduce the quantity of data link, to improve the utilance of data link.
When the Internet Transmission Quality Down of described data link, be redirected to the HTTP request message of the data link of this degradation on the remainder data link or be redirected on the new data link.
When described Internet Transmission quality is lower than predetermined threshold value, increase new data link, be described new data link distribute data chain port numbers.
Then the HTTP request message that the part response message is corresponding is redirected to this new data link among the S106, constructs corresponding redirection message, and sends the redirection message of described correspondence to terminal equipment by described control link.
The HTTP request message that resends by described new data link receiving terminal apparatus, and send corresponding response message to terminal equipment.
Fig. 5 is another data transmission method flow chart that the present embodiment one provides, and as shown in Figure 5, described method comprises:
TCP control link between S201, terminal equipment foundation and the network node.
Terminal equipment is initiated TCP to network node and is connected the request of foundation, sets up TCP and connects as control link.In the present embodiment, network node is ADC equipment, and network node can also be the equipment such as server, gateway or data center.
S202, terminal equipment send the HTTP request message to network node by described control link.
In general, control link only has one, adopts all the time the most newly-established control link to send described HTTP request message to network node, and the destination interface of control link is 80 usually.
S203, terminal equipment receive the redirection message that described network node returns.
S204, according to described redirection message create with described network node between TCP be connected as the first data link, and in described the first data link, resend the HTTP request message to network node.
Carry one or more Data-Link port numbers and/or purpose IP in the redirection message, usually be stored in the Uniform Resource Identifier URI field of message, according to the Data-Link port numbers in the redirection message and/or purpose IP, send TCP to network node and connect the request of foundation, carry the Data-Link port numbers and/or the purpose IP that distribute in the redirection message in this request, the URI that please look for novelty, thus the TCP that creates one or more correspondence connects as the first data link.
Resend the HTTP request message to network node in the first data link of correspondence, the HTTP request message that resends is the described HTTP request message after being redirected.Can only comprise a small amount of necessary content such as new URI, browser information of ADC appointment in the redirection message in the request header field of the HTTP request message that this resends, the information of other header fields can be removed, with conserve network resources.
S205, receive HTTP response message corresponding to the described HTTP request message that resends by described the first data link.
Optionally, after S205, when the response message that will receive in described the first data link all receives, close described the first data link, to avoid for a long time idle wasting of resources that brings of data link.Follow-up when if new HTTP request is arranged, send by control link again, obtain redirection information after, again create new data link.All new HTTP request messages must send by control link, can only send the request after being redirected in the data link.
Give an example, Fig. 6 is the process schematic diagram of a kind of transfer of data of providing of the present embodiment, as shown in Figure 6, adopt the parallel long connected mode that is connected between terminal equipment and the ADC, after foundation TCP between the two connects as control link, in this control link, three HTTP request message HTTP REQ1~HTTP REQ3 to ADC of the parallel transmission of terminal equipment, ADC sends to server with HTTP REQ1~HTTP REQ3, and the heading of the response message that returns for three HTTP request messages respectively of reception server.ADC resolves described heading, the size that obtains the message body of the response message that HTTP REQ1~HTTP REQ3 is corresponding is respectively 512K, 512K, 1M, then the quantity of specified data link is 2, and HTTP REQ1~HTTP REQ3 is redirected to the data link of appointment, as shown in FIG., HTTP REQ1 and HTTP REQ2 that message body size is less are redirected to data link 1, the HTTP REQ3 that message body size is larger is redirected to data link 2, sends to terminal equipment behind the structure redirection message.Terminal equipment creates corresponding data link 1 and data link 2 according to redirection message, resends HTTP REQ1 and HTTP REQ2 in data link 1, resends HTTP REQ3 in data link 2.ADC correspondingly returns the message body (being data) of response message corresponding to HTTP REQ1 and HTTP REQ2 in data link 1, return the message body of response message corresponding to HTTP REQ3 in data link 2.
Need to prove, control link or the first data link (data link) all can adopt the parallel transmission pattern to carry out transfer of data in the embodiment of the invention.A plurality of HTTP request messages that network node sends by described control link parallel receive terminal equipment.Network node is when resolving current HTTP request message, the heading of the response message that the parallel previous HTTP request message that obtains described current HTTP request message is corresponding, when getting access to the heading of response message corresponding to current HTTP request message, parallel analytic message head.Network node is sending redirection message to terminal equipment by control link, the link setup request of parallel receive terminal equipment, after setting up TCP and connecting as the first data link, the HTTP request message that resends by many first data link parallel receive terminal equipments, and send corresponding HTTP response message to terminal equipment by the first data link is parallel.
Terminal equipment sends a plurality of HTTP request messages to network node by described control link is parallel.After receiving the redirection message that network node sends, parallel to the request of network node transmission link setup, after setting up data link, send again request message to network node, the response message that the parallel receive terminal equipment returns by many first data link are parallel.
In the scene of not using ADC, the request msg that terminal equipment 10 sends directly sends to certain server 30 by IP network.Receive the response message corresponding to server 30 self response acquisition described request data of those request msgs, after obtaining first the heading of response message of some, resolve the heading of those response messages, the processing procedure among follow-up and the embodiment one is similar, repeats no more in this.If the described request request of data is the content of other servers, the server that then receives request msg is transmitted to corresponding server with this request msg, receives the HTTP response message that the server of described correspondence returns again.
The present invention is by transmission HTTP request message in control link, transmission HTTP response message in the first data link (data link), HTTP request message and HTTP response message are separated the mode of transmitting, request message concurrent processing efficient and TCP bandwidth availability ratio have been improved, by the mode that is redirected, adjust flexibly the order of response message, reduce the response delay of response message, realize the high priority requests preferential answering, reduce network congestion.
Embodiment two
The all right back-level server push function of data transmission method of the present invention, the below describes the scene of server push data.
Because http protocol is stateless, unidirectional agreement.Request is sent to Web server, and the server process request is also beamed back a response for this request.Request must be sent by terminal equipment, and server then can only send data in the response to request.This affects the practicality of very eurypalynous web application, for example score of TALKER, match, stock market or e-mail program etc. to I haven't seen you for ages.
Usually adopt at present long poll (long polling) or stream (streaming) to solve real time problems.
Browser regularly sends request to server, after getting response packet, waits for one period regular time, and then sends same request.Long poll usually TCP connect is kept one section long time-several seconds normally, but also may be one minute even longer.In when, on the server certain event occuring when, send response and close immediately the TCP connection, poll is waited for and being restarted immediately.Like this, data are in a single day available, just send to terminal equipment from server immediately.Request may be waited for the long time, during return without any data, but in case new data have been arranged, it will be sent to terminal equipment immediately, not time-delay.
Stream is with the difference of long poll maximum, and server pushes back terminal equipment with data, but does not close the TCP connection.Connection will be held open always, until poll-timeout next time sends request again, obtain just from the server latest data.The same with long poll, this mode is not time-delay also.When the data ready on the server, these data are sent to terminal equipment.The request number that sends to server be can greatly reduce like this, thereby expense and time-delay with the server link setup avoided repeatedly.
Yet the mode of the long poll of employing does not have overtime in client's poll time, can request msg.This moment, server had new data in time to push, and obtain real time data all needs to set up the TCP connection and send repetitive requests at every turn, increases expense and delay.Connect and adopt the stream mode need to keep for a long time TCP, if current server data to be pushed never, this link will leave unused for a long time.If the client has other new requests, must create new TCP and connect, the TCP that can't use serviced device propelling movement to monopolize connects.
Data transmission method by the embodiment of the invention can effectively address the above problem, and by in conjunction with being redirected and postponing request technology, has realized adaptive server push function.
Fig. 7 is a kind of data transmission method flow chart that the present embodiment provides, and as shown in Figure 7, described method comprises:
S301, server and terminal equipment are set up the TCP control link.
S302, server receive the request message that described terminal equipment sends by described control link.
S101~S102 is corresponding identical among step S301~S302 and the embodiment one, repeats no more in this.
S303, server are judged the type of described request message, if the described request message is non-polling request, enter S304; If the described request message is the polling request of terminal equipment, enter S307.
S304, server obtain the heading of response message corresponding to described request message.
S305, server be according to the heading of described response message, with first data link of described request message redirecting to appointment, and the structure redirection message, and send described redirection message to terminal equipment by described control link.
S306, server receive the HTTP request message that described terminal equipment resends by described the first data link, and send corresponding response message to described terminal equipment.
S104~S106 is corresponding identical among step S304~S306 and the embodiment one, repeats no more in this.
S307, server judge whether that the data wait of renewal pushes, and if so, enter S308, otherwise, enter S311.
S308, server judge whether the quantity of the data of upgrading in the time interval of twice polling request surpasses predetermined threshold value, if surpass, enters S309, otherwise, enter S310.
S309, server constructs redirection message, described redirection message is redirected to data link for the HTTP request of the poll that will receive, and sends described redirection message to terminal equipment by described control link.
Server is chosen first data link, allows terminal equipment to receive the data that push with exclusive mode, and the structure redirection message.Wherein, can not be too many by the quantity of the first data link of being exclusively enjoyed, current it has been generally acknowledged that 2 just enough.
Optionally, sending described redirection message by described control link to the terminal equipment, also comprise: whether the first data link of judging described appointment is monopolized, if, then construct without the content update message and the poll stand-by period is set, be sent to after the described terminal equipment by described the first data link, send described redirection message to described terminal equipment by described control link again.
S310, server are adjusted the poll stand-by period according to the renewal speed of described data, and the described poll stand-by period after adjusting and the data of described renewal are sent to terminal equipment.
Wherein, adjust the poll stand-by period according to the renewal speed of described data, comprising: when the renewal speed of described data is accelerated, shorten the described poll stand-by period; When the renewal speed of described data slows down, prolong the described poll stand-by period.
S311, server constructs arrange the poll stand-by period without the content update message, and the described poll stand-by period without content update message and setting is sent to terminal equipment.
Optionally, after setting up the first data link, terminal equipment can also send polling request by described the first data link, thereby, server can receive by described the first data link the polling request of described terminal equipment, when having polling request to arrive in described the first data link, give described terminal equipment with the data-pushing of renewal.
Optionally, after described data-pushing with renewal is given described terminal equipment, also comprise: be lower than predetermined threshold value if the renewal speed of the data that current polling request will push slows to, structure is issued described terminal equipment and chain rupture without the content update message.
Fig. 8 is the another kind of data transmission method flow chart that the present embodiment provides, and as shown in Figure 8, described method comprises:
S401, terminal equipment set up with server between TCP be connected, described TCP is connected to control link.
S402, when the poll wait timeout, terminal equipment sends the HTTP request message to server by described control link.
S403, terminal equipment receive propelling movement content or the redirection message of described server, if reception is to push content, enter S404, if reception is redirection message, enter S405.
S404, at default poll after the stand-by period, terminal equipment transmit a request to server by described control link.
S405, terminal equipment send described HTTP request message to server again according to first data link of described redirection message by appointment, and monopolize this first data link, the data that reception server pushes.
If the first data link of appointment does not exist in the described redirection message, namely need to create new data link, terminal equipment creates corresponding TCP according to described redirection message and connects as the first data link.Carry one or more Data-Link port numbers and/or purpose IP in the redirection message, terminal equipment is according to the Data-Link port numbers in the redirection message and/or purpose IP, and the TCP that creates one or more correspondence connects as the first data link.
Optionally, after S405, can also comprise: after the data that receive described server push, terminal equipment keeps the connection status of the first data link, does not disconnect described the first data link.If described the first data link is in still exclusive state, terminal equipment is follow-up initiatively not to send request message by described the first data link.
Optionally, after S405, can also comprise: when receive that described server sends without the content update message time, terminal equipment discharges monopolizing described the first data link; And after the stand-by period, send HTTP request message to server by described the first control link at default poll.
The data transmission method that the embodiment of the invention provides, be redirected by adaptive, allow a plurality of HTTP polling request by the mode of time-sharing multiplex, in conjunction with the upper level applications frequency of new data more, monopolize in turn the first data link and receive propelling data, utilized to greatest extent link circuit resource.When follow-up terminal equipment batch (-type) sent new request, server can be abdicated the right of monopolizing the first data link (data link) by guiding terminal equipment, recovers the self adaptation redirection function, did not need to create new TCP again and connected, and had avoided link setup expense and delay.
More than be the detailed description that data transmission method provided by the present invention is carried out, the below is described in detail data transmission device provided by the invention.
Embodiment three
Fig. 9 is the network node schematic diagram that the present embodiment provides, network node of the present invention can be ADC/ servers/gateways/data center etc., as shown in Figure 9, network node of the present invention comprises: link setup module 501, transceiver module 502, processing module 503 and redirection module 504.
Link setup module 501 is used for setting up the TCP control link with terminal equipment.
After the TCP that receives the terminal equipment transmission by transceiver module 502 connected the request of foundation, link setup module 501 was set up and is connected with the TCP of terminal equipment, and as control link.In general, control link only has one, and the destination interface of control link is 80 usually.
Transceiver module 502 is used for the HTTP request message by the described control link receiving terminal apparatus transmission of link setup module 501 foundation.
Processing module 503 is used for resolving the described HTTP request message that transceiver module 502 receives, and obtains the heading of response message corresponding to described HTTP request message by transceiver module 502.
If it is when issuing other network node (such as server) that processing module 503 is resolved to described HTTP request message, then by transceiver module 502 described HTTP request message is sent to corresponding network node first, and receive the HTTP response message that the network node of described correspondence returns.
Processing module 503 also is used for after the HTTP response message that receives by transceiver module 502, heading according to described HTTP response message, definite quantity that needs the data link of foundation, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation.
Redirection module 504 is used for the result structure redirection message according to processing module 503, described HTTP request message is redirected to the first data link of appointment.
Carry Data-Link port numbers and/or purpose IP in the described redirection message, wherein, the Data-Link port numbers is that ADC is the described pre-assigned port numbers of data link that needs foundation, usually can be in 0~255 any one, but generally do not select fixedly universal port (such as 80 etc.), purpose IP is that ADC is the described pre-assigned IP of the data link address set up of needing.According to the corresponding relation between the Data-Link port numbers in the redirection message or purpose IP and the described HTTP request message, described HTTP request message can be redirected to corresponding data link.
Transceiver module 502 also is used for sending the described redirection message of redirection module 504 structures to terminal equipment by described control link, to set up described the first data link by described link setup module and described terminal equipment, and receive the HTTP request message that described terminal equipment resends by the first data link of described correspondence, and the transmission HTTP response message corresponding with the described HTTP request message that resends is to terminal equipment.
Wherein, processing module 503 specifically comprises: resolution unit, priority determining unit and number of links determining unit (not shown).
Resolution unit is resolved type of message or the message length information that obtains described response message for the heading of the described HTTP response message that obtains from transceiver module 502.
After transceiver module 502 got access to the heading of response message, resolution unit was resolved those headings, obtained type of message or the message length information of described response message.
Priority determining unit is determined the priority of described response message for the described type of message or the message length information that obtain according to described resolution unit.
Priority determining unit arranges corresponding priority according to the response message type, is 0, HTML priority 1 such as CSS priority, the picture priority 3, and JS priority is 4 etc., the less priority of numeral is higher.
Message length information is the size of message body, is 1 etc. such as, the 512k priority take the priority of interior message body as the message body of 0,1M, and the less priority of numeral is higher.
Certainly, the priority of response message also can be by the User Defined setting.
The number of links determining unit is used for the priority according to the definite response message of described priority determining unit, determine the quantity of required data link in conjunction with current control link situation or loading condition, be each described data link distribute data chain port numbers and/or purpose IP.
After transceiver module 30 gets access to a certain amount of response message, the data link determining unit is determined the quantity of required data link according to current link circuit condition or loading condition, maximum is no more than browser and supports maximum concurrent number, and is each described data link Random assignment Data-Link port numbers or purpose IP.
Redirection module 504 specifically comprises: data link designating unit, order adjustment unit and message generation unit (not shown).
The data link designating unit is used to described HTTP request message to specify the first data link, described HTTP request message is redirected to the first data link of this appointment.
The order adjustment unit, be used for the priority according to HTTP response message corresponding to described HTTP request message, determine described HTTP request message and be redirected to the transmission sequence of other HTTP request message on the first data link of described appointment on the first data link of described appointment.
The order adjustment unit carries out order adjustment according to the priority of described response message to the HTTP request message in same the first data link, so that the message of high priority as far as possible the shortest time send back to subscriber equipment, the response message of high priority sends faster than the response message of low priority.Like this, be that high priority can preferentially send for the less response message of message length, and be that low priority is assigned to the back and sends for the larger response message of message length, it is the relation of parallel processing between the different data link, be independent of each other mutually, can avoid occurring slowly causing owing to the larger response message transmission of message length the time-delay of the less response message of message length, reduce network congestion.
The message generation unit is used for utilizing the first data link of described appointment and the described transmission sequence of determining, and generates redirection message.
Carry Data-Link port numbers and/or the purpose IP of described first data link of appointment in the described redirection message.
The information of Data-Link port numbers and/or purpose IP is stored in the Uniform Resource Identifier URI field of message usually, be redirected the unit Data-Link port numbers and/or the purpose IP that redistributes generated new URI, the formation of structure redirection message, and send described redirection message to described terminal equipment by described control link.Redirection message is usually very little, can only comprise the necessary information such as Data-Link port numbers and URI, substantially can not increase volume of transmitted data, can effectively improve efficiency of transmission.
Need to prove, being redirected is disposable being redirected, the Data-Link port that redirection module 504 is distributed is temporary transient, if subsequent user is asked identical content again by terminal equipment, must send by control link the original URL of request, the port that adopts is generally 80, again obtains new redirected response message.For new HTTP request message, terminal equipment sends by control link, transmits redirection message and response message in data link.
Optionally, redirection module 504 also is used for when the response delay of the HTTP of described the first data link response message is overtime, the order that shows request message is unreasonable, then according to the priority of response message corresponding to described HTTP request message, the HTTP request message of low priority is redirected on other data link, responds again the HTTP request message of high priority.
Optionally, redirection module 504 is sending described redirection message to terminal equipment by described control link, when also being used for the Internet Transmission Quality Down when described the first data link, the HTTP request message on described the first data link is redirected on other data link.
Optionally, processing module 503 is sending described redirection message to terminal equipment by described control link, also for detection of the Internet Transmission quality in the data transmission procedure.
Redirection module 504 also is used for the described Internet Transmission quality according to described processing module detection, dynamically adjusts the quantity of described data link.
Redirection module 504 specifically is used for can reducing the quantity of data link when the Internet Transmission quality of data link improves, to improve the utilance of data link.
Redirection module 504 is concrete when being used for Internet Transmission Quality Down when described data link, the HTTP request message of the data link of this degradation is redirected to the remainder data link or is redirected on the new data link.
Redirection module 504 is concrete for when described Internet Transmission quality is lower than predetermined threshold value, increase new data link, be described new data link distribute data chain port numbers, the HTTP request message that the part response message is corresponding is redirected to this new data link, the redirection message that structure is corresponding.
Transceiver module 502 sends the redirection message of described correspondence to described terminal equipment by described control link, and receive the HTTP request message that described terminal equipment resends by described new data link, and send corresponding response message to described terminal equipment.
Transceiver module 502 adopts the parallel transmission pattern to carry out transfer of data in described control link or described the first data link (data link).
Figure 10 is the structural representation of the terminal equipment that provides of the present embodiment, and as shown in figure 10, described terminal equipment comprises: link setup module 601, transceiver module 602 and processing module 603.
Link setup module 601 be used for setting up with network node between TCP be connected, described TCP is connected to control link.
Link setup module 601 is initiated TCP by transceiver module 602 to network node and is connected the request of foundation, sets up TCP and connects as control link.Network node can be the equipment such as ADC, server, gateway or data center.
Transceiver module 602 is used for sending the HTTP request message to network node by the described control link that link setup module 601 is set up, and receives the redirection message that network node sends.
In general, control link only has one, and transceiver module 602 adopts the most newly-established control link to send described HTTP request message to network node all the time, and the destination interface of control link is 80 usually.
Processing module 603 is used for the described redirection message that receives according to transceiver module 602, by link setup module 601 create with described network node between TCP be connected as the first data link.
Carry one or more Data-Link port numbers and/or purpose IP in the described redirection message that transceiver module 602 receives, usually be stored in the URI field of message.Processing module 603 is according to the Data-Link port numbers in the described redirection message and/or purpose IP, send TCP by transceiver module 602 to network node and connect the request of foundation, carry the Data-Link port numbers and/or the purpose IP that distribute in the redirection message in this request, the URI that please look for novelty, and then connect as the first data link by the TCP that link setup module 601 creates one or more correspondence.
Transceiver module 602 also is used for resending the HTTP request message to network node in described the first data link, the described HTTP request message that resends is the described HTTP request message after being redirected, and receives described response message corresponding to HTTP request message that resends by described the first data link.
Transceiver module 602 sends again request message to network node in the first data link of correspondence, request message is the described HTTP request message after being redirected again.This can only comprise a small amount of necessary contents such as new URI, browser information of ADC appointment in the redirection message again in request header field of request message, and the information of other header fields can be removed, with conserve network resources.
Optionally, when processing module 603 also all receives for the response message that will receive in described the first data link when transceiver module 602, close described the first data link, to avoid for a long time idle wasting of resources that brings of data link.Follow-up when if new HTTP request is arranged, transceiver module 602 sends by control link again, obtain redirection information after, again create new data link by link setup module 601.All new HTTP request messages must send by control link, can only send the request after being redirected in the data link.
Need to prove, control link or described the first data link (data link) all can adopt the parallel transmission pattern to carry out transfer of data in the embodiment of the invention.
Network node in the embodiment of the invention and terminal equipment, by transmission HTTP request message in control link, transmission HTTP response message in data link, HTTP request message and HTTP response message are separated the mode of transmitting, improved request message concurrent processing efficient and TCP bandwidth availability ratio, by the mode that is redirected, adjust flexibly the order of response message, reduce the response delay of response message, realize the high priority requests preferential answering, reduce network congestion.
Embodiment four
The structural representation of the server that Figure 11 provides for this enforcement, as shown in figure 11, this server comprises: link setup module 701, transceiver module 702, processing module 703 and redirection module 704.
Link setup module 701 is used for setting up the TCP control link with terminal equipment.
Transceiver module 702 is used for receiving the request message that described terminal equipment sends by the described control link that link setup module 701 is set up.
Processing module 703 is used for judging that transceiver module 702 is by the type of the described request message of described control link reception.
The first situation:
When the described request message is non-polling request, obtain HTTP response message corresponding to described request message by transceiver module 702, specifically comprise: described HTTP request message is transmitted to corresponding server, and receives the HTTP response message that described server returns; Perhaps, respond described HTTP request message, obtain corresponding HTTP response message.
At this moment, redirection module 704 with first data link of described request message redirecting to appointment, is constructed redirection message for the heading of the described response message that obtains according to transceiver module 702.
Transceiver module 702 also is used for sending the described redirection message of redirection module 704 structures to terminal equipment by described control link, and the HTTP request message that resends of the first data link receiving terminal apparatus by described correspondence, and send corresponding response message to terminal equipment.
Second case:
When the described request message that receives in the described control link was the polling request of terminal equipment, processing module 703 was used for also judging whether that the data wait of renewal pushes.
Push if there are the data of renewal to wait for, processing module 703 judges whether the quantity of the data of upgrading in the time interval of twice polling request surpasses predetermined threshold value.
If surpass, then utilize redirection module 704 structure redirection messages, described redirection message is redirected to data link for the HTTP request of the poll that will receive, and sends described redirection message to terminal equipment in described control link by transceiver module 702.
Optionally, processing module 703 also is used for sending described redirection message by described control link to the terminal equipment, judge whether the first data link of described appointment is monopolized, if, then construct without the content update message and the poll stand-by period is set, after in described the first data link, being sent to terminal equipment by transceiver module 702, send described redirection message to terminal equipment by described control link again.
If do not surpass, 703 renewal speed according to described data of processing module are adjusted the poll stand-by period, the data communication device of the described poll stand-by period after adjusting and described renewal is crossed transceiver module 702 be sent to terminal equipment.Processing module 703 is adjusted the poll stand-by period according to the renewal speed of described data, specifically comprises: when the renewal speed of described data is accelerated, shorten the described poll stand-by period; Perhaps, when the renewal speed of described data slows down, prolong the described poll stand-by period.
If the data that do not have to upgrade are waited for propelling movement, processing module 703 structures arrange the poll stand-by period, and the described poll stand-by period without content update message and setting are sent to terminal equipment by transceiver module 702 without the content update message.
Optionally, after setting up the first data link, terminal equipment can also send polling request by described the first data link, thereby, transceiver module 702 also is used for the polling request by described the first data link receiving terminal apparatus, processing module 703 also is used for when described the first data link has polling request to arrive, by transceiver module 702 with the data-pushing of renewal to terminal equipment.
Optionally, the renewal speed that processing module 703 also is used for the data that will push when current polling request slows to and is lower than predetermined threshold value, constructs and issues terminal equipment and chain rupture without the content update message and by transceiver module 702.
Figure 12 is the structural representation of the terminal equipment that provides of the present embodiment, and as shown in figure 12, this terminal equipment comprises: link setup module 801, transceiver module 802 and processing module 803.
Link setup module 801 be used for setting up with network node between TCP be connected, described TCP is connected to control link.
Transceiver module 802 is used for when the poll wait timeout, sends the HTTP request message to server by described control link, and receives propelling movement content or the redirection message of described server.
Processing module 803 is when pushing content, after the stand-by period, to transmit a request to server by described transceiver module at default poll in described control link for what receive when transceiver module 802.Perhaps, processing module 803 be used for when transceiver module 802 receptions be redirection message the time, again send described HTTP request message to server according to first data link of described redirection message by appointment, and monopolize this first data link, by the data of described transceiver module reception server propelling movement.
Processing module 803 also is used for keeping the connection status of the first data link after transceiver module 802 receives the data of described server push, does not disconnect described the first data link.
Processing module 803 also is used for judging whether described the first data link is in exclusive state, if described the first data link is in still exclusive state, does not initiatively send request message by transceiver module 802 in described the first data link.
Processing module 803 also be used for when transceiver module 802 receive described server transmission without the content update message time, release is monopolized described the first data link, and after the stand-by period, in described control link send HTTP request message to server by transceiver module 802 at default poll.
Processing module 803 also is used for creating corresponding TCP by link setup module 801 according to described redirection message and connecting as the first data link when the first data link of described redirection message appointment does not exist.
Carry one or more Data-Link port numbers and/or purpose IP in the described redirection message that transceiver module 803 receives; Redirection module 801 is according to the Data-Link port numbers in the described redirection message and/or purpose IP, and the TCP that creates one or more correspondence connects as data link.
The embodiment of the invention provides server and subscriber equipment, by being redirected of adapting to, allow a plurality of HTTP polling request by the mode of time-sharing multiplex, in conjunction with the upper level applications frequency of new data more, monopolize in turn the first data link and receive propelling data, utilized to greatest extent link circuit resource.When follow-up terminal equipment batch (-type) sent new request, server can be abdicated the right of monopolizing the first data link (data link) by guiding terminal equipment, recovers the self adaptation redirection function, did not need to create new TCP again and connected, and had avoided link setup expense and delay.
Embodiment five
Figure 13 forms schematic diagram for the structure of the network node that the present embodiment provides, and as shown in figure 13, described network node comprises:
Processor 901, memory 902, system bus 903, the first communication interface 904 and second communication interface 905.Connect by system bus 903 between processor 901, memory 902, the first communication interface 904 and the second communication interface 905 and finish mutual communication.The first communication interface 904 is used for communicating with other network nodes, and second communication interface 905 is used for communicating with terminal equipment.
Processor 901 may be monokaryon or multinuclear CPU (Central Processing Unit, CPU), perhaps be specific integrated circuit (Application Specific Integrated Circuit, ASIC), perhaps for being configured to implement one or more integrated circuits of the embodiment of the invention.
Memory 902 can be the high-speed RAM memory, also can be nonvolatile memory (non-volatile memory), for example at least one magnetic disc store.
Memory 902 is used for depositing program 906.Concrete, can comprise program code in the program 906, described program code comprises computer executed instructions.
When network node moves, processor 901 working procedures 906, to carry out to give an order:
Set up transmission control protocol TCP control link with terminal equipment;
Receive the HTML (Hypertext Markup Language) HTTP request message that described terminal equipment sends by described control link;
Described HTTP request message is transmitted to server;
The heading of the HTTP response message corresponding with described HTTP request message that returns according to described server, definite quantity that needs the data link of foundation, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation;
Structure redirection message, described redirection message are used for described HTTP request message is redirected to data link, carry Data-Link port numbers and/or purpose IP in the described redirection message;
Send described redirection message to described terminal equipment, so that described terminal equipment is set up the first data link according to described redirection message and described network node by described control link;
Receive the HTTP request message that described terminal equipment resends by described the first data link, and the transmission HTTP response message corresponding with the described HTTP request message that resends is to described terminal equipment.
Particularly, network node is also carried out above-mentioned Fig. 2-3 according to described instruction, and the data transmission method shown in the 6-7 does not specifically repeat them here.
Figure 14 forms schematic diagram for the structure of the terminal equipment that the present embodiment provides, and as shown in figure 14, described terminal equipment comprises:
Processor 1001, memory 1002, system bus 1003 and communication interface 1004.Connect by system bus 1003 between processor 1001, memory 1002 and the communication interface 1004 and finish mutual communication.Communication interface 1004 is used for communicating with network node.
Processor 1001 may be monokaryon or multinuclear CPU (Central Processing Unit, CPU), perhaps be specific integrated circuit (Application Specific Integrated Circuit, ASIC), perhaps for being configured to implement one or more integrated circuits of the embodiment of the invention.
Memory 1002 can be the high-speed RAM memory, also can be nonvolatile memory (non-volatile memory), for example at least one magnetic disc store.
Memory 1002 is used for depositing program 1005.Concrete, can comprise program code in the program 1005, described program code comprises computer executed instructions.
When terminal equipment moves, processor 1001 working procedures 1005, to carry out to give an order:
TCP control link between foundation and the network node;
Send the HTTP request message to described network node by described control link;
Receive the redirection message that described network node returns;
According to described redirection message create with described network node between TCP be connected as the first data link, and resend the HTTP request message in described the first data link and give described network node, the described HTTP request message that resends is the described HTTP request message after being redirected;
Receive HTTP response message corresponding to the described HTTP request message that resends by described the first data link.
Particularly, terminal equipment is also carried out above-mentioned Fig. 5, data transmission method shown in Figure 8 according to described instruction, does not specifically repeat them here.
Data transmission method provided by the invention, Apparatus and system, adopt the mode of the independent transmission of request message (control link) and response message (data link), realized the up-downgoing data separating, control link only is responsible for receiving request message, reply redirection message and the very little response message head of length, significantly improve request message concurrent processing efficient and TCP bandwidth availability ratio, and by the self adaptation redirecting technique, broken http protocol FIFO restriction, realize the flexibly adjustment of response message order, reduce and answer the message response time delay, and realization high priority requests preferential answering, realize the number of dynamic adjusting data link, adapt to change of network environment, and combining adaptive is redirected and the delay request technology, realize the time-sharing multiplex of data link, can improve the server push scheme of current main-stream.
The professional should further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software clearly is described, composition and the step of each example described in general manner according to function in the above description.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.The professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can use the software module of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; the protection range that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (43)

1. a data transmission method is characterized in that, described method comprises:
Network node and terminal equipment are set up transmission control protocol TCP control link;
Described network node receives the HTML (Hypertext Markup Language) HTTP request message that described terminal equipment sends by described control link;
The described HTTP request message of described network node is transmitted to server;
The heading of the HTTP response message corresponding with described HTTP request message that described network node returns according to described server, definite quantity that needs the data link of foundation, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation;
Described network node structure redirection message, described redirection message is used for described HTTP request message is redirected to data link, carries Data-Link port numbers and/or purpose IP in the described redirection message;
Described network node sends described redirection message to described terminal equipment, so that described terminal equipment is set up the first data link according to described redirection message and described network node by described control link;
Described network node receives the HTTP request message that described terminal equipment resends by described the first data link, and the transmission HTTP response message corresponding with the described HTTP request message that resends is to described terminal equipment.
2. method according to claim 1, it is characterized in that, the heading of the HTTP response message corresponding with described HTTP request message that described network node returns according to described server, definite quantity that needs the data link of foundation, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation, comprising:
From the heading of described HTTP response message, resolve type of message or the message length information that obtains described response message;
According to described type of message or message length information, determine the priority of described response message;
According to the priority of described response message, in conjunction with current control link situation or the definite quantity that needs the data link of foundation of loading condition, be described data link distribute data chain port numbers and/or the purpose IP that needs foundation.
3. method according to claim 2 is characterized in that, described network node structure redirection message, and described redirection message is used for described HTTP request message is redirected to data link, comprising:
For described HTTP request message is specified described the first data link, described HTTP request message is redirected to the first data link of this appointment;
According to the priority of HTTP response message corresponding to described HTTP request message, determine described HTTP request message and be redirected to the transmission sequence of other HTTP request message on the first data link of described appointment on the first data link of described appointment;
Utilize the first data link of described appointment and the described transmission sequence of determining, generate redirection message, carry corresponding Data-Link port numbers and/or the purpose IP of the first data link of described appointment in the described redirection message.
4. method according to claim 1 is characterized in that, sends described redirection message by described control link to the described terminal equipment at described network node, also comprises:
When the Internet Transmission Quality Down of described the first data link, the HTTP request message on described the first data link is redirected on other data link.
5. method according to claim 1 is characterized in that,, also comprises to the described terminal equipment at the described transmission HTTP response message corresponding with the described HTTP request message that resends:
When the response delay of the HTTP response message in described the first data link is overtime, priority according to response message corresponding to described HTTP request message, the HTTP request message of low priority is redirected on other data link, responds again the HTTP request message of high priority.
6. method according to claim 1, it is characterized in that, at the described transmission HTTP response message corresponding with the described HTTP request message that resends to the described terminal equipment, also comprise: detect the Internet Transmission quality in the process of transmission response message, dynamically adjust the quantity of described data link according to described Internet Transmission quality.
7. method according to claim 6 is characterized in that, dynamically adjusts the quantity of described data link according to described Internet Transmission quality, comprising:
When described Internet Transmission quality is lower than predetermined threshold value, increase new data link, be described new data link distribute data chain port numbers;
Described be new data link distribute data chain port numbers after, described method also comprises:
The HTTP request message that part HTTP response message is corresponding is redirected to this new data link, the redirection message that structure is corresponding, and the redirection message that sends described correspondence by described Quality Initiative is to described terminal equipment;
Receive the HTTP request message that described terminal equipment resends by described new data link, and send corresponding HTTP response message to described terminal equipment.
8. method according to claim 1 is characterized in that, described control link or described the first data link adopt the parallel transmission pattern to carry out transfer of data.
9. a data transmission method is characterized in that, described method comprises:
Network node and terminal equipment are set up transmission control protocol TCP control link;
Described network node receives the HTML (Hypertext Markup Language) HTTP request message that described terminal equipment sends by described control link; Wherein, described HTTP request message is polling request;
If having the data of renewal to wait for, described network node pushes, whether the quantity of then judging the data of upgrading in time interval of HTTP request of twice poll surpasses predetermined threshold value, if surpass, then construct redirection message, described redirection message is redirected to data link for the HTTP request of the poll that receives, and sends described redirection message to described terminal equipment by described control link; If do not surpass, then adjust the poll stand-by period according to the renewal speed of described data, the described poll stand-by period after adjusting and the data of described renewal are sent to described terminal equipment;
If the data that described network node does not have to upgrade are waited for propelling movement, then construct without the content update message, the poll stand-by period is set, and the described poll stand-by period without content update message and setting is sent to described terminal equipment.
10. method according to claim 9 is characterized in that, is sending described redirection message by described control link to the described terminal equipment, also comprises:
Judge whether the first data link of described appointment is monopolized, if, then construct without the content update message and the poll stand-by period is set, be sent to after the described terminal equipment by described the first data link, send described redirection message to described terminal equipment by described control link again.
11. method according to claim 9 is characterized in that, described renewal speed according to described data is adjusted the poll stand-by period, comprising:
When the renewal speed of described data is accelerated, shorten the described poll stand-by period;
When the renewal speed of described data slows down, prolong the described poll stand-by period.
12. method according to claim 9 is characterized in that,, also comprises to the described terminal equipment at the described transmission HTTP response message corresponding with the described HTTP request message that resends:
Receive the polling request that described terminal equipment sends by described the first data link, when having polling request to arrive in described the first data link, the data of upgrading are pushed to described terminal equipment as pushing content.
13. method according to claim 12 is characterized in that, after described data-pushing with renewal is given described terminal equipment, also comprises:
Be lower than predetermined threshold value if the renewal speed of the data that current polling request will push slows to, structure is issued described terminal equipment and chain rupture without the content update message.
14. a data transmission method is characterized in that, described method comprises:
TCP control link between terminal equipment foundation and the network node;
Described terminal equipment sends the HTTP request message to described network node by described control link;
Described terminal equipment receives the redirection message that described network node returns;
Described terminal equipment according to described redirection message create with described network node between TCP be connected as the first data link, and resend the HTTP request message in described the first data link and give described network node, the described HTTP request message that resends is the described HTTP request message after being redirected;
Described terminal equipment receives HTTP response message corresponding to the described HTTP request message that resends by described the first data link.
15. method according to claim 14 is characterized in that, carries one or more Data-Link port numbers and/or purpose IP in the described redirection message;
Described terminal equipment according to described redirection message create with described network node between TCP be connected as the first data link, comprising:
Described terminal equipment creates one or more TCP and connects as described the first data link according to the Data-Link port numbers in the described redirection message and/or purpose IP.
16. method according to claim 14 is characterized in that, after described terminal equipment receives response message corresponding to the described HTTP request message that resends by described the first data link, also comprises:
When the HTTP response message that will receive in described the first data link all receives, close described the first data link.
17. method according to claim 14 is characterized in that, described control link or described the first data link adopt the parallel transmission pattern to carry out transfer of data.
18. a data transmission method is characterized in that, described method comprises:
TCP control link between terminal equipment foundation and the network node;
Described terminal equipment sends the HTTP request message to described network node by described control link; Wherein, described HTTP request message is polling request;
Described terminal equipment receives propelling movement content or the redirection message that described network node returns;
If what receive is to push content, then after the stand-by period, send next polling request to described network node by described control link at described default poll;
If what receive is redirection message, then again send described current polling request to described network node according to first data link of described redirection message by appointment, and monopolize this first data link, receive the data that described network node pushes by described the first data link.
19. method according to claim 18, it is characterized in that, described terminal equipment receives the data of described network node propelling movement by described the first data link after, also comprise: after described terminal equipment receives the data of described network node propelling movement, keep the connection status of described the first data link.
20. method according to claim 18, it is characterized in that, described terminal equipment receives the data of described network node propelling movement by described the first data link after, also comprise: when receive that described network node sends without the content update message time, discharge monopolizing described the first data link;
After stand-by period, send new HTTP request message to described network node by described control link at default poll.
21. method according to claim 18, it is characterized in that, if when described first data link of appointment did not exist in the described redirection message, described method also comprised: described terminal equipment creates corresponding TCP according to described redirection message and connects as described the first data link.
22. a network node is characterized in that, described network node comprises: link setup module, transceiver module, processing module and redirection module;
Described link setup module is used for setting up the TCP control link with terminal equipment;
Described transceiver module, be used for receiving the HTTP request message that described terminal equipment sends by the described control link that described link setup module is set up, described HTTP request message is transmitted to server, and receives the HTTP response message corresponding with described HTTP request message that described server returns;
Described processing module, be used for returning according to described server the heading of the HTTP response message corresponding with described HTTP request message, definite quantity that needs the data link of foundation, and be described data link distribute data chain port numbers and/or the purpose IP that needs foundation;
Described redirection module, be used for the result structure redirection message according to described processing module, described redirection message is used for described HTTP request message is redirected to data link, carries Data-Link port numbers and/or purpose IP in the described redirection message;
Described transceiver module also is used for sending the described redirection message of described redirection module structure to described terminal equipment by described control link, to set up described the first data link by described link setup module and described terminal equipment, and receive the HTTP request message that described terminal equipment resends by described the first Data-Link, and the transmission HTTP response message corresponding with the described HTTP request message that resends is to described terminal equipment.
23. network node according to claim 22 is characterized in that, described processing module specifically comprises: resolution unit, priority determining unit and number of links determining unit;
Described resolution unit is used for resolving type of message or the message length information that obtains described response message from the heading of described HTTP response message;
Described priority determining unit for the described type of message or the message length information that obtain according to described resolution unit, is determined the priority of described response message;
Described number of links determining unit, be used for the priority according to the definite described response message of described priority determining unit, in conjunction with current control link situation or the definite quantity that needs the data link of foundation of loading condition, be described data link distribute data chain port numbers and/or the purpose IP that needs foundation.
24. network node according to claim 22 is characterized in that, described redirection module comprises: data link designating unit, order adjustment unit and message generation unit;
Described data link designating unit is used to described HTTP request message to specify described the first data link, described HTTP request message is redirected to the first data link of this appointment;
Described order adjustment unit, be used for the priority according to HTTP response message corresponding to described HTTP request message, determine described HTTP request message and be redirected to the transmission sequence of other HTTP request message on the first data link of described appointment on the first data link of described appointment;
Described message generation unit, be used for utilizing the first data link of described appointment and the described transmission sequence of determining, generate redirection message, carry data link ports corresponding to the first data link of described appointment number and/or purpose IP in the described redirection message.
25. network node according to claim 22, it is characterized in that, described redirection module also is used for when the Internet Transmission Quality Down of described the first data link the HTTP request message on described the first data link being redirected on other data link.
26. network node according to claim 22, it is characterized in that, described redirection module also is used for when the response delay of the HTTP of described the first data link response message is overtime, priority according to response message corresponding to described HTTP request message, the HTTP request message of low priority is redirected on other data link, responds again the HTTP request message of high priority.
27. network node according to claim 22 is characterized in that, described processing module is also for detection of the Internet Transmission quality in the process of transmission response message;
Described redirection module also is used for the described Internet Transmission quality according to described processing module detection, dynamically adjusts the quantity of described data link.
28. network node according to claim 27, it is characterized in that, described redirection module specifically is used for when described Internet Transmission quality is lower than predetermined threshold value, increase new data link, be described new data link distribute data chain port numbers, the HTTP request message that part HTTP response message is corresponding is redirected to this new data link, the redirection message that structure is corresponding;
Described transceiver module sends the redirection message of described correspondence to described terminal equipment by described control link, and receive the HTTP request message that described terminal equipment resends by described new data link, and send corresponding HTTP response message to described terminal equipment.
29. network node according to claim 22 is characterized in that, described transceiver module adopts the parallel transmission pattern to carry out transfer of data in described control link or described the first data link.
30. a network node is characterized in that, described network node comprises: link setup module, transceiver module, processing module and redirection module;
Described link setup module is used for setting up the TCP control link with terminal equipment;
Described transceiver module is used for receiving the HTTP request message that described terminal equipment sends by the described control link that described link setup module is set up, and wherein, described HTTP request message is polling request;
Described processing module, be used for judging whether described network node has the data of renewal to wait for and push, if having the data of renewal to wait for, described network node pushes, whether the quantity of then judging the data of upgrading in time interval of HTTP request of twice poll surpasses predetermined threshold value, if surpass, then utilize described redirection module structure redirection message, described redirection message is redirected to data link for the HTTP request of the poll that receives, and sends described redirection message to described terminal equipment in described control link by described transceiver module; If do not surpass, then adjust the poll stand-by period according to the renewal speed of described data, the data communication device of the described poll stand-by period after adjusting and described renewal is crossed described transceiver module be sent to described terminal equipment;
If the data that described network node does not have to upgrade are waited for propelling movement, then construct without the content update message, the poll stand-by period is set, and the described poll stand-by period without content update message and setting is sent to described terminal equipment by described transceiver module.
31. network node according to claim 30, it is characterized in that, described processing module also is used for judging whether the first data link of described appointment is monopolized, if, then construct without the content update message and the poll stand-by period is set, after in described the first data link, being sent to described terminal equipment by described transceiver module, in described control link, send described redirection message to described terminal equipment by described transceiver module again.
32. network node according to claim 30 is characterized in that, described processing module specifically is used for shortening the described poll stand-by period when the renewal speed of described data is accelerated; Perhaps, when the renewal speed of described data slows down, prolong the described poll stand-by period.
33. network node according to claim 30 is characterized in that, described transceiver module also is used for receiving by described the first data link the polling request of described terminal equipment;
Described processing module also is used for giving described terminal equipment by described transceiver module with the data-pushing of renewal when described the first data link has polling request to arrive.
34. network node according to claim 33, it is characterized in that, if described processing module also is used for the renewal speed of the data that current polling request will push and slows to and be lower than predetermined threshold value, structure is issued described terminal equipment and chain rupture with described without the content update message by described transceiver module without the content update message.
35. a terminal equipment is characterized in that, described terminal equipment comprises: link setup module, transceiver module and processing module;
Described link setup module is used for the TCP control link between foundation and the network node;
Described transceiver module is used for sending the HTTP request message to described network node by the described control link that described link setup module is set up, and receives the redirection message that described network node returns;
Described processing module is used for the described redirection message that receives according to described transceiver module, is connected as the first data link with TCP between the described network node by described link setup module creation;
The HTTP request message that described transceiver module also is used for resending in described the first data link is to described network node, the described HTTP request message that resends is the described HTTP request message after being redirected, and receives HTTP response message corresponding to the described HTTP request message that resends by described the first data link.
36. terminal equipment according to claim 35 is characterized in that, carries one or more Data-Link port numbers and/or purpose IP in the described redirection message that described transceiver module receives;
Described processing module connects as described the first data link by described link setup module creation one or more TCP according to the Data-Link port numbers in the described redirection message and/or purpose IP.
37. terminal equipment according to claim 35 is characterized in that, when described processing module also all receives for the HTTP response message that will receive in described the first data link when described transceiver module, closes described the first data link.
38. terminal equipment according to claim 35 is characterized in that, described control link or described the first data link adopt the parallel transmission pattern to carry out transfer of data.
39. a terminal equipment is characterized in that, described terminal equipment comprises: link setup module, transceiver module and processing module;
Described link setup module is used for the TCP control link between foundation and the network node;
Described transceiver module, be used for sending the HTTP request message to described network node by the described control link that described link setup module is set up, wherein, described HTTP request message is polling request, and receives propelling movement content or redirection message that described network node returns;
Described processing module if what be used for to receive is to push content, then, sends next polling request by described transceiver module and arrives described network node after the stand-by period at described default poll in described control link;
If what receive is redirection message, then again send described current polling request to described network node according to first data link of described redirection message by appointment, and monopolize this first data link, receive the data that described network node pushes by described the first data link.
40. described terminal equipment is characterized in that according to claim 39, described processing module also is used for keeping the connection status of described the first data link after described transceiver module receives the data of described network node propelling movement.
41. described terminal equipment according to claim 39, it is characterized in that, described processing module also be used for when described transceiver module receive described server transmission without the content update message time, release is monopolized described the first data link, and after the stand-by period, in described control link send HTTP request message to described network node by described transceiver module at default poll.
42. described terminal equipment according to claim 39, it is characterized in that, described processing module also is used for creating corresponding TCP by described link setup module according to described redirection message and connecting as described the first data link when described first data link of described redirection message appointment does not exist.
43. a data transmission system is characterized in that, described system comprises:
Such as the described network node of the arbitrary claim of claim 22~29 with such as the described terminal equipment of the arbitrary claim of claim 35~38;
Perhaps,
Such as the described network node of the arbitrary claim of claim 30~34 with such as the described terminal equipment of the arbitrary claim of claim 39~42.
CN201310245625.XA 2013-06-20 2013-06-20 Data transmission method, apparatus and system Active CN103312807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310245625.XA CN103312807B (en) 2013-06-20 2013-06-20 Data transmission method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310245625.XA CN103312807B (en) 2013-06-20 2013-06-20 Data transmission method, apparatus and system

Publications (2)

Publication Number Publication Date
CN103312807A true CN103312807A (en) 2013-09-18
CN103312807B CN103312807B (en) 2016-12-28

Family

ID=49137585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310245625.XA Active CN103312807B (en) 2013-06-20 2013-06-20 Data transmission method, apparatus and system

Country Status (1)

Country Link
CN (1) CN103312807B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320398A (en) * 2014-10-29 2015-01-28 国家电网公司 Ethernet secret access prevention double-link communication control system and method
CN104602264A (en) * 2015-01-05 2015-05-06 华为技术有限公司 Method, device and system for promoting control point to find device
CN104618261A (en) * 2015-02-13 2015-05-13 上海交通大学 Reshaping scheduling method in aviation electronic system network
CN104917585A (en) * 2014-03-10 2015-09-16 华为技术有限公司 Message interaction method and device
CN106528301A (en) * 2015-09-11 2017-03-22 中兴通讯股份有限公司 Method and device for updating timeout wait duration
CN108200183A (en) * 2018-01-11 2018-06-22 武汉天喻教育科技有限公司 A kind of method for pushing and supplying system for educating cloud information
CN109922466A (en) * 2019-03-25 2019-06-21 深圳市联智物联网科技有限公司 A method of realizing directional data access in multinode wireless transmitting system
CN110035470A (en) * 2019-03-25 2019-07-19 深圳市联智物联网科技有限公司 A kind of node device for realizing directional data access in multinode wireless transmitting system
CN110809007A (en) * 2019-11-20 2020-02-18 国网江苏省电力有限公司信息通信分公司 Method and system for controlling electric power IMS state presence service flow
CN110999257A (en) * 2017-08-04 2020-04-10 诺基亚技术有限公司 Delivery method selection for delivery of server notifications
CN112448968A (en) * 2019-08-28 2021-03-05 华为技术有限公司 Method for processing network request, related device and storage system
CN113438169A (en) * 2021-06-30 2021-09-24 珠海云洲智能科技股份有限公司 Data scheduling method, electronic equipment and storage medium
CN113965254A (en) * 2021-11-07 2022-01-21 中国电子科技集团公司第五十四研究所 Fast and reliable satellite mobile communication data transmission frame structure and method
CN114448916A (en) * 2021-12-24 2022-05-06 锐捷网络股份有限公司 TIPC message processing method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030088633A1 (en) * 2001-10-26 2003-05-08 Chiu Denny K. System and method for remotely controlling mobile communication devices
US20040267878A1 (en) * 2003-06-26 2004-12-30 Osias Michael J Method, system and program product for providing a status of a transaction with an application on a server
CN101039271A (en) * 2007-03-20 2007-09-19 华为技术有限公司 Method and apparatus for taking effect rules of access control list
CN101146050A (en) * 2007-11-06 2008-03-19 杭州华三通信技术有限公司 Frame relaying packet transmission method and device
CN101938427A (en) * 2010-09-27 2011-01-05 杭州华三通信技术有限公司 Re-directing method and device in global load balance
CN102792292A (en) * 2009-12-07 2012-11-21 考持·维 System and method for website performance optimization and Internet traffic processing
CN103023917A (en) * 2012-12-26 2013-04-03 百度在线网络技术(北京)有限公司 Method, system and device for authorization aiming at intelligent household electrical appliance
CN103036794A (en) * 2011-10-10 2013-04-10 华为技术有限公司 Learning method, device and system of message

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030088633A1 (en) * 2001-10-26 2003-05-08 Chiu Denny K. System and method for remotely controlling mobile communication devices
US20040267878A1 (en) * 2003-06-26 2004-12-30 Osias Michael J Method, system and program product for providing a status of a transaction with an application on a server
CN101039271A (en) * 2007-03-20 2007-09-19 华为技术有限公司 Method and apparatus for taking effect rules of access control list
CN101146050A (en) * 2007-11-06 2008-03-19 杭州华三通信技术有限公司 Frame relaying packet transmission method and device
CN102792292A (en) * 2009-12-07 2012-11-21 考持·维 System and method for website performance optimization and Internet traffic processing
CN101938427A (en) * 2010-09-27 2011-01-05 杭州华三通信技术有限公司 Re-directing method and device in global load balance
CN103036794A (en) * 2011-10-10 2013-04-10 华为技术有限公司 Learning method, device and system of message
CN103023917A (en) * 2012-12-26 2013-04-03 百度在线网络技术(北京)有限公司 Method, system and device for authorization aiming at intelligent household electrical appliance

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917585B (en) * 2014-03-10 2019-02-26 华为技术有限公司 Message interaction method and device
CN104917585A (en) * 2014-03-10 2015-09-16 华为技术有限公司 Message interaction method and device
CN104320398B (en) * 2014-10-29 2017-08-11 国家电网公司 A kind of Ethernet it is thief-proof enter dual link communication control system and method
CN104320398A (en) * 2014-10-29 2015-01-28 国家电网公司 Ethernet secret access prevention double-link communication control system and method
CN104602264A (en) * 2015-01-05 2015-05-06 华为技术有限公司 Method, device and system for promoting control point to find device
CN104602264B (en) * 2015-01-05 2018-01-16 华为技术有限公司 A kind of method, apparatus and system for promoting control point discovering device
CN104618261A (en) * 2015-02-13 2015-05-13 上海交通大学 Reshaping scheduling method in aviation electronic system network
CN104618261B (en) * 2015-02-13 2018-06-01 上海交通大学 Reformation dispatching method in avionics system network
CN106528301A (en) * 2015-09-11 2017-03-22 中兴通讯股份有限公司 Method and device for updating timeout wait duration
CN106528301B (en) * 2015-09-11 2020-06-30 中兴通讯股份有限公司 Method and device for updating timeout waiting duration
CN110999257A (en) * 2017-08-04 2020-04-10 诺基亚技术有限公司 Delivery method selection for delivery of server notifications
CN110999257B (en) * 2017-08-04 2022-05-10 诺基亚技术有限公司 Delivery method selection for delivery of server notifications
CN108200183A (en) * 2018-01-11 2018-06-22 武汉天喻教育科技有限公司 A kind of method for pushing and supplying system for educating cloud information
CN109922466A (en) * 2019-03-25 2019-06-21 深圳市联智物联网科技有限公司 A method of realizing directional data access in multinode wireless transmitting system
CN110035470B (en) * 2019-03-25 2020-12-01 深圳市联智物联网科技有限公司 Node equipment for realizing directional data access in multi-node wireless transmission system
CN110035470A (en) * 2019-03-25 2019-07-19 深圳市联智物联网科技有限公司 A kind of node device for realizing directional data access in multinode wireless transmitting system
CN112448968A (en) * 2019-08-28 2021-03-05 华为技术有限公司 Method for processing network request, related device and storage system
CN112448968B (en) * 2019-08-28 2022-08-09 华为云计算技术有限公司 Method for processing network request, related device and storage system
CN110809007A (en) * 2019-11-20 2020-02-18 国网江苏省电力有限公司信息通信分公司 Method and system for controlling electric power IMS state presence service flow
CN113438169A (en) * 2021-06-30 2021-09-24 珠海云洲智能科技股份有限公司 Data scheduling method, electronic equipment and storage medium
CN113965254A (en) * 2021-11-07 2022-01-21 中国电子科技集团公司第五十四研究所 Fast and reliable satellite mobile communication data transmission frame structure and method
CN113965254B (en) * 2021-11-07 2024-04-30 中国电子科技集团公司第五十四研究所 Quick and reliable satellite mobile communication data transmission frame structure and method
CN114448916A (en) * 2021-12-24 2022-05-06 锐捷网络股份有限公司 TIPC message processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN103312807B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN103312807A (en) Data transmission method, data transmission device and data transmission system
CN110661871B (en) Data transmission method and MQTT server
US8199640B2 (en) Path-based adaptive prioritization and latency management
CN102404182A (en) Transmission control method and device
KR20160036878A (en) Apparatus and method for controlling data flow in a communication system
WO2006074832A1 (en) On-demand group communication services with quality of service (qos) guarantees
CN102790798A (en) Transparent proxy implementation method, device and system in content distribution network
US9515940B2 (en) Method for transmitting data in a packet-oriented communications network and correspondingly configured user terminal in said communications network
WO2017114231A1 (en) Packet sending method, tcp proxy, and tcp client
CN101621532B (en) Method for realizing HTTP application by thread pool
CN112653634A (en) Flow control method, device, equipment and readable storage medium
CA2503867A1 (en) Message send queue reordering based on priority
CN106789229A (en) A kind of middleware towards industrial SDN, system and its implementation
CN110601989A (en) Network traffic balancing method and device
US8391285B2 (en) Communication apparatus, communication system, and communication method
JP5560235B2 (en) Arrival packet synchronization method
JP2014022820A (en) Proxy device, communication system, and program
JP4990187B2 (en) Data transfer device
EP1742414B1 (en) Peer-to-peer multicast gateway
JP5702232B2 (en) Server cooperation mutual assistance system and server and server cooperation mutual assistance program
KR101547048B1 (en) Technique for managing communications at a router
WO2022201410A1 (en) Signal processing device, signal processing method, signal processing program, and satellite communication system
US20240113959A1 (en) Instance-affine service scheduling
KR102058514B1 (en) Policy based path control system in multi-path environments
KR101341490B1 (en) System for Sending Push using Compounded Method and Method Therefor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant