CN107294911A - A kind of packet monitor method and device, RPC system, equipment - Google Patents

A kind of packet monitor method and device, RPC system, equipment Download PDF

Info

Publication number
CN107294911A
CN107294911A CN201610200296.0A CN201610200296A CN107294911A CN 107294911 A CN107294911 A CN 107294911A CN 201610200296 A CN201610200296 A CN 201610200296A CN 107294911 A CN107294911 A CN 107294911A
Authority
CN
China
Prior art keywords
packet
task
monitoring unit
rpc
delay time
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
CN201610200296.0A
Other languages
Chinese (zh)
Other versions
CN107294911B (en
Inventor
连朔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610200296.0A priority Critical patent/CN107294911B/en
Publication of CN107294911A publication Critical patent/CN107294911A/en
Application granted granted Critical
Publication of CN107294911B publication Critical patent/CN107294911B/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/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present invention discloses a kind of packet monitor method and device, RPC system, equipment, and wherein method comprises the following steps:The access message for the task that packet monitoring device reception processing device is sent, accessing message is used to access in packet monitoring device whether have packet arrival corresponding with task;If packet not corresponding with task in packet monitoring device, starter motor meeting delay time, chance delay time is to indicate that processor no longer sends the access message of task before chance delay time terminates to packet monitoring device;When there is packet corresponding with task to reach in the packet monitoring device in chance delay time, packet corresponding with task is fed back into processor, and terminate chance delay time.Using the present invention, the occupancy ratio of processor resource can be reduced in the case where the quantity for the packet that client is received is sparse, and communication delay can be reduced.

Description

A kind of packet monitor method and device, RPC system, equipment
Technical field
The present invention relates to technical field of data transmission, more particularly to it is a kind of packet monitor method and device, remote Journey invocation of procedure system, equipment.
Background technology
Remote procedure call (Remote Procedure Call, RPC) is a kind of conventional distribution network Believe agreement, it allows the subprogram for another computer of routine call for running on a computer, simultaneously will The communication details of network stash so that user extraly need not program for this reciprocation.Due to RPC Distributed program exploitation is enormously simplify, therefore is enjoyed great popularity.Generally, RPC uses client-side/server-side mould Formula, requestor is exactly a client, and service providing program is exactly a service end.Carrying out RPC When, first, client call process sends call request to service processes, then wait-for-response packet; At service end end, when a call request is reached, service end is answered by carrying out processing to call request Information and sending is answered to client reply message;Finally, client call process receives reply message, then Execution is called to proceed follow-up work.
When client performs task by RPC, processor is obtained and task by way of poll accesses network interface card Corresponding response data packet.Specifically, as shown in figure 1, client uses multithreading model, including wheel Ask thread, wait thread and mission thread, poll thread is that the continuous poll of finger processor accesses whether network interface card has The response data packet corresponding with task is received, waits thread to refer to network interface card busy waiting new data packets, is connecing After receiving the response data packet corresponding with task, and receive will response after the poll of poll thread is accessed Packet feeds back to processor, and the response data packet of feedback is distributed to corresponding mission thread to enter by processor Row tasks carrying.
However, in the case where response data packet is sparse, during client side wait-for-response packet, Client needs continuous poll to check whether to detect response data packet, can so take certain processor Resource, adds the occupancy ratio of processor resource.Under the polling operation of processor, because processor is only capable of Enough acquisition response data packets that just has an opportunity after the completion of each polling cycle, therefore when packet is in polling cycle During middle arrival, processor, which obtains response data packet, can have certain delay.
The content of the invention
The embodiment of the present invention provides a kind of packet monitor method and device, RPC system, equipment, The occupancy ratio of processor resource in the case where the quantity for the packet that client is received is sparse, can be reduced, And communication delay can be reduced.
First aspect of the embodiment of the present invention provides a kind of packet monitor method, including:Packet monitors dress The access message of the task of reception processing device transmission is put, the access message, which is used to access, indicates the packet Monitoring device determines whether have packet corresponding with the task to reach in the packet monitoring device, if Packet not corresponding with the task, starter motor meeting delay time, when in the chance delay time There is packet corresponding with the task to reach, the packet is fed back into the processor, and terminate institute State chance delay time.Wherein, the chance delay time is to indicate that the processor prolongs in the chance When the time terminate before the access message of the task is no longer sent to the packet monitoring device.
Start in the case where the data packet number of transmission to packet monitoring device is sparse, passing through to increase The scheme of chance delay time, because in chance delay time, processor without leading to again in delay time Cross access message to be polled packet monitoring device, so as to reduce processor occupancy, save place Manage device resource;If because any one moment in delay time detects packet, the packet The packet can be sent to processor by monitoring device in time, reduce communication delay.
With reference in a first aspect, in the first implementation of first aspect, if the packet monitoring device In have a packet corresponding with the task, the packet monitoring device will be described corresponding with the task Packet feeds back to the processor.Therefore, the packet monitoring device is receiving processor transmission After the access message of task, if there is packet corresponding with the task, directly it can be fed back to processor.
With reference to the first implementation of first aspect or first aspect, in second of realization side of first aspect In formula, after data packet processing starter motor meeting delay time, when in the chance delay time Packet not corresponding with the task is reached in the interior packet monitoring device, and the packet is monitored Device feeds back the return message that packet not corresponding with the task is reached to the processor.Due to In chance delay time, processor need not be in delay time again by accessing message to packet monitoring device It is polled, so as to reduce processor occupancy, saves processor resource.
With reference to the first implementation or second of implementation of first aspect of first aspect, first aspect, In the third implementation of first aspect, the packet is remote procedure call packet.Can With understanding, the RPC packets are the packets based on RPC.
It is described in the 4th kind of implementation of first aspect with reference to the third implementation of first aspect Before the access message for the task that packet monitoring device reception processing device is sent, the packet monitoring device The RPC packet call requests for the task that reception processing device is sent, the RPC packets received are called please Ask transmission to the target data bag monitoring device, the RPC packets call request is used to indicate the mesh The RPC packets that packet monitoring device returns to the response RPC packets call request are marked, wherein, should RPC packets call request carries the target data bag monitoring device for receiving the RPC packets call request Corresponding target identification.Target data bag monitoring device is waited to return to response in the packet monitoring device During RPC packets, can by performing in first aspect the step in included implementation above mode, To reduce communication delay.
Second aspect of the embodiment of the present invention provides another packet monitor method, applied to client, institute Stating client includes monitoring unit and processing unit, and the processing unit sends task to the monitoring unit Message is accessed, the access message is used for accessing in the monitoring unit whether have number corresponding with the task Reached according to bag, the monitoring unit, which is received, accesses message, if in the monitoring unit not with the task pair The packet answered, the monitoring unit starter motor meeting delay time is monitored when described in chance delay time There is packet corresponding with the task to reach in unit, the monitoring unit will be described corresponding with the task Packet feed back to the processing unit, and terminate the chance delay time, the processing unit is received The packet of the monitoring unit feedback, and the corresponding task, institute are performed according to the packet Chance delay time is stated to indicate the processing unit before the chance delay time terminates no longer to described Monitoring unit sends the access message of the task.
For that in the case where the data packet number of transmission to monitoring unit is sparse, can be prolonged by increasing starter motor When the time scheme, due in chance delay time, processing unit is visited without pass through again in delay time Ask that message is polled to monitoring unit, so as to reduce processing unit occupancy, save processing unit money Source;If because any one moment in delay time detects packet, the monitoring unit can The packet is sent to processing unit in time, communication delay is reduced.
With reference to second aspect, in the first implementation of second aspect, if having in the monitoring unit with The corresponding packet of the task, the monitoring unit feeds back to the packet corresponding with the task The processing unit, the processing unit receives the packet of the monitoring unit feedback, and according to institute State packet and perform the corresponding task.Therefore, the monitoring unit is receiving processing unit transmission , can be directly anti-to processing unit if there is packet corresponding with the task after the access message of task Feedback.
With reference to the first implementation of second aspect or second aspect, in second of realization side of second aspect In formula, when packet not corresponding with the task in the monitoring unit in the chance delay time Reach, the monitoring unit feeds back what packet not corresponding with the task was reached to the processing unit Return to message;The processing unit receives the return message of the monitoring unit feedback.Due in chance In delay time, processing unit need not be polled by accessing message to monitoring unit again in delay time, So as to reduce processing unit occupancy, processing unit resource is saved.
With reference to the first implementation or second of implementation of second aspect of second aspect, second aspect, In the third implementation of second aspect, the packet is remote procedure call packet.Can With understanding, the RPC packets are the packets based on RPC.
It is described in the 4th kind of implementation of second aspect with reference to the third implementation of second aspect Processing unit is sent to the monitoring unit before the access message of task, and task is sent to the monitoring unit RPC packet call requests, the RPC packets call request, which is carried, receives the RPC packets The corresponding target identification in destination service end of call request;The monitoring unit receives the processing unit and sent RPC packet call requests;The monitoring unit sends the RPC packets call request to described Destination service end, the RPC packets call request is used to indicate that the destination service end is returned described in response The RPC packets of RPC packet call requests.Destination service end is waited to return to response in the monitoring unit RPC packets during, the step performed in second aspect in included implementation above mode can be passed through Suddenly, to reduce communication delay.
Optionally, the client can complete performed step by starting a thread.Compared to existing There is the scheme that multithreading is used in technology, reduce number of threads.
The third aspect of the embodiment of the present invention provides a kind of RPC system, the remote procedure call System includes client and service end, and the client includes the first monitoring unit and first processing units, institute Stating service end includes the second monitoring unit and second processing unit, and first monitoring unit is used to obtain from institute The remote procedure call packet of the second monitoring unit transmission is stated, second monitoring unit is used to receive The RPC packet call requests sent from first monitoring unit, wherein,
In service end:Second processing unit please to whether the transmission of the second monitoring unit has RPC packets to call The access message of arrival is sought, if not having RPC packet call requests in the second monitoring unit, second monitors single Member sends the return message for not having RPC packets call request to reach to second processing unit.
In the client:First processing units forward task by the first monitoring unit to the second monitoring unit RPC packet call requests, first processing units send the access message of task to the first monitoring unit, visit Ask message be used for access the first monitoring unit in whether there are corresponding with task RPC packets to reach, first supervises Listen unit to receive and access message, if RPC packets not corresponding with task, first in the first monitoring unit Monitoring unit starter motor meeting delay time, chance delay time is to indicate that first processing units are delayed in chance Time no longer sends the access message of task before terminating to the first monitoring unit, when in chance delay time the There are RPC packets corresponding with task to reach in one monitoring unit, the first monitoring unit will be corresponding with task RPC packets feed back to first processing units, and terminate chance delay time, and first processing units receive the The RPC packets of one monitoring unit feedback, and corresponding task is performed according to RPC packets.
For in the case where the RPC data packet numbers of transmission to the first monitoring unit are sparse, being opened by increase The scheme of motivation meeting delay time, because in chance delay time, first processing units are without in delay It is interior that the first monitoring unit is polled by accessing message again, so as to reduce first processing units occupancy Rate, saves first processing units resource, if because any one moment in delay time detects RPC packets can be sent to first processing units by RPC packets, the first monitoring unit in time, reduction Communication delay.
Optionally, client can complete performed Overall Steps or part steps by single thread, so Even the client for uniprocessor can also preferably utilize cpu resource;And the service end can lead to Cross multithreading and complete performed Overall Steps or part steps, so meet service end high concurrent and low prolong Slow demand, therefore multithreading model and client can be used to use single-threaded model not by service end Peer realizes remote procedure call.
With reference to the third aspect, in the first implementation of the third aspect, in service end:If the second prison Listening in unit has RPC packet call requests, and the second monitoring unit sends RPC data to second processing unit Bag call request, second processing unit receives the RPC packet call requests sent by the second monitoring unit, And corresponding RPC packets are generated according to RPC packets call request, by the second monitoring unit to first Monitoring unit forwards RPC packets.
In the client:If there is RPC packets corresponding with task in the first monitoring unit, first monitors single RPC packets are fed back to first processing units by member, so that first processing units are performed according to RPC packets Corresponding task.Therefore, visit of first monitoring unit in the receiving first processing units transmission of the task Ask after message, if there is packet corresponding with the task, directly can be fed back to first processing units.
With reference to the first implementation of the third aspect or the third aspect, in second of realization side of the third aspect In formula, when RPC packets arrival not corresponding with task in the first monitoring unit in chance delay time, The return that first monitoring unit feeds back RPC packets arrival not corresponding with task to first processing units disappears Breath.
Fourth aspect of the embodiment of the present invention provides a kind of packet monitoring device, including:Receiving module, is used The access message of being sent in reception processing device for task, the access message, which is used to access, indicates the packet Monitoring device determines whether have packet corresponding with the task to reach in the packet monitoring device;Open Dynamic model block, if for packet not corresponding with the task, starter motor in the packet monitoring device Meeting delay time, the chance delay time is to indicate that the processor terminates in the chance delay time The preceding access message that the task is no longer sent to the packet monitoring device;Feedback module, for working as There is packet corresponding with the task to reach in the chance delay time in the packet monitoring device, The packet corresponding with the task is fed back into the processor, and terminates the chance delay time.
Start in the case where the data packet number of transmission to packet monitoring device is sparse, passing through to increase The scheme of chance delay time, because in chance delay time, processor without leading to again in delay time Cross access message to be polled packet monitoring device, so as to reduce processor occupancy, save place Manage device resource;If because any one moment in delay time detects packet, the packet The packet can be sent to processor by monitoring device in time, reduce communication delay.
With reference to fourth aspect, in the first implementation of fourth aspect, the feedback module is additionally operable to , will be described corresponding with the task if there is packet corresponding with the task in the packet monitoring device Packet feed back to the processor.Therefore, the packet monitoring device is receiving processor transmission Task access message after, can be directly anti-to processor if there is packet corresponding with the task Feedback.
With reference to the first implementation of fourth aspect or fourth aspect, in second of realization side of fourth aspect In formula, the feedback module is additionally operable to when in the packet monitoring device in the chance delay time Packet not corresponding with the task is reached, and feeds back not corresponding with the task to the processor The return message that packet is reached.
With reference to the first implementation or second of implementation of fourth aspect of fourth aspect, fourth aspect, In the third implementation of fourth aspect, the packet is remote procedure call packet.Can With understanding, the RPC packets are the packets based on RPC.
It is described in the 4th kind of implementation of fourth aspect with reference to the third implementation of fourth aspect Packet monitoring device also includes sending module:The receiving module, is additionally operable to appointing for reception processing device transmission The RPC packet call requests of business, the RPC packets call request, which is carried, receives the RPC data The corresponding target identification of target data bag monitoring device of bag call request;Sending module, for by the RPC Packet call request is sent to the target data bag monitoring device, and the RPC packets call request is used In the RPC data for indicating the target data bag monitoring device return response RPC packets call request Bag.
The aspect of the embodiment of the present invention the 5th provides a kind of remote procedure call equipment, the remote procedure call Equipment includes monitoring unit and processing unit, wherein, the processing unit is used to send to the monitoring unit Whether access message that with the task corresponding packet reach is had;The monitoring unit is used to receive described Message is accessed, if packet not corresponding with the task in the monitoring unit, the monitoring unit is used In starter motor can delay time, when having and the task in the monitoring unit in the chance delay time Corresponding packet is reached, and the monitoring unit is used to feed back to the packet corresponding with the task The processing unit, and terminate the chance delay time;The processing unit is used to receive the monitoring list The packet of member feedback, and the corresponding task is performed according to the packet.The chance delay Time is to indicate that the processing unit is no longer sent out before the chance delay time terminates to the monitoring unit Send the access message of the task.
For that in the case where the data packet number of transmission to monitoring unit is sparse, can be prolonged by increasing starter motor When the time scheme, due in chance delay time, processing unit is visited without pass through again in delay time Ask that message is polled to monitoring unit, so as to reduce processing unit occupancy, save processing unit money Source;If because any one moment in delay time detects packet, the monitoring unit can The packet is sent to processing unit in time, communication delay is reduced.
With reference to the 5th aspect, the 5th aspect the first implementation in, if having in the monitoring unit with The corresponding packet of the task, the monitoring unit be used for will the packet corresponding with the task it is anti- Feed the processing unit;The processing unit is used for the packet for receiving the monitoring unit feedback, And the corresponding task is performed according to the packet.Therefore, the monitoring unit is receiving processing list , can be directly to place if there is packet corresponding with the task after the access message for the task that member is sent Manage unit feedback.
With reference to the 5th aspect or the first implementation of the 5th aspect, in second of realization side of the 5th aspect In formula, when packet not corresponding with the task in the monitoring unit in the chance delay time Reach, the monitoring unit is used to arrive to processing unit feedback packet not corresponding with the task The return message reached;The processing unit is used for the return message for receiving the monitoring unit feedback.By In in chance delay time, processing unit need not be in delay time again by accessing message to monitoring unit It is polled, so as to reduce processing unit occupancy, saves processing unit resource.
With reference to second of implementation of the 5th aspect, the first implementation of the 5th aspect or the 5th aspect, In the third implementation of the 5th aspect, the packet is remote procedure call packet.
It is described in the 4th kind of implementation of the 5th aspect with reference to the third implementation of the 5th aspect Processing unit is used for the RPC packet call requests that task is sent to the monitoring unit, the RPC data Bag call request carries the corresponding target identification of destination service equipment for receiving the RPC packets call request; The monitoring unit is used to receive the RPC packet call requests that the processing unit is sent;It is described to monitor single Member is used to send the RPC packets call request to the destination service equipment, the RPC packets Call request is used for the RPC for indicating that the destination service equipment returns to the response RPC packets call request Packet.
The aspect of the embodiment of the present invention the 6th provides a kind of remote procedure call equipment, the remote procedure call Equipment has the function of realizing the above method monitoring unit and processing unit in practice.The function can pass through Hardware is realized, corresponding software can also be performed by hardware and is realized.The hardware or software include one or Multiple modules corresponding with above-mentioned functions.
In a possible design, the structure of remote procedure call equipment includes processor, packet prison Device for tone frequencies, memory, the memory are used to store the application program for supporting management equipment to perform the above method Code, the packet monitoring device is configurable for performing store in the memory and monitoring unit Related application program, the processor is configurable for performing stored in the memory single with processing First related application program.The remote procedure call equipment can also include communication interface, for long-range mistake Journey calls equipment and other equipment or communication.
The aspect of the embodiment of the present invention the 7th provides a kind of computer-readable storage medium, above-mentioned long-range for saving as Monitoring unit and the computer software instructions used in processing unit in invocation of procedure equipment, it, which is included, is used to perform Above-mentioned aspect is monitoring unit in remote procedure call equipment and the program designed by processing unit.
The aspects of the invention or other aspects can more straightforwards in the following description.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed for embodiment description The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only the present invention's Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of multithreading model provided in an embodiment of the present invention;
Fig. 2 is a kind of possible grid schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of packet monitor method provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another packet monitor method provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of another packet monitor method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of packet monitoring device provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another packet monitoring device provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of remote procedure call equipment provided in an embodiment of the present invention
Fig. 9 is the structural representation of another remote procedure call equipment provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not paying creation Property work under the premise of the every other embodiment that is obtained, belong to the scope of protection of the invention.
The network architecture and business scenario of description of the embodiment of the present invention are in order to which more clearly explanation is of the invention The technical scheme of embodiment, does not constitute the restriction for technical scheme provided in an embodiment of the present invention, ability Domain those of ordinary skill understands that, with the differentiation and the appearance of new business scene of the network architecture, the present invention is implemented The technical scheme that example is provided is equally applicable for similar technical problem.It should be noted that in the present invention The term used in embodiment is the purpose only merely for description specific embodiment, and is not intended to be limiting the present invention. " one kind ", " described " of singulative used in the embodiment of the present invention and appended claims It is also intended to "the" including most forms, unless context clearly shows that other implications.It is also understood that Term "and/or" used herein refer to and comprising it is one or more it is associated list any of project or It is possible to combination.In addition, the term " in description and claims of this specification and above-mentioned accompanying drawing One ", " second ", " the 3rd " and " the 4th " etc. is to be used to distinguish different objects, rather than for retouching State particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that cover Lid is non-exclusive to be included.For example contain the process of series of steps or unit, method, system, product or The step of equipment is not limited to list or unit, but alternatively also include the step of do not list or list Member, or alternatively also include for the intrinsic other steps of these processes, method, product or equipment or unit.
Fig. 2 is referred to, is a kind of possible grid schematic diagram of the embodiment of the present invention.As shown in Fig. 2 The grid schematic diagram includes:Client (Client) and service end (Server), system architecture letter Claim that one or more client can be included in C/S structures, the network architecture, and one or more Service end.Client can send request to service end, service end handled after the requests have been received with Customer in response end.For example, the C/S structures can be applied in distributed data base system, wherein, Service end is database server, and distributed data base system can include multiple database servers, one Or multiple client can access the database server in the distributed data base system by communication interface, Wherein, can be by RPC communication, during specific progress RPC between client and database server, client Calling process sends call request to service processes, then wait-for-response packet;In database server, When a call request is reached, database server obtains answer message by carrying out processing to call request Concurrently it is sent to client reply message;Finally, client call process receives reply message, then calls and holds Row proceeds follow-up work.
Fig. 3 is referred to, is that the embodiments of the invention provide a kind of schematic flow sheet of packet monitor method.Such as Shown in Fig. 3, the methods described of the embodiment of the present invention may comprise steps of S301- steps S305.It is optional , the packet monitor method shown in Fig. 3 can apply in client.
S301, the access message for the task that packet monitoring device reception processing device is sent.
Specifically, the access message for the task that the packet monitoring device reception processing device is sent, wherein, The access message, which is used to access, indicates that the packet monitoring device determines to be in the packet monitoring device It is no to there is packet corresponding with the task to reach.Optionally, the access message of the task and with described It is engaged in corresponding packet, can be made a distinction by increasing task identification.
S302, if packet not corresponding with the task, starter motor meeting in the packet monitoring device Delay time.
Specifically, after the access message of processor transmission task is received, if the packet monitors dress Packet not corresponding with the task in putting, starter motor can delay time.The chance delay time is used To indicate that the processor is no longer sent before the chance delay time terminates to the packet monitoring device The access message of the task.The chance delay time is default.Optionally, during the chance delay Between the propagation delay that the packet is sent to processor can also be set according to the packet monitoring device, For example, can be by the chance if being T1 by the propagation delay that the packet is sent to processor Delay time T2 is set as propagation delay T1 integral multiple (such as, 50 times or 100 times), and the present invention is real Setting of the example to delay time is applied not limit.
S303, if having packet corresponding with the task, the packet in the packet monitoring device The packet corresponding with the task is fed back to the processor by monitoring device.
If specifically, having packet corresponding with the task, the data in the packet monitoring device The packet corresponding with the task is fed back to the processor by bag monitoring device, so that the processing Device performs the corresponding task according to the packet.
S304, when having corresponding with the task in the packet monitoring device in the chance delay time Packet reach, the packet corresponding with the task feeds back to institute by the packet monitoring device Processor is stated, so that the processor performs the corresponding task according to the packet, and terminates described Chance delay time.
Specifically, after packet monitoring device starter motor meeting delay time, prolonging when in the chance When the time in there is in the packet monitoring device packet corresponding with the task to reach, the packet The packet corresponding with the task is fed back to the processor by monitoring device, so that the processor The corresponding task is performed according to the packet, and terminates the chance delay time.Wherein, it is described Packet monitoring device is to detect packet at any one moment in the chance is delayed, just by institute State packet and feed back to processor, and terminate the chance delay time.
As an example it is assumed that the chance delay time is 1s, after starter motor meeting delay time, if 0.3s has packet corresponding with the task to reach the packet monitoring device, the packet monitoring device Packet corresponding with the task is fed back into the processor in time, and terminates the chance delay time, After the packet monitoring device terminates the chance delay time, the packet monitoring device is represented Can again reception processing device send the access message on other tasks.
S305, when in the packet monitoring device in the chance delay time not with the task pair The packet answered is reached, and the packet monitoring device feeds back not corresponding with the task to the processor Packet reach return message.
Specifically, after packet monitoring device starter motor meeting delay time, prolonging when in the chance When the time in the packet monitoring device packet not corresponding with the task reach, the data Bag monitoring device feeds back the return message that packet not corresponding with the task is reached to the processor.
It should be noted that a fairly large number of situation of the packet for reaching packet monitoring device, by More in the quantity of packet, the packet received can directly be fed back to place by the packet monitoring device Manage device, it is possible to will not starter motor meeting delay time, the technical side accessed with the continuous poll of existing processor Case is compared, and the communication delay of the packet of two schemes is the same;And for reaching packet monitoring device Packet quantity it is sparse in the case of, once it is not corresponding with task in the packet monitoring device Packet, will necessarily perform starter motor can delay time process, and can delay time in starter motor During, once detecting packet, packet is just fed back to processor simultaneously by the packet monitoring device Terminate chance delay time, and existing technical scheme only can just have an opportunity after the completion of each polling cycle Response data packet is obtained, is because whether processor poll has in the communication process of packet and prolong there is also communication Late, i.e., the round trip message inquired and fed back to processor including processor postpones, if packet is to processing Device receives packet during feeding back, prior art only wait until processor next time poll when, Packet can be fed back to processor, and the technical scheme of the embodiment of the present invention, when can be delayed by starter motor Between, if the packet reached in chance delay time can just feed back to processor in time, and in the absence of existing In some technical schemes increased single treatment device polling procedure, and then decrease communication delay, because This, is in the case where the quantity for the packet that client is received is sparse, the skill in the embodiment of the present invention Art scheme can reduce the communication delay in packet feedback procedure.In addition, when packet is sparse Under, after packet monitoring device starter motor meeting delay time, processor terminates in the chance delay time The preceding access message that the task is no longer sent to the packet monitoring device, reduces prior art In, due to the resource shared by the continuous poll of processor, and then the embodiment of the present invention can reduce processor The occupancy ratio of resource.
Fig. 4 is referred to, is that the embodiments of the invention provide the schematic flow sheet of another packet monitor method. As shown in figure 4, the methods described of the embodiment of the present invention may comprise steps of S401- steps S406.Its In, the packet monitor method shown in Fig. 4 is applied in client, and the client 1 includes monitoring unit 12 and processing unit 11.
S401, the processing unit 11 sends the access message of task, the visit to the monitoring unit 12 Ask message is used to access whether have packet arrival corresponding with the task in the monitoring unit 12.
Specifically, the processing unit 11 sends the access message of task to the monitoring unit 12, it is described Accessing message is used to access whether have packet arrival corresponding with the task in the monitoring unit 12.
Correspondingly, the monitoring unit 12 receives the access message.
S402, if there is packet corresponding with the task in the monitoring unit 12, the monitoring unit 12 The packet corresponding with the task is fed back into the processing unit 11.
If specifically, having packet corresponding with the task, the monitoring unit in the monitoring unit 12 The packet corresponding with the task is fed back to the processing unit 11 by 12, so that the processing unit 11 perform the corresponding task according to the packet.
Correspondingly, the processing unit 11 receives the packet that the monitoring unit 12 feeds back, and holds Row step S406.
S403, if packet not corresponding with the task, the monitoring unit in the monitoring unit 12 12 starter motors can delay time.
Specifically, after the access message of the transmission task of processing unit 11 is received, if the monitoring unit Packet not corresponding with the task in 12, the starter motor of monitoring unit 12 can delay time.It is described Chance delay time is to indicate the processing unit 11 before the chance delay time terminates no longer to described Monitoring unit 12 sends the access message of the task.The chance delay time is default.Optionally, The chance delay time can send the packet to processing unit 11 according to the monitoring unit 12 Propagation delay is also set, for example, if being by the propagation delay that the packet is sent to processing unit 11 The chance delay time T2, then can be set as propagation delay T1 (such as, 50 times of integral multiple by T1 Or 100 times), setting of the embodiment of the present invention to delay time is not limited.
S404, when not corresponding with the task in the monitoring unit 12 in the chance delay time Packet is reached, and the monitoring unit 12 feeds back not corresponding with the task to the processing unit 11 The return message that packet is reached.
Specifically, after the starter motor of monitoring unit 12 meeting delay time, when being delayed in the chance Packet not corresponding with the task is reached in the interior monitoring unit 12, the monitoring unit 12 The return message that packet not corresponding with the task is reached is fed back to the processing unit 11.
Correspondingly, the processing unit 11 receives the return message that the monitoring unit 12 feeds back.Can Choosing, the processing unit 11 can continue to the monitoring unit 12 after return message is received Whether transmission is related to the access message that the packet of any task reaches.
S405, when there is number corresponding with the task in the monitoring unit 12 in the chance delay time Reached according to bag, it is single that the packet corresponding with the task is fed back to the processing by the monitoring unit 12 Member 11, and terminate the chance delay time.
Specifically, after the starter motor of monitoring unit 12 meeting delay time, when being delayed in the chance There is packet corresponding with the task to reach in the interior monitoring unit 12, the monitoring unit 12 will The packet corresponding with the task feeds back to the processing unit 11, so that the processing unit 11 The corresponding task is performed according to the packet, and terminates the chance delay time.Wherein, the prison It is to detect packet at any one moment in the chance is delayed to listen unit 12, just by the data Bag feeds back to processing unit 11, and terminates the chance delay time.
As an example it is assumed that the chance delay time is 1s, after starter motor meeting delay time, if 0.3s has packet corresponding with the task to reach the monitoring unit 12, and the monitoring unit 12 in time will Packet corresponding with the task feeds back to the processing unit 11, and terminates the chance delay time, After the monitoring unit 12 terminates the chance delay time, represent that the monitoring unit 12 can be again The access message on other tasks that reception processing unit 11 is sent.
Correspondingly, the processing unit 11 receives the packet that the monitoring unit 12 feeds back, and holds Row step S406.
S406, the processing unit 11 performs the corresponding task according to the packet.
Specifically, the processing unit 11 performs corresponding task according to the packet.
It should be noted that a fairly large number of situation of the packet for reaching monitoring unit 12, due to number More according to the quantity of bag, the packet received can directly be fed back to processing unit 11 by the monitoring unit 12, Being possible without starter motor can delay time, the technical scheme accessed with the continuous poll of existing processing unit 11 Compare, the communication delay of the packet of two schemes is the same;And for reaching the data of monitoring unit 12 In the case that the quantity of bag is sparse, once packet not corresponding with task in the monitoring unit 12, The process of starter motor meeting delay time will necessarily be performed, and during starter motor meeting delay time, one Denier detects packet, and packet is just fed back to processing unit 11 and terminates chance by the monitoring unit 12 Delay time, and existing technical scheme only can just have an opportunity to be responded after the completion of each polling cycle Packet, be because whether the poll of processing unit 11 has in the communication process of packet there is also communication delay, Include the round trip message delay that processing unit 11 is inquired and fed back to processing unit 11, if packet exists Packet is received during being fed back to processing unit 11, prior art only waits until that processing unit 11 is next When secondary poll, packet could be fed back to processing unit 11, and the technical scheme of the embodiment of the present invention, By starter motor meeting delay time, as long as the packet reached in chance delay time can just feed back in time Processing unit 11, and in the absence of in existing technical scheme increased single treatment unit 11 polling procedure, And then communication delay is decreased, and therefore, the sparse feelings of the quantity of the packet for being received in client Under condition, the technical scheme in the embodiment of the present invention can reduce the communication delay in packet feedback procedure.Separately Outside, for packet it is sparse in the case of, can be after delay time in the starter motor of monitoring unit 12, processing unit 11 no longer send the access message of the task before the chance delay time terminates to the monitoring unit 12, Reduce in prior art, due to the resource shared by the continuous poll of processing unit 11, and then the present invention Embodiment can reduce the occupancy ratio of resource.
Fig. 5 is referred to, is that the embodiments of the invention provide the schematic flow sheet of another packet monitor method. As shown in figure 5, the methods described of the embodiment of the present invention may comprise steps of S501- steps S514.Its In, the packet monitor method shown in Fig. 5 is applied to RPC system, the remote procedure call System includes client 1 and service end 2, it is characterised in that the client 1 includes the first monitoring unit 12 and first processing units 11, the service end 2 includes the second monitoring unit 21 and second processing unit 22, First monitoring unit 12 is used to obtain the remote procedure call sent from second monitoring unit 21 RPC packets, second monitoring unit 21 is used to receive the RPC sent from first monitoring unit 12 Packet call request.
S501, the second processing unit 22 sends whether have RPC data to second monitoring unit 21 The access message that bag call request is reached.
Specifically, the second processing unit 22 sends whether have RPC numbers to second monitoring unit 21 The access message reached according to bag call request, optionally, the second processing unit 22 can be accessed by poll Mode sent to second monitoring unit 21 whether have RPC packets call request reach access message, For example, starting poll thread performs step S501.
Correspondingly, whether what second monitoring unit 21 received that the processor sends has RPC packets tune The access message reached with request.
S502, if there is no RPC packet call requests in second monitoring unit 21, second prison Listen unit 21 to send the return for not thering is RPC packets call request to reach to the second processing unit 22 to disappear Breath.
Specifically, second monitoring unit 21 receive that the processor sends whether have RPC packets After the access message that call request is reached, if there is no RPC packets to call in second monitoring unit 21 Request, second monitoring unit 21 is sent to the second processing unit 22 does not have RPC packets to call Ask the return message reached.
Correspondingly, the second processing unit 22 receives the return for not having RPC packets call request to reach and disappeared Breath.Optionally, the second processing unit 22 can continue executing with step S501 according to predetermined period.
S503, the first processing units 11 send the RPC data of task to first monitoring unit 12 Bag call request.
Specifically, the first processing units 11 send the RPC numbers of task to first monitoring unit 12 According to bag call request.Optionally, the RPC packets call request is carried sends to the second monitoring unit 21 Instruction message, for example, can be to multiple services for first monitoring unit 12 of the client 1 , can be by carrying mesh in RPC packet call requests in the case that end sends RPC packet call requests Mark service end mark so that first monitoring unit 12 can be known according to RPC packet call requests be to Target monitoring unit in destination service end sends RPC packet call requests, in embodiments of the present invention, The target monitoring unit is the second monitoring unit 21.
Correspondingly, first monitoring unit 12 receives the RPC packet call requests of task.
S504, first monitoring unit 12 sends the RPC data of task to second monitoring unit 21 Bag call request.
Specifically, first monitoring unit 12 by the RPC packets call request of the task of reception to described Second monitoring unit 21 is sent.Optionally, needed for the client 1 and the service end 2 possess RPC Communicating requirement, for example, remote communication interface, data transmission channel etc..
Correspondingly, second monitoring unit 21 receives the RPC packet call requests of the task.Institute State after the RPC packet call requests that the second monitoring unit 21 receives task, perform step S511 extremely S513。
After first monitoring unit 12 sends RPC packet call requests to the second monitoring unit 21, The RPC data corresponding with the RPC packets call request for waiting second monitoring unit 21 to feed back Bag, in waiting process, Overall Steps between the client executing step S505- steps S510 or Part steps, with specific reference to whether receiving the RPC packets that second monitoring unit 21 feeds back and determine to flow Journey is moved towards.Adjusted in addition, sending RPC packets to the second monitoring unit 21 in first monitoring unit 12 After request, the Overall Steps or part that step S511- steps S514 is can perform in the service end 2 are walked Suddenly.Overall Steps between step S505- steps S510 correspond to client 1, step S511- steps S514 Overall Steps correspond to server 2, it is to be understood that the client 1 and the service end 2 are distinguished The step of execution, has no point of sequencing.
S505, the first processing units 11 send the access message of task to first monitoring unit 12.
Specifically, the access that the first processing units 11 send task to first monitoring unit 12 disappears Breath, the access message is used for accessing whether have number corresponding with the task in first monitoring unit 12 Reached according to bag.
Correspondingly, first monitoring unit 12 receives the access message.
S506, if there is packet corresponding with the task in first monitoring unit 12, first prison Listen unit 12 that the packet corresponding with the task is fed back into the first processing units 11.
Specifically, after first monitoring unit 12 receives the access message, if first prison Listening has packet corresponding with the task in unit 12, first monitoring unit 12 will it is described with it is described The corresponding packet of task feeds back to the first processing units 11, so that the basis of the first processing units 11 The packet performs the corresponding task.
Correspondingly, the first processing units 11 receive the data that first monitoring unit 12 feeds back Bag, and perform step S510.
S507, if packet not corresponding with the task, described first in first monitoring unit 12 The starter motor of monitoring unit 12 can delay time.
Specifically, after the access message of the transmission task of first processing units 11 is received, if described first Packet not corresponding with the task in monitoring unit 12, the starter motor meeting of the first monitoring unit 12 Delay time.The chance delay time is to indicate the first processing units 11 when the chance is delayed Between terminate before the access message of the task is no longer sent to first monitoring unit 12.The chance delay Time is default.Optionally, the chance delay time can be according to first monitoring unit 12 by described in Packet sends to the propagation delay of first processing units 11 and also set, for example, if by the packet It is T1 to send to the propagation delay of first processing units 11, then can set the chance delay time T2 For propagation delay T1 integral multiple (such as, 50 times or 100 times), the embodiment of the present invention is to delay time Setting is not limited.
S508, when in first monitoring unit 12 in the chance delay time not with the task pair The packet answered is reached, first monitoring unit 12 to the first processing units 11 feed back not with institute State the return message that the corresponding packet of task is reached.
Specifically, after the starter motor of the first monitoring unit 12 meeting delay time, prolonging when in the chance When the time in first monitoring unit 12 packet not corresponding with the task reach, described first Monitoring unit 12 feeds back what packet not corresponding with the task was reached to the first processing units 11 Return to message.
Correspondingly, the first processing units 11 receive the return that first monitoring unit 12 feeds back Message.Optionally, the first processing units 11 can continue to described after return message is received Whether the first monitoring unit 12 is sent is related to the access message that the packet of any task reaches.
S509, when having corresponding with the task in first monitoring unit 12 in the chance delay time Packet reach, the packet corresponding with the task feeds back to institute by first monitoring unit 12 First processing units 11 are stated, and terminate the chance delay time.
Specifically, after the starter motor of the first monitoring unit 12 meeting delay time, prolonging when in the chance When the time in there is in first monitoring unit 12 packet corresponding with the task to reach, first prison Listen unit 12 that the packet corresponding with the task is fed back into the first processing units 11, so that institute State first processing units 11 and the corresponding task is performed according to the packet, and terminate the chance delay Time.Wherein, first monitoring unit 12 is any one moment detection in the chance is delayed To packet, the packet is just fed back into first processing units 11, and terminate the chance delay time.
As an example it is assumed that the chance delay time is 1s, after starter motor meeting delay time, if 0.3s has packet corresponding with the task to reach first monitoring unit 12, first monitoring unit Packet corresponding with the task is fed back to the first processing units 11 by 12 in time, and terminates the machine Can delay time, after first monitoring unit 12 terminates the chance delay time, represent described the One monitoring unit 12 can receive the access message on other tasks of the transmission of first processing units 11 again.
Correspondingly, the first processing units 11 receive the data that first monitoring unit 12 feeds back Bag, and perform step S510.
S510, the first processing units 11 perform the corresponding task according to the packet.
Specifically, the first processing units 11 perform corresponding task according to the packet.
S511, second monitoring unit 21 sends RPC packets to the second processing unit 22 and called Request.
Specifically, after second monitoring unit 21 receives the RPC packet call requests of task, Second monitoring unit 21 sends RPC packet call requests to the second processing unit 22, so that The second processing unit 22 is made according to request correspondingly to be handled, and determines to call with the RPC packets The corresponding RPC packets of request.
Correspondingly, the second processing unit 22 receives the RPC data that second monitoring unit 21 is sent Bag call request.
S512, the second processing unit 22 determines corresponding RPC according to the RPC packets call request Packet.
Specifically, the second processing unit 22 is determined accordingly according to the RPC packets call request RPC packets.Optionally, the second processing unit 22 is according in the RPC packets call request The data asked are packaged as RPC packets.
S513, the second processing unit 22 sends identified RPC numbers to second monitoring unit 21 According to bag.
Specifically, the second processing unit 22 sends identified RPC to second monitoring unit 21 Packet.
Correspondingly, second monitoring unit 21 receives the RPC data that the second processing unit 22 is sent Bag.
S514, second monitoring unit 21 sends the RPC packets to the packet monitoring device.
Specifically, second monitoring unit 21 sends the RPC packets to the packet monitoring device. Wherein, first monitoring unit 12 and second monitoring unit 21 are by remote procedure call protocol RPC communication.
Correspondingly, first monitoring unit 12 receives the RPC data that second monitoring unit 21 is sent Bag, and after RPC packets are received, perform step S506 or step S509.
In feasible scheme, client 1 can be walked by the performed Overall Steps of single thread completion or part Suddenly, even the client 1 so for uniprocessor can also preferably utilize cpu resource;And it is described Service end 2 can so meet service end by the performed Overall Steps of multithreading completion or part steps The demand of high concurrent and low latency, therefore multithreading model and client can be used by service end using single The not Peer of threading model realizes remote procedure call.
It should be noted that a fairly large number of situation of the packet for reaching the first monitoring unit 12, by More in the quantity of packet, first monitoring unit 12 can directly feed back to the packet received the One processing unit 11, it is possible to will not starter motor can delay time, it is continuous with existing first processing units 11 The technical scheme that poll is accessed is compared, and the communication delay of the packet of two schemes is the same;And for Up to the packet of the first monitoring unit 12 quantity it is sparse in the case of, once first monitoring unit 12 In not corresponding with task packet, will necessarily perform starter motor can delay time process, and During starter motor meeting delay time, once detecting packet, first monitoring unit 12 is just by number First processing units 11 are fed back to according to bag and terminate chance delay time, and existing technical scheme only can be Just have an opportunity acquisition response data packet after the completion of each polling cycle, is because the poll of first processing units 11 is There is also communication delay in the no communication process for having a packet, i.e., inquired including first processing units 11 and to The round trip message delay of one processing unit 11 feedback, if packet is feeding back to first processing units 11 During receive packet, prior art only wait until first processing units 11 next time poll when, Packet can be fed back to first processing units 11, and the technical scheme of the embodiment of the present invention, pass through starter motor Meeting delay time, as long as the packet reached in chance delay time can just feed back to the first processing list in time Member 11, and in the absence of in existing technical scheme an increased first processing units 11 polling procedure, And then communication delay is decreased, and therefore, the sparse feelings of the quantity of the packet for being received in client Under condition, the technical scheme in the embodiment of the present invention can reduce the communication delay in packet feedback procedure.Separately Outside, for packet it is sparse in the case of, the starter motor of the first monitoring unit 12 can after delay time, first Processing unit 11 no longer sends described before the chance delay time terminates to first monitoring unit 12 The access message of task, is reduced in prior art, due to shared by the continuous poll of first processing units 11 Resource, and then the embodiment of the present invention can reduce the occupancy ratio of resource.
Fig. 6 is referred to, is that the embodiments of the invention provide a kind of structural representation of packet monitoring device.Such as Shown in Fig. 6, the packet monitoring device 6 of the embodiment of the present invention can include:Receiving module 601, open Dynamic model block 602 and feedback module 603.Optionally, the packet monitoring device 6 can also include sending mould Block 604.
Receiving module 601, the access message of being sent for reception processing device for task, the access message is used for Access and indicate that the packet monitoring device determines whether have in the packet monitoring device and the task pair The packet answered is reached;
Starting module 602, disappears for receiving the access of task of processor transmission in the receiving module 601 After breath, if packet not corresponding with the task in the packet monitoring device, starter motor can prolong When the time, the chance delay time is to indicate the processor before the chance delay time terminates not The access message of the task is sent to the packet monitoring device again;
Feedback module 603, for after the starter motor of starting module 602 meeting delay time, when described There is packet corresponding with the task to reach in chance delay time in the packet monitoring device, by institute State packet corresponding with the task and feed back to the processor, so that the processor is according to the data Bag performs the corresponding task, and terminates the chance delay time.
In one implementation, the feedback module 603, is additionally operable to receive in the receiving module 601 After the access message for the task that processor is sent, if having in the packet monitoring device and the task pair The packet answered, feeds back to the processor, so that the place by the packet corresponding with the task Manage device and the corresponding task is performed according to the packet.
In one implementation, the feedback module 603, is additionally operable in the starter motor of starting module 602 Can after delay time, when in the packet monitoring device in the chance delay time not with it is described The corresponding packet of task is reached, and is reached to processor feedback packet not corresponding with the task Return message.
In one implementation, the packet is remote procedure call packet.
In one implementation, the packet monitoring device 6 also includes sending module 604:
The receiving module 601, is additionally operable to the RPC packet call requests of the task of reception processing device transmission, The RPC packets call request carries the target data bag monitoring for receiving the RPC packets call request The corresponding target identification of device;
The sending module 604, the RPC of the task for receiving processor transmission in receiving module 601 After packet call request, the RPC packets call request is sent to the target data bag and monitored Device, the RPC packets call request is used to indicate that the target data bag monitoring device returns to response institute State the RPC packets of RPC packet call requests.
It should be noted that each functional module in packet monitoring device 6 described by the embodiment of the present invention Function can be in the embodiment of the method according to above-mentioned Fig. 3 to Fig. 5 method implement, here is omitted.
Fig. 7 is referred to, is that the embodiments of the invention provide the structural representation of another packet monitoring device. As shown in fig. 7, the packet monitoring device 700 includes memory cell 701, control unit 702, input Unit 703 and output unit 704.In embodiments of the present invention, the packet monitoring device 700 is to possess The device of communication function, for example, network adapter or Objunctive network adaptor, Objunctive network adaptor exist Can be by calling the network adapter of correspondence computer to complete to communicate in specific operation process.Wherein, it is described Communication between packet monitoring device 700 and LAN is in serial transmission mode by cable or twisted-pair feeder Carry out, and the communication between the packet monitoring device 700 and computer is then by computer motherboard On bus 705 carried out in parallel transmission mode.Therefore, a weight of the packet monitoring device 700 Function is wanted to seek to carry out serial/parallel conversion.Due to the data on the data transfer rate and computer bus on network Rate is simultaneously differed, therefore has the storage chip cached to data in the packet monitoring device 700. Wherein, said memory cells 701 can be high-speed RAM memory, or non-labile memory (non-volatile memory), such as magnetic disk storage.Said memory cells 701 are used to store one group of journey Sequence code, control unit 702 and memory cell 701 are connected by bus 705.
Wherein, the memory cell 701 is used for store program codes, and described control unit 702 is used to call The program code that the memory cell 701 is stored performs following steps:
The access message of being sent by the reception processing device of bus 705 for task, the access message is used to access Indicate that the packet monitoring device determines whether there is corresponding with the task in the packet monitoring device Packet is reached;
If packet not corresponding with the task, described control unit 702 in the packet monitoring device Starter motor meeting delay time, the chance delay time is to indicate the processor when the chance is delayed Between terminate before no longer to the access message of the packet monitoring device transmission task;
When there is data corresponding with the task in the packet monitoring device in the chance delay time Bag is reached, and described control unit 702 feeds back the packet corresponding with the task by bus 705 To the processor, so that the processor performs the corresponding task according to the packet, and terminate The chance delay time.
In one implementation, described control unit 702 also includes:If in the packet monitoring device There is packet corresponding with the task, the packet monitoring device will the number corresponding with the task The processor is fed back to by bus 705 according to bag, so that the processor is according to packet execution pair The task answered.
In one implementation, described control unit 702 also includes:When in the chance delay time Corresponding with task packet is not reached in the packet monitoring device, by bus 705 to institute State the return message that processor feedback packet not corresponding with the task is reached.
In one implementation, the packet is remote procedure call packet.
In one implementation, the access for the task that described control unit 702 is sent in reception processing device disappears Before breath, in addition to:The RPC packet call requests for the task that reception processing device is sent, the RPC numbers The target data bag monitoring device for carrying the reception RPC packets call request according to bag call request is corresponding Target identification;
Described control unit 702 sends the RPC packets call request to institute by output unit 703 Target data bag monitoring device is stated, the RPC packets call request is used to indicate the target data bag prison Device for tone frequencies returns to the RPC packets of the response RPC packets call request.
It should be noted that can be according to above-mentioned in packet monitoring device 700 described by the embodiment of the present invention Method in embodiment of the method shown in Fig. 3 to Fig. 5 is implemented, and here is omitted.
Fig. 8 is referred to, is that the embodiments of the invention provide a kind of structural representation of remote procedure call equipment. As shown in figure 8, the remote procedure call equipment 800 includes monitoring unit 801 and processing unit 802.Can Choosing, in embodiments of the present invention, the monitoring unit 801 is the device for possessing communication function, for example, Network adapter or Objunctive network adaptor, Objunctive network adaptor can pass through in specific operation process The network adapter of correspondence computer is called to complete communication, the embodiment of the present invention is not limited this.Optionally, The monitoring unit is used to obtain to be sent out from the service equipment that data, services are provided for the remote procedure call equipment The packet sent.
The processing unit 802 is used for the access message that task is sent to the monitoring unit 801, the visit Ask message is used to access whether have packet arrival corresponding with the task in the monitoring unit 801;
The monitoring unit 801 is used to receive the access message;
If packet not corresponding with the task, the monitoring unit 801 in the monitoring unit 801 For starter motor meeting delay time, the chance delay time is to indicate the processing unit 802 described Chance delay time no longer sends the access message of the task to the monitoring unit 801 before terminating;
When there is packet corresponding with the task in the monitoring unit 801 in the chance delay time Reach, the monitoring unit 801 is used to the packet corresponding with the task feeding back to the processing Unit 802, and terminate the chance delay time;
The packet of the processing unit 802 for receiving the feedback of monitoring unit 801, and according to The packet performs the corresponding task.
In one implementation, if there is packet corresponding with the task in the monitoring unit 801, The monitoring unit 801 is used to the packet corresponding with the task feeding back to the processing unit 802; The processing unit 802 is used to receive the packet that the monitoring unit 801 feeds back, and according to described Packet performs the corresponding task.
In one implementation, when in the monitoring unit 801 in the chance delay time not with The corresponding packet of the task is reached, and the monitoring unit 801 is used to feed back to the processing unit 802 The return message that packet not corresponding with the task is reached;The processing unit 802 is used to receive institute State the return message of the feedback of monitoring unit 801.
In one implementation, the packet is remote procedure call packet.
In one implementation, the processing unit 802 is used to send task to the monitoring unit 801 RPC packet call requests, the RPC packets call request, which is carried, receives the RPC packets The corresponding target identification of destination service equipment of call request;The monitoring unit 801 is used to receive the place Manage the RPC packet call requests that unit 802 is sent;The monitoring unit 801 is used for the RPC numbers Sent according to bag call request to the destination service equipment, the RPC packets call request is used to indicate institute State the RPC packets that destination service equipment returns to the response RPC packets call request.
It should be noted that can be according to above-mentioned Fig. 3 in remote procedure call equipment described by the embodiment of the present invention Method into embodiment of the method shown in Fig. 5 is implemented, and here is omitted.
Fig. 9 is referred to, is that the embodiments of the invention provide the structural representation of another remote procedure call equipment. As shown in figure 9, the remote procedure call equipment 900 includes at least one processor 901, communication bus 902, memory 903, packet monitoring device 907.
Processor 901 can be a general central processor (CPU), microprocessor, application-specific collection Into circuit (application-specific integrated circuit, ASIC), or one or more it is used to control this The integrated circuit that scheme of the invention program is performed.
Communication bus 902 may include a path, and information is transmitted between said modules.
Memory 903 can be read-only storage (read-only memory, ROM) or can store static letter Breath and the other kinds of static storage device of instruction, random access memory (random access memory, RAM) or can storage information and instruction other kinds of dynamic memory or electrically erasable can Program read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read-Only Memory, CD-ROM) or other Optical disc storage, laser disc storage (including compression laser disc, laser disc, laser disc, Digital Versatile Disc, blue light light Dish etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store with referring to Order or data structure form desired program code and can by computer access any other medium, but Not limited to this.Memory can be individually present, and be connected by bus with processor.Memory can also Integrated with processor.
In the specific implementation, as a kind of embodiment, processor 901 can include one or more CPU, Such as CPU0 and CPU1 in Fig. 9.
In the specific implementation, as a kind of embodiment, remote procedure call equipment 900 can include multiple places Manage the processor 901 and processor 906 in device, such as Fig. 9.Each in these processors can be one Individual monokaryon (single-CPU) processor or multinuclear (multi-CPU) processor.Here Processor can refer to one or more equipment, circuit, and/or for processing data (such as computer program Instruction) process cores.
In the specific implementation, as a kind of embodiment, remote procedure call equipment 900 can also include output Equipment 904 and input equipment 905.Output equipment 904 and processor 901 communicate, and can come in many ways Display information.For example, output equipment 904 can be liquid crystal display (liquid crystal display, LCD), Light-Emitting Diode (light emitting diode, LED) display device, cathode-ray tube (cathode ray tube, CRT) display device, or projecting apparatus (projector) etc..Input equipment 905 and processor 901 communicate, The input of user can be received in many ways.For example, input equipment 905 can be mouse, keyboard, touch Touch screen equipment or sensing equipment etc..
The packet monitoring device 907 is to possess the device of communication function, for example, network adapter or Objunctive network adaptor, the remote procedure call equipment includes one or this multiple network adapter, can Choosing, one or more Objunctive network adaptor can also be included, and Objunctive network adaptor is specifically being grasped Can be by calling the network adapter in remote procedure call equipment to complete to communicate during work.Wherein, institute Stating the communication between packet monitoring device 907 and LAN is carried out by cable or twisted-pair feeder, and institute The communication stated between the component that packet monitoring device 907 and remote procedure call equipment 900 are included is then Carried out by bus 902.
Above-mentioned remote procedure call equipment 900 can be that a general purpose computing device either one is special Computer equipment.In the specific implementation, remote procedure call equipment 900 can be desktop computer, portable electric Brain, network remote procedure call equipment, wireless terminal device, communication equipment, embedded device or have Fig. 9 The equipment of middle similar structures.The embodiment of the present invention does not limit the type of remote procedure call equipment 900.
Wherein, the processor 901 and the packet monitoring device 907 can perform the memory 603 The application code of the present invention program is stored, is specifically included:
The processor 901 sends the access message of task, the visit to the packet monitoring device 907 Ask that message is used to access whether to have packet corresponding with the task to arrive in the packet monitoring device 907 Reach;
The packet monitoring device 907 receives the access message;
If packet not corresponding with the task, the packet in the packet monitoring device 907 The starter motor of monitoring device 907 meeting delay time, the chance delay time is to indicate the processor 901 The visit of the task is no longer sent to the packet monitoring device 907 before the chance delay time terminates Ask message;
When having corresponding with the task in the packet monitoring device 907 in the chance delay time Packet is reached, and the packet monitoring device 907 feeds back to the packet corresponding with the task The processor 901, and terminate the chance delay time;
The processor 901 receives the packet that the packet monitoring device 907 feeds back, and according to The packet performs the corresponding task.
In one implementation, if there is number corresponding with the task in the packet monitoring device 907 According to bag, the packet corresponding with the task is fed back to the place by the packet monitoring device 907 Manage device 901;
The processor 901 receives the packet that the packet monitoring device 907 feeds back, and according to The packet performs the corresponding task.
In one implementation, when in the packet monitoring device 907 in the chance delay time Corresponding with task packet is not reached, and the packet monitoring device 907 is to the processor 901 The return message that feedback packet not corresponding with the task is reached;
The processor 901 receives the return message that the packet monitoring device 907 feeds back.
In one implementation, the packet is remote procedure call packet.
In one implementation, the processor 901 sends task to the packet monitoring device 907 Access message before, in addition to:The processor 901 is sent to the packet monitoring device 907 appoints The RPC packet call requests of business, the RPC packets call request, which is carried, receives the RPC data The corresponding target identification in destination service end of bag call request;
The packet monitoring device 907 receives the RPC packet call requests that the processor 901 is sent; The packet monitoring device 907 sends the RPC packets call request to the destination service end, The RPC packets call request is used to indicate that the destination service end returns to the response RPC packets and adjusted With the RPC packets of request.
It should be noted that can be according to upper in remote procedure call equipment 900 described by the embodiment of the present invention The method stated in embodiment of the method shown in Fig. 3 to Fig. 5 is implemented, and here is omitted.
The embodiment of the present invention additionally provides a kind of computer-readable storage medium, is adjusted for saving as above-mentioned remote process With the computer software instructions used in processor in equipment and packet monitoring device, it, which is included, is used to perform It is processor in remote procedure call equipment and the program designed by packet monitoring device to state aspect.It is included For performing program of the above-mentioned aspect designed by remote procedure call equipment, for sending to packet prison In the case that the data packet number of device for tone frequencies is sparse, by increasing the scheme of starter motor meeting delay time, due to In chance delay time, processor to packet by accessing message without monitoring dress again in delay time Put and be polled, so as to reduce processor occupancy, save processor resource;If due in delay Any one moment in time detects packet, and the packet monitoring device can be in time by the number Processor is sent to according to bag, communication delay is reduced.
Although combining each embodiment herein, invention has been described, however, implementing claimed In process of the present invention, those skilled in the art are by checking the accompanying drawing, disclosure and appended right Claim, it will be appreciated that and realize other changes of the open embodiment.In the claims, " comprising " (comprising) word is not excluded for other components or step, and "a" or "an" is not excluded for multiple feelings Condition.Single processor or other units can realize some functions of being enumerated in claim.It is mutually different Be recited in mutually different dependent some measures, the generation it is not intended that these measures can not combine Good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment), Or computer program product.Therefore, the present invention can using complete hardware embodiment, complete software embodiment, Or the form of the embodiment in terms of combination software and hardware.Moreover, the present invention can use it is one or more its In include computer usable program code computer-usable storage medium (include but is not limited to disk storage Device, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer program It is stored/distributed in suitable medium, is provided together with other hardware or as a part for hardware, can also Using other distribution forms, such as pass through the wired or wireless telecommunication systems of Internet or other.
The present invention is the stream of the method with reference to the embodiment of the present invention, device (equipment) and computer program product Journey figure and/or block diagram are described.It should be understood that can be by computer program instructions implementation process figure and/or block diagram In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.Can There is provided these computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor or other can The processor of programming data processing equipment is to produce a machine so that pass through computer or other programmable numbers According to the instruction of the computing device of processing equipment produce for realize one flow of flow chart or multiple flows and/ Or the device for the function of being specified in one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices In the computer-readable memory worked in a specific way so that be stored in the computer-readable memory Instruction, which is produced, includes the manufacture of command device, and the command device is realized in one flow of flow chart or multiple streams The function of being specified in one square frame of journey and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and series of operation steps performed on computer or other programmable devices to produce computer implemented processing, So as to which the instruction performed on computer or other programmable devices is provided for realizing in one flow of flow chart Or specified in one square frame of multiple flows and/or block diagram or multiple square frames function the step of.
Although with reference to specific features and embodiment, invention has been described, it is clear that, do not taking off In the case of from the spirit and scope of the present invention, various modifications and combinations can be carried out to it.Correspondingly, this theory Bright book and accompanying drawing are only the exemplary illustration of the invention that appended claims are defined, and are considered as and have covered Any and all modifications, change, combination or equivalent in the scope of the invention.Obviously, the technology of this area Personnel can carry out various changes and modification to the present invention without departing from the spirit and scope of the present invention.So, If these modifications and variations of the present invention belong within the scope of the claims in the present invention and its equivalent technologies, Then the present invention is also intended to comprising including these changes and modification.

Claims (18)

1. a kind of packet monitor method, it is characterised in that including:
The access message for the task that packet monitoring device reception processing device is sent, the access message is used to visit Ask that the instruction packet monitoring device determines whether there is corresponding with the task in the packet monitoring device Packet reach;
If packet not corresponding with the task in the packet monitoring device, when starter motor can be delayed Between, the chance delay time to indicate the processor before the chance delay time terminates no longer to The packet monitoring device sends the access message of the task;
When there is data corresponding with the task in the packet monitoring device in the chance delay time Bag is reached, and the packet corresponding with the task is fed back to the processing by the packet monitoring device Device, and terminate the chance delay time.
2. according to the method described in claim 1, it is characterised in that also include:
If there is packet corresponding with the task in the packet monitoring device, the packet monitors dress Put and the packet corresponding with the task is fed back into the processor.
3. method according to claim 1 or 2, it is characterised in that also include:
When number not corresponding with the task in the packet monitoring device in the chance delay time Reached according to bag, the packet monitoring device feeds back data not corresponding with the task to the processor Wrap the return message reached.
4. the method according to claim any one of 1-3, it is characterised in that the packet is long-range Invocation of procedure RPC packets.
5. method according to claim 4, it is characterised in that the packet monitoring device receiving area Before the access message for managing the task that device is sent, in addition to:
The RPC packet call requests for the task that the packet monitoring device reception processing device is sent, it is described RPC packets call request carries the target data bag monitoring device for receiving the RPC packets call request Corresponding target identification;
The RPC packets call request is sent to the target data bag and supervised by the packet monitoring device Device for tone frequencies, the RPC packets call request is used to indicate that the target data bag monitoring device returns to response The RPC packets of the RPC packets call request.
6. a kind of RPC system, the RPC system includes client and service end, Characterized in that, the client includes the first monitoring unit and first processing units, the service end includes Second monitoring unit and second processing unit, first monitoring unit, which is used to obtain from described second, monitors single The remote procedure call packet that member is sent, second monitoring unit is used to receive from the described first prison The RPC packet call requests for listening unit to send, wherein,
In the service end:
The second processing unit is used for please to whether second monitoring unit transmission has RPC packets to call Seek the access message of arrival;If second monitoring unit does not have RPC data into second monitoring unit Bag call request, the second processing unit sends the return message for not having RPC packets call request to reach;
In the client:
The first processing units are used to second monitoring unit forwarding appoint by first monitoring unit The RPC packet call requests of business;
The first processing units are used for the access message that task is sent to first monitoring unit, the visit Ask message is used to access whether have RPC packets arrival corresponding with the task in first monitoring unit;
First monitoring unit be used for receive the access message, if in first monitoring unit not with The corresponding RPC packets of the task, the first monitoring unit starter motor can delay time, the chance Delay time is to indicate the first processing units before the chance delay time terminates no longer to described One monitoring unit sends the access message of the task;
When there is RPC numbers corresponding with the task in first monitoring unit in the chance delay time Reached according to bag, first monitoring unit is used to feed back to the RPC packets corresponding with the task The first processing units, and terminate the chance delay time;
The first processing units are used for the RPC packets for receiving the first monitoring unit feedback, and The corresponding task is performed according to the RPC packets.
7. system according to claim 6, it is characterised in that also include:
In the service end:
If there is RPC packet call requests in second monitoring unit, second monitoring unit be used for The second processing unit sends the RPC packets call request;The second processing unit is used to receive The RPC packets call request sent by second monitoring unit, and according to the RPC packets Call request generates corresponding RPC packets, by second monitoring unit to first monitoring unit Forward the RPC packets;
In the client:
If there is RPC packets corresponding with the task in first monitoring unit, described first monitors single Member is used to the RPC packets feeding back to the first processing units, so that the first processing units root The corresponding task is performed according to the RPC packets.
8. the system according to claim 6 or 7, it is characterised in that also include:
As RPC not corresponding with the task in first monitoring unit in the chance delay time Packet is reached, and first monitoring unit feeds back not corresponding with the task to the first processing units RPC packets reach return message.
9. a kind of packet monitoring device, it is characterised in that including:
Receiving module, the access message of being sent for reception processing device for task, the access message is used to visit Ask that the instruction packet monitoring device determines whether there is corresponding with the task in the packet monitoring device Packet reach;
Starting module, if for packet not corresponding with the task in the packet monitoring device, Starter motor meeting delay time, the chance delay time is to indicate the processor when the chance is delayed Between terminate before no longer to the access message of the packet monitoring device transmission task;
Feedback module, for when have in the chance delay time in the packet monitoring device with it is described The corresponding packet of task is reached, and the packet corresponding with the task is fed back into the processor, And terminate the chance delay time.
10. device according to claim 9, it is characterised in that
The feedback module, if being additionally operable in the packet monitoring device have data corresponding with the task Bag, the processor is fed back to by the packet corresponding with the task.
11. the device according to claim 9 or 10, it is characterised in that also include:
The feedback module, is additionally operable in the chance delay time in the packet monitoring device not have There is packet corresponding with the task to reach, number not corresponding with the task is fed back to the processor The return message reached according to bag.
12. the device according to claim any one of 9-11, it is characterised in that the packet is remote Journey invocation of procedure RPC packets.
13. device according to claim 12, it is characterised in that the packet monitoring device is also wrapped Include sending module:
The receiving module, is additionally operable to the RPC packet call requests of the task of reception processing device transmission, institute State RPC packets call request and carry the target data bag monitoring dress for receiving the RPC packets call request Put corresponding target identification;
The sending module, is supervised for the RPC packets call request to be sent to the target data bag Device for tone frequencies, the RPC packets call request is used to indicate that the target data bag monitoring device returns to response The RPC packets of the RPC packets call request.
14. a kind of remote procedure call equipment, it is characterised in that the remote procedure call equipment includes prison Unit and processing unit are listened, wherein,
The processing unit is used for the access message that task is sent to the monitoring unit, and the access message is used Whether there is packet corresponding with the task to reach in the monitoring unit in accessing;
The monitoring unit is used to receive the access message;
If packet not corresponding with the task in the monitoring unit, the monitoring unit is used to start Chance delay time, the chance delay time is to indicate the processing unit in the chance delay time The access message of the task is no longer sent before terminating to the monitoring unit;
When there is corresponding with task packet to reach in the monitoring unit in the chance delay time, The monitoring unit is used to the packet corresponding with the task feeding back to the processing unit, and ties Shu Suoshu chance delay times;
The processing unit is used for the packet for receiving the monitoring unit feedback, and according to the data Bag performs the corresponding task.
15. equipment according to claim 14, it is characterised in that also include:
If there is packet corresponding with the task in the monitoring unit, the monitoring unit is used for will be described Packet corresponding with the task feeds back to the processing unit;
The processing unit is used for the packet for receiving the monitoring unit feedback, and according to the data Bag performs the corresponding task.
16. the equipment according to claims 14 or 15, it is characterised in that also include:
When packet not corresponding with the task is arrived in the monitoring unit in the chance delay time Reach, the monitoring unit is used to reach to processing unit feedback packet not corresponding with the task Return message;
The processing unit is used for the return message for receiving the monitoring unit feedback.
17. the equipment according to claim any one of 14-16, it is characterised in that the packet is remote Journey invocation of procedure RPC packets.
18. equipment according to claim 17, it is characterised in that also include:
The processing unit is used for the RPC packet call requests that task is sent to the monitoring unit, described The destination service equipment that RPC packets call request carries the reception RPC packets call request is corresponding Target identification;
The monitoring unit is used to receive the RPC packet call requests that the processing unit is sent;
The monitoring unit is used to send the RPC packets call request to the destination service equipment, The RPC packets call request is used to indicate that the destination service equipment returns to the response RPC packets The RPC packets of call request.
CN201610200296.0A 2016-03-31 2016-03-31 Data packet monitoring method and device, remote procedure call system and equipment Active CN107294911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610200296.0A CN107294911B (en) 2016-03-31 2016-03-31 Data packet monitoring method and device, remote procedure call system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610200296.0A CN107294911B (en) 2016-03-31 2016-03-31 Data packet monitoring method and device, remote procedure call system and equipment

Publications (2)

Publication Number Publication Date
CN107294911A true CN107294911A (en) 2017-10-24
CN107294911B CN107294911B (en) 2020-09-08

Family

ID=60087243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610200296.0A Active CN107294911B (en) 2016-03-31 2016-03-31 Data packet monitoring method and device, remote procedure call system and equipment

Country Status (1)

Country Link
CN (1) CN107294911B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355983A (en) * 2018-12-21 2020-06-30 北京字节跳动网络技术有限公司 Service data processing method, device, server and storage medium
CN112565286A (en) * 2020-12-17 2021-03-26 金蝶软件(中国)有限公司 Task response method, device, equipment and storage medium based on RPC access
CN112865926A (en) * 2021-02-04 2021-05-28 中汽创智科技有限公司 End-to-end safety communication fault-tolerant method and system
CN113590356A (en) * 2021-07-29 2021-11-02 网易(杭州)网络有限公司 Data communication method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859183A (en) * 2005-12-30 2006-11-08 华为技术有限公司 Method and device for realizing equipment state polling
CN103116520A (en) * 2012-11-02 2013-05-22 深圳键桥通讯技术股份有限公司 Remote procedure call remote position control (RPC) method based on transmission control protocol (TCP)/user datagram protocol (UDP)
US20140189156A1 (en) * 2012-12-27 2014-07-03 Deep River Ventures, Llc Methods, Systems, and Computer Program Products for Routing Based on a Path-Based Protocol Address
CN104917817A (en) * 2015-04-23 2015-09-16 四川师范大学 Client side and data communication method
CN105208125A (en) * 2015-09-30 2015-12-30 百度在线网络技术(北京)有限公司 Message transmission method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859183A (en) * 2005-12-30 2006-11-08 华为技术有限公司 Method and device for realizing equipment state polling
CN103116520A (en) * 2012-11-02 2013-05-22 深圳键桥通讯技术股份有限公司 Remote procedure call remote position control (RPC) method based on transmission control protocol (TCP)/user datagram protocol (UDP)
US20140189156A1 (en) * 2012-12-27 2014-07-03 Deep River Ventures, Llc Methods, Systems, and Computer Program Products for Routing Based on a Path-Based Protocol Address
CN104917817A (en) * 2015-04-23 2015-09-16 四川师范大学 Client side and data communication method
CN105208125A (en) * 2015-09-30 2015-12-30 百度在线网络技术(北京)有限公司 Message transmission method, device and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355983A (en) * 2018-12-21 2020-06-30 北京字节跳动网络技术有限公司 Service data processing method, device, server and storage medium
CN111355983B (en) * 2018-12-21 2022-03-18 北京字节跳动网络技术有限公司 Service data processing method, device, server and storage medium
CN112565286A (en) * 2020-12-17 2021-03-26 金蝶软件(中国)有限公司 Task response method, device, equipment and storage medium based on RPC access
CN112865926A (en) * 2021-02-04 2021-05-28 中汽创智科技有限公司 End-to-end safety communication fault-tolerant method and system
CN112865926B (en) * 2021-02-04 2022-09-06 中汽创智科技有限公司 End-to-end safety communication fault tolerance method and system
CN113590356A (en) * 2021-07-29 2021-11-02 网易(杭州)网络有限公司 Data communication method and device and electronic equipment
CN113590356B (en) * 2021-07-29 2023-08-11 网易(杭州)网络有限公司 Data communication method and device and electronic equipment

Also Published As

Publication number Publication date
CN107294911B (en) 2020-09-08

Similar Documents

Publication Publication Date Title
US10877801B2 (en) Systems and methods for scheduling tasks
Kliazovich et al. CA-DAG: Modeling communication-aware applications for scheduling in cloud computing
CN103197968B (en) A kind of thread pool disposal route and system merging synchronous asynchronous feature
CN104932932B (en) A kind of business asynchronous processing method, device and system
CN110162388A (en) A kind of method for scheduling task, system and terminal device
JP6787933B2 (en) Message processing methods, devices, and systems
CN107294911A (en) A kind of packet monitor method and device, RPC system, equipment
CN109656690A (en) Scheduling system, method and storage medium
WO2019096046A1 (en) Data processing system and method, and token management method
US8539089B2 (en) System and method for vertical perimeter protection
Kliazovich et al. CA-DAG: Communication-aware directed acyclic graphs for modeling cloud computing applications
CN110166524B (en) Data center switching method, device, equipment and storage medium
TWI786527B (en) User code operation method of programming platform, electronic equipment and computer-readable storage medium
US20160196073A1 (en) Memory Module Access Method and Apparatus
CN108512782A (en) Accesses control list is grouped method of adjustment, the network equipment and system
CN113168620A (en) Object-oriented call management
CN112104679B (en) Method, apparatus, device and medium for processing hypertext transfer protocol request
CN104484219B (en) The method and apparatus of distributing policy in virtual platform
CN108259605B (en) Data calling system and method based on multiple data centers
CN113867946A (en) Method, device, storage medium and electronic equipment for accessing resources
CN110213155B (en) Communication processing method, communication processing device, related equipment and storage medium
US10877800B2 (en) Method, apparatus and computer-readable medium for application scheduling
CN113094131A (en) Prompt resource display method, device, terminal, server and storage medium
US9213735B1 (en) Flow control in very large query result sets using a release message to confirm that a client computer is ready to receive the data associated with a data collection operation
CN109831385A (en) A kind of message treatment method, device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant