WO2022253073A1 - Ring network resource obtaining method, and data traffic statistics method, apparatus and device - Google Patents

Ring network resource obtaining method, and data traffic statistics method, apparatus and device Download PDF

Info

Publication number
WO2022253073A1
WO2022253073A1 PCT/CN2022/094987 CN2022094987W WO2022253073A1 WO 2022253073 A1 WO2022253073 A1 WO 2022253073A1 CN 2022094987 W CN2022094987 W CN 2022094987W WO 2022253073 A1 WO2022253073 A1 WO 2022253073A1
Authority
WO
WIPO (PCT)
Prior art keywords
ring system
network
node
network element
ring
Prior art date
Application number
PCT/CN2022/094987
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 WO2022253073A1 publication Critical patent/WO2022253073A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • 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
    • 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
    • H04L41/142Network analysis or design using statistical or mathematical methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • 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
    • H04L45/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion

Definitions

  • This application relates to but not limited to the field of communication technology.
  • the present application provides a method for acquiring ring network resources, a data flow statistics method, a device and equipment.
  • the present application provides a method for acquiring ring network resources, including: processing the obtained connection link information between network element nodes according to a preset path algorithm, and determining the ring system to which the network element node belongs; according to the obtained The attribute information of the network element node and the ring system to which the network element node belongs determine the ring network resource, and the ring network resource represents the resource of the ring system in the network.
  • This application provides a data flow statistics method, including: adopting any ring network resource acquisition method in this application to obtain ring network resources; according to the ring network resources, counting the data flow of each ring system in the network.
  • the present application provides a device for obtaining ring network resources, which includes: a ring system confirmation module configured to process the obtained connection link information between network element nodes according to a preset path algorithm, and determine the network element nodes The ring system to which it belongs; the ring network resource determining module, configured to determine the ring network resources according to the acquired attribute information of the network element node and the ring system to which the network element node belongs, and the ring network resources represent the resources of the ring system in the network.
  • the present application provides a data traffic statistics device, which includes: an acquisition module configured to acquire ring network resources by using any method for acquiring ring network resources in the present application; a statistical module configured to, according to the ring network resources, Collect statistics on the data traffic of each ring system in the network.
  • the present application provides a network management device, including: any device for acquiring ring network resources in the present application, and/or any data traffic statistics device in the present application.
  • the present application provides an electronic device, including: one or more processors; memory, on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, one or more
  • the processor implements any method for acquiring ring network resources in this application, or implements any method for counting data traffic in this application.
  • the present application provides a computer-readable storage medium, on which a computer program is stored.
  • a computer program is stored.
  • any method for acquiring ring network resources in this application is realized, or any method in this application is realized.
  • a data traffic statistics method is used.
  • FIG. 1 shows a schematic diagram of the layered structure of the network topology in this application.
  • FIG. 2 shows a schematic flowchart of a method for acquiring ring network resources provided by the present application.
  • FIG. 3 shows a schematic flowchart of a method for acquiring ring network resources provided by the present application.
  • FIG. 4 shows a schematic flow chart of the method for counting data traffic provided by the present application.
  • FIG. 5 shows a structural diagram of a device for acquiring ring network resources provided by the present application.
  • FIG. 6 shows a structural diagram of the data traffic statistics device provided by the present application.
  • FIG. 7 shows a structural diagram of the network management equipment provided by the present application.
  • FIG. 8 shows a structural diagram of a system for acquiring ring network resources provided by the present application.
  • Fig. 9 shows a schematic flow chart of the derivation method of the ring system provided by the present application.
  • FIG. 10 shows a schematic diagram of the network topology of the network element nodes attached to the ring system provided by the present application.
  • FIG. 11 shows a schematic flowchart of a method for counting all network element nodes attached to a convergence ring system provided by the present application.
  • Fig. 12 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the method for acquiring ring network resources and the device thereof, or the method for counting data traffic and the device thereof according to the present application.
  • FIG. 1 shows a schematic diagram of the layered structure of the network topology in this application.
  • the hierarchical structure of network topology usually includes core ring system, aggregation ring system and access ring system.
  • the core ring system is a closed-loop system.
  • the core ring system includes: node A, node B, node C, node D, node E, and node F, as well as links between the above nodes;
  • the aggregation ring system is An open-loop system, the converging ring system includes node G and node H, and a link between node E and node G, a link between node G and node H, and a link between node F and node H;
  • the ring-entry system includes the following nodes and links between the following nodes: node I, node M, node L, node Q, node J, node K, node O, node P, node R, node S, node T, node U, Node V, Node X, Node W, Node Z, and Node Y.
  • the core ring system, the aggregation ring system and the access ring system form an upper and lower layer relationship.
  • the ring system includes basic resources such as network element nodes and links between nodes, and presents a network structure composed of network elements and links in the network management topology.
  • FIG. 2 shows a schematic flowchart of a method for acquiring ring network resources provided by the present application.
  • the method for obtaining ring network resources can be applied to a device for obtaining ring network resources, and the device for obtaining ring network resources can be set in a network management device.
  • the method for acquiring ring network resources in this application may include the following steps S201 and S202.
  • step S201 the obtained connection link information between network element nodes is processed according to a preset path algorithm, and the ring system to which the network element nodes belong is determined.
  • the preset path algorithm may be a link exclusion algorithm.
  • the link exclusion algorithm is to select any determined link, and use the network element nodes at both ends of the link as the starting point and the end point of the path calculation. The method of performing calculations on the links between them. Since there may be many different transmission paths between the start point and the end point, the division algorithm of the ring system may also be diversified.
  • the preset path algorithm may also include: a shortest path algorithm or a longest path algorithm.
  • the shortest path algorithm is an algorithm for calculating the minimum hop path between two network element nodes (that is, the number of network element nodes included in the path is the least), for example, the minimum link algorithm may be Dijkstra (Dijkstra) algorithm , Bellman-Ford (Bellman-Ford) algorithm, Floyd (Floyd) algorithm and shortest path fast algorithm (Shortest Path Faster Algorithm, SPFA) in any one or more.
  • the longest path algorithm is an algorithm for calculating the longest path between two network element nodes. For example, find all transmission paths between two network element nodes, and then use a recursive method to find the longest path among all transmission paths. long transmission path.
  • the preset path algorithm above is only an example, and can be set according to the actual situation. Other unexplained preset path algorithms are also within the scope of protection of this application, and will not be repeated here. .
  • step S202 ring network resources are determined according to the acquired attribute information of the network element node and the ring system to which the network element node belongs.
  • the ring network resources represent the resources of the ring system in the network.
  • ring network resources may include attribute information of network element nodes in a certain ring system, link connection information between network element nodes in the ring system, etc., wherein the attribute information of network element nodes may include network Any one or more of the identity of the element node, the parent node information of the network element node, and the child node information of the network element node.
  • the obtained connection link information between network element nodes is processed through a preset path algorithm, and the ring system to which each network element node belongs can be quickly identified; according to the attribute information of the network element nodes and The ring system to which the network element node belongs determines the ring network resources, so that the operation and maintenance personnel can clearly know the ring network resources of each different ring system, which facilitates the management of each network element node in the network, reduces the number of operation and maintenance of the operation and maintenance personnel, and, According to the ring network resources, the operation and maintenance personnel can realize the unified planning of the resources in the network and improve the utilization efficiency of the ring network resources.
  • FIG. 3 shows a schematic flowchart of a method for acquiring ring network resources provided by the present application.
  • the method for obtaining ring network resources can be applied to a device for obtaining ring network resources, and the device for obtaining ring network resources can be set in a network management device.
  • the method for acquiring ring network resources in this application may include the following steps S301 to S304.
  • step S301 when it is determined that the node type of the network element node is a core network node, it is determined that the ring system to which the core network node belongs is the first layer ring system, and the link between the core network nodes is marked as the first layer ring system Core network link.
  • the attribute information of the network element node includes the node type.
  • the node type may include any one or more of core network nodes, aggregation nodes and access nodes. If the network is divided into N layers, the node types of network element nodes can be nodes in the ring system of the first layer, nodes in the ring system of the second layer, ..., nodes in the ring system of the Nth layer, and N is greater than or An integer equal to 1.
  • each core network node and the link between each core network node can be Roads are divided into core ring systems.
  • the first layer ring system (that is, the core ring system) is determined as a closed-loop system.
  • step S302 when it is determined that the node type of the network element node is not a core network node, a candidate link set is acquired.
  • the node type of the network element node corresponding to the candidate link in the candidate link set may be a convergence node or an access node, or a node in the second layer ring system, or a node in the third layer ring system. Any type of node, ..., node in the N-th layer ring system.
  • step S303 the candidate link information in the candidate link set is processed according to a preset path algorithm to determine the ring system to which the network element node belongs.
  • the candidate link information may include any one or more of: the node type of the starting network element node corresponding to the candidate link, the node type of the terminating network element node corresponding to the candidate link, and the direction of the candidate link.
  • step S304 ring network resources are determined according to the acquired attribute information of the network element node and the ring system to which the network element node belongs.
  • step S304 in this embodiment is the same as step S202 in the previous embodiment, and will not be repeated here.
  • the ring system to which the core network node belongs is the first layer ring system, which facilitates subsequent division of other layer ring systems;
  • the candidate link set is obtained, and the candidate link set is obtained by screening, which can narrow the identification range, and further deduce the ring system for each candidate link in the candidate link set , to speed up the recognition speed of the ring system;
  • the candidate link information in the candidate link set is processed to determine the ring system to which the network element node belongs, so that it is convenient for the operation and maintenance personnel to identify the network elements in the corresponding ring system Nodes are managed to improve the management efficiency of network element nodes.
  • the ring network resources are determined, and the resources in the network are planned uniformly through the
  • the method before marking the links between the core network nodes as the core network links in the first layer ring system, the method further includes: obtaining a set of core network links; The core network links in the core network link set are processed to determine the connection form of the core network links in the core network link set; according to the connection form of the core network links in the core network link set, determine whether to A virtual link is added between the core network nodes, and the virtual link is used to make the first-layer ring system form a connected body.
  • the connected body means that there is a link between any two network element nodes in the slave ring system.
  • a virtual link is a logical connection channel established between any two network element nodes, rather than an actual physical channel.
  • processing the candidate link information in the candidate link set according to a preset path algorithm to determine the ring system to which the network element node belongs includes: according to the preset path algorithm and the obtained upper The outbound network element node of the layer-1 ring system screens the candidate links in the candidate link set to obtain the pending link set, and determines the connection form of the pending link set in the pending link set.
  • the set of processing links includes k links to be processed, and k is an integer greater than or equal to 1; according to the connection form of the links to be processed in the set of links to be processed, determine the member nodes of the current ring system; determine the number of nodes in the current ring system Level value, and mark the level value of the ring system to which the member nodes of the current ring system belong is the level value of the current ring system; update the candidate link set according to the links between the member nodes of the current ring system; according to the preset path
  • the algorithm and the outgoing network element nodes of the current ring system process the candidate link information in the updated candidate link set to determine the ring system to which the network element nodes in the updated candidate link set belong.
  • the candidate links in the candidate link set may be links that are not marked as core network links, or may be unmarked links corresponding to outgoing network element nodes of the upper ring system.
  • the outbound network element nodes of the upper ring system represent the network element nodes connected to the upper ring system in the current ring system. For example, as shown in Figure 1, because node E and node F are connected to the core ring system of the upper layer and the current aggregation ring system at the same time, node E and node F can be called the outbound network elements of the core ring system node.
  • Filter the candidate links in the candidate link set through the preset path algorithm and the obtained outbound network element nodes of the upper layer ring system, and further filter the candidate links in the pending link set Process processing of links to be processed, determine the current ring system, and after completing the derivation of the current ring system, update the candidate link set according to the links between the member nodes of the current ring system, so that the updated candidate link set
  • the number of candidate links is reduced, the processing range is further reduced, and the derivation speed of the next layer ring system is accelerated.
  • the ring system to which each network element node belongs can be known, so that the operation and maintenance personnel can quickly identify the hierarchical results and connections between each network element node relationship, which facilitates the processing and maintenance of network element nodes, and improves the management efficiency of network element nodes.
  • determining the member nodes of the current ring system includes: determining that the link to be processed in the set of links to be processed is a ring In the case of connection in the form of , it is determined that the member nodes of the current ring system include the network element nodes corresponding to the links to be processed in the link set to be processed; In the case of connection, obtain all network element nodes attached to the link to be processed, and use the network element node corresponding to the link to be processed in the link set to be processed and all network element nodes connected to the link to be processed as Member nodes of the current ring system.
  • the links to be processed in the set of links to be processed can form a closed ring structure, which is convenient for confirming the ring.
  • the outbound network element nodes of the system speed up the derivation of the next layer ring system.
  • the link to be processed may be at the edge of the network.
  • the network element nodes corresponding to the link to be processed in the set of links to be processed and all Network element nodes, as member nodes of the current ring system, can complete the ring system to which network element nodes at the edge of the network belong, avoid missing edge nodes, and ensure the integrity of the ring system.
  • updating the candidate link set according to the links between the member nodes of the current ring system includes: deleting the links between the member nodes of the current ring system from the candidate link set to obtain The updated set of candidate links.
  • the links between the member nodes of the current ring system can be marked to clarify the links that have been processed; and then these marked links of the current ring system can be deleted from the candidate link set. Links between member nodes can further narrow the range of candidate links, speed up the processing of remaining candidate links, and avoid repeated processing of candidate links.
  • the method further includes: marking the upper ring system as the parent ring system of the current ring system; Determine parent ring information of the current ring system; wherein, the parent ring information of the current ring system includes an identifier of the parent ring system.
  • the parent ring information is used to represent the parent-child relationship between the current ring system and the upper ring system, and the child ring system can quickly find its parent ring system through the identification of the parent ring system. It is more clear and convenient for operators to manage network element nodes.
  • determining the parent ring information of the current ring system includes: determining that the current ring system accesses different parent ring systems, determining that there are multiple parent ring systems in the current ring system; recording the current ring system Parent ring information of multiple parent ring systems.
  • the current ring system can have at most two parent ring systems.
  • the parent ring information of the two parent ring systems needs to be recorded in the parent ring information of the current ring system .
  • the fourth-level ring system corresponding to the outbound node K has two parent ring systems . It is necessary to record the parent ring information corresponding to the two parent ring systems, so as to facilitate the subsequent search of ring network resources.
  • determining the level value of the current ring system includes: determining the level value of the current ring system according to the bucket theory and node types of member nodes of the current ring system.
  • the barrel theory shows that how much water a barrel can hold does not depend on the tallest piece of wood on the barrel wall, but on the shortest piece of wood on the barrel wall.
  • determining the level value of the current ring system according to the barrel theory and the node types of the member nodes of the current ring system includes: comparing the node types of each member node in the current ring system to obtain a comparison result; According to the barrel theory and comparison results, determine the level value of the current ring system.
  • the node types of the current ring system include sink nodes and access nodes. Because the level value of the access node is smaller than the level value of the sink node, according to the barrel theory, the level value of the current ring system is determined by the level value corresponding to the access node Sure.
  • the current loop system is an open loop system.
  • the open-loop system means that the current loop system does not include the marked links and network element nodes in the upper-level ring system of the current loop system.
  • the convergence ring system is an open-loop system, and the convergence ring system includes node G and node H, and the link between node E and node G, the link between node G and node H, The link between node F and node H. But the convergence ring system does not include node E and node F, and the link between node E and node F, because both node E and node F are already marked in the upper layer ring system (ie, the core ring system) network element node, and the link between node E and node F is also a marked link in the core ring system.
  • the convergence ring system does not include node E and node F, and the link between node E and node F, because both node E and node F are already marked in the upper layer ring system (ie, the core ring system) network element node, and the link between node E and node F is also a marked link in the core ring system.
  • Using an open-loop system to represent the current ring system can avoid duplication of the ring systems to which network element nodes belong, avoid confusion among network element nodes, and facilitate management by operation and maintenance personnel.
  • the access ring system may be further divided.
  • each link in the aggregation ring system is connected in the form of a ring, and the outbound network element nodes of the aggregation ring system include: node G and node H.
  • the unmarked links corresponding to node G are first screened to obtain the first candidate link set, which includes: the link between node G and node I, The link between node I and node J, the link between node J and node K, the link between node K and node L, and the link between node L and node H.
  • the unmarked links corresponding to node H are screened to obtain a second set of candidate links
  • the second set of candidate links includes: the link between node G and node M, the link between node M and A link between nodes O, a link between node O and node P, a link between node P and node Q, and a link between node Q and node H.
  • the ring system corresponding to the first candidate link set is the third layer ring system. Then the ring system corresponding to the second candidate link set is also a layer-3 ring system.
  • the hanging nodes include: node R, node S and node T, and the connection mode between node R, node S and node T and node J is connected in the form of a chain, so it can be seen that the fourth node corresponding to the outgoing edge node J
  • the layer ring system includes: node R, node S and node T, and the link between node J and node R, the link between node R and node S, the link between node S and node T and node T link with node R.
  • the fourth-layer ring system corresponding to the outbound node K includes: node U, node V, node W, and node X, as well as the link between node K and node U, and the link between node U and node V.
  • the fourth layer ring system corresponding to the outbound node O and the outbound node P includes: node X, node W, node Y and node Z, as well as the link between node O and node X, and the link between node X and node W The link between node W and node Y, the link between node Y and node Z, and the link between node Z and node P.
  • the ring network resources included in the ring systems of each layer are clarified, so that the operation and maintenance personnel can clearly know the ring network resources of each different ring system, and it is convenient to Each network element node is managed to reduce the operation and maintenance times of the operation and maintenance personnel, and the operation and maintenance personnel can realize the unified planning of the resources in the network according to the ring network resources, and improve the utilization efficiency of the ring network resources.
  • FIG. 4 shows a schematic flow chart of the method for counting data traffic provided by the present application.
  • the data flow counting method can be applied to a data flow counting device, and the data flow counting device can be set in a network management device.
  • the data traffic statistics method in this application may include the following steps S401 and S402.
  • step S401 adopt any method for acquiring ring network resources in the embodiments of the present application to acquire ring network resources.
  • the ring network resources include attribute information of network element nodes in a certain ring system, link connection information between network element nodes in the ring system, and the like.
  • the attribute information of the network element node may include any one or more of the identifier of the network element node, the parent node information of the network element node, and the child node information of the network element node.
  • step S402 according to the ring network resources, the data traffic of each ring system in the network is counted.
  • the data traffic of the ring system includes: data traffic corresponding to all member nodes in the ring system.
  • the data flow can be adjusted in time for the ring system to balance the use of resources and avoid waste of resources.
  • counting the data traffic of each ring system in the network includes: based on the ring network resources, obtaining the number of network element nodes and the attributes of the network element nodes in the m-th layer ring system information, m is an integer greater than or equal to 1; according to the number of network element nodes in the m-th layer ring system and the attribute information of the network element nodes, the data flow statistics are performed on each network element node in the m-th layer ring system, Obtain the data traffic of the m-th layer ring system.
  • the statistics of the data flow of each network element node in the m-layer ring system can be carried out for each different network element in the m-layer ring system. Statistics are performed on the network element nodes to ensure the accuracy of the data flow obtained by the statistics. Furthermore, since m is an integer greater than or equal to 1, the data traffic of all ring systems in the network can be counted sequentially to clarify the distribution of data traffic in each layer of the ring system in the network, and to avoid excessive pressure on a certain layer of ring systems , which is convenient for operators to make timely adjustments to the ring system and improve the utilization rate of network resources.
  • the ring network resources can be obtained, and different network element nodes can be reasonably divided, and the ring system to which each network node belongs can be determined, and then Make the operation and maintenance personnel clearly know the ring network resources of different ring systems, facilitate the management of each network element node in the network, and reduce the operation and maintenance times of the operation and maintenance personnel; Statistics of the data traffic, avoiding network congestion, and realizing unified planning of resources in the network.
  • the data traffic statistics method further includes: when it is determined that there are two parent ring systems in the m-th layer ring system, respectively acquiring the network elements attached to the first parent ring system of the m-th layer ring system The node set and the network element node set attached to the second parent ring system; according to the network element node set attached to the first parent ring system and the network element node set attached to the second parent ring system, the overlapping network element nodes are determined; The data flow of the overlapping network element nodes is counted to obtain the overlapping data flow; the overlapping data flow is equally divided.
  • the data traffic corresponding to the overlapping network element nodes may belong to the data traffic corresponding to the first parent ring system, or may belong to the data traffic corresponding to the second parent ring system.
  • the overlapping data traffic is obtained by counting the data traffic of the overlapping network element nodes; the overlapping data traffic is equally divided into two parent ring systems, which can ensure the fairness of data traffic division.
  • the fourth-level ring system corresponding to the outbound node K has two parent ring systems (that is, the first parent ring system and the second parent ring system), and there are overlapping network element nodes between the network element node set attached to the first parent ring system and the network element node set attached to the second parent ring system, That is, overlapping network element nodes (ie, network element node X and network element node W) between the fourth layer ring system corresponding to the outgoing edge node K and the fourth layer ring system corresponding to the outgoing edge node O. Therefore, it is necessary to equally divide the data traffic of the network element node X and the data traffic of the network element node W obtained through statistics, so as to ensure the fairness of data traffic division.
  • FIG. 5 shows a structural diagram of a device for acquiring ring network resources provided by the present application.
  • the device for obtaining ring network resources includes the following modules: a ring system confirmation module 501 configured to process the obtained connection link information between network element nodes according to a preset path algorithm, and determine the ring to which the network element node belongs The system; the ring network resource determination module 502 is configured to determine the ring network resources according to the obtained attribute information of the network element node and the ring system to which the network element node belongs, and the ring network resources represent the resources of the ring system in the network.
  • a ring system confirmation module 501 configured to process the obtained connection link information between network element nodes according to a preset path algorithm, and determine the ring to which the network element node belongs The system
  • the ring network resource determination module 502 is configured to determine the ring network resources according to the obtained attribute information of the network element node and the ring system to which the network element node belongs, and the ring network resources represent the resources of
  • the ring system confirmation module processes the obtained connection link information between network element nodes according to the preset path algorithm, and can quickly identify the ring system to which each network element node belongs; using the ring network
  • the resource determination module determines the ring network resources according to the attribute information of the network element node and the ring system to which the network element node belongs, so that the operation and maintenance personnel can clearly know the ring network resources of each different ring system, and facilitate the management of each network element node in the network.
  • the operation and maintenance times of the operation and maintenance personnel are reduced, and the operation and maintenance personnel can realize the unified planning of the resources in the network according to the ring network resources, and improve the utilization efficiency of the ring network resources.
  • FIG. 6 shows a structural diagram of the data traffic statistics device provided by the present application.
  • the data traffic statistics device includes the following modules: an acquisition module 601 configured to acquire ring network resources by using any method for acquiring ring network resources in the embodiments of the present application; a statistical module 602 configured to, according to the ring network resources, Collect statistics on the data traffic of each ring system in the network.
  • the acquisition module uses any one of the ring network resource acquisition methods in the embodiments of the present application to obtain ring network resources, which can reasonably divide different network element nodes and determine the ring to which each network node belongs.
  • System so that the operation and maintenance personnel can clearly know the ring network resources of different ring systems, facilitate the management of each network element node in the network, and reduce the operation and maintenance times of the operation and maintenance personnel; use the statistics module to realize the network resources according to the ring network resources.
  • the data flow of each ring system is counted to avoid network congestion and realize unified planning of resources in the network.
  • FIG. 7 shows a structural diagram of the network management equipment provided by the present application.
  • the network management device 700 includes the following devices: any one of the ring network resource acquisition devices 701 in the embodiments of the present application, and/or any one of the data traffic statistics devices 702 in the embodiments of the present application.
  • the ring network resources can be obtained, different network element nodes can be reasonably divided, and the ring system to which each network node belongs can be determined, and then Make the operation and maintenance personnel clearly know the ring network resources of each different ring system, facilitate the management of each network element node in the network, and reduce the operation and maintenance times of the operation and maintenance personnel; use any data flow statistics device in the implementation mode of this application
  • the ring network resources it can realize the statistics of the data flow of each ring system in the network, avoid data loss caused by network congestion, delay increase and throughput decrease, etc. Resources are planned in a unified manner.
  • FIG. 8 shows a structural diagram of a system for acquiring ring network resources provided by the present application.
  • the system for obtaining ring network resources includes the following modules: a user network interface management entity 810 , an algorithm module 820 , a data analysis system 830 and a path calculation unit 840 .
  • the user network interface management entity 810 is configured to obtain information of each network element node in the network (for example, the information of the network element node includes the prefecture-level city information to which the network element node belongs, the level information corresponding to the network element node, etc.), According to the information of each network element node, a network topology map is generated. Then, the algorithm module 820 is called to perform algorithm derivation, and the derivation result is obtained and saved. When the network topology changes, the user network interface management entity 810 can also automatically call the algorithm module 820 to deduce the ring system, and obtain the latest ring network resources by adjusting the change information of the front and rear ring systems.
  • Data analysis system 830 configured to collect statistics on traffic data in the network. For example, the data flow information of each network element node in each ring system is counted by taking each ring system as a unit, and the statistical results are recorded to facilitate the viewing of operation and maintenance personnel.
  • the path calculation unit 840 is configured to use the ring network resources in the ring system to prune links of different scales in the ring system, so as to speed up the path calculation speed of the path calculation unit.
  • the algorithm module 820 includes: a ring system derivation submodule 821 and a ring relationship identification submodule 822 .
  • the ring system derivation sub-module 821 is configured to deduce the relationship between the ring systems of each layer, and determine the parent-child relationship between the ring systems of each layer. From the macro level, the ring system can be divided into: core ring system, convergence ring system and access ring system. Since the core ring system is the highest level ring system, the core ring system has no parent ring system. Moreover, a low-level ring system cannot serve as a parent ring system for a high-level ring system.
  • the parent ring system of the aggregation ring can only be the core ring system or the aggregation ring system, while the parent ring system of the access ring system can be any one of the access ring system, aggregation ring system, and core ring system. From the microscopic level, there may be multiple ring systems between the aggregation ring system and the access ring system, and in the ring systems at the same level, there is still the situation that one ring system is connected to another ring system.
  • the ring system B is the parent ring system of system A, and ring A
  • the system has only one parent ring system. If the two ends of the A ring system are connected to different ring systems (for example, connected to the C ring system and the D ring system at the same time), then there are two parent ring systems of the A ring system at this time (that is, A
  • the parent ring systems of the ring system include: the C ring system and the D ring system), and the information of the C ring system and the D ring system need to be stored in the A ring system as the parent ring information of the A ring system. Except for the core ring system, each ring system needs to record the information of its parent ring system.
  • the network element node of the sub-ring system connected to the parent ring system is the access node of the sub-ring system
  • the network element node of the parent ring system connected to the sub-ring system is the uplink node of the sub-ring system
  • the ring relationship identification sub-module 822 is configured to identify the ring system of the incoming network topology, and fill in the corresponding information of the ring system (for example, the information of the ring system of a certain layer includes: the type of the ring system, the level of the ring system, Any one or more of the member nodes of the ring system, the uplink nodes of the ring system, and the access nodes of the ring system).
  • the ring system derivation sub-module 821 is configured to derive the parent-child relationship between ring systems at different levels, and acquire and fill in the parent ring information of the corresponding ring system.
  • the ring relationship identification submodule 822 may adopt a ring system identification method based on a link exclusion algorithm.
  • the link exclusion algorithm is a method for calculating the link between the starting point and the ending point by selecting any determined link, using the network element nodes at both ends of the link as the starting point and the ending point of path calculation. Since there may be many different transmission paths between the start point and the end point, the division algorithm of the ring system may also be diversified.
  • the minimum link algorithm (for example, Dijkstra algorithm, Bellman-Ford algorithm, Floyd algorithm and SPFA algorithm, etc.) can be used to calculate the minimum hop path between two network element nodes (that is, the number of network element nodes included in the path minimum), the ring system determined by the minimum hop path is the smallest ring system formed by the network element nodes. It is also possible to use the longest path algorithm to calculate the longest path algorithm between two network element nodes, for example, to find out all transmission paths between two network element nodes, and then use a recursive method in all transmission paths Find the longest transmission path and determine the longest transmission path as a ring system.
  • the longest path algorithm for example, Dijkstra algorithm, Bellman-Ford algorithm, Floyd algorithm and SPFA algorithm, etc.
  • the longest path algorithm may also calculate a transmission path with the longest survival time between two network element nodes, and the maximum survival time of each transmission path is determined by the minimum survival time of the transmission path Which side to decide.
  • the link exclusion algorithm above is just an example, which can be set according to the actual situation. Other unexplained link exclusion algorithms are also within the scope of protection of this application, and will not be repeated here.
  • each core network node above the aggregation layer and links between core network nodes can be divided into core ring systems.
  • the aggregation ring system and the access ring system are determined through the link exclusion algorithm, but the aggregation ring system and the access ring system are both open-loop systems, that is, the core network nodes in the aggregation ring system need to be excluded from the aggregation ring system, and the The aggregation device nodes in the access ring system are excluded from the access ring system, etc.
  • the link to be processed is connected in the form of a chain when performing the operation of the link exclusion algorithm on a link to be processed, it is necessary to obtain all network element nodes connected to the link to be processed, and The network element node corresponding to the link to be processed and all network element nodes connected to the link to be processed are the member nodes of the current ring system,
  • the network topology only changes locally, it can still be deduced through the derivation method of the global ring system in this application. It is also possible to compare the network topology before and after the change, and determine the ring network resources that need to be adjusted according to the comparison result.
  • the algorithm module is used to quickly perform global ring system information on the information of each network element node in the network obtained by the user network interface management entity. Derivation, generating the core ring system, aggregation ring system and access ring system, ensuring that the network element nodes with a number of tens of thousands of units can be deduced within seconds, and can automatically adjust and obtain ring Network resources; the path calculation unit can use the ring network resources in the ring system to prune the links in the ring system in different scales, so as to speed up the calculation speed of the path calculation unit.
  • the data analysis system the data flow information of each network element node in each ring system is counted, and the statistical results are recorded, which is convenient for the operation and maintenance personnel to view.
  • Fig. 9 shows a schematic flow chart of the derivation method of the ring system provided by the present application.
  • the derivation of the ring systems of each layer it can be derived from high to low.
  • the core ring system is firstly derived, then the aggregation ring system is derived, and the access ring system is finally derived.
  • the connection relationship between various ring systems may include: the connection relationship between the parent ring and the child ring.
  • the derivation method of the ring system can be implemented by the following steps S901 to S907.
  • step S901 the core ring system is determined according to the minimum link algorithm and the core network devices in the network topology.
  • the network topology of a city has only one core ring. According to the grades of network element levels, the network element levels above the aggregation layer are all divided into core ring systems.
  • the core ring system is a complete connected body, which means that there is a link between any two network element nodes in the slave ring system. If the core ring system is not a complete connected body, virtual links need to be added between core network nodes to transform the core ring system into a complete connected body.
  • step S902 according to the outbound network element nodes of the upper ring system and the minimum link algorithm, a set of candidate links is obtained by screening.
  • the candidate link includes a starting network element node and a terminating network element node.
  • each candidate link can also be sorted according to the ring system level value of the terminating network element node corresponding to the candidate link in the candidate link set, and the candidate links in the candidate link set can be sorted according to the sorting result
  • Candidate links are screened to facilitate further division of the candidate link set.
  • step S903 it is judged whether the candidate link set is empty.
  • step S904 If it is determined that the candidate link set is not empty, execute step S904; otherwise, if it is determined that the candidate link set is empty, the process ends.
  • step S904 the candidate links in the candidate link set are screened to obtain a pending link set, and the member nodes of the current ring system are determined according to the connection forms of the pending links in the pending link set.
  • the candidate links in the candidate link set can be screened sequentially, and the obtained links to be processed in the pending link set can be used to calculate the path of the pending links in the pending link set using the Dijkstra algorithm.
  • Determine that the links to be processed in the set of links to be processed can form a path connected in the form of a ring then determine that the member nodes of the current ring system include the network element nodes corresponding to the links to be processed in the set of links to be processed ; If it is determined that the link to be processed in the set of links to be processed is a path connected in the form of a chain, then obtain all network element nodes connected to the link to be processed, and link the link to be processed in the set to be processed
  • the corresponding network element node and all the network element nodes attached to the link to be processed are the member nodes of the current ring system.
  • the current ring system since the current ring system is an open-loop system, the current ring system does not include the marked links and network element nodes in the upper ring system of the current ring system.
  • the parent ring information of the current ring system includes: the type of the upper ring system, the level value of the upper ring system, the attribute information of the network element nodes in the upper ring system, and any One or more, the uplink node is the network element node of the upper ring system connected to the current ring system.
  • a candidate link is deduced in the upper-layer ring system, and the start network element node and the end network element node of the candidate link are marked, then no further The candidate link is processed.
  • step S905 the set of candidate links is updated according to the links between the member nodes of the current ring system.
  • step S906 it is judged whether the updated set of candidate links is empty.
  • step S907 If it is determined that the updated link to be processed is not empty, execute step S907; otherwise, if it is determined that the updated link to be processed is empty, continue to execute step S902, that is, according to the output of the current ring system
  • the edge network element nodes and the minimum link algorithm screen to obtain the candidate link set for the derivation of the next layer ring system, and the candidate link set does not include the marked links in the current ring system, simplifying
  • the subsequent derivation of the ring system speeds up the derivation of the ring system.
  • step S907 the level value of the current ring system is determined, and the level value of the ring system to which the member nodes of the current ring system belong is marked as the level value of the current ring system.
  • all ring systems except the core ring system are open-loop systems.
  • the level value corresponding to each open-loop system is determined according to the barrel theory and the node type of each member node in the open-loop system. For example, if the node types of the member nodes in the current open-loop system include aggregation device nodes and access device nodes, then according to the barrel theory, the hierarchical value of the current open-loop system is determined to be the access layer ring system.
  • each link in the current ring system needs to be marked, so as to facilitate the derivation of the subsequent ring system and speed up the derivation of the ring system.
  • step S904 needs to be continued until the candidate paths in the candidate link set are processed.
  • the network topology if the network topology only changes locally, it can still be deduced through the derivation method of the global ring system in this application. It is also possible to compare the network topology before and after the change, determine the ring network resources that need to be adjusted according to the comparison results, and make partial modifications to the ring network resources to ensure the correctness of the ring network resources corresponding to the ring system.
  • the core ring system is determined by using the minimum link algorithm to process the connection link information between the core network devices; , cyclically screen and process each subsequent link in the candidate link set, which can quickly identify the ring system to which each network element node belongs, ensure the accuracy of the ring system at each layer, and facilitate the identification of each network element node in the network Management can reduce the operation and maintenance times of the operation and maintenance personnel, and the operation and maintenance personnel can accurately manage each network element node according to the ring system to which each network element node belongs, and improve the management efficiency of the network element node.
  • FIG. 10 shows a schematic diagram of the network topology of the network element nodes attached to the ring system provided by the present application.
  • network element nodes 1001 to 1004 are all core layer devices
  • network element nodes 1005 to 1008 are all aggregation layer devices
  • network element nodes 1009 to 1022 are all access layer devices equipment.
  • the core ring system core ⁇ 1> includes: network element nodes 1001 to 1004, and the links between these four network element nodes; the aggregation layer has two ring systems: aggregation ring system aggr ⁇ 1> and Converging ring system aggr ⁇ 2>, where,
  • the aggregation ring system aggr ⁇ 1> includes: network element node 1005 and network element node 1006, and the link between network element node 1003 and network element node 1005, the link between network element node 1005 and network element node 1006, A link between the network element node 1006 and the network element node 1004.
  • the aggregation ring system aggr ⁇ 2> includes: network element node 1007 and network element node 1008, and the link between network element node 1003 and network element node 1007, the link between network element node 1007 and network element node 1008, A link between the network element node 1008 and the network element node 1004.
  • FIG. 11 shows a schematic flowchart of a method for counting all network element nodes attached to a convergence ring system provided by the present application. As shown in FIG. 11 , the method of counting all network element nodes attached to the aggregation ring system aggr ⁇ 1> can be realized by following steps S1101 to S1105.
  • step S1101 the aggregation layer device in the aggregation ring system aggr ⁇ 1> is determined according to the network topology schematic diagram of the network element nodes attached to the ring system shown in FIG. 10 .
  • the aggregation layer devices in the aggregation ring system aggr ⁇ 1> include the network element node 1005 and the network element node 1006 .
  • step S1102 the network element node 1005 and the network element node 1006 are added to the processing queue.
  • step S1103 the sub-ring systems corresponding to the network element node 1005 and the network element node 1006 are searched in turn to obtain the sub-ring system access ⁇ 1> and the sub-ring system access ⁇ 3>.
  • the sub-ring system access ⁇ 1> includes: NE node 1009 and NE node 1011, the link between NE node 1005 and NE node 1009, and the link between NE node 1009 and NE node 1011 Road, link between network element node 1011 and network element node 1006.
  • the sub-ring system access ⁇ 2> includes: NE node 1010, NE node 1012, NE node 1015, and NE node 1016, and the link between NE node 1005 and NE node 1010, NE node 1010 and Links between network element nodes 1015, links between network element nodes 1015 and 1016, links between network element nodes 1016 and 1012, and links between network element nodes 1012 and 1006 link between.
  • step S1104 continue to process the sub-ring system access ⁇ 1> and the sub-ring system access ⁇ 3>, search for the next-level sub-ring system of the sub-ring system access ⁇ 1> and the sub-ring system access ⁇ 3>, and obtain the sub-ring system Access ⁇ 1> is the sub-ring system access ⁇ 2>, and it is determined that the sub-ring system access ⁇ 3> has no sub-ring system.
  • the sub-ring system access ⁇ 2> of the next layer includes: NE node 1013 and NE node 1014, and the link between NE node 1009 and NE node 1013, and the link between NE node 1013 and NE node 1014.
  • the aggregation ring system aggr ⁇ 1> includes the following three sub-ring systems: sub-ring system access ⁇ 1>, sub-ring system access ⁇ 3>, and sub-ring system access ⁇ 3> The next sub-ring system access ⁇ 2> of the system access ⁇ 1>.
  • step S1105 all the network element nodes in the sub-ring system access ⁇ 1>, the sub-ring system access ⁇ 3>, and the sub-ring system access ⁇ 2> under the sub-ring system access ⁇ 1> are used as the aggregation ring system The network element node attached to aggr ⁇ 1>.
  • the network element nodes 1005 and 1006 belonging to the same level are sequentially processed to obtain the sub-ring system access ⁇ 1> and sub-ring System access ⁇ 3>, further, continue to process the sub-ring system access ⁇ 1> and sub-ring system access ⁇ 3>, and search for the sub-rings of the sub-ring system access ⁇ 1> and sub-ring system access ⁇ 3> system, so that all sub-ring systems corresponding to network element nodes of the same level and the sub-ring systems of the next layer can be found out step by step, ensuring the accuracy of sub-ring systems at all levels, and at the same time speeding up the search for network element nodes of the same level Processing speed, clarify the attribution of all network element nodes connected to the ring system, and ensure the accuracy of the connected nodes.
  • Fig. 12 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the method for acquiring ring network resources and the device thereof, or the method for counting data traffic and the device thereof according to the present application.
  • a computing device 1200 includes an input device 1201 , an input interface 1202 , a central processing unit 1203 , a memory 1204 , an output interface 1205 , and an output device 1206 .
  • the input interface 1202, the central processing unit 1203, the memory 1204, and the output interface 1205 are connected to each other through the bus 1207, and the input device 1201 and the output device 1206 are respectively connected to the bus 1207 through the input interface 1202 and the output interface 1205, and then connected to the computing device 1200 other component connections.
  • the input device 1201 receives input information from the outside, and transmits the input information to the central processing unit 1203 through the input interface 1202; the central processing unit 1203 processes the input information based on computer-executable instructions stored in the memory 1204 to generate output information, temporarily or permanently store the output information in the memory 1204, and then transmit the output information to the output device 1206 through the output interface 1205; the output device 1206 outputs the output information to the outside of the computing device 1200 for the user to use.
  • the computing device shown in FIG. 12 may be implemented as an electronic device, and the electronic device may include: a memory configured to store a program; a processor configured to run the program stored in the memory to Execute the method for acquiring ring network resources described in the foregoing embodiments.
  • the computing device shown in FIG. 12 may be implemented as a ring network resource acquisition system, and the ring network resource acquisition system may include: a memory configured to store a program; a processor configured to The program stored in the memory is run to execute the method for acquiring ring network resources described in the above embodiments.
  • the computing device shown in FIG. 12 may be implemented as an electronic device, and the electronic device may include: a memory configured to store a program; a processor configured to run the program stored in the memory to Execute the data traffic statistics method described in the above implementation manner.
  • the computing device shown in FIG. 12 can be implemented as a data traffic statistics system, and the data traffic statistics system can include: a memory configured to store programs; a processor configured to run the programs stored in the memory. A program to execute the data flow statistics method described in the above embodiments.
  • Computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code written in any combination of one or more programming languages or object code.
  • ISA instruction set architecture
  • Any logic flow block diagrams in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules and functions, or may represent a combination of program steps and logic circuits, modules and functions.
  • Computer programs can be stored on memory.
  • the memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, read-only memory (ROM), random-access memory (RAM), optical memory devices and systems (digital versatile disc DVD or CD), etc.
  • Computer readable media may include non-transitory storage media.
  • the data processor can be of any type suitable for the local technical environment, such as but not limited to general purpose computer, special purpose computer, microprocessor, digital signal processor (DSP), application specific integrated circuit (ASIC), programmable logic device (FGPA) and processors based on multi-core processor architectures.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FGPA programmable logic device

Abstract

The present application provides a ring network resource obtaining method, and a data traffic statistics method, apparatus and device. The ring network resource obtaining method comprises: processing obtained connection link information between network element nodes according to a preset path algorithm, and determining a ring system to which the network element nodes belong; and determining ring network resources according to obtained attribute information of the network element nodes and the ring system to which the network element nodes belong, the ring network resources representing resources of the ring system in a network.

Description

环网资源的获取方法、数据流量统计方法、装置和设备Ring network resource acquisition method, data traffic statistics method, device and equipment
相关申请的交叉引用Cross References to Related Applications
本申请要求2021年6月4日提交给中国专利局的第202110623783.9号专利申请的优先权,其全部内容通过引用合并于此。This application claims priority to Patent Application No. 202110623783.9 filed with the China Patent Office on June 4, 2021, the entire contents of which are hereby incorporated by reference.
技术领域technical field
本申请涉及但不限于通信技术领域。This application relates to but not limited to the field of communication technology.
背景技术Background technique
在对通信网络的网络性能进行分析和资源整合的过程中,由于运营商服务器对通信网络的配置是不断变化的,这些变化可能影响各个网元设备所属的通信网络的层次,以及各个网元设备之间的资源信息等。In the process of analyzing the network performance of the communication network and integrating resources, since the configuration of the communication network by the operator's server is constantly changing, these changes may affect the level of the communication network to which each network element device belongs, and each network element device resource information etc.
如果运营商网络的组网环境发生变化,运维人员无法明确获知各个网元节点之间的所属关系以及各个网元节点之间的资源信息,导致无法对通信网络中的资源进行统一规划,降低了网络资源的利用效率。If the networking environment of the operator's network changes, the operation and maintenance personnel cannot clearly know the affiliation relationship between each network element node and the resource information between each network element node, resulting in the inability to plan the resources in the communication network uniformly, reducing the improve the utilization efficiency of network resources.
发明内容Contents of the invention
本申请提供一种环网资源的获取方法、数据流量统计方法、装置和设备。The present application provides a method for acquiring ring network resources, a data flow statistics method, a device and equipment.
本申请提供一种环网资源的获取方法,包括:根据预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,确定网元节点所属的环系统;根据获取到的网元节点的属性信息和网元节点所属的环系统,确定环网资源,环网资源表示网络中的环系统的资源。The present application provides a method for acquiring ring network resources, including: processing the obtained connection link information between network element nodes according to a preset path algorithm, and determining the ring system to which the network element node belongs; according to the obtained The attribute information of the network element node and the ring system to which the network element node belongs determine the ring network resource, and the ring network resource represents the resource of the ring system in the network.
本申请提供一种数据流量统计方法,包括:采用本申请中的任意一种环网资源的获取方法,获取环网资源;根据环网资源,统计网络 中的各个环系统的数据流量。This application provides a data flow statistics method, including: adopting any ring network resource acquisition method in this application to obtain ring network resources; according to the ring network resources, counting the data flow of each ring system in the network.
本申请提供一种环网资源的获取装置,其包括:环系统确认模块,被配置为根据预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,确定网元节点所属的环系统;环网资源确定模块,被配置为根据获取到的网元节点的属性信息和网元节点所属的环系统,确定环网资源,环网资源表示网络中的环系统的资源。The present application provides a device for obtaining ring network resources, which includes: a ring system confirmation module configured to process the obtained connection link information between network element nodes according to a preset path algorithm, and determine the network element nodes The ring system to which it belongs; the ring network resource determining module, configured to determine the ring network resources according to the acquired attribute information of the network element node and the ring system to which the network element node belongs, and the ring network resources represent the resources of the ring system in the network.
本申请提供一种数据流量统计装置,其包括:获取模块,被配置为采用本申请中的任意一种环网资源的获取方法,获取环网资源;统计模块,被配置为根据环网资源,统计网络中的各个环系统的数据流量。The present application provides a data traffic statistics device, which includes: an acquisition module configured to acquire ring network resources by using any method for acquiring ring network resources in the present application; a statistical module configured to, according to the ring network resources, Collect statistics on the data traffic of each ring system in the network.
本申请提供一种网管设备,包括:本申请中的任意一种环网资源的获取装置,和/或,本申请中的任意一种数据流量统计装置。The present application provides a network management device, including: any device for acquiring ring network resources in the present application, and/or any data traffic statistics device in the present application.
本申请提供一种电子设备,包括:一个或多个处理器;存储器,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器实现本申请的任意一种环网资源的获取方法,或,实现本申请中的任意一种数据流量统计方法。The present application provides an electronic device, including: one or more processors; memory, on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, one or more The processor implements any method for acquiring ring network resources in this application, or implements any method for counting data traffic in this application.
本申请提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现本申请中的任意一种环网资源的获取方法,或,实现本申请中的任意一种数据流量统计方法。The present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, any method for acquiring ring network resources in this application is realized, or any method in this application is realized. A data traffic statistics method.
附图说明Description of drawings
图1示出本申请中的网络拓扑的分层结构示意图。FIG. 1 shows a schematic diagram of the layered structure of the network topology in this application.
图2示出本申请提供的环网资源的获取方法的流程示意图。FIG. 2 shows a schematic flowchart of a method for acquiring ring network resources provided by the present application.
图3示出本申请提供的环网资源的获取方法的流程示意图。FIG. 3 shows a schematic flowchart of a method for acquiring ring network resources provided by the present application.
图4示出本申请提供的数据流量统计方法的流程示意图。FIG. 4 shows a schematic flow chart of the method for counting data traffic provided by the present application.
图5示出本申请提供的环网资源的获取装置的组成结构图。FIG. 5 shows a structural diagram of a device for acquiring ring network resources provided by the present application.
图6示出本申请提供的数据流量统计装置的组成结构图。FIG. 6 shows a structural diagram of the data traffic statistics device provided by the present application.
图7示出本申请提供的网管设备的组成结构图。FIG. 7 shows a structural diagram of the network management equipment provided by the present application.
图8示出本申请提供的环网资源的获取系统的组成结构图。FIG. 8 shows a structural diagram of a system for acquiring ring network resources provided by the present application.
图9示出本申请提供的环系统的推导方法的流程示意图。Fig. 9 shows a schematic flow chart of the derivation method of the ring system provided by the present application.
图10示出本申请提供的环系统下挂的网元节点的网络拓扑示意图。FIG. 10 shows a schematic diagram of the network topology of the network element nodes attached to the ring system provided by the present application.
图11示出本申请提供的统计汇聚环系统下挂的所有网元节点的方法的流程示意图。FIG. 11 shows a schematic flowchart of a method for counting all network element nodes attached to a convergence ring system provided by the present application.
图12示出能够实现根据本申请的环网资源的获取方法及其装置,或,数据流量统计方法及其装置的计算设备的示例性硬件架构的结构图。Fig. 12 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the method for acquiring ring network resources and the device thereof, or the method for counting data traffic and the device thereof according to the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施方式及实施方式中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manner of the present application will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the implementation modes and the features in the implementation modes in the present application can be combined arbitrarily with each other.
图1示出本申请中的网络拓扑的分层结构示意图。网络拓扑的分层结构通常包括核心环系统、汇聚环系统和接入环系统。如图1所示,核心环系统是闭环系统,核心环系统包括:节点A、节点B、节点C、节点D、节点E和节点F,以及以上各个节点之间的链路;汇聚环系统是开环系统,该汇聚环系统包括节点G和节点H,以及节点E与节点G之间的链路、节点G与节点H之间的链路、节点F与节点H之间的链路;接入环系统包括如下节点以及以下各个节点之间的链路:节点I、节点M、节点L、节点Q、节点J、节点K、节点O、节点P、节点R、节点S、节点T、节点U、节点V、节点X、节点W、节点Z和节点Y。核心环系统、汇聚环系统和接入环系统之间构成上下层关系。需要说明的是,环系统作为一种复合资源实体,包含了网元节点以及各个节点之间的链路等基础资源,在网管拓扑上呈现为网元与链路构成的组网结构。FIG. 1 shows a schematic diagram of the layered structure of the network topology in this application. The hierarchical structure of network topology usually includes core ring system, aggregation ring system and access ring system. As shown in Figure 1, the core ring system is a closed-loop system. The core ring system includes: node A, node B, node C, node D, node E, and node F, as well as links between the above nodes; the aggregation ring system is An open-loop system, the converging ring system includes node G and node H, and a link between node E and node G, a link between node G and node H, and a link between node F and node H; The ring-entry system includes the following nodes and links between the following nodes: node I, node M, node L, node Q, node J, node K, node O, node P, node R, node S, node T, node U, Node V, Node X, Node W, Node Z, and Node Y. The core ring system, the aggregation ring system and the access ring system form an upper and lower layer relationship. It should be noted that, as a composite resource entity, the ring system includes basic resources such as network element nodes and links between nodes, and presents a network structure composed of network elements and links in the network management topology.
如果运营商网络的组网环境发生变化,这些变化可能影响到所属的网络层次或者包含的网元节点对应的资源情况。运维人员需要从网络拓扑上识别出来对应的变化信息,并手工录入这些变化信息至网管设备的环系统资源管理功能模块中,不仅耗费人力资源,而且也无 法保证网络拓扑的变化情况的正确性。并且,运维人员也无法快速准确的获知各个网元节点之间的所属关系以及各个网元节点之间的资源信息,导致不能对通信网络中的资源进行统一规划,降低了网络资源的利用效率。如何快速准确的识别出环网资源,成为亟待解决的问题。If the networking environment of the operator's network changes, these changes may affect the network layer it belongs to or the resources corresponding to the included network element nodes. Operation and maintenance personnel need to identify the corresponding change information from the network topology, and manually enter these change information into the ring system resource management function module of the network management device, which not only consumes human resources, but also cannot guarantee the correctness of the network topology changes . Moreover, the operation and maintenance personnel cannot quickly and accurately know the affiliation relationship between each network element node and the resource information between each network element node, resulting in the inability to uniformly plan the resources in the communication network and reducing the utilization efficiency of network resources . How to quickly and accurately identify ring network resources has become an urgent problem to be solved.
图2示出本申请提供的环网资源的获取方法的流程示意图。该环网资源的获取方法可应用于环网资源的获取装置,该环网资源的获取装置可以设置于网管设备中。如图2所示,本申请中的环网资源的获取方法可以包括以下步骤S201和S202。FIG. 2 shows a schematic flowchart of a method for acquiring ring network resources provided by the present application. The method for obtaining ring network resources can be applied to a device for obtaining ring network resources, and the device for obtaining ring network resources can be set in a network management device. As shown in FIG. 2 , the method for acquiring ring network resources in this application may include the following steps S201 and S202.
在步骤S201,根据预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,确定网元节点所属的环系统。In step S201, the obtained connection link information between network element nodes is processed according to a preset path algorithm, and the ring system to which the network element nodes belong is determined.
其中,预设的路径算法可以是链路排除算法,该链路排除算法是通过选择任意一条确定的链路,将链路两端的网元节点作为算路的起点和终点,对起点和终点之间的链路进行运算的方法。因起点和终点之间可以有多种不同的传输路径,故环系统的划分算法也可以多样化。预设的路径算法还可以包括:最短路径算法或最长路径算法。其中,最短路径算法是计算两个网元节点之间的最小跳路径(即路径中包括的网元节点的数量最少)的算法,例如,最小链路算法可以是迪克斯特拉(Dijkstra)算法、贝尔曼-福特(Bellman-Ford)算法、弗洛伊德(Floyd)算法和最短路径快速算法(Shortest Path Faster Algorithm,SPFA)中的任意一种或几种。最长路径算法是计算两个网元节点之间的最长路径的算法,例如,找出两个网元节点之间的所有传输路径,然后使用递归的方式,在所有传输路径中查找获得最长的传输路径。需要说明的是,以上对于预设的路径算法仅是举例说明,可根据实际情况进行具有设定,其他未说明的预设的路径算法也在本申请的保护范围之内,在此不再赘述。Wherein, the preset path algorithm may be a link exclusion algorithm. The link exclusion algorithm is to select any determined link, and use the network element nodes at both ends of the link as the starting point and the end point of the path calculation. The method of performing calculations on the links between them. Since there may be many different transmission paths between the start point and the end point, the division algorithm of the ring system may also be diversified. The preset path algorithm may also include: a shortest path algorithm or a longest path algorithm. Wherein, the shortest path algorithm is an algorithm for calculating the minimum hop path between two network element nodes (that is, the number of network element nodes included in the path is the least), for example, the minimum link algorithm may be Dijkstra (Dijkstra) algorithm , Bellman-Ford (Bellman-Ford) algorithm, Floyd (Floyd) algorithm and shortest path fast algorithm (Shortest Path Faster Algorithm, SPFA) in any one or more. The longest path algorithm is an algorithm for calculating the longest path between two network element nodes. For example, find all transmission paths between two network element nodes, and then use a recursive method to find the longest path among all transmission paths. long transmission path. It should be noted that the preset path algorithm above is only an example, and can be set according to the actual situation. Other unexplained preset path algorithms are also within the scope of protection of this application, and will not be repeated here. .
在步骤S202,根据获取到的网元节点的属性信息和网元节点所属的环系统,确定环网资源。In step S202, ring network resources are determined according to the acquired attribute information of the network element node and the ring system to which the network element node belongs.
其中,环网资源表示网络中的环系统的资源。例如,环网资源可以包括某个环系统中的网元节点的属性信息、以及该环系统中的各个 网元节点之间的链路连接信息等,其中的网元节点的属性信息可以包括网元节点的标识、网元节点的父节点信息和网元节点的子节点信息中的任意一种或几种。通过识别出不同环系统的环网资源,方便运维人员对网络中的各个网元节点进行管理,减少运维人员的操作维护次数。Wherein, the ring network resources represent the resources of the ring system in the network. For example, ring network resources may include attribute information of network element nodes in a certain ring system, link connection information between network element nodes in the ring system, etc., wherein the attribute information of network element nodes may include network Any one or more of the identity of the element node, the parent node information of the network element node, and the child node information of the network element node. By identifying the ring network resources of different ring systems, it is convenient for the operation and maintenance personnel to manage each network element node in the network, and the operation and maintenance times of the operation and maintenance personnel are reduced.
在本实施方式中,通过预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,能够快速识别出各个网元节点所属的环系统;根据网元节点的属性信息和网元节点所属的环系统确定环网资源,使运维人员明确获知各个不同环系统的环网资源,方便对网络中的各个网元节点进行管理,减少运维人员的操作维护次数,并且,运维人员可以根据该环网资源,实现对网络中的资源进行统一规划,提升环网资源的利用效率。In this embodiment, the obtained connection link information between network element nodes is processed through a preset path algorithm, and the ring system to which each network element node belongs can be quickly identified; according to the attribute information of the network element nodes and The ring system to which the network element node belongs determines the ring network resources, so that the operation and maintenance personnel can clearly know the ring network resources of each different ring system, which facilitates the management of each network element node in the network, reduces the number of operation and maintenance of the operation and maintenance personnel, and, According to the ring network resources, the operation and maintenance personnel can realize the unified planning of the resources in the network and improve the utilization efficiency of the ring network resources.
图3示出本申请提供的环网资源的获取方法的流程示意图。如图3所示,该环网资源的获取方法可应用于环网资源的获取装置,该环网资源的获取装置可以设置于网管设备中。如图3所示,本申请中的环网资源的获取方法可以包括以下步骤S301至S304。FIG. 3 shows a schematic flowchart of a method for acquiring ring network resources provided by the present application. As shown in FIG. 3 , the method for obtaining ring network resources can be applied to a device for obtaining ring network resources, and the device for obtaining ring network resources can be set in a network management device. As shown in FIG. 3 , the method for acquiring ring network resources in this application may include the following steps S301 to S304.
在步骤S301,在确定网元节点的节点类型是核心网节点的情况下,确定核心网节点所属的环系统是首层环系统,并标记核心网节点之间的链路为首层环系统中的核心网链路。In step S301, when it is determined that the node type of the network element node is a core network node, it is determined that the ring system to which the core network node belongs is the first layer ring system, and the link between the core network nodes is marked as the first layer ring system Core network link.
其中,网元节点的属性信息包括节点类型。节点类型可包括核心网节点、汇聚节点和接入节点中的任意一种或几种。若将网络划分为N层,则网元节点的节点类型可以是首层环系统中的节点、第二层环系统中的节点、……、第N层环系统中的节点,N为大于或等于1的整数。Wherein, the attribute information of the network element node includes the node type. The node type may include any one or more of core network nodes, aggregation nodes and access nodes. If the network is divided into N layers, the node types of network element nodes can be nodes in the ring system of the first layer, nodes in the ring system of the second layer, ..., nodes in the ring system of the Nth layer, and N is greater than or An integer equal to 1.
因一个地市级的网络拓扑关系图中只有一个核心环系统,故在确定网元节点的节点类型是核心网节点的情况下,可以将各个核心网节点、以及各个核心网节点之间的链路均划分为核心环系统。为了方便对其他层环系统的划分,确定首层环系统(即核心环系统)为闭环系统。Because there is only one core ring system in a city-level network topology diagram, when the node type of the network element node is determined to be a core network node, each core network node and the link between each core network node can be Roads are divided into core ring systems. In order to facilitate the division of other layer ring systems, the first layer ring system (that is, the core ring system) is determined as a closed-loop system.
在步骤S302,在确定网元节点的节点类型不是核心网节点的情 况下,获取候选链路集合。In step S302, when it is determined that the node type of the network element node is not a core network node, a candidate link set is acquired.
需要说明的是,候选链路集合中的候选链路对应的网元节点的节点类型可以是汇聚节点或接入节点,也可以是第二层环系统中的节点、第三层环系统中的节点、……、第N层环系统中的节点中的任意一种类型。It should be noted that the node type of the network element node corresponding to the candidate link in the candidate link set may be a convergence node or an access node, or a node in the second layer ring system, or a node in the third layer ring system. Any type of node, ..., node in the N-th layer ring system.
通过获取候选链路集合,能够方便对除核心网节点以外的其他网元节点进行处理,判断除核心网节点以外的其他网元节点所属的环系统。By obtaining the candidate link set, it is possible to conveniently process other network element nodes except the core network node, and determine the ring system to which the other network element nodes except the core network node belong.
在步骤S303,根据预设的路径算法对候选链路集合中的候选链路信息进行处理,确定网元节点所属的环系统。In step S303, the candidate link information in the candidate link set is processed according to a preset path algorithm to determine the ring system to which the network element node belongs.
其中,候选链路信息可以包括:候选链路对应的起始网元节点的节点类型、候选链路对应的终止网元节点的节点类型、候选链路的方向中的任意一种或几种。通过预设的路径算法对候选链路集合中的候选链路信息进行处理,能够获知各个网元节点之间的连接形式,进而确定网元节点所属的环系统,加快对网元节点的处理速度。使运维人员能够快速获得各个网元节点所属的环系统,提升对网元节点的管理效率。Wherein, the candidate link information may include any one or more of: the node type of the starting network element node corresponding to the candidate link, the node type of the terminating network element node corresponding to the candidate link, and the direction of the candidate link. Through the preset path algorithm to process the candidate link information in the candidate link set, the connection form between each network element node can be known, and then the ring system to which the network element node belongs can be determined, and the processing speed of the network element node can be accelerated. . The operation and maintenance personnel can quickly obtain the ring system to which each network element node belongs, and improve the management efficiency of network element nodes.
在步骤S304,根据获取到的网元节点的属性信息和网元节点所属的环系统,确定环网资源。In step S304, ring network resources are determined according to the acquired attribute information of the network element node and the ring system to which the network element node belongs.
需要说明的是,本实施方式中的步骤S304与上一实施方式中的步骤S202相同,在此不再赘述。It should be noted that step S304 in this embodiment is the same as step S202 in the previous embodiment, and will not be repeated here.
在本实施方式中,通过在确定网元节点的节点类型是核心网节点的情况下,确定核心网节点所属的环系统是首层环系统,方便后续对其他层环系统的划分;在确定网元节点的节点类型不是核心网节点的情况下,获取候选链路集合,通过筛选获得候选链路集合,能够缩小识别范围,针对候选链路集合中的各个候选链路做进一步的环系统的推导,加快环系统的识别速度;根据预设的路径算法对候选链路集合中的候选链路信息进行处理,确定网元节点所属的环系统,方便运维人员对对应的环系统中的网元节点进行管理,提升对网元节点的管理效率。根据获取到的网元节点的属性信息和网元节点所属的环系统, 确定环网资源,通过该环网资源实现对网络中的资源进行统一规划,提升资源的利用效率。In this embodiment, by determining that the node type of the network element node is a core network node, it is determined that the ring system to which the core network node belongs is the first layer ring system, which facilitates subsequent division of other layer ring systems; When the node type of the meta node is not a core network node, the candidate link set is obtained, and the candidate link set is obtained by screening, which can narrow the identification range, and further deduce the ring system for each candidate link in the candidate link set , to speed up the recognition speed of the ring system; according to the preset path algorithm, the candidate link information in the candidate link set is processed to determine the ring system to which the network element node belongs, so that it is convenient for the operation and maintenance personnel to identify the network elements in the corresponding ring system Nodes are managed to improve the management efficiency of network element nodes. According to the obtained attribute information of the network element node and the ring system to which the network element node belongs, the ring network resources are determined, and the resources in the network are planned uniformly through the ring network resources, so as to improve resource utilization efficiency.
在一些示例性实施方式中,在标记核心网节点之间的链路为首层环系统中的核心网链路之前,所述方法还包括:获取核心网链路集合;根据预设的路径算法对核心网链路集合中的核心网链路进行处理,确定核心网链路集合中的核心网链路的连接形式;根据核心网链路集合中的核心网链路的连接形式,确定是否需要在核心网节点之间添加虚拟链路,虚拟链路用于使首层环系统构成一个连通体。In some exemplary embodiments, before marking the links between the core network nodes as the core network links in the first layer ring system, the method further includes: obtaining a set of core network links; The core network links in the core network link set are processed to determine the connection form of the core network links in the core network link set; according to the connection form of the core network links in the core network link set, determine whether to A virtual link is added between the core network nodes, and the virtual link is used to make the first-layer ring system form a connected body.
其中,连通体表示从环系统中的任意两个网元节点之间都存在一条链路。虚拟链路是在任意两个网元节点之间建立的一条逻辑上的连接通道,而非实际存在的物理通道。通过在两个核心网节点之间添加虚拟链路,以使该核心环系统转化为一个完整的连通体,方便对后续环系统的推导。Wherein, the connected body means that there is a link between any two network element nodes in the slave ring system. A virtual link is a logical connection channel established between any two network element nodes, rather than an actual physical channel. By adding a virtual link between two core network nodes, the core ring system is transformed into a complete connected body, which facilitates the derivation of subsequent ring systems.
在一些示例性实施方式中,根据预设的路径算法对候选链路集合中的候选链路信息进行处理,确定网元节点所属的环系统,包括:根据预设的路径算法和获取到的上一层环系统的出边的网元节点,对候选链路集合中的候选链路进行筛选,获得待处理链路集合,并确定待处理链路集合中的待处理链路的连接形式,待处理链路集合包括k条待处理链路,k为大于或等于1的整数;根据待处理链路集合中的待处理链路的连接形式,确定当前环系统的成员节点;确定当前环系统的层级值,并标记当前环系统的成员节点所属的环系统的层级值是当前环系统的层级值;根据当前环系统的成员节点之间的链路,更新候选链路集合;根据预设的路径算法和当前环系统的出边的网元节点,对更新后的候选链路集合中的候选链路信息进行处理,确定更新后的候选链路集合中的网元节点所属的环系统。In some exemplary embodiments, processing the candidate link information in the candidate link set according to a preset path algorithm to determine the ring system to which the network element node belongs includes: according to the preset path algorithm and the obtained upper The outbound network element node of the layer-1 ring system screens the candidate links in the candidate link set to obtain the pending link set, and determines the connection form of the pending link set in the pending link set. The set of processing links includes k links to be processed, and k is an integer greater than or equal to 1; according to the connection form of the links to be processed in the set of links to be processed, determine the member nodes of the current ring system; determine the number of nodes in the current ring system Level value, and mark the level value of the ring system to which the member nodes of the current ring system belong is the level value of the current ring system; update the candidate link set according to the links between the member nodes of the current ring system; according to the preset path The algorithm and the outgoing network element nodes of the current ring system process the candidate link information in the updated candidate link set to determine the ring system to which the network element nodes in the updated candidate link set belong.
其中,候选链路集合中的候选链路可以是未被标记为核心网链路的链路,也可以是上一层环系统的出边的网元节点对应的未被标记的链路。上一层环系统的出边的网元节点表示的是当前环系统中与上一层环系统相连接的网元节点。例如,如图1所示,因节点E和节点F同时连接上一层的核心环系统,和当前的汇聚环系统,故可以将节 点E和节点F称为核心环系统的出边的网元节点。The candidate links in the candidate link set may be links that are not marked as core network links, or may be unmarked links corresponding to outgoing network element nodes of the upper ring system. The outbound network element nodes of the upper ring system represent the network element nodes connected to the upper ring system in the current ring system. For example, as shown in Figure 1, because node E and node F are connected to the core ring system of the upper layer and the current aggregation ring system at the same time, node E and node F can be called the outbound network elements of the core ring system node.
通过预设的路径算法和获取到的上一层环系统的出边的网元节点,对候选链路集合中的候选链路进行筛选,并进一步地对筛选获得的待处理链路集合中的待处理链路进程处理,确定当前环系统,并在完成当前环系统的推导之后,根据当前环系统的成员节点之间的链路,更新候选链路集合,能够使更新后的候选链路集合中的候选链路减少,进一步缩小处理范围,加快下一层环系统的推导速度。通过循环的对更新后的候选链路集合中的候选链路进行处理,能够获知各个网元节点的所属的环系统,使运维人员可快速的识别各个网元节点之间的层级结果以及连接关系,方便对网元节点的处理和维护,提升对网元节点的管理效率。Filter the candidate links in the candidate link set through the preset path algorithm and the obtained outbound network element nodes of the upper layer ring system, and further filter the candidate links in the pending link set Process processing of links to be processed, determine the current ring system, and after completing the derivation of the current ring system, update the candidate link set according to the links between the member nodes of the current ring system, so that the updated candidate link set The number of candidate links is reduced, the processing range is further reduced, and the derivation speed of the next layer ring system is accelerated. By cyclically processing the candidate links in the updated candidate link set, the ring system to which each network element node belongs can be known, so that the operation and maintenance personnel can quickly identify the hierarchical results and connections between each network element node relationship, which facilitates the processing and maintenance of network element nodes, and improves the management efficiency of network element nodes.
在一些示例性实施方式中,根据待处理链路集合中的待处理链路的连接形式,确定当前环系统的成员节点,包括:在确定待处理链路集合中的待处理链路是以环的形式连接的情况下,确定当前环系统的成员节点包括待处理链路集合中的待处理链路对应的网元节点;在确定待处理链路集合中的待处理链路是以链的形式连接的情况下,获取待处理链路下挂的所有网元节点,并将待处理链路集合中的待处理链路对应的网元节点以及待处理链路下挂的所有网元节点,作为当前环系统的成员节点。In some exemplary implementations, according to the connection form of links to be processed in the set of links to be processed, determining the member nodes of the current ring system includes: determining that the link to be processed in the set of links to be processed is a ring In the case of connection in the form of , it is determined that the member nodes of the current ring system include the network element nodes corresponding to the links to be processed in the link set to be processed; In the case of connection, obtain all network element nodes attached to the link to be processed, and use the network element node corresponding to the link to be processed in the link set to be processed and all network element nodes connected to the link to be processed as Member nodes of the current ring system.
其中,在确定待处理链路集合中的待处理链路是以环的形式连接的情况下,表征待处理链路集合中的待处理链路可以形成一个封闭的环状结构,方便确认该环系统的出边的网元节点,加快对下一层环系统的推导速度。在确定待处理链路集合中的待处理链路是以链的形式连接的情况下,表征待处理链路集合中的待处理链路无法形成闭合的环路,该待处理链路集合中的待处理链路可能处于网络边缘,通过获取待处理链路下挂的所有网元节点,并将待处理链路集合中的待处理链路对应的网元节点以及待处理链路下挂的所有网元节点,作为当前环系统的成员节点,能够完善处于网络边缘的网元节点的所属的环系统,避免边缘节点的遗漏,保证环系统的完整性。Among them, when it is determined that the links to be processed in the set of links to be processed are connected in the form of a ring, the links to be processed in the set of links to be processed can form a closed ring structure, which is convenient for confirming the ring. The outbound network element nodes of the system speed up the derivation of the next layer ring system. In the case that it is determined that the links to be processed in the set of links to be processed are connected in the form of chains, it indicates that the links to be processed in the set of links to be processed cannot form a closed loop, and the links in the set of links to be processed cannot form a closed loop. The link to be processed may be at the edge of the network. By obtaining all the network element nodes attached to the link to be processed, the network element nodes corresponding to the link to be processed in the set of links to be processed and all Network element nodes, as member nodes of the current ring system, can complete the ring system to which network element nodes at the edge of the network belong, avoid missing edge nodes, and ensure the integrity of the ring system.
在一些示例性实施方式中,根据当前环系统的成员节点之间的 链路,更新候选链路集合,包括:从候选链路集合中,删除当前环系统的成员节点之间的链路,获得更新后的候选链路集合。In some exemplary embodiments, updating the candidate link set according to the links between the member nodes of the current ring system includes: deleting the links between the member nodes of the current ring system from the candidate link set to obtain The updated set of candidate links.
其中,在确定当前环系统之后,可以将当前环系统的成员节点之间的链路进行标记,明确已经处理完的链路;然后从候选链路集合中,删除这些标记过的当前环系统的成员节点之间的链路,可使候选链路的范围得到进一步的缩小,加快对剩余候选链路的处理速度,避免对候选链路的重复处理。Among them, after the current ring system is determined, the links between the member nodes of the current ring system can be marked to clarify the links that have been processed; and then these marked links of the current ring system can be deleted from the candidate link set. Links between member nodes can further narrow the range of candidate links, speed up the processing of remaining candidate links, and avoid repeated processing of candidate links.
在一些示例性实施方式中,在根据当前环系统的成员节点之间的链路,更新候选链路集合之后,所述方法还包括:标记上一层环系统是当前环系统的父环系统;确定当前环系统的父环信息;其中,当前环系统的父环信息包括父环系统的标识。In some exemplary embodiments, after updating the set of candidate links according to the links between the member nodes of the current ring system, the method further includes: marking the upper ring system as the parent ring system of the current ring system; Determine parent ring information of the current ring system; wherein, the parent ring information of the current ring system includes an identifier of the parent ring system.
其中,父环信息用于表征当前环系统与上一层环系统之间的父子关系,子环系统可以通过父环系统的标识快速找到其父环系统,使各个环系统之间的上下级结构更加明确,方便运营人员对网元节点的管理。Among them, the parent ring information is used to represent the parent-child relationship between the current ring system and the upper ring system, and the child ring system can quickly find its parent ring system through the identification of the parent ring system. It is more clear and convenient for operators to manage network element nodes.
在一些示例性实施方式中,确定当前环系统的父环信息,包括:在确定当前环系统接入不同的父环系统的情况下,确定当前环系统存在多个父环系统;记录当前环系统的多个父环系统的父环信息。In some exemplary embodiments, determining the parent ring information of the current ring system includes: determining that the current ring system accesses different parent ring systems, determining that there are multiple parent ring systems in the current ring system; recording the current ring system Parent ring information of multiple parent ring systems.
其中,当前环系统最多可以有两个父环系统,当确定当前环系统有两个父环系统时,需要将这两个父环系统的父环信息均记录到当前环系统的父环信息中。Among them, the current ring system can have at most two parent ring systems. When it is determined that the current ring system has two parent ring systems, the parent ring information of the two parent ring systems needs to be recorded in the parent ring information of the current ring system .
例如,如图1所示,由于出边节点K和出边节点O连接的是两个不同的第三层环系统,因此,出边节点K对应的第四层环系统有两个父环系统。需要将这两个父环系统对应的父环信息均记录下来,方便后续环网资源的查找。For example, as shown in Figure 1, since the outbound node K and the outbound node O are connected to two different third-level ring systems, the fourth-level ring system corresponding to the outbound node K has two parent ring systems . It is necessary to record the parent ring information corresponding to the two parent ring systems, so as to facilitate the subsequent search of ring network resources.
在一些示例性实施方式中,确定当前环系统的层级值,包括:根据木桶理论和当前环系统的成员节点的节点类型,确定当前环系统的层级值。In some exemplary implementations, determining the level value of the current ring system includes: determining the level value of the current ring system according to the bucket theory and node types of member nodes of the current ring system.
其中,木桶理论表示一只木桶盛水的多少,并不取决于桶壁上最高的那块木块,而是取决于桶壁上最短的那块木板。Among them, the barrel theory shows that how much water a barrel can hold does not depend on the tallest piece of wood on the barrel wall, but on the shortest piece of wood on the barrel wall.
通过木桶理论对当前环系统的成员节点的节点类型进行筛选,使确定的当前环系统的层级值能够低于上一层的环系统的层级值,保证各层的环系统之间是上下级关系明确,方便对各层环系统进行管理和维护。Screen the node types of the member nodes of the current ring system through the barrel theory, so that the determined level value of the current ring system can be lower than the level value of the ring system of the previous layer, and ensure that the ring systems of each layer are the upper and lower levels The relationship is clear, which facilitates the management and maintenance of the ring systems of each layer.
在一些示例性实施方式中,根据木桶理论和当前环系统的成员节点的节点类型,确定当前环系统的层级值,包括:对比当前环系统中的各个成员节点的节点类型,获得对比结果;根据木桶理论和对比结果,确定当前环系统的层级值。In some exemplary embodiments, determining the level value of the current ring system according to the barrel theory and the node types of the member nodes of the current ring system includes: comparing the node types of each member node in the current ring system to obtain a comparison result; According to the barrel theory and comparison results, determine the level value of the current ring system.
其中,当前环系统的成员节点的节点类型可以有多个。例如,当前环系统的节点类型包括汇聚节点和接入节点,因接入节点的层级值小于汇聚节点的层级值,故根据木桶理论,当前环系统的层级值由接入节点对应的层级值确定。Wherein, there may be multiple node types of the member nodes of the current ring system. For example, the node types of the current ring system include sink nodes and access nodes. Because the level value of the access node is smaller than the level value of the sink node, according to the barrel theory, the level value of the current ring system is determined by the level value corresponding to the access node Sure.
避免当前环系统的层级值大于上一层环系统的层级值的现象发生,保证各层环系统之间的上下级关系明确,加快对环系统的推导速度,方便运维人员的管理。Avoid the phenomenon that the level value of the current ring system is greater than the level value of the upper ring system, ensure that the upper-lower relationship between the ring systems of each layer is clear, speed up the derivation of the ring system, and facilitate the management of operation and maintenance personnel.
在一些示例性实施方式中,当前环系统是开环系统。In some exemplary embodiments, the current loop system is an open loop system.
需要说明的是,开环系统表示当前环系统不包括当前环系统的上一层环系统中已经标注过的链路和网元节点。It should be noted that the open-loop system means that the current loop system does not include the marked links and network element nodes in the upper-level ring system of the current loop system.
例如,如图1所示,汇聚环系统是开环系统,该汇聚环系统包括节点G和节点H,以及节点E与节点G之间的链路、节点G与节点H之间的链路、节点F与节点H之间的链路。但是该汇聚环系统不包括节点E和节点F,以及节点E与节点F之间的链路,因节点E和节点F均是其上一层环系统(即核心环系统)中已经标记过的网元节点,并且节点E与节点F之间的链路也是标记过的核心环系统中的链路。For example, as shown in Figure 1, the convergence ring system is an open-loop system, and the convergence ring system includes node G and node H, and the link between node E and node G, the link between node G and node H, The link between node F and node H. But the convergence ring system does not include node E and node F, and the link between node E and node F, because both node E and node F are already marked in the upper layer ring system (ie, the core ring system) network element node, and the link between node E and node F is also a marked link in the core ring system.
采用开环系统表征当前环系统,能够避免网元节点的所属的环系统重复,避免网元节点的关系混乱,方便运维人员管理。Using an open-loop system to represent the current ring system can avoid duplication of the ring systems to which network element nodes belong, avoid confusion among network element nodes, and facilitate management by operation and maintenance personnel.
在一些示例性实施方式中,在确定图1中的核心环系统和汇聚环系统之后,还可以对接入环系统做进一步的划分。如图1所示,汇聚环系统中的各条链路的连接方式是以环的形式连接的,且汇聚环系 统的出边的网元节点包括:节点G和节点H。根据最小链路算法,先对节点G对应的未被标记过的链路进行筛选,获得第一候选链路集合,该第一候选链路集合包括:节点G与节点I之间的链路、节点I与节点J之间的链路、节点J与节点K之间的链路、节点K与节点L之间的链路,以及节点L与节点H之间的链路。同样地,再对节点H对应的未被标记过的链路进行筛选,获得第二候选链路集合,该第二候选链路集合包括:节点G与节点M之间的链路、节点M与节点O之间的链路、节点O与节点P之间的链路、节点P与节点Q之间的链路,以及节点Q与节点H之间的链路。In some exemplary implementations, after the core ring system and aggregation ring system in FIG. 1 are determined, the access ring system may be further divided. As shown in Figure 1, each link in the aggregation ring system is connected in the form of a ring, and the outbound network element nodes of the aggregation ring system include: node G and node H. According to the minimum link algorithm, the unmarked links corresponding to node G are first screened to obtain the first candidate link set, which includes: the link between node G and node I, The link between node I and node J, the link between node J and node K, the link between node K and node L, and the link between node L and node H. Similarly, the unmarked links corresponding to node H are screened to obtain a second set of candidate links, the second set of candidate links includes: the link between node G and node M, the link between node M and A link between nodes O, a link between node O and node P, a link between node P and node Q, and a link between node Q and node H.
若将核心环系统作为第一层环系统,将汇聚环系统作为第二层环系统,则第一候选链路集合对应的环系统是第三层环系统。则第二候选链路集合对应的环系统也是第三层环系统。If the core ring system is used as the first layer ring system and the aggregation ring system is used as the second layer ring system, then the ring system corresponding to the first candidate link set is the third layer ring system. Then the ring system corresponding to the second candidate link set is also a layer-3 ring system.
进一步地,继续对第三层环系统的出边节点(即节点J、节点K、节点O和节点P)继续进行下一层环系统的推导,因通过最小链路算法计算可知,节点J的下挂节点包括:节点R、节点S和节点T,并且,节点R、节点S和节点T与节点J之间的连接方式是以链的形式连接的,故可知出边节点J对应的第四层环系统包括:节点R、节点S和节点T,以及节点J与节点R之间的链路、节点R与节点S之间的链路、节点S与节点T之间的链路和节点T与节点R之间的链路。Further, proceed to the derivation of the next layer ring system for the outbound nodes of the third layer ring system (i.e. node J, node K, node O and node P), because through the calculation of the minimum link algorithm, it can be known that node J’s The hanging nodes include: node R, node S and node T, and the connection mode between node R, node S and node T and node J is connected in the form of a chain, so it can be seen that the fourth node corresponding to the outgoing edge node J The layer ring system includes: node R, node S and node T, and the link between node J and node R, the link between node R and node S, the link between node S and node T and node T link with node R.
同样的计算方法,可知出边节点K对应的第四层环系统包括:节点U、节点V、节点W和节点X,以及节点K与节点U之间的链路、节点U与节点V之间的链路、节点V与节点W之间的链路、节点W与节点X之间的链路和节点X与节点O之间的链路。With the same calculation method, it can be seen that the fourth-layer ring system corresponding to the outbound node K includes: node U, node V, node W, and node X, as well as the link between node K and node U, and the link between node U and node V. The link between node V and node W, the link between node W and node X, and the link between node X and node O.
可知出边节点O和出边节点P对应的第四层环系统包括:节点X、节点W、节点Y和节点Z,以及节点O与节点X之间的链路、节点X与节点W之间的链路、节点W与节点Y之间的链路、节点Y与节点Z之间的链路和节点Z与节点P之间的链路。It can be seen that the fourth layer ring system corresponding to the outbound node O and the outbound node P includes: node X, node W, node Y and node Z, as well as the link between node O and node X, and the link between node X and node W The link between node W and node Y, the link between node Y and node Z, and the link between node Z and node P.
在本实施方式中,通过对接入环系统做进一步的划分,明确了各层环系统所包括的环网资源,能够使运维人员明确获知各个不同环系统的环网资源,方便对网络中的各个网元节点进行管理,减少运维人 员的操作维护次数,并且,运维人员可以根据该环网资源,实现对网络中的资源进行统一规划,提升环网资源的利用效率。In this embodiment, by further dividing the access ring system, the ring network resources included in the ring systems of each layer are clarified, so that the operation and maintenance personnel can clearly know the ring network resources of each different ring system, and it is convenient to Each network element node is managed to reduce the operation and maintenance times of the operation and maintenance personnel, and the operation and maintenance personnel can realize the unified planning of the resources in the network according to the ring network resources, and improve the utilization efficiency of the ring network resources.
图4示出本申请提供的数据流量统计方法的流程示意图。该数据流量统计方法可应用于数据流量统计装置,该数据流量统计装置可以设置于网管设备中。如图4所示,本申请中的数据流量统计方法可以包括以下步骤S401和S402。FIG. 4 shows a schematic flow chart of the method for counting data traffic provided by the present application. The data flow counting method can be applied to a data flow counting device, and the data flow counting device can be set in a network management device. As shown in FIG. 4, the data traffic statistics method in this application may include the following steps S401 and S402.
在步骤S401,采用本申请实施方式中的任意一种环网资源的获取方法,获取环网资源。In step S401, adopt any method for acquiring ring network resources in the embodiments of the present application to acquire ring network resources.
其中,环网资源包括某个环系统中的网元节点的属性信息、以及该环系统中的各个网元节点之间的链路连接信息等。The ring network resources include attribute information of network element nodes in a certain ring system, link connection information between network element nodes in the ring system, and the like.
其中的网元节点的属性信息可以包括网元节点的标识、网元节点的父节点信息和网元节点的子节点信息中的任意一种或几种。通过识别出不同环系统的环网资源,方便运维人员对网络中的各个网元节点进行管理,减少运维人员的操作维护次数。The attribute information of the network element node may include any one or more of the identifier of the network element node, the parent node information of the network element node, and the child node information of the network element node. By identifying the ring network resources of different ring systems, it is convenient for the operation and maintenance personnel to manage each network element node in the network, and the operation and maintenance times of the operation and maintenance personnel are reduced.
在步骤S402,根据环网资源,统计网络中的各个环系统的数据流量。In step S402, according to the ring network resources, the data traffic of each ring system in the network is counted.
其中,环系统的数据流量包括:该环系统中的所有成员节点对应的数据流量。Wherein, the data traffic of the ring system includes: data traffic corresponding to all member nodes in the ring system.
通过对各个环系统的数据流量的统计,能够明确网络中的各层环系统当前所处理的数据流量情况,确认各层环系统是否存在超负荷工作的情况发生,通过统计获得的各层环系统的数据流量,可对环系统进行及时调整,使资源使用均衡化,避免资源的浪费。Through the statistics of the data traffic of each ring system, it is possible to clarify the data traffic currently processed by the ring systems of each layer in the network, and to confirm whether there is any overloading of the ring systems of each layer. The data flow can be adjusted in time for the ring system to balance the use of resources and avoid waste of resources.
在一些示例性实施方式中,根据环网资源,统计网络中的各个环系统的数据流量,包括:基于环网资源,获取第m层环系统中的网元节点的数量和网元节点的属性信息,m为大于或等于1的整数;根据第m层环系统中的网元节点的数量和网元节点的属性信息,对第m层环系统中的各个网元节点进行数据流量的统计,获得第m层环系统的数据流量。In some exemplary embodiments, according to the ring network resources, counting the data traffic of each ring system in the network includes: based on the ring network resources, obtaining the number of network element nodes and the attributes of the network element nodes in the m-th layer ring system information, m is an integer greater than or equal to 1; according to the number of network element nodes in the m-th layer ring system and the attribute information of the network element nodes, the data flow statistics are performed on each network element node in the m-th layer ring system, Obtain the data traffic of the m-th layer ring system.
需要说明的是,每层环系统中的网元节点的数量都不相同,并且,不同的网元节点因其属性信息的不同,也会对其所使用的数据流 量造成影响。It should be noted that the number of network element nodes in each ring system is different, and different network element nodes will also affect the data flow used by them due to their different attribute information.
根据第m层环系统中的网元节点的数量和网元节点的属性信息,对第m层环系统中的各个网元节点进行数据流量的统计,能够针对第m层环系统中的各个不同的网元节点进行统计,保证统计获得的数据流量的准确性。进一步地,因m为大于或等于1的整数,可依次对网络中的所有环系统的数据流量进行统计,明确网络中各层环系统的数据流量分布情况,避免某层环系统的压力过大,方便运营人员对环系统做及时的调整,提升网络资源的利用率。According to the number of network element nodes and the attribute information of the network element nodes in the m-layer ring system, the statistics of the data flow of each network element node in the m-layer ring system can be carried out for each different network element in the m-layer ring system. Statistics are performed on the network element nodes to ensure the accuracy of the data flow obtained by the statistics. Furthermore, since m is an integer greater than or equal to 1, the data traffic of all ring systems in the network can be counted sequentially to clarify the distribution of data traffic in each layer of the ring system in the network, and to avoid excessive pressure on a certain layer of ring systems , which is convenient for operators to make timely adjustments to the ring system and improve the utilization rate of network resources.
在本实施方式中,通过本申请实施方式中的任意一种环网资源的获取方法,获取环网资源,能够对不同的网元节点进行合理的划分,确定各个网络节点所属的环系统,进而使运维人员明确获知各个不同环系统的环网资源,方便对网络中的各个网元节点进行管理,减少运维人员的操作维护次数;根据环网资源,能够实现网络中的对各个环系统的数据流量进行统计,避免网络拥塞,实现对网络中的资源进行统一规划。In this embodiment, by using any one of the ring network resource acquisition methods in the embodiments of the present application, the ring network resources can be obtained, and different network element nodes can be reasonably divided, and the ring system to which each network node belongs can be determined, and then Make the operation and maintenance personnel clearly know the ring network resources of different ring systems, facilitate the management of each network element node in the network, and reduce the operation and maintenance times of the operation and maintenance personnel; Statistics of the data traffic, avoiding network congestion, and realizing unified planning of resources in the network.
在一些示例性实施方式中,数据流量统计方法还包括:在确定第m层环系统存在两个父环系统的情况下,分别获取第m层环系统的第一父环系统下挂的网元节点集合和第二父环系统下挂的网元节点集合;根据第一父环系统下挂的网元节点集合和第二父环系统下挂的网元节点集合,确定重叠的网元节点;对重叠的网元节点的数据流量进行统计,获得重叠数据流量;平分重叠数据流量。In some exemplary implementations, the data traffic statistics method further includes: when it is determined that there are two parent ring systems in the m-th layer ring system, respectively acquiring the network elements attached to the first parent ring system of the m-th layer ring system The node set and the network element node set attached to the second parent ring system; according to the network element node set attached to the first parent ring system and the network element node set attached to the second parent ring system, the overlapping network element nodes are determined; The data flow of the overlapping network element nodes is counted to obtain the overlapping data flow; the overlapping data flow is equally divided.
其中,重叠的网元节点对应的数据流量可以属于第一父环系统对应的数据流量,也可以属于第二父环系统对应的数据流量。通过对重叠的网元节点的数据流量进行统计,获得重叠数据流量;平分重叠数据流量至两个父环系统,可以保证数据流量的划分公平性。Wherein, the data traffic corresponding to the overlapping network element nodes may belong to the data traffic corresponding to the first parent ring system, or may belong to the data traffic corresponding to the second parent ring system. The overlapping data traffic is obtained by counting the data traffic of the overlapping network element nodes; the overlapping data traffic is equally divided into two parent ring systems, which can ensure the fairness of data traffic division.
例如,如图1所示,由于出边节点K和出边节点O连接的是两个不同的第三层环系统,因此,出边节点K对应的第四层环系统有两个父环系统(即第一父环系统和第二父环系统),而第一父环系统下挂的网元节点集合和第二父环系统下挂的网元节点集合之间存在重叠的网元节点,即出边节点K对应的第四层环系统与出边节点O 对应的第四层环系统之间的重叠的网元节点(即,网元节点X和网元节点W)。因此,需要将统计获得的网元节点X的数据流量和网元节点W的数据流量进行平分,以保证数据流量的划分公平性。For example, as shown in Figure 1, since the outbound node K and the outbound node O are connected to two different third-level ring systems, the fourth-level ring system corresponding to the outbound node K has two parent ring systems (that is, the first parent ring system and the second parent ring system), and there are overlapping network element nodes between the network element node set attached to the first parent ring system and the network element node set attached to the second parent ring system, That is, overlapping network element nodes (ie, network element node X and network element node W) between the fourth layer ring system corresponding to the outgoing edge node K and the fourth layer ring system corresponding to the outgoing edge node O. Therefore, it is necessary to equally divide the data traffic of the network element node X and the data traffic of the network element node W obtained through statistics, so as to ensure the fairness of data traffic division.
图5示出本申请提供的环网资源的获取装置的组成结构图。如图5所示。该环网资源的获取装置包括如下模块:环系统确认模块501,被配置为根据预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,确定网元节点所属的环系统;环网资源确定模块502,被配置为根据获取到的网元节点的属性信息和网元节点所属的环系统,确定环网资源,环网资源表示网络中的环系统的资源。FIG. 5 shows a structural diagram of a device for acquiring ring network resources provided by the present application. As shown in Figure 5. The device for obtaining ring network resources includes the following modules: a ring system confirmation module 501 configured to process the obtained connection link information between network element nodes according to a preset path algorithm, and determine the ring to which the network element node belongs The system; the ring network resource determination module 502 is configured to determine the ring network resources according to the obtained attribute information of the network element node and the ring system to which the network element node belongs, and the ring network resources represent the resources of the ring system in the network.
在本实施方式中,通过环系统确认模块根据预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,能够快速识别出各个网元节点所属的环系统;使用环网资源确定模块根据网元节点的属性信息和网元节点所属的环系统确定环网资源,使运维人员明确获知各个不同环系统的环网资源,方便对网络中的各个网元节点进行管理,减少运维人员的操作维护次数,并且,运维人员可以根据该环网资源,实现对网络中的资源进行统一规划,提升环网资源的利用效率。In this embodiment, the ring system confirmation module processes the obtained connection link information between network element nodes according to the preset path algorithm, and can quickly identify the ring system to which each network element node belongs; using the ring network The resource determination module determines the ring network resources according to the attribute information of the network element node and the ring system to which the network element node belongs, so that the operation and maintenance personnel can clearly know the ring network resources of each different ring system, and facilitate the management of each network element node in the network. The operation and maintenance times of the operation and maintenance personnel are reduced, and the operation and maintenance personnel can realize the unified planning of the resources in the network according to the ring network resources, and improve the utilization efficiency of the ring network resources.
图6示出本申请提供的数据流量统计装置的组成结构图。如图6所示。该数据流量统计装置包括如下模块:获取模块601,被配置为采用本申请实施方式中的任意一种环网资源的获取方法,获取环网资源;统计模块602,被配置为根据环网资源,统计网络中的各个环系统的数据流量。FIG. 6 shows a structural diagram of the data traffic statistics device provided by the present application. As shown in Figure 6. The data traffic statistics device includes the following modules: an acquisition module 601 configured to acquire ring network resources by using any method for acquiring ring network resources in the embodiments of the present application; a statistical module 602 configured to, according to the ring network resources, Collect statistics on the data traffic of each ring system in the network.
在本实施方式中,通过获取模块使用本申请实施方式中的任意一种环网资源的获取方法,获取环网资源,能够对不同的网元节点进行合理的划分,确定各个网络节点所属的环系统,进而使运维人员明确获知各个不同环系统的环网资源,方便对网络中的各个网元节点进行管理,减少运维人员的操作维护次数;使用统计模块根据环网资源,能够实现网络中的对各个环系统的数据流量进行统计,避免网络拥塞,实现对网络中的资源进行统一规划。In this embodiment, the acquisition module uses any one of the ring network resource acquisition methods in the embodiments of the present application to obtain ring network resources, which can reasonably divide different network element nodes and determine the ring to which each network node belongs. System, so that the operation and maintenance personnel can clearly know the ring network resources of different ring systems, facilitate the management of each network element node in the network, and reduce the operation and maintenance times of the operation and maintenance personnel; use the statistics module to realize the network resources according to the ring network resources. In it, the data flow of each ring system is counted to avoid network congestion and realize unified planning of resources in the network.
图7示出本申请提供的网管设备的组成结构图。如图7所示。该网管设备700包括如下装置:本申请实施方式中的任意一种环网 资源的获取装置701,和/或,本申请实施方式中的任意一种数据流量统计装置702。FIG. 7 shows a structural diagram of the network management equipment provided by the present application. As shown in Figure 7. The network management device 700 includes the following devices: any one of the ring network resource acquisition devices 701 in the embodiments of the present application, and/or any one of the data traffic statistics devices 702 in the embodiments of the present application.
在本实施方式中,通过本申请实施方式中的任意一种环网资源的获取装置,获取环网资源,能够对不同的网元节点进行合理的划分,确定各个网络节点所属的环系统,进而使运维人员明确获知各个不同环系统的环网资源,方便对网络中的各个网元节点进行管理,减少运维人员的操作维护次数;使用本申请实施方式中的任意一种数据流量统计装置,能够根据环网资源,能够实现网络中的对各个环系统的数据流量进行统计,避免发生网络发生拥塞时导致的数据丢失,时延增加和吞吐量下降等问题的发生,实现对网络中的资源进行统一规划。In this embodiment, by using any one of the ring network resource acquisition devices in the embodiments of the present application, the ring network resources can be obtained, different network element nodes can be reasonably divided, and the ring system to which each network node belongs can be determined, and then Make the operation and maintenance personnel clearly know the ring network resources of each different ring system, facilitate the management of each network element node in the network, and reduce the operation and maintenance times of the operation and maintenance personnel; use any data flow statistics device in the implementation mode of this application According to the ring network resources, it can realize the statistics of the data flow of each ring system in the network, avoid data loss caused by network congestion, delay increase and throughput decrease, etc. Resources are planned in a unified manner.
图8示出本申请提供的环网资源的获取系统的组成结构图。如图8所示。该环网资源的获取系统包括如下模块:用户网络接口管理实体810、算法模块820、数据分析系统830和路径计算单元840。FIG. 8 shows a structural diagram of a system for acquiring ring network resources provided by the present application. As shown in Figure 8. The system for obtaining ring network resources includes the following modules: a user network interface management entity 810 , an algorithm module 820 , a data analysis system 830 and a path calculation unit 840 .
其中,用户网络接口管理实体810:配置为获取网络中的各个网元节点的信息(例如,网元节点的信息包括网元节点所属的地级市信息、网元节点对应的层级信息等),根据各个网元节点的信息,生成网络拓扑图。然后,调用算法模块820进行算法推导,获得并保存推导结果。在网络拓扑发生变化时,用户网络接口管理实体810还可以自动调用算法模块820进行环系统推导,通过调整前后环系统的变化信息,获得最新的环网资源。Wherein, the user network interface management entity 810: is configured to obtain information of each network element node in the network (for example, the information of the network element node includes the prefecture-level city information to which the network element node belongs, the level information corresponding to the network element node, etc.), According to the information of each network element node, a network topology map is generated. Then, the algorithm module 820 is called to perform algorithm derivation, and the derivation result is obtained and saved. When the network topology changes, the user network interface management entity 810 can also automatically call the algorithm module 820 to deduce the ring system, and obtain the latest ring network resources by adjusting the change information of the front and rear ring systems.
数据分析系统830:配置为统计网络中的流量数据。例如,以各层环系统为单位,对每层环系统中的各个网元节点的数据流量信息进行统计,并将统计结果记录下来,方便运维人员的查看。Data analysis system 830: configured to collect statistics on traffic data in the network. For example, the data flow information of each network element node in each ring system is counted by taking each ring system as a unit, and the statistical results are recorded to facilitate the viewing of operation and maintenance personnel.
路径计算单元840:配置为使用环系统中的环网资源,对环系统中的链路进行不同规模的剪枝,以加快路径计算单元对算路的计算速度。The path calculation unit 840 is configured to use the ring network resources in the ring system to prune links of different scales in the ring system, so as to speed up the path calculation speed of the path calculation unit.
算法模块820包括:环系统推导子模块821和环关系识别子模块822。The algorithm module 820 includes: a ring system derivation submodule 821 and a ring relationship identification submodule 822 .
其中,环系统推导子模块821,配置为对各层环系统之间的关系进行推导,确定各层环系统之间的父子关系。从宏观层面,可以将环 系统分为:核心环系统、汇聚环系统和接入环系统。由于核心环系统是最高级别的环系统,因此,核心环系统没有父环系统。并且,低级别的环系统不能够作为高级别的环系统的父环系统。例如,汇聚环的父环系统只能是核心环系统或者汇聚环系统,而接入环系统的父环系统可以是接入环系统、汇聚环系统和核心环系统中的任意一个环系统。从微观层面,在汇聚环系统和接入环系统之间可以有多个环系统,在同一个层级的环系统中,仍存在一个环系统接入到另一个环系统中的情况。Among them, the ring system derivation sub-module 821 is configured to deduce the relationship between the ring systems of each layer, and determine the parent-child relationship between the ring systems of each layer. From the macro level, the ring system can be divided into: core ring system, convergence ring system and access ring system. Since the core ring system is the highest level ring system, the core ring system has no parent ring system. Moreover, a low-level ring system cannot serve as a parent ring system for a high-level ring system. For example, the parent ring system of the aggregation ring can only be the core ring system or the aggregation ring system, while the parent ring system of the access ring system can be any one of the access ring system, aggregation ring system, and core ring system. From the microscopic level, there may be multiple ring systems between the aggregation ring system and the access ring system, and in the ring systems at the same level, there is still the situation that one ring system is connected to another ring system.
需要说明的是,如果A环系统的两端接入到上层的环系统是同一个环系统(例如,B环系统),那么该B环系统即为A环系统的父环系统,且A环系统的父环系统只有一个。如果A环系统的两端接入到不同的环系统(例如,同时,接入到C环系统和D环系统)中,那么此时A环系统的父环系统就有两个(即,A环系统的父环系统包括:C环系统和D环系统),需要将C环系统的信息和D环系统的信息均作为A环系统的父环信息保存至A环系统中。除核心环系统之外,每个环系统均需要记录自己的父环系统的信息。It should be noted that if the two ends of ring system A connected to the upper ring system are the same ring system (for example, ring system B), then the ring system B is the parent ring system of system A, and ring A The system has only one parent ring system. If the two ends of the A ring system are connected to different ring systems (for example, connected to the C ring system and the D ring system at the same time), then there are two parent ring systems of the A ring system at this time (that is, A The parent ring systems of the ring system include: the C ring system and the D ring system), and the information of the C ring system and the D ring system need to be stored in the A ring system as the parent ring information of the A ring system. Except for the core ring system, each ring system needs to record the information of its parent ring system.
其中,子环系统连接父环系统的网元节点为子环系统的接入节点,父环系统连接子环系统的网元节点为子环系统的上联节点。Wherein, the network element node of the sub-ring system connected to the parent ring system is the access node of the sub-ring system, and the network element node of the parent ring system connected to the sub-ring system is the uplink node of the sub-ring system.
环关系识别子模块822,配置为对传入的网络拓扑进行环系统的识别,对环系统进行对应的信息填充(例如,某层环系统的信息包括:环系统的类型、环系统的层级、环系统的成员节点、环系统的上联节点和环系统的接入节点中的任意一种或几种)。环系统推导子模块821,用于对不同层级的环系统之间的父子关系进行推导,并获取并填充对应的环系统的父环信息。The ring relationship identification sub-module 822 is configured to identify the ring system of the incoming network topology, and fill in the corresponding information of the ring system (for example, the information of the ring system of a certain layer includes: the type of the ring system, the level of the ring system, Any one or more of the member nodes of the ring system, the uplink nodes of the ring system, and the access nodes of the ring system). The ring system derivation sub-module 821 is configured to derive the parent-child relationship between ring systems at different levels, and acquire and fill in the parent ring information of the corresponding ring system.
在一个示例性实施方式中,环关系识别子模块822可以采用基于链路排除算法的环系统识别方法。其中,链路排除算法是通过选择任意一条确定的链路,将链路两端的网元节点作为算路的起点和终点,对起点和终点之间的链路进行运算的方法。因起点和终点之间可以有多种不同的传输路径,故环系统的划分算法也可以多样化。In an exemplary implementation, the ring relationship identification submodule 822 may adopt a ring system identification method based on a link exclusion algorithm. Among them, the link exclusion algorithm is a method for calculating the link between the starting point and the ending point by selecting any determined link, using the network element nodes at both ends of the link as the starting point and the ending point of path calculation. Since there may be many different transmission paths between the start point and the end point, the division algorithm of the ring system may also be diversified.
例如,可以采用最小链路算法(例如,Dijkstra算法、Bellman- Ford算法、Floyd算法和SPFA算法等),计算两个网元节点之间的最小跳路径(即路径中包括的网元节点的数量最少),通过该最小跳路径确定的环系统,即为网元节点构成的最小环系统。还可以采用最长路径算法计算两个网元节点之间的最长路径的算法,例如,找出两个网元节点之间的所有传输路径,然后,使用递归的方式,在所有传输路径中查找获得最长的传输路径,并确定该最长的传输路径作为一个环系统。在一个示例性实施方式中,最长路径算法还可以是计算两个网元节点之间的生存时间最长的一条传输路径,每条传输路径的最大生存时间由该传输路径中生存时间最小的那条边来决定。以上对于链路排除算法仅是举例说明,可根据实际情况进行具有设定,其他未说明的链路排除算法也在本申请的保护范围之内,在此不再赘述。For example, the minimum link algorithm (for example, Dijkstra algorithm, Bellman-Ford algorithm, Floyd algorithm and SPFA algorithm, etc.) can be used to calculate the minimum hop path between two network element nodes (that is, the number of network element nodes included in the path minimum), the ring system determined by the minimum hop path is the smallest ring system formed by the network element nodes. It is also possible to use the longest path algorithm to calculate the longest path algorithm between two network element nodes, for example, to find out all transmission paths between two network element nodes, and then use a recursive method in all transmission paths Find the longest transmission path and determine the longest transmission path as a ring system. In an exemplary embodiment, the longest path algorithm may also calculate a transmission path with the longest survival time between two network element nodes, and the maximum survival time of each transmission path is determined by the minimum survival time of the transmission path Which side to decide. The link exclusion algorithm above is just an example, which can be set according to the actual situation. Other unexplained link exclusion algorithms are also within the scope of protection of this application, and will not be repeated here.
例如,一个地市级的网络拓扑关系图中只有一个核心环系统,因此,可以将汇聚层以上各个核心网节点、以及各个核心网节点之间的链路均划分为核心环系统。通过链路排除算法确定汇聚环系统和接入环系统,但汇聚环系统和接入环系统均为开环系统,即需要将汇聚环系统中的核心网节点排除在汇聚环系统之外,将接入环系统中的汇聚设备节点排除在接入环系统之外等。如果在对某条待处理链路进行链路排除算法的运算时,确定该待处理链路是以链的形式连接的,则需要获取该待处理链路下挂的所有网元节点,并将该待处理链路对应的网元节点以及待处理链路下挂的所有网元节点,作为当前环系统的成员节点,For example, there is only one core ring system in a city-level network topology diagram. Therefore, each core network node above the aggregation layer and links between core network nodes can be divided into core ring systems. The aggregation ring system and the access ring system are determined through the link exclusion algorithm, but the aggregation ring system and the access ring system are both open-loop systems, that is, the core network nodes in the aggregation ring system need to be excluded from the aggregation ring system, and the The aggregation device nodes in the access ring system are excluded from the access ring system, etc. If it is determined that the link to be processed is connected in the form of a chain when performing the operation of the link exclusion algorithm on a link to be processed, it is necessary to obtain all network element nodes connected to the link to be processed, and The network element node corresponding to the link to be processed and all network element nodes connected to the link to be processed are the member nodes of the current ring system,
需要说明的是,若网络拓扑仅发生了局部变化,则仍然可以通过本申请中的全局环系统的推导方法进行推导。还可以将变化前后的网络拓扑进行对比,根据对比结果确定需要调整的环网资源。It should be noted that if the network topology only changes locally, it can still be deduced through the derivation method of the global ring system in this application. It is also possible to compare the network topology before and after the change, and determine the ring network resources that need to be adjusted according to the comparison result.
根据本申请中的环网资源的获取系统,在不需要人工干预的情况下,使用算法模块对用户网络接口管理实体获取到的网络中的各个网元节点的信息,快速地进行全局环系统的推导,生成核心环系统、汇聚环系统和接入环系统,保证数量为万级单位的网元节点可以在秒级的时间内推导完毕,应对网络拓扑的快速变化情况,能够自动调整并获得环网资源;路径计算单元可以使用环系统中的环网资源,对环 系统中的链路进行不同规模的剪枝,以加快路径计算单元算路的计算速度。通过数据分析系统对每层环系统中的各个网元节点的数据流量信息进行统计,并将统计结果记录下来,方便运维人员的查看。According to the ring network resource acquisition system in this application, without manual intervention, the algorithm module is used to quickly perform global ring system information on the information of each network element node in the network obtained by the user network interface management entity. Derivation, generating the core ring system, aggregation ring system and access ring system, ensuring that the network element nodes with a number of tens of thousands of units can be deduced within seconds, and can automatically adjust and obtain ring Network resources; the path calculation unit can use the ring network resources in the ring system to prune the links in the ring system in different scales, so as to speed up the calculation speed of the path calculation unit. Through the data analysis system, the data flow information of each network element node in each ring system is counted, and the statistical results are recorded, which is convenient for the operation and maintenance personnel to view.
图9示出本申请提供的环系统的推导方法的流程示意图。Fig. 9 shows a schematic flow chart of the derivation method of the ring system provided by the present application.
对于各层环系统的推导,可以采用从高到低的方式进行推导,例如,先推导核心环系统,然后再推导汇聚环系统,最后推导接入环系统。各个环系统之间的连接关系可以包括:父环和子环之间的连接关系。环系统的推导方法可采用如下步骤S901至S907实现。For the derivation of the ring systems of each layer, it can be derived from high to low. For example, the core ring system is firstly derived, then the aggregation ring system is derived, and the access ring system is finally derived. The connection relationship between various ring systems may include: the connection relationship between the parent ring and the child ring. The derivation method of the ring system can be implemented by the following steps S901 to S907.
在步骤S901,根据最小链路算法和网络拓扑中的核心网设备,确定核心环系统。In step S901, the core ring system is determined according to the minimum link algorithm and the core network devices in the network topology.
需要说明的是,一个城市的网络拓扑只有一个核心环。按照网元层次划分的等级,在汇聚层以上的网元层次均划分为核心环系统。It should be noted that the network topology of a city has only one core ring. According to the grades of network element levels, the network element levels above the aggregation layer are all divided into core ring systems.
同时,需要保证核心环系统是一个完整的连通体,该连通体表示从环系统中的任意两个网元节点之间都存在一条链路。若核心环系统不是一个完整的连通体,则需要在核心网节点之间添加虚拟链路,以使该核心环系统转化为一个完整的连通体。At the same time, it is necessary to ensure that the core ring system is a complete connected body, which means that there is a link between any two network element nodes in the slave ring system. If the core ring system is not a complete connected body, virtual links need to be added between core network nodes to transform the core ring system into a complete connected body.
在步骤S902,根据上一层环系统的出边的网元节点和最小链路算法,筛选获得候选链路集合。In step S902, according to the outbound network element nodes of the upper ring system and the minimum link algorithm, a set of candidate links is obtained by screening.
其中,候选链路包括起始网元节点和终止网元节点。Wherein, the candidate link includes a starting network element node and a terminating network element node.
在一个示例性实施方式中,还可以根据候选链路集合中的候选链路对应的终止网元节点的环系统层级值,对各个候选链路进行排序,通过排序结果对候选链路集合中的候选链路进行筛选,方便对候选链路集合做进一步的划分层次。In an exemplary embodiment, each candidate link can also be sorted according to the ring system level value of the terminating network element node corresponding to the candidate link in the candidate link set, and the candidate links in the candidate link set can be sorted according to the sorting result Candidate links are screened to facilitate further division of the candidate link set.
在步骤S903,判断候选链路集合是否为空。In step S903, it is judged whether the candidate link set is empty.
在确定候选链路集合不为空的情况下,执行步骤S904;否则,在确定候选链路集合为空的情况下,结束流程。If it is determined that the candidate link set is not empty, execute step S904; otherwise, if it is determined that the candidate link set is empty, the process ends.
在步骤S904,对候选链路集合中的候选链路进行筛选,获得待处理链路集合,并根据待处理链路集合中的待处理链路的连接形式,确定当前环系统的成员节点。In step S904, the candidate links in the candidate link set are screened to obtain a pending link set, and the member nodes of the current ring system are determined according to the connection forms of the pending links in the pending link set.
例如,可以依次对候选链路集合中的候选链路进行筛选,获得的 待处理链路集合中的待处理链路,采用Dijkstra算法对待处理链路集合中的待处理链路进行路径计算,若确定待处理链路集合中的待处理链路可以构成一个以环的形式连接的路径,则确定当前环系统的成员节点包括所述待处理链路集合中的待处理链路对应的网元节点;若确定待处理链路集合中的待处理链路是以链的形式连接的路径,则获取待处理链路下挂的所有网元节点,并将待处理链路集合中的待处理链路对应的网元节点以及待处理链路下挂的所有网元节点,作为当前环系统的成员节点。For example, the candidate links in the candidate link set can be screened sequentially, and the obtained links to be processed in the pending link set can be used to calculate the path of the pending links in the pending link set using the Dijkstra algorithm. Determine that the links to be processed in the set of links to be processed can form a path connected in the form of a ring, then determine that the member nodes of the current ring system include the network element nodes corresponding to the links to be processed in the set of links to be processed ; If it is determined that the link to be processed in the set of links to be processed is a path connected in the form of a chain, then obtain all network element nodes connected to the link to be processed, and link the link to be processed in the set to be processed The corresponding network element node and all the network element nodes attached to the link to be processed are the member nodes of the current ring system.
需要说明的是,由于当前环系统是开环系统,当前环系统不包括当前环系统的上一层环系统中已经标注过的链路和网元节点。It should be noted that, since the current ring system is an open-loop system, the current ring system does not include the marked links and network element nodes in the upper ring system of the current ring system.
在一些示例性实施方式中,在确定当前环系统的成员节点之后,还需要标记上一层环系统是当前环系统的父环系统;并确定当前环系统的父环信息。其中,当前环系统的父环信息包括:上一层环系统的类型、上一层环系统的层级值、上一层环系统中的网元节点的属性信息和上联节点的信息中的任意一种或几种,上联节点是上一层环系统连接当前环系统的网元节点。In some exemplary implementations, after determining the member nodes of the current ring system, it is also necessary to mark the upper layer ring system as the parent ring system of the current ring system; and determine the parent ring information of the current ring system. Among them, the parent ring information of the current ring system includes: the type of the upper ring system, the level value of the upper ring system, the attribute information of the network element nodes in the upper ring system, and any One or more, the uplink node is the network element node of the upper ring system connected to the current ring system.
在一些示例性实施方式中,如果某条候选链路在上一层环系统的推导过程中,该条候选链路的起始网元节点和终止网元节点均被标记过,则不再对该条候选链路进行处理。In some exemplary implementations, if a candidate link is deduced in the upper-layer ring system, and the start network element node and the end network element node of the candidate link are marked, then no further The candidate link is processed.
在步骤S905,根据当前环系统的成员节点之间的链路,更新候选链路集合。In step S905, the set of candidate links is updated according to the links between the member nodes of the current ring system.
在步骤S906,判断更新后的候选链路集合是否为空。In step S906, it is judged whether the updated set of candidate links is empty.
在确定更新后的待处理链路不为空的情况下,执行步骤S907;否则,在确定更新后的待处理链路为空的情况下,继续执行步骤S902,即,根据当前环系统的出边的网元节点,和最小链路算法,筛选获得用于下一层环系统推导的候选链路集合,并且,该候选链路集合中不包括当前环系统中已经标记过的链路,简化后续环系统的推导,加快环系统的推导速度。If it is determined that the updated link to be processed is not empty, execute step S907; otherwise, if it is determined that the updated link to be processed is empty, continue to execute step S902, that is, according to the output of the current ring system The edge network element nodes and the minimum link algorithm screen to obtain the candidate link set for the derivation of the next layer ring system, and the candidate link set does not include the marked links in the current ring system, simplifying The subsequent derivation of the ring system speeds up the derivation of the ring system.
在步骤S907,确定当前环系统的层级值,并标记当前环系统的成员节点所属的环系统的层级值是当前环系统的层级值。In step S907, the level value of the current ring system is determined, and the level value of the ring system to which the member nodes of the current ring system belong is marked as the level value of the current ring system.
其中,除了核心环系统之外的其他环系统均是开环系统。Among them, all ring systems except the core ring system are open-loop systems.
在一个示例性实施方式中,每个开环系统对应的层级值是根据木桶理论以及开环系统中的各个成员节点的节点类型确定值。例如,若当前开环系统中的成员节点的节点类型包括汇聚设备节点和接入设备节点,则根据木桶理论,该当前开环系统的层级值确定为接入层环系统。In an exemplary embodiment, the level value corresponding to each open-loop system is determined according to the barrel theory and the node type of each member node in the open-loop system. For example, if the node types of the member nodes in the current open-loop system include aggregation device nodes and access device nodes, then according to the barrel theory, the hierarchical value of the current open-loop system is determined to be the access layer ring system.
在一个示例性实施方式中,在当前环系统确定之后,还需要对当前环系统中的各条链路进行标记,以方便后续环系统的推导,加快环系统的推导速度。In an exemplary embodiment, after the current ring system is determined, each link in the current ring system needs to be marked, so as to facilitate the derivation of the subsequent ring system and speed up the derivation of the ring system.
在执行完步骤S907之后,还需要继续执行步骤S904,直至将候选链路集合中的候选路径处理完毕。After step S907 is executed, step S904 needs to be continued until the candidate paths in the candidate link set are processed.
在一些示例性实施方式中,若网络拓扑仅发生了局部变化,则仍然可以通过本申请中的全局环系统的推导方法进行推导。还可以将变化前后的网络拓扑进行对比,根据对比结果确定需要调整的环网资源,并对环网资源进行局部修改,保证环系统对应的环网资源的正确性。In some exemplary implementations, if the network topology only changes locally, it can still be deduced through the derivation method of the global ring system in this application. It is also possible to compare the network topology before and after the change, determine the ring network resources that need to be adjusted according to the comparison results, and make partial modifications to the ring network resources to ensure the correctness of the ring network resources corresponding to the ring system.
在本实施方式中,通过采用最小链路算法对核心网设备之间的连接链路信息进行处理,确定核心环系统;并根据上一层环系统的出边的网元节点和最小链路算法,循环对候选链路集合中的各个后续链路进行循环筛选和处理,能够快速识别出各个网元节点所属的环系统,保证各层环系统的准确性,方便对网络中的各个网元节点进行管理,减少运维人员的操作维护次数,并且,运维人员可以根据各个网元节点所属的环系统,对各个网元节点进行准确管理,提升对网元节点的管理效率。In this embodiment, the core ring system is determined by using the minimum link algorithm to process the connection link information between the core network devices; , cyclically screen and process each subsequent link in the candidate link set, which can quickly identify the ring system to which each network element node belongs, ensure the accuracy of the ring system at each layer, and facilitate the identification of each network element node in the network Management can reduce the operation and maintenance times of the operation and maintenance personnel, and the operation and maintenance personnel can accurately manage each network element node according to the ring system to which each network element node belongs, and improve the management efficiency of the network element node.
图10示出本申请提供的环系统下挂的网元节点的网络拓扑示意图。如图10所示,网元节点1001~网元节点1004均为核心层设备;网元节点1005~网元节点1008均为汇聚层设备;网元节点1009~网元节点1022均为接入层设备。FIG. 10 shows a schematic diagram of the network topology of the network element nodes attached to the ring system provided by the present application. As shown in Figure 10, network element nodes 1001 to 1004 are all core layer devices; network element nodes 1005 to 1008 are all aggregation layer devices; network element nodes 1009 to 1022 are all access layer devices equipment.
其中,核心环系统core<1>包括:网元节点1001~网元节点1004,以及这四个网元节点之间的链路;汇聚层有两个环系统:汇聚环系统aggr<1>和汇聚环系统aggr<2>,其中,Among them, the core ring system core<1> includes: network element nodes 1001 to 1004, and the links between these four network element nodes; the aggregation layer has two ring systems: aggregation ring system aggr<1> and Converging ring system aggr<2>, where,
汇聚环系统aggr<1>包括:网元节点1005和网元节点1006,以及网元节点1003和网元节点1005之间的链路、网元节点1005和网元节点1006之间的链路、网元节点1006和网元节点1004之间的链路。The aggregation ring system aggr<1> includes: network element node 1005 and network element node 1006, and the link between network element node 1003 and network element node 1005, the link between network element node 1005 and network element node 1006, A link between the network element node 1006 and the network element node 1004.
汇聚环系统aggr<2>包括:网元节点1007和网元节点1008,以及网元节点1003和网元节点1007之间的链路、网元节点1007和网元节点1008之间的链路、网元节点1008和网元节点1004之间的链路。The aggregation ring system aggr<2> includes: network element node 1007 and network element node 1008, and the link between network element node 1003 and network element node 1007, the link between network element node 1007 and network element node 1008, A link between the network element node 1008 and the network element node 1004.
在一个示例性实施方式中,需要统计汇聚环系统aggr<1>下挂的所有网元节点的数量和链路数量。图11示出本申请提供的统计汇聚环系统下挂的所有网元节点的方法的流程示意图。如图11所示,统计汇聚环系统aggr<1>下挂的所有网元节点的方法可采用如下步骤S1101至S1105实现。In an exemplary embodiment, it is necessary to count the number of network element nodes and the number of links connected to the aggregation ring system aggr<1>. FIG. 11 shows a schematic flowchart of a method for counting all network element nodes attached to a convergence ring system provided by the present application. As shown in FIG. 11 , the method of counting all network element nodes attached to the aggregation ring system aggr<1> can be realized by following steps S1101 to S1105.
在步骤S1101,通过图10所示环系统下挂的网元节点的网络拓扑示意图,确定汇聚环系统aggr<1>中的汇聚层设备。In step S1101, the aggregation layer device in the aggregation ring system aggr<1> is determined according to the network topology schematic diagram of the network element nodes attached to the ring system shown in FIG. 10 .
其中,汇聚环系统aggr<1>中的汇聚层设备包括网元节点1005和网元节点1006。Wherein, the aggregation layer devices in the aggregation ring system aggr<1> include the network element node 1005 and the network element node 1006 .
在步骤S1102,将网元节点1005和网元节点1006加入到处理队列中。In step S1102, the network element node 1005 and the network element node 1006 are added to the processing queue.
在步骤S1103,依次查找网元节点1005和网元节点1006对应的子环系统,获得子环系统access<1>和子环系统access<3>。In step S1103, the sub-ring systems corresponding to the network element node 1005 and the network element node 1006 are searched in turn to obtain the sub-ring system access<1> and the sub-ring system access<3>.
其中,子环系统access<1>包括:网元节点1009和网元节点1011,以及网元节点1005和网元节点1009之间的链路、网元节点1009和网元节点1011之间的链路、网元节点1011和网元节点1006之间的链路。子环系统access<2>包括:网元节点1010、网元节点1012、网元节点1015和网元节点1016,以及网元节点1005和网元节点1010之间的链路、网元节点1010和网元节点1015之间的链路、网元节点1015和网元节点1016之间的链路、网元节点1016和网元节点1012之间的链路、网元节点1012和网元节点1006之间的链路。Among them, the sub-ring system access<1> includes: NE node 1009 and NE node 1011, the link between NE node 1005 and NE node 1009, and the link between NE node 1009 and NE node 1011 Road, link between network element node 1011 and network element node 1006. The sub-ring system access<2> includes: NE node 1010, NE node 1012, NE node 1015, and NE node 1016, and the link between NE node 1005 and NE node 1010, NE node 1010 and Links between network element nodes 1015, links between network element nodes 1015 and 1016, links between network element nodes 1016 and 1012, and links between network element nodes 1012 and 1006 link between.
在步骤S1104,继续对子环系统access<1>和子环系统access<3> 进行处理,查找子环系统access<1>和子环系统access<3>的下一层子环系统,获得子环系统access<1>的下一层子环系统access<2>,并确定子环系统access<3>没有下一层子环系统。In step S1104, continue to process the sub-ring system access<1> and the sub-ring system access<3>, search for the next-level sub-ring system of the sub-ring system access<1> and the sub-ring system access<3>, and obtain the sub-ring system Access<1> is the sub-ring system access<2>, and it is determined that the sub-ring system access<3> has no sub-ring system.
其中,下一层子环系统access<2>包括:网元节点1013和网元节点1014,以及网元节点1009和网元节点1013之间的链路、网元节点1013和网元节点1014之间的链路、网元节点1014和网元节点1011之间的链路。Among them, the sub-ring system access<2> of the next layer includes: NE node 1013 and NE node 1014, and the link between NE node 1009 and NE node 1013, and the link between NE node 1013 and NE node 1014. The link between the network element node 1014 and the network element node 1011.
需要说明的是,通过步骤S1102~步骤S1103的循环处理,可以确定汇聚环系统aggr<1>包括以下三个子环系统:子环系统access<1>、子环系统access<3>、以及子环系统access<1>的下一层子环系统access<2>。It should be noted that, through the loop processing of steps S1102 to S1103, it can be determined that the aggregation ring system aggr<1> includes the following three sub-ring systems: sub-ring system access<1>, sub-ring system access<3>, and sub-ring system access<3> The next sub-ring system access<2> of the system access<1>.
在步骤S1105,将子环系统access<1>、子环系统access<3>、以及子环系统access<1>的下一层子环系统access<2>中的所有网元节点作为汇聚环系统aggr<1>下挂的网元节点。In step S1105, all the network element nodes in the sub-ring system access<1>, the sub-ring system access<3>, and the sub-ring system access<2> under the sub-ring system access<1> are used as the aggregation ring system The network element node attached to aggr<1>.
在本实施方式中,通过使用处理队列,对属于同一等级的网元节点1005和网元节点1006进行依次处理,获得网元节点1005和网元节点1006对应的子环系统access<1>和子环系统access<3>,进一步地,再继续对子环系统access<1>和子环系统access<3>进行处理,查找子环系统access<1>和子环系统access<3>的下一层子环系统,使同等级的网元节点对应的所有子环系统及其下一层子环系统能够并逐级查找出来,保证各级子环系统的准确性,同时加快对统一等级的网元节点的处理速度,明确环系统下挂的所有网元节点的归属情况,保证下挂节点的准确性。In this embodiment, by using the processing queue, the network element nodes 1005 and 1006 belonging to the same level are sequentially processed to obtain the sub-ring system access<1> and sub-ring System access<3>, further, continue to process the sub-ring system access<1> and sub-ring system access<3>, and search for the sub-rings of the sub-ring system access<1> and sub-ring system access<3> system, so that all sub-ring systems corresponding to network element nodes of the same level and the sub-ring systems of the next layer can be found out step by step, ensuring the accuracy of sub-ring systems at all levels, and at the same time speeding up the search for network element nodes of the same level Processing speed, clarify the attribution of all network element nodes connected to the ring system, and ensure the accuracy of the connected nodes.
需要明确的是,本申请并不局限于上文实施方式中所描述并在图中示出的特定配置和处理。为了描述的方便和简洁,这里省略了对已知方法的详细描述,并且上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施方式中的对应过程,在此不再赘述。It should be clear that the present application is not limited to the specific configurations and processes described in the above embodiments and shown in the figures. For the convenience and brevity of description, detailed descriptions of known methods are omitted here, and for the specific working process of the above-described systems, modules and units, reference may be made to the corresponding processes in the foregoing method implementations, and details are not repeated here.
图12示出能够实现根据本申请的环网资源的获取方法及其装置,或,数据流量统计方法及其装置的计算设备的示例性硬件架构的结构图。Fig. 12 shows a structural diagram of an exemplary hardware architecture of a computing device capable of implementing the method for acquiring ring network resources and the device thereof, or the method for counting data traffic and the device thereof according to the present application.
如图12所示,计算设备1200包括输入设备1201、输入接口1202、中央处理器1203、存储器1204、输出接口1205、以及输出设备1206。其中,输入接口1202、中央处理器1203、存储器1204、以及输出接口1205通过总线1207相互连接,输入设备1201和输出设备1206分别通过输入接口1202和输出接口1205与总线1207连接,进而与计算设备1200的其他组件连接。As shown in FIG. 12 , a computing device 1200 includes an input device 1201 , an input interface 1202 , a central processing unit 1203 , a memory 1204 , an output interface 1205 , and an output device 1206 . Wherein, the input interface 1202, the central processing unit 1203, the memory 1204, and the output interface 1205 are connected to each other through the bus 1207, and the input device 1201 and the output device 1206 are respectively connected to the bus 1207 through the input interface 1202 and the output interface 1205, and then connected to the computing device 1200 other component connections.
具体地,输入设备1201接收来自外部的输入信息,并通过输入接口1202将输入信息传送到中央处理器1203;中央处理器1203基于存储器1204中存储的计算机可执行指令对输入信息进行处理以生成输出信息,将输出信息临时或者永久地存储在存储器1204中,然后通过输出接口1205将输出信息传送到输出设备1206;输出设备1206将输出信息输出到计算设备1200的外部供用户使用。Specifically, the input device 1201 receives input information from the outside, and transmits the input information to the central processing unit 1203 through the input interface 1202; the central processing unit 1203 processes the input information based on computer-executable instructions stored in the memory 1204 to generate output information, temporarily or permanently store the output information in the memory 1204, and then transmit the output information to the output device 1206 through the output interface 1205; the output device 1206 outputs the output information to the outside of the computing device 1200 for the user to use.
在一个实施方式中,图12所示的计算设备可以被实现为一种电子设备,该电子设备可以包括:存储器,被配置为存储程序;处理器,被配置为运行存储器中存储的程序,以执行上述实施方式描述的环网资源的获取方法。In one embodiment, the computing device shown in FIG. 12 may be implemented as an electronic device, and the electronic device may include: a memory configured to store a program; a processor configured to run the program stored in the memory to Execute the method for acquiring ring network resources described in the foregoing embodiments.
在一个实施方式中,图12所示的计算设备可以被实现为一种环网资源的获取系统,该环网资源的获取系统可以包括:存储器,被配置为存储程序;处理器,被配置为运行存储器中存储的程序,以执行上述实施方式描述的环网资源的获取方法。In one embodiment, the computing device shown in FIG. 12 may be implemented as a ring network resource acquisition system, and the ring network resource acquisition system may include: a memory configured to store a program; a processor configured to The program stored in the memory is run to execute the method for acquiring ring network resources described in the above embodiments.
在一个实施方式中,图12所示的计算设备可以被实现为一种电子设备,该电子设备可以包括:存储器,被配置为存储程序;处理器,被配置为运行存储器中存储的程序,以执行上述实施方式描述的数据流量统计方法。In one embodiment, the computing device shown in FIG. 12 may be implemented as an electronic device, and the electronic device may include: a memory configured to store a program; a processor configured to run the program stored in the memory to Execute the data traffic statistics method described in the above implementation manner.
在一个实施方式中,图12所示的计算设备可以被实现为一种数据流量统计系统,该数据流量统计系统可以包括:存储器,被配置为存储程序;处理器,被配置为运行存储器中存储的程序,以执行上述实施方式描述的数据流量统计方法。In one embodiment, the computing device shown in FIG. 12 can be implemented as a data traffic statistics system, and the data traffic statistics system can include: a memory configured to store programs; a processor configured to run the programs stored in the memory. A program to execute the data flow statistics method described in the above embodiments.
以上所述,仅为本申请的示例性实施方式而已,并非用于限定本申请的保护范围。一般来说,本申请的多种实施方式可以在硬件或专 用电路、软件、逻辑或其任何组合中实现。例如,一些方面可以被实现在硬件中,而其它方面可以被实现在可以被控制器、微处理器或其它计算装置执行的固件或软件中,尽管本申请不限于此。The above descriptions are merely exemplary implementations of the present application, and are not intended to limit the protection scope of the present application. In general, various embodiments of the present application can be implemented in hardware or special purpose circuits, software, logic or any combination thereof. For example, some aspects may be implemented in hardware, while other aspects may be implemented in firmware or software, which may be executed by a controller, microprocessor or other computing device, although the application is not limited thereto.
本申请的实施方式可以通过移动装置的数据处理器执行计算机程序指令来实现,例如在处理器实体中,或者通过硬件,或者通过软件和硬件的组合。计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码。The embodiments of the present application can be realized by a data processor of a mobile device executing computer program instructions, for example in a processor entity, or by hardware, or by a combination of software and hardware. Computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code written in any combination of one or more programming languages or object code.
本申请附图中的任何逻辑流程的框图可以表示程序步骤,或者可以表示相互连接的逻辑电路、模块和功能,或者可以表示程序步骤与逻辑电路、模块和功能的组合。计算机程序可以存储在存储器上。存储器可以具有任何适合于本地技术环境的类型并且可以使用任何适合的数据存储技术实现,例如但不限于只读存储器(ROM)、随机访问存储器(RAM)、光存储器装置和系统(数码多功能光碟DVD或CD光盘)等。计算机可读介质可以包括非瞬时性存储介质。数据处理器可以是任何适合于本地技术环境的类型,例如但不限于通用计算机、专用计算机、微处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、可编程逻辑器件(FGPA)以及基于多核处理器架构的处理器。Any logic flow block diagrams in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules and functions, or may represent a combination of program steps and logic circuits, modules and functions. Computer programs can be stored on memory. The memory may be of any type suitable to the local technical environment and may be implemented using any suitable data storage technology, such as, but not limited to, read-only memory (ROM), random-access memory (RAM), optical memory devices and systems (digital versatile disc DVD or CD), etc. Computer readable media may include non-transitory storage media. The data processor can be of any type suitable for the local technical environment, such as but not limited to general purpose computer, special purpose computer, microprocessor, digital signal processor (DSP), application specific integrated circuit (ASIC), programmable logic device (FGPA) and processors based on multi-core processor architectures.
通过示范性和非限制性的示例,上文已提供了对本申请的示范实施方式的详细描述。但结合附图和权利要求来考虑,对以上实施方式的多种修改和调整对本领域技术人员来说是显而易见的,但不偏离本申请的范围。因此,本申请的恰当范围将根据权利要求确定。The foregoing has provided a detailed description of exemplary embodiments of the present application, by way of exemplary and non-limiting examples. However, considering the accompanying drawings and the claims, various modifications and adjustments to the above embodiments are obvious to those skilled in the art, but do not depart from the scope of the present application. Therefore, the proper scope of the application will be determined from the claims.

Claims (21)

  1. 一种环网资源的获取方法,包括:A method for acquiring ring network resources, comprising:
    根据预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,确定所述网元节点所属的环系统;Processing the obtained connection link information between network element nodes according to a preset path algorithm, and determining the ring system to which the network element nodes belong;
    根据获取到的所述网元节点的属性信息和所述网元节点所属的环系统,确定环网资源,所述环网资源表示网络中的环系统的资源。According to the acquired attribute information of the network element node and the ring system to which the network element node belongs, a ring network resource is determined, and the ring network resource represents a resource of a ring system in the network.
  2. 根据权利要求1所述的方法,其中,所述网元节点的属性信息包括:节点类型;The method according to claim 1, wherein the attribute information of the network element node includes: node type;
    所述根据预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,确定所述网元节点所属的环系统,包括:The processing of the obtained connection link information between network element nodes according to a preset path algorithm, and determining the ring system to which the network element nodes belong includes:
    在确定所述网元节点的节点类型是核心网节点的情况下,确定所述核心网节点所属的环系统是首层环系统,并标记所述核心网节点之间的链路为所述首层环系统中的核心网链路;When it is determined that the node type of the network element node is a core network node, determine that the ring system to which the core network node belongs is a first-layer ring system, and mark the link between the core network nodes as the first layer ring system Core network links in the layer ring system;
    在确定所述网元节点的节点类型不是所述核心网节点的情况下,获取候选链路集合,并根据所述预设的路径算法对所述候选链路集合中的候选链路信息进行处理,确定所述网元节点所属的环系统。When it is determined that the node type of the network element node is not the core network node, obtain a candidate link set, and process the candidate link information in the candidate link set according to the preset path algorithm , to determine the ring system to which the network element node belongs.
  3. 根据权利要求2所述的方法,其中,在所述标记所述核心网节点之间的链路为所述首层环系统中的核心网链路之前,所述方法还包括:The method according to claim 2, wherein, before marking the link between the core network nodes as a core network link in the first layer ring system, the method further comprises:
    获取核心网链路集合;Obtain a set of core network links;
    根据所述预设的路径算法对所述核心网链路集合中的核心网链路进行处理,确定所述核心网链路集合中的核心网链路的连接形式;Process the core network links in the core network link set according to the preset path algorithm, and determine the connection form of the core network links in the core network link set;
    根据所述核心网链路集合中的核心网链路的连接形式,确定是否需要在所述核心网节点之间添加虚拟链路,所述虚拟链路用于使所述首层环系统构成一个连通体。According to the connection form of the core network links in the core network link set, determine whether a virtual link needs to be added between the core network nodes, and the virtual link is used to make the first layer ring system form a connected body.
  4. 根据权利要求2所述的方法,其中,所述根据所述预设的路 径算法对所述候选链路集合中的候选链路信息进行处理,确定所述网元节点所属的环系统,包括:The method according to claim 2, wherein said processing the candidate link information in the candidate link set according to the preset path algorithm to determine the ring system to which the network element node belongs includes:
    根据所述预设的路径算法和获取到的上一层环系统的出边的网元节点,对所述候选链路集合中的候选链路进行筛选,获得待处理链路集合,并确定所述待处理链路集合中的待处理链路的连接形式,所述待处理链路集合包括k条待处理链路,k为大于或等于1的整数;According to the preset path algorithm and the obtained outbound network element nodes of the upper layer ring system, filter the candidate links in the candidate link set to obtain the pending link set, and determine the Describe the connection form of the links to be processed in the set of links to be processed, the set of links to be processed includes k links to be processed, and k is an integer greater than or equal to 1;
    根据所述待处理链路集合中的待处理链路的连接形式,确定当前环系统的成员节点;Determine the member nodes of the current ring system according to the connection form of the links to be processed in the set of links to be processed;
    确定所述当前环系统的层级值,并标记所述当前环系统的成员节点所属的环系统的层级值是所述当前环系统的层级值;determining the level value of the current ring system, and marking the level value of the ring system to which the member nodes of the current ring system belong is the level value of the current ring system;
    根据所述当前环系统的成员节点之间的链路,更新所述候选链路集合;updating the set of candidate links according to the links between the member nodes of the current ring system;
    根据所述预设的路径算法和所述当前环系统的出边的网元节点,对更新后的候选链路集合中的候选链路信息进行处理,确定所述更新后的候选链路集合中的网元节点所属的环系统。According to the preset path algorithm and the outbound network element nodes of the current ring system, process the candidate link information in the updated candidate link set, and determine the updated candidate link set The ring system to which the NE node belongs.
  5. 根据权利要求4所述的方法,其中,所述根据所述待处理链路集合中的待处理链路的连接形式,确定当前环系统的成员节点,包括:The method according to claim 4, wherein said determining the member nodes of the current ring system according to the connection form of the links to be processed in the set of links to be processed comprises:
    在确定所述待处理链路集合中的待处理链路是以环的形式连接的情况下,确定当前环系统的成员节点包括所述待处理链路集合中的待处理链路对应的网元节点;When it is determined that the links to be processed in the set of links to be processed are connected in the form of a ring, determine that the member nodes of the current ring system include network elements corresponding to the links to be processed in the set of links to be processed node;
    在确定所述待处理链路集合中的待处理链路是以链的形式连接的情况下,获取所述待处理链路下挂的所有网元节点,并将所述待处理链路集合中的待处理链路对应的网元节点以及所述待处理链路下挂的所有网元节点,作为所述当前环系统的成员节点。When it is determined that the links to be processed in the set of links to be processed are connected in the form of chains, obtain all network element nodes connected to the links to be processed, and add the links in the set of links to be processed to The network element node corresponding to the link to be processed and all network element nodes connected to the link to be processed are used as member nodes of the current ring system.
  6. 根据权利要求4所述的方法,其中,所述根据所述当前环系统的成员节点之间的链路,更新所述候选链路集合,包括:The method according to claim 4, wherein said updating said set of candidate links according to the links between member nodes of said current ring system comprises:
    从所述候选链路集合中,删除所述当前环系统的成员节点之间 的链路,获得所述更新后的候选链路集合。From the candidate link set, delete the links between the member nodes of the current ring system to obtain the updated candidate link set.
  7. 根据权利要求4所述的方法,其中,在所述根据所述当前环系统的成员节点之间的链路,更新所述候选链路集合之后,所述方法还包括:The method according to claim 4, wherein, after updating the set of candidate links according to the links between the member nodes of the current ring system, the method further comprises:
    标记所述上一层环系统是所述当前环系统的父环系统;marking the upper ring system as the parent ring system of the current ring system;
    确定所述当前环系统的父环信息,其中,所述当前环系统的父环信息包括父环系统的标识。Determine parent ring information of the current ring system, where the parent ring information of the current ring system includes an identifier of the parent ring system.
  8. 根据权利要求7所述的方法,其中,所述确定所述当前环系统的父环信息,包括:The method according to claim 7, wherein said determining the parent ring information of the current ring system comprises:
    在确定所述当前环系统接入不同的父环系统的情况下,确定所述当前环系统存在多个父环系统;When it is determined that the current ring system is connected to different parent ring systems, determine that there are multiple parent ring systems in the current ring system;
    记录所述当前环系统的多个所述父环系统的父环信息。Record parent ring information of multiple parent ring systems of the current ring system.
  9. 根据权利要求4所述的方法,其中,所述确定所述当前环系统的层级值,包括:The method according to claim 4, wherein said determining the level value of said current ring system comprises:
    根据木桶理论和所述当前环系统的成员节点的节点类型,确定所述当前环系统的层级值。Determine the level value of the current ring system according to the bucket theory and the node types of the member nodes of the current ring system.
  10. 根据权利要求9所述的方法,其中,所述根据木桶理论和所述当前环系统的成员节点的节点类型,确定所述当前环系统的层级值,包括:The method according to claim 9, wherein said determining the level value of the current ring system according to the barrel theory and the node types of the member nodes of the current ring system comprises:
    对比所述当前环系统中的各个所述成员节点的节点类型,获得对比结果;Comparing the node types of each of the member nodes in the current ring system to obtain a comparison result;
    根据所述木桶理论和所述对比结果,确定所述当前环系统的层级值。Determine the level value of the current ring system according to the barrel theory and the comparison result.
  11. 根据权利要求4所述的方法,其中,所述当前环系统是开环系统。The method of claim 4, wherein the current loop system is an open loop system.
  12. 根据权利要求1至11中任一项所述的方法,其中,所述预设的路径算法包括:最短路径算法或最长路径算法。The method according to any one of claims 1 to 11, wherein the preset path algorithm comprises: a shortest path algorithm or a longest path algorithm.
  13. 根据权利要求1至11中任一项所述的方法,其中,所述网元节点的属性信息,还包括:所述网元节点的标识、所述网元节点的父节点信息和所述网元节点的子节点信息中的任意一种或几种。The method according to any one of claims 1 to 11, wherein the attribute information of the network element node further includes: the identifier of the network element node, the parent node information of the network element node, and the network Any one or more of the child node information of the meta node.
  14. 一种数据流量统计方法,包括:A data traffic statistics method, comprising:
    采用如权利要求1至13中任一项所述的环网资源的获取方法,获取环网资源;Obtaining ring network resources by adopting the method for obtaining ring network resources according to any one of claims 1 to 13;
    根据所述环网资源,统计网络中的各个环系统的数据流量。According to the ring network resources, the data flow of each ring system in the network is counted.
  15. 根据权利要求14所述的方法,其中,所述根据所述环网资源,统计网络中的各个环系统的数据流量,包括:The method according to claim 14, wherein said counting the data traffic of each ring system in the network according to the ring network resources comprises:
    基于所述环网资源,获取第m层环系统中的网元节点的数量和所述网元节点的属性信息,m为大于或等于1的整数;Based on the ring network resources, acquire the number of network element nodes in the m-th layer ring system and the attribute information of the network element nodes, where m is an integer greater than or equal to 1;
    根据所述第m层环系统中的网元节点的数量和所述网元节点的属性信息,对所述第m层环系统中的各个网元节点进行数据流量的统计,获得所述第m层环系统的数据流量。According to the number of network element nodes in the m-th layer ring system and the attribute information of the network element nodes, perform statistics on the data traffic of each network element node in the m-th layer ring system, and obtain the m-th layer Data traffic of the layer ring system.
  16. 根据权利要求14所述的方法,还包括:The method of claim 14, further comprising:
    在确定第m层环系统存在两个父环系统的情况下,分别获取所述第m层环系统的第一父环系统下挂的网元节点集合和第二父环系统下挂的网元节点集合;In the case of determining that there are two parent ring systems in the m-th layer ring system, respectively obtain the network element node set attached to the first parent ring system and the network elements attached to the second parent ring system of the m-th layer ring system collection of nodes;
    根据所述第一父环系统下挂的网元节点集合和所述第二父环系统下挂的网元节点集合,确定重叠的网元节点;determining overlapping network element nodes according to the set of network element nodes attached to the first parent ring system and the set of network element nodes attached to the second parent ring system;
    对所述重叠的网元节点的数据流量进行统计,获得重叠数据流量;performing statistics on the data traffic of the overlapping network element nodes to obtain overlapping data traffic;
    平分所述重叠数据流量。The overlapping data traffic is equally divided.
  17. 一种环网资源的获取装置,其包括:A device for acquiring ring network resources, comprising:
    环系统确认模块,被配置为根据预设的路径算法对获取到的网元节点之间的连接链路信息进行处理,确定所述网元节点所属的环系统;The ring system confirmation module is configured to process the obtained connection link information between network element nodes according to a preset path algorithm, and determine the ring system to which the network element node belongs;
    环网资源确定模块,被配置为根据获取到的所述网元节点的属性信息和所述网元节点所属的环系统,确定环网资源,所述环网资源表示网络中的环系统的资源。The ring network resource determination module is configured to determine ring network resources according to the acquired attribute information of the network element node and the ring system to which the network element node belongs, and the ring network resource represents a resource of a ring system in the network .
  18. 一种数据流量统计装置,其包括:A data flow statistics device, which includes:
    获取模块,被配置为采用如权利要求1至13中任一项所述的环网资源的获取方法,获取环网资源;The acquisition module is configured to acquire ring network resources by adopting the acquisition method of ring network resources according to any one of claims 1 to 13;
    统计模块,被配置为根据所述环网资源,统计网络中的各个环系统的数据流量。The statistical module is configured to count the data traffic of each ring system in the network according to the ring network resources.
  19. 一种网管设备,其包括:A network management device, comprising:
    如权利要求17所述的环网资源的获取装置,和/或,如权利要求18所述的数据流量统计装置。The device for acquiring ring network resources as claimed in claim 17, and/or the device for counting data traffic as claimed in claim 18.
  20. 一种电子设备,包括:An electronic device comprising:
    一个或多个处理器;one or more processors;
    存储器,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1-13,或,如权利要求14-16中任一项所述的方法。a memory having stored thereon one or more programs which, when executed by said one or more processors, cause said one or more processors to implement claims 1-13, or , the method according to any one of claims 14-16.
  21. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-13,或,如权利要求14-16中任一项所述的方法。A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method according to any one of claims 1-13, or, any one of claims 14-16 is realized.
PCT/CN2022/094987 2021-06-04 2022-05-25 Ring network resource obtaining method, and data traffic statistics method, apparatus and device WO2022253073A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110623783.9A CN115442245A (en) 2021-06-04 2021-06-04 Ring network resource acquisition method, data traffic statistical method, device and equipment
CN202110623783.9 2021-06-04

Publications (1)

Publication Number Publication Date
WO2022253073A1 true WO2022253073A1 (en) 2022-12-08

Family

ID=84240624

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094987 WO2022253073A1 (en) 2021-06-04 2022-05-25 Ring network resource obtaining method, and data traffic statistics method, apparatus and device

Country Status (2)

Country Link
CN (1) CN115442245A (en)
WO (1) WO2022253073A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753453A (en) * 2009-12-23 2010-06-23 中兴通讯股份有限公司 Networking method for ring network of packet transport network
CN101800774A (en) * 2010-02-04 2010-08-11 中兴通讯股份有限公司 Environmental-friendly accessing method and environmental-friendly accessing network
CN103746852A (en) * 2014-01-21 2014-04-23 华为技术有限公司 Service routing configuration method and network management equipment
US20140149569A1 (en) * 2012-11-26 2014-05-29 Andreas Wittenstein Correlative monitoring, analysis, and control of multi-service, multi-network systems
CN110661666A (en) * 2019-09-29 2020-01-07 中国联合网络通信集团有限公司 Method and device for establishing ring network resources of packet transport network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753453A (en) * 2009-12-23 2010-06-23 中兴通讯股份有限公司 Networking method for ring network of packet transport network
CN101800774A (en) * 2010-02-04 2010-08-11 中兴通讯股份有限公司 Environmental-friendly accessing method and environmental-friendly accessing network
US20140149569A1 (en) * 2012-11-26 2014-05-29 Andreas Wittenstein Correlative monitoring, analysis, and control of multi-service, multi-network systems
CN103746852A (en) * 2014-01-21 2014-04-23 华为技术有限公司 Service routing configuration method and network management equipment
CN110661666A (en) * 2019-09-29 2020-01-07 中国联合网络通信集团有限公司 Method and device for establishing ring network resources of packet transport network

Also Published As

Publication number Publication date
CN115442245A (en) 2022-12-06

Similar Documents

Publication Publication Date Title
US7797425B2 (en) Method, system and apparatus for communications circuit design
WO2019228190A1 (en) Network failure analysis method and apparatus
CN104734954B (en) A kind of route determining methods and device for software defined network
CN107005485A (en) A kind of method, corresponding intrument and system for determining route
WO2017215378A1 (en) Software-defined network, node, path calculation method and device, and storage medium
CN112153700A (en) Network slice resource management method and equipment
CN104202183B (en) The method and apparatus that a kind of solution SDN stream ranks configuration conformance updates
KR101676587B1 (en) Method and apparatus for determining network topology structure
CN112367211B (en) Method, device and storage medium for generating configuration template by device command line
CN111949367A (en) Declarative methods of virtual network creation and operation
CN107104824A (en) A kind of network topology determines method and apparatus
CN111147370A (en) Method and control device for determining forwarding path
CN113923125B (en) Tolerance analysis method and device for multi-service flow converged communication in industrial heterogeneous network
CN105429879A (en) Flow table item querying method, flow table item querying equipment and flow table item querying system
CN104268243B (en) A kind of position data processing method and processing device
WO2018014883A1 (en) Strategy sending and receiving method, device and controller
WO2022146726A1 (en) Distributed artificial intelligence fabric controller
WO2022253073A1 (en) Ring network resource obtaining method, and data traffic statistics method, apparatus and device
CN108683599B (en) Preprocessing-based method and system for determining maximum flow of flow network
CN114884893B (en) Forwarding and control definable cooperative traffic scheduling method and system
CN117176722A (en) Dynamic reconstruction method, device and server
CN102694725B (en) Method for bi-directionally searching paths based on bandwidth
CN113872784A (en) Network configuration verification method and device
JP6539237B2 (en) Communication network analysis device, communication network analysis method and communication network analysis program
US10505823B2 (en) System and method for orchestrating control actions of the access network layer, the core network layer and the application platform layer

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: 22815119

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE