Methods, devices, systems and storage media for providing edge services

By configuring servers in the cloud to manage the timed detection tasks of edge devices and detection devices, the problem of unstable HTTP services caused by unstable network on edge devices is solved, resulting in higher service availability and user experience.

CN115987953BActive Publication Date: 2026-03-13BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Edge devices are unable to provide stable HTTP services due to factors such as power outages, system crashes, or poor network conditions, resulting in a poor user experience.

Method used

Multiple edge devices and detection devices are managed by configuring servers in the cloud, and detection tasks are performed on a regular basis. The target edge device is determined based on the detection response status and duration, ensuring that a stable HTTP service is provided to the client.

Benefits of technology

It improves the availability and stability of HTTP services provided by edge devices, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115987953B_ABST
    Figure CN115987953B_ABST
Patent Text Reader

Abstract

The present invention provides an edge service provision method, apparatus, edge device provision system, and storage medium. The method includes: an edge device reporting configuration information to a cloud configuration server; the cloud configuration server generating detection tasks based on the configuration information and periodically issuing detection tasks to each detection device at preset time intervals; each detection device sending a detection request message to the edge device according to the detection task; receiving a detection response message from the edge device in response to the detection request message; reporting the detection response status and duration carried in the detection response message to the cloud configuration server; and the cloud configuration server determining the target edge device based on multiple detection response statuses and multiple detection response durations. In this application, both the detection response status and detection response duration reflect the device network status of the edge device. Determining the target edge device with a good current network based on the detection response status and detection duration provides a stable HTTP service to the client, improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, apparatus, system for providing edge services, and storage medium. Background Technology

[0002] Cloud computing is a computing model that utilizes the internet to enable convenient, on-demand access to computing facilities, storage devices, and applications anytime, anywhere. Cloud computing resources are geographically centralized; for example, cloud service providers may establish only a few fixed resource regions nationwide, with multiple data centers within each region providing cloud services to users across the country and even internationally. This centralized big data processing approach of cloud computing can lead to high latency issues for users in some situations. Edge computing complements cloud computing, distributing computing facilities, storage devices, and applications in data centers closer to the end users, forming a cluster of multiple edge devices. Currently, using edge devices to provide edge services (such as HTTP (Hypertext Transfer Protocol) services) effectively solves the high latency problem.

[0003] However, in existing technologies, edge devices, unlike public clouds and physical data centers, cannot provide a relatively stable environment for servers and thus cannot offer users a stable HTTP service. Due to factors such as power outages, system crashes, or poor network conditions, edge devices often fail to provide reliable HTTP services, resulting in a poor user experience. Ensuring that edge devices provide stable HTTP services to end users remains a challenge. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a method, apparatus, system, and storage medium for providing edge services, which enables edge devices to stably provide stable HTTP services to end users, thereby improving the user experience.

[0005] In a first aspect, embodiments of the present invention provide a method for providing edge services, wherein the method is applied to an edge device providing system, the edge device providing system including a cloud configuration server, and multiple edge devices and multiple detection devices communicatively connected to the cloud configuration server, each edge device having an HTTP service pre-deployed, and the method comprising:

[0006] Edge devices report configuration information to the cloud configuration server; the configuration information includes device information required for testing the edge devices' ability to provide HTTP services.

[0007] The cloud configuration server receives configuration information, generates detection tasks based on the configuration information, and sends detection tasks to each detection device at preset time intervals.

[0008] The detection device receives a detection task, sends a detection request message to the edge device according to the detection task, receives a detection response message from the edge device in response to the detection request message, and reports the detection response status and detection response duration carried in the detection response message to the cloud configuration server; among them, the detection response status is used to characterize whether the edge device has a network response to the detection request message;

[0009] The cloud-based configuration server receives probe response status and response duration, and determines the target edge device based on multiple probe response statuses and response durations, so that the target edge device can provide HTTP services to the client.

[0010] In one possible implementation, the method further includes, before the edge device reports configuration information to the cloud configuration server:

[0011] Edge devices obtain multiple target network ports that are not occupied by services from the network ports; among them, the network ports are the communication ports through which the edge devices provide services to the outside world;

[0012] The service network port providing HTTP service is randomly determined from multiple target network ports; the service network port includes HTTP port and HTTPS port.

[0013] Obtain port information for the service network port, edge device identification information for the edge device, and external IP address information;

[0014] The port information, edge device identification information, and external IP address information are packaged to generate configuration information.

[0015] In one possible implementation, generating a probe task based on configuration information includes:

[0016] Parse the configuration information to obtain port information, edge device identification information, and external IP address information. The port information includes the first port number HTTP corresponding to the HTTP port and the second port number HTTP corresponding to the HTTPS port.

[0017] Determine the device type of the edge device based on the edge device identification information;

[0018] Determine the first HTTP service protocol type corresponding to the HTTP port and the second HTTP service protocol type corresponding to the HTTPS port based on the device type;

[0019] The first detection method for probing the HTTP port is determined based on the first HTTP service protocol type;

[0020] The second probe method for probing HTTPS ports is determined based on the second HTTP service protocol type.

[0021] The first probe task is generated based on the first probe method, the first port number, and the external IP address information.

[0022] A second probing task is generated based on the second probing method, the second port number, and the external IP address information;

[0023] Detection tasks are periodically sent to each detection device according to a preset time interval, including:

[0024] The first and second detection tasks are issued to each detection device at preset time intervals.

[0025] In one possible implementation, a probe request message is sent to the edge device according to the probe task, including:

[0026] The first probe task is analyzed to obtain the first probe method, first port number, and external IP address information included in the first probe task.

[0027] The first probe request message is determined based on the first probe method;

[0028] The cloud-configured server sends the first probe request message to the HTTP port corresponding to the first port number on the edge device with the external IP address information.

[0029] The second probe task is analyzed to obtain the second probe method, second port number and external IP address information included in the second probe task;

[0030] The second probe request message is determined based on the second probe method;

[0031] The cloud-configured server sends a second probe request message to the HTTPS port corresponding to the second port number on the edge device with the external IP address information.

[0032] In one possible implementation, the probe response message returned by the receiving edge device in response to the probe request message includes:

[0033] Receive the first probe response message in response to the first probe request message and the second probe response message in response to the second probe request message returned by the edge device;

[0034] The probe response status and duration carried in the probe response message are reported to the cloud configuration server, including:

[0035] The first detection response status and duration carried in the first detection response message, as well as the second detection response status and duration carried in the second detection response message, are reported to the cloud configuration server.

[0036] In one possible implementation, the target edge device is determined based on multiple detection response states and multiple detection response durations, including:

[0037] Find the first edge device from multiple detection response states where both the first and second detection response states are detection responses;

[0038] Count the number of first-edge devices and the number of second-edge devices with multiple detection devices;

[0039] The detection success rate is calculated based on the first number of devices and the second number of devices.

[0040] Obtain the first and second detection response times reported by the first edge device from multiple detection response times;

[0041] The average detection response time is calculated based on the first and second detection response times reported by each first edge device;

[0042] The first edge device whose detection success rate exceeds the preset detection success rate and whose detection platform response time is within the preset detection response time range is identified as the target edge device.

[0043] In one possible implementation, the edge device providing system further includes a scheduling server that communicates with a cloud configuration server, and the method further includes:

[0044] The cloud-based configuration server generates the domain name information corresponding to the edge devices based on the external IP address information.

[0045] The domain name information and edge device identification information corresponding to the edge device are sent to the scheduling server for binding and storage.

[0046] In one possible implementation, after determining the target edge device based on multiple probe response states and multiple probe response durations, the method further includes:

[0047] The scheduling server queries and obtains the target edge device identifier information, target external IP address information, and target port information corresponding to the target edge device from the cloud configuration server.

[0048] Obtain the target domain name information corresponding to the edge device identifier information that matches the target edge device identifier information;

[0049] Based on the target external IP address information, target port information, and target domain name information, the client is assigned the target edge device to provide HTTP services.

[0050] Secondly, embodiments of the present invention provide an edge service provision device, wherein the device is applied to an edge device provision system, the edge device provision system including a cloud configuration server, and multiple edge devices and multiple detection devices communicatively connected to the cloud configuration server, each edge device having an HTTP service pre-deployed, and the device comprising:

[0051] The reporting module is used by edge devices to report configuration information to the cloud configuration server; the configuration information is the device information required for edge devices to test their HTTP service capabilities.

[0052] The generation and distribution module is used to receive configuration information from the cloud configuration server, generate detection tasks based on the configuration information, and distribute the detection tasks to each detection device at preset distribution time intervals.

[0053] The reporting module is used by the detection device to receive detection tasks, send detection request messages to edge devices according to the detection tasks, receive detection response messages from edge devices in response to the detection request messages, and report the detection response status and detection response duration carried in the detection response messages to the cloud configuration server; wherein, the detection response status is used to characterize whether the edge device has a network response to the detection request messages;

[0054] The determination module is used to configure the cloud-based server to receive probe response status and probe response duration, and to determine the target edge device based on multiple probe response statuses and multiple probe response durations, so that the target edge device can provide HTTP services to the client.

[0055] Thirdly, embodiments of the present invention provide an edge device providing system, comprising: an edge device providing system including a cloud configuration server, and multiple edge devices and multiple detection devices communicatively connected to the cloud configuration server, each edge device having an HTTP service pre-deployed.

[0056] Fourthly, embodiments of the present invention provide a storage medium, wherein the storage medium stores one or more programs, which can be executed by one or more processors to implement the above-described method for providing edge services.

[0057] The present invention provides an edge service provision method, apparatus, edge device provision system, and storage medium, comprising: an edge device reporting configuration information to a cloud configuration server; the cloud configuration server receiving the configuration information, generating a probe task based on the configuration information, and periodically issuing the probe task to each probe device at preset time intervals; the probe device receiving the probe task, sending a probe request message to the edge device according to the probe task, receiving a probe response message returned by the edge device in response to the probe request message, and reporting the probe response status and probe response duration carried in the probe response message to the cloud configuration server; the cloud configuration server receiving the probe response status and probe response duration, determining a target edge device based on multiple probe response statuses and multiple probe response durations, so that the target edge device can provide HTTP services to the client. In this application, both the probe response status and probe response duration can effectively reflect the network status of the edge device. By determining the target edge device with a good current network from multiple edge devices based on the probe response status and probe duration, a stable HTTP service can be provided to the client, thereby improving the user experience. Attached Figure Description

[0058] Figure 1 This is a schematic diagram of the structure of an edge device providing system according to an embodiment of the present invention;

[0059] Figure 2 A flowchart illustrating a method for providing edge services according to an embodiment of the present invention;

[0060] Figure 3 A flowchart illustrating another method for providing edge services according to an embodiment of the present invention;

[0061] Figure 4 A flowchart illustrating another method for providing edge services according to an embodiment of the present invention;

[0062] Figure 5 This is a schematic diagram of a device for providing edge services according to an embodiment of the present invention. Detailed Implementation

[0063] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0064] To facilitate understanding of the embodiments of the present invention, further explanations and descriptions will be provided below with reference to the accompanying drawings and specific embodiments. These embodiments do not constitute a limitation on the embodiments of the present invention.

[0065] In this embodiment, the above-described method for providing edge services can be applied to, for example... Figure 1 The illustrated edge device provisioning system comprises a cloud configuration server 101, multiple edge devices 102, and multiple detection devices 103. For example... Figure 1 As shown, multiple edge devices 102 and multiple detection devices 103 are all connected to the cloud configuration server 101. Figure 1 Only three edge devices 102 and three detection devices 103 are shown in the diagram. The specific number of edge devices and detection devices can be set according to actual needs and is not limited here.

[0066] Specifically, an HTTP service is pre-deployed on each edge device 102 to enable each edge device to provide HTTP services. The edge devices can be high-performance electronic devices such as physical machines or mining machines, while the detection devices can be low-performance electronic devices such as routers or terminals. The cloud configuration server is a server deployed in the cloud.

[0067] One method for providing edge services in this embodiment can be implemented by an edge device-provided system. Figure 2 A flowchart illustrating a method for providing edge services is shown, which may include the following steps:

[0068] Step 201: The edge device reports configuration information to the cloud configuration server;

[0069] In this embodiment, each edge device reports its corresponding configuration information to the cloud configuration server. The configuration information is the device information required for edge device testing to provide HTTP service capabilities.

[0070] Step 202: The cloud configuration server receives the configuration information, generates a detection task based on the configuration information, and sends the detection task to each detection device at preset time intervals.

[0071] The detection task is generated based on the configuration information reported by each edge device. Therefore, the content of the detection task for each edge device is different, but the purpose of each detection task is to detect the device network status of the corresponding edge device.

[0072] Due to the network instability of edge devices, it is necessary to frequently probe the network status of edge devices. Therefore, it is necessary to send probe tasks to each probe device at preset time intervals according to a preset time interval. The preset time interval can be set to 1 second, 2 seconds, 3 seconds, etc. The specific preset time interval is set according to actual needs and is not limited here.

[0073] Step 203: The detection device receives the detection task, sends a detection request message to the edge device according to the detection task, receives the detection response message returned by the edge device in response to the detection request message, and reports the detection response status and detection response duration carried in the detection response message to the cloud configuration server.

[0074] In practical applications, the detection device sends detection request messages to the edge device through the cloud configuration server, and receives detection response messages returned by the edge device through the cloud configuration server.

[0075] The probe response status in the probe response message is used to characterize whether the edge device has a network response to the probe request message. That is, the probe response status is probe response or probe no response. If the probe response status is probe response, it means that the device network of the edge device is normal and has the ability to provide HTTP service. If the probe response status is probe no response, it means that the device network of the edge device is abnormal and has the ability to provide HTTP service.

[0076] The probe response time is the time from when an edge device receives a probe request message to when it sends a probe response message. Generally, a shorter response time indicates a better network condition for the edge device, and vice versa. Therefore, in this embodiment, the probe response status and response time effectively reflect the network condition of each edge device, allowing edge devices with good networks to be selected to provide stable HTTP services to the client.

[0077] Step 204: The cloud configuration server receives the probe response status and probe response duration, and determines the target edge device based on multiple probe response statuses and multiple probe response durations, so that the target edge device can provide HTTP services to the client.

[0078] The target edge device is an edge device whose network is normal and has good network conditions. The identified target edge device can be one or more devices that provide HTTP services to clients.

[0079] To facilitate understanding the process of the above method, Figure 3 A flowchart illustrating another method for providing edge services is shown, simplifying the process of the above method as follows:

[0080] Step 301: Each edge device reports its configuration information to the cloud configuration server;

[0081] Step 302: The cloud configuration server distributes the detection tasks to each detection device;

[0082] Step 303: Each detection device sends a detection request message to each edge device through the cloud configuration server;

[0083] Step 304: Each edge device sends a detection response message to each detection device through the cloud configuration server in response to the detection request message;

[0084] Step 305: Each edge device reports the probe response status and probe response duration carried in the probe response message to the cloud configuration server;

[0085] Step 306: Determine the target edge device based on the detection response status and detection response duration.

[0086] The edge service provision method provided in this invention includes: an edge device reporting configuration information to a cloud configuration server; the cloud configuration server receiving the configuration information, generating a probe task based on the configuration information, and periodically sending the probe task to each probe device at preset time intervals; the probe device receiving the probe task, sending a probe request message to the edge device according to the probe task, receiving a probe response message returned by the edge device in response to the probe request message, and reporting the probe response status and probe response duration carried in the probe response message to the cloud configuration server; the cloud configuration server receiving the probe response status and probe response duration, determining a target edge device based on multiple probe response statuses and multiple probe response durations, so that the target edge device can provide HTTP services to the client. In this application, both the probe response status and probe response duration can effectively reflect the network status of the edge device. By determining the target edge device with a good current network from multiple edge devices based on the probe response status and probe duration, a stable HTTP service can be provided to the client, thereby improving the user experience.

[0087] This embodiment provides another method for providing edge services, which is implemented based on the above embodiment; Figure 4 A flowchart illustrating another method for providing edge services is shown. The method for providing edge services in this embodiment includes the following steps:

[0088] Step 401: The edge device obtains multiple target network ports that are not occupied by services from the network ports;

[0089] Among them, the network port is the communication port through which the edge device provides services to the outside world; the service is a service protocol other than HTTP, including but not limited to FTP (File Transfer Protocol), SNMP (Simple Network Management Protocol), RTMP (Real-Time Messaging Protocol), etc.

[0090] The aforementioned target network ports are those that the edge device is not using to provide services externally. Typically, the edge device can determine which network ports are being used for services and which are not, by checking the port usage information of each network port. This allows it to identify multiple target network ports that are not being used for services. The port usage information is used to characterize the service occupancy status of network ports. This information includes both "unoccupied" and "occupied" information. "Unoccupied" information indicates that the network port is not being used for services, while "occupied" information indicates that the network port is being used for services.

[0091] Step 402: Randomly determine the service network port that provides HTTP service from multiple target network ports;

[0092] Currently, most HTTP services use a unified port, such as web (World Wide Web) services and file services. These typically use a fixed port, making it easy for ISPs to block a particular port, thus paralyzing and rendering the HTTP service unusable. To address this issue, this embodiment uses a random algorithm (e.g., the rand algorithm) to determine the service network port for providing the HTTP service from among multiple target network ports. This allows edge devices to provide HTTP services to clients through this service network port. Using a random service network port ensures that the port used by each edge device to provide the HTTP service is randomized, making it very difficult for ISPs to block the service, significantly improving the availability of HTTP services provided by edge devices.

[0093] Since the HTTP service supports HTTP1, HTTP2, and HTTP3 service access, the service protocol type for HTTP1 service is HTTP, the service protocol type for HTTP2 service is TCP (Transmission Control Protocol), and the service protocol type for HTTP3 service is UDP (User Datagram Protocol). Among them, HTTP1 service requires an HTTP port to provide HTTP service, while HTTP2 and HTTP3 services require an HTTPS port to provide HTTP service. Therefore, the service network ports determined above include HTTP ports and HTTPS ports.

[0094] Step 403: Obtain the port information of the service network port, the edge device identification information of the edge device, and the external IP address information;

[0095] Step 404: Package the port information, edge device identification information, and external IP address information to generate configuration information;

[0096] Edge device identification information is the unique identifier for the edge device, which can be the device number. The external IP (Internet Protocol) address is the unique address information that the edge device provides to other devices for access. The above configuration information is generated by packaging these three types of information.

[0097] Step 405: The edge device reports configuration information to the cloud configuration server; the configuration information is the device information required for the edge device to test its ability to provide HTTP services.

[0098] Step 406: The cloud configuration server receives the configuration information, generates a detection task based on the configuration information, and sends the detection task to each detection device at preset time intervals.

[0099] After receiving the configuration information reported by each edge device, the cloud configuration server executes step 406 for each configuration information to generate a detection task for each edge device, and distributes the detection task to each detection device so that each detection device can detect the edge device for each detection task.

[0100] The generation of the detection task based on the configuration information can be achieved through steps A1 to A6:

[0101] Step A1: Parse the configuration information to obtain port information, edge device identification information, and external IP address information. The port information includes the first port number HTTP corresponding to the HTTP port and the second port number HTTPS corresponding to the HTTPS port.

[0102] Since the service network ports determined through step 302 above include HTTP ports and HTTPS ports, the port information should include the first port number corresponding to the HTTP port and the second port number corresponding to the HTTPS port.

[0103] Step A2: Determine the device type of the edge device based on the edge device identification information;

[0104] In this embodiment, the device type of the edge device can be a single-line device, a multi-line device, or a large intranet device, and is not limited thereto. Step A2 can determine the device type of the edge device by looking up a table. Specifically, the process involves querying the device type lookup table for the target edge device identifier information that matches the edge device identifier information, and determining the target device type corresponding to the target edge device identifier information as the device type of the edge device. The device type lookup table stores multiple different device types and the edge device identifier information corresponding to each device type. This table lookup method allows for the rapid determination of the device type of each edge device.

[0105] Step A3: Determine the first HTTP service protocol type corresponding to the HTTP port and the second HTTP service protocol type corresponding to the HTTPS port based on the device type;

[0106] If the device type is a single-line device or a multi-line device, the supported service protocols are HTTP and TCP. Therefore, the first HTTP service protocol type corresponding to the determined HTTP port is HTTP, and the second HTTP service protocol type corresponding to the HTTPS port is TCP. If the device type is a large intranet device, the supported service protocol is UDP. Therefore, the first HTTP service protocol type corresponding to the determined HTTP port is empty, and the second HTTP service protocol type corresponding to the HTTPS port is UDP.

[0107] Step A3: Determine the first detection method for detecting the HTTP port based on the first HTTP service protocol type;

[0108] If the first HTTP service protocol is HTTP, the first detection method is determined to be HTTP; if the first HTTP service protocol is empty, the first detection method is also empty.

[0109] Step A4: Determine the second probe method for probing the HTTPS port based on the second HTTP service protocol type;

[0110] Since the second HTTP service protocol type is either TCP or UDP, the determined second detection method is either TCP or UDP.

[0111] Step A5: Generate the first probe task based on the first probe method, the first port number, and the external IP address information;

[0112] If the first detection method is empty, the generated first detection task is also empty, that is, no HTTP port is detected. In the following implementation of this embodiment, the detection is described using the example that the first detection method is not empty.

[0113] Step A6: Generate a second probe task based on the second probe method, the second port number, and the external IP address information.

[0114] Since the detection task generated for the configuration information reported by each edge device includes a first detection task and a second detection task, the cloud configuration server periodically sends the first detection task and the second detection task to each detection device according to a preset sending time interval.

[0115] Step 407: The detection device receives the detection task, sends a detection request message to the edge device according to the detection task, receives the detection response message returned by the edge device in response to the detection request message, and reports the detection response status and detection response duration carried in the detection response message to the cloud configuration server.

[0116] Among them, the probe response status is used to characterize whether the edge device has a network response to the probe request message.

[0117] Since each edge device needs to have its network status and port status detected via both HTTP and HTTPS ports, it is necessary to perform detection on the edge devices through both the first and second detection tasks.

[0118] In this embodiment, the process of the detection device sending a detection request message to the edge device after receiving each detection task can be implemented by steps B1 to B6:

[0119] Step B1: parse the first probe task to obtain the first probe method, first port number and external IP address information included in the first probe task;

[0120] Step B2: Determine the first probe request message based on the first probe method;

[0121] Since the first probe method is HTTP, the first probe request message is an HTTP probe request message.

[0122] Step B3: Send the first probe request message to the HTTP port corresponding to the first port number on the edge device with the external IP address information through the cloud configuration server;

[0123] Step B4: parse the second probe task to obtain the second probe method, second port number and external IP address information included in the second probe task;

[0124] Step B5: Determine the second probe request message based on the second probe method;

[0125] Since the second probe method is either TCP or UDP, the second probe request message is either a TCP probe request message or a UDP probe request message.

[0126] Step B6: Send a second probe request message to the HTTPS port corresponding to the second port number on the edge device with the external IP address information via the cloud configuration server.

[0127] After receiving the first probe request message, the edge device sends a first probe response message to the cloud configuration server via the HTTP port, so that the cloud configuration server sends the first probe response message to the probe device; after receiving the second probe request message, the edge device sends a second probe response message to the cloud configuration server via the HTTPS port, so that the cloud configuration server sends the second probe response message to the probe device.

[0128] After receiving the first and second detection response messages, the detection device parses the first detection response message to obtain the first detection response status and the first detection response duration carried in the first detection response message, and parses the second detection response message to obtain the second detection response status and the second detection response duration carried in the second detection response message. The device then reports the first detection response status and the first detection response duration carried in the first detection response message, as well as the second detection response status and the second detection response duration carried in the second detection response message, to the cloud configuration server.

[0129] Step 408: The cloud configuration server receives the probe response status and probe response duration, and determines the target edge device based on multiple probe response statuses and multiple probe response durations, so that the target edge device can provide HTTP services to the client.

[0130] The process of determining the target edge device in step 408 can be achieved through steps C1 to C6:

[0131] Step C1: Find the first edge device from multiple detection response states where both the first and second detection response states are detection responses;

[0132] If both the first and second probe response states are probe responses, it indicates that the edge device's network is normal, and that the HTTP and HTTPS ports are also normal, demonstrating its ability to provide HTTP services. Conversely, if the first and / or second probe response states are both probe responses, it indicates that the edge device's network is functioning correctly.

[0133] If there is no response, it indicates that the edge device's network is abnormal, and / or the HTTP port and / or HTTPS0 port are abnormal, and it is unable to provide HTTP services.

[0134] Step C2: Count the number of first devices in the first edge device and the number of second devices in the multiple detection devices;

[0135] Step C3: Calculate the detection success rate based on the first number of devices and the second number of devices;

[0136] The detection success rate is calculated by dividing the number of first devices by the number of second devices. This detection success rate represents the percentage of edge devices with no anomalies in the network; a higher success rate indicates a more stable edge network.

[0137] The more stable the device network of a device, the more unstable the device network of the edge device.

[0138] Step C4: Obtain the first and second detection response durations reported by the first edge device from multiple detection response durations;

[0139] Step C5: Calculate the average detection response time based on the first detection response time and the second detection 0 response time reported by each first edge device;

[0140] The average of multiple first detection response times and multiple second detection response times can be calculated to obtain the detection platform response time.

[0141] Step C6: The first edge device with a detection success rate exceeding the preset detection success rate and a detection platform response time within the preset detection response time range is identified as the target edge device.

[0142] 5. The detection success rate exceeds the preset detection success rate, and the detection platform response time is within the preset detection response time.

[0143] The first edge device within the specified time range indicates that its network is functioning normally and has a fast network speed, enabling it to provide stable and rapid HTTP services to clients.

[0144] Typically, the cloud-based configuration server receives configuration information, parses it, and generates domain name information for the edge device based on the external IP address information included in the configuration information. The domain name information and edge device identifier information are then sent to the scheduling server for binding and storage. This scheduling server is deployed in the cloud and communicates with the cloud-based configuration server.

[0145] The purpose of binding and storing the domain name information corresponding to each edge device to the scheduling server is so that, after the target edge device is determined by the cloud configuration server, the scheduling server can query the cloud configuration server to obtain the target edge device identification information, target external IP address information, and target port information corresponding to the target edge device; obtain the target domain name information corresponding to the edge device identification information that matches the target edge device identification information; and allocate the target edge device to the client to provide HTTP services based on the target external IP address information, target port information, and target domain name information.

[0146] To facilitate client access to the target edge device, before the client needs to make an HTTP or HTTPS request to access the target edge device, it must first obtain the target edge device. That is, it needs to initiate a request to the scheduling server. Then, the scheduling server will select a target edge device (IP + port or domain name + port) from multiple target edge devices based on some information in the request, such as geographical location, carrier, and network conditions of the target edge device, and provide it to the client. Then, the client knows where to obtain resources. It can access the target edge node selected by the scheduling server by using the target external IP address information + first port number or target domain name information + second port number to make an HTTP or HTTPS request. Finally, the target edge device returns the corresponding access response to the client.

[0147] The edge service provision method provided in this embodiment uses a random algorithm to select the service network port for providing HTTP services, which can effectively avoid the blocking of HTTP services by operators, greatly improving the availability of HTTP services provided by edge devices. Furthermore, by detecting the network status of edge devices, it ensures that the network of the target edge device providing HTTP services to the client is available and without anomalies, thereby improving the service quality of HTTP services provided by edge devices and thus enhancing the user experience.

[0148] Corresponding to the above method embodiments, this invention provides an edge service provision device. This device is applied to an edge device provision system, which includes a cloud configuration server, multiple edge devices and multiple detection devices communicatively connected to the cloud configuration server, and each edge device pre-deployed with an HTTP service. Figure 5A schematic diagram of a device for providing edge services is shown, such as... Figure 5 As shown, the device includes:

[0149] The reporting module 501 is used by edge devices to report configuration information to the cloud configuration server; the configuration information is the device information required for edge devices to test their HTTP service capabilities.

[0150] The generation and distribution module 502 is used to receive configuration information from the cloud configuration server, generate detection tasks based on the configuration information, and distribute detection tasks to each detection device at preset distribution time intervals.

[0151] The reporting module 503 is used for the detection device to receive the detection task, send the detection request message to the edge device according to the detection task, receive the detection response message returned by the edge device in response to the detection request message, and report the detection response status and detection response duration carried in the detection response message to the cloud configuration server; wherein, the detection response status is used to characterize whether the edge device has a network response to the detection request message;

[0152] The determination module 504 is used to configure the cloud server to receive the probe response status and probe response duration, and to determine the target edge device based on multiple probe response statuses and multiple probe response durations, so that the target edge device can provide HTTP services to the client.

[0153] The edge service provision device provided in this invention includes: an edge device reporting configuration information to a cloud configuration server; the cloud configuration server receiving the configuration information, generating a detection task based on the configuration information, and periodically sending the detection task to each detection device at preset time intervals; the detection device receiving the detection task, sending a detection request message to the edge device according to the detection task, receiving a detection response message returned by the edge device in response to the detection request message, and reporting the detection response status and detection response duration carried in the detection response message to the cloud configuration server; the cloud configuration server receiving the detection response status and detection response duration, determining a target edge device based on multiple detection response statuses and multiple detection response durations, so that the target edge device can provide HTTP services to the client. In this application, both the detection response status and detection response duration can effectively reflect the network status of the edge device. By determining the target edge device with a good current network from multiple edge devices based on the detection response status and detection duration, a stable HTTP service can be provided to the client, thereby improving the user experience.

[0154] This invention also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; the memory may also include combinations of the above types of memory.

[0155] When one or more programs in the storage medium can be executed by one or more processors to implement the above-described method of providing edge services.

[0156] The processor is used to execute an edge service provision program stored in memory to implement the steps of the following edge service provision method.

[0157] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0158] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0159] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method of providing edge services, characterized by, The method is applied to an edge device providing system, the edge device providing system comprising a cloud configuration server, and a plurality of edge devices and a plurality of detection devices in communication connection with the cloud configuration server, each of the edge devices being pre-deployed with an HTTP service, and the method comprising: The edge device obtains a plurality of target network ports not occupied by services from network ports; wherein the network ports are communication ports for providing services externally by the edge device; a service network port providing the HTTP service is randomly determined from the plurality of target network ports; wherein the service network port comprises an HTTP port and an HTTPS port; port information of the service network port, edge device identification information and external network IP address information of the edge device are obtained; and the port information, the edge device identification information and the external network IP address information are packaged to generate the configuration information; The edge device reports the configuration information to the cloud configuration server; wherein the configuration information is device information required by the edge device for testing the HTTP service capability; The cloud configuration server receives the configuration information, generates a detection task based on the configuration information, and periodically issues the detection task to each of the detection devices according to a preset issuance time interval; the generation of the detection task based on the configuration information comprises: analyzing the configuration information to obtain the port information, the edge device identification information and the external network IP address information, the port information comprising a first port number corresponding to the HTTP port and a first HTTP service protocol type corresponding to the HTTP, and a second port number corresponding to the HTTPS port and a second HTTP service protocol type corresponding to the HTTPS; determining the device type of the edge device based on the edge device identification information; determining the first HTTP service protocol type corresponding to the HTTP port and the second HTTP service protocol type corresponding to the HTTPS port based on the device type; determining a first detection manner for detecting the HTTP port based on the first HTTP service protocol type; determining a second detection manner for detecting the HTTPS port based on the second HTTP service protocol type; generating a first detection task according to the first detection manner, the first port number and the external network IP address information; generating a second detection task according to the second detection manner, the second port number and the external network IP address information; and periodically issuing the first detection task and the second detection task to each of the detection devices according to the preset issuance time interval; The detection device receives the detection task, sends a detection request packet to the edge device according to the detection task, receives a detection response packet returned by the edge device in response to the detection request packet, and reports a detection response state and a detection response time length carried in the detection response packet to the cloud configuration server; wherein the detection response state is used to represent whether the edge device has a network response to the detection request packet. The cloud configuration server receives a detection response state and a detection response time length, determines a target edge device based on a plurality of the detection response states and a plurality of detection response time lengths, so that the target edge device provides an HTTP service to a client.

2. The method of claim 1, wherein, The sending of the detection request message to the edge device according to the detection task comprises: The first detection task is parsed to obtain the first detection mode, the first port number and the external network IP address information included in the first detection task; The first detection request message is determined based on the first detection mode; The first detection request message is sent to the HTTP port corresponding to the first port number on the edge device of the external network IP address information through the cloud configuration server; The second detection task is parsed to obtain the second detection mode, the second port number and the external network IP address information included in the second detection task; The second detection request message is determined based on the second detection mode; The second detection request message is sent to the HTTPS port corresponding to the second port number on the edge device of the external network IP address information through the cloud configuration server.

3. The method of claim 2, wherein, The receiving of the detection response message returned by the edge device for the detection request message comprises: The first detection response message returned by the edge device for the first detection request message and the second detection response message returned by the edge device for the second detection request message are received; The detection response state and the detection response time length carried in the detection response message are reported to the cloud configuration server, which comprises: The first detection response state and the first detection response time length carried in the first detection response message, and the second detection response state and the second detection response time length carried in the second detection response message are reported to the cloud configuration server.

4. The method of claim 3, wherein, The determination of the target edge device based on a plurality of the detection response states and a plurality of detection response time lengths comprises: A first edge device whose first detection response state and second detection response state are both detection responses is found from a plurality of the detection response states; The first device quantity of the first edge device and the second device quantity of a plurality of the detection devices are counted; A detection success rate is calculated based on the first device quantity and the second device quantity; The first detection response time length and the second detection response time length reported by the first edge device are obtained from a plurality of the detection response time lengths; A detection average response time length is calculated based on the first detection response time length and the second detection response time length reported by each of the first edge devices; The first edge device whose detection success rate exceeds a preset detection success rate and whose detection platform response time length is within a preset detection response time length range is determined as the target edge device.

5. The method of claim 1, wherein, The edge device providing system further comprises a scheduling server in communication connection with the cloud configuration server, and the method further comprises: The cloud configuration server generates domain name information corresponding to the edge device according to the external network IP address information; The domain name information corresponding to the edge device and the edge device identification information are sent to the scheduling server for binding storage.

6. The method of claim 5, wherein, After the target edge device is determined based on the plurality of the probe response states and the plurality of the probe response durations, the method further comprises: The scheduling server queries the cloud configuration server to obtain target edge device identification information, a target external network IP address information and a target port information corresponding to the target edge device; Target domain name information corresponding to edge device identification information matched with the target edge device identification information is obtained; The target edge device provides HTTP service for the client based on the target external network IP address information, the target port information and the target domain name information.

7. An edge service device providing, characterized by The device is applied to an edge device providing system, the edge device providing system comprises a cloud configuration server, and a plurality of edge devices and a plurality of probe devices in communication connection with the cloud configuration server, each of the edge devices is pre-deployed with an HTTP service, and the device comprises: The reporting module is configured to obtain a plurality of target network ports that are not occupied by services from network ports of the edge device, wherein the network ports are communication ports for providing services externally by the edge device, a service network port for providing the HTTP service is randomly determined from the plurality of target network ports, wherein the service network port comprises an HTTP port and an HTTPS port, port information of the service network port, edge device identification information and external network IP address information of the edge device are obtained, the port information, the edge device identification information and the external network IP address information are packaged to generate the configuration information, and the edge device is configured to report the configuration information to the cloud configuration server, wherein the configuration information is device information required for the edge device to test the HTTP service capability. The generating and delivering module is configured to receive the configuration information by the cloud configuration server, generate a detection task based on the configuration information, and deliver the detection task to each of the detection devices at a preset delivery time interval. The sending and reporting module is configured to receive the detection task by the detection device, send a detection request message to the edge device according to the detection task, receive a detection response message returned by the edge device in response to the detection request message, and report a detection response state and a detection response time length carried in the detection response message to the cloud configuration server, wherein the detection response state is used to indicate whether the edge device has a network response to the detection request message. The determining module is configured to receive the detection response state and the detection response time length by the cloud configuration server, and determine a target edge device based on a plurality of detection response states and a plurality of detection response time lengths, so that the target edge device provides an HTTP service to a client.

8. An edge device providing system characterized by comprising: The edge device providing system comprises a cloud configuration server, a plurality of edge devices and a plurality of detection devices in communication connection with the cloud configuration server, and each of the edge devices is pre-deployed with an HTTP service. The storage medium stores one or more programs, which can be executed by one or more processors to implement the edge service providing method in any one of claims 1-6.

9. A storage medium, characterized by ​

Citation Information

Patent Citations

  • Intelligent scheduling method, terminal equipment, edge node clusters and intelligent scheduling system

    CN109379774A

  • Data processing method and device

    CN110943884A

  • Edge container cloud detection method, device and equipment and storage medium

    CN114745292A