Remote calling method and device based on UDP (User Datagram Protocol) communication

A remote call and process technology, applied in the field of distributed systems, can solve the problems of large lightweight applications, complex processes, and high system overhead, and achieve the effect of good network conditions, simple functions, and reduced system burden

CN107948215AInactive Publication Date: 2018-04-20广州汇智通信技术有限公司
5 Cites 11 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2018-04-20
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention discloses a remote calling method and device based on UDP (User Datagram Protocol) communication. The method comprises the following steps: sending registration information to a registration procedure through a variety of service procedures of a server side; sending an inquiry request to the registration procedure through an application procedure of a client side toacquire corresponding feedback information; selecting a target service procedure by utilizing a load balancing strategy, sending a RPC (Remote Procedure Call) service request to the target service procedure, executing corresponding service procedures by the target service procedure according to service names and request parameters carried in the request, and sending response information carryingan execution result to the application procedure. By adopting the UPD protocol having less overhead to a system, simple and quick processing procedures and a way of registering the service to the registration procedure by the service procedure are designed, information relevant to the service procedure is acquired by the application procedure from the registration procedure, and then the application procedure communicates with the service procedure through the RPC. According to the method and device disclosed by the invention, a requirement on a lightweight application program can be met, andthe burden of the system also can be reduced; therefore, the device is particularly suitable for being used in application scenes with simple functions and good network situations.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of distributed systems, in particular to a UDP communication-based remote calling method and device. Background technique

[0002] Remote Procedure Call (Remote Procedure Call, RPC) is a way of requesting services from remote computer programs through the network without knowing the underlying network technology. RPC adopts the client / server model. A requester is a client, and a service provider is a server. First, the client calling process sends a call message with process parameters to the service process, and then waits for a reply message. On the server side, the process stays asleep until the call message arrives. When a call message arrives, the server obtains the process parameters, calculates the result, sends a reply message, and then waits for the next call message. Finally, the client call process receives the reply message, obtains the process result, and then the call execution continues. ...

Examples

Embodiment Construction

[0047] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0048] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0049] Next, a remote calling method based on UDP communication provided by the embodiment of the present invention is introduced in detail. figure 2 A signaling diagram of a remote calling method b...