Network connection switching method and apparatus, electronic device, and storage medium
By constructing a comprehensive network determination method in 5G edge terminals and adopting a blockchain design, decentralized management of the 5G edge engine network is realized, solving the problem of low network management accuracy in existing technologies and improving the accuracy and stability of network status determination.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-25
- Publication Date
- 2026-03-10
AI Technical Summary
Existing technologies suffer from low accuracy when managing 5G terminal engine networks, failing to accurately and timely assess network status and leading to mismanagement.
By constructing a comprehensive network judgment method for 5G terminal engines in each 5G edge terminal and adopting a blockchain design, the network management of 5G edge engines is decentralized. Each 5G terminal engine shares the network connection quality score and feeds it back to the edge engine through messages, thereby realizing a comprehensive assessment and management of network status.
It improves the accuracy of management of 5G edge engine networks, avoids mismanagement caused by deploying management applications in the edge engine, and ensures the accuracy and stability of network state switching.
Smart Images

Figure CN115915323B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a network connection switching method and device, electronic equipment and storage medium. BACKGROUND
[0002] With the rapid development of communication technology, the application of 5G (5th-Generation Mobile Communication Technology) edge engine is also more and more widely.
[0003] The 5G edge engine can include a 5G terminal engine, an edge (MEC (Mobile Edge Computing)) engine, a cloud engine and an engine control APP (Application).
[0004] 5G terminal engine: connected to the operator edge engine through the 5G network, and connected to the control device through the device protocol. The device readings, alarms, running status, instrument data and other information are reported to the edge engine, and the control commands of the edge engine are accepted, such as device start, stop, etc., for instant control of the device. Therefore, it requires very high stability, and each device will be connected to multiple redundant 5G terminal engines to prepare for network state or offline, so as not to affect the normal production.
[0005] Edge engine: realize the mobility management and session management of 5G terminal engine, configure device collection and control strategy, management; establish user plane bearer for 5G edge terminal, and transfer uplink and downlink data. Control and switch the 5G terminal engine, judge and switch the 5G terminal engine with better network state as the master device, and the 5G terminal engine with poor state as the offline device, to ensure that production can be carried out orderly and stably in the 5G environment.
[0006] Cloud engine: realize unified management of various 5G terminal connection device data, and manage the edge engine, and open an interface to the third party application system, so that various applications can quickly build their own 5G industrial business.
[0007] Engine control APP: realize the business management of the engine, including the start and stop of the engine, business issuance, business control and presentation, etc.
[0008] At present, when managing the network of the 5G terminal engine, the following two schemes are usually adopted:
[0009] Scheme one, according to the specific circumstances of each device field protocol, specially develop a separate network communication management interface for the device, and judge whether the network between the cloud engine, edge engine and terminal engine is normal through the data returned by each request.
[0010] Scheme two, build a message server in the 5G terminal engine, send network connection heartbeat information to the edge engine in real time, if the edge engine does not receive the message within a certain time, it is judged as offline, and the edge engine controls the switching of the offline 5G edge terminal.
[0011] The above scheme one, when a new device protocol is added, a network communication management interface for the device protocol needs to be developed. The plug-in development has high learning cost and complicated deployment process. Moreover, there are many types of industrial device protocols, and the request and return time of each protocol interface is different, which will lead to inaccurate and timely judgment of the network status of the 5G terminal engine, and thus it is difficult to effectively manage the network of the 5G terminal engine.
[0012] The above scheme two, each 5G terminal engine needs to build a message server, and at the same time, the corresponding heartbeat receiving program needs to be developed in the edge engine, which is very complicated to deploy. Moreover, it can only judge the connection status of the 5G edge terminal and the edge engine, and the result is often far from the actual result, thus leading to the wrong management of the network of the 5G edge engine. SUMMARY
[0013] The technical problem to be solved by the embodiments of the present application is to provide a network connection switching method and device, electronic equipment and storage medium, to effectively improve the accuracy of the management of the network of the 5G edge engine.
[0014] In a first aspect, the embodiments of the present application provide a network connection switching method applied to a target 5G terminal engine, the method comprising:
[0015] Obtaining a 5G edge terminal chain under a 5G edge engine to which the local end belongs; wherein all the 5G terminal engines in the 5G edge terminal chain are redundant to each other;
[0016] Obtaining a first network connection state between each 5G terminal engine in the 5G edge terminal chain and a cloud engine, and a second network connection state between each 5G terminal engine and the 5G edge engine; each 5G terminal engine includes the target 5G terminal engine;
[0017] Obtaining a network quality score of each 5G terminal engine;
[0018] Determining whether the local end is a master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state and the network quality score.
[0019] In response to the local end being the master 5G terminal engine of the 5G edge engine, a network connection between the local end and the 5G edge engine is established.
[0020] Optionally, the determining whether the local end is the master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state and the network quality score comprises:
[0021] In a case where the first network connection state and the second network connection state are both normal states, a network quality score of the local end is compared with network quality scores of other 5G terminal engines under the 5G edge terminal to obtain a score comparison result.
[0022] According to the score comparison result, it is determined whether the local end is the master 5G terminal engine.
[0023] Optionally, the determining whether the local end is the master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state and the network quality score comprises:
[0024] In a case where the first network connection state is an abnormal state and the second network connection state is a normal state, the network quality score of the local end is reported to the 5G edge engine, so that the 5G edge engine determines whether the local end is the master 5G terminal engine according to network quality scores of the 5G terminal engines.
[0025] Optionally, the determining whether the local end is the master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state and the network quality score comprises:
[0026] In a case where the first network connection state is a normal state and the second network connection state is an abnormal state, a network quality score of the local end is compared with network quality scores of other 5G terminal engines under the 5G edge terminal to obtain a score comparison result.
[0027] According to the score comparison result, it is determined whether the local end is the master 5G terminal engine.
[0028] Optionally, the determining whether the local end is the master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state and the network quality score comprises:
[0029] In a case where the first network connection state and the second network connection state are both abnormal states, a current master 5G terminal engine is maintained, and network abnormality alarm information is reported.
[0030] Optionally, the 5G edge terminal chain is established by the 5G edge engine in the following manner:
[0031] Obtain all redundant 5G terminal engines among all 5G terminal engines;
[0032] Based on the redundant 5G terminal engines, the 5G edge terminal chain is established.
[0033] Secondly, embodiments of this application provide a network connection switching device applied to a target 5G terminal engine, the device comprising:
[0034] The terminal chain acquisition module is used to acquire the 5G edge terminal chain under the 5G edge engine to which the local terminal belongs; wherein, the 5G edge terminal chain consists of 5G terminal engines that are redundant with each other.
[0035] The connection status acquisition module is used to acquire the first network connection status between each 5G terminal engine and the cloud engine within the 5G edge terminal chain, and the second network connection status between each 5G terminal engine and the 5G edge engine; each 5G terminal engine includes the target 5G terminal engine.
[0036] The network quality score acquisition module is used to acquire the network quality score of each of the 5G terminal engines.
[0037] The master control terminal determination module is used to determine whether the local terminal is the master control 5G terminal engine of the 5G edge engine based on the first network connection status, the second network connection status and the network quality score.
[0038] The network connection establishment module is used to establish a network connection between the main control 5G terminal engine and the 5G edge engine in response to the local end.
[0039] Optionally, the master control terminal determination module includes:
[0040] The first comparison result acquisition unit is used to compare the network quality score of the local end with the network quality score of other 5G terminal engines under the 5G edge terminal chain when both the first network connection state and the second network connection state are in a normal state, and to obtain a score comparison result.
[0041] The first master control terminal determination unit is used to determine whether the local terminal is the master control 5G terminal engine based on the scoring comparison result.
[0042] Optionally, the master control terminal determination module includes:
[0043] The second master control terminal determination unit is used to report the local network quality score to the 5G edge engine when the first network connection state is abnormal and the second network connection state is normal, so that the 5G edge engine can determine whether the local terminal is the master control 5G terminal engine based on the network quality scores of each 5G terminal engine.
[0044] Optionally, the master control terminal determination module includes:
[0045] The second comparison result acquisition unit is used to compare the network quality score of the local end with the network quality score of other 5G terminal engines under the 5G edge terminal chain when the first network connection state is normal and the second network connection state is abnormal, and to obtain a score comparison result.
[0046] The third master control terminal determination unit is used to determine whether the local terminal is the master control 5G terminal engine based on the scoring comparison results.
[0047] Optionally, the master control terminal determination module includes:
[0048] The fourth master control terminal determination unit is used to maintain the current master control 5G terminal engine and report network abnormality alarm information when both the first network connection state and the second network connection state are abnormal.
[0049] Optionally, the 5G edge terminal chain is established by the 5G edge engine in the following manner:
[0050] Obtain all redundant 5G terminal engines among all 5G terminal engines;
[0051] Based on the redundant 5G terminal engines, the 5G edge terminal chain is established.
[0052] Thirdly, embodiments of this application provide an electronic device, including:
[0053] A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the network connection switching method described above.
[0054] Fourthly, embodiments of this application provide a computer-readable storage medium that, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the network connection switching method described in any of the preceding claims.
[0055] Compared with the prior art, the embodiments of this application have the following advantages:
[0056] In this embodiment, the 5G edge terminal chain under the 5G edge engine to which the local terminal belongs is obtained. Within the 5G edge terminal chain, there are redundant 5G terminal engines. The first network connection status between each 5G terminal engine and the cloud engine, and the second network connection status between each 5G terminal engine and the 5G edge engine are obtained. Each 5G terminal engine includes a target 5G terminal engine. The network quality score of each 5G terminal engine is obtained. Based on the first network connection status, the second network connection status, and the network quality score, it is determined whether the local terminal is the master 5G terminal engine of the 5G edge engine. In response to the local terminal being the master 5G terminal engine, a network connection is established with the 5G edge engine. This embodiment decentralizes the 5G edge engine network management, eliminating the need to build a unified network management application within the edge engine. Instead, a comprehensive network determination method for the 5G terminal engine is built within each 5G edge terminal. This avoids the problem of incorrect management of the 5G edge engine network caused by deploying management applications within the 5G edge engine in existing technologies, thus improving the accuracy of 5G edge engine network management.
[0057] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0058] Figure 1 A flowchart illustrating the steps of a network connection switching method provided in this application embodiment;
[0059] Figure 2 A schematic diagram illustrating a network quality evaluation score provided in an embodiment of this application;
[0060] Figure 3 A schematic diagram illustrating a comprehensive network quality evaluation score provided in an embodiment of this application;
[0061] Figure 4 This is a schematic diagram of the structure of a web page information extraction device provided in an embodiment of this application;
[0062] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0063] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0064] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0065] Existing solutions all suffer from the inability to accurately and timely assess the network status of 5G terminal engines, making it difficult to effectively manage the 5G terminal engine network and resulting in low accuracy in 5G terminal engine network management.
[0066] To address the aforementioned issues, this application aims to decentralize 5G edge engine network management, eliminating the need for a unified network management application within the edge engine. Instead, it constructs a comprehensive network judgment method for each 5G edge terminal (including a device network quality judgment algorithm and a 5G connection quality judgment algorithm), incorporating blockchain design principles. Each 5G edge terminal engine acts as a block, and the 5G terminal engines within each "chain" are redundant and switchable terminals. 5G terminal engines within the same "chain" share the network connection quality scores of all terminals and feed back their individual network quality scores to the edge engine via message association, thereby achieving management of the 5G terminal engine network and improving the accuracy of 5G terminal engine network management.
[0067] The technical solutions of the embodiments of this application will be described in detail below with reference to specific examples.
[0068] Reference Figure 1 This document illustrates a flowchart of a network connection switching method provided in an embodiment of this application. This network connection switching method can be applied to a target 5G terminal engine, such as... Figure 1 As shown, the network connection switching method may include the following steps:
[0069] Step 101: Obtain the 5G edge terminal chain under the 5G edge engine to which this terminal belongs; wherein, the 5G edge terminal chain consists of redundant 5G terminal engines.
[0070] The embodiments of this application can be applied to the target 5G terminal engine, that is, the execution subject is the target 5G terminal engine.
[0071] Understandably, a 5G edge engine can contain multiple 5G terminal engines. The target 5G terminal engine can be any one of the multiple 5G terminal engines under the 5G edge engine. For example, the multiple 5G terminal engines under the 5G edge engine are: 5G terminal engine 1, 5G terminal engine 2, 5G terminal engine 3, 5G terminal engine 4 and 5G terminal engine 5. In this case, 5G terminal engine 1 can be used as the target 5G terminal engine, or 5G terminal engine 3 can be used as the target 5G terminal engine, and so on.
[0072] It is understood that the above examples are merely examples listed to better understand the technical solutions of the embodiments of this application, and are not intended to be the only limitation on the embodiments.
[0073] A 5G edge terminal chain refers to a terminal chain generated by multiple redundant 5G terminal engines under a 5G edge engine. In this example, the 5G edge terminal chain can be pre-established by the 5G edge engine based on the relationships between its multiple subordinate 5G terminal engines. The establishment process of the 5G edge terminal chain is as follows:
[0074] 1. Obtain redundant 5G terminal engines from all 5G terminal engines under the 5G edge engine;
[0075] 2. Establish a 5G edge terminal chain based on the redundant 5G terminal engines among all 5G terminal engines.
[0076] Understandably, a single 5G edge terminal chain can exist under a 5G edge engine. Multiple 5G edge terminal chains can also exist. Specifically, this depends on the actual situation, and this embodiment does not impose any limitations on it.
[0077] When managing the 5G terminal engine network under the 5G edge engine network, the 5G edge terminal chain under the 5G edge engine to which the local end (i.e. the target 5G terminal engine) belongs can be obtained.
[0078] After obtaining the 5G edge terminal chain under the 5G edge engine of this terminal, proceed to step 102.
[0079] Step 102: Obtain the first network connection status between each 5G terminal engine and the cloud engine within the 5G edge terminal chain, and the second network connection status between each 5G terminal engine and the 5G edge engine; each 5G terminal engine includes the target 5G terminal engine.
[0080] Each 5G terminal engine is a redundant 5G terminal engine within the 5G edge terminal chain, which includes the target 5G terminal engine.
[0081] The first network connection status refers to the network connection status between each 5G terminal engine and the cloud engine within the 5G edge terminal chain.
[0082] The second network connection status refers to the network connection status between each 5G terminal engine and the 5G edge engine within the 5G edge terminal chain.
[0083] After obtaining the 5G edge terminal chain under the 5G edge engine to which this end belongs, the system can acquire the first network connection status between each 5G terminal engine and the cloud engine within the 5G edge terminal chain, and the second network connection status between each 5G terminal engine and the 5G edge engine. In specific implementation, each 5G edge engine within the 5G edge terminal chain can share the connection status data of other 5G edge engines. Thus, the target 5G edge engine can obtain its own connection status data, as well as the connection status data of other 5G edge engines.
[0084] After obtaining the first network connection status between each 5G terminal engine and the cloud engine within the 5G edge terminal chain, and the second network connection status between each 5G terminal engine and the 5G edge engine, step 104 is executed.
[0085] Step 103: Obtain the network quality score of each 5G terminal engine.
[0086] The network quality score is a comprehensive indicator of the network connectivity quality and device networking quality of a 5G terminal engine. A higher network quality score means that the 5G terminal engine can provide better network service, while a lower score means that the 5G terminal engine can provide poorer network service.
[0087] In the specific implementation, each 5G terminal engine is pre-set with a device network quality judgment algorithm program and a 5G connection quality judgment algorithm program. Each 5G terminal engine can obtain its own device network quality and 5G connection quality through these two programs. Moreover, each 5G terminal engine in the 5G edge terminal chain can share the network connection quality scores of all 5G terminal engines. Therefore, the target 5G terminal engine can obtain its own network connection status and network connection quality score, as well as the network connection status and network connection quality scores of other 5G terminal engines.
[0088] The network quality assessment algorithm for device networking and the 5G connection quality assessment algorithm can be combined. Figure 2 The following is a detailed description.
[0089] Reference Figure 2 The diagram illustrates a network quality evaluation score provided in an embodiment of this application.
[0090] like Figure 2As shown, the network quality evaluation score can include two parts: the device network connectivity comprehensive evaluation score QFi and the 5G network quality comprehensive evaluation score QFn.
[0091] The weight corresponding to the device network connectivity comprehensive evaluation score is KFi, and the weight corresponding to the 5G network quality comprehensive evaluation score is KFn. Each 5G terminal engine uses a pre-built algorithm program to calculate its corresponding network quality score by weighting its device network connectivity comprehensive evaluation score and 5G network quality comprehensive evaluation score.
[0092] After the target 5G terminal engine obtains the 5G edge terminal chain under its own 5G edge engine, it can obtain its own network quality score and the network quality scores of other 5G terminal engines in the 5G edge terminal chain through a pre-built algorithm program.
[0093] After obtaining the network quality scores of each 5G terminal engine within the 5G edge terminal chain, proceed to step 104.
[0094] Step 104: Based on the first network connection status, the second network connection status, and the network quality score, determine whether the local terminal is the main 5G terminal engine controlling the 5G edge engine.
[0095] After obtaining the network quality scores of each 5G terminal engine within the 5G edge terminal chain, as well as the first and second network connection states corresponding to each 5G terminal engine, it is possible to determine whether the local terminal is the master 5G terminal engine controlling the 5G edge engine based on the first network connection state, the second network connection state, and the network quality score. Specifically, this can include the following four scenarios:
[0096] Scenario 1:
[0097] Assuming all first and second network connection states are normal, the network quality score of the local device is compared with the network quality scores of other 5G terminal engines under the 5G edge terminal chain to obtain a score comparison result. Based on the score comparison result, it is determined whether the local device is the master 5G terminal engine.
[0098] Within the 5G edge terminal chain, if the network connections between each 5G terminal engine and the network connection with the 5G edge engine are normal, then the 5G terminal engines within the chain will autonomously determine that the one with the best network quality is the controlling 5G terminal engine and will actively connect to it. Non-controlling 5G terminal engines will then autonomously go offline from the edge engine.
[0099] Scenario 2:
[0100] If the first network connection status is abnormal and the second network connection status is normal, the local network quality score will be reported to the 5G edge engine. The 5G edge engine will then determine whether the local device is the master 5G terminal engine based on the network quality scores of each 5G terminal engine.
[0101] Within the 5G edge terminal chain, if the network connection between each 5G terminal engine is abnormal but the network connection with the edge engine is normal, the 5G terminal engine with abnormal connection will report the abnormal connection with the 5G terminal engines within the 5G edge terminal chain. Each 5G terminal engine will report its own network connection quality, and the 5G edge engine will switch the master 5G terminal engine. That is, the 5G edge engine will select the 5G terminal engine with the highest network quality score from all 5G terminal engines as the master 5G terminal engine based on the network quality score.
[0102] Scenario 3:
[0103] If the first network connection state is normal and the second network connection state is abnormal, the network quality score of the local device is compared with the network quality scores of other 5G terminal engines under the 5G edge terminal chain to obtain a score comparison result. Based on the score comparison result, it is determined whether the local device is the master control 5G terminal engine.
[0104] Within the 5G edge terminal chain, if the network connection between each 5G terminal engine is normal but the network connection with the edge engine is abnormal, the 5G terminal engines within the 5G edge terminal chain will autonomously determine the 5G terminal engine with the best network quality to become the controlling 5G terminal engine. The 5G edge engine will then issue an alarm, alerting 5G network operation and maintenance personnel to intervene and handle the situation promptly.
[0105] Scenario 4:
[0106] If both the first and second network connection states are abnormal, maintain the current main control 5G terminal engine and report network abnormality alarm information.
[0107] In other words, if the network connection between each 5G terminal engine and the network connection with the edge engine are abnormal within the 5G edge terminal chain, the main 5G terminal engine will remain unchanged, and both the 5G terminal engine and the edge engine will issue alarms simultaneously to remind 5G network operation and maintenance personnel to intervene and handle the situation in a timely manner.
[0108] After determining that this end is the main 5G terminal engine controlling the 5G edge engine, step 105 is executed.
[0109] Step 105: In response to the main 5G terminal engine, establish a network connection between the local end and the 5G edge engine.
[0110] After identifying the local 5G terminal engine as the master 5G edge engine, a network connection can be established between the local 5G terminal engine and the master 5G edge engine.
[0111] Specifically, this can include the following two situations:
[0112] 1. The target 5G terminal engine is originally the main control 5G terminal engine of the 5G edge engine. At this time, the current network connection can be maintained unchanged.
[0113] 2. The target 5G terminal engine was not originally the master 5G terminal engine of the 5G edge engine. At this time, a network connection with the 5G edge engine can be established, and the original master 5G terminal engine of the 5G edge engine will actively disconnect from the network connection with the 5G edge engine.
[0114] This application's embodiments decentralize 5G edge engine network management, eliminating the need to build a unified network management application within the edge engine. Instead, a comprehensive network determination method for the 5G terminal engine is built within each 5G edge terminal. This avoids the problem of erroneous management of the 5G edge engine network caused by deploying management applications within the 5G edge engine in existing technologies, thus improving the accuracy of 5G edge engine network management.
[0115] Next, combined Figure 3 The technical solutions of the embodiments of this application are described as follows.
[0116] Reference Figure 3 The diagram illustrates a comprehensive network quality evaluation score provided in an embodiment of this application.
[0117] like Figure 3 As shown, the block contains multiple 5G terminal engines, each corresponding to a single terminal. Each 5G terminal engine within the block has pre-built algorithms for judging device network quality and 5G connection quality. These algorithms allow the engine to obtain its own 5G network quality and device network quality. Then, the network quality score for each 5G terminal engine is obtained by weighting the 5G network quality and device network quality scores. Finally, the network connection status between the 5G terminal engine and the single terminal (i.e., the cloud engine) and the connection status between the 5G terminal engine and the 5G edge engine are combined to select the master 5G terminal engine. The specific selection method is as follows:
[0118] If the network connection between each 5G terminal engine within the "chain" is normal and the network connection with the edge engine is normal, then the 5G terminal engine within the "chain" will autonomously determine that the one with the best network quality is the master 5G terminal engine and actively connect to the edge engine; the non-master 5G terminal engines will autonomously go offline with the edge engine.
[0119] If the network connection between each 5G terminal engine within the "chain" is abnormal but the network connection with the edge engine is normal, the 5G terminal engine with abnormal connection will report the abnormal connection with the 5G terminal engines within the "chain". Each 5G terminal engine will report its own network connection quality, and the edge engine will switch the master 5G terminal engine.
[0120] If the network connection between each 5G terminal engine within the "chain" is normal, but the network connection with the edge engine is abnormal, then the 5G terminal engines within the "chain" will autonomously determine the one with the best network quality to become the controlling 5G terminal engine. The edge engine will then issue an alarm, alerting 5G network operations and maintenance personnel to intervene and handle the situation promptly.
[0121] If the network connection between each 5G terminal engine within the "chain" is abnormal and the network connection with the edge engine is also abnormal, the main control 5G terminal engine will remain unchanged, and both the 5G terminal engine and the edge engine will issue alarms simultaneously to remind 5G network operation and maintenance personnel to intervene and handle the situation in a timely manner.
[0122] The method for determining network status in this application no longer uses analog feedback requests, but instead employs explicit digital scoring, allowing for unified evaluation and eliminating the need for customized development. Decentralization enables more timely switching of the main 5G terminal engine. Furthermore, it ensures stable on-site production even under poor network conditions.
[0123] The network connection switching method provided in this application embodiment obtains a 5G edge terminal chain under the 5G edge engine to which the local terminal belongs, wherein the 5G edge terminal chain consists of redundant 5G terminal engines. It obtains the first network connection status between each 5G terminal engine and the cloud engine within the 5G edge terminal chain, and the second network connection status between each 5G terminal engine and the 5G edge engine, where each 5G terminal engine includes a target 5G terminal engine. It obtains the network quality score of each 5G terminal engine, and based on the first network connection status, the second network connection status, and the network quality score, determines whether the local terminal is the master 5G terminal engine of the 5G edge engine. In response to the local terminal being the master 5G terminal engine, it establishes a network connection with the 5G edge engine. This application embodiment decentralizes the network management of the 5G edge engine, eliminating the need to build a unified network management application within the edge engine. Instead, it constructs a comprehensive network determination method for each 5G edge terminal. This avoids the problem of incorrect management of the 5G edge engine network caused by deploying management applications within the 5G edge engine in existing technologies, thus improving the accuracy of 5G edge engine network management.
[0124] Reference Figure 4 This illustration shows a schematic diagram of a network connection switching device provided in an embodiment of this application. This device can be applied to a target 5G terminal engine, such as... Figure 4As shown, the network connection switching device 400 may include the following modules:
[0125] The terminal chain acquisition module 410 is used to acquire the 5G edge terminal chain under the 5G edge engine to which the local terminal belongs; wherein, the 5G edge terminal chain consists of 5G terminal engines that are redundant with each other.
[0126] The connection status acquisition module 420 is used to acquire the first network connection status between each 5G terminal engine and the cloud engine within the 5G edge terminal chain, and the second network connection status between each 5G terminal engine and the 5G edge engine; each 5G terminal engine includes the target 5G terminal engine.
[0127] The network quality score acquisition module 430 is used to acquire the network quality score of each of the 5G terminal engines.
[0128] The master control terminal determination module 440 is used to determine whether the local terminal is the master control 5G terminal engine of the 5G edge engine based on the first network connection status, the second network connection status and the network quality score.
[0129] The network connection establishment module 450 is used to establish a network connection between the main control 5G terminal engine and the 5G edge engine in response to the local end.
[0130] Optionally, the master control terminal determination module includes:
[0131] The first comparison result acquisition unit is used to compare the network quality score of the local end with the network quality score of other 5G terminal engines under the 5G edge terminal chain when both the first network connection state and the second network connection state are in a normal state, and to obtain a score comparison result.
[0132] The first master control terminal determination unit is used to determine whether the local terminal is the master control 5G terminal engine based on the scoring comparison result.
[0133] Optionally, the master control terminal determination module includes:
[0134] The second master control terminal determination unit is used to report the local network quality score to the 5G edge engine when the first network connection state is abnormal and the second network connection state is normal, so that the 5G edge engine can determine whether the local terminal is the master control 5G terminal engine based on the network quality scores of each 5G terminal engine.
[0135] Optionally, the master control terminal determination module includes:
[0136] The second comparison result acquisition unit is used to compare the network quality score of the local end with the network quality score of other 5G terminal engines under the 5G edge terminal chain when the first network connection state is normal and the second network connection state is abnormal, and to obtain a score comparison result.
[0137] The third master control terminal determination unit is used to determine whether the local terminal is the master control 5G terminal engine based on the scoring comparison results.
[0138] Optionally, the master control terminal determination module includes:
[0139] The fourth master control terminal determination unit is used to maintain the current master control 5G terminal engine and report network abnormality alarm information when both the first network connection state and the second network connection state are abnormal.
[0140] Optionally, the 5G edge terminal chain is established by the 5G edge engine in the following manner:
[0141] Obtain all redundant 5G terminal engines among all 5G terminal engines;
[0142] Based on the redundant 5G terminal engines, the 5G edge terminal chain is established.
[0143] The network connection switching device provided in this application embodiment obtains the 5G edge terminal chain under the 5G edge engine to which the local terminal belongs, wherein the 5G edge terminal chain consists of redundant 5G terminal engines. It obtains the first network connection status between each 5G terminal engine and the cloud engine within the 5G edge terminal chain, and the second network connection status between each 5G terminal engine and the 5G edge engine, where each 5G terminal engine includes a target 5G terminal engine. It obtains the network quality score of each 5G terminal engine, and based on the first network connection status, the second network connection status, and the network quality score, determines whether the local terminal is the master 5G terminal engine of the 5G edge engine. In response to the local terminal being the master 5G terminal engine, it establishes a network connection with the 5G edge engine. This application embodiment decentralizes the network management of the 5G edge engine, eliminating the need to build a unified network management application within the edge engine. Instead, it constructs a comprehensive network determination method for each 5G edge terminal. This avoids the problem of incorrect management of the 5G edge engine network caused by deploying management applications within the 5G edge engine in the prior art, thus improving the accuracy of 5G edge engine network management.
[0144] This application also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the above-described network connection switching method.
[0145] Figure 5 A schematic diagram of the structure of an electronic device 500 according to an embodiment of the present invention is shown. Figure 5 As shown, the electronic device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to computer program instructions stored in read-only memory (ROM) 502 or loaded from storage unit 508 into random access memory (RAM) 503. The RAM 503 can also store various programs and data required for the operation of the electronic device 500. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0146] Multiple components in electronic device 500 are connected to I / O interface 505, including: input unit 806, such as keyboard, mouse, microphone, etc.; output unit 507, such as various types of monitors, speakers, etc.; storage unit 508, such as disk, optical disk, etc.; and communication unit 509, such as network card, modem, wireless transceiver, etc. Communication unit 509 allows electronic device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0147] The various processes and handling described above can be executed by processing unit 501. For example, the methods of any of the above embodiments can be implemented as computer software programs tangibly contained in a computer-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by CPU 501, one or more actions of the methods described above can be performed.
[0148] Additionally, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned network connection switching method.
[0149] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0150] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0151] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, terminals (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0152] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0153] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal, causing a series of operational steps to be executed on the computer or other programmable terminal to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0154] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0155] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes said element.
[0156] The foregoing has provided a detailed description of a network connection switching method, a network connection switching device, an electronic device, and a computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and its core ideas. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A network connection switching method applied to a target 5G terminal engine, characterized in that, The method comprises: acquiring a 5G edge terminal chain under a 5G edge engine to which a local end belongs; wherein all the 5G terminal engines in the 5G edge terminal chain are mutually redundant; acquiring a first network connection state between each 5G terminal engine in the 5G edge terminal chain and a cloud engine, and a second network connection state between each 5G terminal engine and the 5G edge engine; each 5G terminal engine includes the target 5G terminal engine; acquiring a network quality score of each 5G terminal engine; determining whether the local end is a master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state, and the network quality score; in response to the local end being the master 5G terminal engine, establishing a network connection between the local end and the 5G edge engine.
2. The method of claim 1, wherein, The determination of whether the local end is the master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state, and the network quality score comprises: in the case that the first network connection state and the second network connection state are both normal states, comparing the network quality score of the local end with the network quality scores of other 5G terminal engines under the 5G edge terminal chain to obtain a score comparison result; determining whether the local end is the master 5G terminal engine according to the score comparison result.
3. The method of claim 1, wherein, The determination of whether the local end is the master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state, and the network quality score comprises: in the case that the first network connection state is an abnormal state and the second network connection state is a normal state, reporting the network quality score of the local end to the 5G edge engine, so that the 5G edge engine determines whether the local end is the master 5G terminal engine according to the network quality scores of each 5G terminal engine.
4. The method of claim 1, wherein, The determination of whether the local end is the master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state, and the network quality score comprises: in the case that the first network connection state is a normal state and the second network connection state is an abnormal state, comparing the network quality score of the local end with the network quality scores of other 5G terminal engines under the 5G edge terminal chain to obtain a score comparison result; determining whether the local end is the master 5G terminal engine according to the score comparison result.
5. The method of claim 1, wherein, The determination of whether the local end is the master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state, and the network quality score comprises: in the case that the first network connection state and the second network connection state are both abnormal states, maintaining the current master 5G terminal engine and reporting network abnormal alarm information.
6. The method of claim 1, wherein, The 5G edge terminal chain is established by the 5G edge engine in the following manner: acquiring 5G terminal engines that are mutually redundant among all 5G terminal engines; based on the 5G terminal engines that are mutually redundant, establishing the 5G edge terminal chain.
7. A network connection switching apparatus applied to a target 5G terminal engine, characterized in that, The device comprises: The terminal chain acquisition module is configured to acquire a 5G edge terminal chain under a 5G edge engine to which a terminal belongs; each of the 5G edge terminal engines in the 5G edge terminal chain is redundant to each other; The connection state acquisition module is configured to acquire a first network connection state between each 5G terminal engine and a cloud engine in the 5G edge terminal chain, and a second network connection state between each 5G terminal engine and the 5G edge engine; each 5G terminal engine includes the target 5G terminal engine; The network quality score acquisition module is configured to acquire a network quality score of each 5G terminal engine; The master terminal determination module is configured to determine whether the terminal is a master 5G terminal engine of the 5G edge engine based on the first network connection state, the second network connection state, and the network quality score; The network connection establishment module is configured to establish a network connection between the terminal and the 5G edge engine in response to the terminal being the master 5G terminal engine.
8. The apparatus of claim 7, wherein, The master terminal determination module includes: The first comparison result acquisition unit is configured to compare the network quality score of the terminal with network quality scores of other 5G terminal engines under the 5G edge terminal chain to obtain a comparison result in a case where the first network connection state and the second network connection state are both normal states; The first master terminal determination unit is configured to determine whether the terminal is the master 5G terminal engine according to the comparison result.
9. The apparatus of claim 7, wherein, The master terminal determination module includes: The second master terminal determination unit is configured to report the network quality score of the terminal to the 5G edge engine in a case where the first network connection state is an abnormal state and the second network connection state is a normal state, so that the 5G edge engine determines whether the terminal is the master 5G terminal engine according to network quality scores of the 5G terminal engines.
10. The apparatus of claim 7, wherein, The master terminal determination module includes: The second comparison result acquisition unit is configured to compare the network quality score of the terminal with network quality scores of other 5G terminal engines under the 5G edge terminal chain to obtain a comparison result in a case where the first network connection state is a normal state and the second network connection state is an abnormal state; The third master terminal determination unit is configured to determine whether the terminal is the master 5G terminal engine according to the comparison result.
11. The apparatus of claim 7, wherein, The master terminal determination module includes: The fourth master terminal determination unit is configured to maintain a current master 5G terminal engine and report network abnormality alarm information in a case where the first network connection state and the second network connection state are both abnormal states.
12. The apparatus of claim 7, wherein, The 5G edge terminal chain is established by the 5G edge engine in the following manner: All 5G terminal engines that are redundant to each other are acquired; The 5G edge terminal chain is established based on the 5G terminal engines that are redundant to each other.
13. An electronic device, comprising: The processor, the memory, and the computer program stored in the memory and executable on the processor, the processor executes the program to implement the network connection switching method in any one of claims 1 to 6. The processor, the memory, and the computer program stored in the memory and executable on the processor, the processor executes the program to implement the network connection switching method in any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that, The instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the network connection switching method of any one of claims 1 to 6.
Citation Information
Patent Citations
Software engine virtualization and dynamic resource and task distribution across edge and cloud
CN112104691A
Business processing method and system based on edge internet-of-things proxy
CN114363367A