WO2021068489A1 - Routing path intelligent selection method and apparatus, device, and readable storage medium - Google Patents

Routing path intelligent selection method and apparatus, device, and readable storage medium Download PDF

Info

Publication number
WO2021068489A1
WO2021068489A1 PCT/CN2020/087632 CN2020087632W WO2021068489A1 WO 2021068489 A1 WO2021068489 A1 WO 2021068489A1 CN 2020087632 W CN2020087632 W CN 2020087632W WO 2021068489 A1 WO2021068489 A1 WO 2021068489A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing path
data
transaction type
preset
type data
Prior art date
Application number
PCT/CN2020/087632
Other languages
French (fr)
Chinese (zh)
Inventor
郁国荣
肖敏
胡庆瑜
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2021068489A1 publication Critical patent/WO2021068489A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design

Definitions

  • This application relates to the field of artificial intelligence technology, and in particular to a method, device, equipment and computer-readable storage medium for intelligent routing path selection.
  • the main purpose of this application is to provide a method, device, device, and computer-readable storage medium for intelligent routing path selection, aiming to solve the technical problem of low degree of intelligentization of path selection in routing path selection scenarios.
  • the routing path intelligent selection method includes the following steps:
  • the training sample set including network state information data
  • the training sample data in the training sample set is sequentially calculated by the following formula to obtain the network state information data feature set:
  • the network state information data feature set has two different types of training sample data, W T U 0 and W T U 1 represent the projection of the centers of the two different types of training sample data on a straight line, W T ⁇ 0 W and W T ⁇ 1 W represent the covariance of the two types of training sample data after projection;
  • a hash algorithm is used to establish the correspondence between the transaction type data and the routing path data, and the correspondence is a one-to-many correspondence;
  • the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through a neural network model to obtain a routing path set, wherein the routing path set includes at least two A routing path, if the transaction type data is not currently obtained, it is judged whether the transaction type data is currently obtained;
  • the transaction type data is forwarded through other routing paths in the routing path set that do not have transaction type data congestion. If there is no transaction type data congestion in the routing path set, If there is a routing path with transaction type data congestion, it is determined whether there is a routing path with transaction type data congestion in the routing path set, wherein the forwarding follows a preset routing path adjustment strategy.
  • the present application also provides a first routing path intelligent selection device, the routing path intelligent selection device includes:
  • An obtaining module configured to obtain a training sample set in real time, the training sample set including network state information data
  • the first calculation module is configured to sequentially calculate the training sample data in the training sample set by the following formula to obtain a network state information data feature set;
  • a training module for training a first data mining model using the network state information data feature set to obtain a second data mining model
  • the mining module is used to mine the current network state information data through the second data mining model according to preset transaction types and routing paths to obtain transaction type data and routing path data;
  • the establishment module is configured to establish a correspondence between the transaction type data and the routing path data by using a hash algorithm, and the correspondence is a one-to-many correspondence;
  • the first judgment module is used to judge whether the transaction type data is currently acquired
  • the prediction module is configured to obtain the routing path data according to the corresponding relationship if the transaction type data is currently obtained, and predict the routing path data through a neural network model to obtain a routing path set;
  • the second judgment module is used for judging whether the transaction type is currently acquired if the transaction type data is not currently acquired;
  • the third judgment module is used to judge whether there is a routing path where transaction type data congestion occurs in the routing path set;
  • the first forwarding module is configured to forward the transaction type data through other routing paths in the routing path set without transaction type data congestion if there is a routing path in the routing path set that has transaction type data congestion.
  • the fourth judging module is configured to determine whether there is a routing path where transaction type data congestion occurs in the routing path set if there is no routing path where transaction type data congestion occurs in the routing path set, wherein the forwarding follows a preset Routing path adjustment strategy.
  • the training module includes the following units:
  • An extraction unit configured to extract n training sets from the N network state information data features of the network state information data feature set by a bagging method, where the N is greater than or equal to n;
  • a training unit configured to use the n training sets to train the multiple preset to-be-selected initial data mining models to obtain multiple initial classification results
  • the screening unit is configured to screen out a plurality of initial data mining models from the plurality of preset initial data mining models to be selected by a preset voting method according to the plurality of initial classification results to obtain a second data mining model.
  • the intelligent routing path selection device further includes the following modules:
  • the fifth judgment module is configured to monitor the first service message data in real time through in-band network telemetry technology to obtain the monitoring result, and judge whether the first service message data reaches the preset important level based on the monitoring result;
  • the mirroring module is configured to, if the first service message data reaches a preset important level, use in-band network telemetry technology to mirror the second service message data according to the first service message data;
  • the sixth judgment module is configured to, if the first service message data does not reach the preset important level, monitor the first service message data in real time through in-band network telemetry technology to obtain the monitoring result, and determine the location based on the monitoring result. Whether the first service message data reaches the preset important level;
  • the present application also provides an intelligent routing path selection device, the routing path intelligent selection device includes a memory, a processor, and a router that is stored in the memory and can run on the processor.
  • a path intelligent selection program when the routing path intelligent selection program is executed by the processor, the steps of the routing path intelligent selection method as described in any one of the above are implemented.
  • the present application also provides a computer-readable storage medium with a routing path intelligent selection program stored on the computer-readable storage medium, and the routing path intelligent selection program is executed by the processor to achieve The steps of the intelligent routing path selection method described in any one of the above.
  • This application is to solve the technical problem of manually selecting a routing path according to the real-time newly added service type in the prior art.
  • the implementation process of this application is: mining network state information data through a data mining model to obtain mining data, and establishing a one-to-many correspondence between the transaction type data and routing path data through a hash algorithm, and then through the neural network model
  • the routing path set is predicted and obtained based on the routing path data, and different routing paths are selected according to the status of each routing path forwarding transaction type data in the routing path set. Realize the intelligent routing path selection based on the data of different transaction types.
  • FIG. 1 is a schematic structural diagram of an operating environment of a routing path intelligent selection device involved in a solution according to an embodiment of the application;
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for intelligently selecting a routing path according to this application;
  • FIG. 3 is a schematic diagram of the detailed flow of step S30 in FIG. 2;
  • FIG. 4 is a schematic flowchart of a second embodiment of a method for intelligently selecting a routing path according to this application;
  • FIG. 5 is a schematic flowchart of a third embodiment of a routing path intelligent selection method according to this application.
  • FIG. 6 is a schematic flowchart of a fourth embodiment of a routing path intelligent selection method according to this application.
  • FIG. 7 is a detailed flowchart of step S80 in FIG. 2;
  • FIG. 8 is a schematic flowchart of a fifth embodiment of a method for intelligently selecting a routing path according to this application.
  • FIG. 9 is a schematic diagram of functional modules of an embodiment of a device for intelligent routing path selection according to the present application.
  • This application provides an intelligent routing path selection device.
  • FIG. 1 is a schematic structural diagram of an operating environment of a routing path intelligent selection device involved in a solution of an embodiment of the application.
  • the intelligent routing path selection device includes: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • routing path intelligent selection device does not constitute a limitation on the routing path intelligent selection device, and may include more or less components than shown in the figure, or a combination of certain components. Components, or different component arrangements.
  • the memory 1005 which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a routing path intelligent selection program.
  • the operating system is a program that manages and controls the routing path intelligent selection equipment and software resources, and supports the routing path intelligent selection program and the operation of other software and/or programs.
  • the network interface 1004 is mainly used to access the network; the user interface 1003 is mainly used to detect and confirm instructions and edit instructions.
  • the processor 1001 may be used to call the routing path intelligent selection program stored in the memory 1005, and execute the operations of the following embodiments of the routing path intelligent selection method.
  • routing path intelligent selection device Based on the foregoing hardware structure of the routing path intelligent selection device, various embodiments of the routing path intelligent selection method of the present application are proposed.
  • Fig. 2 is a schematic flowchart of a first embodiment of a method for intelligently selecting a routing path according to the present application.
  • the intelligent routing path selection method includes the following steps:
  • Step S10 obtaining a training sample set in real time, the training sample set including network state information data;
  • the network status information data can be obtained in real time through the preset API interface, and the total number of training sample data in the training sample set is:
  • the network status information data includes at least: device status information data and flow status information data.
  • the operating status of the device can be judged by the acquired device status information data, and the acquired flow status information data can be used to monitor whether the data flow exceeds the current The load range of the routing path.
  • step S20 the training sample data in the training sample set is sequentially calculated by the following formula to obtain a network state information data feature set:
  • the network state information data feature set has two different types of training sample data, W T U 0 and W T U 1 represent the projection of the centers of the two different types of training sample data on a straight line, W T ⁇ 0 W and W T ⁇ 1 W represent the covariance of the two types of training sample data after projection;
  • the training sample data in the training sample set is sequentially calculated by the following formula to obtain the network state information data feature set:
  • the multi-dimensional training sample data in the training sample set is projected by this formula, they are all projected on a one-dimensional straight line, that is, the dimensionality reduction of the multi-dimensional data is realized.
  • the massive training sample data in the training sample set is divided into two Therefore, this embodiment can not only achieve the purpose of accelerating the subsequent calculation speed through dimensionality reduction, but also divide the data into two categories to prepare for data segmentation and data mining.
  • the projections of the centers of the two types of samples on the straight line are W T U 0 and W T U 1 , respectively. If all the sample points are projected onto the straight line, the two types of sample projections The covariances are W T ⁇ 0 W and W T ⁇ 1 W, respectively.
  • u refers to the mean vector of all samples Find the projected covariance of different types of training samples according to the following formula, where X refers to the vector of the current sample:
  • the projection points of similar samples are as close as possible, and the projection points of heterogeneous samples are as far away as possible, so the variance of the projection points of similar samples should be as small as possible, that is, W T ⁇ 0 W+W T ⁇ 1 W Small, it is necessary to make the center projection of heterogeneous samples as far as possible, namely As large as possible, then get the maximum goal J: Different data can be divided into different categories by maximizing the goal J.
  • Step S30 Use the network state information data feature set to train a first data mining model to obtain a second data mining model, where the first data mining model includes multiple initial data mining models to be selected;
  • the first data mining model includes multiple initial data mining models, and the first data mining model refers to a model set. If the first data mining model has effective data mining capabilities, it is also necessary to train the first data mining model through the network state information data feature set until the first data mining model can output according to the current network state information data feature set. The data of the scene, if the output data is in line with the current scene, it means that the first data mining model has been trained. In order to distinguish it from the first data mining model, the trained first data mining model is named second data mining model.
  • Step S40 According to the preset transaction type and routing path, mining the current network state information data through the second data mining model to obtain transaction type data and routing path data;
  • the preset data mining model includes a data mining model constructed based on a network state information data feature set and a clustering algorithm.
  • the data mining model includes the following steps. First, extract features from a large amount of network state information data. Data, and then classify the extracted feature data to obtain transaction type data and routing path data.
  • Step S50 using a hash algorithm to establish a correspondence between the transaction type data and the routing path data, and the correspondence is a one-to-many correspondence;
  • the hash value of each transaction type data and the hash value of the routing path data are obtained through the calculation of the hash algorithm, and the hash value of each transaction type data and the hash value of the routing path data are established.
  • the corresponding relationship between each transaction type data can correspond to multiple routing path data.
  • Step S60 it is judged whether the transaction type data is currently acquired
  • a preset monitoring device can be used to detect whether new transaction type data is added to the service message in real time.
  • the new transaction type data can be existing transaction type data or transaction type data of a new service.
  • Step S70 If the transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through the neural network model to obtain the routing path set. If the transaction type is not currently acquired Data, return to step S60, where the routing path set includes at least two routing paths.
  • the routing path training sample data is used to train the neural network model constructed by the neural network algorithm and the routing path training sample data, and each prediction result output by the neural network model is normalized to obtain the routing path set prediction As a result, the prediction result is compared with the preset prediction result to determine whether the preset threshold is satisfied. If it is satisfied, it means that the neural network model has the ability to predict the preset accuracy rate. And output routing path set through neural network model.
  • the routing path data is obtained according to the correspondence between the transaction type data and the routing path data, and the routing path data is predicted through the neural network model to obtain the routing path set
  • the current data are public transaction data and private transaction data, and because there is a one-to-many relationship between transaction type data and routing path data, data for each transaction type will be multiple
  • the routing path data is predicted through a neural network model to obtain a routing path set for forwarding public transaction data and a routing path set for forwarding private transaction data.
  • Step S80 judging whether there is a routing path where transaction type data congestion occurs in the routing path set
  • the in-band network detection technology can be used to detect whether transaction type data congestion occurs at the first routing path node in the routing path set.
  • the reason for judging whether there is a routing path where transaction type data congestion occurs in the routing path set is to prevent Data is lost due to data congestion.
  • Step S90 If there is a routing path that has transaction type data congestion in the routing path set, the transaction type data is forwarded through other routing paths in the routing path set that do not have transaction type data congestion. If there is no routing path where transaction type data congestion occurs, return to step S80, where the forwarding follows the preset routing path adjustment strategy.
  • the path forwards transaction type data.
  • the path adjustment strategy refers to the routing path that has transaction type data congestion in the routing path set, and when the transaction type data is forwarded through other routing paths in the routing path set without transaction type data congestion, other transaction type data congestion does not occur. There are different priority levels between routing paths, and other routing paths with higher priority levels that are not subject to transaction type data congestion can be used to forward transaction type data.
  • This solution uses the data mining model to mine the network status information data to obtain the mining data.
  • the one-to-many correspondence between the transaction type data and the routing path data is established through the hash algorithm, and the neural network model is used to predict the routing path data And get the routing path set, and select different routing paths according to the status of each routing path forwarding transaction type data in the routing path set. Realize the intelligent routing path selection based on the data of different transaction types.
  • FIG. 3 is a detailed flowchart of step S30 in FIG. 2.
  • the above step S30 specifically includes the following steps:
  • Step S301 extracting n training sets from the N network state information data features of the network state information data feature set by the bagging method, where the N is greater than or equal to n;
  • n training sets are extracted from the N data of the network state information data feature set.
  • Each round uses the bagging method to extract n training samples from the network state information data feature set.
  • some samples may be drawn multiple times, while some samples may not be drawn at once.
  • a total of k rounds of extraction are performed, and k training sets are obtained, among which the k training sets are independent of each other.
  • Each time one training set is used to obtain an initial data mining model that has been trained, and k training sets are used to obtain k initial data mining models that have been trained.
  • the k initial data mining models that have been trained in the previous step are used to obtain the classification results by voting. According to the preset classification results, it is judged whether the classification results meet the preset conditions.
  • the trained data mining model is obtained.
  • the data mining models that have been trained there are k initial data mining models that have completed training.
  • the classification results of each initial data mining model that have completed training may be different, but the weight of each initial data mining model is the same of.
  • Step S302 using the n training sets to train the multiple preset to-be-selected initial data mining models to obtain multiple initial classification results;
  • the n training sets are used to train multiple preset initial data mining models to be selected, and multiple initial classification results are obtained.
  • Step S303 According to the multiple initial classification results, multiple initial data mining models are selected from the multiple preset initial data mining models to be selected by a preset voting method to obtain a second data mining model.
  • a plurality of initial data mining models are selected from the plurality of preset candidate initial data mining models through a preset voting method to obtain a trained data mining model.
  • the voting method means that the initial classification result is compared with the pre-classified result. If the difference between the initial classification result output by the current candidate initial data mining model and the pre-classified result meets the preset threshold, the selected The initial data mining model to be selected.
  • FIG. 4 is a schematic flowchart of a second embodiment of a method for intelligent routing path selection according to this application.
  • step S60 in FIG. 2 the following steps are further included:
  • step S100 the first service message data is monitored in real time through the in-band network telemetry technology to obtain the monitoring result, and based on the monitoring result, it is judged whether the first service message data reaches a preset important level, wherein the first service
  • the message data includes network device status information data and traffic status information data;
  • the importance level is set for the data in the first service message data, for example, the data of some important events needs to be set to the important level .
  • the classification of the level is divided according to the importance of the current business.
  • Step S110 If the first service message data reaches the preset importance level, the second service message data is mirrored according to the first service message data through the in-band network telemetry technology. If the first service message data is If the document data does not reach the preset importance level, return to step S100.
  • the first service message data is monitored in real time through the in-band network telemetry technology, and the second service message data is mirrored according to the first service message data, for example, a routing path for forwarding important level data If a failure occurs, data loss may occur. In order to avoid the loss of important level data when this situation occurs, when the first service message data is detected, the first service message data is mirrored to obtain Output the second service message data.
  • FIG. 5 is a schematic flowchart of a third embodiment of a routing path intelligent selection method according to this application.
  • step S70 in FIG. 2 the following steps are further included:
  • Step S120 judging whether each routing path in the routing path set is greater than a preset minimum routing path
  • Step S130 If each routing path in the routing path set is greater than a preset minimum routing path, adopt a back propagation algorithm to adjust the parameter value of the neural network model until each routing path in the routing path set is less than or equal to The minimum routing path is preset, if not, it will not be processed.
  • the parameter values of the neural network model need to be adjusted, for example, the parameter values of the neural network model They are w 1 and w 2 respectively .
  • the sum of w 1 and w 2 is 1, and w 1 is greater than w 2. If the output routing path is larger than the preset routing path, you can adjust w 1 and w 2 , until the current routing path is less than or equal to the preset minimum routing path.
  • FIG. 6 is a schematic flowchart of a fourth embodiment of a routing path intelligent selection method according to this application.
  • step S80 in FIG. 2 the following steps are further included:
  • Step S140 judging whether the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, wherein the preset load value is less than the maximum load value of the current routing path;
  • the preset load value is less than the maximum load value of the current routing path.
  • Load value When the number of transaction type data reaches the preset load value of the current routing path, other routing paths are used. For example, the maximum load value of the routing path is 200, and the preset load value is 100.
  • the transaction type data quantity value is 1 to 100, the first routing path is used.
  • the transaction type data quantity value is greater than 100, 1 to 100
  • the transaction type data selects the first routing path, and the transaction type data greater than 100 and less than 200 uses the second routing path.
  • the second path refers to the routing path in the path set except the first routing path.
  • Step S150 If the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, it is determined whether there is a routing path that does not forward transaction type data in the routing path set. If the number of transaction type data forwarded by the current routing path in the routing path set does not reach the preset load value of the current routing path, return to step S140;
  • the routing path set if the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, it is determined whether there is a routing path that does not forward transaction type data in the routing path set, for example, a routing path There are three routing paths in the set, namely, A, B, and C.
  • the preset load values for A, B, and C are all 50, and the maximum load value of A, B, and C is 100. If the data volume is 150 at this time, and there are data in the follow-up, the routing path can be known after judgment. There is no routing path that does not forward transaction type data in the centralized.
  • the data volume is 90 at this time, and there are subsequent data, there is a routing path that does not forward transaction type data. At this time, it is necessary to continue to determine the transaction forwarded by the current routing path in the routing path set Whether the number of type data reaches the preset load value of the current routing path.
  • Step S160 If there is a routing path that does not forward transaction type data in the routing path set, forward the transaction type data through the routing path that does not forward transaction type data, if there is no transaction type that is not forwarded in the routing path set For the data routing path, the transaction type data is forwarded through the routing path that reaches the preset load value.
  • the transaction type data that exceeds the preset load value of the current routing path is forwarded through other routing paths in the routing path set. Preferentially, the shortest route is selected.
  • FIG. 7 is a detailed flowchart of step S80 in FIG. 2.
  • the above step S80 specifically includes the following steps:
  • Step 801 Send a congestion detection request to each routing path in the routing path set;
  • a congestion detection request is sent to the first routing path node, and the channel load at the first routing path node in the channel is monitored through the preset channel load whether the channel load at the first routing path node is higher than a preset threshold, and if it is higher than the preset threshold, then It shows that data congestion occurs at the first routing path node. For example, in an actual scenario, if data congestion occurs at the first routing path node, an alarm is issued.
  • Step S802 According to the congestion response messages received from the respective routing paths, it is determined whether there is a routing path where transaction type data congestion occurs in the routing path set.
  • the in-band network telemetry technology can be used to detect whether congestion occurs at the first routing path node, and if it occurs, a congestion response message is sent.
  • a congestion detection request is sent to the first routing path node, where the congestion detection request is used to request the first routing path node to perform congestion detection on the priority routing path, according to the congestion detection request from the first routing path node
  • the received congestion response message is used to determine whether data congestion occurs in the priority routing path.
  • FIG. 8 is a schematic flowchart of a fifth embodiment of a method for intelligently selecting a routing path according to this application.
  • step S80 in FIG. 2 the following steps are further included:
  • Step S170 Calculate the frequency of occurrence of data of each transaction type through a summation formula
  • the trained neural network model can predict and obtain transaction type data based on the previous network state information data, for example, public transaction data and private transaction data. If the frequency of public transaction data is 20%, private transaction data The frequency of occurrence of class data is 80%.
  • Step S180 determining the priority level of each routing path in the routing path set to forward the transaction type data according to the frequency
  • the frequency of the routing path data corresponding to the transaction type data will also increase accordingly.
  • the neural network model is based on routing path data with different occurrence frequencies. Output different numbers of routing paths. The larger the number of routing paths, the greater the demand for the current transaction type data for this routing path. Therefore, the priority level between each routing path can be determined according to the number of routing paths. For example, if the frequency of the private transaction type data is high, the routing paths in the path concentration are preferentially provided for the use of the private transaction type data.
  • Step S190 Determine a preset routing path adjustment strategy according to the priority level.
  • the preset routing path adjustment strategy is determined according to the priority level of each routing path in the routing path set to forward transaction type data, when there is an instruction to use the routing path to forward data, it can be adjusted according to the preset routing path Strategy to forward.
  • FIG. 9 is a schematic diagram of functional modules of an embodiment of an apparatus for intelligent routing path selection according to the present application.
  • the intelligent routing path selection device includes:
  • the obtaining module 10 is configured to obtain a training sample set in real time, and the training sample set includes network state information data;
  • the calculation module 20 is configured to sequentially calculate the training sample data in the training sample set by the following formula to obtain a network state information data feature set:
  • the training module 30 is configured to use the network state information data feature set to train a first data mining model to obtain a second data mining model;
  • the mining module 40 is used to mine current network state information data through the second data mining model according to preset transaction types and routing paths to obtain transaction type data and routing path data;
  • the establishment module 50 is configured to establish a correspondence between the transaction type data and the routing path data by using a hash algorithm, and the correspondence is a one-to-many correspondence;
  • the first judgment module 60 is used to judge whether the transaction type data is currently acquired
  • the prediction module 70 is configured to obtain the routing path data according to the corresponding relationship if the transaction type data is currently obtained, and predict the routing path data through a neural network model to obtain a routing path set;
  • the second judgment module 80 is used for judging whether the transaction type is currently acquired if the transaction type data is not currently acquired;
  • the third judgment module 90 is configured to judge whether there is a routing path in which transaction type data congestion occurs in the routing path set;
  • the forwarding module 100 is configured to forward the transaction type data through other routing paths in the routing path set without transaction type data congestion if there is a routing path where transaction type data congestion occurs in the routing path set;
  • the fourth judging module 110 is configured to determine whether there is a routing path where transaction type data congestion occurs in the routing path set if there is no routing path where transaction type data congestion occurs in the routing path set, wherein the forwarding follows a predetermined Set routing path adjustment strategy.
  • the application also provides a computer-readable storage medium.
  • a routing path intelligent selection program is stored on the computer-readable storage medium.
  • the computer-readable storage medium may be non-volatile or volatile.
  • the routing path intelligent selection program is executed by the processor. The steps of the intelligent routing path selection method as described in any of the above embodiments are implemented during execution.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to the technical field of artificial intelligence and discloses a routing path intelligent selection method, comprising the following steps: mining, according to a preset transaction type and routing path, current network state information data by means of a data mining model, so as to obtain transaction type data and routing path data; determining whether the transaction type data is currently acquired; if so, obtaining the routing path data according to a correlation, and predicting the routing path data by means of a neural network model, so as to obtain a routing path set; determining whether there is a routing path where the transaction type data congestion occurs in the routing path set; and if so, forwarding the transaction type data by means of other routing paths where no transaction type data congestion occurs. The present application further discloses a routing path intelligent selection apparatus, a device, and a computer-readable storage medium. The routing path intelligent selection method provided in the present application solves the technical problem of low degree of intelligence of path selection in a routing path selection scenario.

Description

路由路径智能选择方法、装置、设备及可读存储介质Intelligent routing path selection method, device, equipment and readable storage medium
本申请要求于2019年10月12日提交中国专利局、申请号为201910967899.7,发明名称为“路由路径智能选择方法、装置、设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on October 12, 2019, the application number is 201910967899.7, and the invention title is "Routing Path Intelligent Selection Method, Device, Equipment, and Readable Storage Medium", and its entire content Incorporated in this application by reference.
技术领域Technical field
本申请涉及人工智能技术领域,尤其涉及一种路由路径智能选择方法、装置、设备及计算机可读存储介质。This application relates to the field of artificial intelligence technology, and in particular to a method, device, equipment and computer-readable storage medium for intelligent routing path selection.
背景技术Background technique
现有技术中由于业务需求的激增,对于不同的业务类型的数据往往需要不同的路由路径来传输,而现有的路由方案提供的路由路径较为单一,仅能为现有业务的数据匹配路由路径,当引入新的业务类型数据时,往往需要人工手动选择路由路径。发明人意识到现有的路由路径无法满足数据传输需求,并且数据对路由路径的选择不够智能化,现有的路由器仅能为现有业务类型数据匹配路由路径,当引入新的业务类型数据时,往往需要人工手动选择路由路径。因此,如何根据数据交易类型、交易量智能化地选择路由路径是本领域亟待解决的技术问题。Due to the rapid increase in business requirements in the prior art, data of different business types often require different routing paths to transmit, while the routing path provided by the existing routing scheme is relatively single, and can only match the routing path for the data of the existing business. When introducing new business type data, it is often necessary to manually select the routing path manually. The inventor realizes that the existing routing path cannot meet the data transmission requirements, and the data selection of the routing path is not intelligent enough. The existing router can only match the routing path for the existing service type data. When introducing new service type data , Often need to manually select the routing path manually. Therefore, how to intelligently select a routing path according to the data transaction type and transaction volume is a technical problem to be solved urgently in this field.
发明内容Summary of the invention
本申请的主要目的在于提供一种路由路径智能选择方法、装置、设备及计算机可读存储介质,旨在解决路由路径选择场景中路径选择智能化程度低的技术问题。The main purpose of this application is to provide a method, device, device, and computer-readable storage medium for intelligent routing path selection, aiming to solve the technical problem of low degree of intelligentization of path selection in routing path selection scenarios.
为实现上述目的,本申请提供一种路由路径智能选择方法,所述路由路径智能选择方法包括以下步骤:In order to achieve the above objective, the present application provides an intelligent routing path selection method. The routing path intelligent selection method includes the following steps:
实时获取训练样本集,所述训练样本集包括网络状态信息数据;Acquiring a training sample set in real time, the training sample set including network state information data;
通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集:The training sample data in the training sample set is sequentially calculated by the following formula to obtain the network state information data feature set:
Figure PCTCN2020087632-appb-000001
Figure PCTCN2020087632-appb-000001
其中,所述网络状态信息数据特征集中具有两种不同类型的训练样本数据,W TU 0和W TU 1表示两种不同类型的训练样本数据的中心在直线上的投影,W T0W和W T1W表示两类训练样本数据投影后的协方差; Wherein, the network state information data feature set has two different types of training sample data, W T U 0 and W T U 1 represent the projection of the centers of the two different types of training sample data on a straight line, W T0 W and W T1 W represent the covariance of the two types of training sample data after projection;
使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型,其中,所述第一数据挖掘模型包括多个待选初始数据挖掘模型;Training a first data mining model using the network state information data feature set to obtain a second data mining model, wherein the first data mining model includes a plurality of initial data mining models to be selected;
按照预置交易类型和路由路径,通过所述第二数据挖掘模型对当前网络状态信息数据进行挖掘,得到交易类型数据与路由路径数据;According to the preset transaction type and routing path, mining the current network state information data through the second data mining model to obtain transaction type data and routing path data;
采用哈希算法建立所述交易类型数据与路由路径数据之间的对应关系,所述对应关系 为一对多的对应关系;A hash algorithm is used to establish the correspondence between the transaction type data and the routing path data, and the correspondence is a one-to-many correspondence;
判断当前是否获取到交易类型数据;Determine whether the transaction type data is currently obtained;
若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集,其中,所述路由路径集至少包括两个路由路径,若当前未获取到交易类型数据,则判断当前是否获取到交易类型数据;If transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through a neural network model to obtain a routing path set, wherein the routing path set includes at least two A routing path, if the transaction type data is not currently obtained, it is judged whether the transaction type data is currently obtained;
若当前未获取到交易类型数据,则判断当前是否获取到交易类型数据;If the transaction type data is not currently obtained, judge whether the transaction type data is currently obtained;
判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径;Judging whether there is a routing path where transaction type data congestion occurs in the routing path set;
若所述路由路径集中存在发生交易类型数据拥塞的路由路径,则通过所述路由路径集中的其他未发生交易类型数据拥塞的路由路径转发所述交易类型数据,若所述路由路径集中不存在发生交易类型数据拥塞的路由路径,则判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径,其中,所述转发遵循预置路由路径调整策略。If there is a routing path that has transaction type data congestion in the routing path set, the transaction type data is forwarded through other routing paths in the routing path set that do not have transaction type data congestion. If there is no transaction type data congestion in the routing path set, If there is a routing path with transaction type data congestion, it is determined whether there is a routing path with transaction type data congestion in the routing path set, wherein the forwarding follows a preset routing path adjustment strategy.
进一步地,为实现上述目的,本申请还提供第一种路由路径智能选择装置,所述路由路径智能选择装置包括:Further, in order to achieve the above object, the present application also provides a first routing path intelligent selection device, the routing path intelligent selection device includes:
获取模块,用于实时获取训练样本集,所述训练样本集包括网络状态信息数据;An obtaining module, configured to obtain a training sample set in real time, the training sample set including network state information data;
第一计算模块,用于通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集;The first calculation module is configured to sequentially calculate the training sample data in the training sample set by the following formula to obtain a network state information data feature set;
训练模块,用于使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型;A training module for training a first data mining model using the network state information data feature set to obtain a second data mining model;
挖掘模块,用于按照预置交易类型和路由路径,通过所述第二数据挖掘模型对当前网络状态信息数据进行挖掘,得到交易类型数据与路由路径数据;The mining module is used to mine the current network state information data through the second data mining model according to preset transaction types and routing paths to obtain transaction type data and routing path data;
建立模块,用于采用哈希算法建立所述交易类型数据与路由路径数据之间的对应关系,所述对应关系为一对多的对应关系;The establishment module is configured to establish a correspondence between the transaction type data and the routing path data by using a hash algorithm, and the correspondence is a one-to-many correspondence;
第一判断模块,用于判断当前是否获取到交易类型数据;The first judgment module is used to judge whether the transaction type data is currently acquired;
预测模块,用于若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集;The prediction module is configured to obtain the routing path data according to the corresponding relationship if the transaction type data is currently obtained, and predict the routing path data through a neural network model to obtain a routing path set;
第二判断模块,用于若当前未获取到交易类型数据,则判断当前是否获取到交易类型;The second judgment module is used for judging whether the transaction type is currently acquired if the transaction type data is not currently acquired;
第三判断模块,用于判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径;The third judgment module is used to judge whether there is a routing path where transaction type data congestion occurs in the routing path set;
第一转发模块,用于若所述路由路径集中存在发生交易类型数据拥塞的路由路径,则通过所述路由路径集中的其他未发生交易类型数据拥塞的路由路径转发所述交易类型数据。The first forwarding module is configured to forward the transaction type data through other routing paths in the routing path set without transaction type data congestion if there is a routing path in the routing path set that has transaction type data congestion.
第四判断模块,用于若所述路由路径集中不存在发生交易类型数据拥塞的路由路径,则判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径,其中,所述转发遵循预置路由路径调整策略。The fourth judging module is configured to determine whether there is a routing path where transaction type data congestion occurs in the routing path set if there is no routing path where transaction type data congestion occurs in the routing path set, wherein the forwarding follows a preset Routing path adjustment strategy.
可选地,所述训练模块包括以下单元:Optionally, the training module includes the following units:
抽取单元,用于通过袋装法从所述网络状态信息数据特征集的N个网络状态信息数据特征中抽取n个训练集,所述N大于或等于n;An extraction unit, configured to extract n training sets from the N network state information data features of the network state information data feature set by a bagging method, where the N is greater than or equal to n;
训练单元,用于使用所述n个训练集训练所述多个预置待选初始数据挖掘模型,得到多个初始分类结果;A training unit, configured to use the n training sets to train the multiple preset to-be-selected initial data mining models to obtain multiple initial classification results;
筛选单元,用于根据所述多个初始分类结果,通过预置投票方式从所述多个预置待选初始数据挖掘模型中筛选出多个初始数据挖掘模型,得到第二数据挖掘模型。The screening unit is configured to screen out a plurality of initial data mining models from the plurality of preset initial data mining models to be selected by a preset voting method according to the plurality of initial classification results to obtain a second data mining model.
可选地,所述路由路径智能选择装置还包括以下模块:Optionally, the intelligent routing path selection device further includes the following modules:
第五判断模块,用于通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别;The fifth judgment module is configured to monitor the first service message data in real time through in-band network telemetry technology to obtain the monitoring result, and judge whether the first service message data reaches the preset important level based on the monitoring result;
镜像模块,用于若所述第一业务报文数据达到预置重要级别,则通过带内网络遥测技 术根据所述第一业务报文数据镜像出第二业务报文数据;The mirroring module is configured to, if the first service message data reaches a preset important level, use in-band network telemetry technology to mirror the second service message data according to the first service message data;
第六判断模块,用于若所述第一业务报文数据未达到预置重要级别,则通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别;The sixth judgment module is configured to, if the first service message data does not reach the preset important level, monitor the first service message data in real time through in-band network telemetry technology to obtain the monitoring result, and determine the location based on the monitoring result. Whether the first service message data reaches the preset important level;
进一步地,为实现上述目的,本申请还提供一种路由路径智能选择设备,所述路由路径智能选择设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的路由路径智能选择程序,所述路由路径智能选择程序被所述处理器执行时实现如上述任一项所述的路由路径智能选择方法的步骤。Further, in order to achieve the above object, the present application also provides an intelligent routing path selection device, the routing path intelligent selection device includes a memory, a processor, and a router that is stored in the memory and can run on the processor. A path intelligent selection program, when the routing path intelligent selection program is executed by the processor, the steps of the routing path intelligent selection method as described in any one of the above are implemented.
进一步地,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有路由路径智能选择程序,所述路由路径智能选择程序被处理器执行时实现如上述任一项所述的路由路径智能选择方法的步骤。Further, in order to achieve the above-mentioned object, the present application also provides a computer-readable storage medium with a routing path intelligent selection program stored on the computer-readable storage medium, and the routing path intelligent selection program is executed by the processor to achieve The steps of the intelligent routing path selection method described in any one of the above.
本申请的有益效果:本申请为解决现有技术中需要根据实时新增业务类型手动选择路由路径的技术问题。提供一种智能路由路径选择方法。本申请的实现过程为:通过数据挖掘模型对网络状态信息数据进行挖掘,得到挖掘数据,通过哈希算法建立所述交易类型数据与路由路径数据之间一对多对应关系,则通过神经网络模型根据路由路径数据预测并得到路由路径集,根据路由路径集中各个路由路径转发交易类型数据的状态,选择不同路由路径。实现了根据不同交易类型的数据智能化地选择路由路径。Beneficial effects of this application: This application is to solve the technical problem of manually selecting a routing path according to the real-time newly added service type in the prior art. Provide an intelligent routing path selection method. The implementation process of this application is: mining network state information data through a data mining model to obtain mining data, and establishing a one-to-many correspondence between the transaction type data and routing path data through a hash algorithm, and then through the neural network model The routing path set is predicted and obtained based on the routing path data, and different routing paths are selected according to the status of each routing path forwarding transaction type data in the routing path set. Realize the intelligent routing path selection based on the data of different transaction types.
附图说明Description of the drawings
图1为本申请实施例方案涉及的路由路径智能选择设备运行环境的结构示意图;FIG. 1 is a schematic structural diagram of an operating environment of a routing path intelligent selection device involved in a solution according to an embodiment of the application;
图2为本申请路由路径智能选择方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for intelligently selecting a routing path according to this application;
图3为图2中步骤S30的细化流程示意图;FIG. 3 is a schematic diagram of the detailed flow of step S30 in FIG. 2;
图4为本申请路由路径智能选择方法第二实施例的流程示意图;4 is a schematic flowchart of a second embodiment of a method for intelligently selecting a routing path according to this application;
图5为本申请路由路径智能选择方法第三实施例的流程示意图;FIG. 5 is a schematic flowchart of a third embodiment of a routing path intelligent selection method according to this application;
图6为本申请路由路径智能选择方法第四实施例的流程示意图;6 is a schematic flowchart of a fourth embodiment of a routing path intelligent selection method according to this application;
图7为图2中步骤S80的细化流程示意图;FIG. 7 is a detailed flowchart of step S80 in FIG. 2;
图8为本申请路由路径智能选择方法第五实施例的流程示意图;FIG. 8 is a schematic flowchart of a fifth embodiment of a method for intelligently selecting a routing path according to this application;
图9为本申请路由路径智能选择装置一实施例的功能模块示意图。FIG. 9 is a schematic diagram of functional modules of an embodiment of a device for intelligent routing path selection according to the present application.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not used to limit the present application.
本申请提供一种路由路径智能选择设备。This application provides an intelligent routing path selection device.
参照图1,图1为本申请实施例方案涉及的路由路径智能选择设备运行环境的结构示意图。Referring to FIG. 1, FIG. 1 is a schematic structural diagram of an operating environment of a routing path intelligent selection device involved in a solution of an embodiment of the application.
如图1所示,该路由路径智能选择设备包括:处理器1001,例如CPU,通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the intelligent routing path selection device includes: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
本领域技术人员可以理解,图1中示出的路由路径智能选择设备的硬件结构并不构成对路由路径智能选择设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the hardware structure of the routing path intelligent selection device shown in FIG. 1 does not constitute a limitation on the routing path intelligent selection device, and may include more or less components than shown in the figure, or a combination of certain components. Components, or different component arrangements.
如图1所示,作为一种计算机可读存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及路由路径智能选择程序。其中,操作系统是管理和控制路 由路径智能选择设备和软件资源的程序,支持路由路径智能选择程序以及其它软件和/或程序的运行。As shown in FIG. 1, the memory 1005, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a routing path intelligent selection program. Among them, the operating system is a program that manages and controls the routing path intelligent selection equipment and software resources, and supports the routing path intelligent selection program and the operation of other software and/or programs.
在图1所示的路由路径智能选择设备的硬件结构中,网络接口1004主要用于接入网络;用户接口1003主要用于侦测确认指令和编辑指令等。而处理器1001可以用于调用存储器1005中存储的路由路径智能选择程序,并执行以下路由路径智能选择方法的各实施例的操作。In the hardware structure of the routing path intelligent selection device shown in FIG. 1, the network interface 1004 is mainly used to access the network; the user interface 1003 is mainly used to detect and confirm instructions and edit instructions. The processor 1001 may be used to call the routing path intelligent selection program stored in the memory 1005, and execute the operations of the following embodiments of the routing path intelligent selection method.
基于上述路由路径智能选择设备硬件结构,提出本申请路由路径智能选择方法的各个实施例。Based on the foregoing hardware structure of the routing path intelligent selection device, various embodiments of the routing path intelligent selection method of the present application are proposed.
参照图2,图2为本申请路由路径智能选择方法第一实施例的流程示意图。本实施例中,所述路由路径智能选择方法包括以下步骤:Referring to Fig. 2, Fig. 2 is a schematic flowchart of a first embodiment of a method for intelligently selecting a routing path according to the present application. In this embodiment, the intelligent routing path selection method includes the following steps:
步骤S10,实时获取训练样本集,所述训练样本集包括网络状态信息数据;Step S10, obtaining a training sample set in real time, the training sample set including network state information data;
本实施例中,可通过预置API接口实时获取网络状态信息数据,训练样本集内训练样本数据的总数目为:
Figure PCTCN2020087632-appb-000002
网络状态信息数据至少包括:设备状态信息数据和流量状态信息数据,通过获取到的设备状态信息数据可以判断设备所处的运行状态,通过获取到的流量状态信息数据可以实时监控数据流量是否超过当前路由路径的负载范围。
In this embodiment, the network status information data can be obtained in real time through the preset API interface, and the total number of training sample data in the training sample set is:
Figure PCTCN2020087632-appb-000002
The network status information data includes at least: device status information data and flow status information data. The operating status of the device can be judged by the acquired device status information data, and the acquired flow status information data can be used to monitor whether the data flow exceeds the current The load range of the routing path.
步骤S20,通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集:In step S20, the training sample data in the training sample set is sequentially calculated by the following formula to obtain a network state information data feature set:
Figure PCTCN2020087632-appb-000003
Figure PCTCN2020087632-appb-000003
其中,所述网络状态信息数据特征集中具有两种不同类型的训练样本数据,W TU 0和W TU 1表示两种不同类型的训练样本数据的中心在直线上的投影,W T0W和W T1W表示两类训练样本数据投影后的协方差; Wherein, the network state information data feature set has two different types of training sample data, W T U 0 and W T U 1 represent the projection of the centers of the two different types of training sample data on a straight line, W T0 W and W T1 W represent the covariance of the two types of training sample data after projection;
本实施例中,通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集:In this embodiment, the training sample data in the training sample set is sequentially calculated by the following formula to obtain the network state information data feature set:
Figure PCTCN2020087632-appb-000004
Figure PCTCN2020087632-appb-000004
可以将训练样本集中的多维的训练样本数据通过该公式投影后,均投影在了一维直线上,即对多维数据实现了降维,另外,将训练样本集中海量的训练样本数据划分成了两类数据,因此,本实施例既可通过降维实现加快后续计算速度的目的,又可将数据分为两大类,为数据细分与数据挖掘做准备。After the multi-dimensional training sample data in the training sample set is projected by this formula, they are all projected on a one-dimensional straight line, that is, the dimensionality reduction of the multi-dimensional data is realized. In addition, the massive training sample data in the training sample set is divided into two Therefore, this embodiment can not only achieve the purpose of accelerating the subsequent calculation speed through dimensionality reduction, but also divide the data into two categories to prepare for data segmentation and data mining.
将数据投影到直线w上,则两类样本的中心在直线上的投影分别为W TU 0和W TU 1,若将所有的样本点都都投影到直线上,则两类样本投影的协方差分别为W T0W和W T1W。 Project the data onto a straight line w, the projections of the centers of the two types of samples on the straight line are W T U 0 and W T U 1 , respectively. If all the sample points are projected onto the straight line, the two types of sample projections The covariances are W T0 W and W T1 W, respectively.
其中,u指的是所有样本的均值向量
Figure PCTCN2020087632-appb-000005
根据下述公式求不同类别的训练样本投影后的协方差,其中X指的是当前样本的向量:
Among them, u refers to the mean vector of all samples
Figure PCTCN2020087632-appb-000005
Find the projected covariance of different types of training samples according to the following formula, where X refers to the vector of the current sample:
Figure PCTCN2020087632-appb-000006
Figure PCTCN2020087632-appb-000006
把样本划分到距离较近的类中,由上述公式可知,如果投影前的协方差矩阵为∑则投影后的为W T∑W。 Divide the samples into closer classes. From the above formula, we can see that if the covariance matrix before projection is ∑, then the one after projection is W T ∑W.
现在的目标是:同类样本的投影点尽可能接近,异类样本的投影点尽可能远离,那么需要使同类样本投影点的方差尽可能小,即W T0W+W T1W尽可能小,需要使异类样本的中心投影尽可能远,即
Figure PCTCN2020087632-appb-000007
尽可能大,于是得到最大化的目标J:
Figure PCTCN2020087632-appb-000008
通过最大化的目标J可将不同的数据划分到不同的类别中。
The goal now is: the projection points of similar samples are as close as possible, and the projection points of heterogeneous samples are as far away as possible, so the variance of the projection points of similar samples should be as small as possible, that is, W T0 W+W T1 W Small, it is necessary to make the center projection of heterogeneous samples as far as possible, namely
Figure PCTCN2020087632-appb-000007
As large as possible, then get the maximum goal J:
Figure PCTCN2020087632-appb-000008
Different data can be divided into different categories by maximizing the goal J.
步骤S30,使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型,其中,所述第一数据挖掘模型包括多个待选初始数据挖掘模型;Step S30: Use the network state information data feature set to train a first data mining model to obtain a second data mining model, where the first data mining model includes multiple initial data mining models to be selected;
本实施例中,第一数据挖掘模型包括多个初始数据挖掘模型,第一数据挖掘模型指的是模型集合。若使第一数据挖掘模型具有有效的数据挖掘能力,还需要通过网络状态信息数据特征集对第一数据挖掘模型进行训练,直至第一数据挖掘模型可以根据网络状态信息数据特征集,输出符合当前场景的数据,若输出符合当前场景的数据则说明已经得到训练完成的第一数据挖掘模型,为了与第一数据挖掘模型进行区分,因此将训练完成的第一数据挖掘模型命名为第二数据挖掘模型。In this embodiment, the first data mining model includes multiple initial data mining models, and the first data mining model refers to a model set. If the first data mining model has effective data mining capabilities, it is also necessary to train the first data mining model through the network state information data feature set until the first data mining model can output according to the current network state information data feature set. The data of the scene, if the output data is in line with the current scene, it means that the first data mining model has been trained. In order to distinguish it from the first data mining model, the trained first data mining model is named second data mining model.
步骤S40,按照预置交易类型和路由路径,通过所述第二数据挖掘模型对当前网络状态信息数据进行挖掘,得到交易类型数据与路由路径数据;Step S40: According to the preset transaction type and routing path, mining the current network state information data through the second data mining model to obtain transaction type data and routing path data;
本实施例中,预置数据挖掘模型包括基于网络状态信息数据特征集以及聚类算法构建的数据挖掘模型。为了实现从大量网络状态信息数据中挖掘出符合当前应用场景的相应类型的数据,因此需要通过预先构建好的数据挖掘模型进行挖掘,数据挖掘模型包括以下步骤,先从大量网络状态信息数据提取特征数据,再对提取到的特征数据进行分类,得到交易类型数据与路由路径数据。In this embodiment, the preset data mining model includes a data mining model constructed based on a network state information data feature set and a clustering algorithm. In order to mine the corresponding type of data that meets the current application scenario from a large amount of network state information data, it is necessary to mine through a pre-built data mining model. The data mining model includes the following steps. First, extract features from a large amount of network state information data. Data, and then classify the extracted feature data to obtain transaction type data and routing path data.
步骤S50,采用哈希算法建立所述交易类型数据与路由路径数据之间的对应关系,所述对应关系为一对多的对应关系;Step S50, using a hash algorithm to establish a correspondence between the transaction type data and the routing path data, and the correspondence is a one-to-many correspondence;
本实施例中,通过哈希算法计算,得到每一个交易类型数据哈希值与所述路由路径数据的哈希值,建立每一个交易类型数据哈希值与所述路由路径数据的哈希值之间的对应关系,使得每个交易类型数据都可以与多个路由路径数据相互对应。In this embodiment, the hash value of each transaction type data and the hash value of the routing path data are obtained through the calculation of the hash algorithm, and the hash value of each transaction type data and the hash value of the routing path data are established. The corresponding relationship between each transaction type data can correspond to multiple routing path data.
步骤S60,判断当前是否获取到交易类型数据;Step S60, it is judged whether the transaction type data is currently acquired;
本实施例中,可以通过预置监控设备实时检测业务报文中是否增加了新的交易类型数据,新的交易类型数据可以是现有交易类型数据,也可以是新增业务的交易类型数据。In this embodiment, a preset monitoring device can be used to detect whether new transaction type data is added to the service message in real time. The new transaction type data can be existing transaction type data or transaction type data of a new service.
步骤S70,若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集,若当前未获取到交易类型数据,则返回步骤步骤S60,其中,所述路由路径集至少包括两个路由路径。Step S70: If the transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through the neural network model to obtain the routing path set. If the transaction type is not currently acquired Data, return to step S60, where the routing path set includes at least two routing paths.
本实施例中,使用路由路径训练样本数据训练由神经网络算法以及路由路径训练样本数据构建的神经网络模型,并对神经网络模型所输出的各个预测结果进行归一化处理,得到路由路径集预测结果,将预测结果与预置预测结果进行比较,判断是否满足预设阈值,若满足,则说明该神经网络模型已经具备满足预设准确率的预测的能力。并通过神经网络 模型输出路由路径集。In this embodiment, the routing path training sample data is used to train the neural network model constructed by the neural network algorithm and the routing path training sample data, and each prediction result output by the neural network model is normalized to obtain the routing path set prediction As a result, the prediction result is compared with the preset prediction result to determine whether the preset threshold is satisfied. If it is satisfied, it means that the neural network model has the ability to predict the preset accuracy rate. And output routing path set through neural network model.
本实施例中,若是当前获取到交易类型数据,则根据交易类型数据与路由路径数据之间的对应关系得到路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集,例如,目前的数据分别为对公交易类数据和对私交易类数据,又由于交易类型数据与路由路径数据之间存在一对多对应关系,因此每个交易类型的数据均会得到多个路由路径数据,通过神经网络模型对所述路由路径数据进行预测,得到用于转发对公交易类数据的路由路径集以及用于转发对私交易类数据的路由路径集。In this embodiment, if the transaction type data is currently acquired, the routing path data is obtained according to the correspondence between the transaction type data and the routing path data, and the routing path data is predicted through the neural network model to obtain the routing path set For example, the current data are public transaction data and private transaction data, and because there is a one-to-many relationship between transaction type data and routing path data, data for each transaction type will be multiple For routing path data, the routing path data is predicted through a neural network model to obtain a routing path set for forwarding public transaction data and a routing path set for forwarding private transaction data.
步骤S80,判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径;Step S80, judging whether there is a routing path where transaction type data congestion occurs in the routing path set;
本实施例中,可以通过带内网络检测技术检测路由路径集中的第一路由路径节点处是否发生交易类型数据拥塞,之所以判断路由路径集中是否存在发生交易类型数据拥塞的路由路径,是为了防止由于发生数据拥塞,而导致数据丢失。In this embodiment, the in-band network detection technology can be used to detect whether transaction type data congestion occurs at the first routing path node in the routing path set. The reason for judging whether there is a routing path where transaction type data congestion occurs in the routing path set is to prevent Data is lost due to data congestion.
步骤S90,若所述路由路径集中存在发生交易类型数据拥塞的路由路径,则通过所述路由路径集中的其他未发生交易类型数据拥塞的路由路径转发所述交易类型数据,若所述路由路径集中不存在发生交易类型数据拥塞的路由路径,则返回步骤S80,其中,所述转发遵循预置路由路径调整策略。Step S90: If there is a routing path that has transaction type data congestion in the routing path set, the transaction type data is forwarded through other routing paths in the routing path set that do not have transaction type data congestion. If there is no routing path where transaction type data congestion occurs, return to step S80, where the forwarding follows the preset routing path adjustment strategy.
本实施例中,由于当前路由路径发生数据交易类型数据拥塞时,其他数据则无法继续通过当前路由路径,为了实现对数据的有效转发,因此需要通过路由路径集中其他未发生交易类型数据拥塞的路由路径转发交易类型数据。路径调整策略指的是在路由路径集中存在发生交易类型数据拥塞的路由路径,则通过路由路径集中的其他未发生交易类型数据拥塞的路由路径转发交易类型数据时,其他未发生交易类型数据拥塞的路由路径之间是存在不同优先级别的,可以优先采用优先级别高的其他未发生交易类型数据拥塞的路由路径转发交易类型数据。In this embodiment, when data transaction type data congestion occurs in the current routing path, other data cannot continue to pass through the current routing path. In order to achieve effective data forwarding, it is necessary to use the routing path to centralize other routes that have not occurred transaction type data congestion. The path forwards transaction type data. The path adjustment strategy refers to the routing path that has transaction type data congestion in the routing path set, and when the transaction type data is forwarded through other routing paths in the routing path set without transaction type data congestion, other transaction type data congestion does not occur. There are different priority levels between routing paths, and other routing paths with higher priority levels that are not subject to transaction type data congestion can be used to forward transaction type data.
本方案通过数据挖掘模型对网络状态信息数据进行挖掘,得到挖掘数据,通过哈希算法建立所述交易类型数据与路由路径数据之间一对多对应关系,则通过神经网络模型根据路由路径数据预测并得到路由路径集,根据路由路径集中各个路由路径转发交易类型数据的状态,选择不同路由路径。实现了根据不同交易类型的数据智能化地选择路由路径。This solution uses the data mining model to mine the network status information data to obtain the mining data. The one-to-many correspondence between the transaction type data and the routing path data is established through the hash algorithm, and the neural network model is used to predict the routing path data And get the routing path set, and select different routing paths according to the status of each routing path forwarding transaction type data in the routing path set. Realize the intelligent routing path selection based on the data of different transaction types.
参照图3,图3为图2中步骤S30的细化流程示意图。本实施例中,上述步骤S30具体包括以下步骤:Referring to FIG. 3, FIG. 3 is a detailed flowchart of step S30 in FIG. 2. In this embodiment, the above step S30 specifically includes the following steps:
步骤S301,通过袋装法从所述网络状态信息数据特征集的N个网络状态信息数据特征中抽取n个训练集,所述N大于或等于n;Step S301, extracting n training sets from the N network state information data features of the network state information data feature set by the bagging method, where the N is greater than or equal to n;
本实施例中,从网络状态信息数据特征集N个数据中抽取n个训练集。每轮从网络状态信息数据特征集中使用袋装法抽取n个训练样本,在训练集中,有些样本可能被多次抽取到,而有些样本可能一次都没有被抽中。共进行k轮抽取,得到k个训练集,其中,k个训练集之间是相互独立的。每次使用一个训练集得到一个完成训练的初始数据挖掘模型,k个训练集共得到k个完成训练的初始数据挖掘模型。将上步得到的k个完成训练的初始数据挖掘模型,采用投票的方式得到分类结果,根据预置分类结果判断该分类结果是否满足预设条件,若是满足,则得到训练完成的数据挖掘模型,其中训练完成的数据挖掘模型中具有k个完成训练的初始数据挖掘模型,其中每个完成训练的初始数据挖掘模型输出的分类结果可能不尽相同,但是各个初始数据挖掘模型所占的权重是相同的。In this embodiment, n training sets are extracted from the N data of the network state information data feature set. Each round uses the bagging method to extract n training samples from the network state information data feature set. In the training set, some samples may be drawn multiple times, while some samples may not be drawn at once. A total of k rounds of extraction are performed, and k training sets are obtained, among which the k training sets are independent of each other. Each time one training set is used to obtain an initial data mining model that has been trained, and k training sets are used to obtain k initial data mining models that have been trained. The k initial data mining models that have been trained in the previous step are used to obtain the classification results by voting. According to the preset classification results, it is judged whether the classification results meet the preset conditions. If they are satisfied, the trained data mining model is obtained. Among the data mining models that have been trained, there are k initial data mining models that have completed training. The classification results of each initial data mining model that have completed training may be different, but the weight of each initial data mining model is the same of.
步骤S302,使用所述n个训练集训练所述多个预置待选初始数据挖掘模型,得到多个初始分类结果;Step S302, using the n training sets to train the multiple preset to-be-selected initial data mining models to obtain multiple initial classification results;
本实施例中,使用所述n个训练集对多个预置待选初始数据挖掘模型进行训练,得到多个初始分类结果。In this embodiment, the n training sets are used to train multiple preset initial data mining models to be selected, and multiple initial classification results are obtained.
步骤S303,根据所述多个初始分类结果,通过预置投票方式从所述多个预置待选初始数据挖掘模型中筛选出多个初始数据挖掘模型,得到第二数据挖掘模型。Step S303: According to the multiple initial classification results, multiple initial data mining models are selected from the multiple preset initial data mining models to be selected by a preset voting method to obtain a second data mining model.
本实施例中,根据所述多个初始分类结果,通过预置投票方式从所述多个预置待选初始数据挖掘模型中选举多个初始数据挖掘模型,得到训练完成的数据挖掘模型。投票方式表示的是,将初始分类结果与预先分类好的结果进行比较,若当前待选初始数据挖掘模型输出的初始分类结果与预先分类好的结果的差值满足预设阈值,则选出该待选初始数据挖掘模型。In this embodiment, according to the plurality of initial classification results, a plurality of initial data mining models are selected from the plurality of preset candidate initial data mining models through a preset voting method to obtain a trained data mining model. The voting method means that the initial classification result is compared with the pre-classified result. If the difference between the initial classification result output by the current candidate initial data mining model and the pre-classified result meets the preset threshold, the selected The initial data mining model to be selected.
参照图4,图4为本申请路由路径智能选择方法第二实施例的流程示意图。本实施例中,在所述图2中的步骤S60之前,还包括以下步骤:Referring to FIG. 4, FIG. 4 is a schematic flowchart of a second embodiment of a method for intelligent routing path selection according to this application. In this embodiment, before step S60 in FIG. 2, the following steps are further included:
步骤S100,通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别,其中,所述第一业务报文数据包括网络设备状态信息数据和流量状态信息数据;In step S100, the first service message data is monitored in real time through the in-band network telemetry technology to obtain the monitoring result, and based on the monitoring result, it is judged whether the first service message data reaches a preset important level, wherein the first service The message data includes network device status information data and traffic status information data;
本实施例中,在通过带内网络遥测技术实时监测第一业务报文数据之前,对第一业务报文数据中的数据设置重要性级别,例如,对于一些重要事件的数据需要设置成重要级别,对于非重要的的数据设置成非重要级别,级别的划分是按照当前业务的重要程度进行划分的,当通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果后,则判断当前监测到的数据是否达到重要级别,如果是,则对第一业务报文数据进行镜像处理。In this embodiment, before real-time monitoring of the first service message data through the in-band network telemetry technology, the importance level is set for the data in the first service message data, for example, the data of some important events needs to be set to the important level , For non-important data set to non-important level, the classification of the level is divided according to the importance of the current business. When the first business message data is monitored in real time through in-band network telemetry technology, and the monitoring result is obtained, it is judged Whether the currently monitored data reaches the important level, and if so, perform mirroring processing on the first service message data.
步骤S110,若所述第一业务报文数据达到预置重要级别,则通过带内网络遥测技术根据所述第一业务报文数据镜像出第二业务报文数据,若所述第一业务报文数据未达到预置重要级别,则返回步骤S100。Step S110: If the first service message data reaches the preset importance level, the second service message data is mirrored according to the first service message data through the in-band network telemetry technology. If the first service message data is If the document data does not reach the preset importance level, return to step S100.
本实施例中,通过带内网络遥测技术实时监测所述第一业务报文数据,并根据第一业务报文数据镜像出第二业务报文数据,例如,用于转发重要级别数据的路由路径出现故障,那么就有可能出现数据丢失的现象,为了在这种情况出现时避免重要级别数据丢失,在检测到第一业务报文数据时,则对第一业务报文数据进行镜像处理,得到出第二业务报文数据。In this embodiment, the first service message data is monitored in real time through the in-band network telemetry technology, and the second service message data is mirrored according to the first service message data, for example, a routing path for forwarding important level data If a failure occurs, data loss may occur. In order to avoid the loss of important level data when this situation occurs, when the first service message data is detected, the first service message data is mirrored to obtain Output the second service message data.
参照图5,图5为本申请路由路径智能选择方法第三实施例的流程示意图。本实施例中,在所述图2中的步骤S70之前,还包括以下步骤:Referring to FIG. 5, FIG. 5 is a schematic flowchart of a third embodiment of a routing path intelligent selection method according to this application. In this embodiment, before step S70 in FIG. 2, the following steps are further included:
步骤S120,判断所述路由路径集中的各个路由路径是否大于预置最小路由路径;Step S120, judging whether each routing path in the routing path set is greater than a preset minimum routing path;
本实施例中,由于是否为最小路由路径决定了通过所述路由路径获取数据的速度,若每次数据均通过最大路由路径进行转发,则有可能出现资源浪费的情况,所以需要判断所述路由路径是否大于预置最小路由路径。In this embodiment, since whether it is the smallest routing path determines the speed of obtaining data through the routing path, if data is forwarded through the largest routing path each time, there may be a waste of resources, so it is necessary to determine the routing Whether the path is greater than the preset minimum routing path.
步骤S130,若所述路由路径集中的各个路由路径大于预置最小路由路径,则采用反向传播算法,调整所述神经网络模型的参数值,直至所述路由路径集中的各个路由路径小于或等于预置最小路由路径,若否,则不处理。Step S130: If each routing path in the routing path set is greater than a preset minimum routing path, adopt a back propagation algorithm to adjust the parameter value of the neural network model until each routing path in the routing path set is less than or equal to The minimum routing path is preset, if not, it will not be processed.
本实施例中,若实际路由路径大于预置最小路由路径,则说明在步骤S70中得到的路由路径是不符合要求的,因此需要调整神经网络模型的参数值,例如,神经网络模型的参数值分别为w 1和w 2,w 1与w 2的相加的和为1,并且w 1大于w 2,若此时输出的路由路径大于预置路由路径的,则可以通过调整w 1和w 2,的数值大小,直至当前路由路径小于或等于预置最小路由路径。 In this embodiment, if the actual routing path is greater than the preset minimum routing path, it means that the routing path obtained in step S70 does not meet the requirements, so the parameter values of the neural network model need to be adjusted, for example, the parameter values of the neural network model They are w 1 and w 2 respectively . The sum of w 1 and w 2 is 1, and w 1 is greater than w 2. If the output routing path is larger than the preset routing path, you can adjust w 1 and w 2 , until the current routing path is less than or equal to the preset minimum routing path.
参照图6,图6为本申请路由路径智能选择方法第四实施例的流程示意图。本实施例中,在所述图2中的步骤S80之前,还包括以下步骤:Referring to FIG. 6, FIG. 6 is a schematic flowchart of a fourth embodiment of a routing path intelligent selection method according to this application. In this embodiment, before step S80 in FIG. 2, the following steps are further included:
步骤S140,判断所述路由路径集中当前路由路径转发的交易类型数据数量是否达到所述当前路由路径的预置负载值,其中,所述预置负载值小于所述当前路由路径的最大负载值;Step S140, judging whether the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, wherein the preset load value is less than the maximum load value of the current routing path;
本实施例中,若预置负载值等于或者大于当前路由路径的最大负载值,那么当前路由路径就会出现数据拥塞的现象,所以在本实施例中,预置负载值小于当前路由路径的最大负载值。当交易类型数据数量达到当前路由路径的预置负载值时,则使用其他路由路径。 例如,路由路径的最大负载值为200,预置负载值均为100,当交易类型数据数量值为1至100时,使用第一路由路径,当交易类型数据数量值大于100时,1至100的交易类型数据选使用第一路由路径,大于100且小于200是的交易类型数据使用第二路由路径,第二路径指的是路径集中除第一路由路径之外的路由路径。In this embodiment, if the preset load value is equal to or greater than the maximum load value of the current routing path, data congestion will occur in the current routing path. Therefore, in this embodiment, the preset load value is less than the maximum load value of the current routing path. Load value. When the number of transaction type data reaches the preset load value of the current routing path, other routing paths are used. For example, the maximum load value of the routing path is 200, and the preset load value is 100. When the transaction type data quantity value is 1 to 100, the first routing path is used. When the transaction type data quantity value is greater than 100, 1 to 100 The transaction type data selects the first routing path, and the transaction type data greater than 100 and less than 200 uses the second routing path. The second path refers to the routing path in the path set except the first routing path.
步骤S150,若所述路由路径集中当前路由路径转发的交易类型数据数量达到所述当前路由路径的预置负载值,则判断所述路由路径集中是否存在未转发交易类型数据的路由路径,若所述路由路径集中当前路由路径转发的交易类型数据数量未达到所述当前路由路径的预置负载值,则返回步骤S140;Step S150: If the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, it is determined whether there is a routing path that does not forward transaction type data in the routing path set. If the number of transaction type data forwarded by the current routing path in the routing path set does not reach the preset load value of the current routing path, return to step S140;
本实施例中,若路由路径集中当前路由路径转发的交易类型数据数量达到当前路由路径的预置负载值,则判断所述路由路径集中是否存在未转发交易类型数据的路由路径,例如,路由路径集中有三个路由路径,分别为甲乙丙,其中甲乙丙预置负载值均为50,甲乙丙最大负载值均为100,若此时数据量为150,后续还有数据,则经过判断可知路由路径集中不存在未转发交易类型数据的路由路径,若此时数据量为90,后续还有数据,则存在未转发交易类型数据的路由路径,此时需要继续判断路由路径集中当前路由路径转发的交易类型数据数量是否达到当前路由路径的预置负载值。In this embodiment, if the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, it is determined whether there is a routing path that does not forward transaction type data in the routing path set, for example, a routing path There are three routing paths in the set, namely, A, B, and C. The preset load values for A, B, and C are all 50, and the maximum load value of A, B, and C is 100. If the data volume is 150 at this time, and there are data in the follow-up, the routing path can be known after judgment. There is no routing path that does not forward transaction type data in the centralized. If the data volume is 90 at this time, and there are subsequent data, there is a routing path that does not forward transaction type data. At this time, it is necessary to continue to determine the transaction forwarded by the current routing path in the routing path set Whether the number of type data reaches the preset load value of the current routing path.
步骤S160,若所述路由路径集中存在未转发交易类型数据的路由路径,则通过所述未转发交易类型数据的路由路径转发所述交易类型数据,若所述路由路径集中不存在未转发交易类型数据的路由路径,则通过所述达到预置负载值的路由路径转发所述交易类型数据。Step S160: If there is a routing path that does not forward transaction type data in the routing path set, forward the transaction type data through the routing path that does not forward transaction type data, if there is no transaction type that is not forwarded in the routing path set For the data routing path, the transaction type data is forwarded through the routing path that reaches the preset load value.
本实施例中,当交易类型数据数量大于当前路由路径的最大负载值时,则通过路由路径集中其他路由路径转发超出当前路由路径的预置负载值的交易类型数据。优先地,选择最短路由路径。In this embodiment, when the number of transaction type data is greater than the maximum load value of the current routing path, the transaction type data that exceeds the preset load value of the current routing path is forwarded through other routing paths in the routing path set. Preferentially, the shortest route is selected.
参照图7,图7为图2中步骤S80的细化流程示意图。本实施例中,上述步骤S80具体包括以下步骤:Referring to FIG. 7, FIG. 7 is a detailed flowchart of step S80 in FIG. 2. In this embodiment, the above step S80 specifically includes the following steps:
步骤801,向所述路由路径集中的各个路由路径发送拥塞检测请求;Step 801: Send a congestion detection request to each routing path in the routing path set;
本实施例中,向所述第一路由路径节点发送拥塞检测请求,通过预置信道负载监听信道中第一路由路径节点处的信道负载是否高于预设阈值,若高于预设阈值,则说明第一路由路径节点处出现数据拥塞现象,例如,在实际场景中,若第一路由路径节点处出现数据拥塞现象,则发出警报。In this embodiment, a congestion detection request is sent to the first routing path node, and the channel load at the first routing path node in the channel is monitored through the preset channel load whether the channel load at the first routing path node is higher than a preset threshold, and if it is higher than the preset threshold, then It shows that data congestion occurs at the first routing path node. For example, in an actual scenario, if data congestion occurs at the first routing path node, an alarm is issued.
步骤S802,根据从所述各个路由路径接收到的拥塞响应消息,判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径。Step S802: According to the congestion response messages received from the respective routing paths, it is determined whether there is a routing path where transaction type data congestion occurs in the routing path set.
本实施例中,可通过带内网络遥测技术检测第一路由路径节点处是否发生拥塞,若发生,则发出拥塞响应消息。向所述第一路由路径节点发送拥塞检测请求,其中,所述拥塞检测请求用于请求所述第一路由路径节点对所述优先级路由路径进行拥塞检测,根据从所述第一路由路径节点接收到的拥塞响应消息,判断所述优先级路由路径是否发生数据拥塞。In this embodiment, the in-band network telemetry technology can be used to detect whether congestion occurs at the first routing path node, and if it occurs, a congestion response message is sent. A congestion detection request is sent to the first routing path node, where the congestion detection request is used to request the first routing path node to perform congestion detection on the priority routing path, according to the congestion detection request from the first routing path node The received congestion response message is used to determine whether data congestion occurs in the priority routing path.
参照图8,图8为本申请路由路径智能选择方法第五实施例的流程示意图。本实施例中,在所述图2中的步骤S80之后,还包括以下步骤:Referring to FIG. 8, FIG. 8 is a schematic flowchart of a fifth embodiment of a method for intelligently selecting a routing path according to this application. In this embodiment, after step S80 in FIG. 2, the following steps are further included:
步骤S170,通过求和公式计算各个交易类型数据出现的频率;Step S170: Calculate the frequency of occurrence of data of each transaction type through a summation formula;
本实施例中,通过求和公式:
Figure PCTCN2020087632-appb-000009
计算各个交易类型数据出现的频率,其中,i表示i类型的交易类型数据,P表示i类型的交易类型数据出现的频率,N表示i类型的交易类型数据第N次出现。完成训练的神经网络模型可以根据前网络状态信息数据预测并得到交易类型数据,例如,对公交易类数据与对私交易类数据,若对公交易类数据出现的频率为20%,对私交易类数据出现的频率为80%。
In this embodiment, through the summation formula:
Figure PCTCN2020087632-appb-000009
Calculate the frequency of each transaction type data, where i represents the transaction type data of the i type, P represents the frequency of the transaction type data of the i type, and N represents the Nth occurrence of the transaction type data of the i type. The trained neural network model can predict and obtain transaction type data based on the previous network state information data, for example, public transaction data and private transaction data. If the frequency of public transaction data is 20%, private transaction data The frequency of occurrence of class data is 80%.
步骤S180,根据所述频率确定所述路由路径集中各个路由路径转发所述交易类型数据的优先级别;Step S180, determining the priority level of each routing path in the routing path set to forward the transaction type data according to the frequency;
本实施例中,若交易类型数据出现的频率高,根据对应关系可知,与该交易类型数据 对应的路由路径数据出现的频率也会相应地变高,神经网络模型根据出现频率不同的路由路径数据输出不同数量的路由路径,路由路径数量越大,则说明当前交易类型数据对此路由路径的需求量大,因此可根据路由路径数量的多少确定各个路由路径之间的优先级别。例如,对私交易类型数据出现的频率高,则将路径集中的路由路径优先提供给对私交易类型数据使用。In this embodiment, if the transaction type data appears frequently, it can be known from the corresponding relationship that the frequency of the routing path data corresponding to the transaction type data will also increase accordingly. The neural network model is based on routing path data with different occurrence frequencies. Output different numbers of routing paths. The larger the number of routing paths, the greater the demand for the current transaction type data for this routing path. Therefore, the priority level between each routing path can be determined according to the number of routing paths. For example, if the frequency of the private transaction type data is high, the routing paths in the path concentration are preferentially provided for the use of the private transaction type data.
步骤S190,根据所述优先级别确定预置路由路径调整策略。Step S190: Determine a preset routing path adjustment strategy according to the priority level.
本实施例中,由于预置路由路径调整策略是依据路由路径集中各个路由路径转发交易类型数据的优先级别确定的,因此,在存在使用路由路径转发数据的指令时,可根据预置路由路径调整策略去转发。In this embodiment, since the preset routing path adjustment strategy is determined according to the priority level of each routing path in the routing path set to forward transaction type data, when there is an instruction to use the routing path to forward data, it can be adjusted according to the preset routing path Strategy to forward.
参照图9,图9为本申请路由路径智能选择装置一实施例的功能模块示意图。本实施例中,所述路由路径智能选择装置包括:Referring to FIG. 9, FIG. 9 is a schematic diagram of functional modules of an embodiment of an apparatus for intelligent routing path selection according to the present application. In this embodiment, the intelligent routing path selection device includes:
获取模块10,用于实时获取训练样本集,所述训练样本集包括网络状态信息数据;The obtaining module 10 is configured to obtain a training sample set in real time, and the training sample set includes network state information data;
计算模块20,用于通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集:The calculation module 20 is configured to sequentially calculate the training sample data in the training sample set by the following formula to obtain a network state information data feature set:
Figure PCTCN2020087632-appb-000010
Figure PCTCN2020087632-appb-000010
训练模块30,用于使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型;The training module 30 is configured to use the network state information data feature set to train a first data mining model to obtain a second data mining model;
挖掘模块40,用于按照预置交易类型和路由路径,通过所述第二数据挖掘模型对当前网络状态信息数据进行挖掘,得到交易类型数据与路由路径数据;The mining module 40 is used to mine current network state information data through the second data mining model according to preset transaction types and routing paths to obtain transaction type data and routing path data;
建立模块50,用于采用哈希算法建立所述交易类型数据与路由路径数据之间的对应关系,所述对应关系为一对多的对应关系;The establishment module 50 is configured to establish a correspondence between the transaction type data and the routing path data by using a hash algorithm, and the correspondence is a one-to-many correspondence;
第一判断模块60,用于判断当前是否获取到交易类型数据;The first judgment module 60 is used to judge whether the transaction type data is currently acquired;
预测模块70,用于若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集;The prediction module 70 is configured to obtain the routing path data according to the corresponding relationship if the transaction type data is currently obtained, and predict the routing path data through a neural network model to obtain a routing path set;
第二判断模块80,用于若当前未获取到交易类型数据,则判断当前是否获取到交易类型;The second judgment module 80 is used for judging whether the transaction type is currently acquired if the transaction type data is not currently acquired;
第三判断模块90,用于判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径;The third judgment module 90 is configured to judge whether there is a routing path in which transaction type data congestion occurs in the routing path set;
转发模块100,用于若所述路由路径集中存在发生交易类型数据拥塞的路由路径,则通过所述路由路径集中的其他未发生交易类型数据拥塞的路由路径转发所述交易类型数据;The forwarding module 100 is configured to forward the transaction type data through other routing paths in the routing path set without transaction type data congestion if there is a routing path where transaction type data congestion occurs in the routing path set;
第四判断模块110,用于若所述路由路径集中不存在发生交易类型数据拥塞的路由路径,则判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径,其中,所述转发遵循预置路由路径调整策略。The fourth judging module 110 is configured to determine whether there is a routing path where transaction type data congestion occurs in the routing path set if there is no routing path where transaction type data congestion occurs in the routing path set, wherein the forwarding follows a predetermined Set routing path adjustment strategy.
本申请还提供一种计算机可读存储介质。The application also provides a computer-readable storage medium.
本实施例中,所述计算机可读存储介质上存储有路由路径智能选择程序,该计算机可读存储介质可以是非易失性,也可以是易失性,所述路由路径智能选择程序被处理器执行时实现如上述任一项实施例中所述的路由路径智能选择方法的步骤。In this embodiment, a routing path intelligent selection program is stored on the computer-readable storage medium. The computer-readable storage medium may be non-volatile or volatile. The routing path intelligent selection program is executed by the processor. The steps of the intelligent routing path selection method as described in any of the above embodiments are implemented during execution.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器或者网络 设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM), including Several instructions are used to make a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) execute the methods described in the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,这些均属于本申请的保护之内。The embodiments of the application are described above with reference to the accompanying drawings, but the application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can be made, any equivalent structure or equivalent process transformation made by using the content of the description and drawings of this application, or It is directly or indirectly used in other related technical fields, and these all fall within the protection of this application.

Claims (19)

  1. 一种路由路径智能选择方法,所述路由路径智能选择方法包括以下步骤:A method for intelligently selecting a routing path, the method for intelligently selecting a routing path includes the following steps:
    实时获取训练样本集,所述训练样本集包括网络状态信息数据;Acquiring a training sample set in real time, the training sample set including network state information data;
    通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集:The training sample data in the training sample set is sequentially calculated by the following formula to obtain the network state information data feature set:
    Figure PCTCN2020087632-appb-100001
    Figure PCTCN2020087632-appb-100001
    其中,所述网络状态信息数据特征集中具有两种不同类型的训练样本数据,W TU 0和W TU 1表示两种不同类型的训练样本数据的中心在直线上的投影,W T0W和W T1W表示两类训练样本数据投影后的协方差; Wherein, the network state information data feature set has two different types of training sample data, W T U 0 and W T U 1 represent the projection of the centers of the two different types of training sample data on a straight line, W T0 W and W T1 W represent the covariance of the two types of training sample data after projection;
    使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型,其中,所述第一数据挖掘模型包括多个待选初始数据挖掘模型;Training a first data mining model using the network state information data feature set to obtain a second data mining model, wherein the first data mining model includes a plurality of initial data mining models to be selected;
    按照预置交易类型和路由路径,通过所述第二数据挖掘模型对当前网络状态信息数据进行挖掘,得到交易类型数据与路由路径数据;According to the preset transaction type and routing path, mining the current network state information data through the second data mining model to obtain transaction type data and routing path data;
    采用哈希算法建立所述交易类型数据与路由路径数据之间的对应关系,所述对应关系为一对多的对应关系;A hash algorithm is used to establish the correspondence between the transaction type data and the routing path data, and the correspondence is a one-to-many correspondence;
    判断当前是否获取到交易类型数据;Determine whether the transaction type data is currently obtained;
    若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集,其中,所述路由路径集至少包括两个路由路径,若当前未获取到交易类型数据,则判断当前是否获取到交易类型;If transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through a neural network model to obtain a routing path set, wherein the routing path set includes at least two A routing path, if the transaction type data is not currently obtained, it is judged whether the transaction type is currently obtained;
    判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径;Judging whether there is a routing path where transaction type data congestion occurs in the routing path set;
    若是,则通过所述路由路径集中的其他未发生交易类型数据拥塞的路由路径转发所述交易类型数据,其中,所述转发遵循预置路由路径调整策略。If yes, forward the transaction type data through other routing paths in the routing path set that are not congested by transaction type data, where the forwarding follows a preset routing path adjustment strategy.
  2. 如权利要求1所述的路由路径智能选择方法,所述使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型包括以下步骤:The intelligent routing path selection method according to claim 1, wherein said training a first data mining model using said network state information data feature set to obtain a second data mining model comprises the following steps:
    通过袋装法从所述网络状态信息数据特征集的N个网络状态信息数据特征中抽取n个训练集,所述N大于或等于n;Extracting n training sets from the N network state information data features of the network state information data feature set by a bagging method, where the N is greater than or equal to n;
    使用所述n个训练集训练所述多个预置待选初始数据挖掘模型,得到多个初始分类结果;Using the n training sets to train the multiple preset to-be-selected initial data mining models to obtain multiple initial classification results;
    根据所述多个初始分类结果,通过预置投票方式从所述多个预置待选初始数据挖掘模型中筛选出多个初始数据挖掘模型,得到第二数据挖掘模型。According to the multiple initial classification results, multiple initial data mining models are selected from the multiple preset initial data mining models to be selected by a preset voting method to obtain a second data mining model.
  3. 如权利要求1或2所述的路由路径智能选择方法,在所述判断当前是否获取到交易类型数据的步骤之前,还包括以下步骤:The intelligent routing path selection method according to claim 1 or 2, before the step of judging whether the transaction type data is currently obtained, the method further comprises the following steps:
    通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别,其中,所述第一业务报文数据包括网络设备状态信息数据和流量状态信息数据;The first service message data is monitored in real time through in-band network telemetry technology to obtain a monitoring result, and based on the monitoring result, it is determined whether the first service message data reaches a preset important level, wherein the first service message data Including network equipment status information data and traffic status information data;
    若是,则通过带内网络遥测技术根据所述第一业务报文数据镜像出第二业务报文数据,若否,则通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别。If it is, the second service message data is mirrored according to the first service message data through the in-band network telemetry technology; if not, the first service message data is monitored in real time through the in-band network telemetry technology to obtain the monitoring result, Judging whether the data of the first service message reaches a preset importance level based on the monitoring result.
  4. 如权利要求1所述的路由路径智能选择方法,在所述若当前获取到交易类型数据, 则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集的步骤之前,还包括以下步骤:The intelligent routing path selection method of claim 1, wherein if the transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through a neural network model Before the step of obtaining the routing path set, it also includes the following steps:
    判断所述路由路径集中的各个路由路径是否大于预置最小路由路径;Judging whether each routing path in the routing path set is greater than a preset minimum routing path;
    若是,则采用反向传播算法,调整所述神经网络模型的参数值,直至所述路由路径集中的各个路由路径小于或等于预置最小路由路径。If it is, the back propagation algorithm is used to adjust the parameter value of the neural network model until each routing path in the routing path set is less than or equal to the preset minimum routing path.
  5. 如权利要求1所述的路由路径智能选择方法,在所述判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径的步骤之前,还包括以下步骤:The intelligent routing path selection method according to claim 1, before the step of judging whether there is a routing path with transaction type data congestion in the routing path set, the method further comprises the following steps:
    判断所述路由路径集中当前路由路径转发的交易类型数据数量是否达到所述当前路由路径的预置负载值,其中,所述预置负载值小于所述当前路由路径的最大负载值;Judging whether the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, where the preset load value is less than the maximum load value of the current routing path;
    若是,则判断所述路由路径集中是否存在未转发交易类型数据的路由路径,若否,则判断所述路由路径集中当前路由路径转发的交易类型数据数量是否达到所述当前路由路径的预置负载值。If yes, determine whether there is a routing path that does not forward transaction type data in the routing path set; if not, determine whether the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load of the current routing path value.
  6. 如权利要求1所述的路由路径智能选择方法,所述判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径包括以下步骤:The intelligent routing path selection method according to claim 1, wherein the judging whether there is a routing path that has transaction type data congestion in the routing path set comprises the following steps:
    向所述路由路径集中的各个路由路径发送拥塞检测请求;Sending a congestion detection request to each routing path in the routing path set;
    根据从所述各个路由路径接收到的拥塞响应消息,判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径。According to the congestion response messages received from the respective routing paths, it is determined whether there is a routing path where transaction type data congestion occurs in the routing path set.
  7. 如权利要求1所述的路由路径智能选择方法,在所述判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径的步骤之后,还包括以下步骤:The intelligent routing path selection method according to claim 1, after the step of judging whether there is a routing path with transaction type data congestion in the routing path set, the method further comprises the following steps:
    通过求和公式计算各个交易类型数据出现的频率;Calculate the frequency of each transaction type data through the summation formula;
    根据所述频率确定所述路由路径集中各个路由路径转发所述交易类型数据的优先级别;Determine the priority level of each routing path in the routing path set to forward the transaction type data according to the frequency;
    根据所述优先级别确定预置路由路径调整策略。The preset routing path adjustment strategy is determined according to the priority level.
  8. 一种路由路径智能选择装置,所述路由路径智能选择装置包括:An intelligent routing path selection device, the routing path intelligent selection device includes:
    获取模块,用于实时获取训练样本集,所述训练样本集包括网络状态信息数据;An obtaining module, configured to obtain a training sample set in real time, the training sample set including network state information data;
    计算模块,用于通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集;The calculation module is used to sequentially calculate the training sample data in the training sample set by the following formula to obtain the network state information data feature set;
    训练模块,用于使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型;A training module for training a first data mining model using the network state information data feature set to obtain a second data mining model;
    挖掘模块,用于按照预置交易类型和路由路径,通过所述第二数据挖掘模型对当前网络状态信息数据进行挖掘,得到交易类型数据与路由路径数据;The mining module is used to mine the current network state information data through the second data mining model according to preset transaction types and routing paths to obtain transaction type data and routing path data;
    建立模块,用于采用哈希算法建立所述交易类型数据与路由路径数据之间的对应关系,所述对应关系为一对多的对应关系;The establishment module is configured to establish a correspondence between the transaction type data and the routing path data by using a hash algorithm, and the correspondence is a one-to-many correspondence;
    第一判断模块,用于判断当前是否获取到交易类型数据;The first judgment module is used to judge whether the transaction type data is currently acquired;
    预测模块,用于若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集;The prediction module is configured to obtain the routing path data according to the corresponding relationship if the transaction type data is currently obtained, and predict the routing path data through a neural network model to obtain a routing path set;
    第二判断模块,用于若当前未获取到交易类型数据,则判断当前是否获取到交易类型;The second judgment module is used for judging whether the transaction type is currently acquired if the transaction type data is not currently acquired;
    第三判断模块,用于判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径;The third judgment module is used to judge whether there is a routing path where transaction type data congestion occurs in the routing path set;
    转发模块,用于若所述路由路径集中存在发生交易类型数据拥塞的路由路径,则通过所述路由路径集中的其他未发生交易类型数据拥塞的路由路径转发所述交易类型数据,其中,所述转发遵循预置路由路径调整策略;The forwarding module is configured to forward the transaction type data through other routing paths in the routing path set without transaction type data congestion if there is a routing path in the routing path set where transaction type data congestion occurs, wherein the Forwarding follows the preset routing path adjustment strategy;
    第四判断模块,用于若所述路由路径集中不存在发生交易类型数据拥塞的路由路径,则判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径。The fourth determining module is configured to determine whether there is a routing path where transaction type data congestion occurs in the routing path set if there is no routing path where transaction type data congestion occurs in the routing path set.
  9. 如权利要求8所述的路由路径智能选择装置,所述训练模块包括:The intelligent routing path selection device according to claim 8, wherein the training module comprises:
    抽取单元,用于通过袋装法从所述网络状态信息数据特征集的N个网络状态信息数据特征中抽取n个训练集,所述N大于或等于n;An extraction unit, configured to extract n training sets from the N network state information data features of the network state information data feature set by a bagging method, where the N is greater than or equal to n;
    训练单元,用于使用所述n个训练集训练所述多个预置待选初始数据挖掘模型,得到多个初始分类结果;A training unit, configured to use the n training sets to train the multiple preset to-be-selected initial data mining models to obtain multiple initial classification results;
    筛选单元,用于根据所述多个初始分类结果,通过预置投票方式从所述多个预置待选初始数据挖掘模型中筛选出多个初始数据挖掘模型,得到第二数据挖掘模型。The screening unit is configured to screen out a plurality of initial data mining models from the plurality of preset initial data mining models to be selected by a preset voting method according to the plurality of initial classification results to obtain a second data mining model.
  10. 如权利要求8或9所述的路由路径智能选择装置,所述路由路径智能选择装置还包括:The intelligent routing path selection device according to claim 8 or 9, wherein the routing path intelligent selection device further comprises:
    检测模块,用于通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别,其中,所述第一业务报文数据包括网络设备状态信息数据和流量状态信息数据;The detection module is used to monitor the data of the first service message in real time through the in-band network telemetry technology to obtain the monitoring result, and determine whether the data of the first service message reaches the preset important level based on the monitoring result. 1. Service message data includes network device status information data and traffic status information data;
    镜像模块,用于当所述第一业务报文数据达到预置重要级别时,通过带内网络遥测技术根据所述第一业务报文数据镜像出第二业务报文数据,当所述第一业务报文数据未达到预置重要级别时,通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别。11、一种路由路径智能选择设备,其特征在于,所述路由路径智能选择设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的路由路径智能选择程序,所述路由路径智能选择程序被所述处理器执行时实现路由路径智能选择方法:The mirroring module is used to mirror the second service packet data according to the first service packet data through the in-band network telemetry technology when the first service packet data reaches the preset importance level. When the service message data does not reach the preset important level, the first service message data is monitored in real time through the in-band network telemetry technology to obtain the monitoring result, and based on the monitoring result, it is determined whether the first service message data reaches the preset important level. level. 11. A routing path intelligent selection device, characterized in that the routing path intelligent selection device includes a memory, a processor, and a routing path intelligent selection program stored in the memory and running on the processor, so The routing path intelligent selection program is executed by the processor to realize the routing path intelligent selection method:
    其中,所述路由路径智能选择方法包括:Wherein, the intelligent routing path selection method includes:
    实时获取训练样本集,所述训练样本集包括网络状态信息数据;Acquiring a training sample set in real time, the training sample set including network state information data;
    通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集:The training sample data in the training sample set is sequentially calculated by the following formula to obtain the network state information data feature set:
    Figure PCTCN2020087632-appb-100002
    Figure PCTCN2020087632-appb-100002
    其中,所述网络状态信息数据特征集中具有两种不同类型的训练样本数据,W TU 0和W TU 1表示两种不同类型的训练样本数据的中心在直线上的投影,W T0W和W T1W表示两类训练样本数据投影后的协方差; Wherein, the network state information data feature set has two different types of training sample data, W T U 0 and W T U 1 represent the projection of the centers of the two different types of training sample data on a straight line, W T0 W and W T1 W represent the covariance of the two types of training sample data after projection;
    使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型,其中,所述第一数据挖掘模型包括多个待选初始数据挖掘模型;Training a first data mining model using the network state information data feature set to obtain a second data mining model, wherein the first data mining model includes a plurality of initial data mining models to be selected;
    按照预置交易类型和路由路径,通过所述第二数据挖掘模型对当前网络状态信息数据进行挖掘,得到交易类型数据与路由路径数据;According to the preset transaction type and routing path, mining the current network state information data through the second data mining model to obtain transaction type data and routing path data;
    采用哈希算法建立所述交易类型数据与路由路径数据之间的对应关系,所述对应关系为一对多的对应关系;A hash algorithm is used to establish the correspondence between the transaction type data and the routing path data, and the correspondence is a one-to-many correspondence;
    判断当前是否获取到交易类型数据;Determine whether the transaction type data is currently obtained;
    若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集,其中,所述路由路径集至少包括两个路由路径,若当前未获取到交易类型数据,则判断当前是否获取到交易类型;If transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through a neural network model to obtain a routing path set, wherein the routing path set includes at least two A routing path, if the transaction type data is not currently obtained, it is judged whether the transaction type is currently obtained;
    判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径;Judging whether there is a routing path where transaction type data congestion occurs in the routing path set;
    若是,则通过所述路由路径集中的其他未发生交易类型数据拥塞的路由路径转发所述交易类型数据,其中,所述转发遵循预置路由路径调整策略。If yes, forward the transaction type data through other routing paths in the routing path set that are not congested by transaction type data, where the forwarding follows a preset routing path adjustment strategy.
  11. 如权利要求11所述的路由路径智能选择设备,所述使用所述网络状态信息数 据特征集训练第一数据挖掘模型,得到第二数据挖掘模型的步骤包括:The intelligent routing path selection device according to claim 11, wherein the step of using the network state information data feature set to train a first data mining model to obtain a second data mining model comprises:
    通过袋装法从所述网络状态信息数据特征集的N个网络状态信息数据特征中抽取n个训练集,所述N大于或等于n;Extracting n training sets from the N network state information data features of the network state information data feature set by a bagging method, where the N is greater than or equal to n;
    使用所述n个训练集训练所述多个预置待选初始数据挖掘模型,得到多个初始分类结果;Using the n training sets to train the multiple preset to-be-selected initial data mining models to obtain multiple initial classification results;
    根据所述多个初始分类结果,通过预置投票方式从所述多个预置待选初始数据挖掘模型中筛选出多个初始数据挖掘模型,得到第二数据挖掘模型。According to the multiple initial classification results, multiple initial data mining models are selected from the multiple preset initial data mining models to be selected by a preset voting method to obtain a second data mining model.
  12. 如权利要求11或12所述的路由路径智能选择设备,在所述判断当前是否获取到交易类型数据的步骤之前,还包括:The intelligent routing path selection device according to claim 11 or 12, before the step of judging whether transaction type data is currently obtained, further comprising:
    通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别,其中,所述第一业务报文数据包括网络设备状态信息数据和流量状态信息数据;The first service message data is monitored in real time through in-band network telemetry technology to obtain a monitoring result, and based on the monitoring result, it is determined whether the first service message data reaches a preset important level, wherein the first service message data Including network equipment status information data and traffic status information data;
    若是,则通过带内网络遥测技术根据所述第一业务报文数据镜像出第二业务报文数据,若否,则通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别。If it is, the second service message data is mirrored according to the first service message data through the in-band network telemetry technology; if not, the first service message data is monitored in real time through the in-band network telemetry technology to obtain the monitoring result, Judging whether the data of the first service message reaches a preset importance level based on the monitoring result.
  13. 如权利要求11所述的路由路径智能选择设备,在所述若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集的步骤之前,还包括以下步骤:The intelligent routing path selection device of claim 11, wherein if the transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through a neural network model Before the step of obtaining the routing path set, it also includes the following steps:
    判断所述路由路径集中的各个路由路径是否大于预置最小路由路径;Judging whether each routing path in the routing path set is greater than a preset minimum routing path;
    若是,则采用反向传播算法,调整所述神经网络模型的参数值,直至所述路由路径集中的各个路由路径小于或等于预置最小路由路径。If it is, the back propagation algorithm is used to adjust the parameter value of the neural network model until each routing path in the routing path set is less than or equal to the preset minimum routing path.
  14. 如权利要求11所述的路由路径智能选择设备,在所述判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径的步骤之前,还包括以下步骤:11. The routing path intelligent selection device according to claim 11, before the step of determining whether there is a routing path where transaction type data congestion occurs in the routing path set, further comprising the following steps:
    判断所述路由路径集中当前路由路径转发的交易类型数据数量是否达到所述当前路由路径的预置负载值,其中,所述预置负载值小于所述当前路由路径的最大负载值;Judging whether the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, where the preset load value is less than the maximum load value of the current routing path;
    若是,则判断所述路由路径集中是否存在未转发交易类型数据的路由路径,若否,则判断所述路由路径集中当前路由路径转发的交易类型数据数量是否达到所述当前路由路径的预置负载值。If yes, determine whether there is a routing path that does not forward transaction type data in the routing path set; if not, determine whether the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load of the current routing path value.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有路由路径智能选择程序,所述路由路径智能选择程序被处理器执行时实现路由路径智能选择方法:A computer-readable storage medium, characterized in that a routing path intelligent selection program is stored on the computer-readable storage medium, and the routing path intelligent selection program is executed by a processor to realize a routing path intelligent selection method:
    其中,所述路由路径智能选择方法包括:Wherein, the intelligent routing path selection method includes:
    实时获取训练样本集,所述训练样本集包括网络状态信息数据;Acquiring a training sample set in real time, the training sample set including network state information data;
    通过以下公式依次对所述训练样本集中的训练样本数据进行计算,得到网络状态信息数据特征集:The training sample data in the training sample set is sequentially calculated by the following formula to obtain the network state information data feature set:
    Figure PCTCN2020087632-appb-100003
    Figure PCTCN2020087632-appb-100003
    其中,所述网络状态信息数据特征集中具有两种不同类型的训练样本数据,W TU 0和W TU 1表示两种不同类型的训练样本数据的中心在直线上的投影,W T0W和W T1W表示两类训练样本数据投影后的协方差; Wherein, the network state information data feature set has two different types of training sample data, W T U 0 and W T U 1 represent the projection of the centers of the two different types of training sample data on a straight line, W T0 W and W T1 W represent the covariance of the two types of training sample data after projection;
    使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型,其中,所述第一数据挖掘模型包括多个待选初始数据挖掘模型;Training a first data mining model using the network state information data feature set to obtain a second data mining model, wherein the first data mining model includes a plurality of initial data mining models to be selected;
    按照预置交易类型和路由路径,通过所述第二数据挖掘模型对当前网络状态信息数据进行挖掘,得到交易类型数据与路由路径数据;According to the preset transaction type and routing path, mining the current network state information data through the second data mining model to obtain transaction type data and routing path data;
    采用哈希算法建立所述交易类型数据与路由路径数据之间的对应关系,所述对应关系为一对多的对应关系;A hash algorithm is used to establish the correspondence between the transaction type data and the routing path data, and the correspondence is a one-to-many correspondence;
    判断当前是否获取到交易类型数据;Determine whether the transaction type data is currently obtained;
    若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集,其中,所述路由路径集至少包括两个路由路径,若当前未获取到交易类型数据,则判断当前是否获取到交易类型;If transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through a neural network model to obtain a routing path set, wherein the routing path set includes at least two A routing path, if the transaction type data is not currently obtained, it is judged whether the transaction type is currently obtained;
    判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径;Judging whether there is a routing path where transaction type data congestion occurs in the routing path set;
    若是,则通过所述路由路径集中的其他未发生交易类型数据拥塞的路由路径转发所述交易类型数据,其中,所述转发遵循预置路由路径调整策略。If yes, forward the transaction type data through other routing paths in the routing path set that are not congested by transaction type data, where the forwarding follows a preset routing path adjustment strategy.
  16. 如权利要求16所述的计算机可读存储介质,所述使用所述网络状态信息数据特征集训练第一数据挖掘模型,得到第二数据挖掘模型的步骤包括:15. The computer-readable storage medium of claim 16, wherein the step of using the network state information data feature set to train a first data mining model to obtain a second data mining model comprises:
    通过袋装法从所述网络状态信息数据特征集的N个网络状态信息数据特征中抽取n个训练集,所述N大于或等于n;Extracting n training sets from the N network state information data features of the network state information data feature set by a bagging method, where the N is greater than or equal to n;
    使用所述n个训练集训练所述多个预置待选初始数据挖掘模型,得到多个初始分类结果;Using the n training sets to train the multiple preset to-be-selected initial data mining models to obtain multiple initial classification results;
    根据所述多个初始分类结果,通过预置投票方式从所述多个预置待选初始数据挖掘模型中筛选出多个初始数据挖掘模型,得到第二数据挖掘模型。According to the multiple initial classification results, multiple initial data mining models are selected from the multiple preset initial data mining models to be selected by a preset voting method to obtain a second data mining model.
  17. 如权利要求16或17所述的计算机可读存储介质,在所述判断当前是否获取到交易类型数据的步骤之前,还包括:The computer-readable storage medium according to claim 16 or 17, before the step of determining whether transaction type data is currently obtained, further comprising:
    通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别,其中,所述第一业务报文数据包括网络设备状态信息数据和流量状态信息数据;The first service message data is monitored in real time through in-band network telemetry technology to obtain a monitoring result, and based on the monitoring result, it is determined whether the first service message data reaches a preset important level, wherein the first service message data Including network equipment status information data and traffic status information data;
    若是,则通过带内网络遥测技术根据所述第一业务报文数据镜像出第二业务报文数据,若否,则通过带内网络遥测技术实时监测第一业务报文数据,得到监测结果,基于所述监测结果判断所述第一业务报文数据是否达到预置重要级别。If yes, use the in-band network telemetry technology to mirror the second service message data according to the first service message data; if not, use the in-band network telemetry technology to monitor the first service message data in real time to obtain the monitoring result, Judging whether the data of the first service message reaches a preset importance level based on the monitoring result.
  18. 如权利要求16所述的计算机可读存储介质,在所述若当前获取到交易类型数据,则根据所述对应关系得到所述路由路径数据,并通过神经网络模型对所述路由路径数据进行预测,得到路由路径集的步骤之前,还包括:The computer-readable storage medium according to claim 16, wherein if the transaction type data is currently acquired, the routing path data is obtained according to the corresponding relationship, and the routing path data is predicted through a neural network model ,Before the step of obtaining the routing path set, it also includes:
    判断所述路由路径集中的各个路由路径是否大于预置最小路由路径;Judging whether each routing path in the routing path set is greater than a preset minimum routing path;
    若是,则采用反向传播算法,调整所述神经网络模型的参数值,直至所述路由路径集中的各个路由路径小于或等于预置最小路由路径。If it is, the back propagation algorithm is used to adjust the parameter value of the neural network model until each routing path in the routing path set is less than or equal to the preset minimum routing path.
  19. 如权利要求16所述的计算机可读存储介质,在所述判断所述路由路径集中是否存在发生交易类型数据拥塞的路由路径的步骤之前,还包括以下步骤:16. The computer-readable storage medium according to claim 16, before the step of judging whether there is a routing path with transaction type data congestion in the routing path set, further comprising the following steps:
    判断所述路由路径集中当前路由路径转发的交易类型数据数量是否达到所述当前路由路径的预置负载值,其中,所述预置负载值小于所述当前路由路径的最大负载值;Judging whether the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load value of the current routing path, where the preset load value is less than the maximum load value of the current routing path;
    若是,则判断所述路由路径集中是否存在未转发交易类型数据的路由路径,若否,则判断所述路由路径集中当前路由路径转发的交易类型数据数量是否达到所述当前路由路径的预置负载值。If yes, determine whether there is a routing path that does not forward transaction type data in the routing path set; if not, determine whether the number of transaction type data forwarded by the current routing path in the routing path set reaches the preset load of the current routing path value.
PCT/CN2020/087632 2019-10-12 2020-04-28 Routing path intelligent selection method and apparatus, device, and readable storage medium WO2021068489A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910967899.7A CN110855564B (en) 2019-10-12 2019-10-12 Intelligent routing path selection method, device and equipment and readable storage medium
CN201910967899.7 2019-10-12

Publications (1)

Publication Number Publication Date
WO2021068489A1 true WO2021068489A1 (en) 2021-04-15

Family

ID=69597398

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/087632 WO2021068489A1 (en) 2019-10-12 2020-04-28 Routing path intelligent selection method and apparatus, device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN110855564B (en)
WO (1) WO2021068489A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114336972A (en) * 2021-12-30 2022-04-12 广东电网有限责任公司 Overhauling determination method and device for telecontrol device
CN115118649A (en) * 2022-06-29 2022-09-27 国网山东省电力公司威海供电公司 Automatic planning method for relay protection route of power communication network
CN117499325A (en) * 2023-12-29 2024-02-02 湖南恒茂信息技术有限公司 Switch service message distribution method and system based on artificial intelligence

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855564B (en) * 2019-10-12 2022-09-30 深圳壹账通智能科技有限公司 Intelligent routing path selection method, device and equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160042384A1 (en) * 2014-08-07 2016-02-11 Inmobi Pte Ltd Linear Programming Approach for Querying a Trie Data Structure
CN108881415A (en) * 2018-05-31 2018-11-23 广州亿程交通信息集团有限公司 Distributed big data analysis system in real time
CN109450795A (en) * 2018-11-09 2019-03-08 浙江大学 A kind of service router and service network system of service-oriented network
CN110855564A (en) * 2019-10-12 2020-02-28 深圳壹账通智能科技有限公司 Intelligent routing path selection method, device, equipment and readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2357785A1 (en) * 2001-09-14 2003-03-14 Alcatel Canada Inc. Intelligent routing for effective utilization of network signaling resources
US7849032B1 (en) * 2002-05-24 2010-12-07 Oracle International Corporation Intelligent sampling for neural network data mining models
CN1996933B (en) * 2005-12-31 2010-08-11 华为技术有限公司 Method for congestion control in the real time multicast service
US9083555B1 (en) * 2012-04-13 2015-07-14 Exelis Inc. Traffic channel access during acquisition congestion
US20160086185A1 (en) * 2014-10-15 2016-03-24 Brighterion, Inc. Method of alerting all financial channels about risk in real-time
CN108229986B (en) * 2016-12-14 2021-07-16 腾讯科技(深圳)有限公司 Feature construction method in information click prediction, information delivery method and device
CN109831320B (en) * 2018-12-29 2022-03-25 国家电网有限公司 Auxiliary flow prediction control method, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160042384A1 (en) * 2014-08-07 2016-02-11 Inmobi Pte Ltd Linear Programming Approach for Querying a Trie Data Structure
CN108881415A (en) * 2018-05-31 2018-11-23 广州亿程交通信息集团有限公司 Distributed big data analysis system in real time
CN109450795A (en) * 2018-11-09 2019-03-08 浙江大学 A kind of service router and service network system of service-oriented network
CN110855564A (en) * 2019-10-12 2020-02-28 深圳壹账通智能科技有限公司 Intelligent routing path selection method, device, equipment and readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114336972A (en) * 2021-12-30 2022-04-12 广东电网有限责任公司 Overhauling determination method and device for telecontrol device
CN115118649A (en) * 2022-06-29 2022-09-27 国网山东省电力公司威海供电公司 Automatic planning method for relay protection route of power communication network
CN115118649B (en) * 2022-06-29 2023-07-11 国网山东省电力公司威海供电公司 Automatic planning method for relay protection route of power communication network
CN117499325A (en) * 2023-12-29 2024-02-02 湖南恒茂信息技术有限公司 Switch service message distribution method and system based on artificial intelligence
CN117499325B (en) * 2023-12-29 2024-03-15 湖南恒茂信息技术有限公司 Switch service message distribution method and system based on artificial intelligence

Also Published As

Publication number Publication date
CN110855564A (en) 2020-02-28
CN110855564B (en) 2022-09-30

Similar Documents

Publication Publication Date Title
WO2021068489A1 (en) Routing path intelligent selection method and apparatus, device, and readable storage medium
US10432533B2 (en) Automatic detection and prevention of network overload conditions using SDN
US10389801B2 (en) Service request processing method, related apparatus, and system
US20190313267A1 (en) Visualization of personalized quality of experience regarding mobile network
KR20070080177A (en) Apparatus and method of backward congestion notification on network
EP2988460A1 (en) Traffic management system and wireless network system
JP2016517643A (en) Data transmission method, apparatus and system
EP4024765A1 (en) Method and apparatus for extracting fault propagation condition, and storage medium
WO2015182629A1 (en) Monitoring system, monitoring device, and monitoring program
CN112671813B (en) Server determination method, device, equipment and storage medium
CN109981656B (en) CC protection method based on CDN node log
CN108574623B (en) Method and device for determining and preventing junk information by malicious user
EP3370395B1 (en) Devices and methods for managing a network communication channel between an electronic device and an enterprise entity
US20220329625A1 (en) Systems and methods for ip spoofing security
CN115189910A (en) Network digital twin-based deliberate attack survivability evaluation method
JP2022177077A (en) Communication terminal and program
CN114079619B (en) Port traffic sampling method and device
CN111371675B (en) Intelligent addressing method, device, equipment and storage medium thereof
US20210004308A1 (en) Data processing method and system
KR101932655B1 (en) Cyber assets data collection system and method for managing data
KR20160139591A (en) Method and apparatus for routing
CN111683057B (en) Threat information transmission and sharing method based on dynamic attack surface
US11233828B1 (en) Methods, systems, and media for protecting computer networks using adaptive security workloads
CN117076094B (en) Method for concurrently processing multiple tasks of cryptographic operation
CN116996481B (en) Live broadcast data acquisition method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20875028

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/08/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20875028

Country of ref document: EP

Kind code of ref document: A1