Flow switching method and device, electronic equipment and computer readable medium

By acquiring network data from optical line terminals, it automatically diagnoses and optimizes traffic switching strategies, solving the problem of network port blocking and improving network stability and strategy effectiveness.

CN118540203APending Publication Date: 2024-08-23CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410641936.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing technology cannot effectively avoid network port blocking, resulting in poor network stability, and cannot automatically identify and solve port overload problems, relying on manual experience to formulate switching strategies.

Method used

By obtaining the network data of the optical line terminal, the problem is automatically diagnosed, the initial switching strategy is created, and the target switching strategy is obtained through simulation optimization to achieve automatic switching of traffic and avoid port blocking.

Benefits of technology

It improves the stability of the network and the effectiveness of the switching strategy, and avoids the occurrence of port blocking. Compared with formulating strategies through manual experience, the effect of automatically generating and optimizing strategies is better.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540203A
    Figure CN118540203A
Patent Text Reader

Abstract

The embodiment of the invention discloses a flow switching method and device, electronic equipment and a computer readable medium. The method comprises the following steps: acquiring network data of a first port of an optical line terminal; based on the network data, performing problem diagnosis on the first port; under the condition that the first port has a heavy load problem, an initial switching strategy is created, and the initial switching strategy is used for indicating to switch partial flow or all flow of the first port to a second port; and simulating the initial switching strategy, and optimizing the initial switching strategy based on a simulation result to obtain a target switching strategy. According to the embodiment, the occurrence of port blocking is avoided, and the stability of the network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and specifically to a flow switching method, device, electronic device, and computer-readable medium. Background Art

[0002] Port blocking means that the port in the network cannot work properly, resulting in data packets being unable to be transmitted through the port. This situation can be caused by reasons such as high load on network devices.

[0003] In the prior art, port blocking is usually discovered only after it occurs, and the traffic switching plan for the blocked port is set manually based on experience. This method cannot avoid the occurrence of port blocking, and cannot guarantee that the port blocking can be resolved after traffic switching, resulting in poor network stability. Summary of the invention

[0004] The embodiments of the present application provide a traffic switching method, device, electronic device, and computer-readable medium, which avoid the occurrence of port blocking and improve the stability of the network.

[0005] In a first aspect, an embodiment of the present application provides a traffic switching method, the method comprising: obtaining network data of a first port of an optical line terminal; diagnosing problems of the first port based on the network data; in the event that the first port has an overload problem, creating an initial switching strategy, the initial switching strategy being used to indicate that part or all of the traffic of the first port is switched to a second port; simulating the initial switching strategy, optimizing the initial switching strategy based on the simulation results, and obtaining a target switching strategy.

[0006] In the second aspect, an embodiment of the present application provides a traffic switching device, which includes: an acquisition unit, used to acquire network data of a first port of an optical line terminal; a diagnosis unit, used to diagnose problems on the first port based on the network data; a creation unit, used to create an initial switching strategy when there is an overload problem on the first port, and the initial switching strategy is used to indicate that part or all of the traffic on the first port is switched to the second port; a simulation unit, used to simulate the initial switching strategy, and optimize the initial switching strategy based on the simulation result to obtain a target switching strategy.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any embodiment of the first aspect.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the first aspect.

[0009] The traffic switching method, device, electronic device and computer-readable medium provided in the embodiments of the present application obtain network data of the first port of the optical line terminal; then diagnose the problem of the first port based on the network data; then, in the case that there is an overload problem on the first port, create an initial switching strategy, the initial switching strategy is used to indicate that part or all of the traffic of the first port is switched to the second port; finally, simulate the initial switching strategy, and optimize the initial switching strategy based on the simulation results to obtain the target switching strategy. In this solution, since it is possible to automatically diagnose the problem based on the network data to identify whether the port has an overload problem, and automatically generate a switching strategy when there is an overload problem, it is possible to avoid the occurrence of port blocking. In addition, compared with formulating a switching strategy based on manual experience, automatically generating a switching strategy and optimizing it through simulation can improve the effectiveness and effect of the switching strategy, thereby improving the stability of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0011] Figure 1 is a flow chart of an embodiment of a flow switching method according to the present application;

[0012] Figure 2 is a schematic diagram of port thermal distribution information according to the flow switching method of the present application;

[0013] Figure 3A is a schematic diagram of an application scenario of the flow switching method according to the present application;

[0014] Figure 3B is a schematic diagram of an application scenario of the flow switching method according to the present application;

[0015] Figure 4 is a structural schematic diagram of an embodiment of a flow switching device according to the present application;

[0016] Figure 5 It is a schematic diagram of the structure of an electronic device used to implement an embodiment of the present application. DETAILED DESCRIPTION

[0017] All actions to obtain signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.

[0018] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.

[0019] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0020] Please refer to Figure 1 , which shows a process 100 according to an embodiment of the flow switching method of the present application. The flow switching method can be applied to various electronic devices with data processing functions. For example, the above electronic devices can include but are not limited to electronic devices such as servers.

[0021] The flow switching method comprises the following steps:

[0022] Step 101: Acquire network data of a first port of an optical line terminal.

[0023] In this embodiment, the optical line terminal (OLT) is a core component in the optical access network system structure, which is equivalent to the aggregation switch in the traditional communication network, and is also a multi-service management platform. The optical line terminal is usually deployed in the core or node room to aggregate the service data of the optical access network and distribute it to different networks.

[0024] In this embodiment, the first port may be any PON (Passive Optical Network) port of the optical line terminal. For example, it may be an EPON (Ethernet Passive Optical Network) port. The EPON port is a port based on Ethernet PON technology that uses a point-to-multipoint structure and passive optical fiber transmission to provide multiple services on Ethernet. For another example, it may be a GPON (Gigabit-Capable PON) port. The GPON port is the latest generation of broadband passive optical integrated access standard based on the ITU-TG.984.1 standard (the overall characteristic standard for gigabit passive optical networks), and has many advantages such as high bandwidth, high efficiency, large coverage, and rich user interfaces.

[0025] In this embodiment, the network data may include but is not limited to at least one of the following: the number of users, traffic, relationship data between an optical line terminal and an optical switching box, relationship data between an optical splitter and a user, and the like.

[0026] Step 102: diagnose a problem on the first port based on the network data.

[0027] In this embodiment, the execution subject of the traffic switching method can perform problem diagnosis on the first port based on the above network data to determine the carrying rate of the first port, thereby judging whether there is an overload problem. As an example, the carrying rate can be compared with a threshold to determine whether there is an overload problem on the first port. The above threshold can be pre-set as needed, and the embodiment of the present application does not limit its value.

[0028] In some optional implementations of this embodiment, the network data includes the number of users, traffic, relationship data between the optical line terminal and the optical switching box, and relationship data between the optical splitter and the user. Based on the network data, the problem diagnosis of the first port includes the following steps:

[0029] The first step is to generate a user traffic feature profile and a port profile based on the above network data. The above user traffic feature profile includes the traffic of users under the first port in different time periods. The above port profile may include the theoretical carrying rate of the first port, the actual carrying rate in different time periods, etc. The above different time periods may include but are not limited to at least one of the following: working days, non-working days, nights, daytime, all day, etc.

[0030] The second step is to determine the theoretical carrying rate and the actual carrying rate of the first port based on the user traffic feature profile and the port profile. The actual carrying rate here is the actual carrying rate in the current period.

[0031] The third step is to diagnose the problem of the first port based on the theoretical carrying rate and the actual carrying rate. Specifically, the theoretical carrying rate of the first port is 4 times the physical port rate. If the ratio of the sum of the rates of the contracted users under the first port to the theoretical carrying rate is greater than or equal to 100%, it can be determined that the first port is overloaded. If the ratio of the sum of the rates to the theoretical carrying rate is greater than 10% and less than 40%, it can be determined that the first port is lightly loaded. If the ratio of the sum of the rates to the theoretical carrying rate is greater than or less than 10%, it can be determined that the port is unloaded.

[0032] Since user traffic feature portraits and port portraits can provide richer and more accurate information, by determining the theoretical carrying rate and actual carrying rate of the first port based on the user traffic feature portraits and port portraits, and then diagnosing the problem of the first port based on the above theoretical carrying rate and the above actual carrying rate, it is possible to more accurately assess whether the first port currently has an overload problem, thereby improving the accuracy of the problem diagnosis results.

[0033] In some optional implementations of this embodiment, when the first port is overloaded, the execution subject may also output warning information, thereby providing a warning when the port is overloaded to avoid port blocking.

[0034] Step 103: When the first port is overloaded, an initial switching strategy is created, where the initial switching strategy is used to instruct to switch part or all of the traffic of the first port to the second port.

[0035] In this embodiment, if there is an overload problem in the first port, port blocking may occur and network performance may be reduced. Based on the above problems, part or all of the traffic in the first port needs to be switched to another node (which can be recorded as the second node).

[0036] In this embodiment, the traffic switching principle includes: giving priority to the switching method based on the entire port, followed by the switching method based on a partial port, and selecting the port switching method of the optical line terminal in the same grid or adjacent grid. Among them, the switching method based on the entire port is to switch all the traffic of the above-mentioned first port to the above-mentioned second port. The above-mentioned switching method based on a partial port is to switch part of the traffic of the above-mentioned first port to the above-mentioned second port. The above-mentioned grid refers to the grassroots service and management unit divided within urban and rural communities and other specific management areas. The above-mentioned port switching method of the optical line terminal in the same grid or adjacent grid is to switch part or all of the traffic of the first port to the port of the optical line terminal in the same grid or adjacent grid.

[0037] In this embodiment, the above-mentioned initial switching strategy can be generated based on the above-mentioned traffic switching principle. In practical applications, a lightly loaded port or an unloaded port can be first selected from the ports of the optical line terminal of the adjacent grid as the second port to determine whether the second port will be overloaded after all the traffic of the first port is switched to the second port by using a switching method based on the entire port. If the second port will not be overloaded, the switching strategy can be used as the initial switching strategy. If the second port will be overloaded, the second port can be reselected and the above judgment can be repeated. If there is no second port that meets the requirements, a switching method based on partial ports can be adopted to switch only part of the traffic to the second port. For example, the traffic of users who use a relatively large proportion of traffic in the first port is switched to the second port.

[0038] In some optional implementations of this embodiment, the above-mentioned creation of the initial switching strategy includes the following steps:

[0039] In the first step, based on the overload flow of the first port, the flow and position of the candidate port, a flow switching mode and a second port among the candidate ports are determined. The flow switching mode includes at least one of the following: switching all the flow of the first port to the second port, switching part of the flow of the first port to the second port. The candidate ports may include other ports of the current optical line terminal, ports of other optical line terminals (e.g., ports of optical line terminals of adjacent grids).

[0040] In the second step, the port traffic prediction model is used to predict the second predicted traffic of the second port after the traffic switching is performed using the traffic switching method. Here, the port traffic prediction model can be a statistical model based on logistic regression. Logistic regression is a generalized linear regression model that is applicable to situations where the dependent variable is binary, that is, there are only two possible results (for example, port overload or port underload). The data formula for logistic regression is:

[0041]

[0042] Among them, Y is the target variable, indicating whether the number of users increases, and is usually 0 or 1. P(Y=1) is the probability of user traffic growth. n are predictor variables representing various factors that may affect user growth, such as marketing spending, price changes, competitor activities, etc. β1, β2, β3, β4…β n are the coefficients of the logistic regression model, also called the "slope" or "weight" parameters of the logistic regression equation.

[0043] The predicted output of the logistic regression model is the probability that the target variable belongs to 1, which can be calculated using the following formula:

[0044]

[0045] Where exp() is a natural exponential function. The parameters of the model can be estimated by Maximum Likelihood Estimation (MLE) or by using optimization algorithms such as Gradient Boosting (GB). The probability of subsequent growth of the user traffic of the port is calculated by P(Y=1), and then it is determined whether the port will be overloaded.

[0046] The third step is to determine whether the second port will be overloaded based on the second predicted traffic. If the probability is greater than a preset threshold, it can be determined that the port will be overloaded. Otherwise, it can be determined that the port will not be overloaded.

[0047] In the fourth step, if the second port does not have an overload problem, an initial switching strategy is generated based on the second port and the traffic switching method. The initial switching strategy may include information about the second port and the traffic switching method.

[0048] Based on the overload flow of the first port, the flow and position of the candidate port, the flow switching method and the second port in the candidate port are determined, and then based on the port flow prediction model, the second predicted flow of the second port after the flow switching is performed using the flow switching method is predicted, so that the initial switching strategy is generated when it is determined based on the second predicted flow that the second port will not be overloaded. Compared with formulating a switching strategy based on manual experience, automatically generating a switching strategy and determining the rationality of the switching strategy by predicting the flow can improve the effectiveness and effect of the switching strategy, thereby improving the stability of the network.

[0049] Step 104 , simulating the initial switching strategy, optimizing the initial switching strategy based on the simulation result, and obtaining a target switching strategy.

[0050] In this embodiment, a simulation tool may be used to simulate the initial switching strategy to obtain a simulation result. Then, the initial switching strategy is optimized based on the simulation result to obtain a target switching strategy. The simulation tool may include but is not limited to OPNet (network simulation technology software package), OMNet (OMNEST, discrete event network simulation platform), etc.

[0051] In this embodiment, during the simulation process, factors such as network stability, user satisfaction, and cutover cost can be considered to evaluate the effect of the initial switching strategy. The simulation results may include not only data such as the traffic of the second port after the traffic switching is performed using the above initial switching strategy, but also the values ​​of one or more indicators. The above indicators may include but are not limited to network interruption time, user traffic loss, complexity of traffic switching operations, etc. In addition, the above simulation results may also include port thermal distribution information. For port thermal distribution information, see Figure 2 As shown, the port thermal distribution information is mainly obtained through the lower layer data to the upper layer result analysis, and then the service penetration is realized from the upper layer through reverse tracking. The port thermal distribution information may include information of multiple dimensions. For example, it may include but is not limited to the user contracted traffic of each port, the user historical traffic, the user traffic characteristics, the OLT port thermal (for example, the number of heavy load, light load, normal, and no-load), etc.

[0052] In this embodiment, the optimization of the initial switching strategy may include but is not limited to changing the second port, changing the flow switching mode (for example, updating the full flow switching to partial flow switching, etc.), etc. By optimizing the initial switching strategy, the value of the above index may be optimized.

[0053] In some optional implementations of this embodiment, simulating the initial switching strategy and optimizing the initial switching strategy based on the simulation result to obtain the target switching strategy may include the following steps:

[0054] In the first step, the following steps are iteratively performed: the initial switching strategy is simulated, and based on the simulation results, whether an overload problem will occur after the traffic switching is performed using the initial switching strategy; if an overload problem exists, the initial switching strategy is updated based on the optimal path algorithm.

[0055] Here, based on the simulation results, the flow of the second port after the flow switching using the above initial switching strategy can be obtained. The above execution subject can determine whether the second port will have an overload problem based on the flow. If an overload problem occurs, the above initial switching strategy can be updated based on the optimal path algorithm.

[0056] In practice, the optimal path algorithm is also called Dijkstra's algorithm. This algorithm is the shortest path algorithm from one vertex to the rest of the vertices. It solves the shortest path problem in a weighted graph. The main feature of the optimal path algorithm is that it starts from the starting point and adopts the strategy of the greedy algorithm, traversing the adjacent nodes of the vertex closest to the starting point and not visited each time until it reaches the end point. The algorithm steps include:

[0057] Initialization step: Divide all nodes into two groups, the set S of determined shortest paths and the set T of undetermined shortest paths. Initially, S is empty and T contains all nodes. The given source point is set to s, the distance from the source point to all other points is set to infinity, and the distance from itself to itself is set to 0.

[0058] Source point processing step: Add source point s to S and update the shortest path length of the nodes directly connected to s in T.

[0059] Perform this step iteratively: select the node u in T with the smallest distance s, add u to S, and then update the shortest path lengths of all nodes directly connected to u in T. This step requires checking whether the path to other nodes in T through u is shorter than the known path. If so, update the shortest path lengths of these nodes.

[0060] The algorithm ends when all nodes are added to S. At this point, the algorithm has calculated the shortest path from the source point s to all other nodes.

[0061] In this implementation, as an example, a graph G is provided, which includes four nodes A, B, C, and D, each corresponding to a port. According to the predicted port traffic calculation, it is concluded that node A is overloaded, and nodes B, C, and D are lightly loaded. The edges and weights between them are shown in the following table:

[0062] A B C D A 0 7 ∞ ∞ B ∞ 0 8 4 C ∞ ∞ 0 2 D ∞ ∞ ∞ 0

[0063] To calculate the shortest path from node A to all other nodes, follow the steps of the optimal path algorithm as follows:

[0064] First, initialize S = {}, T = {A, B, C, D}, distance[A] = 0, distance[B] = ∞, distance[C] = ∞, distance[D] = ∞.

[0065] Afterwards, A is added to S, and the distances of nodes B, C, and D directly connected to A are updated: distance[B]=7, distance[C]=∞, and distance[D]=∞.

[0066] Afterwards, the node B with the smallest distance is selected from T, added to S, and the distances of the nodes C and D directly connected to B are updated, distance[C]=7+8=15, distance[D]=7+4=11.

[0067] Afterwards, the node D with the smallest distance is selected from T, added to S, and the distance of the node C directly connected to D is updated, distance[C]=11+2=13.

[0068] Afterwards, select the node C with the smallest distance from T and add it to S. At this time, T is empty and the algorithm ends.

[0069] Finally, the shortest path lengths from A to B, C, and D are 7, 13, and 11, respectively. Based on the shortest path, the traffic of node A needs to be cutover to node B.

[0070] At this time, the above initial switching strategy can be updated to a switching strategy for switching the traffic of node A to node B, and the above port traffic prediction model can be used to predict whether an overload problem will occur after switching the traffic of node A to node B. If there is a load situation, the cycle continues.

[0071] In the second step, when it is determined that the overload problem will not occur, the initial switching strategy updated last time is used as the target switching strategy, and the target switching strategy is output.

[0072] By simulating the initial switching strategy and continuously updating it based on the simulation results, the optimal target switching strategy can be obtained. Compared with the switching strategy set manually based on experience, the target switching strategy can improve the effectiveness and effect of the switching strategy, thereby improving the stability of the network.

[0073] In some optional implementations of this embodiment, the following steps may also be performed: predicting a first predicted flow of the first port in a future period; generating a future switching strategy for the first port in the future period based on the first predicted flow, business changes and changes in the number of users.

[0074] The above-mentioned future time period may include but is not limited to the future network usage peak period determined based on the historical time period. The above-mentioned business change situation may include but is not limited to: the change value of the market flow amount, the change value of the tariff, etc. The above-mentioned change in the number of users may include but is not limited to the increase in users, the decrease in users, etc. Here, the first predicted flow of the above-mentioned first port in the future time period can be predicted by the above-mentioned port flow prediction model, and the future switching strategy of the above-mentioned first port in the future time period can be generated in a manner similar to step 102, which will not be repeated here.

[0075] By predicting the future switching strategy of the first port in the future period, it is convenient to simulate traffic switching in the system in advance, and the traffic of the port during the peak period of network usage can be predicted, so as to achieve early switching and improve the stability of the network.

[0076] See also Figure 3A , which shows a schematic diagram of traffic switching of ports in the same OLT device scenario. The OLT device includes 1-1, 1-2, 1-3, 1-4, 2-1, 2-2, 2-3, 2-4, 3-1, 3-2, 3-3, 3-4, 4-1, 4-2, 4-3, and 4-4, a total of 16 ports. Before switching, ports 1-3 and 3-2 were in an overloaded state. According to estimates, the traffic in 2-1 and 4-4 has never reached overload. After simulating the switching of the traffic of some users in 1-3 and 3-2 (for example, users with large traffic) to 2-1 and 4-4, no overload problem occurred. Therefore, it is possible to choose to switch the traffic of some users in 2-1 and 4-4 to 2-1 and 4-4.

[0077] See also Figure 3B, which shows a schematic diagram of traffic switching of ports in a cross-OLT device scenario. OLT (1) and OLT (2) devices each include 1-1, 1-2, 1-3, 1-4, 2-1, 2-2, 2-3, 2-4, 3-1, 3-2, 3-3, 3-4, 4-1, 4-2, 4-3, 4-4, a total of 16 ports. Before switching, OLT (1) ports 1-3 and 3-2 are in a heavy-load state. According to estimates, the ports in OLT (1) will not be light-loaded during peak hours, and will basically be in a heavy-loaded state, so cross-OLT device switching is required. It is predicted that ports 1-2, 2-2, 3-2, 1-3, 2-3, and 3-3 of the OLT (2) device are all in a light-load state during peak hours. Therefore, part of the user traffic on ports 1-3 and 3-2 of the OLT (1) device can be switched to ports 1-2, 2-2, 3-2, 1-3, 2-3, and 3-3 of the OLT (2) device.

[0078] In some optional implementations of this embodiment, after obtaining the target switching strategy, the traffic of the first port can be switched based on the target switching strategy. Similarly, after obtaining the future switching strategy of the first port in the future period, the traffic of the first port can be switched in the future period.

[0079] The method provided by the above-mentioned embodiment of the present application obtains the network data of the first port of the optical line terminal; then, based on the network data, diagnoses the problem of the first port; then, in the case that the first port has an overload problem, creates an initial switching strategy, and the initial switching strategy is used to indicate that part or all of the traffic of the first port is switched to the second port; finally, the initial switching strategy is simulated, and the initial switching strategy is optimized based on the simulation results to obtain the target switching strategy. In this solution, since it is possible to automatically diagnose the problem based on the network data to identify whether the port has an overload problem, and automatically generate a switching strategy when there is an overload problem, it is possible to avoid the occurrence of port blocking. In addition, compared with formulating a switching strategy based on manual experience, automatically generating a switching strategy and optimizing it through simulation can improve the effectiveness and effect of the switching strategy, thereby improving the stability of the network.

[0080] Further references Figure 4 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a flow switching device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0081] like Figure 4As shown, the traffic switching device 400 of this embodiment includes: an acquisition unit 401, used to acquire network data of the first port of the optical line terminal; a diagnosis unit 402, used to diagnose problems on the first port based on the above network data; a creation unit 403, used to create an initial switching strategy when there is an overload problem on the first port, and the initial switching strategy is used to indicate that part of the traffic or all of the traffic on the first port is switched to the second port; a simulation unit 404, used to simulate the initial switching strategy, optimize the initial switching strategy based on the simulation result, and obtain a target switching strategy.

[0082] In some optional implementations of this embodiment, the above-mentioned device also includes a prediction unit, which is used to predict the first predicted traffic of the above-mentioned first port in the future time period; based on the above-mentioned first predicted traffic, business changes and changes in the number of users, generate a future switching strategy for the above-mentioned first port in the future time period.

[0083] In some optional implementations of this embodiment, the above-mentioned network data includes the number of users, traffic, relationship data between the above-mentioned optical line terminal and the optical switching box, and relationship data between the splitter and the user; the above-mentioned diagnostic unit 402 is also used to: generate a user traffic feature portrait and a port portrait based on the above-mentioned network data; determine the theoretical carrying rate and the actual carrying rate of the above-mentioned first port based on the above-mentioned user traffic feature portrait and the above-mentioned port portrait; and perform problem diagnosis on the above-mentioned first port based on the above-mentioned theoretical carrying rate and the above-mentioned actual carrying rate.

[0084] In some optional implementations of the present embodiment, the creation unit is further used to: determine a traffic switching method and a second port among the candidate ports based on the overload traffic of the first port, the traffic and position of the candidate port, wherein the traffic switching method includes at least one of the following: switching all the traffic of the first port to the second port, and switching part of the traffic of the first port to the second port; predicting, through a port traffic prediction model, a second predicted traffic of the second port after traffic switching using the traffic switching method; determining, based on the second predicted traffic, whether an overload problem will occur at the second port; if an overload problem will not occur at the second port, generating an initial switching strategy based on the second port and the traffic switching method.

[0085] In some optional implementations of the present embodiment, the simulation unit is further used to iteratively execute the following steps: simulating the initial switching strategy, and determining, based on the simulation results, whether an overload problem will occur after traffic switching using the initial switching strategy; if an overload problem exists, updating the initial switching strategy based on the optimal path algorithm; when it is determined that the overload problem will not occur, using the last updated initial switching strategy as the target switching strategy, and outputting the target switching strategy.

[0086] In some optional implementations of this embodiment, the apparatus further includes an early warning unit configured to output early warning information when an overload problem occurs on the first port.

[0087] In some optional implementations of this embodiment, the apparatus further includes a switching unit configured to switch traffic of the first port based on the target switching strategy.

[0088] The device provided by the above-mentioned embodiment of the present application obtains the network data of the first port of the optical line terminal; then, based on the network data, diagnoses the problem of the first port; then, when there is an overload problem in the first port, creates an initial switching strategy, and the initial switching strategy is used to indicate that part or all of the traffic of the first port is switched to the second port; finally, the initial switching strategy is simulated, and the initial switching strategy is optimized based on the simulation result, so as to obtain the target switching strategy. In this scheme, since it is possible to automatically diagnose the problem according to the network data to identify whether the port has an overload problem, and automatically generate a switching strategy when there is an overload problem, it is possible to avoid the occurrence of port blocking. In addition, compared with formulating a switching strategy based on manual experience, automatically generating a switching strategy and optimizing it through simulation can improve the effectiveness and effect of the switching strategy, thereby improving the stability of the network.

[0089] Reference below Figure 5 , which shows a schematic structural diagram of an electronic device for implementing some embodiments of the present application. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0090] like Figure 5As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0091] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a disk, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0092] In particular, according to some embodiments of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present application are executed.

[0093] It should be noted that the computer-readable medium described in some embodiments of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0094] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0095] The computer-readable medium may be included in the electronic device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains network data of the first port of the optical line terminal; diagnoses problems of the first port based on the network data; creates an initial switching strategy when the first port is overloaded, and the initial switching strategy is used to indicate that part or all of the traffic of the first port is switched to the second port; simulates the initial switching strategy, and optimizes the initial switching strategy based on the simulation results to obtain a target switching strategy.

[0096] Computer program code for performing the operations of some embodiments of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++; and also conventional procedural programming languages ​​such as "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, or may be connected to an external computer (e.g., through the Internet using an Internet service provider), including a local area network (LAN) or a wide area network (WAN).

[0097] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0098] The units described in some embodiments of the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a first determination unit, a second determination unit, a selection unit, and a third determination unit. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0099] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0100] The above description is only some preferred embodiments of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present application is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with (but not limited to) the technical features with similar functions disclosed in the embodiments of the present application to form a technical solution.

Claims

1. A flow switching method, It is characterized in that The method comprises: Acquire network data of a first port of an optical line terminal; Based on the network data, diagnose problems on the first port; In the case where the first port has an overload problem, creating an initial switching strategy, wherein the initial switching strategy is used to instruct to switch part or all of the traffic of the first port to the second port; The initial switching strategy is simulated, and the initial switching strategy is optimized based on the simulation result to obtain a target switching strategy.

2. The method according to claim 1, It is characterized in that The method further comprises: Predicting a first predicted flow rate of the first port in a future period; A future switching strategy for the first port in the future period is generated based on the first predicted traffic, service changes, and user quantity changes.

3. The method according to claim 1, It is characterized in that The network data includes the number of users, traffic, relationship data between the optical line terminal and the optical switching box, and relationship data between the optical splitter and the user; The step of diagnosing a problem on the first port based on the network data includes: Based on the network data, generate a user traffic feature profile and a port profile; Determine a theoretical carrying rate and an actual carrying rate of the first port based on the user traffic feature profile and the port profile; Based on the theoretical bearing rate and the actual bearing rate, a problem diagnosis is performed on the first port.

4. The method according to claim 1, It is characterized in that The creating of the initial switching strategy includes: Determine a traffic switching mode and a second port among the candidate ports based on the heavy traffic of the first port, the traffic and the position of the candidate port, wherein the traffic switching mode includes at least one of the following: switching all the traffic of the first port to the second port, switching part of the traffic of the first port to the second port; Predicting, by means of a port traffic prediction model, a second predicted traffic of the second port after traffic switching is performed in the traffic switching manner; Based on the second predicted flow, determining whether the second port will have an overload problem; If the second port will not have an overload problem, an initial switching strategy is generated based on the second port and the traffic switching method.

5. The method according to claim 1, It is characterized in that The simulating the initial switching strategy and optimizing the initial switching strategy based on the simulation result to obtain the target switching strategy includes: Iteratively perform the following steps: simulate the initial switching strategy, and determine whether an overload problem will occur after the initial switching strategy is used to switch traffic based on the simulation result; if an overload problem exists, update the initial switching strategy based on the optimal path algorithm; When it is determined that the overload problem will not occur, the last updated initial switching strategy is used as the target switching strategy, and the target switching strategy is output.

6. The method according to claim 1, It is characterized in that The method further comprises: When the first port has an overload problem, an early warning message is output.

7. The method according to claim 1, It is characterized in that The method further comprises: Based on the target switching strategy, traffic of the first port is switched.

8. A flow switching device, It is characterized in that The device comprises: An acquisition unit, used for acquiring network data of a first port of an optical line terminal; a diagnosis unit, configured to diagnose problems of the first port based on the network data; A creating unit, configured to create an initial switching strategy when the first port is overloaded, wherein the initial switching strategy is used to instruct to switch part or all of the traffic of the first port to the second port; The simulation unit is used to simulate the initial switching strategy, optimize the initial switching strategy based on the simulation result, and obtain the target switching strategy.

9. An electronic device, It is characterized in that include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.