Route switching method and device based on edge gateway equipment
By obtaining and analyzing the network environment and load data between the edge gateway device and the cloud server, dynamically adjusting the routing switching mode, the routing switching delay problem caused by cloud disconnection or unstable connection in the charging system is solved, and the edge gateway device is realized The efficient and stable operation of autonomous routing switching and charging system.
Patent Information
- Application Number
- CN202411218685.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-10
AI Technical Summary
In the Internet of Things charging system, when the cloud is disconnected or unstable, it is difficult for edge gateway devices to determine when to perform routing switching, resulting in decision-making delays or errors. The existing routing switching methods require manual intervention, which increases operation and maintenance costs and complexity and a unified routing switching strategy is difficult to meet the needs of different scenarios.
By obtaining network environment data and target load data between edge gateway devices and cloud servers, determining the routing switching mode, and issuing routing switching instructions to devices in the charging system, dynamic routing adjustment is realized, reducing cloud load, and improving real-time data transmission and responsiveness, adapt to network changes.
It realizes autonomous routing switching of edge gateway devices when the network is disconnected or abnormal, reduces decision-making delay, improves the stability and flexibility of the charging system, reduces dependence on the cloud, and ensures the continuity and efficient operation of the charging system. .
Smart Images

Figure CN119109927A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things, and in particular to a routing switching method and device based on an edge gateway device. Background Art
[0002] In the IoT scenario, cloud-edge collaboration is a key working mode, especially in scenarios involving charging systems. Charging systems usually include charging piles, edge gateway devices, and cloud servers. In this charging system, the cloud is responsible for processing and analyzing large amounts of data collected from edge devices in order to make intelligent decisions and provide corresponding services. When the network connection is disconnected, the cloud cannot obtain data on the charging pile in a timely manner, resulting in delayed or inability to make decisions, which affects the intelligence and efficiency of the system. At this time, the edge gateway device joins when the network is disconnected. As a local processing unit, it can collect and store charging pile data without cloud connection and perform some predetermined decision-making or data processing tasks. In this way, even when the network connection is unstable or interrupted, the edge gateway device can ensure the normal operation of the charging pile and reduce dependence on the cloud.
[0003] However, the route switching between edge gateway devices and the cloud also faces practical problems. First, due to the instability and unpredictability of the network environment, it may be difficult for edge gateway devices to determine when to switch routes, resulting in delayed or incorrect decisions. Second, existing route switching methods often require manual intervention, increasing operation and maintenance costs and complexity. In addition, the load conditions and network environments of different charging piles may vary, and a unified route switching strategy is difficult to meet the needs of all scenarios. Summary of the invention
[0004] One purpose of an embodiment of the present invention is to provide a routing switching method and apparatus based on an edge gateway device, an edge gateway device and a storage medium, which are used to solve the technical problem of unstable charging caused by the cloud being disconnected or unstable during charging.
[0005] In a first aspect, an embodiment of the present invention provides a routing switching method based on an edge gateway device, which is applied to an edge gateway device in a charging system, wherein the charging system further includes a cloud server and a charging pile. The routing switching method based on the edge gateway device includes:
[0006] Acquire network environment data between the edge gateway device and the cloud server, and acquire target load data of the edge gateway device in the charging system network;
[0007] Determining a route switching mode according to the network environment data and the target load data, wherein the route switching mode is used to instruct the device in the charging system to perform route switching;
[0008] According to the route switching mode, a route switching instruction is issued to the device in the charging system, so that the device in the charging system performs route switching according to the route switching instruction.
[0009] In combination with the first aspect, in a possible implementation method, determining the routing switching mode based on the network environment data and the target load data includes: processing the network environment data to obtain processed target network environment data; analyzing the target network environment data to obtain the current network quality status between the edge gateway device and the cloud server; parsing the target load data to obtain first load data and second load data, wherein the first load data is the number of loads connected to the edge gateway device, and the second load data is the number of loads connected to the cloud server; obtaining the target device with the largest load data based on the first load data and the second load data; determining the routing switching mode based on the network quality status and the target device.
[0010] It can be seen that in this embodiment, the edge gateway device monitors changes in the network environment, performs the first-layer route selection judgment, and then makes the second-layer selection based on the load conditions on the device side and the cloud, and then dynamically adjusts the route to achieve a reasonable distribution of data processing and storage tasks, reduce the load pressure on the cloud, and improve the availability and performance of cloud services. It can also reduce the delay in data transmission, improve the real-time and response speed of data transmission, and can dynamically adjust the route according to the network environment and load conditions, improve the adaptability of the charging system to network changes, and enhance the flexibility and scalability of the charging system.
[0011] In combination with the first aspect, in a possible implementation method, the network quality status is stable, and the routing switching mode is determined based on the network quality status and the target device, including: when the target device is the edge gateway device, determining that the current routing switching mode is the local routing within the edge gateway device; or, when the target device is the cloud server, determining that the current routing switching mode is the cloud routing of the cloud server.
[0012] It can be seen that when the network environment is stable, the edge gateway device in this embodiment can timely identify and automatically trigger route switching according to the load conditions in the charging system, realize seamless switching between the edge and the cloud, and ensure the continuity and stability of data transmission.
[0013] In combination with the first aspect, in a possible implementation method, the network quality status is unstable, and the route switching mode is determined based on the network quality status and the target device, including: when the target device is the edge gateway device, determining that the current route switching mode is the local route within the edge gateway device; or, when the target device is the cloud server, obtaining the importance level of the load connected to the cloud server; connecting the load that exceeds the preset importance level through the local route within the edge gateway device, and suspending the processing of the load that is lower than the preset importance level.
[0014] It can be seen that when the network environment is unstable, the edge gateway device in this embodiment can dynamically determine the routing switching mode according to the load conditions in the charging system, realize seamless switching between the edge and the cloud, and ensure the continuity and stability of data transmission.
[0015] In combination with the first aspect, in a possible implementation method, when the target device is the cloud server, before obtaining the importance level of the load in the connection to the cloud server, it also includes: when the target device is the cloud server, if the second load data of the cloud server exceeds a preset threshold, determining that the current routing switching mode is the local routing within the edge gateway device; if the second load data of the cloud server is lower than the preset threshold, determining that the current routing switching mode is the cloud routing of the cloud server.
[0016] It can be seen that the edge gateway device in this embodiment can dynamically adjust the routing switching mode according to the corresponding load conditions of the cloud server, and take corresponding measures to ensure the stability of the charging system network connection and the continuity of data.
[0017] In combination with the first aspect, in a possible implementation method, the target network environment data is analyzed to obtain the current network quality status between the edge gateway device and the cloud server, including: performing data processing on the target network environment data to obtain fuzzy parameters corresponding to the target network environment data; combining preset fuzzy logic rules and the fuzzy parameters to obtain the current network quality status between the edge gateway device and the cloud server.
[0018] It can be seen that the edge gateway device in this embodiment accurately determines the current network quality status by reasonably defining fuzzy parameters and carefully designing fuzzy logic rules, thereby providing data support for decision-making routing switching modes.
[0019] In combination with the first aspect, in a possible implementation, after issuing a routing switching instruction to the device in the charging system according to the routing switching mode so that the device in the charging system performs routing switching according to the routing switching instruction, the routing switching method based on the edge gateway device also includes: real-time monitoring of real-time network environment data between the cloud server and real-time target load data in the charging system network; if the real-time network environment data and / or the real-time target load data change, re-performing routing switching.
[0020] It can be seen that this embodiment continuously monitors and analyzes real-time data and continuously adjusts the route switching strategy. This dynamic adjustment ensures that the charging system network can adapt to the changing network environment and load requirements and maintain the efficiency and stability of route switching.
[0021] In a second aspect, an embodiment of the present invention provides a routing switching device based on an edge gateway device, which is applied to an edge gateway device in a charging system, wherein the charging system further includes a cloud server and a charging pile, and the routing switching device includes:
[0022] an acquisition unit, configured to acquire network environment data between the edge gateway device and the cloud server, and acquire target load data of the edge gateway device in the charging system network;
[0023] a determining unit, configured to obtain a route switching mode according to the network environment data and the target load data, wherein the route switching mode is used to instruct a device in the charging system to perform route switching;
[0024] The switching unit is used to issue a route switching instruction to the device in the charging system according to the route switching mode, so that the device in the charging system performs route switching according to the route switching instruction.
[0025] In a third aspect, an edge gateway device is provided, the edge gateway device comprising a memory and a processor, the memory being connected to the processor, the processor being used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the edge gateway device implements the routing switching method based on the edge gateway device as described in the first aspect.
[0026] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the routing switching method based on the edge gateway device as described in the first aspect.
[0027] In the above-mentioned embodiments implemented by the route switching method based on the edge gateway device and its device, the edge gateway device and the storage medium, the network environment data between the edge gateway device and the cloud server and the target load data of the edge gateway device in the charging system network are first obtained. Secondly, the route switching mode is determined according to the network environment data and the target load data. The route switching mode is used to instruct the device in the charging system to perform route switching. Finally, according to the route switching mode, a route switching instruction is issued to the device in the charging system so that the device in the charging system performs route switching according to the route switching instruction. This embodiment can quickly respond to changes in network status and load conditions by acquiring network environment data between the cloud server and target load data in the charging system in real time, and then can determine the optimal route switching mode more timely to ensure efficient operation of the charging system under different conditions. That is, when the network is disconnected or abnormal, the edge gateway device can autonomously perform route switching without relying on the instant data response of the cloud, further reducing the decision delay caused by network problems, making the overall service provided by the charging network to the outside more stable, and ensuring the continuity and stability of the charging system. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0029] Figure 1 is a schematic diagram of a charging system in one embodiment of the present invention;
[0030] Figure 2 It is a flow chart of a routing switching method based on an edge gateway device in one embodiment of the present invention;
[0031] Figure 3 It is a structural schematic diagram of a routing switching device based on an edge gateway device in one embodiment of the present invention;
[0032] Figure 4 It is a schematic diagram of the structure of an edge gateway device in one embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0034] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in the present invention do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0035] In addition to the problems with the related technologies mentioned in the background technology, other related problems are found: (1) During network disconnection, the edge gateway device operates independently. When the network is restored, how to synchronize the data and status of the edge gateway device and the cloud to ensure the consistency of the system is a challenge. (2) When executing local decisions and processing tasks on the edge gateway device, there may be problems with uneven resource allocation. It is necessary to effectively manage the resources and load of the edge gateway to avoid performance bottlenecks. (3) When processing and storing sensitive data, the edge gateway device needs to ensure the security of the data and the protection of user privacy, which requires corresponding security mechanisms and protocols.
[0036] In order to solve these problems, this method proposes a route switching method based on an edge gateway device. This embodiment can quickly respond to changes in network status and load conditions by acquiring network environment data between the cloud server and the target load data in the charging system in real time, and can determine the optimal route switching mode more timely to ensure the efficient operation of the charging system under different conditions. That is, when the network is disconnected or abnormal, the edge gateway device can autonomously switch routes without relying on the instant data response of the cloud, further reducing the decision delay caused by network problems, making the overall service provided by the charging network to the outside more stable, and ensuring the continuity and stability of the charging system.
[0037] See also Figure 1 , Figure 1 An embodiment of the present application An embodiment of the present application provides a schematic diagram of a charging system, wherein the charging system 10 includes an edge gateway device 20, a cloud server 30, a mobile terminal 40, and a charging pile 50.
[0038] The mobile terminal 40 is a device composed of electronic components, including circuits, microprocessors, memory, sensors and other hardware for processing, storing and transmitting information. Mobile terminals can be portable, such as smart phones, tablet computers, laptops and wearable devices. Mobile terminals are usually able to perform multiple functions, such as data processing, communication, entertainment, navigation, etc., and can be connected to the network through various wireless or wired technologies.
[0039] Specifically, the mobile terminal 40 also provides a convenient interface for users to interact with the charging system. Users can use the mobile terminal to start and manage the charging process, view the charging status, and make payments. In addition, it can also communicate with the edge gateway device through technologies such as Bluetooth or Near-field communication (NFC).
[0040] The cloud server 30 is the remote control center of the charging system, which processes and stores a large amount of data from the entire charging network, performs complex computing tasks, such as user authentication, predicting charging costs, generating pre-deduction orders, and providing analysis services for users and operators. It is also responsible for communicating with the mobile terminal 40, receiving charging requests and sending pre-deduction information. That is, the cloud server 30 plays a central management role in the charging system, ensuring the overall coordination and optimization of the charging system.
[0041] Among them, the edge gateway device 20 is a key component in the charging system. It is located near the charging pile and is responsible for local processing of charging requests and management of the charging process when the network is disconnected or unstable. The edge gateway device 20 can communicate directly with the mobile terminal 40 and the charging pile 50 to perform security verification, generation and transmission of charging instructions, and preliminary processing of charging data. It acts as a bridge between the cloud server 30 and the charging pile 50, ensuring that the charging service can be carried out continuously and reliably even when the network connection is unreliable.
[0042] Among them, the charging pile 50 is the device that actually provides charging services. It can be a charging station installed in a public place or a private place. The charging pile 50 is directly connected to the edge gateway device 20, receives charging instructions from the edge gateway, executes the charging process, and generates charging data. The charging pile 50 can also authenticate with the edge gateway device 20 to ensure that only authorized users can use the charging service.
[0043] In view of this, the present application proposes a routing switching method based on an edge gateway device to solve the above problem, which is described in detail below.
[0044] See also Figure 2 , Figure 2A schematic flow chart of a routing switching method based on an edge gateway device provided in an embodiment of the present invention is applied to an edge gateway device in a charging system, wherein the charging system further includes a cloud server and a charging pile. The method includes the following steps:
[0045] S10, obtaining network environment data between the edge gateway device and the cloud server, and obtaining target load data of the edge gateway device in the charging system network.
[0046] Among them, the above-mentioned network environment data may include but are not limited to indicators such as network delay, bandwidth utilization, data transmission rate, signal strength and stability. The above-mentioned network environment data can be obtained through heartbeat detection between edge gateway devices and cloud servers, data packet transmission tests, network quality monitoring tools, etc.
[0047] Among them, the above-mentioned target load data refers to the load conditions of each device in the charging system, such as the load conditions of charging piles, edge gateway devices and cloud servers. When there are other devices in the charging system, other devices can be collected through edge gateway devices. The target load data may include but is not limited to processing power, storage space, energy consumption, etc.
[0048] Specifically, the load data of the charging pile may include but is not limited to the charging speed, charging status, charging power, battery status, etc. of the charging pile; the load data of the edge gateway device may include but is not limited to CPU usage, memory usage, network traffic, storage space utilization, etc.; the load data of the cloud server may include but is not limited to CPU usage, memory usage, storage space utilization, network bandwidth usage, etc.
[0049] The target load data may be collected through a system built-in monitoring tool, a performance counter, or by analyzing device logs, etc., and no limitation is made here.
[0050] The charging system network refers to a network system consisting of charging piles, edge gateway devices, cloud servers and other related devices to support the charging function of electric vehicles. This network usually includes wired and wireless communication networks for transmitting data and control signals.
[0051] It can be seen that the edge gateway device in this embodiment helps to evaluate the current network status by collecting network environment data in real time, thereby helping to predict potential network problems, and real-time monitoring of load data in the charging system network helps to provide decision data for dynamically adjusting workloads.
[0052] S20. Determine a route switching mode according to the network environment data and the target load data, wherein the route switching mode is used to instruct the device in the charging system to perform route switching.
[0053] Among them, the edge gateway device uses the acquired network environment data and target load data to perform data processing and analysis, which may include using fuzzy logic reasoning, machine learning algorithms or preset decision rules to analyze the data.
[0054] Optionally, the network environment data and the target load data need to be integrated and analyzed respectively, which may involve data cleaning, preprocessing and standardization to ensure the quality and availability of the data.
[0055] The above-mentioned routing switching mode is calculated based on network environment data and target load data, and it defines under what conditions the edge gateway device should switch to different routing strategies. The routing switching mode may include local routing, cloud routing, etc.
[0056] Furthermore, the routing switching mode needs to decide when to trigger routing switching based on predefined logic or policies, which may include threshold comparison, performance indicator comparison, load balancing algorithm, etc. For example, if the network delay exceeds a certain threshold, or the load of the edge gateway device or cloud server exceeds its processing capacity, the edge gateway device may decide to switch to local routing or cloud routing.
[0057] The routing switching mode is not static but dynamically adjusted. As the network environment changes and the load fluctuates, the edge gateway device will constantly re-evaluate the routing switching mode.
[0058] Among them, route switching refers to the process in which the edge gateway device automatically or manually selects a new routing path when the existing routing conditions no longer meet the requirements during network communication.
[0059] Among them, routing switching involves selecting a new routing path, which may be a local route (processed on the edge gateway device) or a cloud route (processed on the cloud server).
[0060] It can be seen that in this embodiment, the edge gateway device can dynamically determine the routing switching mode according to real-time data, thereby optimizing the data transmission path and improving the overall performance and user experience of the system. This intelligent routing switching mechanism is the key to achieving cloud-edge collaboration, which ensures the stability and response speed of the system in a complex network environment.
[0061] S30. According to the route switching mode, issuing a route switching instruction to the device in the charging system, so that the device in the charging system performs route switching according to the route switching instruction.
[0062] The route switching instruction includes but is not limited to a control signal and configuration information, and is used to instruct the devices in the charging system to perform a route switching operation.
[0063] Among them, route switching is to optimize the efficiency and reliability of data transmission. By adjusting the route, the goals of fast data packet transmission, fast recovery in case of failure, and balanced distribution of network load can be achieved.
[0064] Among them, the edge gateway device can send the routing switching instruction to the relevant devices in the charging system, such as the charging pile, edge gateway device, etc., through the network communication interface.
[0065] The device in the charging system updates its routing table or configuration and changes the data transmission path according to the received routing switching instruction. For example, if the instruction requires switching to the local route, the device will stop sending data to the cloud server and process it on the edge gateway device instead.
[0066] It can be seen that in this embodiment, the edge gateway device can dynamically determine the routing switching mode according to real-time data, and send corresponding instructions to the devices in the charging system, thereby optimizing the data transmission path and improving the overall performance of the system and user experience.
[0067] This embodiment can quickly respond to changes in network status and load conditions by acquiring network environment data between the cloud server and target load data in the charging system in real time, and can determine the optimal route switching mode more timely to ensure efficient operation of the charging system under different conditions. That is, when the network is disconnected or abnormal, the edge gateway device can autonomously switch routes without relying on the instant data response of the cloud, further reducing the decision delay caused by network problems, making the overall service provided by the charging network to the outside more stable, and ensuring the continuity and stability of the charging system.
[0068] In one embodiment, determining a routing switching mode based on the network environment data and the target load data includes: processing the network environment data to obtain processed target network environment data; analyzing the target network environment data to obtain the current network quality status between the edge gateway device and the cloud server; parsing the target load data to obtain first load data and second load data, wherein the first load data is the number of loads connected to the edge gateway device, and the second load data is the number of loads connected to the cloud server; obtaining a target device with the largest load data based on the first load data and the second load data; determining a routing switching mode based on the network quality status and the target device.
[0069] Among them, processing network environment data may involve steps such as data cleaning, denoising, and normalization to ensure the accuracy and consistency of the data.
[0070] Among them, the analysis process in the above-mentioned analysis of the target network environment data may include calculating average delay, evaluating bandwidth utilization and detecting network stability, etc.
[0071] The network quality status may include stable and unstable.
[0072] Specifically, when the network quality status is evaluated as stable, it means that the connection between the edge gateway device and the cloud server is in a good state in terms of latency, packet loss rate, bandwidth utilization, etc. Therefore, at this time, it is necessary to further determine the routing switching mode based on the target load data.
[0073] Optionally, when the network delay exceeds a set threshold or the bandwidth utilization is too high, the routing is triggered to switch to local mode; otherwise, the connection with the cloud server is maintained.
[0074] Optionally, if the load of the charging pile to which the edge gateway device is connected is high, it may be necessary to give priority to local routing to reduce the load pressure on the cloud.
[0075] Specifically, if the network quality status is evaluated as unstable, there may be increased latency, increased packet loss rate, or abnormal fluctuations in bandwidth utilization. In this case, the edge gateway device needs to consider the following strategies based on real-time load data and network quality indicators: (1) Select a better path or node for data transmission based on real-time network quality data and load conditions to reduce latency or packet loss rate; (2) Distribute the load to different edge gateway devices or cloud servers to avoid performance degradation or service interruption caused by excessive load on a certain device. (3) Set up backup paths or nodes. When the main path or node fails or the quality drops sharply, quickly switch to ensure service continuity and reliability.
[0076] The maximum load data means that by comparing the first load data and the second load data, it can be determined which device has the largest load. The device with the largest load may require more resources to process data, which affects the routing decision.
[0077] Among them, the first load data is the number of loads connected to the edge gateway device, which may include the number of connections, data traffic, etc., and is not uniquely limited here.
[0078] The second load data is the load quantity of the cloud server connection, which may include the number of connections, data processing load, etc., and is not limited here.
[0079] It can be seen that in this embodiment, the edge gateway device monitors changes in the network environment, performs the first-layer route selection judgment, and then makes the second-layer selection based on the load conditions on the device side and the cloud, and then dynamically adjusts the route to achieve a reasonable distribution of data processing and storage tasks, reduce the load pressure on the cloud, and improve the availability and performance of cloud services. It can also reduce the delay in data transmission, improve the real-time and response speed of data transmission, and can dynamically adjust the route according to the network environment and load conditions, improve the adaptability of the charging system to network changes, and enhance the flexibility and scalability of the charging system.
[0080] In one embodiment, the network quality status is stable, and the route switching mode is determined based on the network quality status and the target device, including: when the target device is the edge gateway device, determining that the current route switching mode is the local routing within the edge gateway device; or, when the target device is the cloud server, determining that the current route switching mode is the cloud routing of the cloud server.
[0081] Among them, when the above network quality status is stable, it means that the current connection quality is good, with low latency, low packet loss rate, and sufficient bandwidth.
[0082] Specifically, when the target device is an edge gateway device, it means that its load is high. At this time, local routing is selected. Local routing means that the data will be processed and forwarded inside the edge gateway device and does not need to be transmitted through the public Internet or other remote networks to reduce the load pressure on the cloud server. Therefore, it can provide lower latency and higher data processing efficiency.
[0083] When the target device is a cloud device, it means that its load is high. In this case, cloud routing is selected. The data will be transmitted to the cloud server via the Internet or a dedicated line, and further processed and routed by the cloud service provider. Cloud routing is suitable for application scenarios that require global data storage and processing.
[0084] It can be seen that when the network environment is stable, the edge gateway device in this embodiment can timely identify and automatically trigger route switching according to the load conditions in the charging system, realize seamless switching between the edge and the cloud, and ensure the continuity and stability of data transmission.
[0085] In one embodiment, the network quality status is unstable, and the route switching mode is determined based on the network quality status and the target device, including: when the target device is the edge gateway device, determining that the current route switching mode is the local route in the edge gateway device; or, when the target device is the cloud server, obtaining the importance level of the load connected to the cloud server; connecting the load exceeding the preset importance level through the local route in the edge gateway device, and suspending the processing of the load below the preset importance level.
[0086] Among them, the above network quality status is unstable, which means that the current network delay exceeds the set threshold or the bandwidth utilization is too high, and there is no unique limitation here.
[0087] Among them, when the network quality status is unstable and the target device is an edge gateway device, due to its high load, the edge gateway device chooses to transfer part of the data processing tasks to the local, that is, the local routing within the edge gateway device, in order to reduce dependence on the cloud server and reduce network transmission delay.
[0088] Among them, when the network quality status is unstable, and the target device is a cloud server, and its load is high, the edge gateway device needs to obtain the importance level of the load in the connected cloud server. The importance level can be determined by load classification, service level agreement (SLA) or other importance evaluation mechanisms.
[0089] Among them, the importance level may reflect the urgency or priority of the current task.
[0090] Among them, the edge gateway device can calculate the importance level of each load by monitoring and analyzing the load conditions connected to the cloud server. The preset importance level can be based on the urgency of the task, the real-time requirements of the data, or the priority setting of the system, which is not limited here.
[0091] Specifically, the edge gateway device decides which loads need to be processed through the local routing of the edge gateway device first based on the preset importance level threshold, so as to ensure that these tasks can be carried out stably in an unstable network environment. Local routing can reduce network latency and improve data processing efficiency, thereby ensuring the timely processing of important loads. For loads below the preset importance level, choose to delay processing or suspend processing and wait until the network quality is stable before processing. That is, suspending processing can prevent the edge gateway device or cloud server from being overloaded, ensuring that the processing of critical loads is not affected.
[0092] It can be seen that when the network environment is unstable, the edge gateway device in this embodiment can dynamically determine the routing switching mode according to the load conditions in the charging system, realize seamless switching between the edge and the cloud, and ensure the continuity and stability of data transmission.
[0093] In one embodiment, when the target device is the cloud server, before obtaining the importance level of the load in the connection to the cloud server, the route switching method based on the edge gateway device also includes: when the target device is the cloud server, if the second load data of the cloud server exceeds a preset threshold, determining that the current route switching mode is the local routing within the edge gateway device; if the second load data of the cloud server is lower than the preset threshold, determining that the current route switching mode is the cloud routing of the cloud server.
[0094] Among them, the above-mentioned preset thresholds can be determined based on factors such as the needs of the charging system, network environment, equipment performance and business objectives, and are not limited here.
[0095] Specifically, if the second load data of the cloud server exceeds the preset threshold, it means that the cloud service is overloaded, and then choose to switch to the local routing mode in the edge gateway device. Local routing can share the pressure of the cloud server and improve the overall performance and stability of the system.
[0096] Specifically, if the second load data of the cloud server is lower than a preset threshold, routing will continue to be performed in the cloud. In this case, cloud resources may still be able to effectively process and manage data traffic without transferring part of the load to the edge gateway device.
[0097] It can be seen that in this embodiment, the edge gateway device can dynamically adjust the routing switching mode according to the corresponding load of the cloud server, so that the overall service provided by the charging network to the outside world is more stable.
[0098] In one embodiment, the target network environment data is analyzed to obtain the current network quality status between the edge gateway device and the cloud server, including: performing data processing on the target network environment data to obtain fuzzy parameters corresponding to the target network environment data; combining preset fuzzy logic rules and the fuzzy parameters to obtain the current network quality status between the edge gateway device and the cloud server.
[0099] The above data processing includes cleaning, denoising, normalization and other steps to ensure the accuracy and consistency of the data. The processed data can be converted into a format that can be understood by the fuzzy logic reasoning system, namely, fuzzified parameters.
[0100] Among them, fuzzification is a method of dealing with data uncertainty and complexity, which converts specific data indicators into fuzzy descriptions for fuzzy logic reasoning. For example, network latency is divided into low latency, medium latency and high latency, and bandwidth utilization is divided into low, medium and high levels.
[0101] The above-mentioned preset fuzzy logic rules can be formulated according to the characteristics of the network environment, and are not limited here. The preset fuzzy logic rules define how to associate fuzzy parameters with network quality status. For example, the rule may define that when the delay is within a certain range, the network quality status is "good"; when the delay exceeds a certain threshold, the network quality status is "unstable".
[0102] Specifically, if the measured delay is 50ms, it may be mapped as "low delay"; if the bandwidth utilization is 70%, it is mapped as "medium bandwidth utilization".
[0103] Among them, combined with the actual fuzzification parameters, the preset fuzzy logic rules are applied for reasoning, which may involve logical operations, intersection and union operations of fuzzy sets, etc., to determine the fuzzy measurement value of the current network quality status.
[0104] Among them, after fuzzy logic reasoning, the network quality status between the edge gateway device and the cloud server can be obtained. This status can be a fuzzy description, such as "good", "average", "poor", or a specific fuzzy set value, such as a specific numerical range or fuzzy measurement.
[0105] Furthermore, in order to obtain a clear network quality status, a defuzzification method is applied, such as the maximum membership principle or the centroid method. The defuzzification method converts the fuzzy state into a clear value that is easy for the devices in the charging system to understand and execute.
[0106] For example, the fuzzy logic rules are preset as follows: if the delay is below 50ms, the network quality status is "good"; if the delay is between 50ms and 100ms, the network quality status is "general"; if the delay exceeds 100ms, the network quality status is "unstable". The fuzzy logic reasoning process is as follows: Assume that the delay data collected by the edge gateway device is 35ms. The fuzzified parameters of delay may be defined as "low delay" (membership degree is 0.5) and "high delay" (membership degree is 0.5). According to the fuzzy logic rules, the delay is below 50ms, so the network quality status is "good".
[0107] It can be seen that the edge gateway device in this embodiment accurately judges the current network quality status by reasonably defining fuzzy parameters and carefully designing fuzzy logic rules, thereby providing data support for decision-making routing switching mode.
[0108] In one embodiment, after issuing a route switching instruction to the device in the charging system according to the route switching mode so that the device in the charging system performs route switching according to the route switching instruction, the route switching method based on the edge gateway device also includes: real-time monitoring of real-time network environment data between the cloud server and real-time target load data in the charging system network; if the real-time network environment data and / or the real-time target load data change, re-performing route switching.
[0109] Among them, after the route switching, the real-time network environment data between the edge gateway device and the cloud server is continuously monitored. Through real-time monitoring, the edge gateway device can respond to changes in the network environment in a timely manner. At the same time, it is also necessary to continuously monitor the real-time target load data in the charging system network. The target load data reflects the load conditions of different devices in the charging system, such as the charging requirements of the charging pile or the real-time data processing requirements of other devices.
[0110] Among them, if the real-time network environment data or real-time target load data is monitored to change, the edge gateway device will re-evaluate the current routing configuration, that is, re-evaluate the network quality status and the load of the target device, and determine the current routing switching mode based on the new data. For example, if the network environment becomes unstable, part of the data processing tasks will be transferred to the local, that is, the local routing within the edge gateway device. Or, if the load of the cloud server is reduced, part of the data processing tasks will be transferred to the cloud, that is, the cloud routing of the cloud server. At this time, the routing switching instructions need to be regenerated and the updated instructions need to be sent to the device to ensure that the charging system network always transmits and processes data in the optimal routing mode.
[0111] It can be seen that this embodiment continuously monitors and analyzes real-time data and continuously adjusts the route switching strategy. This dynamic adjustment ensures that the charging system network can adapt to the changing network environment and load requirements and maintain the efficiency and stability of route switching.
[0112] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present application, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.
[0113] As another aspect of the embodiment of the present application, the embodiment of the present application provides a routing switching device based on an edge gateway device. The routing switching device based on the edge gateway device can be a software module, and the software module includes a number of instructions, which are stored in a memory, and the processor can access the memory and call the instructions for execution to complete the routing switching method based on the edge gateway device described in the above-mentioned various embodiments.
[0114] See also Figure 3 , Figure 3 Schematic diagram of a routing switching device based on an edge gateway device provided in an embodiment of the present application. An edge gateway device applied to a charging system, wherein the charging system further includes a cloud server, a charging pile, such as Figure 3 As shown, the routing switching device 300 based on the edge gateway device includes:
[0115] An acquisition unit 301 is used to acquire network environment data between the edge gateway device and the cloud server, and to acquire target load data of the edge gateway device in the charging system network;
[0116] A determination unit 302, configured to obtain a route switching mode according to the network environment data and the target load data, wherein the route switching mode is used to instruct the device in the charging system to perform route switching;
[0117] The switching unit 303 is used to send a route switching instruction to the device in the charging system according to the route switching mode, so that the device in the charging system performs route switching according to the route switching instruction.
[0118] This embodiment can quickly respond to changes in network status and load conditions by acquiring network environment data between the cloud server and target load data in the charging system in real time, and can determine the optimal route switching mode more timely to ensure efficient operation of the charging system under different conditions. That is, when the network is disconnected or abnormal, the edge gateway device can autonomously switch routes without relying on the instant data response of the cloud, further reducing the decision delay caused by network problems, making the overall service provided by the charging network to the outside more stable, and ensuring the continuity and stability of the charging system.
[0119] In one embodiment, in determining the route switching mode according to the network environment data and the target load data, the determination unit 302 is further used to: process the network environment data to obtain processed target network environment data; analyze the target network environment data to obtain the current network quality status between the edge gateway device and the cloud server; parse the target load data to obtain first load data and second load data, wherein the first load data is the number of loads connected to the edge gateway device, and the second load data is the number of loads connected to the cloud server; obtain the target device with the largest load data according to the first load data and the second load data; determine the route switching mode according to the network quality status and the target device.
[0120] In one embodiment, when the network quality status is stable, in determining the route switching mode based on the network quality status and the target device, the determination unit 302 is further used to: when the target device is the edge gateway device, determine that the current route switching mode is the local routing within the edge gateway device; or, when the target device is the cloud server, determine that the current route switching mode is the cloud routing of the cloud server.
[0121] In one embodiment, when the network quality status is unstable, in determining the route switching mode based on the network quality status and the target device, the determination unit 302 is further used for: when the target device is the edge gateway device, determining that the current route switching mode is the local route in the edge gateway device; or, when the target device is the cloud server, obtaining the importance level of the load connected to the cloud server; connecting the load exceeding the preset importance level through the local route in the edge gateway device, and suspending the processing of the load below the preset importance level.
[0122] In one embodiment, when the target device is the cloud server, before obtaining the importance level of the load in the connection to the cloud server, the determination unit 302 is also used to: when the target device is the cloud server, if the second load data of the cloud server exceeds a preset threshold, determine that the current routing switching mode is the local routing within the edge gateway device; if the second load data of the cloud server is lower than the preset threshold, determine that the current routing switching mode is the cloud-side routing of the cloud server.
[0123] In one embodiment, in analyzing the target network environment data to obtain the current network quality status between the edge gateway device and the cloud server, the determination unit 302 is also used to: perform data processing on the target network environment data to obtain fuzzy parameters corresponding to the target network environment data; and obtain the current network quality status between the edge gateway device and the cloud server by combining preset fuzzy logic rules and the fuzzy parameters.
[0124] In one embodiment, after issuing a route switching instruction to the device in the charging system according to the route switching mode so that the device in the charging system performs route switching according to the route switching instruction, the acquisition unit 301 is also used to: monitor the real-time network environment data between the cloud server and the real-time target load data in the charging system network in real time; if the real-time network environment data and / or the real-time target load data change, re-perform route switching.
[0125] It should be noted that the above-mentioned routing switching device based on the edge gateway device can execute the routing switching method based on the edge gateway device provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the routing switching device based on the edge gateway device, please refer to the routing switching method based on the edge gateway device provided in the embodiment of the present application.
[0126] See also Figure 4 , Figure 4 Schematic diagram of the structure of an edge gateway device provided in an embodiment of the present application. Figure 4 As shown, the edge gateway device 400 includes a processor 401 and a memory 402. The processor 401 is in communication connection with the memory 402.
[0127] The processor 401 is configured to support the edge gateway device to perform the corresponding functions in the routing switching method based on the edge gateway device in the above method embodiment. The processor 401 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0128] Specifically, the processor 401 may include a sending card, a receiving card and a driving chip.
[0129] The memory 402 is used to store program codes, etc. The memory 402 may include a volatile memory (VM), such as a random access memory (RAM); the memory 402 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 402 may also include a combination of the above-mentioned types of memories.
[0130] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the routing switching method based on the edge gateway device as described in the above embodiment.
[0131] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0132] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A routing switching method based on an edge gateway device, It is characterized in that An edge gateway device applied to a charging system, wherein the charging system further includes a cloud server and a charging pile, and the routing switching method based on the edge gateway device includes: Acquire network environment data between the edge gateway device and the cloud server, and acquire target load data of the edge gateway device in the charging system network; Determining a route switching mode according to the network environment data and the target load data, wherein the route switching mode is used to instruct the device in the charging system to perform route switching; According to the route switching mode, a route switching instruction is issued to the device in the charging system, so that the device in the charging system performs route switching according to the route switching instruction.
2. The routing switching method based on the edge gateway device according to claim 1, It is characterized in that The determining of the route switching mode according to the network environment data and the target load data includes: Processing the network environment data to obtain processed target network environment data; Analyze the target network environment data to obtain the current network quality status between the edge gateway device and the cloud server; Parsing the target load data to obtain first load data and second load data, wherein the first load data is the number of loads connected to the edge gateway device, and the second load data is the number of loads connected to the cloud server; According to the first load data and the second load data, obtaining a target device with the largest load data; A routing switching mode is determined according to the network quality status and the target device.
3. The routing switching method based on the edge gateway device according to claim 2, It is characterized in that The network quality state is stable, and determining the route switching mode according to the network quality state and the target device includes: When the target device is the edge gateway device, determining that the current routing switching mode is the local routing in the edge gateway device; or, When the target device is the cloud server, it is determined that the current routing switching mode is the cloud routing of the cloud server.
4. The routing switching method based on the edge gateway device according to claim 2, It is characterized in that The network quality state is unstable, and determining the route switching mode according to the network quality state and the target device includes: When the target device is the edge gateway device, determining that the current routing switching mode is the local routing in the edge gateway device; or, When the target device is the cloud server, obtaining an importance level of a load in connection with the cloud server; The load exceeding the preset importance level is connected through the local routing in the edge gateway device, and the load below the preset importance level is suspended.
5. The routing switching method based on the edge gateway device according to claim 4, It is characterized in that When determining that the target device is the cloud server, before obtaining the importance level of the load in connecting to the cloud server, the method further includes: When the target device is the cloud server, if the second load data of the cloud server exceeds a preset threshold, determining that the current routing switching mode is the local routing in the edge gateway device; If the second load data of the cloud server is lower than the preset threshold, it is determined that the current routing switching mode is the cloud routing of the cloud server.
6. The routing switching method based on the edge gateway device according to any one of claims 2 to 5, It is characterized in that The analyzing the target network environment data to obtain the current network quality status between the edge gateway device and the cloud server includes: Performing data processing on the target network environment data to obtain fuzzy parameters corresponding to the target network environment data; By combining the preset fuzzy logic rules and the fuzzification parameters, the current network quality status between the edge gateway device and the cloud server is obtained.
7. The routing switching method based on the edge gateway device according to claim 1, It is characterized in that After issuing a route switching instruction to the device in the charging system according to the route switching mode so that the device in the charging system performs route switching according to the route switching instruction, the route switching method based on the edge gateway device further includes: Real-time monitoring of real-time network environment data between the cloud server and real-time target load data in the charging system network; If the real-time network environment data and / or the real-time target load data changes, the route switching is performed again.
8. A routing switching device based on an edge gateway device, applied to an edge gateway device in a charging system, wherein the charging system further includes a cloud server and a charging pile, and the routing switching device include: an acquisition unit, configured to acquire network environment data between the edge gateway device and the cloud server, and acquire target load data of the edge gateway device in the charging system network; a determination unit, configured to obtain a route switching mode according to the network environment data and the target load data, wherein the route switching mode is used to instruct a device in the charging system to perform route switching; The switching unit is used to issue a route switching instruction to the device in the charging system according to the route switching mode, so that the device in the charging system performs route switching according to the route switching instruction.
9. An edge gateway device, It is characterized in that It includes a memory and a processor, the memory is connected to the processor, the processor is used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the edge gateway device implements the routing switching method based on the edge gateway device as described in any one of claims 1-7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the routing switching method based on an edge gateway device as described in any one of claims 1 to 7.
Citation Information
Cited By
Traffic risk processing method and system based on space intelligent scene
CN120496330A
Data processing method and device, MES system, storage medium and equipment
CN121785809A
