Network element driving method, device, electronic equipment and storage medium for campus private network
By predicting network alarm information, the network elements of the campus private network are actively driven, which solves the problem of delay when the large network is disconnected, ensures the continuity of communication services, and successfully drives the network elements before the network is disconnected, allowing the subscriber identification card to be restored again. Access the network.
Patent Information
- Application Number
- CN202211736334.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-12-30
AI Technical Summary
With the existing technology, when a large-scale network outage occurs, the campus private network cannot effectively protect local communication services, resulting in delay problems and failure to successfully drive network elements before the network outage occurs, affecting users' communication and Internet access capabilities.
By obtaining the network alarm information of the bearer network and the core network, and using a model with preset accuracy to make predictions, if it is determined that a network outage will occur, the network elements of the campus private network will be actively driven immediately to ensure that the network elements are successfully driven before the network is disconnected, so that The subscriber identification card enters the network again.
It effectively avoids the delay problem, ensures that network elements are successfully driven before disconnection, ensures the continuity of local communication services, and avoids communication interruptions caused by delays.
Smart Images

Figure CN116017404B
Abstract
Description
Technical Field
[0001] The present application relates to campus private network technology, and in particular to a network element driving method, device, electronic equipment and storage medium for a campus private network. Background Art
[0002] With the rapid development of the industrial Internet, operators use the 5G 2B mode, that is, the "public network dedicated" mode to provide customers with private network applications. The user data network elements (UDM, PCF) and 5G control plane network elements (AMF, SMF) deployed in the regional / provincial center operator network provide 5G user signaling plane processing in the park, and the 5G user plane network elements (UEG) stationed in the park provide 5G user plane forwarding in the park. Operators solve the respective demands of enterprise park 2B applications through the "public network dedicated" method, ensure enterprise data security, and prevent data from leaving the private network.
[0003] Usually, since the control plane of edge MEC (Multi-access / Mobile Edge Computing) is on the core network side, if the bearer network from edge MEC to the core network fails and is disconnected, the entire edge MEC will fail and cannot provide computing and storage capabilities to customers. Therefore, in order to solve this problem, network elements such as UPF, UDM, AMF, and SMF are deployed to the enterprise park. When the large network is disconnected, the park private network passively detects the failure and drives it to the local network elements in the park to ensure that the user identification card of the park private network can re-enter the network and communicate and access the Internet normally when the network is disconnected.
[0004] However, when a large network outage occurs, the campus private network passively detects the failure and drives the network element to protect local communication services, which will cause a delay. Before the outage occurs, the network element has not been successfully driven and cannot effectively protect local communication services. Summary of the invention
[0005] The present application provides a network element driving method, device, electronic device and storage medium for a campus private network, which are used to solve the technical problem in the prior art that local communication services cannot be effectively protected.
[0006] In a first aspect, the present application provides a network element driving method of a campus private network, which is applied to an electronic device of the campus private network, including:
[0007] Obtain current network alarm information of the bearer network and the core network, wherein the bearer network is a network between the core network and the campus private network;
[0008] According to a model of preset accuracy, the current network alarm information is input into the model of preset accuracy to obtain a prediction value, wherein the prediction value represents a current network connection state between the bearer network and the core network;
[0009] If it is determined that the current network connection state represented by the predicted value is disconnected, the network element of the campus private network is driven to allow the user identification card of the campus private network to access the network again.
[0010] In a second aspect, the present application provides a network element driving device of a campus private network, which is located in an electronic device of the campus private network, including:
[0011] An alarm information acquisition module, used to obtain current network alarm information of a bearer network and a core network, wherein the bearer network is a network between the core network and a campus private network;
[0012] A prediction value acquisition module, used to input the current network alarm information into the model of preset accuracy according to the model of preset accuracy to obtain a prediction value, wherein the prediction value represents the current network connection state between the bearer network and the core network;
[0013] The network element driving module is used to drive the network element of the campus private network if it is determined that the current network connection state represented by the predicted value is disconnected, so as to enable the user identification card of the campus private network to access the network again.
[0014] In a third aspect, the present application provides an electronic device for a campus private network, comprising: a processor, and a memory communicatively connected to the processor;
[0015] The memory stores computer-executable instructions;
[0016] The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0018] The network element driving method, device, electronic device and storage medium of the campus private network provided in the present application obtain the current network alarm information of the bearer network and the core network, and the bearer network is the network between the core network and the campus private network; according to the model of preset accuracy, the current network alarm information is input into the model of preset accuracy to obtain the prediction value, and the prediction value represents the current network connection state between the bearer network and the core network; if it is determined that the current network connection state represented by the prediction value is disconnected, the network element of the campus private network is driven to enable the user identification card of the campus private network to access the network again. Since there is a certain time from network failure to network disconnection, such as a few seconds or a few minutes. Therefore, by predicting based on the current network alarm information with a model of preset accuracy, when it is determined that a network disconnection will occur, the network element of the campus private network is immediately and actively driven, so that the network element dedicated to the campus can be successfully driven before the actual network disconnection, thereby avoiding the delay problem, and the user identification card of the campus private network can be connected to the network again to ensure that the local communication service is not interrupted. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] Figure 1 An application scenario diagram for implementing the network element driving method of the campus private network in the embodiment of the present application;
[0021] Figure 2 A schematic diagram of a flow chart of a method for implementing a network element driving method for a campus private network according to an embodiment of the present application;
[0022] Figure 3 A flowchart of a network element driving method for implementing a campus private network according to another embodiment of the present application;
[0023] Figure 4 A schematic diagram of the structure of the network element driving method for realizing the campus private network in this application;
[0024] Figure 5 The present invention is a schematic diagram of the structure of an electronic device of a campus private network used to implement a network element driving method of the campus private network.
[0025] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0027] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.
[0028] Usually, since the control plane of edge MEC (Multi-access / Mobile Edge Computing) is on the core network side, if the bearer network from edge MEC to the core network fails and is disconnected, the entire edge MEC will fail and cannot provide computing and storage capabilities to customers. Therefore, in order to solve this problem, network elements such as UPF, UDM, AMF, and SMF are deployed to the enterprise park. When the large network is disconnected, the park private network passively detects the failure and drives it to the local network elements in the park to ensure that the user identification card of the park private network can re-enter the network and communicate and access the Internet normally when the network is disconnected.
[0029] However, when a large network outage occurs, the campus private network passively detects the failure and drives the network element to protect local communication services, which will cause a delay. Before the outage occurs, the network element has not been successfully driven and cannot effectively protect local communication services.
[0030] Therefore, when faced with the technical problems of the prior art, the inventors discovered through creative research that in order to effectively protect local communication services. After a network failure occurs, it takes a certain amount of time to disconnect the network, such as a transition time of several seconds or minutes. Therefore, the current network alarm information of the bearer network and the core network is first obtained, and then a prediction is made based on the current network alarm information through a model with a preset accuracy. When it is determined that a network disconnection will occur, the network elements of the campus private network are immediately driven, rather than passively waiting until a fault is detected before starting the network elements. Therefore, the transition time can be used to successfully drive the campus-specific network elements before the network is disconnected, thereby avoiding the delay problem and allowing the user identification card of the campus private network to re-enter the network to ensure that local communication services are not interrupted.
[0031] like Figure 1As shown, the application scenario of the network element driving method of the campus private network provided in the embodiment of the present application, in which the corresponding network architecture includes the electronic device 10 of the campus private network and the electronic device 20 of the bearer network and the electronic device 30 of the core network, and the three are communicatively connected. The electronic device 10 of the campus private network obtains the current network alarm information of the bearer network and the core network from the electronic device 20 of the bearer network and the electronic device 30 of the core network respectively. Then, according to the model of preset accuracy, the current network alarm information is input into the model of preset accuracy to obtain a predicted value, which represents the current network connection status between the bearer network and the core network. If it is determined that the current network connection status represented by the predicted value is disconnected, the network element of the campus private network is driven to allow the user identification card of the campus private network to access the network again.
[0032] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0033] Figure 2 A network element driving method for a campus private network provided in an embodiment of the present application is as follows: Figure 2 As shown, the execution subject of the network element driving method of the campus private network provided in this embodiment is the electronic device of the campus private network. Then the network element driving method of the campus private network provided in this embodiment includes the following steps:
[0034] Step 101, obtaining current network alarm information of the bearer network and the core network.
[0035] The bearer network is a network between the core network and the campus private network, and the campus private network establishes a communication connection with the core network through the bearer network. The current network alarm information refers to the network alarm information generated from the core network and the bearer network at the latest moment.
[0036] The current network alarm information includes the current port CRC, port, port protocol, BFD session, ISIS protocol, router packet loss rate, traffic, and traffic instantaneous change rate.
[0037] The current network alarm information of the bearer network and core network can be obtained through the network element port probe on the campus private network side.
[0038] Step 102: According to a model of preset accuracy, the current network alarm information is input into the model of preset accuracy to obtain a predicted value.
[0039] The prediction value represents the current network connection status between the bearer network and the core network, and the prediction value may be 0 or 1, for example, 0 indicates that the network is not disconnected, and 1 indicates that the network is disconnected. The model with the preset accuracy may be a trained neural network.
[0040] Input the current network alarm information into the model with preset accuracy, and the predicted value can be output.
[0041] Step 103: If it is determined that the predicted network connection state represented by the predicted value is disconnected, the network element of the campus private network is driven to allow the user identification card of the campus private network to access the network again.
[0042] Among them, according to the predicted value, the electronic equipment of the campus private network can determine the current network connection status. For example, if the output prediction value is 1, the electronic equipment of the campus private network can determine that the current network connection status between the bearer network and the core network is disconnected. Because after a network failure occurs, it takes a certain amount of time to disconnect the network, such as a few seconds or minutes. Therefore, when it is determined that a network disconnection will occur based on the current network alarm information, the network element of the campus private network is driven immediately, so that the dedicated network element of the campus can be successfully driven before the network is actually disconnected, so that the user identification card of the campus private network can be connected to the network again.
[0043] Previously, the user identification card was connected to the network through the network element driving the core network. The user identification card of the campus private network is connected to the network again by changing to the network element driving the campus private network. The network element of the campus private network is the network element that sinks from the core network to the local network of the campus private network.
[0044] In the present application, the current network alarm information of the bearer network and the core network is obtained, and the bearer network is the network between the core network and the campus private network; according to the model of preset accuracy, the current network alarm information is input into the model of preset accuracy to obtain a prediction value, and the prediction value represents the current network connection state between the bearer network and the core network; if it is determined that the current network connection state represented by the prediction value is disconnected, the network element of the campus private network is driven to enable the user identification card of the campus private network to access the network again. Since there is a certain amount of time from network failure to network disconnection, such as a few seconds or a few minutes. Therefore, by predicting based on the current network alarm information with a model of preset accuracy, when it is determined that a network disconnection will occur, the network element of the campus private network is immediately and actively driven, so that the campus-specific network element can be successfully driven before the actual network disconnection, thereby avoiding the delay problem, and the user identification card of the campus private network can be enabled to access the network again to ensure that local communication services are not interrupted.
[0045] As an optional implementation, Figure 3 As shown, in this embodiment, before step 101, the following steps are also included:
[0046] Step 201: Acquire multiple historical network alarm information and corresponding numerical labels of the bearer network and the core network to obtain a training sample set and a test sample.
[0047] Among them, the samples in the training sample set and the test sample set are multiple historical network alarm information of the bearer network and the core network actually collected and the corresponding numerical labels. The numerical labels can be 0 or 1. The numerical labels are used to represent network disconnection or no network disconnection. For example, 0 indicates no network disconnection and 1 indicates network disconnection.
[0048] Ideally, if the collected historical network alarm information is organized and can be directly used for machine training, the collected historical network alarm information of the bearer network and the core network can be directly used as samples in the training sample set and the test sample set after adding corresponding numerical labels to each historical network alarm information manually. Each historical network alarm information includes port CRC, port, port protocol, BFD session, ISIS protocol, router packet loss rate, traffic, and traffic instantaneous change rate.
[0049] Step 202: Iteratively train the model that has not been trained to convergence according to the multiple historical network alarm information in the training sample set to obtain a model that has been trained to convergence.
[0050] The model that has not been trained to convergence refers to an untrained neural network. The models before and during training can be called models that have not been trained to convergence. The purpose of iteratively training the model that has not been trained to convergence based on multiple historical network alarm information in the training sample set is to obtain a trained model that tends to converge, that is, a model that has been trained to convergence.
[0051] Step 203: Input the multiple historical network alarm information in the test sample set into the model that has been trained to convergence to obtain corresponding test values.
[0052] In order to determine whether the model that has been trained to convergence has achieved the required accuracy / precision after multiple rounds of iterative training, the corresponding test values are obtained by inputting multiple historical alarm information in the test sample set into the model that has not been trained to convergence. The accuracy of the model can be determined based on the accuracy of each predicted value.
[0053] Step 204 , compare each test value with the numerical label of the corresponding historical alarm information in the test sample set. If it is determined that the proportion of the test values identical to the corresponding numerical labels reaches a set value, determine to obtain a model with a preset accuracy.
[0054] The proportion of test values with the same numerical labels as the corresponding ones refers to the proportion of test values with the same numerical labels as the corresponding ones among all test values. The set value is the minimum accuracy that is set in advance by the human to be achieved at the end of model training.
[0055] Compare each test value with the numerical label of the corresponding historical alarm information in the test sample set. For example, if the test value is 0, the numerical label of the corresponding historical alarm information in the test sample set is also 0; or, if the test value is 1, the numerical label of the corresponding historical alarm information in the test sample set is also 1, then the test value is the same as the corresponding numerical label.
[0056] If it is determined that the proportion of test values identical to the corresponding numerical labels reaches a set value, it is determined that a model with a preset accuracy is obtained.
[0057] In this embodiment, a training sample set and a test sample set are obtained, and the samples in the training sample set and the test sample set are multiple historical network alarm information of the bearer network and the core network actually collected and corresponding numerical labels, and the numerical labels are used to characterize network disconnection or non-existence; a model that has not been trained to convergence is iteratively trained according to the multiple historical network alarm information in the training sample set to obtain a model that has been trained to convergence; the multiple historical network alarm information in the test sample set are respectively input into the model that has been trained to convergence to obtain corresponding test values; each of the test values is compared with the numerical label of the corresponding historical alarm information in the test sample set, and if it is determined that the proportion of the test value that is the same as the corresponding numerical label reaches a set value, it is determined that the model with the preset accuracy is obtained. Since the model with preset accuracy is iteratively trained through multiple historical network alarm information in the training sample set to obtain a model that has been trained to convergence, the model that has been trained to convergence is subsequently tested through multiple historical network alarm information in the test sample set. The training of the model is stopped only when it is determined that the proportion of test values that are the same as the corresponding numerical labels reaches the set value. Therefore, the accuracy of the model with preset accuracy is higher.
[0058] As an optional implementation, in this embodiment, step 201 includes the following steps:
[0059] Step 301, obtain multiple historical network alarm information of the bearer network and the core network, clean the multiple historical network alarm information, and obtain multiple cleaned historical network alarm information, each of which is marked with a corresponding numerical label.
[0060] Since the multiple historical network alarm information collected in practice is always unorganized, it cannot be directly used for machine training. For example, when the port in the network alarm information is down, the description of the equipment of different manufacturers may be different, and there may be various descriptions such as closed, invalid, etc. Sorting means to give a unified description. For example, if down is the default description, the description information of the port in the historical network alarm information obtained is closed or invalid, it is changed to down, which is conducive to machine recognition and processing.
[0061] Therefore, it is necessary to clean multiple historical network alarm information to obtain multiple cleaned historical network alarm data. The cleaning process is to unify the inconsistent descriptions in the historical network alarm information and supplement or remove the lack of descriptions, so as to achieve data normalization, which is conducive to machine training.
[0062] The numerical labels of the cleaned historical network alarm data are manually labeled, and the corresponding network connection status is used as a reference during labeling to ensure the accuracy of the sample data.
[0063] Step 302: Divide the plurality of cleaned historical network alarm information according to a set ratio to obtain the training sample set and the test sample set.
[0064] The set ratio can be 7:3, 8:2, etc., without limitation.
[0065] In this embodiment, multiple historical network alarm information of the bearer network and the core network is obtained, and the multiple historical network alarm information is cleaned to obtain multiple cleaned historical network alarm information, each of which is marked with a corresponding numerical label; the multiple cleaned historical network alarm information is divided according to a set ratio to obtain the training sample set and the test sample set. Since the collected multiple historical network alarm data are cleaned, data normalization can be achieved, which is conducive to machine training.
[0066] In one embodiment, the model that has not been trained to convergence and the model that has been trained to convergence is a convolutional neural network CNN. The input of the convolutional neural network is the input x of the regression model, and the output is the output h of the regression model. θ (x).
[0067] Among them, h θ (x) = P (y = 1 | x) = 1 / (1 + e -g(θ,x) ), y = 1 indicates a network device failure, y = 0 indicates a network device failure, θ is a model parameter; g(θ,x) is a classification boundary, and x is the network alarm information of the network device. The regression model here can be a probabilistic nonlinear regression model Logistic.
[0068] As an optional implementation, in this embodiment, step 202 includes the following steps:
[0069] Step 401, initializing the weights and biases of the model that has not been trained to convergence.
[0070] In addition, you can also set the maximum number of iterations. When the target error value cannot be reached after a very large number of iterations, you can terminate the model training.
[0071] Step 402, during each iteration, the error between the output value of the model that has not been trained to convergence and the true value is calculated using a preset loss function to determine whether the error during this iteration is less than or equal to a target error value.
[0072] The input value is the network alarm information, and the output value can be a numerical value, such as 0.9. The true value can be understood as the value in the numerical tag carried by the network alarm information, such as 0 or 1. The error between the output value and the true value can be the absolute value of the difference between the two. For example, if the true value is 0, if the output value is 0.2, the error is 0.2, and if the true value is 1, the error is 0.8.
[0073] The default loss function is Where: n is the number of samples; a i and i They represent the network output and sample label corresponding to the i-th sample respectively.
[0074] During each iteration, it is determined whether the error in this iteration is less than or equal to the target error value.
[0075] Step 403: If it is determined that during the Mth iteration, the error during the Mth iteration is greater than the target error value, the weight is adjusted and the next iteration is performed.
[0076] Where M is a positive integer. When adjusting weights and biases, first calculate the fractional derivative of the activation function in the error back propagation gradient, and calculate the fractional inverse of each neuron node; calculate the error gradient; then according to the gradient of the error with respect to the weight, correct the weight and perform the next iteration according to the cycle.
[0077] Step 404: If it is determined that during the Nth iteration, the error during the Nth iteration is less than or equal to the target error value, it is determined that a model that has been trained to convergence is obtained, where N is a positive integer.
[0078] Wherein, N is a positive integer and M is less than or equal to N. When, in the Nth iteration process, the error in the Nth iteration process is less than or equal to the target error value, it is determined that a model that has been trained to convergence is obtained.
[0079] In this embodiment, the weights and biases of the model that has not been trained to convergence are initialized; during each iteration, the error between the output value of the model that has not been trained to convergence and the true value is calculated by a preset loss function to determine whether the error in this iteration is less than or equal to the target error value; if it is determined that in the Mth iteration, the error in the Mth iteration is greater than the target error value, the weights are adjusted and the next iteration is performed; if it is determined that in the Nth iteration, the error in the Nth iteration is less than or equal to the target error value, it is determined that a model that has been trained to convergence is obtained, wherein N and M are positive integers and M is less than or equal to N. Since the model that has been trained to convergence is determined based on the error in the Nth iteration being less than or equal to the target error value, it can be ensured that the model that has been trained to convergence is tending to a convergence state.
[0080] As an optional implementation manner, in this embodiment, the network element includes a UDM network element and an AMF network element, and step 103 includes the following steps:
[0081] Step 501, drive the AMF network element of the campus private network to enable the base station to access the core network.
[0082] Among them, the AMF network element is a network element that can manage the connection between the base station and the core network.
[0083] Step 502: If it is determined that the base station has successfully accessed the core network, the UDM network element of the campus private network is driven to send the authentication information of multiple user identification cards in the campus to the base station, so that multiple user identification cards with legal authentication information can access the base station.
[0084] Among them, the user identification card network access can be understood as the user's mobile phone number network access. The UDM network element can give the user identification card's authentication information to the base station, and the base station decides whether to allow the user identification card to access the base station. After the base station completes the network access, the user identification card network access is carried out. Generally, for user identification cards with legal authentication information, the base station will allow them to access the network.
[0085] When the user identification card is connected to the network, the communication service functions can be used normally to dial up to the Internet.
[0086] In this embodiment, the AMF network element of the campus private network is driven to enable the base station to access the core network; if it is determined that the base station has successfully accessed the core network, the UDM network element of the campus private network is driven to send the authentication information of multiple user identification cards in the campus to the base station, so that multiple user identification cards with legal authentication information can access the base station. In the event of an imminent network disconnection with the core network, the AMF network element and the UDM network element of the campus private network can be driven to respectively enable the base station to access the network and the user identification card to access the network, thereby protecting local communication services so that they can still be carried out in the event of a network disconnection.
[0087] Figure 4 is a structural diagram of a network element driving device of a campus private network provided in an embodiment of the present application, such as Figure 4 As shown, the network element driving device 40 of the campus private network provided in this embodiment is located in an electronic device of the campus private network, and the network element driving device 40 of the campus private network provided in this embodiment includes:
[0088] An alarm information acquisition module, used to obtain current network alarm information of a bearer network and a core network, wherein the bearer network is a network between the core network and a campus private network;
[0089] A prediction value acquisition module, used to input the current network alarm information into the model of preset accuracy according to the model of preset accuracy to obtain a prediction value, wherein the prediction value represents the current network connection state between the bearer network and the core network;
[0090] The network element driving module is used to drive the network element of the campus private network if it is determined that the current network connection state represented by the predicted value is disconnected, so as to enable the user identification card of the campus private network to access the network again.
[0091] Optionally, the device also includes a model training module, which is used to: obtain multiple historical network alarm information and corresponding numerical labels of the bearer network and the core network, and obtain a training sample set and a test sample set, wherein the numerical label is used to characterize network disconnection or no network disconnection; iteratively train a model that has not been trained to convergence according to the multiple historical network alarm information in the training sample set to obtain a model that has been trained to convergence; input the multiple historical network alarm information in the test sample set into the model that has been trained to convergence, respectively, to obtain corresponding test values; compare each of the test values with the numerical label of the corresponding historical alarm information in the test sample set, and if it is determined that the proportion of the test values that are the same as the corresponding numerical label reaches a set value, it is determined that the model with the preset accuracy is obtained.
[0092] Optionally, the model training module, when obtaining multiple historical network alarm information of the bearer network and the core network and corresponding numerical labels to obtain a training sample set and a test sample set, is specifically used to: obtain multiple historical network alarm information of the bearer network and the core network, clean the multiple historical network alarm information to obtain multiple cleaned historical network alarm information, each of the cleaned historical network alarm information is marked with a corresponding numerical label; divide the multiple cleaned historical network alarm information according to a set ratio to obtain the training sample set and the test sample set.
[0093] Optionally, the model is a convolutional neural network.
[0094] Optionally, when iteratively training a model that has not been trained to convergence according to multiple historical network alarm information in the training sample set to obtain a model that has been trained to convergence, it is specifically used to: initialize the weights and biases of the model that has not been trained to convergence; in each iteration, calculate the error between the output value and the true value of the model that has not been trained to convergence by using a preset loss function, and judge whether the error in this iteration is less than or equal to a target error value; if it is determined that in the Mth iteration, the error in the Mth iteration is greater than the target error value, adjust the weight and perform the next iteration; if it is determined that in the Nth iteration, the error in the Nth iteration is less than or equal to the target error value, determine that a model that has been trained to convergence is obtained, and N and M are positive integers and M is less than or equal to N.
[0095] Optionally, the network element includes a UDM network element and an AMF network element.
[0096] Optionally, the network element driving module is specifically used to: drive the AMF network element of the campus private network to enable the base station to access the core network; if it is determined that the base station has successfully accessed the core network, drive the UDM network element of the campus private network to send the authentication information of multiple user identification cards in the campus to the base station, so that multiple user identification cards with legal authentication information can access the base station.
[0097] Figure 5 is a block diagram of an electronic device of a campus private network according to an exemplary embodiment, the device may be as follows Figure 5 As shown, the electronic device of the campus private network includes: a memory 51 and a processor 52; the memory 51 is a memory for storing processor executable instructions; the processor 52 is used to run computer programs or instructions to implement the network element driving method of the campus private network provided in any of the above embodiments.
[0098] The memory 51 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer operation instructions. The memory 51 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0099] The processor 52 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present disclosure.
[0100] Optionally, in a specific implementation, if the memory 51 and the processor 52 are implemented independently, the memory 51 and the processor 52 can be connected to each other through a bus 53 and communicate with each other. The bus 53 can be an Industry Standard Architecture (ISA) bus 53, a Peripheral Component (PCI) bus 53, or an Extended Industry Standard Architecture (EISA) bus 53. The bus 53 can be divided into an address bus 53, a data bus 53, a control bus 53, etc. For ease of representation, Figure 5 Only one thick line is used in the figure, but it does not mean that there is only one bus 53 or only one type of bus 53.
[0101] Optionally, in a specific implementation, if the memory 51 and the processor 52 are integrated on a chip, the memory 51 and the processor 52 can communicate with each other through an internal interface.
[0102] A non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device of a campus private network, the electronic device of the campus private network can execute the network element driving method of the electronic device of the campus private network.
[0103] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0104] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A network element driving method for a campus private network, characterized in that: An electronic device applied to a campus private network, the method comprising: Obtain current network alarm information of a bearer network and a core network, wherein the bearer network is a network between the core network and a campus private network, and the campus private network establishes a communication connection with the core network through the bearer network; According to a model of preset accuracy, the current network alarm information is input into the model of preset accuracy to obtain a prediction value, wherein the prediction value represents a current network connection state between the bearer network and the core network, and the network connection state is disconnected or not disconnected; If it is determined that the current network connection status represented by the predicted value is disconnected, the core network is driven to sink to the AMF network element of the campus private network to enable the base station to access the core network. If it is determined that the base station is successfully connected to the core network, the core network is driven to sink to the UDM network element of the campus private network to send the authentication information of multiple user identification cards in the campus to the base station, so that multiple user identification cards with legal authentication information can access the base station.
2. The method according to claim 1, characterized in that The method further comprises: Acquire multiple historical network alarm information and corresponding numerical labels of the bearer network and the core network to obtain a training sample set and a test sample set, wherein the numerical labels are used to characterize whether a network disconnection has occurred or not; Iteratively training a model that has not been trained to convergence according to multiple historical network alarm information in the training sample set to obtain a model that has been trained to convergence; Inputting the plurality of historical network alarm information in the test sample set into the model trained to convergence respectively to obtain corresponding test values; Each of the test values is compared with the numerical label of the corresponding historical alarm information in the test sample set. If it is determined that the proportion of the test values identical to the corresponding numerical label reaches a set value, a model for obtaining the preset accuracy is determined.
3. The method according to claim 2, characterized in that The acquiring multiple historical network alarm information of the bearer network and the core network and corresponding numerical labels to obtain a training sample set and a test sample set includes: Acquire multiple historical network alarm information of the bearer network and the core network, clean the multiple historical network alarm information, and obtain multiple cleaned historical network alarm information, each of the cleaned historical network alarm information is marked with a corresponding numerical label; The plurality of cleaned historical network alarm information are divided according to a set ratio to obtain the training sample set and the test sample set.
4. The method according to any one of claims 1 to 3, characterized in that The model is a convolutional neural network.
5. The method according to claim 2, characterized in that: The iterative training of the model that has not been trained to convergence according to the multiple historical network alarm information in the training sample set to obtain the model that has been trained to convergence includes: Initializing the weights and biases of the model that has not been trained to convergence; During each iteration, the error between the output value of the model that has not been trained to convergence and the true value is calculated using a preset loss function to determine whether the error in this iteration is less than or equal to the target error value; If it is determined that during the Mth iteration, the error during the Mth iteration is greater than the target error value, the weight is adjusted and the next iteration is performed; If it is determined that during the Nth iteration, the error during the Nth iteration is less than or equal to the target error value, then it is determined that a model that has been trained to convergence is obtained, where N and M are positive integers and M is less than or equal to N.
6. A network element driving device for a campus private network, characterized in that: In an electronic device located in a campus private network, the device includes: An alarm information acquisition module is used to obtain current network alarm information of a bearer network and a core network, wherein the bearer network is a network between the core network and a campus private network, and the campus private network establishes a communication connection with the core network through the bearer network; A prediction value acquisition module, used for inputting the current network alarm information into the model of preset accuracy according to the model of preset accuracy to obtain a prediction value, wherein the prediction value represents the current network connection state between the bearer network and the core network, and the network connection state is disconnected or not disconnected; The network element driving module is used to drive the core network to sink to the AMF network element of the campus private network to enable the base station to access the core network if it is determined that the current network connection status represented by the predicted value is disconnected; if it is determined that the base station is successfully connected to the core network, drive the core network to sink to the UDM network element of the campus private network to send the authentication information of multiple user identification cards in the campus to the base station, so that multiple user identification cards with legal authentication information can access the base station.
7. The device according to claim 6, characterized in that The device also includes a model training module, which is used to: obtain a plurality of historical network alarm information of the bearer network and the core network and corresponding numerical labels, and obtain a training sample set and a test sample set, wherein the numerical labels are used to characterize network disconnection or non-network disconnection; Iteratively train the model that has not been trained to convergence according to the multiple historical network alarm information in the training sample set to obtain a model that has been trained to convergence; input the multiple historical network alarm information in the test sample set into the model that has been trained to convergence respectively to obtain corresponding test values; compare each of the test values with the numerical labels of the corresponding historical alarm information in the test sample set, and if it is determined that the proportion of the test values identical to the corresponding numerical labels reaches a set value, it is determined that the model with the preset accuracy is obtained.
8. An electronic device for a campus private network, comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 5 when executed by a processor.
10. A computer program product comprising: A computer program, characterized in that when the computer program is executed by a processor, it is used to implement the method according to any one of claims 1 to 5.
