CN104468594A - Data request method, device and system - Google Patents

Data request method, device and system Download PDF

Info

Publication number
CN104468594A
CN104468594A CN201410776946.7A CN201410776946A CN104468594A CN 104468594 A CN104468594 A CN 104468594A CN 201410776946 A CN201410776946 A CN 201410776946A CN 104468594 A CN104468594 A CN 104468594A
Authority
CN
China
Prior art keywords
request
data
communication connection
client
server
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
CN201410776946.7A
Other languages
Chinese (zh)
Other versions
CN104468594B (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.)
Qianxin Technology Group Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410776946.7A priority Critical patent/CN104468594B/en
Publication of CN104468594A publication Critical patent/CN104468594A/en
Application granted granted Critical
Publication of CN104468594B publication Critical patent/CN104468594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a data request method, device and system, and relates to the technical field of the Internet. The concurrency limitation problem of HTTP connections can be solved. The method includes the steps that a communication connection is established; a data request reported by a client terminal is received through the communication connection; before the data request is responded, other data requests reported by the same client terminal or different client terminals are received continuously through the communication connection; different data requests are responded, and the data content corresponding to different data requests is issued. The data request method, device and system are suitable for data request scenes under the HTTP.

Description

A kind of method of request of data, Apparatus and system
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of method of request of data, Apparatus and system.
Background technology
HTTP (Hypertext Transfer Protocol, HTTP) be a kind of agreement that can be transmitted the data of web documents by internet, its feature is that HTTP is a kind of agreement of request/response type, namely when user end to server sends request of data, can set up a HTTP to connect, server connects the request of data the data content returning correspondence to client that receive client transmission by this HTTP.Client discharges this HTTP and connects after the response obtaining server, thus completes a request task.When again sending request of data, then need to re-establish HTTP between client with server and be connected.
In the process of above-mentioned request of data, client all needs when carrying out request of data to set up/release HTTP a connection at every turn, and HTTP establishment of connection is too frequent.To this, additionally provide another kind of HTTP establishment of connection mode in prior art, namely HTTP is long connects.HTTP connection length does not discharge after being connected to and meeting with a response, and client can continue to send request based on this connection, can reduce the number of times that client sets up HTTP connection thus.
But HTTP long connection also exists certain problem, is mainly: HTTP linking number is corresponding with the quantity of client, therefore when the client terminal quantity in local area network (LAN) is more, the number of connection that server needs keep also can be more.Under normal circumstances, the number of concurrent that in network, HTTP connects has certain restriction, such as, for WINDOWS system, generally, only allows to set up 1024 HTTP simultaneously and connects, also only can set up 7000 HTTP and connect after the network optimization; And for LINUX system, although its number of concurrent supported can reach 20000, also there is a number of concurrent upper limit, infinitely can not improve number of concurrent.Along with the continuous expansion of local area network (LAN) scale, limited number of concurrent more cannot meet the client terminal quantity of sharp increase, particularly for multistage local area network (LAN), connection between client and relaying, between relaying and server all needs to set up HTTP and connects, thus one, number of connection available in local area network (LAN) will be more nervous.
Summary of the invention
In view of the above problems, method, the Apparatus and system of a kind of request of data that the present invention proposes, can solve the problem that the number of concurrent of HTTP connection is limited.
For solving the problems of the technologies described above, first aspect, the invention provides a kind of method of request of data, the method comprises:
Set up a communication connection;
By the request of data that described communication connection reception client reports;
Before described request of data is responded, other request of data reported by the described communication connection continuation same client of reception or different clients;
Different request of data is responded respectively, and issues the data content of corresponding different pieces of information request.
Second aspect, the invention provides a kind of device of request of data, and this device comprises:
Set up unit, for setting up a communication connection;
Receiving element, for receiving the request of data that client reports by described described communication connection of setting up unit foundation;
Described receiving element, also for before responding described request of data, other request of data reported by the described communication connection continuation same client of reception or different clients;
Response unit, responds respectively for the different request of data received described receiving element, and issues the data content of corresponding different pieces of information request.
The third aspect, the invention provides a kind of system of request of data, and this system comprises: client, server; Wherein said server comprises the device as described in second aspect;
Described client, for:
Set up one with described server to communicate to connect;
By described communication connection to the request of described server reported data,
Before the response obtaining described server, continue to report other request of data to described server by described communication connection;
The data content of the corresponding different pieces of information request that described server issues is received by described communication connection.
By technique scheme, the method of request of data provided by the invention, Apparatus and system, can when different clients sends request of data to server, server is only set up one with client and is communicated to connect, different request of data can be received by this communication connection, and the reception to next request of data is not affected on the response of a upper request of data, namely can limit carry out response limit receive new request of data.Compared with needing in prior art to set up between client with server and communicating to connect one to one, in the present invention, only set up a communication connection between a client and a server, different clients all can complete data interaction between server by this communication connection, thus reach multiplexed effect, and without the need to considering the problem of number of concurrent, and then solve the limited situation of the number of concurrent that communicates to connect in prior art.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of method of request of data;
Fig. 2 shows the flow chart of the method for another kind of request of data;
Fig. 3 shows a kind of structural representation of Frame;
Fig. 4 shows a kind of structural representation established a communications link;
Fig. 5 shows the structural representation that another kind establishes a communications link;
Fig. 6 shows a kind of structural representation of device of request of data;
Fig. 7 shows the structural representation of the device of another kind of request of data;
Fig. 8 shows a kind of structural representation of system of request of data.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present invention is described in more detail.Although show exemplary embodiment of the present invention in accompanying drawing, however should be appreciated that can realize the present invention in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the present invention can be understood, and complete for scope of the present invention can be conveyed to those skilled in the art.
Embodiments provide a kind of method of request of data, the present invention can be applied in the system that client and server form, and be that executive agent is described below with server side, as shown in Figure 1, the method comprises:
101, server sets up a communication connection.
Wherein, server and different clients are set up one and are communicated to connect, and this communication connection can be that HTTP (Hypertext Transfer Protocol, HTTP) connects.
Exemplary, 5 clients are had in local area network (LAN), be respectively client 1, client 2, client 3, client 4 and client 5, a communication connection A is set up between client and server at 5, each client in 5 clients all can be communicated with server by communication connection A, and namely 5 client common user communications connect A.
102, server is by communicating to connect the request of data receiving client and report.
Wherein, all clients can be arranged in a terminal, also can be arranged in different terminals.This terminal can be desktop computer, notebook etc.Such as, have 5 clients, be respectively client 1, client 2, client 3, client 4 and client 5, wherein, client 1 and client 2 are all arranged in terminal 1, and client 3 and client 5 are all arranged in terminal 2, and client 4 is arranged in terminal 3.
It should be noted that, in request of data, include the source-information of request, the concrete object of request and the check information of request etc.Such as, the source-information of asking in request of data is the client 1 being arranged in terminal 1, and the concrete object of request is a link: http://www.google.com, check information is X.
103, server is before responding request of data, other request of data reported by the communication connection continuation same client of reception or different clients.
Wherein, server does not affect the reception to other request of data to the response of request of data, server can before responding the request of data received, receive other request of data, and this request of data does not limit client, namely a client can be belonged to together with a upper request of data, also different clients can be belonged to.
Such as, current, the request of data that server receives is the request of data 1 of client 1, then, when not responding request of data 1, server just can receive the request of data 2 of client 1, or receives the request of data 1 of client 2.
104, server responds respectively to different request of data, and issues the data content of corresponding different pieces of information request.
Wherein, when server replys the response of request of data to client, the response message of the data content carrying request of data can be sent to client.
Mention in step 103, can on before a request of data responds, receive other request of data, in actual applications, can respond, while receive next request of data a upper request of data.Such as, while server sends response 1 to client 1, the request of data 1 of client 2 can be received.
In addition, can also first receive first request of data, then the different pieces of information request in first request of data is responded respectively, and while first request of data is responded, second batch request of data can also be received.Such as, the request of data that current server receives is request of data 1, the request of data 2 of client 1, the request of data 1 of client 2, and the request of data 1 of client 3, then respectively it is responded, the request of data 2 that client 2 sends can be received successively, the request of data 1 that client 4 sends simultaneously.
It should be noted that, server is receive the sequencing of request of data for foundation to the actual principle that different pieces of information request responds, and responds respectively to it.Such as, the request of data that server receives in order is followed successively by the 8th request of data of the 3rd request of data of client 2, the 1st request of data of client 4, the 5th request of data of client 1 and client 10, and therefore the response order of server to 4 request of data received also is the 8th request of data of the 3rd request of data of client 2, the 1st request of data of client 4, the 5th request of data of client 1 and client 10.
The method of the request of data that the embodiment of the present invention provides, can when different clients sends request of data to server, server is only set up one with client and is communicated to connect, different request of data can be received by this communication connection, and the reception to next request of data is not affected on the response of a upper request of data, namely can limit carry out response limit receive new request of data.Compared with needing in prior art to set up between client with server and communicating to connect one to one, in the present invention, only set up a communication connection between a client and a server, different clients all can complete data interaction between server by this communication connection, thus reach multiplexed effect, and without the need to considering the problem of number of concurrent, and then solve the limited situation of the number of concurrent that communicates to connect in prior art.
Further, as to the refinement of method shown in Fig. 1 and expansion, an alternative embodiment of the invention additionally provides a kind of method of request of data, and as shown in Figure 2, the method comprises:
201, server sets up a communication connection.
The implementation of this step is identical with the implementation of step 101 in Fig. 1, repeats no more herein.
202, server is by communicating to connect the request of data receiving client and report.
Request of data carries the Frame for request msg, and this Frame records request source, request sequence number, data bit and check digit.Wherein, request source is used for marking the client of reported data request; Request sequence number is used for marking request of data; Data bit is used for marking the concrete request object of request of data, and this request object can be a chained address, also can be other information; Check digit is used for the check value of record data request, after server receives request of data, calculate corresponding check value, and compare with the check value that records in request of data, if identical, then the request of data that receives of server is correct, if not identical, then and the request of data mistake that receives of server.
Exemplary, the concrete manifestation form of the Frame in Fig. 3 the 45th request of data that to be client 12 send to server.Wherein, link http://www.google.com is recorded in data bit.The check digit of the 45th request of data is X, when server receives this request of data, can calculate the content in the Frame carried in request of data and draw check value Y, Y and X is compared, if X=Y, the request of data then received is correct, if X ≠ Y, then and the request of data mistake received.
It should be noted that, server is identical with the using method of client both sides calculation check value, based on the field contents calculation check value of request of data, if request of data does not change in client and server both sides field contents, the check value that so both sides calculate should be identical, so we can prevent request of data to be tampered in the process reported to server by this mechanism.
In this step, by request source and the request sequence number of record data request in a data frame, unique mark can be done to request of data, thus response corresponding with it can be made to different request of data by Deterministic service device, to correct client feedback data content, and then string bag phenomenon is avoided to occur; By recording check value in a data frame, when ensureing that request of data is transmitted correct, request of data can be responded, preventing third party from distorting the request of data that client reports thus.
Further, server is when issuing data content to client, also a new check value can be calculated according to the attribute information of data content (as title, size, version etc.), and itself and data content are together handed down to client, verify that whether this data content is tampered issuing in process by client.Wherein, the authentication mechanism whether client validation data content is tampered is identical with aforementioned authentication mechanism, does not repeat them here.
203, server is before responding request of data, other request of data reported by the communication connection continuation same client of reception or different clients.
The implementation of this step is identical with the implementation of step 103 in Fig. 1, repeats no more herein.
In prior art, when server receives request of data, will respond it, namely often receiving a request of data will respond once, thus presence server responds phenomenon frequently, and then frequently takies the resource of server.Therefore, optionally, in order to settlement server responds problem frequently, present embodiments provide the scheme of another kind of request of data response, specific implementation is if step 204 is to step 205:
204, server is to the request of data division batch received.
Optionally, following two kinds of modes can be adopted to the division that the request of data received is carried out batch in this step.
Mode one:
Intercept the request of data constantly reported according to the field length preset, multiple request of data total data length being no more than field length are divided into same batch.
Wherein, server constantly receives the request of data that identical or different client reports, if the total data length of the request of data received is more than or equal to default field length, then intercept partial data request, make it under the prerequisite being complete request of data, total data length is less than or equal to default field length, and is divided into the request of data of same batch.
Exemplary, current, server receives 5 request of data, wherein, the data length of request of data 1 is 250, the data length of request of data 2 is 240, the data length of request of data 3 is 256, the data length of request of data 4 is 238, and the data length of request of data 5 is 255, so the total data length of 5 request of data is 1239, request of data 1 is 984 to the total data length of request of data 4, and the field length preset is 1000, so request of data 1 is divided into same batch to request of data 4, request of data 5 is divided into next batch.
Mode two:
According to default frame number, the request of data constantly reported is intercepted, the multiple request of data corresponding to the Frame identical with default frame number quantity are divided into same batch.
Wherein, a corresponding Frame of request of data.Server constantly receives request of data, when the number of the request of data received is identical with default frame number, current received request of data is divided into the request of data of same batch, and multiple request of data identical with default frame number for next group is divided into the request of data of next batch.
Such as, default frame number is 10, if the number of the request of data be currently received is 10, then received 10 request of data is divided into same batch, the 11st request of data received afterwards is then divided into next batch to the 20th request of data, takes the division that the method is carried out batch successively.
205, server is by batch concentrated response data request, and issues the data content of corresponding different pieces of information request.
Wherein, the total data length of the request of data received when server does not reach default field length, or when the number of the request of data received does not reach default frame number, request of data after continuing to receive, until meet above-mentioned condition, when the division of present lot is completed, just carry out concentrating response to the request of data of this batch, and send corresponding data content to the client that the request of data of this batch is corresponding.
Be specifically described for the dividing mode of Frame:
Known default frame number is 15, the number of the request of data that current server receives is 13, then now server does not respond 13 request of data received, but continue to wait for, until receive 15 request of data, just carry out concentrating response, and issue the data content of corresponding request of data.
It should be noted that, similar with the priority mechanism responding different pieces of information request in Fig. 1, in the present embodiment, the response order of server to different batches request of data is decided by each batch of sequencing reported.
In actual applications, on the basis of above embodiment of the method, in order to accelerate the speed that request of data transmits further, can also on the basis of the communication connection of having set up, set up at least one communication connection again, after having set up, all communication connection concurrence performance tasks.Wherein, the specifically identical function of at least one communication connection of setting up further and the communication connection of setting up.
It should be noted that, the quantity of at least one communication connection of setting up further is limited.When setting up at least one communication connection further, need to make the check figure of the CPU (Central Processing Unit, central processing unit) of sum and the server communicated to connect identical.
Such as, as shown in Figure 4, the check figure of CPU is 4, then can set up 4 communication connections between a client and a server, wherein, suppose that the number of client is 40, communication connection 1 is the connection that client 1 to client 10 shares, communication connection 2 is connections that client 11 to client 20 shares, and communication connection 3 is connections that client 21 to client 30 shares, and communication connection 4 is connections that client 31 to client 40 shares.
In practical application, when the scheme of the present embodiment is applied in nginx system, also can directly by quantity that the quantity set of communication connection is identical with the process number of nginx module.This is because, in nginx system, when nginx starts, process can be set up according to the check figure of CPU, namely set up the process identical with CPU check figure.Therefore, in nginx system, also directly the quantity of communication connection can be set to the quantity of nginx process, its effect is identical with the aforementioned effect established a communications link according to CPU quantity.
In addition, the above embodiment of the method not only can be applied to client and server is directly undertaken by network in the scene of data interaction, can also be applied to and have in relay scene, such as, there is individual secondary center between a client and a server, this secondary center for managing all clients, and communicates with between server.And for example, in local area network (LAN), be provided with a proxy server, then, when user is by client-access server, need the particulars such as address, port knowing proxy server, thus just can access services device by proxy server.
Exemplary, as shown in Figure 5, there is individual proxy server between a client and a server, between client and proxy server, then set up a communication connection, a communication connection is set up between proxy server and server, different clients, by sharing two communication connections, just can complete the data interaction between server.
It should be noted that, in above-mentioned scene, also can set up identical with the process number of CPU check figure or nginx several and communicate to connect, in this no limit.
In prior art, communicate to connect one to one owing to setting up between client and server, so when increasing relaying between client and server, then communication connection needs increase at double, the number of concurrent making server need to safeguard is more, and the present embodiment just sets up the communication connection of minority respectively in the middle of client and relaying, between relaying and server, thus avoid the limited problem of number of concurrent.
Further, as the realization to above-mentioned each embodiment of the method, in another embodiment of the present invention, additionally provide a kind of device of request of data, as shown in Figure 6, this device comprises: set up unit 31, receiving element 32, response unit 33.Wherein,
Set up unit 31, for setting up a communication connection;
Receiving element 32, the communication connection for setting up by setting up unit 31 receives the request of data that client reports;
Receiving element 32, also for before responding request of data, other request of data reported by the communication connection continuation same client of reception or different clients;
Response unit 33, responds respectively for the different request of data received receiving element 32, and issues the data content of corresponding different pieces of information request.
Further, the request of data that receiving element 32 receives carries the Frame for request msg, and Frame records request source, request sequence number, data bit and check digit;
Wherein, request source is used for marking the client of reported data request;
Request sequence number is used for marking request of data;
Data bit is used for marking the concrete request object of request of data;
Check digit is used for the check value of record data request.
Further, as shown in Figure 7, response unit 33, comprising:
Divide module 331, for the request of data division batch to reception;
Respond module 332, for batch concentrated response data request divided by division module 331.
Further, divide module 331, for intercepting the request of data constantly reported according to the field length preset, multiple request of data total data length being no more than field length are divided into same batch.
Further, dividing module 331, for intercepting the request of data constantly reported according to default frame number, the multiple request of data corresponding to the Frame identical with default frame number quantity being divided into same batch;
Wherein, a corresponding Frame of request of data.
Further, set up unit 31, also for setting up at least one communication connection further, at least one communication connection has the function identical with setting up communication connection that unit 31 sets up.
Further, setting up unit 31, for setting up at least one communication connection, making communication connection sum identical with the check figure of central processor CPU.
Further, setting up unit 31, for setting up at least one communication connection, making communication connection sum identical with the number of processes of nginx.
Further, the communication connection of setting up unit 31 foundation is that HTTP HTTP connects.
The device of the request of data that the embodiment of the present invention provides, can when different clients sends request of data to server, server is only set up one with client and is communicated to connect, different request of data can be received by this communication connection, and the reception to next request of data is not affected on the response of a upper request of data, namely can limit carry out response limit receive new request of data.Compared with needing in prior art to set up between client with server and communicating to connect one to one, in the present invention, only set up a communication connection between a client and a server, different clients all can complete data interaction between server by this communication connection, thus reach multiplexed effect, and without the need to considering the problem of number of concurrent, and then solve the limited situation of the number of concurrent that communicates to connect in prior art.
By request source and the request sequence number of record data request in a data frame, unique mark can be done to request of data, thus response corresponding with it can be made to different request of data by Deterministic service device, to correct client feedback data content, and then avoid string bag phenomenon to occur; By recording check value in a data frame, when ensureing that request of data is transmitted correct, request of data can be responded, preventing third party from distorting the request of data that client reports thus.
In prior art, communicate to connect one to one owing to setting up between client and server, so when increasing relaying between client and server, then communication connection needs increase at double, the number of concurrent making server need to safeguard is more, and the present embodiment just sets up the communication connection of minority respectively in the middle of client and relaying, between relaying and server, thus avoid the limited problem of number of concurrent.
Further, in another embodiment of the present invention, additionally provide a kind of system of request of data, as shown in Figure 8, system comprises: client 41, server 42; Wherein server 42 comprises the device of Fig. 6 to Fig. 7;
Client 41, for:
Set up one with server 42 to communicate to connect;
By communication connection to the request of server 42 reported data,
Before the response obtaining server 42, continue to report other request of data to server 42 by communication connection;
The data content of the corresponding different pieces of information request issued by communication connection reception server 42.
The system of the request of data that the embodiment of the present invention provides, can when different clients sends request of data to server, server is only set up one with client and is communicated to connect, different request of data can be received by this communication connection, and the reception to next request of data is not affected on the response of a upper request of data, namely can limit carry out response limit receive new request of data.Compared with needing in prior art to set up between client with server and communicating to connect one to one, in the present invention, only set up a communication connection between a client and a server, different clients all can complete data interaction between server by this communication connection, thus reach multiplexed effect, and without the need to considering the problem of number of concurrent, and then solve the limited situation of the number of concurrent that communicates to connect in prior art.
By request source and the request sequence number of record data request in a data frame, unique mark can be done to request of data, thus response corresponding with it can be made to different request of data by Deterministic service device, to correct client feedback data content, and then avoid string bag phenomenon to occur; By recording check value in a data frame, when ensureing that request of data is transmitted correct, request of data can be responded, preventing third party from distorting the request of data that client reports thus.
In prior art, communicate to connect one to one owing to setting up between client and server, so when increasing relaying between client and server, then communication connection needs increase at double, the number of concurrent making server need to safeguard is more, and the present embodiment just sets up the communication connection of minority respectively in the middle of client and relaying, between relaying and server, thus avoid the limited problem of number of concurrent.
Embodiments of the invention disclose:
A kind of method of A1, request of data, described method comprises:
Set up a communication connection;
By the request of data that described communication connection reception client reports;
Before described request of data is responded, other request of data reported by the described communication connection continuation same client of reception or different clients;
Different request of data is responded respectively, and issues the data content of corresponding different pieces of information request.
A2, method according to A1, described request of data carries the Frame for request msg, and described Frame records request source, request sequence number, data bit and check digit;
Wherein, described request source is used for reporting the client of described request of data to mark;
Described request sequence number is used for marking described request of data;
Described data bit is used for marking the concrete request object of described request of data;
Described check digit is for recording the check value of described request of data.
A3, method according to A1, describedly respond respectively to different request of data, comprising:
To the request of data division batch received;
By described batch of concentrated response data request.
A4, method according to A3, the described request of data to receiving divides batch, comprising:
Intercept the request of data constantly reported according to the field length preset, multiple request of data total data length being no more than described field length are divided into same batch.
A5, method according to A3, the described request of data to receiving divides batch, comprising:
According to default frame number, the request of data constantly reported is intercepted, the multiple request of data corresponding to the Frame identical with described default frame number quantity are divided into same batch;
Wherein, a corresponding Frame of request of data.
A6, method according to A1, described method comprises further:
Except described communication connection, set up at least one communication connection further, described at least one communication connection has the function identical with described communication connection.
A7, method according to A6, describedly set up at least one communication connection further, comprising:
Set up at least one communication connection, make communication connection sum identical with the check figure of central processor CPU.
A8, method according to A7, describedly set up at least one communication connection, makes communication connection sum identical with the check figure of central processor CPU, comprising:
Set up at least one communication connection, make communication connection sum identical with the number of processes of nginx.
A9, method according to any one of A1 to A8, described communication connection is that HTTP HTTP connects.
The device of B10, a kind of request of data, described device comprises:
Set up unit, for setting up a communication connection;
Receiving element, for receiving the request of data that client reports by described described communication connection of setting up unit foundation;
Described receiving element, also for before responding described request of data, other request of data reported by the described communication connection continuation same client of reception or different clients;
Response unit, responds respectively for the different request of data received described receiving element, and issues the data content of corresponding different pieces of information request.
B11, device according to B10, the described request of data that described receiving element receives carries the Frame for request msg, and described Frame records request source, request sequence number, data bit and check digit;
Wherein, described request source is used for reporting the client of described request of data to mark;
Described request sequence number is used for marking described request of data;
Described data bit is used for marking the concrete request object of described request of data;
Described check digit is for recording the check value of described request of data.
B12, device according to B10, described response unit, comprising:
Divide module, for the request of data division batch to reception;
Respond module, for batch concentrated response data request by described division Module Division.
B13, device according to B12, described division module, for intercepting the request of data constantly reported according to the field length preset, multiple request of data total data length being no more than described field length are divided into same batch.
B14, device according to B12, the multiple request of data corresponding to the Frame identical with described default frame number quantity, for intercepting the request of data constantly reported according to default frame number, are divided into same batch by described division module;
Wherein, a corresponding Frame of request of data.
B15, device according to B12, described device comprises further:
Describedly set up unit, also for setting up at least one communication connection further, described at least one communication connection has sets up the identical function of described communication connection that unit sets up with described.
B16, device according to B15, describedly set up unit, for setting up at least one communication connection, makes communication connection sum identical with the check figure of central processor CPU.
B17, device according to B16, describedly set up unit, for setting up at least one communication connection, makes communication connection sum identical with the number of processes of nginx.
B18, device according to any one of B10 to B17, described to set up the communication connection that unit sets up be that HTTP HTTP connects.
The system of C19, a kind of request of data, described system comprises: client, server; Wherein said server comprises the device according to any one of B10 to B18;
Described client, for:
Set up one with described server to communicate to connect;
By described communication connection to the request of described server reported data,
Before the response obtaining described server, continue to report other request of data to described server by described communication connection;
The data content of the corresponding different pieces of information request that described server issues is received by described communication connection.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Be understandable that, the correlated characteristic in said method and device can reference mutually.In addition, " first ", " second " in above-described embodiment etc. are for distinguishing each embodiment, and do not represent the quality of each embodiment.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in the method for a kind of network communication according to the embodiment of the present invention, Apparatus and system.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (10)

1. a method for request of data, is characterized in that, described method comprises:
Set up a communication connection;
By the request of data that described communication connection reception client reports;
Before described request of data is responded, other request of data reported by the described communication connection continuation same client of reception or different clients;
Different request of data is responded respectively, and issues the data content of corresponding different pieces of information request.
2. method according to claim 1, is characterized in that, described request of data carries the Frame for request msg, and described Frame records request source, request sequence number, data bit and check digit;
Wherein, described request source is used for reporting the client of described request of data to mark;
Described request sequence number is used for marking described request of data;
Described data bit is used for marking the concrete request object of described request of data;
Described check digit is for recording the check value of described request of data.
3. method according to claim 1, is characterized in that, describedly responds respectively different request of data, comprising:
To the request of data division batch received;
By described batch of concentrated response data request.
4. method according to claim 3, is characterized in that, the described request of data division batch to receiving, comprising:
Intercept the request of data constantly reported according to the field length preset, multiple request of data total data length being no more than described field length are divided into same batch.
5. method according to claim 3, is characterized in that, the described request of data division batch to receiving, comprising:
According to default frame number, the request of data constantly reported is intercepted, the multiple request of data corresponding to the Frame identical with described default frame number quantity are divided into same batch;
Wherein, a corresponding Frame of request of data.
6. method according to claim 1, is characterized in that, described method comprises further:
Except described communication connection, set up at least one communication connection further, described at least one communication connection has the function identical with described communication connection.
7. method according to claim 6, is characterized in that, describedly sets up at least one communication connection further, comprising:
Set up at least one communication connection, make communication connection sum identical with the check figure of central processor CPU.
8. method according to claim 7, is characterized in that, describedly sets up at least one communication connection, makes communication connection sum identical with the check figure of central processor CPU, comprising:
Set up at least one communication connection, make communication connection sum identical with the number of processes of nginx.
9. a device for request of data, is characterized in that, described device comprises:
Set up unit, for setting up a communication connection;
Receiving element, for receiving the request of data that client reports by described described communication connection of setting up unit foundation;
Described receiving element, also for before responding described request of data, other request of data reported by the described communication connection continuation same client of reception or different clients;
Response unit, responds respectively for the different request of data received described receiving element, and issues the data content of corresponding different pieces of information request.
10. a system for request of data, is characterized in that, described system comprises: client, server; Wherein said server comprises device as claimed in claim 9;
Described client, for:
Set up one with described server to communicate to connect;
By described communication connection to the request of described server reported data;
Before the response obtaining described server, continue to report other request of data to described server by described communication connection;
The data content of the corresponding different pieces of information request that described server issues is received by described communication connection.
CN201410776946.7A 2014-12-15 2014-12-15 The method, apparatus and system of a kind of request of data Active CN104468594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410776946.7A CN104468594B (en) 2014-12-15 2014-12-15 The method, apparatus and system of a kind of request of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410776946.7A CN104468594B (en) 2014-12-15 2014-12-15 The method, apparatus and system of a kind of request of data

Publications (2)

Publication Number Publication Date
CN104468594A true CN104468594A (en) 2015-03-25
CN104468594B CN104468594B (en) 2018-04-27

Family

ID=52913966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410776946.7A Active CN104468594B (en) 2014-12-15 2014-12-15 The method, apparatus and system of a kind of request of data

Country Status (1)

Country Link
CN (1) CN104468594B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450730A (en) * 2015-11-05 2016-03-30 北京奇虎科技有限公司 Method and apparatus for processing request from client
WO2017000572A1 (en) * 2015-06-29 2017-01-05 中兴通讯股份有限公司 Internet content adaptation protocol-based communication method, client and server
CN108491278A (en) * 2018-03-13 2018-09-04 网宿科技股份有限公司 A kind of method and the network equipment of processing business data
CN109327511A (en) * 2018-09-18 2019-02-12 网宿科技股份有限公司 A kind of data request method and server based on http protocol
CN109639811A (en) * 2018-12-21 2019-04-16 北京金山云网络技术有限公司 Data transmission method, date storage method, device, server and storage medium
CN111694873A (en) * 2020-06-10 2020-09-22 腾讯科技(深圳)有限公司 Processing method and device of virtual resource packet and database server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020108121A1 (en) * 2001-02-02 2002-08-08 Rachad Alao Service gateway for interactive television
CN101193113A (en) * 2006-11-29 2008-06-04 国际商业机器公司 Content response and content request method and content responder and content requester
CN101796491A (en) * 2005-05-04 2010-08-04 文丘里无线有限公司 Improve the method and apparatus of HTTP performance on the long delay link
CN102387206A (en) * 2011-10-20 2012-03-21 镇江睿泰信息科技有限公司 Synthesis method and system of concurrent request of Web service
CN102685204A (en) * 2011-03-17 2012-09-19 华为技术有限公司 Method and equipment for transmitting data resource
CN102932352A (en) * 2012-11-02 2013-02-13 北京奇虎科技有限公司 Method and server for communicating with client
CN103064778A (en) * 2011-10-20 2013-04-24 阿里巴巴集团控股有限公司 Method, device and system of server performances testing
CN104202399A (en) * 2014-09-05 2014-12-10 国家电网公司 Request buffer pool based data service scheduling method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020108121A1 (en) * 2001-02-02 2002-08-08 Rachad Alao Service gateway for interactive television
CN101796491A (en) * 2005-05-04 2010-08-04 文丘里无线有限公司 Improve the method and apparatus of HTTP performance on the long delay link
CN101193113A (en) * 2006-11-29 2008-06-04 国际商业机器公司 Content response and content request method and content responder and content requester
CN102685204A (en) * 2011-03-17 2012-09-19 华为技术有限公司 Method and equipment for transmitting data resource
CN102387206A (en) * 2011-10-20 2012-03-21 镇江睿泰信息科技有限公司 Synthesis method and system of concurrent request of Web service
CN103064778A (en) * 2011-10-20 2013-04-24 阿里巴巴集团控股有限公司 Method, device and system of server performances testing
CN102932352A (en) * 2012-11-02 2013-02-13 北京奇虎科技有限公司 Method and server for communicating with client
CN104202399A (en) * 2014-09-05 2014-12-10 国家电网公司 Request buffer pool based data service scheduling method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
J.C.MOGUL等: "《Hypertext Transfer Protocol Http/1.1》", 《RFC2616》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017000572A1 (en) * 2015-06-29 2017-01-05 中兴通讯股份有限公司 Internet content adaptation protocol-based communication method, client and server
CN105450730A (en) * 2015-11-05 2016-03-30 北京奇虎科技有限公司 Method and apparatus for processing request from client
CN108491278A (en) * 2018-03-13 2018-09-04 网宿科技股份有限公司 A kind of method and the network equipment of processing business data
CN108491278B (en) * 2018-03-13 2020-09-18 网宿科技股份有限公司 Method and network device for processing service data
CN109327511A (en) * 2018-09-18 2019-02-12 网宿科技股份有限公司 A kind of data request method and server based on http protocol
US11330035B2 (en) 2018-09-18 2022-05-10 Wangsu Science & Technology Co., Ltd. Method and server for HTTP protocol-based data request
CN109639811A (en) * 2018-12-21 2019-04-16 北京金山云网络技术有限公司 Data transmission method, date storage method, device, server and storage medium
CN109639811B (en) * 2018-12-21 2022-01-25 北京金山云网络技术有限公司 Data transmission method, data storage method, device, server and storage medium
CN111694873A (en) * 2020-06-10 2020-09-22 腾讯科技(深圳)有限公司 Processing method and device of virtual resource packet and database server
CN111694873B (en) * 2020-06-10 2023-10-27 腾讯科技(深圳)有限公司 Virtual resource package processing method and device and database server

Also Published As

Publication number Publication date
CN104468594B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
EP3522088B1 (en) Securing blockchain access through a gateway
CN104468594A (en) Data request method, device and system
US20200412644A1 (en) Content based routing method and apparatus
US20150006555A1 (en) Message Publishing and Subscribing Method and Apparatus
KR20220006623A (en) Blockchain consensus method, device and system
CN105337787A (en) Multi-server monitoring method, device and system
CN102984278B (en) Realize the system and method that browser data synchronizes
CN111654399B (en) Networking method, device, equipment and storage medium based on SD-WAN
CN113495921A (en) Routing method and device of database cluster
CN103475682A (en) File transfer method and file transfer equipment
CN110727738B (en) Global routing system based on data fragmentation, electronic equipment and storage medium
CN108932238A (en) A kind of cross-domain communication method and device
CN103179099A (en) Unified certification method for accessing to open website platforms and website platform
US20200244529A1 (en) Propagating information with network nodes
CN103533080A (en) Dispatching method and device for LVS (Linux virtual server)
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CA3116661A1 (en) System and method for automated information technology services management
CN110704158A (en) Method, apparatus and storage medium for forwarding access requests within a container cluster
CN113254050A (en) Micro front-end system
CN116668191B (en) Internet of things application virtual gateway with data encryption convergence function
JP5961471B2 (en) Output comparison method in multiple information systems
CN112257039B (en) Identity attribute adding method and device and electronic equipment
US10108588B2 (en) Method and system for communicating between client pages
CN111984613B (en) Method, device and system for sharing files
CN103533071A (en) Update method, device and system for terminal software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20161116

Address after: 100015 Chaoyang District Road, Jiuxianqiao, No. 10, building No. 3, floor 15, floor 17, 1701-26,

Applicant after: BEIJING QI'ANXIN SCIENCE & TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

Applicant before: Qizhi Software (Beijing) Co., Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 100088 Building 3 332, 102, 28 Xinjiekouwai Street, Xicheng District, Beijing

Patentee after: Qianxin Technology Group Co., Ltd.

Address before: 100015 Jiuxianqiao Chaoyang District Beijing Road No. 10, building 15, floor 17, layer 1701-26, 3

Patentee before: BEIJING QI'ANXIN SCIENCE & TECHNOLOGY CO., LTD.