CN105071976A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN105071976A
CN105071976A CN201510567996.9A CN201510567996A CN105071976A CN 105071976 A CN105071976 A CN 105071976A CN 201510567996 A CN201510567996 A CN 201510567996A CN 105071976 A CN105071976 A CN 105071976A
Authority
CN
China
Prior art keywords
data processing
business data
processing request
business
request
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
CN201510567996.9A
Other languages
Chinese (zh)
Other versions
CN105071976B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Anyi Hengtong Beijing 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 Anyi Hengtong Beijing Technology Co Ltd filed Critical Anyi Hengtong Beijing Technology Co Ltd
Priority to CN201510567996.9A priority Critical patent/CN105071976B/en
Publication of CN105071976A publication Critical patent/CN105071976A/en
Priority to PCT/CN2015/099895 priority patent/WO2017041398A1/en
Application granted granted Critical
Publication of CN105071976B publication Critical patent/CN105071976B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

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

Abstract

The invention discloses a data transmission method and device. According to the one embodiment of the invention, the method includes the following steps of: responding to a connection request transmitted by a client end, and generating transmission-used interfaces for transmitting business data to the client end; receiving a business data processing request for business data to be processed which is transmitted by the client end, wherein the business data processing request contains a business type to which the business data to be processed belong; determining business data processing threads for processing the business data processing request based on the business type; and processing the business data processing request through utilizing the business data processing threads and transmitting business data through the transmission-used interfaces and the client end, wherein the business data are obtained after the business data processing threads process the business data processing request. With the data transmission method adopted, the problem of system overhead increase caused by a requirement for performing synchronization operation on the threads corresponding to the transmission-used interfaces when data transmission is performed through the transmission-used interfaces can be solved, and system overhead in data transmission can be decreased.

Description

Data transmission method and device
Technical field
The application relates to computer realm, is specifically related to networking technology area, particularly relates to data transmission method and device.
Background technology
In transfer of data between process, carrying out transfer of data by data transmission interface (such as application programming interface, socket) is a kind of conventional communication mode.In known technology, the PROCESS OVERVIEW being carried out transfer of data by data transmission interface is as follows: often receive a data transfer request, create one for transmitting the transmission interface of data, then, for each transmission interface, create the processing threads for the treatment of the data transfer request being sent to transmission interface, obtain data after treatment, finally by the transmission interface transmission data after treatment for transmitting data.
But, when adopting aforesaid way to carry out transfer of data, because each all needs a corresponding processing threads for the transmission interface transmitting data.On the one hand, cause number of threads more, increase system load.On the other hand, for avoiding processing caused access conflict to the transmission data of same type between thread, needing to carry out simultaneous operation between thread, further increasing the overhead when utilizing transmission interface to carry out transfer of data.
Summary of the invention
This application provides data transmission method and device, for solving the technical problem that above-mentioned background technology part exists.
First aspect, this application provides data transmission method, and the method comprises: the connection request sent in response to client, generates the transmission interface be used for client transmissions business datum; Receive the business data processing request treating process business datum that client sends, business data processing request comprises the type of service belonging to pending business datum; Based on type of service, determine the business data processing thread of process business data processing request; Business data processing thread is utilized to process business data processing request, and the business datum obtained after business data processing request being processed via business data processing thread by transmission interface and client transmissions.
Second aspect, this application provides data transmission method, and the method comprises: in response to the processing instruction treating process business datum of input, generate connection request; Connection request is sent to service end, and the mark for the transmission interface with service end service data transmission generated in response to connection request that reception service end returns; Generate business data processing request, business data processing request comprises the mark of type of service belonging to pending business datum and transmission interface; Business data processing request is sent to service end, by transmission interface and the service end service data transmission of the mark correspondence of transmission interface, business datum comprise via business data processing thread corresponding to type of service business data processing request to be processed after obtain business datum.
The third aspect, this application provides data transmission device, and this device comprises: response unit, is configured for the connection request sent in response to client, generates the transmission interface be used for client transmissions business datum; Receiving element, be configured for the business data processing request treating process business datum receiving client and send, business data processing request comprises the type of service belonging to pending business datum; Determining unit, is configured for based on type of service, determines the business data processing thread of process business data processing request; Communication unit, be configured for and utilize business data processing thread to process business data processing request, and the business datum obtained after business data processing request being processed via business data processing thread by transmission interface and client transmissions.
Fourth aspect, this application provides data transmission device, and this device comprises: instruction response unit, is configured for the processing instruction treating process business datum in response to input, generates connection request; Transmitting element, is configured for and connection request is sent to service end, and the mark for the transmission interface with service end service data transmission generated in response to connection request that reception service end returns; Generation unit, is configured for and generates business data processing request, and business data processing request comprises the mark of type of service belonging to pending business datum and transmission interface; Request transmitting unit, be configured for and business data processing request is sent to service end, by transmission interface and the service end service data transmission of the mark correspondence of transmission interface, business datum comprise via business data processing thread corresponding to type of service business data processing request to be processed after obtain business datum.
The data transmission method that the application provides and device, by the connection request sent in response to client, generate the transmission interface be used for client transmissions business datum; Receive the business data processing request treating process business datum that client sends; Based on type of service, determine the business data processing thread of process business data processing request; Business data processing thread is utilized to process business data processing request, and the business datum obtained after business data processing request being processed via business data processing thread by transmission interface and client transmissions.Thus avoid when carrying out transfer of data by transmission interface, because needing the problem of the increase overhead caused carrying out simultaneous operation between thread corresponding to transmission interface, decrease the overhead when transmitting data.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, the other features, objects and advantages of the application will become more obvious:
Fig. 1 is the exemplary system architecture figure that the application can be applied to wherein;
Fig. 2 shows the flow chart of an embodiment of the data transmission method according to the application;
Fig. 3 shows the schematic diagram generating transmission interface;
Fig. 4 shows the schematic diagram processed business data processing request;
Fig. 5 shows the flow chart of another embodiment of the data transmission method according to the application;
Fig. 6 shows the structural representation of an embodiment of the data transmission device according to the application;
Fig. 7 shows the structural representation of another embodiment of the data transmission device according to the application;
Fig. 8 is the structural representation of the computer system be suitable for for the terminal equipment or server realizing the embodiment of the present application.
Embodiment
Below in conjunction with drawings and Examples, the application is described in further detail.Be understandable that, specific embodiment described herein is only for explaining related invention, but not the restriction to this invention.It also should be noted that, for convenience of description, in accompanying drawing, illustrate only the part relevant to Invention.
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the application in detail in conjunction with the embodiments.
Fig. 1 shows the exemplary system architecture 100 can applying the data transmission method of the application or the embodiment of data transmission device.
As shown in Figure 1, system architecture 100 can comprise terminal equipment 101,102,103, network 104 and server 105.Network 104 is in order at terminal equipment 101, the medium providing transmission link between 102,103 and server 105.Network 104 can comprise various connection type, such as wired, wireless transmission link or fiber optic cables etc.
User can use terminal equipment 101,102,103 mutual by network 104 and server 105, to receive or to send message etc.Terminal equipment 101,102,103 can be provided with various communication applications, such as network security class application, JICQ etc.
Terminal equipment 101,102,103 can be have display screen and the various electronic equipments of network enabled communication, include but not limited to smart mobile phone, panel computer, E-book reader, MP3 player (MovingPictureExpertsGroupAudioLayerIII, dynamic image expert compression standard audio frequency aspect 3), MP4 (MovingPictureExpertsGroupAudioLayerIV, dynamic image expert compression standard audio frequency aspect 4) player, pocket computer on knee and desktop computer etc.
Server 105 can be to provide the server of various service, such as, the network security class on terminal equipment 101,102,103 is applied to the background server provided support.Result (such as business datum) to process such as data analysis such as the business data processing requests received, and can be fed back to terminal equipment by background server.
It should be noted that, in the embodiment of the present application, client, service end do not refer in particular to the equipment of a certain type.To carry out transfer of data between multiple process, the process sending data processing request client can be referred to as, the process for the treatment of data processing request service end can be referred to as.Above-mentioned client, service end can run on identical terminal equipment 101,102,103 or server 105, also can run on different terminal equipments 101,102,103 or server 105.Correspondingly, the terminal equipment 101,102,103 that can be operated in by client, service end or server 105 perform the operation sending data processing request and deal with data process request.
Should be appreciated that, the number of the terminal equipment in Fig. 1, network and server is only schematic.According to realizing needs, the terminal equipment of arbitrary number, network and server can be had.
Please refer to Fig. 2, it illustrates the flow process 200 of an embodiment of the data transmission method according to the application.It should be noted that, in the present embodiment, transmission interface can be the communication interface for multiple interprocess communication.When multiple process is positioned at same equipment (server such as shown in Fig. 1 or terminal) namely multiple process runs on this locality, then transmission interface can be local interface (such as application programming interface).When multiple process lays respectively at different equipment (server such as shown in Fig. 1 or terminals), then transmission interface can be network interface (such as socket).The data transmission method that the present embodiment provides can be performed by terminal equipment 101,102,103 or server 105.The method comprises the following steps:
Step 201, in response to the connection request that client sends, generates the transmission interface be used for client transmissions business datum.
In the present embodiment, connection request can for the connection request for triggering the operation creating transmission interface.Such as, when transmission interface is socket, then this connection request can be socket connection request.The electronic equipment (server such as shown in Fig. 1 or terminal) that data transmission method runs thereon can receive connection request by wired connection mode or radio connection from client.It is pointed out that above-mentioned radio connection can include but not limited to 3G/4G connection, WiFi connection, bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultrawideband) connection and other radio connection developed known or future now.
Please refer to Fig. 3, it illustrates the schematic diagram generating transmission interface.Fig. 3 transmits with interface to be example for socket, to illustrate in response to connection request, creates the principle of transmission interface and transmission socket.In figure 3, show and monitor socket 301, transmission socket 302, client 303.Wherein, monitor socket 301 to create before the connection request receiving client transmission.The connection request monitored socket monitoring client 303 and send can be utilized.While connection request being monitored by monitoring socket, further in response to the connection request of client, the transmission socket 302 be used for client transmissions business datum can be created.In the present embodiment, when can be socket based on transmission interface, create the principle of transmission interface, create the transmission of the communication be used between local process with interface (such as application programming interface).
In the present embodiment, after establishment transmission interface, transmission interface and client can be utilized to carry out transfer of data.Such as, data to be transmitted can be write transmission interface, then be sent to client, again such as, the data that client sends can be read from transmission interface.In the present embodiment, when multiple client sends connection request, the client's side link list characterizing client and transmission interface corresponding relation can be generated, often an increase client's side link, all can create a transmission interface for newly increase client and carry out transfer of data.
Step 202, receives the business data processing request treating process business datum that client sends.
In the present embodiment, business data processing request comprises the type of service belonging to pending business datum.In the present embodiment, the service provided for client can be referred to as business.Such as, the network security class service provided to client can comprise searches solution, upgrades the business such as virus base, and each business can a corresponding type of service, and correspondingly, the data be associated with type of service can be referred to as business datum.In the present embodiment, at the connection request in response to client, after creating the transmission interface of service data transmission, the business data processing request that client sends can be received further.
In the present embodiment, according to the difference of business data processing request type, pending business datum corresponding to business data processing request is also different.Such as, when client is expected to obtain up-to-date virus base data with the virus base of update contruction network security class application thereon, then business data processing request can be the request for obtaining up-to-date virus base data of client transmission, correspondingly, pending business datum can for user expect obtain up-to-date virus base data.Again such as, when client needs to upload misdata to expect to find out corresponding solution, then business data processing request can be the request for processing (such as receiving) to the misdata of client upload of client transmission, correspondingly, pending business datum can be the misdata of client upload.
Step 203, based on type of service, determines the business data processing thread of process business data processing request.
In the present embodiment, the type of the business datum in the business data processing request that can send based on client, determines the business data processing thread of process business data processing request.Such as, when client expects to obtain up-to-date virus base data with virus base in update contruction network security class application thereon, pending business datum can expect the up-to-date virus base data of acquisition for user.This type of service belonging to pending business datum can be this type of service of virus base Data Update, can based on this type of service, determine the business data processing thread of process business data processing request, namely for obtaining up-to-date virus base data and sending the business data processing thread of up-to-date viral data to client.
Alternatively in implementation in some of the present embodiment, also comprise: based on the quantity of type of service, be pre-created multiple business data processing thread, wherein, the corresponding type of service of each business data processing thread.In the present embodiment, can for each type of service, create a business data processing thread corresponding with type of service.
In the present embodiment, the worker thread for the treatment of the request such as connection request, business data processing request can be pre-created.When a connection request is received, then transmission interface is created.When receiving business data processing request, then can according to the type of pending business datum, business data processing thread business data processing request being sent to its correspondence processes.In the present embodiment, worker thread can also receive the request (such as the request of closing transmission interface) operated transmission interface.
Step 204, utilizes business data processing thread to process business data processing request, and the business datum obtained after being processed business data processing request via business data processing thread by transmission interface and client transmissions.
In the present embodiment, business data processing thread can be utilized to process business data processing request, then by transmission interface and client transmissions business datum.Such as, when business data processing request is the request obtaining up-to-date virus database data, then its corresponding business data processing thread can obtain up-to-date virus database data, is then written in transmission interface, is sent to client.When business data processing request is the request of the misdata uploading client, then its corresponding business data processing thread can read out the misdata of client upload from transmission interface.
Please refer to Fig. 4, it illustrates the schematic diagram that business data processing request is processed.In the diagram, show client 401, business data processing thread 402, transmission interface 403.Below for the business data processing thread 1 in the client 1 in client 401, client 2 and business data processing thread 402, transmission interface in transmission interface 403 1 and transmission interface 2, the process that business data processing thread processes business data processing request is described: client 1 corresponding business data processing thread 1 equal to client 2, the business data processing request namely utilizing business data processing thread 1 to process client 1 to send with client 2.The business data processing request sent for client 1 and client 2 is the request for obtaining up-to-date virus base data, transmission interface 1 and transmission interface 2 be in order to client 1 and client 2 service data transmission and the transmission interface that creates.Business data processing thread 1, for obtaining most current virus database data, then, sends the data to client 1, client 2 respectively by transmission interface 1 and transmission interface 2.Simultaneously, transmission interface 1 and the corresponding relation of transmission interface 2 with business data processing thread 1 can be stored, thus, when the business data processing request that client 1 and client 2 send is the request for processing the misdata of client upload, can according to transmission interface 1 and the corresponding relation of transmission interface 2 with business data processing thread 1, business data processing thread 1 is transferred to process the business data processing request that client 1 and client 2 send, by business data processing thread 1, the solution of searching based on misdata is sent the data to client 1 respectively by transmission interface 1 and transmission interface 2, client 2.
In some of the present embodiment alternatively in implementation, utilize business data processing thread to carry out process to business data processing request to comprise: utilize business data processing thread based on the time of reception of business data processing request, process business data processing request successively.
In the present embodiment, business data processing thread can receive the business data processing request that multiple client sends, can according to the time receiving business data processing request, business data processing request is joined in queue, can process the business data processing request in queue successively in the mode of first in first out.
In some of the present embodiment alternatively in implementation, business data processing request also comprises the weighted value for characterizing urgency level corresponding to pending business datum; And utilize business data processing thread to carry out process to business data processing request to comprise: utilize business data processing thread based on weighted value, determine the processing sequence to business data processing request; And based on processing sequence, successively business data processing request is processed.
In the present embodiment, the weighted value of urgency level corresponding to pending business datum in the business data processing request that client sends, can be comprised, then, the business datum priority treatment higher to weighted value.Such as, for the business datum that the network safety event happened suddenly in network is relevant, higher weighted value can be given, to make business data processing thread, this business datum is preferentially processed.In the present embodiment, based on the weighted value of urgency level corresponding to pending business datum, the processing sequence to business data processing request can be determined, then according to processing sequence, successively business data processing request processed.
The data transmission method that above-described embodiment of the application provides, by for each business data processing request, create the transmission interface for transmitting data, then according to the type of pending business datum, different business data processing threads is transferred to process, thus avoiding when carrying out transfer of data by transmission interface, the problem of the increase overhead caused because needing simultaneous operation between the thread that transmission interface is corresponding, decreases the overhead when transmitting data.
Please refer to Fig. 5, it illustrates the flow process 500 of another embodiment of the data transmission method according to the application.The data transmission method that the present embodiment provides can be performed by terminal equipment 101,102,103 or server 105.The method comprises the following steps:
Step 501, in response to the processing instruction treating process business datum of input, generates connection request.
In the present embodiment, connection request can for the connection request for triggering the operation creating transmission interface.Such as, when coffret is socket, then this connection request can be socket connection request.The service that service end provides can be referred to as business.Such as, the network security class service that service end provides can comprise searches solution, upgrades the business such as virus base, and each business can a corresponding type of service, and correspondingly, the data be associated with type of service can be referred to as business datum.In the present embodiment, according to the difference of the type of pending business datum, corresponding processing instruction is also different.Such as, when pending business datum is the up-to-date virus base data needing to obtain from service end, then processing instruction can for the instruction for obtaining up-to-date virus base data from service end.In the present embodiment, after receiving the processing instruction treating process business datum, in response to processing instruction, connection request can be generated.
Step 502, is sent to service end by connection request, and the mark for the transmission interface with service end service data transmission generated in response to connection request that reception service end returns.
In the present embodiment, after connection request is sent to service end, the mark for the transmission interface with service end service data transmission generated in response to connection request that service end returns can be received.Transmission interface and the service end service data transmission of the mark correspondence of this transmission interface can be utilized.
Step 503, generates business data processing request.
In the present embodiment, business data processing request comprises the mark of type of service belonging to pending business datum and transmission interface.
In some of the present embodiment alternatively in implementation, business data processing request also comprises: for characterizing the weighted value of urgency level corresponding to pending business datum.In the present embodiment, urgency level that can be corresponding according to business datum in advance, gives the weighted value of different its urgency levels of sign to dissimilar business datum.Such as, be applied as example with network security class, higher weighted value can be given by the business datum be associated with nonbursty network security incident.
Step 504, is sent to service end by business data processing request, by transmission interface and the service end service data transmission of the mark correspondence of transmission interface.
In the present embodiment, business datum comprise via business data processing thread corresponding to the type of service belonging to pending business datum business data processing request to be processed after obtain business datum.After business data processing request is sent to service end, Trigger services end can processes business data processing request by the business data processing thread corresponding with the type of service belonging to pending business datum, obtain business datum after treatment.Then, can via the transmission interface of the mark correspondence of the transmission interface in business data processing request, transmit business datum after treatment with service end.
Please refer to Fig. 6, it illustrates the structural representation of an embodiment of the data transmission device according to the application.Device 600 comprises: response unit 601, receiving element 602, determining unit 603, communication unit 604.Wherein, response unit 601 is configured for the connection request sent in response to client, generates the transmission interface be used for client transmissions business datum; Receiving element 602 is configured for the business data processing request treating process business datum receiving client and send, and business data processing request comprises the type of service belonging to pending business datum; Determining unit 603 is configured for based on type of service, determines the business data processing thread of process business data processing request; Communication unit 604 is configured for and utilizes business data processing thread to process business data processing request, and the business datum obtained after being processed business data processing request via business data processing thread by transmission interface and client transmissions.
In some of the present embodiment alternatively in implementation, communication unit 604 comprises: the first process subelement (not shown), be configured for the time of reception utilizing business data processing thread based on business data processing request, successively business data processing request processed.
In some of the present embodiment alternatively in implementation, business data processing request also comprises the weighted value for characterizing urgency level corresponding to pending business datum, communication unit 604 comprises: the second process subelement (not shown), be configured for and utilize business data processing thread based on weighted value, determine the processing sequence to business data processing request, and based on processing sequence, successively business data processing request is processed.
In some of the present embodiment alternatively in implementation, device 600 also comprises: number of threads determining unit (not shown), be configured for the quantity based on type of service, be pre-created multiple business data processing thread, wherein, the corresponding type of service of each business data processing thread.
Please refer to Fig. 7, it illustrates the structural representation of another embodiment of the data transmission device according to the application.Device 700 comprises: instruction response unit 701, transmitting element 702, generation unit 703, request transmitting unit 704.Wherein, instruction response unit 701 is configured for the processing instruction treating process business datum in response to input, generates connection request; Transmitting element 702 is configured for and connection request is sent to service end, and the mark for the transmission interface with service end service data transmission generated in response to connection request that reception service end returns; Generation unit 703 is configured for and generates business data processing request, and business data processing request comprises the mark of type of service belonging to pending business datum and transmission interface; Request transmitting unit 704 is configured for and business data processing request is sent to service end, by transmission interface and the service end service data transmission of the mark correspondence of transmission interface, business datum comprise via business data processing thread corresponding to type of service business data processing request to be processed after obtain business datum.
In some of the present embodiment alternatively in implementation, business data processing request also comprises: for characterizing the weighted value of urgency level corresponding to pending business datum.
Below with reference to Fig. 8, it illustrates the structural representation of the computer system 800 of terminal equipment or the main frame be suitable for for realizing the embodiment of the present application.
As shown in Figure 8, computer system 800 comprises CPU (CPU) 801, and it or can be loaded into the program random access storage device (RAM) 803 from storage area 808 and perform various suitable action and process according to the program be stored in read-only memory (ROM) 802.In RAM803, also store system 800 and operate required various program and data.CPU801, ROM802 and RAM803 are connected with each other by bus 804.I/O (I/O) interface 805 is also connected to bus 804.
I/O interface 805 is connected to: the importation 806 comprising keyboard, mouse etc. with lower component; Comprise the output 807 of such as cathode ray tube (CRT), liquid crystal display (LCD) etc. and loud speaker etc.; Comprise the storage area 808 of hard disk etc.; And comprise the communications portion 809 of network interface unit of such as LAN card, modulator-demodulator etc.Communications portion 809 is via the network executive communication process of such as internet.Driver 810 is also connected to I/O interface 805 as required.Detachable media 811, such as disk, CD, magneto optical disk, semiconductor memory etc., be arranged on driver 810 as required, so that the computer program read from it is mounted into storage area 808 as required.
Especially, according to embodiment of the present disclosure, the process described with reference to figure 2-Fig. 7 above may be implemented as computer software programs.Such as, embodiment of the present disclosure comprises a kind of computer program, and it comprises the computer program visibly comprised on a machine-readable medium, and described computer program comprises the program code of the method for performing Fig. 2-Fig. 7.In such embodiments, this computer program can be downloaded and installed from network by communications portion 809, and/or is mounted from detachable media 811.
Flow chart in accompanying drawing and block diagram, illustrate according to the architectural framework in the cards of the system of the various embodiment of the application, method and computer program product, function and operation.In this, each square frame in flow chart or block diagram can represent a part for module, program segment or a code, and a part for described module, program segment or code comprises one or more executable instruction for realizing the logic function specified.Also it should be noted that at some as in the realization of replacing, the function marked in square frame also can be different from occurring in sequence of marking in accompanying drawing.Such as, in fact the square frame that two adjoining lands represent can perform substantially concurrently, and they also can perform by contrary order sometimes, and this determines according to involved function.Also it should be noted that, the combination of the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart, can realize by the special hardware based system of the function put rules into practice or operation, or can realize with the combination of specialized hardware and computer instruction.
Unit involved in the embodiment of the present application or module can be realized by the mode of software, also can be realized by the mode of hardware.Described unit or module also can be arranged within a processor, such as, can be described as: a kind of processor comprises response unit, receiving element, determining unit, communication unit.Wherein, the title of these unit does not form the restriction to this unit itself under certain conditions, and such as, response unit can also be described to " in response to the connection request that client sends, generating the transmission interface be used for client transmissions business datum ".
As another aspect, present invention also provides a kind of non-volatile computer storage medium, this non-volatile computer storage medium can be the non-volatile computer storage medium comprised in device described in above-described embodiment; Also can be individualism, be unkitted the non-volatile computer storage medium allocated in terminal.Above-mentioned non-volatile computer storage medium stores one or more program, when one or more program described is performed by an equipment, make described equipment: the connection request sent in response to client, generate the transmission interface be used for described client transmissions business datum; Receive the business data processing request treating process business datum that client sends, described business data processing request comprises the type of service belonging to pending business datum; Based on described type of service, determine the business data processing thread processing described business data processing request; Described business data processing thread is utilized to process described business data processing request, and the business datum obtained after described business data processing request being processed via described business data processing thread by described transmission interface and described client transmissions.
More than describe and be only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art are to be understood that, invention scope involved in the application, be not limited to the technical scheme of the particular combination of above-mentioned technical characteristic, also should be encompassed in when not departing from described inventive concept, other technical scheme of being carried out combination in any by above-mentioned technical characteristic or its equivalent feature and being formed simultaneously.The technical characteristic that such as, disclosed in above-mentioned feature and the application (but being not limited to) has similar functions is replaced mutually and the technical scheme formed.

Claims (12)

1. a data transmission method, is characterized in that, described method comprises:
In response to the connection request that client sends, generate the transmission interface be used for described client transmissions business datum;
Receive the business data processing request treating process business datum that client sends, described business data processing request comprises the type of service belonging to pending business datum;
Based on described type of service, determine the business data processing thread processing described business data processing request;
Described business data processing thread is utilized to process described business data processing request, and the business datum obtained after described business data processing request being processed via described business data processing thread by described transmission interface and described client transmissions.
2. method according to claim 1, is characterized in that, describedly utilizes described business data processing thread to carry out process to described business data processing request to comprise:
Utilize described business data processing thread based on the time of reception of described business data processing request, successively business data processing request is processed.
3. method according to claim 1, is characterized in that, described business data processing request also comprises the weighted value for characterizing urgency level corresponding to pending business datum; And
Describedly utilize described business data processing thread to carry out process to described business data processing request to comprise:
Utilize described business data processing thread based on described weighted value, determine the processing sequence to business data processing request; And based on described processing sequence, successively business data processing request is processed.
4. according to the method one of claim 1-3 Suo Shu, it is characterized in that, described method also comprises: based on the quantity of described type of service, is pre-created multiple business data processing thread, wherein, and the corresponding type of service of each business data processing thread.
5. a data transmission method, is characterized in that, described method comprises:
In response to the processing instruction treating process business datum of input, generate connection request;
Described connection request is sent to service end, and the mark for the transmission interface with service end service data transmission generated in response to described connection request that reception service end returns;
Generate business data processing request, described business data processing request comprises the mark of type of service belonging to described pending business datum and described transmission interface;
Described business data processing request is sent to service end, by transmission interface and the service end service data transmission of the mark correspondence of described transmission interface, described business datum comprise via business data processing thread corresponding to described type of service described business data processing request to be processed after obtain business datum.
6. method according to claim 5, is characterized in that, described business data processing request also comprises: for characterizing the weighted value of urgency level corresponding to pending business datum.
7. a data transmission device, is characterized in that, described device comprises:
Response unit, is configured for the connection request sent in response to client, generates the transmission interface be used for described client transmissions business datum;
Receiving element, be configured for the business data processing request treating process business datum receiving client and send, described business data processing request comprises the type of service belonging to pending business datum;
Determining unit, is configured for based on described type of service, determines the business data processing thread processing described business data processing request;
Communication unit, be configured for and utilize described business data processing thread to process described business data processing request, and the business datum obtained after described business data processing request being processed via described business data processing thread by described transmission interface and described client transmissions.
8. device according to claim 7, is characterized in that, described communication unit comprises:
First process subelement, is configured for the time of reception utilizing described business data processing thread based on described business data processing request, processes successively to business data processing request.
9. device according to claim 7, is characterized in that, described business data processing request also comprises the weighted value for characterizing urgency level corresponding to pending business datum, and described communication unit comprises:
Second process subelement, is configured for and utilizes described business data processing thread based on described weighted value, determine the processing sequence to business data processing request, and based on described processing sequence, process successively to business data processing request.
10. according to the device one of claim 7-9 Suo Shu, it is characterized in that, described device also comprises:
Number of threads determining unit, is configured for the quantity based on described type of service, is pre-created multiple business data processing thread, wherein, and the corresponding type of service of each business data processing thread.
11. 1 kinds of data transmission devices, is characterized in that, described device comprises:
Instruction response unit, is configured for the processing instruction treating process business datum in response to input, generates connection request;
Transmitting element, is configured for and described connection request is sent to service end, and the mark for the transmission interface with service end service data transmission generated in response to described connection request that reception service end returns;
Generation unit, is configured for and generates business data processing request, and described business data processing request comprises the mark of type of service belonging to described pending business datum and described transmission interface;
Request transmitting unit, be configured for and described business data processing request is sent to service end, by transmission interface and the service end service data transmission of the mark correspondence of described transmission interface, described business datum comprise via business data processing thread corresponding to described type of service described business data processing request to be processed after obtain business datum.
12. devices according to claim 11, is characterized in that, described business data processing request also comprises: for characterizing the weighted value of urgency level corresponding to pending business datum.
CN201510567996.9A 2015-09-08 2015-09-08 Data transmission method and device Active CN105071976B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510567996.9A CN105071976B (en) 2015-09-08 2015-09-08 Data transmission method and device
PCT/CN2015/099895 WO2017041398A1 (en) 2015-09-08 2015-12-30 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510567996.9A CN105071976B (en) 2015-09-08 2015-09-08 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN105071976A true CN105071976A (en) 2015-11-18
CN105071976B CN105071976B (en) 2019-05-03

Family

ID=54501263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510567996.9A Active CN105071976B (en) 2015-09-08 2015-09-08 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN105071976B (en)
WO (1) WO2017041398A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017041398A1 (en) * 2015-09-08 2017-03-16 安一恒通(北京)科技有限公司 Data transmission method and device
WO2017113193A1 (en) * 2015-12-30 2017-07-06 华为技术有限公司 Packet-processing method, gateway user plane entity, gateway control plane entity and gateway
CN107204908A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 A kind of message sending, receiving method and device based on interface communication protocol frame
CN107273190A (en) * 2017-05-19 2017-10-20 武汉票据交易中心有限公司 A kind of batch scheduled service processing method and system
CN108230052A (en) * 2016-12-22 2018-06-29 航天信息股份有限公司 A kind of invoice issuing and method for uploading and system
CN108279973A (en) * 2017-01-05 2018-07-13 阿里巴巴集团控股有限公司 A kind of information statistical method, device and electronic equipment
CN109451035A (en) * 2018-12-04 2019-03-08 宁波耘瑞智能科技有限公司 A kind of method, apparatus and system of separate type collection group agent and service
CN110177127A (en) * 2019-04-15 2019-08-27 阿里巴巴集团控股有限公司 Data transmission method, device and equipment based on grpc frame
CN110891092A (en) * 2019-12-09 2020-03-17 北京布袋森林科技有限责任公司 Data compression transmission method and device
CN111460129A (en) * 2020-03-27 2020-07-28 泰康保险集团股份有限公司 Method and device for generating identification, electronic equipment and storage medium
CN116828022A (en) * 2023-08-30 2023-09-29 北京白龙马云行科技有限公司 Method, device, equipment and medium for managing connection relation with server

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110941498B (en) * 2019-10-22 2022-09-23 贝壳找房(北京)科技有限公司 Data processing method, device and storage medium
CN113497783B (en) * 2020-03-19 2024-01-16 北京沃东天骏信息技术有限公司 Method and device for processing data
CN111415263A (en) * 2020-04-07 2020-07-14 中国建设银行股份有限公司 Data matching method and device
CN111597057B (en) * 2020-04-08 2023-05-02 视联动力信息技术股份有限公司 Data processing method, device and computer readable storage medium
CN113760561A (en) * 2020-06-17 2021-12-07 北京沃东天骏信息技术有限公司 Data processing method and device
CN111767093B (en) * 2020-06-29 2023-08-08 抖音视界有限公司 Data processing method, apparatus and storage medium
CN111880743B (en) * 2020-07-29 2022-07-05 北京浪潮数据技术有限公司 Data storage method, device, equipment and storage medium
CN114090112B (en) * 2021-10-27 2023-06-16 青岛海尔科技有限公司 Method and device for loading configuration file, storage medium and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700177A (en) * 2005-06-24 2005-11-23 中国人民解放军国防科学技术大学 Method for constructing Web server based on soft flow construction and server thereof
CN102447628A (en) * 2011-12-22 2012-05-09 苏州阔地网络科技有限公司 Data packet transmission processing method and system
US8205202B1 (en) * 2008-04-03 2012-06-19 Sprint Communications Company L.P. Management of processing threads
CN102510398A (en) * 2011-10-26 2012-06-20 航天科工深圳(集团)有限公司 Request concurrent processing method and device, and server
CN102868600A (en) * 2012-09-10 2013-01-09 北京用友政务软件有限公司 Method and system for multi-threaded packet forwarding
CN103826119A (en) * 2014-02-27 2014-05-28 珠海迈越信息技术有限公司 Set top box debugging device and method
CN104133724A (en) * 2014-04-03 2014-11-05 腾讯科技(深圳)有限公司 Concurrent task scheduling method and concurrent task scheduling device
CN104519095A (en) * 2013-09-29 2015-04-15 重庆新媒农信科技有限公司 Dynamic message pushing method and system thereof, server-side, and client
CN104519129A (en) * 2014-12-16 2015-04-15 京信通信系统(中国)有限公司 Data transmission method, device and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6542920B1 (en) * 1999-09-24 2003-04-01 Sun Microsystems, Inc. Mechanism for implementing multiple thread pools in a computer system to optimize system performance
CN102916953B (en) * 2012-10-12 2016-03-09 青岛海信传媒网络技术有限公司 The method and the device that realize concurrent services is connected based on TCP
CN104572290A (en) * 2013-10-11 2015-04-29 中兴通讯股份有限公司 Method and device for controlling message processing threads
CN104219231A (en) * 2014-08-25 2014-12-17 华中科技大学 Multi-protocol communication framework and communication method based on Android system
CN105071976B (en) * 2015-09-08 2019-05-03 安一恒通(北京)科技有限公司 Data transmission method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1700177A (en) * 2005-06-24 2005-11-23 中国人民解放军国防科学技术大学 Method for constructing Web server based on soft flow construction and server thereof
US8205202B1 (en) * 2008-04-03 2012-06-19 Sprint Communications Company L.P. Management of processing threads
CN102510398A (en) * 2011-10-26 2012-06-20 航天科工深圳(集团)有限公司 Request concurrent processing method and device, and server
CN102447628A (en) * 2011-12-22 2012-05-09 苏州阔地网络科技有限公司 Data packet transmission processing method and system
CN102868600A (en) * 2012-09-10 2013-01-09 北京用友政务软件有限公司 Method and system for multi-threaded packet forwarding
CN104519095A (en) * 2013-09-29 2015-04-15 重庆新媒农信科技有限公司 Dynamic message pushing method and system thereof, server-side, and client
CN103826119A (en) * 2014-02-27 2014-05-28 珠海迈越信息技术有限公司 Set top box debugging device and method
CN104133724A (en) * 2014-04-03 2014-11-05 腾讯科技(深圳)有限公司 Concurrent task scheduling method and concurrent task scheduling device
CN104519129A (en) * 2014-12-16 2015-04-15 京信通信系统(中国)有限公司 Data transmission method, device and system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017041398A1 (en) * 2015-09-08 2017-03-16 安一恒通(北京)科技有限公司 Data transmission method and device
WO2017113193A1 (en) * 2015-12-30 2017-07-06 华为技术有限公司 Packet-processing method, gateway user plane entity, gateway control plane entity and gateway
US10848595B2 (en) 2016-03-17 2020-11-24 Alibaba Group Holding Limited Method and device for message sending and receiving based on a communication interface framework
CN107204908A (en) * 2016-03-17 2017-09-26 阿里巴巴集团控股有限公司 A kind of message sending, receiving method and device based on interface communication protocol frame
CN108230052A (en) * 2016-12-22 2018-06-29 航天信息股份有限公司 A kind of invoice issuing and method for uploading and system
CN108279973B (en) * 2017-01-05 2022-05-06 阿里巴巴集团控股有限公司 Information statistical method and device and electronic equipment
CN108279973A (en) * 2017-01-05 2018-07-13 阿里巴巴集团控股有限公司 A kind of information statistical method, device and electronic equipment
CN107273190A (en) * 2017-05-19 2017-10-20 武汉票据交易中心有限公司 A kind of batch scheduled service processing method and system
CN109451035A (en) * 2018-12-04 2019-03-08 宁波耘瑞智能科技有限公司 A kind of method, apparatus and system of separate type collection group agent and service
CN110177127A (en) * 2019-04-15 2019-08-27 阿里巴巴集团控股有限公司 Data transmission method, device and equipment based on grpc frame
CN110177127B (en) * 2019-04-15 2021-12-07 创新先进技术有限公司 Data transmission method, device and equipment based on grpc framework
CN110891092A (en) * 2019-12-09 2020-03-17 北京布袋森林科技有限责任公司 Data compression transmission method and device
CN110891092B (en) * 2019-12-09 2022-09-23 北京布袋森林科技有限责任公司 Data compression transmission method and device
CN111460129A (en) * 2020-03-27 2020-07-28 泰康保险集团股份有限公司 Method and device for generating identification, electronic equipment and storage medium
CN111460129B (en) * 2020-03-27 2023-08-22 泰康保险集团股份有限公司 Method, device, electronic equipment and storage medium for generating identification
CN116828022A (en) * 2023-08-30 2023-09-29 北京白龙马云行科技有限公司 Method, device, equipment and medium for managing connection relation with server
CN116828022B (en) * 2023-08-30 2023-11-24 北京白龙马云行科技有限公司 Method, device, equipment and medium for managing connection relation with server

Also Published As

Publication number Publication date
CN105071976B (en) 2019-05-03
WO2017041398A1 (en) 2017-03-16

Similar Documents

Publication Publication Date Title
CN105071976A (en) Data transmission method and device
KR20200047494A (en) Automatic application updates
CN105787077A (en) Data synchronizing method and device
CN109766082B (en) Method and device for application program page jump
CN105205174A (en) File processing method and device for distributed system
US10795664B2 (en) Systems and methods for differential bundle updates
CN106471481B (en) Method for sharing application program and electronic device thereof
US20210326170A1 (en) Method to set up and tear down cloud environments based on a schedule obtained from one or more hosted calendars
CN104850444A (en) Software installation package distribution method, software installation package distribution device, software installation method and software installation device
CN107957830B (en) Development support system, development support apparatus, response control method, and response control apparatus
CN112732302A (en) Configuration updating method and device of application program and electronic equipment
CN112256370A (en) Information display method and device and electronic equipment
CN107741970B (en) Method and device for laying out main page
CN109471574B (en) Method and device for configuring resources
CN109088929B (en) Method and device for sending information
CN110716699A (en) Method and apparatus for writing data
CN112559001A (en) Method and device for updating application
CN105260324A (en) Key-value pair data operation method and apparatus for distributed cache system
CN107181772B (en) Method and device for updating client state on line in real time
CN111414190B (en) Request processing method and device
KR102442111B1 (en) Apparatus for configuring virtual network and method thereof
US20160148178A1 (en) Screen display program
CN114003327A (en) Message pushing method, device, terminal and storage medium
CN117093214A (en) Page access request processing method and device, electronic equipment, medium and product
CN113867827A (en) Method and device for loading webpage

Legal Events

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

Effective date of registration: 20190822

Address after: 100085 Beijing, Haidian District, No. ten on the ground floor, No. 10 Baidu building, layer 2

Patentee after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Address before: 100091 C, block, building No. 4, Zhongguancun Software Park, No. 8, West flourishing West Road, Beijing, China 1-03

Patentee before: Pacify a Heng Tong (Beijing) Science and Technology Ltd.