CN101795289B - Method, device and system for remote procedure call control - Google Patents
Method, device and system for remote procedure call control Download PDFInfo
- Publication number
- CN101795289B CN101795289B CN 200910261816 CN200910261816A CN101795289B CN 101795289 B CN101795289 B CN 101795289B CN 200910261816 CN200910261816 CN 200910261816 CN 200910261816 A CN200910261816 A CN 200910261816A CN 101795289 B CN101795289 B CN 101795289B
- Authority
- CN
- China
- Prior art keywords
- procedure call
- remote procedure
- call request
- client
- notice message
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The embodiment of the invention discloses a method, a device and a system for remote procedure call control. The realization of the method comprises that a remote procedure call request transmitted by a client is received; the remote procedure call request is processed; if the time for processing the remote procedure call request reaches a preset value, the transport layer session of the remote procedure call request is transmitted through the client and activity notification information is transmitted to the client; and the preset value is less than the value of the overtime period of the transport layer session. By adopting the implementation method, after the remote procedure call request is received and when the remote procedure call request is processed, the processing time is timed and information is transmitted through the transport layer session of a session link between the client and a server within the preset time to ensure that the transport layer session of the session link is not closed because of overtime, thereby improving the session stability.
Description
Technical field
The present invention relates to communication technical field, particularly a kind of remote procedure call control method, device and system.
Background technology
Network configuration protocol (Network Configuration Protocol, NETCONF) mechanism that provides a cover to manage the network equipment, the user can overlap the machine-processed configuration that increases, revises, deletes the network equipment with this, obtains configuration and the state information of the network equipment.
It is mutual to use remote procedure call (Remote Procedure Call, RPC) mechanism to carry out communication between NETCONF client (being designated hereinafter simply as client) and the NETCONF server end (being designated hereinafter simply as server end).Generally, client and server carry out communication mutual before, can set up a safety, towards the transport layer session of link.Behind this transport layer session establishment, the user end to server end sends a RPC request, after the complete user's request of server-side processes, sends a RPC-Reply response message to client.Client obtains the execution result of RPC request by this RPC-Reply response message.
In the prior art, for common RPC request, server end can return the RPC-Reply response message to client in the transport layer timeout duration of session; The inventor finds in realizing process of the present invention: process long RPC request consuming time for some, for example, replicated setup request (copy-config), submission request (commit) etc., if in the transport layer timeout duration of session, be not finished and return the RPC-Reply response message, this transport layer session will be closed because of overtime, can cause conversation like this, conversation stability is poor.
Summary of the invention
The technical problem that the embodiment of the invention will solve provides a kind of remote procedure call control method, device and system, promotes conversation stability.
For solving the problems of the technologies described above, remote procedure call control method embodiment provided by the present invention can be achieved through the following technical solutions:
Receive the remote procedure call request that client sends;
Process described remote procedure call request;
If the time of processing described remote procedure call request reaches the value of setting, then send the transport layer session of described remote procedure call request by described client, transmission activity notice message is to described client; The value of described setting is less than the value of described transport layer timeout duration of session.
A kind of remote procedure call control device comprises:
The request receiving unit receives the remote procedure call request that client sends;
Requesting processing is for the treatment of described remote procedure call request;
The announcement transmitting element if process the value that the time of described remote procedure call request reaches setting, is used for sending by described client the transport layer session of described remote procedure call request, and transmission activity notice message is to described client; The value of described setting is less than the value of described transport layer timeout duration of session.
A kind of remote procedure call control system comprises:
Server end is used for receiving the remote procedure call request that client sends; Process described remote procedure call request; If the time of processing described remote procedure call request reaches the value of setting, then send the transport layer session of described remote procedure call request by described client, transmission activity notice message is to described client; The value of described setting is less than the value of described transport layer timeout duration of session;
Client is used for sending the remote procedure call request to server.
Technique scheme has following beneficial effect: after receiving the remote procedure call request, in the process of processing remote invocation of procedure request, to the time timing of processing, transport layer session transmission message in the time of setting by client and server, guaranteeing that the transport layer session can not close because of overtime, thereby promote conversation stability.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use was done to introduce simply during the below will describe embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 embodiment of the invention method flow schematic diagram;
Fig. 2 embodiment of the invention method flow schematic diagram;
Fig. 3 is embodiment of the invention apparatus structure schematic diagram;
Fig. 4 is embodiment of the invention system configuration schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 1, one embodiment of the present of invention provide a kind of remote procedure call control method, comprising:
101: receive the remote procedure call request that client sends;
102: process above-mentioned remote procedure call request;
103: if process the value that the time of above-mentioned remote procedure call request reaches setting, then send the transport layer session of above-mentioned remote procedure call request by above-mentioned client, transmission activity notice message is to above-mentioned client; The value of above-mentioned setting is less than the value of above-mentioned transport layer timeout duration of session.
Above-mentioned is to close because of overtime for fear of the transport layer session to client transmission activity notice message, the information of carrying as for this activity notice message, service quality (the Quality of Service that provides for transmitting this activity notice message, QoS) etc., the embodiment of the invention all will not limit.
Optionally, in the embodiment of the invention, in the process of processing remote invocation of procedure request, time to processing is carried out timing, when the time of processing reaches the value of setting, send the transport layer session of above-mentioned remote procedure call request by client, transmission activity notice message is to above-mentioned client, guaranteeing that the transport layer session can not close because of overtime, thereby promote conversation stability.Further alternative, in the embodiments of the invention, after the transmission activity notice message, can again carry out timing to the time of processing this remote procedure call request.
Optionally, in the embodiment of the invention, after the time of processing above-mentioned remote procedure call request reaches the value of setting, send the transport layer session of above-mentioned remote procedure call request by above-mentioned client, periodic transmission activity notice message is to above-mentioned client, in general, the cycle of above-mentioned transmission activity notice message is less than above-mentioned transport layer timeout duration of session.Certainly adopt other mode to be implemented in front this transport layer session transmission message of passing through of transport layer session timeout, be fine to prevent that the transport layer session timeout from closing also, will not limit this embodiment of the invention.
Optionally, in the embodiment of the invention, above-mentioned movable notice message can also carry the information such as current treatment state of above-mentioned remote procedure call request.Wherein, above-mentioned treatment state can comprise the progress when pre-treatment, the procedural information that occurs in the processing etc.Client just can know that after receiving movable notice message the remote procedure call request that self sends is at the practice condition of server end like this.So just further solved the problem of " executing state that client can't continue perception and follow the tracks of the RPC request ".
Optionally, in the embodiments of the invention, movable notice message can adopt the form of remote procedure call response RPC-Reply message to send.Certainly adopt other form also to be fine, the embodiment of the invention will not limit this.
Optionally, in above-mentioned movable notice message, can also carry the sequence number of response, be used for identifying above-mentioned movable notice message and be aimed at which secondary response that above-mentioned remote procedure call request sends.Give one example: server end has sent 5 movable notice messages to client, and numbering is followed successively by 0,1,2,3,4 according to the precedence sequence number; If it is 0 movable notice message that client has been received sequence number, do not receive that sequence number is 1,2,3 movable notice message and received that directly sequence number is 4 movable notice message, client can be known at least so: (1) server has responded 5 times; (2) the current transmission layer session status is bad causes message to bring out from server to client to have showed congested or lose.
Below, to realize that by remote procedure call response message (RPC-Reply) remote procedure call is controlled to be example and describes, the preferred implementation of RPC-Reply conduct should not be construed as unique implementation of movable notice message, the embodiment of the invention is not consisted of to limit.
The definition of NETCONF tenability collection, a NETCONF ability is exactly one group of function that the basic function of NETCONF is expanded.The protocol operation that capability set can newly added equipment be supported also can be expanded the opereating specification of existing configuration object.The capability set that NETCONF client handling capacity alternately can the discovery server end be supported, and can be by the newly-increased operation of these abilities definition, parameter, and configuration object.
In the present embodiment, newly-increased movable announcement (active) ability in NETCONF, this ability allows the NETCONF server end not finish the ability that the forward direction client sends message in the request of the processing remote invocation of procedure; Whether the carry-on information of this message and this message can be arrived by client, and the embodiment of the invention all will not limit.This message further can be used for the executing state of RPC request is fed back to the NETCONF client in the present embodiment.
Concrete execution flow process as shown in Figure 2, may further comprise the steps:
201: by the transport layer session, server end and client declare to have movable notification capabilities mutually.
202: the replicated setup request (copy-config) that server end receives client to send.
203: after server end receives this request, process this request, and the processing time of this request is carried out timing, if reach setting-up time then transmission activity notice message.
In the present embodiment, server is after receiving the remote procedure call request, in the process of processing remote invocation of procedure request, to the time timing of processing, use the transport layer session of client and server to send message in the time of setting, guaranteeing that the transport layer session can not close because of overtime, thereby promote conversation stability.
Optionally, the above-mentioned movable notice message information that can also carry the treatment state of above-mentioned remote procedure call request.Client just can know from movable notice message that after receiving movable notice message the remote procedure call request that self sends is at the practice condition of server end like this.So just avoided the NETCONF client can't continue the problem of the executing state of perception and tracking RPC request.
As shown in Figure 3, the embodiment of the invention also provides a kind of remote procedure call control device, comprising:
Request receiving unit 301 receives the remote procedure call request that client sends;
Requesting processing 302 is for the treatment of above-mentioned remote procedure call request;
Alternatively, above-mentioned announcement transmitting element 303 can periodically send above-mentioned movable notice message to above-mentioned client, and the time value in above-mentioned transmission activity notice message cycle is less than the value of described transport layer timeout duration of session.
Alternatively, the movable notice message of above-mentioned announcement transmitting element 303 transmissions can carry the information such as current treatment state of above-mentioned remote procedure call request.
Alternatively, the movable notice message that above-mentioned announcement transmitting element 303 sends also carries the sequence number of response, and which secondary response what be used for that the sequence number sign is directed to that above-mentioned remote procedure call request sends is.
In the present embodiment, server is after receiving the remote procedure call request, in the process of processing remote invocation of procedure request, to the time timing of processing, transport layer session transmission message in the time of setting by client and server, guaranteeing that the transport layer session can not close because of overtime, thereby promote conversation stability.
If movable notice message has carried the information of the treatment state of above-mentioned remote procedure call request, client just can know from movable notice message that after receiving movable notice message the remote procedure call request that self sends is at the practice condition of server end.So just avoided the NETCONF client can't continue the problem of the executing state of perception and tracking RPC request.
As shown in Figure 4, the embodiment of the invention also provides a kind of remote procedure call control system, comprising:
Server end 401 is used for receiving the remote procedure call request that client 402 sends; Process above-mentioned remote procedure call request; If the time of processing above-mentioned remote procedure call request reaches the value of setting, then send the transport layer session of above-mentioned remote procedure call request by above-mentioned client 402, transmission activity notice message is to above-mentioned client 402; The value of above-mentioned setting is less than the value of above-mentioned transport layer timeout duration of session;
Client 402 is used for sending the remote procedure call request to server end 401.
Optionally, the above-mentioned movable notice message that sends of upper countless server end 401 information that can carry the treatment state of above-mentioned remote procedure call request; Above-mentioned client 402 also is used for reception activity notice message, resolves the information that above-mentioned movable notice message obtains the treatment state of above-mentioned remote procedure call request.
Alternatively, also carry the sequence number of response in the movable notice message that above-mentioned server end 401 sends, be used for identifying above-mentioned movable notice message and be aimed at which secondary response that above-mentioned remote procedure call request sends; Above-mentioned client 402 also is used for resolving the sequence number of the response that above-mentioned movable notice message carries, and obtains above-mentioned movable notice message and is aimed at which secondary response that above-mentioned remote procedure call request sends.
In the present embodiment, server is after receiving the remote procedure call request, in the process of processing remote invocation of procedure request, to the time timing of processing, transport layer session transmission message in the time of setting by client and server, guaranteeing that the transport layer session can not close because of overtime, thereby promote conversation stability.
If movable notice message carries the information of the treatment state of above-mentioned remote procedure call request, client just can know from movable notice message that after receiving movable notice message the remote procedure call request that self sends is at the practice condition of server end.So just avoided the NETCONF client can't continue the problem of the executing state of perception and tracking RPC request.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, above-mentioned program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
More than a kind of remote procedure call control method, device and system that the embodiment of the invention is provided be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention.
Claims (10)
1. a remote procedure call control method is characterized in that, comprising:
Receive the remote procedure call request that client sends;
Process described remote procedure call request, the time of processing described remote procedure call request is carried out timing;
If the time of processing described remote procedure call request reaches the value of setting, then send the transport layer session of described remote procedure call request by described client, transmission activity notice message avoids the transport layer session to close because of overtime to described client; The value of described setting is less than the value of described transport layer timeout duration of session.
2. described method according to claim 1 is characterized in that described transmission activity notice message comprises to described client:
Periodic transmission activity notice message is to described client, and the cycle of described transmission activity notice message is less than described transport layer timeout duration of session.
3. described method according to claim 1 is characterized in that described movable notice message carries the current process state information of described remote procedure call request.
4. described method according to claim 1 is characterized in that, carries the sequence number of response at described movable notice message, is used for identifying described movable notice message and is aimed at which secondary response that described remote procedure call request sends.
5. a remote procedure call control device is characterized in that, comprising:
The request receiving unit receives the remote procedure call request that client sends;
Requesting processing for the treatment of described remote procedure call request, is carried out timing to the time of processing described remote procedure call request;
The announcement transmitting element, if the time of processing described remote procedure call request reaches the value of setting, be used for sending by described client the transport layer session of described remote procedure call request, transmission activity notice message avoids the transport layer session to close because of overtime to described client; The value of described setting is less than the value of described transport layer timeout duration of session.
6. described device according to claim 5 is characterized in that,
Described announcement transmitting element is used for periodic transmission activity notice message to described client, and the time value in described transmission activity notice message cycle is less than the value of described transport layer timeout duration of session.
7. described device according to claim 5 is characterized in that, the movable notice message that described announcement transmitting element sends carries the current process state information of described remote procedure call request.
8. described device according to claim 5 is characterized in that, the movable notice message that described announcement transmitting element sends carries the sequence number of response, and which secondary response what be used for that sign is directed to that described remote procedure call request sends is.
9. a remote procedure call control system is characterized in that, comprising:
Server end is used for receiving the remote procedure call request that client sends; Process described remote procedure call request, the time of processing described remote procedure call request is carried out timing; If the time of processing described remote procedure call request reaches the value of setting, then send the transport layer session of described remote procedure call request by described client, transmission activity notice message avoids the transport layer session to close because of overtime to described client; The value of described setting is less than the value of described transport layer timeout duration of session;
Client is used for sending the remote procedure call request to server.
10. described system according to claim 9 is characterized in that,
The movable notice message that described server end sends carries the current process state information of described remote procedure call request;
Described client is further used for receiving described movable notice message, resolves described movable notice message, obtains the current process state information of described remote procedure call request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910261816 CN101795289B (en) | 2009-12-30 | 2009-12-30 | Method, device and system for remote procedure call control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910261816 CN101795289B (en) | 2009-12-30 | 2009-12-30 | Method, device and system for remote procedure call control |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101795289A CN101795289A (en) | 2010-08-04 |
CN101795289B true CN101795289B (en) | 2013-01-23 |
Family
ID=42587713
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910261816 Expired - Fee Related CN101795289B (en) | 2009-12-30 | 2009-12-30 | Method, device and system for remote procedure call control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101795289B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243405B (en) * | 2013-06-08 | 2017-09-29 | 华为技术有限公司 | A kind of request processing method, apparatus and system |
CN104883267B (en) | 2014-02-28 | 2018-07-20 | 新华三技术有限公司 | network configuration access method and device |
CN104883266B (en) | 2014-02-28 | 2018-10-12 | 新华三技术有限公司 | network configuration access method and device |
CN105357244A (en) * | 2014-08-22 | 2016-02-24 | 中兴通讯股份有限公司 | Method for operating network logic entity, client and proxy server |
CN109213546B (en) * | 2017-06-30 | 2021-09-07 | 武汉斗鱼网络科技有限公司 | Login processing method and device for windows client program |
CN109218369B (en) * | 2017-07-05 | 2021-08-03 | 阿里巴巴集团控股有限公司 | Remote procedure call request control method and device |
US10721214B2 (en) * | 2017-10-18 | 2020-07-21 | Citrix Systems, Inc. | Method to track SSL session states for SSL optimization of SaaS based applications |
CN110275764B (en) * | 2019-05-15 | 2024-03-19 | 创新先进技术有限公司 | Method, device and system for processing call timeout |
CN110134535B (en) * | 2019-05-27 | 2022-11-04 | 山东省农业机械科学研究院 | Data cooperation and intelligent recognition system based on RPC communication of Internet of things |
CN112350973A (en) * | 2019-08-07 | 2021-02-09 | 广州虎牙科技有限公司 | Remote procedure call load balancing method and device and data processing system |
CN111654480B (en) * | 2020-05-24 | 2022-05-20 | 中信银行股份有限公司 | RPC connection establishment method, device and storage medium |
CN114531471A (en) * | 2020-11-09 | 2022-05-24 | 航天信息股份有限公司 | Login state maintenance method, device, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1558607A (en) * | 2004-02-12 | 2004-12-29 | 上海交通大学 | Remote procedure call based client/server application integration access control method |
US6912715B2 (en) * | 2001-07-30 | 2005-06-28 | Appeon Corporation | System and method for web-based remote procedure call (RPC) |
CN1852209A (en) * | 2006-05-31 | 2006-10-25 | 北京和利时系统工程股份有限公司 | Remote process transfering method and system in distribution type control system |
-
2009
- 2009-12-30 CN CN 200910261816 patent/CN101795289B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6912715B2 (en) * | 2001-07-30 | 2005-06-28 | Appeon Corporation | System and method for web-based remote procedure call (RPC) |
CN1558607A (en) * | 2004-02-12 | 2004-12-29 | 上海交通大学 | Remote procedure call based client/server application integration access control method |
CN1852209A (en) * | 2006-05-31 | 2006-10-25 | 北京和利时系统工程股份有限公司 | Remote process transfering method and system in distribution type control system |
Also Published As
Publication number | Publication date |
---|---|
CN101795289A (en) | 2010-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101795289B (en) | Method, device and system for remote procedure call control | |
JP6254702B2 (en) | Notification message transmission method and apparatus for M2M system | |
EP2713641B1 (en) | Method for receiving data, method for transmitting data, mobile terminal, and server | |
JP4649328B2 (en) | Method, apparatus and system for realizing multi-party conferencing service using broadcast / multicast service of wireless communication system | |
JP4653585B2 (en) | PTT service system and method for synchronization in service shaded areas | |
CN108476387A (en) | For supporting the non-IP data transmissions of mobile station terminating to the user equipment for using extension idle mode DRX(MT NIDD)The method and apparatus of service | |
DE102015209240B4 (en) | SYSTEM AND METHOD FOR A NETWORK SELECTION FOR TRANSMITTING A CALL SESSION | |
CN109691062B (en) | Method for managing Short Data Service (SDS) in a mission critical Data (MC Data) communication system | |
EP2186300B1 (en) | Method and communication node for optimising time sensitive communications | |
WO2013096032A4 (en) | Method and apparatus for processing group event notifications and providing group policy in a communication system | |
CN106453356B (en) | The bilateral acceleration transmission method of wireless network and system | |
US20090304019A1 (en) | Method and device for reducing multicast traffice in a upnp network | |
EP2878098B1 (en) | User equipment node, server node and methods performed in such nodes for performing file repair procedure | |
CN105578440A (en) | Transmission method and transmission device for instant messaging service heartbeat packet in LTE system | |
CN101631224A (en) | Method for reserving and initiating wireless video conference and system thereof | |
CN104320399A (en) | Service end information automatic configuration method | |
CN105991239B (en) | Signal processing method, device and relevant device in a kind of IMS system | |
WO2022033083A1 (en) | Decoding method, decoding system, electronic apparatus, and storage medium | |
CN103905664A (en) | Method, device and system for selecting multipoint control unit (MCU) | |
US11012893B2 (en) | Method and apparatus for managing bearer during X2 handover | |
JP2023519682A (en) | Method and apparatus for providing a generic framework for managing custom subscriptions over SIP | |
JP2003124875A (en) | Information distribution method and system, and multicast server, program, and recording medium | |
CN108271431A (en) | Service disruption is reported | |
KR100959019B1 (en) | Method for collecting billing information in real time by forking SIP messages in a SIP-based network | |
WO2018233447A1 (en) | Method and apparatus for implementing link connection processing, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130123 Termination date: 20181230 |
|
CF01 | Termination of patent right due to non-payment of annual fee |