Traffic determination method and device, storage medium and computer program product
By obtaining the traffic information of nodes in the communication network and calculating the target traffic, the problem of large VPN instance traffic matrix prediction errors in the existing technology is solved, and accurate traffic matrix prediction of the communication network deployed with VPN instances is achieved.
Patent Information
- Application Number
- CN202410733323.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-08-23
AI Technical Summary
When the existing gravity model predicts the traffic matrix of a communication network, the prediction results of a communication network where VPN instances are deployed have a large error with the actual results, making it difficult to accurately predict the traffic demand.
By obtaining the traffic information of multiple nodes in the communication network, including the incoming and outgoing traffic of the target virtual private network VPN instance, the traffic matrix of the communication network is determined based on this information, and the target traffic is calculated using specific formulas to accurately predict the traffic between nodes. flow relationship.
It can accurately predict the traffic matrix of the communication network where VPN instances are deployed, taking into account the traffic information of the VPN instances on the nodes, improving the accuracy of prediction.
Smart Images

Figure CN118540233A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology and in particular to a method, device, storage medium and computer program product for determining flow rate. Background Art
[0002] At present, when managing, optimizing and planning a network, in order to predict the network's traffic demand and allocate traffic resources, it is often necessary to predict the traffic matrix corresponding to the communication network.
[0003] In the related art, the traffic matrix of the communication network is mainly predicted by the gravity model. However, when the traffic matrix corresponding to the communication network deployed with the target virtual private network (VPN) instance is predicted in this way, the prediction result has a large error with the actual traffic matrix. Summary of the invention
[0004] The present application provides a traffic determination method, device, storage medium, and computer program product, which can accurately predict the traffic matrix of a communication network deployed with a VPN instance.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a traffic determination method, the method comprising: obtaining traffic information corresponding to each of a plurality of nodes in a communication network; the traffic information comprising the incoming traffic and the outgoing traffic of a target virtual private network VPN instance on the node; determining a traffic matrix of the communication network according to the traffic information corresponding to each of the plurality of nodes; the traffic matrix comprising the target traffic between a first node and a second node; the first node is used to represent any one of a plurality of nodes; the second node is used to represent a node among a plurality of nodes that interacts with the first node; the target traffic is used to indicate the traffic from the first node to the second node through the target VPN instance.
[0007] In one possible manner, the method further includes: the first total flow, the outflow flow of the target VPN instance on the first node, the inflow flow of the target VPN instance on the second node, the sum of the outflow flow of the target VPN instance on each relay node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the first formula; the first total flow includes the sum of the inflow flow of the target VPN instance on each node, or the sum of the outflow flow of the target VPN instance on each node; the relay node is used to represent a node that interacts with the first node and interacts with the second node; the first formula is:
[0008]
[0009] Among them, Tijk Used to indicate target flow; A k Used to indicate the first total flow; ik Used to represent the outgoing traffic of the target VPN instance on the first node; jk Used to represent the inflow traffic of the target VPN instance on the second node; l O lk It is used to represent the sum of outgoing traffic of the target VPN instance on each relay node; l I lk It is used to represent the sum of the inflow traffic of the target VPN instance on each relay node; i is used to represent the first node; j is used to represent the second node; l is used to represent the relay node; and k is used to represent the target VPN instance.
[0010] In one possible manner, the method further includes: the inflow traffic of the target VPN instance on the second node, the sum of the inflow traffic of the target VPN instance on each relay node, and the target traffic conform to the second formula; the relay node is used to represent a node that interacts with the first node and interacts with the second node; the second formula is:
[0011]
[0012] Among them, T ijk Used to indicate target flow; O ik Used to represent the outgoing traffic of the target VPN instance on the first node; jk Used to represent the inflow traffic of the target VPN instance on the second node; l I lk It is used to represent the sum of the inflow traffic of the target VPN instance on each relay node; i is used to represent the first node; j is used to represent the second node; l is used to represent the relay node; and k is used to represent the target VPN instance.
[0013] In one possible manner, the method further includes: the sum of the target traffic, the outflow traffic of the target VPN instance on the first node, and the outflow traffic of the target VPN instance on each relay node conforms to a third formula; the relay node is used to represent a node that interacts with the first node and interacts with the second node; the third formula is:
[0014]
[0015] Among them, T ijk Used to indicate target flow; O ik Used to represent the outgoing traffic of the target VPN instance on the first node; jk Used to represent the inflow traffic of the target VPN instance on the second node; l O lkIt is used to represent the outflow traffic of the target VPN instance on the first node; i is used to represent the first node; j is used to represent the second node; l is used to represent the relay node; and k is used to represent the target VPN instance.
[0016] In one possible manner, the method further includes: the target traffic, the outflow traffic of the target VPN instance on the first node, the inflow traffic of the target VPN instance on the second node, the sum of the outflow traffic of the target VPN instance on each relay node, and the sum of the inflow traffic of the target VPN instance on each relay node meet the fourth formula; the relay node is used to represent a node that interacts with the first node and interacts with the second node; the fourth formula is:
[0017]
[0018] Among them, T ijk Used to indicate target flow; O ik Used to represent the outgoing traffic of the target VPN instance on the first node; jk Used to represent the inflow traffic of the target VPN instance on the second node; l O lk It is used to represent the sum of outgoing traffic of the target VPN instance on each relay node; l I lk It is used to represent the sum of the inflow traffic of the target VPN instance on each relay node; i is used to represent the first node; j is used to represent the second node; l is used to represent the relay node; and k is used to represent the target VPN instance.
[0019] In a possible manner, when there are multiple target VPN instances, the target traffic is used to indicate traffic flowing from the first node to the second node through the multiple target VPN instances.
[0020] In one possible manner, before determining the traffic matrix of the communication network based on the traffic information corresponding to each of the multiple nodes, it also includes: obtaining network information of the target VPN in the communication network; the network information includes at least one of the following: a node in the multiple nodes on which a target VPN instance is deployed, a topology type of the target VPN, and service layer information; determining that the first node and the second node meet preset conditions; the preset conditions include at least one of the following: the first node and the second node are both deployed with the target VPN instance, the topology type of the target VPN is a non-center-branch type, and there is a communication connection between the first node and the second node.
[0021] In a second aspect, the present application provides a traffic determination device, which includes: an acquisition unit and a determination unit; the acquisition unit is used to acquire traffic information corresponding to each of multiple nodes in a communication network; the traffic information includes the incoming traffic and outgoing traffic of a target virtual private network VPN instance on the node; the determination unit is used to determine the traffic matrix of the communication network based on the traffic information corresponding to each of the multiple nodes; the traffic matrix includes the target traffic between a first node and a second node; the first node is used to represent any one of the multiple nodes; the second node is used to represent a node among the multiple nodes that interacts with the first node; the target traffic is used to indicate the traffic from the first node to the second node through the target VPN instance.
[0022] In one possible manner, the acquisition unit is also used to obtain network information of a target VPN in a communication network; the network information includes at least one of the following: a node in a plurality of nodes on which a target VPN instance is deployed, a topology type of the target VPN, and service layer information; the determination unit is also used to determine that a first node and a second node meet preset conditions; the preset conditions include at least one of the following: both the first node and the second node are deployed with a target VPN instance, the topology type of the target VPN is a non-center-branch type, and there is a communication connection between the first node and the second node.
[0023] In a third aspect, the present application provides a flow determination device, comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the flow determination method described in the first aspect and any possible implementation method of the first aspect.
[0024] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes the flow determination method described in the first aspect and any possible implementation of the first aspect.
[0025] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions. When the computer program product runs on a flow determination device, the flow determination device executes the flow determination method described in the first aspect and any possible implementation of the first aspect.
[0026] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the flow determination method described in the first aspect and any possible implementation method of the first aspect.
[0027] Specifically, the chip provided in the embodiment of the present application also includes a memory for storing computer programs or instructions.
[0028] In this application, the name of the above-mentioned flow determination device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.
[0029] These and other aspects of the present application will become more apparent from the following description.
[0030] Based on any of the above aspects, the technical solution provided by this application brings at least the following beneficial effects:
[0031] It is capable of obtaining the flow information corresponding to each of the multiple nodes in the communication network, that is, the inflow flow and outflow flow of the VPN instance on the node, and determining the target flow between the first node and the second node among the multiple nodes according to the flow information corresponding to each of the multiple nodes, so as to further determine the flow matrix of the communication network.
[0032] Compared with the method of predicting the traffic matrix of the communication network through the gravity model in the related art, the present application can consider the traffic information of the VPN instance on the node in the communication network, so as to determine the traffic matrix of the communication network deployed with the VPN instance. Therefore, the present application can accurately predict the traffic matrix of the communication network deployed with the VPN instance. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the structure of a flow determination system provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of the hardware structure of a flow determination device provided in an embodiment of the present application;
[0035] Figure 3 A flow chart of a flow determination method provided in an embodiment of the present application;
[0036] Figure 4 A schematic diagram of a communication network provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram of another communication network provided in an embodiment of the present application;
[0038] Figure 6 A flow chart of another flow determination method provided in an embodiment of the present application;
[0039] Figure 7 A schematic diagram of the structure of another flow determination device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The flow determination method and device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0041] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0042] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0043] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0044] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0045] In network traffic analysis, traffic matrix is a key concept. Traffic matrix represents a set of all cross-directional traffic size values between network edge nodes. For a network with n edge nodes, the traffic matrix is an n*n matrix, where each element represents the traffic size between a pair of edge nodes.
[0046] In actual network operation, if the packet sampling, metadata generation and export functions of network devices can be enabled, and the traffic matrix of the entire network can be obtained through a centralized metadata collection and analysis system, relatively accurate traffic matrix historical data can be obtained. However, this method relies on sampling, so there is still a certain error. In addition, for networks that are planned or under construction, or for operating networks that have not built a traffic collection and analysis system due to cost and other reasons, historical data cannot be directly obtained.
[0047] In these cases, estimation methods based on aggregated traffic size become very important. Aggregated traffic size refers to the size of the bidirectional traffic on each interface of each device. Since interface traffic usually includes traffic between multiple pairs of edge nodes, that is, multiple elements in the traffic matrix, and the size of the network interface is usually much smaller than the number of elements in the traffic matrix, it is impossible to directly solve the elements of the traffic matrix by aggregating traffic.
[0048] There are many methods for estimating the traffic matrix, most of which are based on the gravity method. The most basic gravity method only needs to know the total access traffic scale of each edge node (including the total outbound and inbound traffic). The basic idea of this method is that the size of the traffic may be affected by the gravity of certain attributes of the source node and the target node (such as node capacity, distance between nodes, etc.). By considering these attributes, a model can be established to estimate the element values in the traffic matrix.
[0049] Let i represent the number of the edge node of the analyzed network, i = 1, 2, ..., n. Ii represents the total traffic from other edge nodes to node i. i Represents the total traffic from edge node i to other edge nodes. Obviously, for each node i, its total inbound traffic I i is equal to the sum of the traffic from all other nodes to it. Similarly, its total outbound traffic is O i is equal to the sum of the traffic it sends from all other nodes. These total flows can be obtained by aggregating the traffic data of network interfaces and then used as input to the gravity method or other estimation methods to approximately solve the traffic matrix. i with I i Satisfies the following formula:
[0050]
[0051] The above formula can be used to estimate the traffic matrix of the entire network based on the total unidirectional traffic of each edge node. It is very convenient to obtain the total unidirectional traffic of each edge node. You only need to view it through the command line. There is no need to deploy a complex metadata collection and analysis system, nor is there a need to enable flow sampling and export functions on the device. Therefore, this estimation method is extremely easy to implement. This method is often widely used in scenarios where the complexity and cost of traffic collection and analysis need to be avoided, and in scenarios where predictions need to be made.
[0052] Based on the gravity method, we have further developed a more accurate method. Take the TomoGravity method as an example. It requires the flow of link particles, that is, the flow size of each link in each direction in the entire network. At the same time, the routing information in the network (obtained through collection or offline calculation) is also required to determine the flow matrix elements contained in each link. Then, using the least squares method, we can find a flow matrix that not only meets the link aggregation flow constraints, but also is closest to the result of the gravity method. TomoGravity and similar methods can usually make a relatively accurate estimate of the flow matrix.
[0053] In response to the above-mentioned technical defects, the traffic determination method provided by the present application can obtain the traffic information corresponding to each of the multiple nodes in the communication network, that is, the inflow traffic and outflow traffic of the VPN instance on the node, and determine the target traffic between the first node and the second node among the multiple nodes based on the traffic information corresponding to each of the multiple nodes, so as to further determine the traffic matrix of the communication network.
[0054] Compared with the method of predicting the traffic matrix of the communication network through the gravity model in the related art, the present application can consider the traffic information of the VPN instance on the node in the communication network, so as to determine the traffic matrix of the communication network deployed with the VPN instance. Therefore, the present application can accurately predict the traffic matrix of the communication network deployed with the VPN instance.
[0055] For example, Figure 1 , which is a schematic diagram of the structure of a flow determination system 100 provided in an embodiment of the present application. The flow determination system 100 may include a flow determination device 101 and a data acquisition device 102. A communication connection may be established between the flow determination device 101 and the data acquisition device 102.
[0056] In practical applications, the flow determination device 101 may be communicatively connected to one or more data acquisition devices 102 .
[0057] For ease of understanding, the present application takes the communication connection between a flow determination device 101 and a data acquisition device 102 as an example for explanation.
[0058] Optional, Figure 1 The flow determination device 101 and the data acquisition device 102 may be functional modules integrated into the same device, or may be two devices independently provided. This application does not impose any limitation on this.
[0059] It is easy to understand that when the flow determination device 101 and the data acquisition device 102 are functional modules integrated in the same device, the communication method between the flow determination device 101 and the data acquisition device 102 is the communication between the internal modules of the device. In this case, the communication process between the two is the same as "the communication process between the flow determination device 101 and the data acquisition device 102 when they are independently set".
[0060] For ease of understanding, the present application is mainly described by taking the example that the flow determination device 101 and the data acquisition device 102 are independently configured.
[0061] Figure 1 The data collection device 102 in the communication network can collect the flow information corresponding to each of the multiple nodes in the communication network. The flow determination device 101 can send an acquisition instruction to the data collection device 102. In response to the acquisition instruction, the data collection device 102 can send the flow information corresponding to each of the multiple nodes in the communication network to the flow determination device 101. The flow determination device 101 can determine the flow matrix of the communication network according to the flow information corresponding to each of the multiple nodes.
[0062] Optionally, Figure 1 The flow determination device 101 and the data acquisition device 102 may be a terminal, a server, or other types of electronic devices. Figure 1 What is shown in the figure is only an example of the equipment form of the flow determination device 101 and the data acquisition device 102, and does not constitute a limitation thereto.
[0063] In the case where the flow determination device 101 and the data collection device 102 are terminals, the terminal can be a device for providing voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. The terminal can communicate with one or more core networks via a radio access network (RAN). The terminal can be a mobile terminal, such as a computer with a mobile terminal, or a portable, pocket-sized, handheld, or computer-built-in mobile device that exchanges language and / or data with a radio access network, such as a mobile phone, a tablet computer, a laptop computer, a netbook, or a personal digital assistant (PDA). This application does not impose any restrictions on this.
[0064] When the flow determination device 101 and the data collection device 102 are servers, the server may be a single server, or a server cluster consisting of multiple servers. In some implementations, the server cluster may also be a distributed cluster. This application does not impose any restrictions on this.
[0065] like Figure 2 , which is a schematic diagram of a hardware structure of a flow determination device provided in an embodiment of the present application. The flow determination device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, the memory 22, and the communication interface 23 can be connected via a bus 24.
[0066] The processor 21 is the control center of the flow determination device, and can be a processor or a general term for multiple processing elements. For example, the processor 21 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0067] As an embodiment, the processor 21 may include one or more CPUs, such as Figure 2 CPU 0 and CPU 1 are shown in .
[0068] The memory 22 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0069] In a possible implementation, the memory 22 may exist independently of the processor 21, and the memory 22 may be connected to the processor 21 via a bus 24 for storing instructions or program codes. When the processor 21 calls and executes the instructions or program codes stored in the memory 22, the flow determination method provided in the following embodiments of the present application can be implemented.
[0070] In another possible implementation, the memory 22 may also be integrated with the processor 21 .
[0071] The communication interface 23 is used to connect the flow determination device to other devices through a communication network, and the communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 23 may include a receiving unit for receiving data and a sending unit for sending data.
[0072] The bus 24 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0073] It should be pointed out that Figure 2 The structure shown in the figure does not constitute a limitation on the flow determination device, except Figure 2 In addition to the components shown, the flow determination device may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0074] like Figure 3 FIG. 1 is a flow chart of a flow determination method provided in an embodiment of the present application. The flow determination method can be applied to Figure 1 The flow determination system 100 shown is a flow determination device 101. The flow determination method includes: S301-S302.
[0075] S301. A flow determination device obtains flow information corresponding to each of a plurality of nodes in a communication network.
[0076] The traffic information may include the inflow traffic and the outflow traffic of the target virtual private network VPN instance on the node.
[0077] In one possible manner, the traffic determination device may obtain traffic information corresponding to each of a plurality of nodes in the communication network.
[0078] Optionally, the methods for obtaining the flow information corresponding to each of the multiple nodes in the communication network include but are not limited to the following two:
[0079] First way:
[0080] The flow determination device can obtain the flow information corresponding to each of the multiple nodes in the communication network through a collection system deployed on each node of the communication network.
[0081] In one possible approach, the collection system may include network devices such as switches and routers. These devices may collect network traffic data in real time, including inbound and outbound traffic.
[0082] Second way:
[0083] The flow determination device can obtain the flow information corresponding to each of the multiple nodes in the communication network according to the Simple Network Management Protocol (SNMP) and NetFlow. Among them, SNMP can be used to obtain the status information of the device, while NetFlow can provide more detailed flow data.
[0084] For example, Figure 4 The figure shows a schematic diagram of a communication network. Figure 4 The general network in includes multiple nodes and multiple deployed customer networks. The connection between each node can be used to represent the traffic information between the two nodes.
[0085] In a possible manner, a node may include multiple VPN instances. The flow determination device obtains flow information corresponding to each of the multiple VPN instances on each node in the communication network.
[0086] For example, Figure 5 FIG. 1 is a schematic diagram of another communication network. Figure 5 VPN instances are deployed in the communication network. A node may include multiple VPN instances, for example, VPN1 and VPN2. Each node may interact with each other through the VPN instance.
[0087] S302: The traffic determination device determines a traffic matrix of the communication network according to the traffic information corresponding to each of the multiple nodes.
[0088] The traffic matrix may include target traffic between the first node and the second node. The first node may be used to represent any one of the multiple nodes. The second node may be used to represent a node that interacts with the first node among the multiple nodes. The target traffic may be used to indicate traffic from the first node to the second node through the target VPN instance.
[0089] In a possible manner, when there are multiple target VPN instances, the target traffic is used to indicate traffic flowing from the first node to the second node through the multiple target VPN instances.
[0090] In one possible manner, the traffic matrix can be used to represent the traffic relationship between any two nodes in a plurality of nodes. These nodes can be VPN instances in the network, or servers, switches, etc. This application does not impose any specific restrictions on this.
[0091] In one possible way, building a traffic matrix helps to fully and systematically understand the traffic distribution and flow of each node in the network. By analyzing the traffic matrix, we can know which nodes have larger traffic, which nodes have smaller traffic, and the traffic change trend. This is of great significance for network planning, optimization, troubleshooting, and security monitoring.
[0092] For example, during the network planning stage, the traffic matrix can predict future traffic demand, thereby rationally allocating network resources and avoiding network congestion and performance bottlenecks.
[0093] Specifically, the traffic determination device can determine the target traffic between any two nodes based on the traffic information corresponding to each of the multiple nodes, and construct a traffic matrix of the communication network based on the target traffic between any two nodes.
[0094] Based on the above technical solution, the traffic determination method provided by the present application can obtain the traffic information corresponding to each of the multiple nodes in the communication network, that is, the incoming traffic and outgoing traffic of the VPN instance on the node, and determine the target traffic between the first node and the second node among the multiple nodes based on the traffic information corresponding to each of the multiple nodes, so as to further determine the traffic matrix of the communication network.
[0095] Compared with the method of predicting the traffic matrix of the communication network through the gravity model in the related art, the present application can consider the traffic information of the VPN instance on the node in the communication network, so as to determine the traffic matrix of the communication network deployed with the VPN instance. Therefore, the present application can accurately predict the traffic matrix of the communication network deployed with the VPN instance.
[0096] In one embodiment, the flow determination method provided in the present application may also include the following optional execution methods.
[0097] In one possible manner, the traffic determination device can determine the outgoing traffic of the target VPN instance on the first node, the incoming traffic of the target VPN instance on the second node, the sum of the outgoing traffic of the target VPN instance on each relay node, and the sum of the incoming traffic of the target VPN instance on each relay node based on the traffic information corresponding to each of the multiple nodes.
[0098] In one possible manner, the traffic determination device can determine the first total traffic based on the outgoing traffic of the target VPN instance on the first node, the incoming traffic of the target VPN instance on the second node, the sum of the outgoing traffic of the target VPN instance on each relay node, and the sum of the incoming traffic of the target VPN instance on each relay node.
[0099] In one possible manner, the first total flow may include the sum of the inflow flow of the target VPN instance on each node, or the sum of the outflow flow of the target VPN instance on each node. The relay node may be used to represent a node that interacts with the first node and interacts with the second node. The outflow flow of the target VPN instance on the first node.
[0100] In one possible approach, the first total flow, the outflow flow of the target VPN instance on the first node, the inflow flow of the target VPN instance on the second node, the sum of the outflow flow of the target VPN instance on each relay node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the first formula. The first formula:
[0101]
[0102] Among them, T ijk Can be used to indicate target traffic. k Can be used to represent the first total flow. ik It can be used to represent the outgoing traffic of the target VPN instance on the first node. jk It can be used to indicate the inbound traffic of the target VPN instance on the second node. l O lk It can be used to represent the sum of outgoing traffic of the target VPN instance on each relay node. l I lk It can be used to represent the sum of the inflow traffic of the target VPN instance on each relay node. i can be used to represent the first node. j can be used to represent the second node. l can be used to represent the relay node. k can be used to represent the target VPN instance.
[0103] In one possible manner, the traffic determination device can determine the first total traffic based on the first formula, the target traffic, the outgoing traffic of the target VPN instance on the first node, the incoming traffic of the target VPN instance on the second node, the sum of the outgoing traffic of the target VPN instance on each relay node, and the sum of the incoming traffic of the target VPN instance on each relay node.
[0104] In one possible manner, the traffic determination device may obtain a topological structure between any two nodes among a plurality of nodes in the communication network, and service layer information corresponding to each of the plurality of nodes. The traffic determination device may determine the communication probability between any two nodes based on the topological structure between any two nodes among the plurality of nodes, and service layer information corresponding to each of the plurality of nodes.
[0105] In one possible manner, the communication probability, the second total flow, the outflow flow of the target VPN instance on the third node, the inflow flow of the target VPN instance on the fourth node, the sum of the outflow flow of the target VPN instance on each relay node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the fifth formula. The fifth formula:
[0106]
[0107] Among them, T ijk Can be used to indicate target traffic. k Can be used to indicate the second total flow. ik It can be used to indicate the outgoing traffic of the target VPN instance on the third node. jk It can be used to indicate the inbound traffic of the target VPN instance on the fourth node. l O lk It can be used to represent the sum of outgoing traffic of the target VPN instance on each relay node. l I lk It can be used to represent the sum of the inflow traffic of the target VPN instance on each relay node. i can be used to represent the third node. j can be used to represent the fourth node. l can be used to represent the relay node. k can be used to represent the target VPN instance. ijk It can be used to represent the communication probability between the third node and the fourth node about the target VPN instance. ljk It can be used to represent the communication probability between the fourth node and the relay node regarding the target VPN instance. ilk It can be used to indicate the communication probability between the third node and the relay node regarding the target VPN instance.
[0108] Based on this, the present application can correct the estimated traffic matrix through communication probability to ensure the accuracy of the traffic matrix.
[0109] In one embodiment, the flow determination method provided in the present application may also include the following optional execution methods.
[0110] In one possible manner, the traffic determination device can determine the outgoing traffic of the target VPN instance on the first node, the incoming traffic of the target VPN instance on the second node, the sum of the outgoing traffic of the target VPN instance on each relay node, and the sum of the incoming traffic of the target VPN instance on each relay node based on the traffic information corresponding to each of the multiple nodes.
[0111] In one possible manner, the traffic determination device can determine the first total traffic based on the outgoing traffic of the target VPN instance on the first node, the incoming traffic of the target VPN instance on the second node, the sum of the outgoing traffic of the target VPN instance on each relay node, and the sum of the incoming traffic of the target VPN instance on each relay node.
[0112] In one possible manner, the first total flow, the outflow flow of the target VPN instance on the first node, the inflow flow of the target VPN instance on the second node, the sum of the outflow flow of the target VPN instance on each relay node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the sixth formula. The sixth formula:
[0113]
[0114] Among them, T ijk Can be used to indicate target traffic. ik It can be used to represent the outgoing traffic of the target VPN instance on the first node. jk It can be used to indicate the inbound traffic of the target VPN instance on the second node. l O lk It can be used to represent the sum of outgoing traffic of the target VPN instance on each relay node. l I lk It can be used to represent the sum of the inflow traffic of the target VPN instance on each relay node. i can be used to represent the first node. j can be used to represent the second node. l can be used to represent the relay node. k can be used to represent the target VPN instance.
[0115] In one possible way, when the outflow flow of the target VPN instance on the first node is a large value, the sixth formula can be simplified to the second formula, that is, the inflow flow of the target VPN instance on the second node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the second formula. The relay node is used to represent a node that interacts with the first node and interacts with the second node. The second formula is:
[0116]
[0117] Among them, T ijk Can be used to indicate target traffic. ik It can be used to represent the outgoing traffic of the target VPN instance on the first node. jk It can be used to indicate the inbound traffic of the target VPN instance on the second node. l I lkIt can be used to represent the sum of the inflow traffic of the target VPN instance on each relay node. i can be used to represent the first node. j can be used to represent the second node. l can be used to represent the relay node. k can be used to represent the target VPN instance.
[0118] In one possible way, when the outflow flow of the target VPN instance on the first node is a large value, the sixth formula can be simplified to the third formula, that is, the inflow flow of the target VPN instance on the third node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the third formula. The relay node is used to represent a node that interacts with the first node and interacts with the second node. The third formula is:
[0119]
[0120] Among them, T ijk Used to indicate target flow. ik Used to indicate the outgoing traffic of the target VPN instance on the first node. jk Used to indicate the inbound traffic of the target VPN instance on the second node. l O lk Used to indicate outgoing traffic of the target VPN instance on the first node. i is used to indicate the first node. j is used to indicate the second node. l is used to indicate the relay node. k is used to indicate the target VPN instance.
[0121] In one possible manner, the traffic determination device may obtain a topological structure between any two nodes among a plurality of nodes in the communication network, and service layer information corresponding to each of the plurality of nodes. The traffic determination device may determine the communication probability between any two nodes based on the topological structure between any two nodes among the plurality of nodes, and service layer information corresponding to each of the plurality of nodes.
[0122] In one possible manner, the communication probability, the outflow flow of the target VPN instance on the third node, the inflow flow of the target VPN instance on the fourth node, the sum of the outflow flow of the target VPN instance on each relay node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the seventh formula. The seventh formula:
[0123]
[0124] Among them, T ijk Can be used to indicate target traffic. ik It can be used to indicate the outgoing traffic of the target VPN instance on the third node. jk It can be used to indicate the inbound traffic of the target VPN instance on the fourth node. l O lkIt can be used to represent the sum of outgoing traffic of the target VPN instance on each relay node. l I lk It can be used to represent the sum of the inflow traffic of the target VPN instance on each relay node. i can be used to represent the third node. j can be used to represent the fourth node. l can be used to represent the relay node. k can be used to represent the target VPN instance. ijk It can be used to represent the communication probability between the third node and the fourth node about the target VPN instance. ljk It can be used to represent the communication probability between the fourth node and the relay node regarding the target VPN instance. ilk It can be used to indicate the communication probability between the third node and the relay node regarding the target VPN instance.
[0125] In one possible manner, since the communication probability is less than or equal to 1, and the first total flow satisfies the following eighth formula. Eighth formula:
[0126] A k =∑ i O ik =∑ i I ik .
[0127] In one possible manner, the communication probability, the second total flow, the outflow flow of the target VPN instance on the third node, the inflow flow of the target VPN instance on the fourth node, the sum of the outflow flow of the target VPN instance on each relay node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the ninth formula and the tenth formula. Ninth formula:
[0128]
[0129] The tenth formula:
[0130]
[0131] Among them, T ijk Can be used to indicate target traffic. k Can be used to indicate the second total flow. ik It can be used to indicate the outgoing traffic of the target VPN instance on the third node. jk It can be used to indicate the inbound traffic of the target VPN instance on the fourth node. l O lk It can be used to represent the sum of outgoing traffic of the target VPN instance on each relay node. l I lkIt can be used to represent the sum of the inflow traffic of the target VPN instance on each relay node. i can be used to represent the third node. j can be used to represent the fourth node. l can be used to represent the relay node. k can be used to represent the target VPN instance. ijk It can be used to represent the communication probability between the third node and the fourth node about the target VPN instance. ljk It can be used to represent the communication probability between the fourth node and the relay node regarding the target VPN instance. ilk It can be used to indicate the communication probability between the third node and the relay node regarding the target VPN instance.
[0132] Therefore, it can be determined through the ninth and tenth formulas that the result determined by the first formula is too large, and the first formula can be corrected, that is, calculated through the seventh formula.
[0133] In one embodiment, in one possible manner, the traffic determination device can determine the outflow traffic of the target VPN instance on the first node, the inflow traffic of the target VPN instance on the second node, the sum of the outflow traffic of the target VPN instance on each relay node, and the sum of the inflow traffic of the target VPN instance on each relay node based on the traffic information corresponding to each of the multiple nodes.
[0134] In one possible manner, the traffic determination device can determine the first total traffic based on the outgoing traffic of the target VPN instance on the first node, the incoming traffic of the target VPN instance on the second node, the sum of the outgoing traffic of the target VPN instance on each relay node, and the sum of the incoming traffic of the target VPN instance on each relay node.
[0135] In one possible manner, the target traffic, the outflow traffic of the target VPN instance on the first node, the inflow traffic of the target VPN instance on the second node, the sum of the outflow traffic of the target VPN instance on each relay node, and the sum of the inflow traffic of the target VPN instance on each relay node meet the fourth formula. The relay node is used to represent a node that interacts with the first node and interacts with the second node. The fourth formula is:
[0136]
[0137] Among them, T ijk Used to indicate target flow. ik Used to indicate the outgoing traffic of the target VPN instance on the first node. jk Used to indicate the inbound traffic of the target VPN instance on the second node. l O lk It is used to represent the sum of outgoing traffic of the target VPN instance on each relay node. l I lkIt is used to represent the sum of the inflow traffic of the target VPN instance on each relay node. i is used to represent the first node. j is used to represent the second node. l is used to represent the relay node. k is used to represent the target VPN instance.
[0138] In one possible manner, the traffic determination device may obtain a topological structure between any two nodes among a plurality of nodes in the communication network, and service layer information corresponding to each of the plurality of nodes. The traffic determination device may determine the communication probability between any two nodes based on the topological structure between any two nodes among the plurality of nodes, and service layer information corresponding to each of the plurality of nodes.
[0139] In one possible manner, the communication probability, the first total flow, the outflow flow of the target VPN instance on the first node, the inflow flow of the target VPN instance on the second node, the sum of the outflow flow of the target VPN instance on each relay node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the eleventh formula. Eleventh formula:
[0140]
[0141] Among them, T ijk Can be used to indicate target traffic. k Can be used to represent the first total flow. ik It can be used to represent the outgoing traffic of the target VPN instance on the first node. jk It can be used to indicate the inbound traffic of the target VPN instance on the second node. l O lk It can be used to represent the sum of outgoing traffic of the target VPN instance on each relay node. l I lk It can be used to represent the sum of the inflow traffic of the target VPN instance on each relay node. i can be used to represent the first node. j can be used to represent the second node. l can be used to represent the relay node. k can be used to represent the target VPN instance. ijk It can be used to represent the communication probability between the first node and the second node about the target VPN instance. ljk It can be used to represent the communication probability between the second node and the relay node regarding the target VPN instance. ilk It can be used to indicate the communication probability between the first node and the relay node regarding the target VPN instance.
[0142] In a possible manner, the result calculated by the first formula may be corrected by means of an average value, that is, the eleventh formula.
[0143] In one embodiment, before determining the traffic matrix of the communication network according to the traffic information corresponding to each of the plurality of nodes, Figure 6 As shown, the flow determination method provided in the present application also includes the following steps: S401-S402.
[0144] S401. The traffic determination device obtains network information of a target VPN in a communication network.
[0145] The network information may include at least one of the following: a node in which a target VPN instance is deployed among multiple nodes, a topology type of the target VPN, and service layer information.
[0146] In one possible manner, the flow determination device may be configured with a storage module. The storage module may store nodes of a target VPN instance, a topology type of a target VPN, and service layer information. The flow determination device may read network information of the target VPN stored in the storage module, i.e., nodes of the target VPN instance, a topology type of the target VPN, and service layer information.
[0147] Alternatively, the traffic determination device may determine the network information of the target VPN from the communication network.
[0148] S402: The flow determination device may determine that the first node and the second node meet preset conditions.
[0149] The preset conditions include at least one of the following: both the first node and the second node are deployed with a target VPN instance, the topology type of the target VPN is a non-center-branch type, and there is a communication connection between the first node and the second node.
[0150] In one possible manner, the traffic determination device may determine whether the topology type of the target VPN is a hub-and-spoke type based on the network information. The traffic determination device may determine that the first node and the second node, both of which are deployed with the target VPN instance and have a communication connection, meet the preset condition when the topology type of the target VPN is a non-hub-and-spoke type.
[0151] Based on this, the present application can determine whether any two nodes among a plurality of nodes meet the preset conditions, and determine the first node and the second node that meet the preset conditions, thereby avoiding the calculation of the traffic between two nodes that do not communicate when calculating the traffic matrix of the communication network in the related art. Therefore, the present application can more accurately calculate the traffic matrix of the communication network.
[0152] For example, Figure 7 FIG. 1 is a schematic diagram of a flow determination device provided in an embodiment of the present application. The flow determination device is used to execute the flow determination method provided in the present application. For example, the above Figure 3 and Figure 6 The flow determination method in the flow determination device may include: an acquisition unit 501 and a determination unit 502.
[0153] In a possible manner, the acquisition unit 501 is used to acquire the flow information corresponding to each of the multiple nodes in the communication network.
[0154] In a possible manner, the determining unit 502 is configured to determine a traffic matrix of the communication network according to traffic information corresponding to each of the plurality of nodes.
[0155] In a possible manner, the acquisition unit 501 is further configured to acquire network information of a target VPN in the communication network.
[0156] In a possible manner, the determining unit 502 is further configured to determine whether the first node and the second node meet a preset condition.
[0157] also, Figure 7 The technical effects of the flow determination device can refer to the technical effects of the flow determination method in the above embodiment, and will not be repeated here.
[0158] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0159] An embodiment of the present application provides a computer program product comprising instructions. When the computer program product is run on a computer, the computer is enabled to execute the flow determination method in the above method embodiment.
[0160] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the flow determination method in the method flow shown in the above method embodiment.
[0161] Among them, the computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0162] Since the flow determination device, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present application will not be repeated here.
[0163] The above is only a specific real-time method of the present application, but the protection scope of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A flow determination method, characterized in that: include: Obtaining the flow information corresponding to each of multiple nodes in the communication network; The traffic information includes the inflow traffic and outflow traffic of the target virtual private network VPN instance on the node; Determine a traffic matrix of the communication network according to the traffic information corresponding to each of the plurality of nodes; the traffic matrix includes a target traffic between a first node and a second node; The first node is used to represent any one of the multiple nodes; The second node is used to represent a node among the multiple nodes that interacts with the first node; and the target traffic is used to indicate traffic from the first node to the second node through the target VPN instance.
2. The method according to claim 1, characterized in that The method further comprises: The first total flow, the outflow flow of the target VPN instance on the first node, the inflow flow of the target VPN instance on the second node, the sum of the outflow flow of the target VPN instance on each relay node, the sum of the inflow flow of the target VPN instance on each relay node, and the target flow meet the first formula; the first total flow includes the sum of the inflow flow of the target VPN instance on each node, or the sum of the outflow flow of the target VPN instance on each node; the relay node is used to represent a node that interacts with the first node and interacts with the second node; the first formula is: Among them, the T ijk Used to represent the target flow; the A k is used to represent the first total flow; ik is used to represent the outflow traffic of the target VPN instance on the first node; jk is used to represent the inflow traffic of the target VPN instance on the second node; l O lk It is used to represent the sum of the outflow traffic of the target VPN instance on each relay node; l I lk It is used to represent the sum of the inflow traffic of the target VPN instance on each relay node; the i is used to represent the first node; the j is used to represent the second node; the l is used to represent the relay node; and the k is used to represent the target VPN instance.
3. The method according to claim 1, characterized in that The method further comprises: The inflow traffic of the target VPN instance on the second node, the sum of the inflow traffic of the target VPN instance on each relay node, and the target traffic meet the second formula; the relay node is used to represent a node that interacts with the first node and the second node; the second formula is: Among them, the T ijk Used to represent the target flow rate; ik is used to represent the outflow traffic of the target VPN instance on the first node; jk is used to represent the inflow traffic of the target VPN instance on the second node; l I lk It is used to represent the sum of the inflow traffic of the target VPN instance on each relay node; the i is used to represent the first node; the j is used to represent the second node; the l is used to represent the relay node; and the k is used to represent the target VPN instance.
4. The method according to claim 1, characterized in that: The method further comprises: The target traffic, the outflow traffic of the target VPN instance on the first node, and the sum of the outflow traffic of the target VPN instance on each relay node meet the third formula; the relay node is used to represent a node that interacts with the first node and the second node; the third formula is: Among them, the T ijk Used to represent the target flow rate; ik is used to represent the outflow traffic of the target VPN instance on the first node; jk is used to represent the inflow traffic of the target VPN instance on the second node; l O lk is used to represent the outflow traffic of the target VPN instance on the first node; the i is used to represent the first node; the j is used to represent the second node; the l is used to represent the relay node; and the k is used to represent the target VPN instance.
5. The method according to claim 1, characterized in that The method further comprises: The target traffic, the outflow traffic of the target VPN instance on the first node, the inflow traffic of the target VPN instance on the second node, the sum of the outflow traffic of the target VPN instance on each relay node, and the sum of the inflow traffic of the target VPN instance on each relay node meet the fourth formula; the relay node is used to represent a node that interacts with the first node and the second node; the fourth formula is: Among them, the T ijk Used to represent the target flow rate; ik is used to represent the outflow traffic of the target VPN instance on the first node; jk is used to represent the inflow traffic of the target VPN instance on the second node; l O lk It is used to represent the sum of the outflow traffic of the target VPN instance on each relay node; l I lk It is used to represent the sum of the inflow traffic of the target VPN instance on each relay node; the i is used to represent the first node; the j is used to represent the second node; the l is used to represent the relay node; and the k is used to represent the target VPN instance.
6. The method according to any one of claims 1 to 5, characterized in that: In the case that there are multiple target VPN instances, the target traffic is used to indicate traffic flowing from the first node to the second node through the multiple target VPN instances.
7. The method according to any one of claims 1 to 5, characterized in that: Before determining the traffic matrix of the communication network according to the traffic information corresponding to each of the plurality of nodes, the method further includes: Acquire network information of the target VPN in the communication network; the network information includes at least one of the following: a node in the plurality of nodes where the target VPN instance is deployed, a topology type of the target VPN, and service layer information; Determine that the first node and the second node meet preset conditions; the preset conditions include at least one of the following: the first node and the second node are both deployed with the target VPN instance, the topology type of the target VPN is a non-center-branch type, and there is a communication connection between the first node and the second node.
8. A flow determination device, characterized in that: The device comprises: an acquisition unit and a determination unit; The acquisition unit is used to acquire the flow information corresponding to each of the multiple nodes in the communication network; the flow information includes the inflow flow and the outflow flow of the target virtual private network VPN instance on the node; The determination unit is used to determine the traffic matrix of the communication network according to the traffic information corresponding to each of the multiple nodes; the traffic matrix includes the target traffic between the first node and the second node; the first node is used to represent any one of the multiple nodes; the second node is used to represent a node among the multiple nodes that interacts with the first node; the target traffic is used to indicate the traffic from the first node to the second node through the target VPN instance.
9. A flow determination device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the flow determination method as described in any one of claims 1-7.
10. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When a computer executes the instruction, the computer executes the flow determination method described in any one of claims 1 to 7.
11. A computer program product comprising instructions, characterized in that When the instructions are executed by a computer, the computer is enabled to perform the flow determination method according to any one of claims 1 to 7.
