CN117729258B - Edge service gateway system and method based on cloud edge cooperation - Google Patents

Edge service gateway system and method based on cloud edge cooperation Download PDF

Info

Publication number
CN117729258B
CN117729258B CN202410179058.0A CN202410179058A CN117729258B CN 117729258 B CN117729258 B CN 117729258B CN 202410179058 A CN202410179058 A CN 202410179058A CN 117729258 B CN117729258 B CN 117729258B
Authority
CN
China
Prior art keywords
host
service gateway
edge service
response
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410179058.0A
Other languages
Chinese (zh)
Other versions
CN117729258A (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.)
Green City Technology Industry Service Group Co ltd
Original Assignee
Green City Technology Industry Service Group 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 Green City Technology Industry Service Group Co ltd filed Critical Green City Technology Industry Service Group Co ltd
Priority to CN202410179058.0A priority Critical patent/CN117729258B/en
Publication of CN117729258A publication Critical patent/CN117729258A/en
Application granted granted Critical
Publication of CN117729258B publication Critical patent/CN117729258B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the field of edge gateways, and discloses an edge service gateway system and method based on cloud edge cooperation, wherein the system comprises the following steps: the request classification module is used for carrying out request classification on the service requests in the edge service gateway to obtain classification requests; the response return module is used for returning the request response of the first cloud server to the classification request to the first coverage host through the edge service gateway to obtain a first gateway management result of the edge service gateway; the response receiving module is used for receiving a first host response of a target host in the second overlay host in the edge service gateway; the host grouping module is used for grouping the hosts of the target hosts based on the first host response; a response transfer module for transferring the second host response from the host into the edge service gateway; and the gateway management module is used for returning the screening response to the second cloud server to obtain a second gateway management result of the edge service gateway. The invention can improve the task distribution capacity of the gateway.

Description

Edge service gateway system and method based on cloud edge cooperation
Technical Field
The invention relates to the field of edge gateways, in particular to an edge service gateway system and method based on cloud edge cooperation.
Background
The cloud edge cooperative edge service gateway system is a system for cooperatively scheduling data between an edge service gateway and a cloud server, and the edge service gateway is equipment connected between a terminal host equipment and the cloud server and used for coordinating data scheduling between a host end and the cloud server end.
At present, the prior art utilizes the edge service gateway to perform data screening and link control, but more of the prior art realizes that a host sends data to a remote server, but the data control strategy for the server to send the data to the host is not described too much, and secondly, the host in the prior art mainly controls the data acquisition content of a plurality of slave hosts, and the actual data acquisition result of the slave hosts is not forwarded to the edge gateway through the host, so that the edge gateway needs to be ready to receive the data acquired by the plurality of slave hosts at any time, and screens the data, the task amount of the edge gateway is larger, the throughput is required to be larger, and if the data is not received timely, the data is lost. Therefore, the edge service gateway based on cloud edge cooperation is insufficient in task distribution capability.
Disclosure of Invention
In order to solve the problems, the invention provides an edge service gateway system and an edge service gateway method based on cloud edge coordination, which can improve the task distribution capacity of the edge service gateway based on cloud edge coordination.
In a first aspect, the present invention provides an edge service gateway system based on cloud edge collaboration, including:
the request classification module is used for sending a service request from a first coverage host of an edge service gateway to the edge service gateway, and carrying out request classification on the service request in the edge service gateway to obtain a classification request;
The response return module is used for identifying a forwarding route of the classification request, forwarding the classification request from the edge service gateway to a preset first cloud server based on the forwarding route, and returning a request response of the first cloud server to the classification request to the first overlay host through the edge service gateway to obtain a first gateway management result of the edge service gateway;
The response receiving module is used for receiving a host request sent by a preset second cloud server in the edge service gateway, broadcasting the host request to a preset second coverage host by using the edge service gateway, and then receiving a first host response of a target host in the second coverage host in the edge service gateway;
The host grouping module is used for grouping the target hosts based on the first host response to obtain grouping hosts, wherein the grouping hosts comprise a master host and a slave host;
a response transfer module, configured to collect, in the master host, second host responses of the master host and the slave host to the host requests, and transfer the second host responses from the master host to the edge service gateway;
And the gateway management module is used for carrying out response screening on the second host response in the edge service gateway to obtain a screening response, and returning the screening response to the second cloud server to obtain a second gateway management result of the edge service gateway.
In a possible implementation manner of the first aspect, the classifying, in the edge service gateway, the service request to obtain a classified request includes:
Querying a data part and a non-data part of the service request in the edge service gateway;
Dividing the data portion into a first data portion and a second data portion using the non-data portion;
The similarity between each two of the second data portions is calculated using the following formula:
wherein, Representing the similarity,/>Representing the longest common word length between two second data portions,/>Representing an editing distance;
the classification request is determined using the similarity based on the first data portion and the second data portion.
In a possible implementation manner of the first aspect, the identifying a forwarding route of the classification request includes:
Collecting a destination network address of the classification request, and collecting a routing table for forwarding the classification request from the edge service gateway to the destination network address;
integrating the routing table to obtain an integrated routing table;
calculating a path length in the integrated routing table for forwarding the classification request from the edge service gateway to the destination network address using the formula:
wherein, Representing the path length, n representing the total number of router nodes on the route forwarding the classification request from the edge service gateway to the destination network address, 1 representing the node where the destination network address is located,Representing a total number of nodes experienced in forwarding the classification request from the edge service gateway to the destination network address;
Selecting a shortest route from the integrated routing table for forwarding the classification request from the edge service gateway to the destination network address using the path length;
and taking the shortest route as the forwarding route.
In one possible implementation manner of the first aspect, the forwarding, based on the forwarding route, the classification request from the edge service gateway to a preset first cloud server includes:
Calculating a network duration of a segment start forwarding the classification request from the edge service gateway to the same route segment when the same route segment exists between each of the forwarding routes;
performing request sequencing on the classified requests by using the network duration to obtain sequencing requests;
calculating a time difference between each two of the sorting requests using the following formula:
wherein, Representing the time difference,/>Representing the network duration of the j-th one of the sorting requests,Representing the network duration of the j+1th sorting request in the sorting requests;
Calculating the residual quantity to be transmitted of each preamble request in the sequencing requests at the end of the time difference value;
Determining a first forwarding order between the remaining amount to be transmitted and the newly arrived amount of data when the remaining amount to be transmitted is greater than the newly arrived amount of data in the ordering request, and determining a second forwarding order between the remaining amount to be transmitted and the newly arrived amount of data when the remaining amount to be transmitted is not greater than the newly arrived amount of data;
And forwarding the classification request from the edge service gateway to a preset first cloud server by utilizing the forwarding route according to the first forwarding sequence and the second forwarding sequence.
In a possible implementation manner of the first aspect, the calculating a network duration of a segment start of forwarding the classification request from the edge service gateway to the same routing segment includes:
calculating a segment-initiated network duration for forwarding the classification request from the edge service gateway to the same routing segment using the formula:
wherein, Representing the network duration,/>Representing the maximum data bit amount of a single pass of the edge service gateway,/>Representing the maximum data bit amount per pass of a router forwarded from the edge service gateway to the segment start of the same routing segment,/>Representing the data transmission rate of the edge service gateway,/>Representing the data transfer rate of a router,/>Representing the number of routers,/>Representing one-way propagation delay.
In a possible implementation manner of the first aspect, the calculating a remaining amount to be transmitted at the end of the time difference for each preamble request in the ordering request includes:
calculating the remaining amount to be transmitted of each preamble request in the ordering requests at the end of the time difference by using the following formula:
wherein, Representing the remaining amount to be transmitted,/>Representing the initial data volume,/>Data transfer rate of node representing segment start,/>Representing the time difference.
In a possible implementation manner of the first aspect, the performing, based on the first host response, host grouping on the target host to obtain a grouped host includes:
determining a response sequence of the target host in the first host response;
based on the response sequence, sequencing the target hosts to obtain a host sequence;
calculating a master host sequence number in the host sequence using the following formula:
wherein, Representing the host sequence number,/>Representing the high order sequence number when the host sequence number is calculated for the v time,/>Representing the low order sequence number when the main host sequence number is calculated for the v time;
Dividing a master host and a slave host in the target host by using the master host serial numbers, and determining the grouping host by using the master host and the slave host.
In a possible implementation manner of the first aspect, the collecting, in the master host, second host responses of the master host and the slave host to the host request includes:
Transmitting a slave-host response of the slave host to the master host;
Splicing the response of the slave host with the response of the master host in the master host to obtain a spliced response;
and marking the splicing response by using the serial number of the slave host and the serial number of the master host to obtain the second host response.
In a possible implementation manner of the first aspect, the performing, in the edge service gateway, response screening on the second host response, to obtain a screened response includes:
Calculating an outlier of the second host response in the edge service gateway;
determining a target host response from the second host responses based on the outliers;
Dividing a target master host and a target slave host in the target hosts corresponding to the target host responses by using the edge service gateway;
Notifying the target host to collect the residual host responses of the target host and the target slave host by using the edge service gateway;
Returning the remaining host responses from the target host back into the edge service gateway;
and in the edge service gateway, splicing the target host response and the residual host response to obtain the screening response.
In a second aspect, the present invention provides an edge service gateway method based on cloud edge collaboration, where the method includes:
sending a service request from a first coverage host of an edge service gateway to the edge service gateway, and carrying out request classification on the service request in the edge service gateway to obtain a classification request;
Identifying a forwarding route of the classification request, forwarding the classification request from the edge service gateway to a preset first cloud server based on the forwarding route, and returning a request response of the first cloud server to the classification request to the first overlay host through the edge service gateway to obtain a first gateway management result of the edge service gateway;
receiving a host request sent by a preset second cloud server in the edge service gateway, broadcasting the host request to a preset second coverage host by using the edge service gateway, and then receiving a first host response of a target host in the second coverage host in the edge service gateway;
Based on the first host response, host grouping is carried out on the target host, and a grouping host is obtained, wherein the grouping host comprises a master host and a slave host;
collecting in the master host a second host response to the host request from the master host and the slave host, and transmitting the second host response from the master host to the edge service gateway;
And carrying out response screening on the second host response in the edge service gateway to obtain a screening response, and returning the screening response to the second cloud server to obtain a second gateway management result of the edge service gateway.
Compared with the prior art, the technical principle and beneficial effect of this scheme lie in:
According to the embodiment of the invention, the service requests are classified in the edge service gateway to be used for aggregating the service requests with the same request content, so that the number of requests needing to be forwarded in the next step is reduced, and the task amount of data forwarding is reduced. Therefore, the edge service gateway system and the method based on cloud edge coordination can improve task distribution capacity of the edge service gateway based on cloud edge coordination.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic flow chart of an edge service gateway system based on cloud edge collaboration according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an edge service gateway system based on the edge service gateway system with cloud edge cooperation according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating one step of an edge service gateway system based on cloud edge collaboration according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of an edge service gateway system based on cloud edge collaboration according to an embodiment of the present invention.
Detailed Description
It should be understood that the detailed description is presented by way of example only and is not intended to limit the invention.
The embodiment of the invention provides an edge service gateway method based on cloud edge coordination, and an execution subject of the edge service gateway method based on cloud edge coordination comprises, but is not limited to, at least one of a server, a terminal and the like which can be configured to execute the electronic equipment of the method provided by the embodiment of the invention. In other words, the edge service gateway method based on cloud edge collaboration may be performed by software or hardware installed in a terminal device or a server device, where the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flow chart of an edge service gateway method based on cloud edge collaboration according to an embodiment of the invention is shown. The edge service gateway method based on cloud edge cooperation described in fig. 1 includes:
S1, sending a service request from a first coverage host of an edge service gateway to the edge service gateway, and carrying out request classification on the service request in the edge service gateway to obtain a classification request.
Fig. 2 is a schematic diagram of an edge service gateway system based on the edge service gateway system with cloud edge cooperation according to an embodiment of the present invention. In fig. 2,1 denotes a host, 2 denotes an edge service gateway, 3 denotes a router, and 4 denotes a cloud server.
In the embodiment of the present invention, the edge service gateway refers to a device connected between a terminal host device and a cloud server, further, the first overlay host refers to a host in a network accessing the edge service gateway, and it should be noted that, the first overlay host specifically refers to a host that needs to request the cloud server to provide data, and further, the service request refers to a request that the first overlay host initiates to the cloud server to provide data.
Optionally, the process of sending the service request from the first overlay host of the edge service gateway to the edge service gateway is a process of transmitting the service request from the host to the router through a data transmission protocol.
Further, in the embodiment of the invention, the service requests with the same request content are aggregated by classifying the service requests in the edge service gateway, so that the number of the requests to be forwarded in the next step is reduced, and the task amount of data forwarding is reduced.
In an embodiment of the present invention, the classifying, in the edge service gateway, the service request to obtain a classified request includes: querying a data part and a non-data part of the service request in the edge service gateway; dividing the data portion into a first data portion and a second data portion using the non-data portion; the similarity between each two of the second data portions is calculated using the following formula:
wherein, Representing the similarity,/>Representing the longest common word length between two second data portions,/>Representing an editing distance;
the classification request is determined using the similarity based on the first data portion and the second data portion.
Wherein the data portion refers to application layer data and the non-data portion refers to header and trailer portions added to the data portion when the data portion is encapsulated as a protocol, since the service request is transmitted in the network in the form of a protocol.
It should be noted that, the non-data portion may include data such as a protocol total length and a data portion length, so that the non-data portion may be classified into one type, that is, the second data portion, and the non-data portion may be classified into another type, that is, the first data portion, so that a plurality of first data portions and a plurality of second data portions may be obtained, and further, the similarity of the data portions may be calculated, so that service requests of similar data portions are classified into one type, service requests of dissimilar data portions are classified into another type, so that service requests of the first data portion and service requests of similar data portions, that is, service requests of dissimilar data portions, may be obtained, and the service requests obtained by these classifications may be used as the classification requests.
S2, identifying a forwarding route of the classification request, forwarding the classification request from the edge service gateway to a preset first cloud server based on the forwarding route, and returning a request response of the first cloud server to the classification request to the first overlay host through the edge service gateway to obtain a first gateway management result of the edge service gateway.
The embodiment of the invention is used for selecting the path capable of transmitting the classification request most quickly by identifying the forwarding route of the classification request.
The forwarding route refers to a path formed by router nodes.
In an embodiment of the present invention, the identifying the forwarding route of the classification request includes: collecting a destination network address of the classification request, and collecting a routing table for forwarding the classification request from the edge service gateway to the destination network address; integrating the routing table to obtain an integrated routing table; calculating a path length in the integrated routing table for forwarding the classification request from the edge service gateway to the destination network address using the formula:
wherein, Representing the path length, n representing the total number of router nodes on the route forwarding the classification request from the edge service gateway to the destination network address, 1 representing the node where the destination network address is located,Representing a total number of nodes experienced in forwarding the classification request from the edge service gateway to the destination network address;
Selecting a shortest route from the integrated routing table for forwarding the classification request from the edge service gateway to the destination network address using the path length; and taking the shortest route as the forwarding route.
The destination network address refers to a destination IP address, and the destination IP address refers to an IP address of a final network that the classification request needs to reach, that is, an IP address of a subsequent first cloud server.
Further, the embodiment of the invention forwards the classification request from the edge service gateway to a preset first cloud server based on the forwarding route, so as to determine the sequence of data forwarding when the forwarding route has conflict, thereby reducing the conflict.
In an embodiment of the present invention, forwarding the classification request from the edge service gateway to a preset first cloud server based on the forwarding route includes: calculating a network duration of a segment start forwarding the classification request from the edge service gateway to the same route segment when the same route segment exists between each of the forwarding routes; performing request sequencing on the classified requests by using the network duration to obtain sequencing requests; calculating a time difference between each two of the sorting requests using the following formula:
wherein, Representing the time difference,/>Representing the network duration of the j-th one of the sorting requests,Representing the network duration of the j+1th sorting request in the sorting requests;
Calculating the residual quantity to be transmitted of each preamble request in the sequencing requests at the end of the time difference value; determining a first forwarding order between the remaining amount to be transmitted and the newly arrived amount of data when the remaining amount to be transmitted is greater than the newly arrived amount of data in the ordering request, and determining a second forwarding order between the remaining amount to be transmitted and the newly arrived amount of data when the remaining amount to be transmitted is not greater than the newly arrived amount of data; and forwarding the classification request from the edge service gateway to a preset first cloud server by utilizing the forwarding route according to the first forwarding sequence and the second forwarding sequence.
The sequence request refers to a sequence of requests arranged according to the sequence from small to large of the network duration, the preamble request refers to one sequence request with a shorter network duration when two sequence requests are compared, the remaining amount to be transmitted refers to a sequence in which the preamble request arrives at the beginning of a segment when the time period of the network duration ends, the preamble request is firstly transmitted with the preamble request, when the preamble request arrives at the beginning of the segment, that is, when the segment start receives the newly arrived amount of data, the initial amount of data of the preamble request is subtracted by the amount of data already transmitted in the time difference to obtain the remaining amount to be transmitted, further, the first forwarding sequence refers to a sequence in which the remaining amount to be transmitted is firstly transmitted and then the newly arrived amount of data is transmitted, and the second forwarding sequence refers to a sequence in which the amount of data of the newly arrived amount of data is transmitted firstly and then the remaining amount to be transmitted, and the data of which is required to be transmitted is more preferentially when the data of a plurality of data needs to be transmitted at the beginning of segments.
In yet another embodiment of the present invention, the calculating a network duration of segment start forwarding the classification request from the edge service gateway to the same routing segment includes: calculating a segment-initiated network duration for forwarding the classification request from the edge service gateway to the same routing segment using the formula:
wherein, Representing the network duration,/>Representing the maximum data bit amount of a single pass of the edge service gateway,/>Representing the maximum data bit amount per pass of a router forwarded from the edge service gateway to the segment start of the same routing segment,/>Representing the data transmission rate of the edge service gateway,/>Representing the data transfer rate of a router,/>Representing the number of routers,/>Representing one-way propagation delay.
In yet another embodiment of the present invention, the calculating the remaining amount to be transmitted at the end of the time difference for each preamble request in the ordering request includes: calculating the remaining amount to be transmitted of each preamble request in the ordering requests at the end of the time difference by using the following formula:
wherein, Representing the remaining amount to be transmitted,/>Representing the initial data volume,/>Data transfer rate of node representing segment start,/>Representing the time difference.
S3, receiving a host request sent by a preset second cloud server in the edge service gateway, broadcasting the host request to a preset second coverage host by using the edge service gateway, and then receiving a first host response of a target host in the second coverage host in the edge service gateway.
In the embodiment of the present invention, the second overlay host refers to all hosts that access the edge service gateway.
Further, the embodiment of the invention receives the first host response of the target host in the second overlay host in the edge service gateway, so as to coordinate the response of the target host to the second cloud server by using the edge service gateway.
S4, based on the first host response, host grouping is carried out on the target host, and a grouping host is obtained, wherein the grouping host comprises a master host and a slave host.
According to the embodiment of the invention, the host grouping is carried out on the target host based on the first host response to obtain the grouping host, so that the host task management of the edge service gateway is distributed to the host to realize, and the task distribution capacity of the edge service gateway is improved.
In an embodiment of the present invention, the performing host grouping on the target host based on the first host response to obtain a grouped host includes: determining a response sequence of the target host in the first host response; based on the response sequence, sequencing the target hosts to obtain a host sequence; calculating a master host sequence number in the host sequence using the following formula:
wherein, Representing the host sequence number,/>Representing the high order sequence number when the host sequence number is calculated for the v time,/>Representing the low order sequence number when the main host sequence number is calculated for the v time;
Dividing a master host and a slave host in the target host by using the master host serial numbers, and determining the grouping host by using the master host and the slave host.
The host sequence refers to a sequence arranged according to the sequence of the responses.
Optionally, the dividing the master host and the slave host in the target host by using the master host serial numbers includes: after calculating the host sequence number, taking the previous sequence number (the sequence number up to the previous host sequence number) and the current host sequence number as a group, for example, when the host sequence is 1234567, the host sequence number calculated for the first time is 4, 1-4 is taken as a group (4 is 1-4 host sequence numbers), 5-7 is taken as a group (5 is 5-7 host sequence numbers), if the length of the divided packet is longer, further division is needed, for example, the packet with the packet length of 2 is wanted to be divided, then the host sequence numbers in 1-4 and the host sequence number of 5-7 are calculated, the calculated host sequence numbers are 2 and 6, then 1-2 is divided into packets (2 is 1-2 host sequence number, 1 is sub-host sequence number), 3-4 is divided into packets (3 is 3-4 host sequence number, 4 is sub-host sequence number), 5-6 is divided into packets (5-6 host sequence numbers, 5 is sub-6 host sequence number), and 7 is divided into 7 host sequence numbers.
S5, collecting second host responses of the host and the slave host to the host request in the host, and transmitting the second host responses to the edge service gateway from the host.
In one embodiment of the present invention, referring to fig. 3, the collecting, in the master host, the second host responses of the master host and the slave host to the host request includes:
S301, transmitting a slave host response of the slave host to the master host;
s302, splicing the response of the slave host with the response of the master host in the master host to obtain a spliced response;
s303, marking the splicing response by using the serial numbers of the slave hosts and the serial numbers of the master hosts to obtain the second host response.
And S6, carrying out response screening on the second host response in the edge service gateway to obtain a screening response, and returning the screening response to the second cloud server to obtain a second gateway management result of the edge service gateway.
According to the embodiment of the invention, the response screening is carried out on the second host response in the edge service gateway so as to delete the abnormal response, and the response with higher quality is reserved.
In an embodiment of the present invention, the performing, in the edge service gateway, response screening on the second host response to obtain a screened response includes: calculating an outlier of the second host response in the edge service gateway; determining a target host response from the second host responses based on the outliers; dividing a target master host and a target slave host in the target hosts corresponding to the target host responses by using the edge service gateway; notifying the target host to collect the residual host responses of the target host and the target slave host by using the edge service gateway; returning the remaining host responses from the target host back into the edge service gateway; and in the edge service gateway, splicing the target host response and the residual host response to obtain the screening response.
Optionally, the process of determining the target host response from the second host responses based on the outlier is a process of deleting the second host response with a higher outlier, and further, the process of dividing the target host and the target slave host in the target host corresponding to the target host response by using the edge service gateway is similar to the process of grouping the target hosts based on the first host responses, and the principle of obtaining the grouped hosts is similar, and will not be further described herein.
It should be noted that, the second host response is a part of the host response, and the response after the second host response is spliced with the remaining host responses is a complete response.
In yet another embodiment of the present invention, the calculating, in the edge service gateway, an outlier of the second host response includes: zero filling is carried out on the second host response, and zero filling response is obtained; based on the zero-fill responses, an outlier for each of the second host responses is calculated using the following formula:
wherein, Representing the outlier,/>Representing the total length of the b-th second host response,/>And b represents the sequence number of the second host response, and a represents the sequence number of any one of the second host responses except the b-th second host response.
Optionally, the process of zero-padding the second host responses is used to ensure that each second host response is consistent in length after the end zero-padding.
When KMP character string matching is performed between character strings, if character matching fails, the a-th second host response will shift left, so as to match with the remaining characters after the failed character matching in the b-th second host response, thus, in the following stepsThe greater the number of times that the match is failed, the greater the difference between the two strings.
It can be seen that, in the embodiment of the present invention, by classifying the service request in the edge service gateway, so as to be used for aggregating service requests with the same request content, thereby reducing the number of requests to be forwarded in the next step and reducing the task amount of data forwarding, by identifying the forwarding route of the classified request, so as to be used for selecting a path capable of transmitting the classified request most quickly, further, by forwarding the classified request from the edge service gateway to a preset first cloud server based on the forwarding route, so as to be used for determining the sequence of data forwarding when the forwarding routes collide, thereby reducing the collision, further, by receiving a first host response of a target host in the second overlay host in the edge service gateway, so as to be used for coordinating the response of the target host to the second cloud server by using the edge service gateway, by grouping the target host based on the first host response, so as to obtain a grouping, so as to be used for enhancing the response of the edge service gateway to be used for achieving the task-specific host, so as to implement the quality-preserving response of the host in the edge service gateway. Therefore, the edge service gateway method based on cloud edge coordination provided by the embodiment of the invention can improve the task distribution capacity of the edge service gateway based on cloud edge coordination.
Fig. 4 is a functional block diagram of an edge service gateway system based on cloud edge collaboration according to the present invention.
The edge service gateway system 400 based on cloud edge cooperation can be installed in electronic equipment. Depending on the implementation function, the edge service gateway system based on cloud edge collaboration may include a request classification module 401, a response return module 402, a response receiving module 403, a host grouping module 404, a response transmitting module 405, and a gateway management module 406. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the embodiment of the present invention, the functions of each module/unit are as follows:
The request classification module 401 is configured to send a service request from a first overlay host of an edge service gateway to the edge service gateway, and classify the service request in the edge service gateway to obtain a classified request;
The response return module 402 is configured to identify a forwarding route of the classification request, forward the classification request from the edge service gateway to a preset first cloud server based on the forwarding route, and return, by using the edge service gateway, a request response of the first cloud server to the classification request to the first overlay host, so as to obtain a first gateway management result of the edge service gateway;
The response receiving module 403 is configured to receive, in the edge service gateway, a host request sent by a preset second cloud server, and receive, in the edge service gateway, a first host response of a target host in a preset second overlay host after broadcasting, by using the edge service gateway, the host request to the second overlay host;
the host grouping module 404 is configured to perform host grouping on the target host based on the first host response to obtain a grouped host, where the grouped host includes a master host and a slave host;
The response transmitting module 405 is configured to collect, in the master host, second host responses that the master host and the slave host request to the host, and transmit the second host responses to the edge service gateway from the master host;
the gateway management module 406 is configured to perform response screening on the second host response in the edge service gateway to obtain a screening response, and return the screening response to the second cloud server to obtain a second gateway management result of the edge service gateway.
In detail, the modules in the edge service gateway system 400 based on cloud edge coordination in the embodiment of the present invention use the same technical means as the edge service gateway method based on cloud edge coordination described in fig. 1 to 3 and can generate the same technical effects, which are not described herein.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An edge service gateway system based on cloud edge collaboration, the system comprising:
the request classification module is used for sending a service request from a first coverage host of an edge service gateway to the edge service gateway, and carrying out request classification on the service request in the edge service gateway to obtain a classification request;
The response return module is used for identifying a forwarding route of the classification request, forwarding the classification request from the edge service gateway to a preset first cloud server based on the forwarding route, and returning a request response of the first cloud server to the classification request to the first overlay host through the edge service gateway to obtain a first gateway management result of the edge service gateway;
The response receiving module is used for receiving a host request sent by a preset second cloud server in the edge service gateway, broadcasting the host request to a preset second coverage host by using the edge service gateway, and then receiving a first host response of a target host in the second coverage host in the edge service gateway;
The host grouping module is used for grouping the target hosts based on the first host response to obtain grouping hosts, wherein the grouping hosts comprise a master host and a slave host;
a response transfer module, configured to collect, in the master host, second host responses of the master host and the slave host to the host requests, and transfer the second host responses from the master host to the edge service gateway;
And the gateway management module is used for carrying out response screening on the second host response in the edge service gateway to obtain a screening response, and returning the screening response to the second cloud server to obtain a second gateway management result of the edge service gateway.
2. The system of claim 1, wherein said classifying the service request in the edge service gateway to obtain a classified request comprises:
Querying a data part and a non-data part of the service request in the edge service gateway;
Dividing the data portion into a first data portion and a second data portion using the non-data portion;
The similarity between each two of the second data portions is calculated using the following formula:
wherein, Representing the similarity,/>Representing the longest common word length between two second data portions,/>Representing an editing distance;
the classification request is determined using the similarity based on the first data portion and the second data portion.
3. The system of claim 1, wherein said identifying forwarding routes for said classification requests comprises:
Collecting a destination network address of the classification request, and collecting a routing table for forwarding the classification request from the edge service gateway to the destination network address;
integrating the routing table to obtain an integrated routing table;
calculating a path length in the integrated routing table for forwarding the classification request from the edge service gateway to the destination network address using the formula:
wherein, Representing the path length, n representing the total number of router nodes on the route forwarding the classification request from the edge service gateway to the destination network address, 1 representing the node where the destination network address is located,/>Representing a total number of nodes experienced in forwarding the classification request from the edge service gateway to the destination network address;
Selecting a shortest route from the integrated routing table for forwarding the classification request from the edge service gateway to the destination network address using the path length;
and taking the shortest route as the forwarding route.
4. The system of claim 1, wherein forwarding the classification request from the edge service gateway to a preset first cloud server based on the forwarding route comprises:
Calculating a network duration of a segment start forwarding the classification request from the edge service gateway to the same route segment when the same route segment exists between each of the forwarding routes;
performing request sequencing on the classified requests by using the network duration to obtain sequencing requests;
calculating a time difference between each two of the sorting requests using the following formula:
wherein, Representing the time difference,/>Representing the network duration of the j-th ordering request in the ordering requests,/>Representing the network duration of the j+1th sorting request in the sorting requests;
Calculating the residual quantity to be transmitted of each preamble request in the sequencing requests at the end of the time difference value;
Determining a first forwarding order between the remaining amount to be transmitted and the newly arrived amount of data when the remaining amount to be transmitted is greater than the newly arrived amount of data in the ordering request, and determining a second forwarding order between the remaining amount to be transmitted and the newly arrived amount of data when the remaining amount to be transmitted is not greater than the newly arrived amount of data;
And forwarding the classification request from the edge service gateway to a preset first cloud server by utilizing the forwarding route according to the first forwarding sequence and the second forwarding sequence.
5. The system of claim 4, wherein the calculating a network duration of segment start forwarding the classification request from the edge service gateway to the same routing segment comprises:
calculating a segment-initiated network duration for forwarding the classification request from the edge service gateway to the same routing segment using the formula:
wherein, Representing the network duration,/>Representing the maximum data bit amount of a single pass of the edge service gateway,/>Representing the maximum data bit amount per pass of a router forwarded from the edge service gateway to the segment start of the same routing segment,/>Representing the data transmission rate of the edge service gateway,/>Representing the data transfer rate of a router,/>Representing the number of routers,/>Representing one-way propagation delay.
6. The system of claim 5, wherein said calculating the remaining amount to be transmitted for each preamble request in said ordering request at the end of said time difference comprises:
calculating the remaining amount to be transmitted of each preamble request in the ordering requests at the end of the time difference by using the following formula:
wherein, Representing the remaining amount to be transmitted,/>Representing the initial data volume,/>Data transfer rate of node representing segment start,/>Representing the time difference.
7. The system of claim 1, wherein said grouping the target hosts based on the first host response to obtain grouped hosts comprises:
determining a response sequence of the target host in the first host response;
based on the response sequence, sequencing the target hosts to obtain a host sequence;
calculating a master host sequence number in the host sequence using the following formula:
wherein, Representing the host sequence number,/>Representing the high order sequence number when the host sequence number is calculated for the v time,/>Representing the low order sequence number when the main host sequence number is calculated for the v time;
Dividing a master host and a slave host in the target host by using the master host serial numbers, and determining the grouping host by using the master host and the slave host.
8. The system of claim 1, wherein the collecting in the master host the second host responses of the master host and the slave host to the host requests comprises:
Transmitting a slave-host response of the slave host to the master host;
Splicing the response of the slave host with the response of the master host in the master host to obtain a spliced response;
and marking the splicing response by using the serial number of the slave host and the serial number of the master host to obtain the second host response.
9. The system of claim 1, wherein said performing, in said edge service gateway, response screening of said second host response to obtain a screened response comprises:
Calculating an outlier of the second host response in the edge service gateway;
determining a target host response from the second host responses based on the outliers;
Dividing a target master host and a target slave host in the target hosts corresponding to the target host responses by using the edge service gateway;
Notifying the target host to collect the residual host responses of the target host and the target slave host by using the edge service gateway;
Returning the remaining host responses from the target host back into the edge service gateway;
and in the edge service gateway, splicing the target host response and the residual host response to obtain the screening response.
10. An edge service gateway method based on cloud edge cooperation, which is characterized by comprising the following steps:
sending a service request from a first coverage host of an edge service gateway to the edge service gateway, and carrying out request classification on the service request in the edge service gateway to obtain a classification request;
Identifying a forwarding route of the classification request, forwarding the classification request from the edge service gateway to a preset first cloud server based on the forwarding route, and returning a request response of the first cloud server to the classification request to the first overlay host through the edge service gateway to obtain a first gateway management result of the edge service gateway;
receiving a host request sent by a preset second cloud server in the edge service gateway, broadcasting the host request to a preset second coverage host by using the edge service gateway, and then receiving a first host response of a target host in the second coverage host in the edge service gateway;
Based on the first host response, host grouping is carried out on the target host, and a grouping host is obtained, wherein the grouping host comprises a master host and a slave host;
collecting in the master host a second host response to the host request from the master host and the slave host, and transmitting the second host response from the master host to the edge service gateway;
And carrying out response screening on the second host response in the edge service gateway to obtain a screening response, and returning the screening response to the second cloud server to obtain a second gateway management result of the edge service gateway.
CN202410179058.0A 2024-02-18 2024-02-18 Edge service gateway system and method based on cloud edge cooperation Active CN117729258B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410179058.0A CN117729258B (en) 2024-02-18 2024-02-18 Edge service gateway system and method based on cloud edge cooperation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410179058.0A CN117729258B (en) 2024-02-18 2024-02-18 Edge service gateway system and method based on cloud edge cooperation

Publications (2)

Publication Number Publication Date
CN117729258A CN117729258A (en) 2024-03-19
CN117729258B true CN117729258B (en) 2024-04-26

Family

ID=90200215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410179058.0A Active CN117729258B (en) 2024-02-18 2024-02-18 Edge service gateway system and method based on cloud edge cooperation

Country Status (1)

Country Link
CN (1) CN117729258B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618347A (en) * 2019-02-17 2019-04-12 中国—东盟信息港股份有限公司 A kind of Intelligent gateway system of automation distribution service request
CN114584558A (en) * 2022-01-17 2022-06-03 深圳渊联技术有限公司 Cloud edge cooperative distributed API gateway system and API calling method
CN116527740A (en) * 2023-05-17 2023-08-01 易保网络技术(上海)有限公司 Service routing method, system, equipment and medium
CN117176726A (en) * 2023-09-11 2023-12-05 国网山东省电力公司电力科学研究院 Cloud edge end cooperative high concurrency access method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10002011B2 (en) * 2013-11-04 2018-06-19 Amazon Technologies, Inc. Centralized networking configuration in distributed systems
WO2022027480A1 (en) * 2020-08-06 2022-02-10 华为数字能源技术有限公司 Data collection method and apparatus, modbus system, and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618347A (en) * 2019-02-17 2019-04-12 中国—东盟信息港股份有限公司 A kind of Intelligent gateway system of automation distribution service request
CN114584558A (en) * 2022-01-17 2022-06-03 深圳渊联技术有限公司 Cloud edge cooperative distributed API gateway system and API calling method
CN116527740A (en) * 2023-05-17 2023-08-01 易保网络技术(上海)有限公司 Service routing method, system, equipment and medium
CN117176726A (en) * 2023-09-11 2023-12-05 国网山东省电力公司电力科学研究院 Cloud edge end cooperative high concurrency access method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向现场级异构网络的多层边缘计算架构及资源分配研究;于明帅;CNKI优秀硕士学位论文全文库;20231215;全文 *

Also Published As

Publication number Publication date
CN117729258A (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN105721311B (en) Method and system for updating link state information
CN110505101B (en) Network slice arranging method and device
EP3054635B1 (en) System and method for on-demand content exchange with adaptive naming in information-centric networks
US7079501B2 (en) Method and system for efficiently delivering content to multiple requesters
CN106559340A (en) The network centered on information with little multipath or single footpath forwarding state
CN105743664B (en) System and method for multi-source multicasting in content-centric networks
CN102075438B (en) unicast data frame transmission method and device
CN102857491A (en) Management schemes for filter sets
JP2017069951A (en) System and method for stateless information centric network
CN102035735A (en) Device and method for providing forwarding and qos information
CN109417567B (en) Method and system for interest group in content-centric network
CN111935031B (en) NDN architecture-based traffic optimization method and system
US8040823B2 (en) Method and system for network data transmitting
US20160269232A1 (en) Network management apparatus and network management method
CN105376292A (en) Explicit strategy feedback in name-based forwarding
JP2021517425A (en) Methods, devices, and systems for transmitting multicast packets
JP2003209575A (en) Method and apparatus for maintaining multicast list in data network
CN109379764A (en) File transmitting method and device
CN109194914B (en) Method and device for processing equipment information
WO2010072122A1 (en) Method, port and system for transmitting messages
CN1420663A (en) Method and device for sending data over network
CN112910785B (en) NDN-based edge calculation routing table establishing and using method
CN117729258B (en) Edge service gateway system and method based on cloud edge cooperation
EP2928150A2 (en) Multi-object interest using network names
CN115412482B (en) Calculation force routing method and device, electronic equipment and storage medium

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