CN104468594B - The method, apparatus and system of a kind of request of data - Google Patents

The method, apparatus and system of a kind of request of data Download PDF

Info

Publication number
CN104468594B
CN104468594B CN201410776946.7A CN201410776946A CN104468594B CN 104468594 B CN104468594 B CN 104468594B CN 201410776946 A CN201410776946 A CN 201410776946A CN 104468594 B CN104468594 B CN 104468594B
Authority
CN
China
Prior art keywords
data
request
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.)
Active
Application number
CN201410776946.7A
Other languages
Chinese (zh)
Other versions
CN104468594A (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 Qianxin Technology 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 Qianxin Technology Co Ltd filed Critical Beijing Qianxin 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses the method, apparatus and system of a kind of request of data, it is related to Internet technical field, can solves the problems, such as that the number of concurrent of HTTP connections is limited.The method of the present invention, including:Establish a communication connection;By communicating to connect the request of data for receiving client and reporting;Before being responded to request of data, by communicating to connect other request of data for continuing to same client or different clients and reporting;Different request of data is responded respectively, and issues the data content of corresponding different pieces of information request.The present invention is suitable for the scene that request of data is carried out under http protocol.

Description

The method, apparatus and system of a kind of request of data
Technical field
The present invention relates to the method, apparatus and system of Internet technical field, more particularly to a kind of request of data.
Background technology
HTTP (Hypertext Transfer Protocol, hypertext transfer protocol) is that one kind can pass through internet Transmit the agreement of the data of web documents, its feature is that HTTP is a kind of agreement of request/response type, i.e., when client to When server sends request of data, a HTTP connection can be established, server receives what client was sent by the HTTP connections Request of data simultaneously returns to corresponding data content to client.Client discharges the HTTP after the response of server is obtained and connects Connect, so as to complete a request task.When sending request of data again, then need between client and server again Establish HTTP connections.
During above-mentioned request of data, client is required for foundation/release once when carrying out request of data every time HTTP connections, HTTP establishment of connections are excessively frequent.In this regard, another HTTP establishment of connection sides are additionally provided in the prior art The connection of formula, i.e. HTTP long.HTTP connections are long be connected to meet with a response after do not discharge, client can be based on the connection after supervention Request is sent, it is possible thereby to reduce the number that client establishes HTTP connections.
But HTTP long connections there is also it is certain the problem of, essentially consist in:The quantity of HTTP connection numbers and client is pair Answer, therefore when the client terminal quantity in LAN is more, the connection quantity that server needs to keep also can be more.Usual feelings Under condition, the number of concurrent of HTTP connections has certain limitation in network, for example, for WINDOWS systems, ordinary circumstance Under, only allow to establish 1024 HTTP connections at the same time, be also only capable of establishing 7000 HTTP connections after the network optimization;And for For LINUX system, although its number of concurrent supported can reach 20000, also there is a number of concurrent upper limit, not Number of concurrent can infinitely be improved.Continuous with LAN scale expands, and limited number of concurrent can not more meet sharp increase Client terminal quantity, for multistage LAN, the connection between client and relaying, between relaying and server is all Need to establish HTTP connections, thus one, available connection quantity will be more nervous in LAN.
The content of the invention
In view of the above problems, the method, apparatus and system of a kind of request of data proposed by the present invention, can solve HTTP companies The problem of number of concurrent connect is limited.
In order to solve the above technical problems, in a first aspect, the present invention provides a kind of method of request of data, this method bag Include:
Establish a communication connection;
The request of data reported by the communication connection reception client;
Before being responded to the request of data, same client or different visitors are continued to by the communication connection Other request of data that family end reports;
Different request of data is responded respectively, and issues the data content of corresponding different pieces of information request.
Second aspect, the present invention provides a kind of device of request of data, which includes:
Unit is established, for establishing a communication connection;
Receiving unit, the data for being reported by the communication connection reception client for establishing unit foundation please Ask;
The receiving unit, is additionally operable to before being responded to the request of data, by the communication connection after continued access Receive other request of data that same client or different clients report;
Response unit, the different request of data for being received to the receiving unit respond respectively, and issue pair The data content for answering different pieces of information to ask.
The third aspect, the present invention provides a kind of system of request of data, which includes:Client, server;Wherein The server includes the device as described in second aspect;
The client, is used for:
A communication connection is established with the server;
Asked by described communicate to connect to the server reported data,
Before the response of the server is obtained, continue to report other numbers to the server by the communication connection According to request;
The data content for the correspondence different pieces of information request that the server issues is received by the communication connection.
By above-mentioned technical proposal, the method, apparatus and system of request of data provided by the invention can be in different clients Hold to server send request of data when, server only with client establishes a communication connection, can be with by the communication connection Different request of data is received, and the response to a upper request of data has no effect on the reception to next request of data, New request of data can be received when carrying out response.With needing to establish one by one between client and server in the prior art Corresponding communication connection is compared, and in the present invention, only establishes a communication connection, different clients between a client and a server The data interaction between server can be completed by the communication connection, so that reach the effect of multiplexing, without The problem of considering number of concurrent, and then solve the situation that the number of concurrent communicated to connect in the prior art is limited.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole attached drawing, identical component is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of flow chart of the method for request of data;
Fig. 2 shows the flow chart of the method for another request of data;
Fig. 3 shows a kind of structure diagram of data frame;
Fig. 4 shows a kind of structure diagram for establishing communication connection;
Fig. 5 shows another structure diagram for establishing communication connection;
Fig. 6 shows a kind of structure diagram of the device of request of data;
Fig. 7 shows the structure diagram of the device of another request of data;
Fig. 8 shows a kind of structure diagram of the system of request of data.
Embodiment
The exemplary embodiment of the present invention is more fully described below with reference to accompanying drawings.Although the present invention is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here Limited.Conversely, there is provided these embodiments are to be able to be best understood from the present invention, and can be by the scope of the present invention Completely it is communicated to those skilled in the art.
An embodiment of the present invention provides a kind of method of request of data, present invention could apply to client and server group Into system in, illustrated below by executive agent of server side, as shown in Figure 1, this method includes:
101st, server establishes a communication connection.
Wherein, server establishes a communication connection from different clients, which can be HTTP (Hypertext Transfer Protocol, hypertext transfer protocol) connects.
Exemplary, there are 5 clients in LAN, be respectively client 1, client 2, client 3,4 and of client Client 5, a communication connection A, each client in 5 clients are established at 5 between client and server To be communicated by communicating to connect A with server, i.e. 5 client common user communication connection A.
102nd, server is by communicating to connect the request of data for receiving client and reporting.
Wherein, all clients can be located in a terminal, can also be located in different terminals.The terminal can be with For desktop computer, notebook etc..It is respectively client 1, client 2, client 3, client 4 for example, there is 5 clients With client 5, wherein, client 1 and client 2 are respectively positioned in terminal 1, and client 3 and client 5 are respectively positioned in terminal 2, visitor Family end 4 is located in terminal 3.
It should be noted that include the source-information of request, the specific object of request and request in request of data Check information etc..For example, the source-information asked in request of data is client 1 in terminal 1, request it is specific right As being linked for one:http://www.***.com, check information X.
103rd, server continues to same client or difference before being responded to request of data by communication connection Other request of data that client reports.
Wherein, response of the server to request of data has no effect on the reception to other request of data, and server can be Before being responded to the request of data received, other request of data are received, and the request of data does not carry out client Limit, you can to belong to a client together with a upper request of data, different clients can also be belonged to.
For example, current, the request of data that server receives is the request of data 1 of client 1, then not to request of data 1 When being responded, server can receive the request of data 2 of client 1, or receive the request of data 1 of client 2.
104th, server responds different request of data respectively, and issues in the data that corresponding different pieces of information is asked Hold.
Wherein, can be by the data for carrying request of data when server replys the response of request of data to client The response message of appearance is sent to client.
Mention in step 103, other request of data can be received before being responded to a upper request of data, , can be while being responded to a upper request of data, while receiving next request of data in practical application.For example, service While device is to the transmission of client 1 response 1, the request of data 1 of client 2 can be received.
Further, it is also possible to first request of data is first received, then to the different pieces of information request point in first request of data Do not responded, and while being responded to first request of data, second batch request of data can also be received.Example Such as, current server receive request of data be client 1 request of data 1, request of data 2, the request of data 1 of client 2, And the request of data 1 of client 3, then respond thereto respectively, while the data that can receive the transmission of client 2 successively please 2 are asked, the request of data 1 that client 4 is sent.
It should be noted that the actual principle that server responds different pieces of information request is to receive request of data Sequencing is foundation, is responded thereto respectively.For example, the request of data that server receives in order is followed successively by client 2 The 3rd request of data, the 1st request of data of client 4, the 8th of the 5th request of data of client 1 and client 10 the A request of data, thus server to 4 request of data of reception response order also for client 2 the 3rd request of data, 8th request of data of the 1st request of data of client 4, the 5th request of data of client 1 and client 10.
The method of request of data provided in an embodiment of the present invention, can send request of data in different clients to server When, server only establishes a communication connection with client, and different request of data can be received by the communication connection, and Response to a upper request of data has no effect on the reception to next request of data, you can new to be received when carrying out response Request of data.With needing client in the prior art compared with one-to-one communication connection is established between server, this hair In bright, a communication connection is only established between a client and a server, and different clients can be complete by the communication connection Into the data interaction between server, so as to reach the effect of multiplexing, the problem of without regard to number of concurrent, and then solve Determine the situation that the number of concurrent communicated to connect in the prior art is limited.
Further, one is additionally provided as the refinement and extension to method shown in Fig. 1, an alternative embodiment of the invention The method of kind request of data, as shown in Fig. 2, this method includes:
201st, server establishes a communication connection.
The implementation of this step is identical with the implementation of step 101 in Fig. 1, and details are not described herein again.
202nd, server is by communicating to connect the request of data for receiving client and reporting.
Request of data carry for request data data frame, the data frame recording ask the visitor in ask source, request sequence number, data Position and check bit.Wherein, source is asked to be used to the client of reported data request be marked;Sequence number is asked to be used for data Request is marked;Data bit is used to the specific request object of request of data be marked, which can be one Chained address, or other information;Check bit is used for the check value for recording request of data, is asked when server receives data After asking, corresponding check value is calculated, and compared with the check value with being recorded in request of data, if identical, server connects Received request of data is correct, if differing, request of data mistake that server receives.
Exemplary, Fig. 3 is the specific table of the data frame in the 45th request of data that client 12 is sent to server Existing form.Wherein, record has link http in data bit://www.***.com.The check bit of 45th request of data is X, when server receives the request of data, can calculate the content in the data frame that is carried in request of data and be drawn Check value Y, by Y compared with X, if X=Y, the request of data received is correct, if X ≠ Y, the request of data received is wrong By mistake.
It should be noted that the application method that server calculates check value with client both sides is identical, based on request of data Field contents calculate check value, if request of data does not change in client and server both sides field contents, then two The check value that side calculates should be identical, so we can prevent request of data from being reported to server by this mechanism During be tampered.
In this step, by recording request source and the request sequence number of request of data in a data frame, data can be asked Ask and do unique mark, thereby may be ensured that server makes corresponding response to different request of data, to correct Client feedback data content, and then avoid string bag phenomenon from occurring;By recording check value in a data frame, it can ensure number In the case of request transmission correctly, request of data is responded, thus prevents that the data that third party reports client please Ask and distorted.
Further, server, can also be according to the attribute information of data content when issuing data content to client (such as title, size, version) calculates a new check value, and itself and data content are together handed down to client, by Client verifies whether the data content is tampered during issuing.Wherein, whether client validation data content is altered The authentication mechanism changed is identical with aforementioned authentication mechanism, and details are not described herein.
203rd, server continues to same client or difference before being responded to request of data by communication connection Other request of data that client reports.
The implementation of this step is identical with the implementation of step 103 in Fig. 1, and details are not described herein again.
In the prior art, it when server receives request of data, will respond thereto, i.e., often receive a number It will be responded once according to request, so that presence server responds frequent phenomenon, and then frequently take the resource of server.Cause This, optionally, in order to which settlement server responds the problem of frequent, present embodiments provides the side of another request of data response Case, specific implementation such as step 204 to step 205:
204th, server divides batch to the request of data of reception.
Optionally, the division of received request of data progress batch is docked in this step can use following two modes.
Mode one:
The request of data constantly reported is intercepted according to default field length, total data length is no more than field Multiple request of data of length are divided into same batch.
Wherein, server constantly receives the request of data that identical or different client reports, if the request of data received Total data length be greater than or equal to default field length, then intercept partial data request, it is being complete data to make it On the premise of request, total data length is less than or equal to default field length, and is divided into asking with a batch of data Ask.
Exemplary, currently, 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, and the data length of request of data 3 is 256, and the data length of request of data 4 is 238, number Data length according to request 5 is 255, so the total data length of 5 request of data is 1239, request of data 1 arrives request of data 4 Total data length be 984, and default field length be 1000, so request of data 1 to request of data 4 is divided into same Batch, next batch is divided into by request of data 5.
Mode two:
The request of data constantly reported is intercepted according to default frame number, by the data frame identical with default frame number quantity Corresponding multiple request of data are divided into same batch.
Wherein, a request of data corresponds to a data frame.Server constantly receives request of data, when the data of reception please When the number asked is identical with default frame number, currently received request of data is divided into a batch of request of data, and incite somebody to action The next group multiple request of data identical with default frame number are divided into the request of data of next batch.
For example, default frame number is 10, if the number for the request of data being currently received is 10, by received 10 numbers Same batch is divided into according to request, and the 11st request of data received afterwards to the 20th request of data is then divided into next group It is secondary, take this method to carry out the division of batch successively.
205th, server concentrates response data request by batch, and issues the data content of corresponding different pieces of information request.
Wherein, when the total data length of server received data request is not up to default field length, Huo Zhesuo When the number of the request of data of reception not up to presets frame number, the request of data after continuing to, until meet above-mentioned condition, When the division of present lot is completed, concentration response is just carried out to the request of data of the batch, and to the request of data of the batch Corresponding client sends corresponding data content.
It is specifically described by taking the dividing mode of data frame as an example:
Known default frame number is 15, and the number for the request of data that current server receives is 13, then server is not right at this time 13 request of data received are responded, but are continued waiting for, until receiving 15 request of data, just carry out concentration sound Should, and issue the data content of corresponding request of data.
It should be noted that it is similar with the priority mechanism of response different pieces of information request in Fig. 1, in the present embodiment, clothes The response order sequencing that by each batch is reported of the device to different batches request of data be engaged in determine.
In practical applications, on the basis of above method embodiment, in order to further speed up the speed of request of data transmission Degree, can also resettle at least one communication connection on the basis of established communication connection, all after the completion of foundation Communication connection concurrently performs task.Wherein, the tool of at least one communication connection and established communication connection further established The identical function of body.
It should be noted that the quantity at least one communication connection further established is limited.Further establish extremely During a few communication connection, it is necessary to so that the sum of communication connection and server CPU (Central Processing Unit, Central processing unit) check figure it is identical.
For example, as shown in figure 4, the check figure of CPU be 4, then can establish 4 communication links between a client and a server Connect, where it is assumed that the number of client is 40, communication connection 1 is the connection that client 1 to client 10 shares, and is communicated Connection 2 is the connection that client 11 to client 20 shares, and communication connection 3 is one that client 21 to client 30 shares Bar connects, and communication connection 4 is the connection that client 31 to client 40 shares.
, can also be directly by communication connection when the scheme of the present embodiment is applied in nginx systems in practical application Quantity set is the quantity identical into number of passes with nginx modules.This is because, in nginx systems, when nginx starts, Process can be established according to the check figure of CPU, that is, establishes the process identical with CPU core number.Therefore, can also be straight in nginx systems The quantity that the quantity of communication connection is arranged to nginx processes is connect, its effect establishes communication connection with foregoing according to CPU quantity Effect is identical.
In addition, approach described above embodiment can be applied not only to client and server directly by network into line number According to that in interactive scene, can also be applied to have in relay scene, for example, having between a client and a server in a two level The heart, which is used to manage all clients, and communicates between server.And for example, in LAN, set One proxy server, then, it is necessary to know the address of proxy server, port etc. when user accesses server by client Particulars, so as to can just access server by proxy server.
Exemplary, as shown in figure 5, having a proxy server between a client and a server, then in client and generation A communication connection is established between reason server, a communication connection, different visitors are established between proxy server and server Family end can complete the data interaction between server by sharing two communication connections.
It should be noted that in above-mentioned scene, the minority identical into number of passes with CPU core number or nginx can also be established Several communication connections, are not limited thereto.
In the prior art, due to establishing one-to-one communication connection between client and server, so working as client When increasing relaying between server, then communication connection needs increase at double so that server needs the number of concurrent safeguarded more It is more, and the present embodiment is the communication connection for establishing minority respectively among client and relaying, between relaying and server, from And avoid the problem of number of concurrent is limited.
Further, as the realization to above-mentioned each method embodiment, in another embodiment of the present invention, also provide A kind of device of request of data, as shown in fig. 6, the device includes:Establish unit 31, receiving unit 32, response unit 33.Its In,
Unit 31 is established, for establishing a communication connection;
Receiving unit 32, the communication connection for being established by establishing unit 31 receive the request of data that client reports;
Receiving unit 32, is additionally operable to before being responded to request of data, and same client is continued to by communication connection Other request of data that end or different clients report;
Response unit 33, the different request of data for being received to receiving unit 32 respond respectively, and issue pair The data content for answering different pieces of information to ask.
Further, the request of data that receiving unit 32 receives carries the data frame for request data, data frame recording There are request source, request sequence number, data bit and check bit;
Wherein, source is asked to be used to the client of reported data request be marked;
Request sequence number is used to request of data be marked;
Data bit is used to the specific request object of request of data be marked;
Check bit is used for the check value for recording request of data.
Further, as shown in fig. 7, response unit 33, including:
Division module 331, for dividing batch to the request of data of reception;
Respond module 332, the batch for being divided by division module 331 concentrate response data request.
Further, division module 331, for being cut according to default field length to the request of data constantly reported Take, multiple request of data that total data length is no more than to field length are divided into same batch.
Further, division module 331, will for being intercepted according to default frame number to the request of data constantly reported Multiple request of data corresponding to the data frame identical with default frame number quantity are divided into same batch;
Wherein, a request of data corresponds to a data frame.
Further, unit 31 is established, is additionally operable to further establish at least one communication connection, at least one communication connection Have the function of that the communication connection with establishing the foundation of unit 31 is identical.
Further, unit 31 is established, for establishing at least one communication connection so that communication connection sum and centre The check figure for managing device CPU is identical.
Further, unit 31 is established, for establishing at least one communication connection so that communication connection sum and nginx Number of processes it is identical.
Further, the communication connection for establishing the foundation of unit 31 is hypertext transfer protocol HTTP connections.
The device of request of data provided in an embodiment of the present invention, can send request of data in different clients to server When, server only establishes a communication connection with client, and different request of data can be received by the communication connection, and Response to a upper request of data has no effect on the reception to next request of data, you can new to be received when carrying out response Request of data.With needing client in the prior art compared with one-to-one communication connection is established between server, this hair In bright, a communication connection is only established between a client and a server, and different clients can be complete by the communication connection Into the data interaction between server, so as to reach the effect of multiplexing, the problem of without regard to number of concurrent, and then solve Determine the situation that the number of concurrent communicated to connect in the prior art is limited.
By recording request source and the request sequence number of request of data in a data frame, request of data can be done uniquely Mark, thereby may be ensured that server makes corresponding response to different request of data, to correct client feedback Data content, and then avoid string bag phenomenon from occurring;By recording check value in a data frame, it can ensure request of data transmission In the case of correctly, request of data is responded, thus prevents third party from being distorted to the request of data that client reports.
In the prior art, due to establishing one-to-one communication connection between client and server, so working as client When increasing relaying between server, then communication connection needs increase at double so that server needs the number of concurrent safeguarded more It is more, and the present embodiment is the communication connection for establishing minority respectively among client and relaying, between relaying and server, from And avoid the problem of number of concurrent is limited.
Further, in another embodiment of the present invention, a kind of system of request of data is additionally provided, such as Fig. 8 institutes Show, system includes:Client 41, server 42;Wherein server 42 includes the device of Fig. 6 to Fig. 7;
Client 41, is used for:
A communication connection is established with server 42;
Asked by communication connection to 42 reported data of server,
Before the response of server 42 is obtained, continue to report other request of data to server 42 by communicating to connect;
The data content for the correspondence different pieces of information request that server 42 issues is received by communicating to connect.
The system of request of data provided in an embodiment of the present invention, can send request of data in different clients to server When, server only establishes a communication connection with client, and different request of data can be received by the communication connection, and Response to a upper request of data has no effect on the reception to next request of data, you can new to be received when carrying out response Request of data.With needing client in the prior art compared with one-to-one communication connection is established between server, this hair In bright, a communication connection is only established between a client and a server, and different clients can be complete by the communication connection Into the data interaction between server, so as to reach the effect of multiplexing, the problem of without regard to number of concurrent, and then solve Determine the situation that the number of concurrent communicated to connect in the prior art is limited.
By recording request source and the request sequence number of request of data in a data frame, request of data can be done uniquely Mark, thereby may be ensured that server makes corresponding response to different request of data, to correct client feedback Data content, and then avoid string bag phenomenon from occurring;By recording check value in a data frame, it can ensure request of data transmission In the case of correctly, request of data is responded, thus prevents third party from being distorted to the request of data that client reports.
In the prior art, due to establishing one-to-one communication connection between client and server, so working as client When increasing relaying between server, then communication connection needs increase at double so that server needs the number of concurrent safeguarded more It is more, and the present embodiment is the communication connection for establishing minority respectively among client and relaying, between relaying and server, from And avoid the problem of number of concurrent is limited.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be to be used to distinguish each embodiment, and do not represent the quality of each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) realize a kind of method of network communication according to embodiments of the present invention, dress Put and some or all functions of some or all components in system.The present invention is also implemented as being used to perform here The some or all equipment or program of device of described method are (for example, computer program and computer program production Product).Such program for realizing the present invention can store on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from internet website and obtained, and either be provided or on carrier signal to appoint What other forms provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.

Claims (13)

  1. A kind of 1. method of request of data, it is characterised in that the described method includes:
    Establish a communication connection;
    The request of data reported by the communication connection reception client;
    Before being responded to the request of data, same client or different clients are continued to by the communication connection Other request of data reported;
    Different request of data is responded respectively, and issues the data content of corresponding different pieces of information request;
    It is described that different request of data is responded respectively, including:
    Batch is divided to the request of data of reception;
    Response data request is concentrated by the batch;
    The request of data division batch of described pair of reception, including:
    The request of data constantly reported is intercepted according to default field length, total data length is no more than the field Multiple request of data of length are divided into same batch;
    Alternatively, the request of data constantly reported is intercepted according to default frame number, will be identical with the default frame number quantity Multiple request of data corresponding to data frame are divided into same batch;Wherein, a request of data corresponds to a data frame.
  2. 2. according to the method described in claim 1, it is characterized in that, the request of data carries the data for request data Frame, ask the visitor in asks source, request sequence number, data bit and check bit for the data frame recording;
    Wherein, the request source is used to the client for reporting the request of data be marked;
    The request sequence number is used to the request of data be marked;
    The data bit is used to the specific request object of the request of data be marked;
    The check bit is used for the check value for recording the request of data.
  3. 3. according to the method described in claim 1, it is characterized in that, the method is further included:
    In addition to the communication connection, further establish at least one communication connection, at least one communication connection have with The identical function of the communication connection.
  4. 4. according to the method described in claim 3, it is characterized in that, described further establish at least one communication connection, including:
    Establish at least one communication connection so that communication connection sum is identical with the check figure of central processor CPU.
  5. 5. according to the method described in claim 4, it is characterized in that, described establish at least one communication connection so that communication link It is identical with the check figure of central processor CPU to connect sum, including:
    Establish at least one communication connection so that communication connection sum is identical with the number of processes of nginx.
  6. 6. the method according to any one of claim 1 to claim 5, it is characterised in that the communication connection is super Text Transfer Protocol HTTP connections.
  7. 7. a kind of device of request of data, it is characterised in that described device includes:
    Unit is established, for establishing a communication connection;
    Receiving unit, for the request of data reported by the communication connection reception client for establishing unit foundation;
    The receiving unit, is additionally operable to before being responded to the request of data, is continued to by the communication connection same Other request of data that one client or different clients report;
    Response unit, the different request of data for being received to the receiving unit respond respectively, and issue and correspond to not With the data content of request of data;
    The response unit, including:
    Division module, for dividing batch to the request of data of reception;Specifically for according to default field length to constantly on The request of data of report is intercepted, and multiple request of data that total data length is no more than to the field length are divided into a collection of It is secondary;Or the request of data constantly reported is intercepted according to default frame number, by the number identical with the default frame number quantity Same batch is divided into according to multiple request of data corresponding to frame;Wherein, a request of data corresponds to a data frame;
    Respond module, the batch for being divided by the division module concentrate response data request.
  8. 8. device according to claim 7, it is characterised in that the request of data that the receiving unit receives, which carries, to be used In the data frame of request data, ask the visitor in asks source, request sequence number, data bit and check bit for the data frame recording;
    Wherein, the request source is used to the client for reporting the request of data be marked;
    The request sequence number is used to the request of data be marked;
    The data bit is used to the specific request object of the request of data be marked;
    The check bit is used for the check value for recording the request of data.
  9. 9. device according to claim 7, it is characterised in that described device further comprises:
    It is described to establish unit, be additionally operable to further establish at least one communication connection, it is described at least one communication connection have with The identical function of the communication connection of establishing unit foundation.
  10. 10. device according to claim 9, it is characterised in that it is described to establish unit, for establishing at least one communication link Connect so that communication connection sum is identical with the check figure of central processor CPU.
  11. 11. device according to claim 10, it is characterised in that it is described to establish unit, for establishing at least one communication Connection so that communication connection sum is identical with the number of processes of nginx.
  12. 12. the device according to any one of claim 7 to claim 11, it is characterised in that the unit of establishing is built Vertical communication connection is hypertext transfer protocol HTTP connections.
  13. A kind of 13. system of request of data, it is characterised in that the system comprises:Client, server;Wherein described service Device includes the device as any one of claim 7 to claim 12;
    The client, is used for:
    A communication connection is established with the server;
    Asked by described communicate to connect to the server reported data;
    Before the response of the server is obtained, continue to report other data please to the server by the communication connection Ask;
    The data content for the correspondence different pieces of information request that the server issues is received by the 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 CN104468594A (en) 2015-03-25
CN104468594B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330833A (en) * 2015-06-29 2017-01-11 中兴通讯股份有限公司 Communication method based on ICAP (Internet Content Adaptation Protocol), client and server
CN105450730A (en) * 2015-11-05 2016-03-30 北京奇虎科技有限公司 Method and apparatus for processing request from client
CN108491278B (en) * 2018-03-13 2020-09-18 网宿科技股份有限公司 Method and network device for processing service data
CN109327511B (en) 2018-09-18 2021-05-28 网宿科技股份有限公司 Data request method and server based on HTTP (hyper text transport protocol)
CN109639811B (en) * 2018-12-21 2022-01-25 北京金山云网络技术有限公司 Data transmission method, data storage method, device, server and storage medium
CN111694873B (en) * 2020-06-10 2023-10-27 腾讯科技(深圳)有限公司 Virtual resource package processing method and device and database server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7305697B2 (en) * 2001-02-02 2007-12-04 Opentv, Inc. Service gateway for interactive television
CN104202399A (en) * 2014-09-05 2014-12-10 国家电网公司 Request buffer pool based data service scheduling method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《Hypertext Transfer Protocol Http/1.1》;J.C.Mogul等;《RFC2616》;19990630;第30页 8.1.2.2 *

Also Published As

Publication number Publication date
CN104468594A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104468594B (en) The method, apparatus and system of a kind of request of data
CN105260337B (en) A kind of automatic addressing method and system of single-chip microcomputer
CN104301311B (en) The method and apparatus of DNS screen data contents
CN101232468A (en) Request-answering system and method
CN105430108A (en) Test environment accessing method and proxy server
CN103067257A (en) Method and server and system for achieving data mutual communication in social networking service
CN106664515A (en) Method for transmitting content between terminals through service control device link
CN110401641A (en) User authen method, device, electronic equipment
CN103997479A (en) Asymmetric service IP proxy method and equipment
CN110392066A (en) A kind of method and apparatus of access service
US11206699B2 (en) Registering network devices using known host devices
CN106921675A (en) The method and apparatus that a kind of Intelligent hardware accesses limited network
JP5961471B2 (en) Output comparison method in multiple information systems
US20170195262A1 (en) Method of organizing dialog with the use of fillable forms
CN111786989B (en) Communication processing method and device and electronic equipment
CN103384246A (en) Safety supervision system login assistant method
CN111831513A (en) Log query method and device, electronic equipment and storage medium
US10182119B2 (en) System and methods for facilitating communication among a subset of connections that connect to a web application
CN113347135B (en) Method and system for electronic data exchange
CN103873564A (en) Method for realizing SignalR duplex communication under balanced load condition of multiple servers
CN105871917A (en) Transmission control protocol TCP connection scheduling method and device
CN110971716B (en) Address configuration method, device, system and computer readable storage medium
CN104660403B (en) A kind of device authorization method and server
KR101670699B1 (en) Method and system for communicating between web pages
KR20180048833A (en) Pilot configuration method and device

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.