The present application claims the priority of the Chinese patent application No. 201910897838.8, filed on Sep. 23, 2019 and entitled “System for Providing Exact Communication Delay guarantee of Request Response for Distributed Service”, which is incorporated herein by reference.
The present invention relates to a distributed service system, in particular to a system for providing exact communication delay guarantee of a request response for a distributed service.
During the development of the Internet, a single server or client model was initially used to provide service to a user. Along with the development of processor level and clustering technology, the service processing time of a centralized service model has been significantly shortened, however, the problem of untimely service brought by long-distance communication under this model has become increasingly prominent. The essence of the problem lies in that service delay includes such two parts as service processing delay and service message transmission delay, wherein the service processing delay may be possibly minimized by enhancing the capacity of a single machine hardware or horizontal expansion, while the service message transmission delay may be several orders of magnitude higher than the service processing delay since the service message transmission delay is limited by the existing transport layer technology and objective transmission distance. To this end, more and more distributed service systems have emerged. In these distributed service systems, a plurality of servers are deployed in the network in a decentralized manner, and the user chooses a nearest server to provide service for himself, thereby shortening the transmission delay of a service message and greatly shortening the average service delay of a system. However, an existing distributed service system may only ensure the best effort to provide the nearest service, and may not know a return delay of the request in advance before the request occurs. In some delay-sensitive business scenarios, such as Telematics or Industrial IoT, an upper-layer business has strict requirements on the response delay of the service, which requires the service system to return within a certain delay, instead of doing its best to return as soon as possible.
Since the service delay includes both service processing delay and service message transmission delay, the service message transmission delay is several orders of magnitude higher than the service processing delay in many scenarios and becomes a decisive factor in service delay.
The objective of the present invention is to overcome the above technical shortcomings and propose a new distributed service system with delay guarantee characteristics in a distributed service scenario with strict requirements for service response delay, to provide request/response exact communication delay guarantee for all the users in a network.
To achieve the above objective, embodiment 1 of the present invention provides a system for providing exact communication delay guarantee of a request response for a distributed service, wherein the system includes a plurality of service provider nodes, a management node, and a plurality of proxy nodes; a set of users served by each service provider node constitutes a coverage area of the service provider node, and a communication delay between any user in the coverage area and the service provider node is less than a predetermined delay guarantee value; a physical network enables, according to division of the coverage areas of the service provider nodes, each user in the network to be located in a coverage area, and each user is served by at least one service provider node; and the coverage area includes a plurality of adjacent areas, and each service provider node has a plurality of neighbor nodes;
As an improvement of the above system, the neighbor node information includes a network address, geographical coordinates and a node service ability; the information reported by each service provider node to the management node includes: the network address, the geographical coordinates and the node service ability; and the request parameters carry the network address, the geographical coordinates and the required service ability included in the information of the proxy node or the user himself.
As an improvement of the above system, the manner in which the information of the proxy node or the user is matched with the service provider node information stored in the management node includes: one or more of IP segment matching, geographical position coordinate matching and service ability matching.
As an improvement of the above system, the manner in which the proxy node acquires the service request message sent by the user includes: directly obtaining the service request message directly sent to the proxy node by the user, or obtaining the service request message sent to the service provider node by the user through capturing.
As an improvement of the above system, the manner in which the proxy node obtains the service response message is as follows:
Embodiment 2 of the present invention provides a method for acquiring exact communication delay guarantee service, which is implemented based on the above system, wherein the method includes:
As an improvement of the above method, the method further includes:
As an improvement of the above method, the method further includes:
As an improvement of the above method, the method further includes:
As an improvement of the above method, when the number of saved service provider nodes in the service provider node list capable of providing exact communication delay guarantee is greater than 1, according to the characteristic of the service provider nodes themselves, an optimal service provider node is selected from the service provider node list, and the characteristic of the service provider nodes themselves includes: hardware ability and local structure of the node.
As an improvement of the above method, the manner of sending the service request message to the service provider node is as follows: directly sending the service request message to the optimal service provider node, or sending the service request message to the proxy node.
As an improvement of the above method, the manner of receiving the service response message is as follows: directly receiving the service response message returned by the service provider node, or receiving the service response message forwarded by the proxy node.
Embodiment 3 of the present invention provides a device for acquiring exact communication delay guarantee service, wherein the device includes:
Embodiment 4 of the present invention provides a terminal device, including a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the above method when executing the computer program.
The present invention has the following beneficial effects:
Technical solutions of the present invention will be described in details below in combination with accompanying drawings and specific embodiments.
The present invention provides a system for providing exact communication delay guarantee of a request response for a distributed service, and the system includes a plurality of service provider nodes distributed in the service area, a management node and a plurality of proxy nodes deployed at the user network access position. Wherein the service provider node is provided with a pre-deployed system service program, to provide these deployed services for users within the node service area; a set of users served by each service provider node constitutes a coverage area of the service provider node, and a communication delay between any user in the coverage area and the service provider node is less than a predetermined delay guarantee value; a physical network enables, according to division of the coverage areas of the service provider nodes, each user in the network to be located in a certain coverage area, and each user is served by at least one service provider node; according to a network connection relationship, each coverage area includes a plurality of adjacent areas, and each corresponding service provider node has a plurality of neighbor nodes; the management node saves information of all the service provider nodes, and responds to a list acquisition request of the proxy node or the service provider node of the user through a manner of information matching; the proxy node is deployed at the position of the network access point, selects a proper service provider node from the service provider node list acquired from the management node and saves the proper service provider node, and may respond to the acquisition request of the service provider node of the user, and may forward the service request to the service provider node on behalf of the user or directly respond to the service request of the user; the user requests the above deployed service from the service provider node in his coverage area; a proper service provider node may be selected in such three manners as manually configuring by a network administrator, acquiring the service provider node from the proxy node or acquiring the service provider node from a management system to provide service for the user, and the distributed service may be used through such two manners as sending a service request to the service provider node or sending a service request to the proxy node. Through the above system, the request/response communication delay may be ensured to be within a certain exact delay value when the distributed service is provided to the user in the network.
As shown in
Each service provider node saves neighbor node information, and the neighbor node information may include, but is not limited to, the network address, geographic coordinates, and the node service ability, etc.;
Wherein, the network is composed of network devices and communication lines between the devices; at least one pair of network devices are directly connected through communication lines in two network areas which are adjacent to each other.
The management node is responsible for storing the information reported by all the service provider nodes, and the management node responds to a list acquisition request of the proxy node or the service provider node of the user, wherein the information carried in the request parameters includes but is not limited to the network address of the proxy node or the user, the geographical coordinates and the required service ability, etc.; the management node matches the information of the proxy node or the user with the service provider node information stored in the management node, and returns the recommended service provider node list to the proxy node or the user; and the matching manner includes but is not limited to IP segment matching, geographical position coordinate matching and service ability matching.
The proxy node is deployed at the position of the user network access point, and may respond to the acquisition request of the service provider node of the user, and may also acquire and respond to the service request of the user, wherein, the deployment manner of the proxy node in the network access point device includes: deployment of the proxy node program, and deployment to a forwarder of the proxy node, etc.
The user may acquire the address of the proxy node deployed on the network access point through the existing network mechanism, the existing network mechanism may include but is not limited to acquiring a current gateway address command, etc.; the proxy node requests a service provider node list from the management node, and selects and saves a proper service provider node in the list, wherein considerations in the selection process may include but are not limited to the communication delay value from the proxy node to the service provider node, the characteristic of each service provider node itself (including, but not limited to, hardware ability, local structural characteristics, etc.). The proxy node responds to the acquisition request of the service provider node of the user, and returns the service provider node information saved by the proxy node; the proxy node may obtain the service request message directly sent by the user to the proxy node, or may obtain the service request message sent by the user to the service provider node through capturing, and the proxy node returns to the user the service response message corresponding to the service request message;
The proxy node is deployed at the position of the network access point, and the communication message from the user to the service provider node must pass through the network access point. The proxy node selects the proper service provider node from the service provider node list acquired by the management node and saves the proper service provider node, and may respond to the acquisition request of the service provider node of the user, and may also acquire and respond to the service request of the user.
The proxy node acquires the service provider nodes from the management node in the following steps:
The proxy node may acquire the user service request message through the following two manners:
The proxy node may obtain the service response message corresponding to the service request message through the following two manners:
The proxy node requests the service provider node list from the management node, the request parameters carry their own information, and the information may include but is not limited to the network address and geographical coordinates;
The proxy node acquires the service provider node in the following steps:
Based on the above system, embodiment 2 of the present invention further provides a method for acquiring exact communication delay guarantee service, and the method includes:
The following steps are included when the user accesses the distributed network through an access proxy:
When the number of saved service provider nodes is greater than 1, according to the characteristic of the service provider nodes themselves, an optimal service provider node is selected to send the service request message, and the characteristic of the service provider nodes themselves includes: hardware ability and local structure of the node.
The service response message may be returned by the service provider node, or the corresponding service response message may be returned by the proxy node.
The distributed network provides service based on request/response manner to the user through service programs deployed in the service provider nodes, and the specific service may include but is not limited to database service, web search and other services.
The communication delay includes service request communication delay and service response communication delay;
Embodiment 3 of the present invention provides a device for acquiring exact communication delay guarantee service, wherein the device includes:
Embodiment 4 of the present invention provides a terminal device, including a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor implements the method of the claims and embodiment 2 when executing the computer program. The terminal device may be a computer device or a mobile terminal; and the mobile terminal includes: a mobile phone, a tablet computer and a wearable device, etc.
In several embodiments provided in the present application, it should be understood that the disclosed device and method may also be implemented in other ways. The device embodiment described above is merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possibly implemented architecture, function, and operation of the device, method, and computer program products according to several embodiments of the present invention. In this regard, each box in a flowchart or block diagram may represent a module, a program segment or part of a code, and the module, the program segment or part of the code contains one or more executable instructions for implementing a prescribed logical function. It should also be noted that, in some execution modes as replacements, the functions indicated in the boxes may also occur in a different order than that indicated in the accompanying drawings. For example, two consecutive boxes may actually be executed substantially in parallel, and they may sometimes be executed in an opposite order, depending on the functions involved. It should also be noted that, each box in the block diagram and/or the flowchart and the combination of boxes in the block diagram and/or flowchart may be implemented with a dedicated hardware-based system that performs a specified function or action, or may be implemented with a combination of dedicated hardware and computer instructions.
Alternatively, each function module in each embodiment of the present invention may be integrated together to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
When the function is implemented in the form of a software function module and sold or used as a stand-alone product, the function may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention, or the part of the technical solution that essentially contributes to the prior art, or part of the technical solution may be embodied in the form of a software product, the computer software product is stored in a storage medium, and includes a number of instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in various embodiments of the present invention. The aforementioned storage media include: USB flash drives, mobile hard drives, read-only memories (ROMs), random access memories (RAMs), disks, or CD-ROMs, and other media that may store program codes.
Finally, it should be noted that the above embodiments are merely used to illustrate, rather than limiting, technical solutions of the present invention. Although the present invention is described in detail with reference to the embodiments, those skilled in the art should understand that, any modification or equivalent substitution made to the technical solution of the present invention does not depart from the spirit and scope of the technical solutions of the present invention, and shall all fall within the scope of the claims of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201910897838.8 | Sep 2019 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2019/108081 | 9/26/2019 | WO |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2021/056314 | 4/1/2021 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
11552785 | Stephenson | Jan 2023 | B2 |
20020107040 | Crandall | Aug 2002 | A1 |
20080189429 | DaCosta | Aug 2008 | A1 |
20090047948 | Turetsky | Feb 2009 | A1 |
20100238802 | Lei | Sep 2010 | A1 |
20100278046 | Mateos Perez et al. | Nov 2010 | A1 |
20120110462 | Eswaran | May 2012 | A1 |
20130114504 | Zhao | May 2013 | A1 |
20130166654 | Hjelm et al. | Jun 2013 | A1 |
20140006951 | Hunter | Jan 2014 | A1 |
20140038654 | Ahmadi | Feb 2014 | A1 |
20150052247 | Threefoot | Feb 2015 | A1 |
20150304984 | Khemani | Oct 2015 | A1 |
20170004548 | Goel | Jan 2017 | A1 |
20180026938 | Xiang | Jan 2018 | A1 |
20180160418 | Luo | Jun 2018 | A1 |
20180241802 | Bernat | Aug 2018 | A1 |
20220353320 | Li | Nov 2022 | A1 |
Number | Date | Country |
---|---|---|
101345628 | Jan 2009 | CN |
101883124 | Nov 2010 | CN |
101969396 | Feb 2011 | CN |
102546226 | Jul 2012 | CN |
103298053 | Sep 2013 | CN |
104734991 | Jun 2015 | CN |
107645525 | Jan 2018 | CN |
2301635 | Mar 2011 | EP |
WO-2016137496 | Sep 2016 | WO |
Entry |
---|
Aug. 4, 2021 Office Action and Search Report issued in Chinese Patent Application No. 201910897838.8. |
Dec. 23, 2021 Office Action issued in Chinese Patent Application No. 201910897838.8. |
Jun. 23, 2020 International Search Report issued in International Patent Application No. PCT/CN2019/108081. |
Number | Date | Country | |
---|---|---|---|
20220353320 A1 | Nov 2022 | US |