Network configuration method and device and electronic equipment
By monitoring the traffic values of nodes in a ring network, configuration strategies are determined to ensure that nodes retain sufficient resources, thus solving the problem of unstable data transmission caused by node failures in a ring network and achieving stable and reliable data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-11-20
- Publication Date
- 2026-05-22
AI Technical Summary
When a node fails in a ring network, switching data transmission paths can lead to insufficient network resources at the node, resulting in data packet loss and unstable transmission.
By monitoring the traffic value of the first node in the ring network, a configuration strategy is determined to ensure that the node retains sufficient network resources and achieves stable traffic transmission.
It improves the stability and reliability of data transmission, reduces resource consumption, and enhances the user experience.
Smart Images

Figure CN122073547A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication networks, and more particularly to a network configuration method, apparatus, and electronic device. Background Technology
[0002] Network topology refers to the physical or logical connections between nodes (such as computers, switches, and routers) in a network. There are many types of network topologies, such as tree topology, star topology, and ring topology. Among them, ring topology is widely used due to its simple structure and high transmission efficiency.
[0003] A ring network is a common type of network that uses a ring topology. In a ring network, the nodes are connected one by one to form a closed loop. Ring networks have a certain degree of reliability. For example, if data traffic X is transmitted along a path in a ring network in one direction (such as clockwise), and encounters a node failure that prevents it from continuing, the ring network can switch the transmission path of data traffic X to another direction (such as counterclockwise), thereby bypassing the failed node and ensuring the normal transmission of data traffic.
[0004] However, in the switched data transmission path, each node may not have enough network resources to carry the newly accessed data traffic (such as the data traffic X mentioned above), which may lead to problems such as data packet loss and data transmission failure. Summary of the Invention
[0005] This application provides a network configuration method, apparatus, and electronic device that, when a node in a ring network fails and a data transmission path needs to be switched, ensures that each node in the switched data transmission path has sufficient network resources to carry the newly accessed traffic, thereby improving the stability and reliability of data transmission.
[0006] Firstly, a network configuration method is provided. This method may include: obtaining a first traffic value of a ring network, the first traffic value being a statistical value indicating the amount of traffic flowing into and / or out of the ring network through a first node, wherein the first node is some or all nodes in the ring network connected to an upper-layer network, or the first node is some or all nodes in the ring network connected to a lower-layer network. Based on the first traffic value, a configuration strategy for the ring network is determined, the configuration strategy instructing nodes in the ring network to reserve network resources according to the configuration strategy.
[0007] The network configuration method provided in this application determines the network resources reserved by each node in the ring network based on the volume of traffic flowing into and out of the ring network through the first node (i.e., the first traffic value, which is also the overall data transmission rate between the ring network and the external network). This ensures that the network resources reserved by each node in the ring network can carry the first traffic value. Thus, it guarantees the secure and stable transmission of data traffic in the ring network, reduces packet loss during transmission, and provides high data transmission reliability and a better user experience. Furthermore, this solution only needs to monitor the traffic volume of the first node in the ring network, without monitoring all nodes in the ring network. Nodes only need to retain the network resources indicated by the configuration policy, without needing to retain all network resources, resulting in lower resource overhead and improved energy efficiency.
[0008] In conjunction with the network configuration method provided in the first aspect, the first traffic value of the ring network can be obtained in some possible implementations, including:
[0009] A sampling process is initiated targeting the first port of the first node. The first port is the port where the first node connects to non-first nodes in the ring network. The sampling process monitors the traffic volume passing through the first port. The first traffic value is determined based on the monitoring results of the sampling process. Based on this scheme, establishing a sampling process at the first port of the first node in the ring network can conveniently and accurately determine the traffic volume flowing into and out of the ring network through the first node, with relatively low resource overhead.
[0010] Based on the network configuration method provided in the first aspect, in some possible implementations, the first traffic value is determined according to the monitoring results of the sampling process. This includes calculating the sum of the inbound traffic and the sum of the outbound traffic passing through each first port in the ring network per unit time. The inbound traffic refers to the traffic flowing into the ring network, and the outbound traffic refers to the traffic flowing out of the ring network. The larger of the sum of the inbound traffic and the sum of the outbound traffic is taken as the first traffic value. Based on this scheme, it can be ensured that the first traffic value can indicate the maximum traffic that a node in the ring network can carry. When a node in the ring network fails and needs to switch data transmission paths, it can be ensured that the data traffic on the switched data transmission path will not exceed the first traffic value. Therefore, each node in the switched data transmission path has sufficient network resources to carry the newly accessed traffic.
[0011] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, obtaining the first flow value of the ring network includes: obtaining the first flow value of the ring network in N sampling intervals, where N is a positive integer. Determining the configuration strategy of the ring network based on the first flow value includes: determining the second flow value for M future time periods based on the first flow value in the N sampling intervals, where M is a positive integer. Determining the configuration strategy of the ring network for K future time periods based on the second flow value in the M future time periods, where the K future time periods are located within the M future time periods. Based on this scheme, the first flow value can be obtained in time periods (i.e., sampling intervals), and the first flow value (i.e., the aforementioned second flow value) for multiple future time periods can be predicted based on the first flow value in each sampling interval, thereby determining the configuration strategy for multiple future time periods. In this way, the network resources reserved by nodes in the ring network can be more accurately indicated, such as instructing nodes to reduce the reserved network resources during periods with smaller second flow values, which is beneficial for improving energy saving.
[0012] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, obtaining the first flow value of the ring network further includes: obtaining the first flow value of the ring network in S sampling intervals, where the time span of the S sampling intervals is less than the time span of the N sampling intervals, and the sampling interval of the S sampling intervals is less than the sampling interval of the N sampling intervals, where S is a positive integer. Determining the ring network configuration strategy based on the first flow value includes: determining the third flow value for T future time periods based on the first flow value of the S sampling intervals, where the T future time periods are located within M future time periods, and T is a positive integer. Determining the configuration strategy for P future time periods based on the third flow value of the T future time periods, where the P future time periods are located within the T future time periods, and the configuration strategy for the P future time periods has a higher priority than the configuration strategy for the K future time periods. Based on this scheme, since the sampling data of the aforementioned S sampling intervals has a finer time granularity compared to the sampling data of the N sampling intervals, the configuration strategy determined based on the sampling data of the S sampling intervals can more accurately indicate the network resources reserved by the nodes in the ring network. When there is overlap between the configuration strategies for the P time periods and the configuration strategies for the K time periods mentioned above, the nodes in this solution will prioritize the execution of the configuration strategies for the P time periods, which can improve the accuracy of the configuration strategies and improve energy-saving effects.
[0013] In conjunction with the network configuration method provided in the first aspect, some possible implementations further include: monitoring the traffic volume passing through a first port within K or P future time periods, where the first port is the port connecting the first node to a non-first node in the ring network. When the traffic volume passing through the first port exceeds a preset security threshold, updating the ring network's configuration policy for the current time period. The updated configuration policy indicates that more network resources are reserved than the previous configuration policy. Based on this scheme, the configuration policy can be adjusted promptly during traffic bursts, ensuring secure and stable data transmission within the ring network and reducing packet loss during transmission.
[0014] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, the nodes in the ring network include any one or more of the following: access nodes, aggregation nodes, and core nodes.
[0015] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, the upper-layer network refers to the network located above the ring network in the network architecture, and the lower-layer network refers to the network located below the ring network in the network architecture.
[0016] Based on the network configuration method provided in the first aspect, in some possible implementations, when the ring network is located at the access layer, the upper-layer network includes the network in the aggregation layer and the network in the core layer. When the ring network is located at the aggregation layer, the upper-layer network includes the network in the core layer, and the lower-layer network includes the network in the access layer. When the ring network is located at the core layer, the lower-layer network includes the network in the aggregation layer and the network in the access layer.
[0017] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, the configuration strategy includes a bandwidth value, which is used to instruct nodes in the ring network to configure network resources according to the bandwidth value.
[0018] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, the bandwidth value is greater than or equal to the first traffic value.
[0019] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, the configuration strategy is used to instruct nodes in a ring network to configure devices in the nodes of the ring network to adjust the operating mode of the devices.
[0020] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, after determining the ring network configuration strategy based on the first traffic value, the method further includes: displaying a first interface. The first interface includes the total bandwidth of the nodes in the ring network and the relationship curve between the ring network configuration strategy and time. Based on this scheme, users can easily obtain information such as the total bandwidth and the relationship between the configuration strategy and time, resulting in a better user experience.
[0021] In conjunction with the network configuration method provided in the first aspect, in some possible implementations, before obtaining the first traffic value of the ring network, the method further includes: displaying a second interface when a trigger operation on the startup control is detected. The second interface displays the ring network. Obtaining the first traffic value of the ring network includes: obtaining the first traffic value of the ring network when a selection operation on the ring network is detected. Based on this scheme, users can be provided with the option to customize the network for implementing the network configuration method, which is beneficial to improving the user experience.
[0022] Secondly, a network configuration apparatus is provided, comprising: a first module for acquiring a first traffic value of a ring network. The first traffic value is a statistical value indicating the amount of traffic flowing into and / or out of the ring network through a first node, wherein the first node is some or all of the nodes in the ring network connected to an upper-layer network, or the first node is some or all of the nodes in the ring network connected to a lower-layer network. The second module is for determining a configuration strategy for the ring network based on the first traffic value. The configuration strategy for the ring network is used to instruct the nodes in the ring network to reserve network resources according to the configuration strategy.
[0023] Thirdly, an electronic device is provided, comprising one or more processors. The one or more processors are configured to execute computer programs or instructions to implement the method of any of the first aspects.
[0024] Fourthly, an electronic device is provided, characterized in that it includes a memory and one or more processors. The memory is used to store computer programs or instructions. The one or more processors are used to execute the computer programs or instructions in the memory, causing the electronic device to perform the methods as described in any of the first aspects.
[0025] Fifthly, a network configuration apparatus is provided, comprising a plurality of interacting modules for implementing the method as described in any of the first aspects.
[0026] In a sixth aspect, a computer-readable storage medium is provided, comprising a computer program or instructions that, when executed, cause the method of any one of the first aspects to be implemented.
[0027] In a seventh aspect, a computer program product is provided, comprising a computer program or instructions that, when executed, cause the method of any one of the first aspects to be implemented.
[0028] Eighthly, a chip device is provided, including a processor and a memory. The processor is used to invoke a computer program or computer instructions stored in the memory to cause the processor to execute any of the implementations described in the first aspect. Optionally, the processor is coupled to the memory via an interface.
[0029] It should be understood that the second to eighth aspects of this application are consistent with or correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description
[0030] Figure 1 A schematic diagram of a ring network provided in an embodiment of this application;
[0031] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;
[0032] Figure 3 A schematic diagram of a network architecture provided in an embodiment of this application;
[0033] Figure 4 A flowchart illustrating a network configuration method provided in an embodiment of this application;
[0034] Figure 5 A schematic diagram of a region selection interface provided in an embodiment of this application;
[0035] Figure 6 A schematic diagram of yet another region selection interface provided in an embodiment of this application;
[0036] Figure 7 A schematic diagram illustrating a selection operation provided in an embodiment of this application;
[0037] Figure 8 A schematic diagram of nodes in a ring network provided in an embodiment of this application;
[0038] Figure 9 A schematic diagram of a first interface provided in an embodiment of this application;
[0039] Figure 10 This application provides a schematic diagram of the architecture of a network configuration system.
[0040] Figure 11 This is a schematic diagram of the structure of a network configuration device provided in an embodiment of this application. Detailed Implementation
[0041] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0042] References to "one embodiment" or "some embodiments" as described in this application mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0043] Furthermore, in the embodiments of this application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as an "example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the term "example" is intended to present concepts in a concrete manner. In the embodiments of this application, "of," "corresponding (relevant)," and "corresponding" may sometimes be used interchangeably, and it should be noted that their intended meanings are consistent unless their distinction is emphasized.
[0044] The application scenarios described in this application are for the purpose of more clearly illustrating the technical solutions of this application, and do not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.
[0045] To facilitate understanding, the background of the proposed embodiments of this application will be introduced below.
[0046] Ring networks, with their advantages of simple structure and high transmission efficiency, are widely used in various large-scale networks. For example, sliced packet networks (SPNs) include numerous ring networks. SPN is a next-generation converged bearer network architecture based on sliced Ethernet (SE), featuring low latency, high bandwidth, ultra-high precision synchronization, and flexible management and control. SPN is also compatible with the Ethernet ecosystem, offering low cost and ease of deployment.
[0047] For ease of explanation, the network including the ring network in this application embodiment is referred to as a ring network or a first network.
[0048] Ring networks can switch data transmission paths when a node fails, thus providing a certain degree of reliability for data transmission. For ring networks that include a ring network, a working link and a protection link are typically configured for each service. The working link and protection link for each service are isolated from each other. The protection link serves as a backup link when the working link fails.
[0049] For example, please refer to Figure 1 This is a schematic diagram of a ring network provided in an embodiment of this application. Figure 1 As shown, the ring network includes multiple nested connected ring networks. Figure 1 Taking ring networks 101 and 102 as examples). Both ring networks 101 and 102 include multiple nodes. Figure 1 (Taking the Sino-Israeli ring network 101 as an example, which includes 5 nodes, and the ring network 102 as an example, which includes 6 nodes).
[0050] As an example, service Y needs to transmit data traffic from node A in ring network 101 to node B in ring network 102. The ring network can be configured for service Y as follows: Figure 1 The diagram shows the working link and protection link. During the execution of service Y, if a node in the working link of service Y fails (e.g., ...), ... Figure 1 If node C in the ring network prevents data traffic from passing through, the ring network can switch the data transmission path of service Y to [a different path]. Figure 1 The protection link shown is used to prevent service Y from being interrupted.
[0051] For energy conservation purposes, ring networks typically determine the network resources reserved for each node based on its data transmission rate. The data transmission rate of a node can refer to the amount of traffic flowing through that node per unit time. The network resources reserved by a node can refer to the bandwidth reserved by that node or the reserved availability of operational devices, etc. For example, in... Figure 1 In the ring network shown, if node A has a data transmission rate of 5Gbps, then node A will usually reserve a bandwidth greater than 5Gbps, such as 7Gbps.
[0052] When a node in a ring network fails and a data transmission path needs to be switched, the network resources reserved by each node on the new data transmission path may not be able to handle the newly connected data traffic, leading to problems such as data packet loss and data transmission failure. For example, Figure 1 The ring network shown contains service Z and the aforementioned service Y. The working links and protection links for service Y are as follows: Figure 1As shown, the working link of service Z is the protection link of service Y, and the protection link of service Z is the working link of service Y. When the working link of service Y transmits only the data traffic of service Y, the data transmission rate of each node in the working link of service Y is 5Gbps. When the working link of service Z transmits only the data traffic of service Z, the data transmission rate of each node in the working link of service Z is 10Gbps. It should be understood that in the ring network without node failure, the data transmission rate of node C is 5Gbps, therefore the bandwidth configured for node C can be 7Gbps. When the working link of service Z fails, the data traffic of service Z is switched to the protection link of service Z for transmission. Thus, the bandwidth of node C (7Gbps) is less than the data transmission rate requirement of 15Gbps (5Gbps of service Y + 10Gbps of service Z), meaning that node C cannot handle the traffic of the newly accessed service Z.
[0053] Furthermore, in order to determine the network resources reserved for each node based on its data transmission rate, it is also necessary to monitor the traffic of each node in the ring network. This results in significant resource overhead.
[0054] To address the aforementioned issues, embodiments of this application provide a network configuration method, apparatus, and electronic device. When a node in a ring network fails and a data transmission path needs to be switched, the method ensures that each node in the switched data transmission path has sufficient network resources to carry the newly accessed traffic, thereby improving the stability and reliability of data transmission with minimal resource overhead.
[0055] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0056] It should be noted that the technical solutions in this application embodiment can be applied to nodes (or devices) in a ring network, or the control devices (or controllers) of the nodes. The ring network can be a network in various communication systems. For example, communication systems including ring networks include Universal Mobile Telecommunications System (UMTS), Wireless Local Area Network (WLAN), Wireless Fidelity (Wi-Fi) systems, 4th generation (4G) mobile communication systems (such as Long Term Evolution (LTE) systems), 5th generation (5G) mobile communication systems (such as New Radio (NR) systems), future evolution communication systems (such as 6th generation (6G) mobile communication systems), vehicle-to-everything (V2X) communication systems, device-to-device (D2D) communication systems, Internet of Things (IoT) communication systems, Industrial Internet (IIoT) communication systems, or satellite communication systems, etc.
[0057] In the embodiments of this application, the nodes in the ring network, or the control devices of the nodes, may also be referred to as electronic devices.
[0058] In some possible implementations, the electronic device can be a terminal device. This terminal device can also be called user equipment (UE), mobile station (MS), mobile terminal (MT), customer premises equipment (CPE), etc. A terminal device can be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem. Examples of terminal devices include: mobile phones, tablets, laptops, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in vehicle-to-everything (V2X) communication, wireless terminals in self-driving cars, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, or wireless terminals in smart homes, etc. For example, the wireless terminal in autonomous driving can be a drone, helicopter, or airplane. Similarly, the wireless terminal in vehicle-to-everything (V2X) communication can be in-vehicle equipment, vehicle components, in-vehicle modules, vehicles, or ships. In industrial control, the wireless terminal can be a camera, robot, or robotic arm. In smart homes, the wireless terminal can be a television, air conditioner, robot vacuum cleaner, speaker, or set-top box.
[0059] In other possible implementations, the electronic device can also be a network device. Network devices include, but are not limited to: evolved Node B (eNB), radio network controller (RNC), Node B (NB), base station controller (BSC), base transceiver station (BTS), home base station (e.g., home evolved Node B, or home Node B, HNB), baseband unit (BBU), access point (AP) in a Wi-Fi system, macro base station, micro base station, wireless relay node, donor node, radio controller in a CRAN scenario, wireless backhaul node, transmission point (TP), or transmission and receiving point (TRP), etc., and can also be network devices in a 5G mobile communication system. For example, next-generation Node B (gNB), TRP, TP in an NR system; or one or a group of antenna panels (including multiple antenna panels) of a base station in a 5G mobile communication system; or, the network device can also be a network node constituting a gNB or transmission point. Examples include centralized unit (CU), distributed unit (DU), centralized unit control plane (CU-CP), centralized unit user plane (CU-UP), or radio unit (RU).
[0060] In addition, network devices can also be network devices in fixed networks. For example, network devices can be routers, switches, optical line terminals (OLTs), optical network units (ONUs), etc.
[0061] It should be noted that electronic devices can be devices or apparatuses with chips, or devices or apparatuses with integrated circuits, or chips, chip systems, modules, or control units in the devices or apparatuses shown above; this application does not impose any specific limitations. It should also be noted that in this application, the term "electronic device" can refer to the electronic device itself, or to chips, functional modules, or integrated circuits within the electronic device that perform the methods provided in this application; this application does not impose any specific limitations in this regard.
[0062] For example, please refer to Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 2 As shown, the electronic device 200 may include one or more processors 201. Figure 2 (Taking a processor as an example). Optionally, the electronic device 200 may also include one or more memories 202 coupled to the processor 201. Figure 2 Taking a memory as an example (represented by a dashed box), the memory 202 is used to store computer programs or instructions and / or data, and the processor 201 is used to execute the computer programs or instructions and / or data stored in the memory 202, so that the methods or steps in the embodiments of this application are executed.
[0063] Alternatively, the memory 202 can be integrated with the processor 201, or it can be set separately.
[0064] Optionally, the electronic device 200 may further include a transceiver 203 for receiving and / or sending data traffic. For example, the processor 201 is used to control the transceiver 203 to receive and / or send data traffic.
[0065] In the embodiments of this application, the processor may include one or more of the following: central processing unit (CPU), digital signal processor (DSP), microprocessor unit (MPU), microcontroller unit (MCU), graphics processing unit (GPU), field programmable gate array (FPGA), artificial intelligence processor (AI processor), or neural processing unit (NPU).
[0066] Memory may include one or more of the following: random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), phase-change memory (PCM), resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), cache, register, read-only memory (ROM), flash memory, erasable programmable read-only memory (EPROM), and hard disk.
[0067] Each node in a ring network (i.e., the aforementioned electronic device) can assume different roles and functions based on its position in the network architecture. The network architecture of the network (such as a ring network) involved in the embodiments of this application is described below.
[0068] Please refer to Figure 3 This is a schematic diagram of a network architecture provided in an embodiment of this application. Figure 3 As shown, the network 300 may include multiple access layers 301, multiple aggregation layers 302, and a core layer 303.
[0069] Access layer 301 is the layer closest to the user in a network topology. It typically uses switches as nodes to handle data exchange and forwarding between the user equipment and the network. In some examples, access layer 301 can be used to connect user equipment (such as computers, mobile phones, printers, etc.) to the network and provide an interface for network access.
[0070] The aggregation layer 302 is the intermediate layer in the network architecture, located between the access layer 301 and the core layer 303. The aggregation layer 302 can connect multiple access layers 301 and aggregate data traffic from these access layers 301 to the core layer 303. The main tasks of the aggregation layer 302 are to forward, switch, and control data, while providing high-availability bandwidth to ensure fair sharing among the various access layers 301 and optimize network resource utilization. Common nodes in the aggregation layer include switches, routers, and firewalls.
[0071] The core layer 303 is the highest layer in the network topology, responsible for handling large amounts of data traffic and connecting different aggregation layers 302. Figure 3 (Taking a convergence layer as an example) and network services. The core layer 303 undertakes important tasks such as high-speed data transmission, routing decisions, and cross-network communication. Common nodes in the core layer 303 include routers, Layer 3 switches, and firewalls.
[0072] exist Figure 3 In the network architecture shown, data traffic transmission is directional. For example, data traffic can be transmitted from the access layer to the aggregation layer, and then to the core layer. Alternatively, data traffic can be transmitted from the core layer to the aggregation layer, and then to the access layer.
[0073] In this embodiment, node type can refer to the function a node performs in the network or the layer it occupies. For example, node type can include: access node, aggregation node, backbone aggregation node, core node, etc. Here, an access node refers to a node in the access layer. An aggregation node refers to a node in the aggregation layer. A backbone aggregation node refers to a node in the aggregation layer connected to a core node. A core node refers to a node in the core layer. In some possible implementations, node type can be stored as a natural attribute of the node.
[0074] The network configuration method provided in the embodiments of this application will be described below. It should be noted that this method can be applied to each node in a ring network, or to the controller of each node. The controllers of each node can be the same electronic device or different electronic devices; this is not limited here. For ease of explanation, subsequent embodiments will use the same electronic device as the controller for each node, and the network configuration method will be applied to this controller as an example, without further elaboration.
[0075] Please refer to Figure 4 This is a flowchart illustrating a network configuration method provided in an embodiment of this application. It should be understood that the following... Figure 4 The network configuration method shown is merely an exemplary illustration of the network configuration method provided in this application. Figure 4 Not all steps in this process are necessary for solving the technical problem that this application aims to address.
[0076] like Figure 4 As shown, the method may include the following steps.
[0077] S401. When a trigger operation is detected for the start control, the controller displays the area selection interface.
[0078] The activation control can be a physical button on the controller, such as a physical button or physical switch, or a virtual control in the user interface (UI) provided by the controller, such as an icon or text label (e.g., the text label "Activate Energy Saving"). When the activation control is a physical button, the triggering operation for the activation control can include pressing the physical button or turning on the physical switch. When the activation control is a virtual control in the UI, the triggering operation can include single-clicking, double-clicking, etc. This application does not specifically limit the form of the activation control or the type of triggering operation.
[0079] In this embodiment, when the controller detects a trigger operation on the start control, it can display a region selection interface in the user interface. This region selection interface can also be referred to as a second interface.
[0080] In some possible implementations, the region selection interface can display the topology diagram of the first network. The first network is a ring network, or in other words, the first network includes ring networks. This allows users to view the complete structure of the first network, improving the user experience.
[0081] For example, please refer to Figure 5 This is a schematic diagram of a region selection interface provided in an embodiment of this application. Figure 5 As shown, the area selection interface 500 displays the topology diagram 501 of the first network. It should be noted that... Figure 5 The dashed lines in the diagram are used to explain the node type of each node in the first network, that is, the level of each node in the network. The area selection interface 500 may or may not display the content of the dashed lines; this is not a limitation here. For a description of the hierarchy in the network, please refer to the description in the foregoing embodiments; this is not a limitation here either.
[0082] in addition, Figure 5 The topology diagram 501 of the first network shown is merely illustrative. In practical applications, the topology diagram of the first network displayed in the area selection interface 500 can be more detailed than that shown in the diagram. Figure 5 The scale shown may be larger or smaller, or the number of layers may be more or less, without limitation.
[0083] In other possible implementations, the region selection interface can also display the topology of the first network or its various parts through text, lists, thumbnails, icons, etc. This allows users to clearly and intuitively understand the overall structure of the first network, thus improving the user experience.
[0084] For example, please refer to Figure 6This is a schematic diagram of another region selection interface provided in an embodiment of this application. Figure 6 As shown, in the region selection interface 600, multiple text labels 601 ( Figure 6 (Taking a case with 6 text identifiers as an example) This displays the various parts of the first network, and the connections between the various parts of the first network are indicated by the lines between the multiple text identifiers 601. The text in the text identifiers 601 can be the name, identification, code, etc. of the various parts of the first network, without limitation.
[0085] It should be noted that S401 is an optional step in the network configuration method provided in this application, and it can be replaced or modified. For example, the controller can start executing the network configuration method provided in this application from S402. Another example is that S401 can be: the controller displays the area selection interface. That is, the controller can directly display the area selection interface without paying attention to whether there is a trigger operation for the start control. Yet another example is that step S401 can be omitted, and subsequent steps S406 and S407 can be executed directly on the specified ring network based on the default configuration. This application does not specifically limit this.
[0086] S402. When a selection operation is detected for a ring network in the area selection interface, the controller displays the parameter information of the ring network.
[0087] It should be noted that the ring network described here is merely an example. The controller can also display the parameter information of the second network upon detecting a selection operation for the second network in the region selection interface. The second network can be a ring network (i.e., including at least one ring network). Furthermore, the second network is a subset of the first network. In other words, the second network can be a portion of the first network, or it can be an integral part of the first network.
[0088] For ease of explanation, the following examples use a selected ring network as an example.
[0089] In some possible implementations, the region selection interface displays something like this. Figure 5 When displaying the topology diagram of the first network shown, the selection operation for the ring network can be as follows: Figure 7 The box selection operation is shown.
[0090] In other possible implementations, the topology of the first network or its various parts can be displayed in the region selection interface using text, lists, thumbnails, icons, etc. The selection operation for a ring network can be a selection operation on the corresponding text, list, thumbnail, or icon, such as a single click or double click; this is not limited here.
[0091] In this embodiment, a ring network may or may not include sub-rings. A ring network that does not include sub-rings means that its topology does not include a structure of multiple nested rings (referred to as a nested ring structure). A ring network that includes sub-rings means that its topology includes a nested ring structure.
[0092] For example, Figure 1 Neither ring network 101 nor ring network 102 in the above examples include sub-rings. The large ring network formed by ring networks 101 and 102 includes sub-rings (i.e., ring networks 101 and 102). For ease of explanation, the following embodiments use a ring network that does not include sub-rings as an example, and will not be described in detail again.
[0093] The parameter information of a ring network may include at least one or more of the following: the first node in the ring network, and the first port in the ring network.
[0094] In some possible implementations, the first node in a ring network can be defined as a node connected to an upper-level network within the ring network. Here, the upper-level network refers to a network located above the ring network in the network architecture. For example, when the ring network is located at the access layer, the upper-level network could refer to networks in the core layer, aggregation layer, etc. When the ring network is located at the aggregation layer, the upper-level network could refer to networks in the core layer.
[0095] As an example, when a ring network is located at the aggregation layer, the first node can refer to the backbone aggregation node in the ring network. When a ring network is located at the access layer, the first node can refer to the aggregation node in the ring network.
[0096] For example, in Figure 1 In the ring network shown, ring network 102 is located at the aggregation layer, and ring network 101 is located at the access layer; that is, ring network 102 is the upper-layer network of ring network 101. In ring network 101, nodes C and D are the nodes connecting ring network 101 to the upper-layer network (i.e., ring network 102). Therefore, nodes C and D are the first nodes of ring network 101.
[0097] In some other possible implementations, the first node in a ring network can also be defined as a node connected to a lower-level network within the ring network. Here, the lower-level network refers to a network located below the ring network in the network architecture. For example, when the ring network is located at the aggregation layer, the lower-level network could be a network in the access layer. When the ring network is located at the core layer, the lower-level network could be a network in the aggregation layer, a network in the access layer, etc.
[0098] As an example, when the ring network is located at the aggregation layer, the first node can refer to the node in the ring network that is connected to the access layer network. When the ring network is located at the core layer, the first node can refer to the node in the ring network that is connected to the aggregation layer network.
[0099] For example, in Figure 1 In the ring network shown, ring network 102 is located at the aggregation layer, and ring network 101 is located at the access layer. It should be understood that ring network 101 is the lower layer network of ring network 102. In ring network 101, nodes C and D are the nodes connecting ring network 102 to the lower layer network (i.e., ring network 101). Therefore, nodes C and D are the first nodes of ring network 102.
[0100] It should be noted that the definition of the first node is consistent in the embodiments of this application. That is, the first node can be uniformly defined as a node in a ring network that is connected to the lower-level network of the ring network. Alternatively, the first node can also be uniformly defined as a node in a ring network that is connected to the upper-level network of the ring network.
[0101] It should be understood that the ring network involved in the embodiments of this application can refer to a ring network that has an upper-layer network or a lower-layer network, and is connected to the upper-layer network or the lower-layer network through two adjacent nodes. When the ring network only has an upper-layer network (such as a ring network that is an access layer network), the definition of the first node in the embodiments of this application is uniformly defined as a node in the ring network that is connected to the upper-layer network of the ring network. When the ring network only has a lower-layer network (such as a ring network that is a core layer network), the definition of the first node in the embodiments of this application is uniformly defined as a node in the ring network that is connected to the lower-layer network of the ring network. When the ring network has both an upper-layer network and a lower-layer network (such as a ring network that is a convergence layer network), the definition of the first node in the embodiments of this application can be either of the above two definitions, and is not limited here.
[0102] Furthermore, a ring network is connected to an upper or lower layer network through two adjacent nodes. That is, the first nodes in a ring network are adjacent and paired. This application does not limit the specific number of first nodes in its embodiments.
[0103] For ease of explanation, unless otherwise specified, the first node in the following embodiments is defined by default as a node in the ring network that is connected to the upper-level network of the ring network, and will not be described again.
[0104] In some possible implementations, the first port can be a logical concept within the first node, used to indicate the port through which the first node transmits and transmits ring traffic. Incoming ring traffic refers to traffic entering the ring network, and outgoing ring traffic refers to traffic leaving the ring network. When the definition of the first node is uniformly defined as a node in the ring network connected to the upper-level network of the ring network, incoming ring traffic can also be called downlink traffic, and outgoing ring traffic can also be called uplink traffic. When the definition of the first node is uniformly defined as a node in the ring network connected to the lower-level network of the ring network, incoming ring traffic can also be called uplink traffic, and outgoing ring traffic can also be called downlink traffic.
[0105] In some other possible implementations, the first port can also refer to the physical port where the first node connects to a non-first node. For example, in Figure 1 In the ring network shown, ring network 102 is located in the aggregation layer, and ring network 101 is located in the access layer. When the definition of the first node is uniformly defined as a node connected to the upper-level network of the ring network, the first nodes in ring network 101 are nodes C and D. It should be understood that the non-first node connected to node C in ring network 101 is node F, and the non-first node connected to node D is node G. Therefore, the first port in ring network 101 refers to the port where node C connects to node F, and the port where node D connects to node G. The same principle applies when the definition of the first node is uniformly defined as a node connected to the lower-level network of the ring network, and will not be elaborated further.
[0106] For ease of explanation, in subsequent embodiments, unless otherwise specified, the first port is the physical port for connecting the first node to a non-first node, and will not be described again.
[0107] It should also be noted that the two nodes are connected via a first port, which may include one or more physical ports. For example, in ring network 101, node C and node F are connected via multiple physical lines (such as cables), and the first port may include multiple ports that node C is connected to via these multiple physical lines. This application does not limit this.
[0108] It should be understood that the above examples of the first node and the first port are for ease of understanding only and do not represent that this application is limited to these.
[0109] In some possible implementations, the controller can acquire the topology information of the first network when it detects a selection operation for the ring network in the region selection interface. Then, the controller can determine the parameter information of the ring network based on the topology information of the first network, such as the first node in the ring network, the first port in the ring network, etc. The topology information of the first network is used to indicate the topological structure of the first network, that is, the connection relationships between the nodes in the first network.
[0110] For example, the controller can use a preset depth-first search (DFS) algorithm to search for the ring network in the first network, the node connecting the ring network to the upper-layer network (i.e., the first node), and the non-first node connected to the first node. The port connected to the first node by the non-first node is the first port. For example, the controller can use the DFS algorithm to search for the aggregation ring (i.e., the ring network composed of aggregation nodes), the backbone aggregation node of the aggregation ring (i.e., the first node in the aggregation ring), the aggregation node adjacent to the backbone aggregation node in the aggregation ring (i.e., the non-first node connected to the first node in the aggregation ring), the access ring (i.e., the ring network composed of access nodes and aggregation nodes), the aggregation node in the access ring (i.e., the first node in the access ring), and the access node adjacent to the aggregation node in the access ring (i.e., the non-first node connected to the first node in the access ring), etc.
[0111] The controller can display the parameter information of the ring network by highlighting, or by displaying it in text, list, or other ways; no limitation is made here.
[0112] It should be noted that S402 is an optional step in the network configuration method provided in this application, and it can be replaced or modified. For example, the controller can use the parameter information of the ring network as pre-stored information or default information, thereby directly executing other steps and omitting S402. Alternatively, S402 could be: the controller displays the parameter information of the ring network. That is, the controller can directly display the parameter information of the ring network without considering whether there is a region selection interface or whether there is a selection operation for the ring network in the region selection interface. Another example is that S402 could also include: when no selection operation is detected, displaying the parameter information of the default network. The default network can be part or all of the first network, and can be customized by the user; no limitation is made here.
[0113] For ease of explanation, the following embodiment uses the display of parameter information of a ring network by the controller as an example.
[0114] S403. When a selection operation is detected for the first port in the ring network, the controller sends a sampling command to the first node in the ring network.
[0115] It should be understood that the first node to which the controller sends the sampling command can refer to the first node to which the first port targeted by the selected operation belongs.
[0116] It should be noted that the selection operation for the first port in the ring network in S403 is merely an illustrative example. In some possible implementations, such as when the parameter information of the ring network includes the first node in the ring network, S403 could also be: upon detecting a selection operation for the first node in the ring network, the controller sends a sampling command to each first node in the ring network. In this case, the first node to which the controller sends the sampling command can refer to the first node targeted by the selection operation.
[0117] For ease of explanation, the following example only uses S403 as an example, where the controller sends a sampling command to the first node in the ring network when it detects a selection operation for the first port in the ring network.
[0118] In some possible implementations, the sampling instruction is used to instruct the first node in the ring network to establish a sampling process (or sampling instance). The sampling process is used to collect and monitor the data transmission rate of inbound and outbound traffic in the first node. It should be noted that since the data transmission rate refers to the amount of traffic per unit time, the data transmission rate can also be referred to as the traffic value in this embodiment. In other words, the sampling process is used to collect and monitor the amount of traffic flowing into and out of the ring network through the first node per unit time.
[0119] In some other possible implementations, the sampling instruction can also be used to instruct the first node in the ring network to establish a sampling process at the first port in order to collect and monitor the amount of traffic flowing through the first port per unit time.
[0120] In some possible implementations, the selection operation for each first port in the ring network can refer to a checkmark operation for each first port in the ring network. For example, the controller can display each first port in the ring network in a list format on the user interface. The user can select each first port by checking the box. In other words, when the controller detects a user's checkmark operation for each first port in the ring network, it can send a sampling command to each first node in the ring network. It should be understood that the description of the selection operation here is merely exemplary; the selection operation can also be other operations, such as box selection, single-click, double-click, etc., for each first port. This application embodiment does not specifically limit the selection operation. It should be understood that when S403 is a selection operation for a first node in the ring network, the selection operation can also be the aforementioned checkmark operation, etc., which will not be elaborated further.
[0121] The sampling instruction can include sampling parameters for the sampling process, such as sampling time and sampling interval. Sampling time refers to the time from the start to the end of sampling, and sampling interval refers to the time interval between two consecutive samples.
[0122] In some possible implementations, the sampling instruction may include multiple sets of sampling parameters. Thus, the sampling instruction can be used to instruct the first node to establish a sampling process based on each set of sampling parameters. For example, the sampling instruction may include two sets of sampling parameters, referred to as the first sampling parameter and the second sampling parameter, respectively. This sampling instruction is used to instruct the first node to establish a first sampling process according to the first sampling parameter and a second sampling process according to the second sampling parameter.
[0123] Compared to the first sampling process, the second sampling process can be used for monitoring and sampling over shorter time spans and with finer time granularity, while the first sampling process can be used for monitoring and sampling over longer time spans and with coarser time granularity. The length of the time span can be distinguished by the duration of sampling, and the coarseness of the time granularity can be distinguished by the size of the sampling interval. For example, a longer time span can be understood as a longer sampling time, and a shorter time span as a shorter sampling time. Finer time granularity can be understood as a shorter sampling interval, and coarser time granularity as a larger sampling interval. In other words, the first sampling process can monitor and sample with shorter sampling times and smaller sampling intervals, while the second sampling process can monitor and sample with longer sampling times and larger time intervals.
[0124] For example, the sampling interval in the first sampling parameter can be 1ms, 2ms, 3ms, etc., and the sampling time can be from 12:00 on January 1, 2024 to 13:00 on January 1, 2024. The sampling interval in the second sampling parameter can be 5 minutes, 15 minutes, 20 minutes, etc., and the sampling time can be from 0:00 on January 1, 2024 to 0:00 on January 3, 2024. It should be understood that this is only an illustrative example, and this application does not limit the specific values of the sampling parameters.
[0125] In this embodiment, the data monitored and collected by the sampling process can be millisecond-level data, such as the traffic volume of the first port within 1ms (referred to as millisecond peak data), or the average data transmission rate of the first port over multiple milliseconds, etc., which is not limited in this application. This allows for more accurate monitoring and collection of data. In some possible examples, the data monitored and collected by the sampling process can also be minute-level data, such as the traffic volume of the first port within 1 minute, or the average data transmission rate of the first port over multiple minutes, etc. This results in lower resource consumption and energy savings. It should be understood that the above examples only consider the sampling process for monitoring and collecting the traffic volume flowing through the first node per unit time. When the sampling process is used to monitor and collect the data transmission rate of the inbound and outbound traffic in the first node, the monitored and collected data can also be the aforementioned millisecond-level or minute-level data, which is not specifically limited here. Furthermore, the controller sending a sampling command to the first node in the ring network can also be referred to as the controller initiating a sampling process for the first node in the ring network.
[0126] It should be noted that S403 is an optional step in the network configuration method provided in this application, and can be replaced or modified. For example, the first node in the ring network is configured with a sampling process by default. After obtaining the sampled data, the first node actively sends it to the controller. In this case, the controller can directly execute S406, omitting the aforementioned S401 to S405. Alternatively, S403 can be: the controller sends a sampling command to the first node in the ring network. That is, the controller can ignore whether there is a selection operation for a node in the ring network and send the sampling command to the first node in the ring network by default.
[0127] S404, the first node in the ring network establishes a sampling process based on the sampling command.
[0128] The first node can establish a sampling process according to the sampling parameters in the sampling instruction. For explanations of the sampling parameters and sampling process, please refer to the relevant content in S403; it will not be repeated here.
[0129] It should be noted that S404 is an optional step in the network configuration method provided in this application, and it can be replaced or modified. For example, the above sampling process may have already been established in the first node of the ring network, and the controller can start executing the network configuration method provided in this application from the following S405.
[0130] S405, The first node in the ring network reports the sampled data to the controller.
[0131] Sampling data refers to data monitored or collected through the aforementioned sampling process. For example, for a first node, the sampling data may include multiple sets, each set corresponding to a set of sampling parameters and a sampling process. For instance, the sampling data may include two sets, referred to as the first sampling data and the second sampling data, respectively. The first sampling data may be data monitored or collected by the first sampling process in the above embodiments, and the second sampling data may be data monitored or collected by the second sampling process in the above embodiments. As an example, compared to the second sampling data, the first sampling data may be a set of data with a shorter time span and finer time granularity, such as millisecond peak data with a sampling time of 5 minutes and a sampling interval of 1ms. The second sampling data may be a set of data with a longer time span and coarser time granularity, such as data with a sampling time of 24 hours and a sampling interval of 15 minutes.
[0132] In some possible implementations, the controller can display the sampled data reported by each node in the ring network through a user interface, which is not limited here.
[0133] In addition, in this embodiment, the sampling process can separately collect the outbound flow rate and the inbound flow rate per unit time. That is, the data transmission rate in a sampled data can include two values: the inbound flow rate and the outbound flow rate per unit time. For a description of outbound and inbound flow rates, please refer to the foregoing embodiments; further details will not be repeated here.
[0134] It should be noted that step S405 is an optional step in the network configuration method provided in this application, and it can be replaced or modified. For example, the controller can start executing the network configuration method provided in this application from step S406. Alternatively, the controller can obtain the above-mentioned sampling data through other means (such as through other lower-level or upper-level devices).
[0135] S406. The controller determines the first flow value of the ring network based on the sampled data of the first node in the ring network.
[0136] The sampling data of the first node in the ring network can also be referred to as the monitoring result of the above sampling process.
[0137] The first flow value is used to indicate the statistical value of the flow entering and / or leaving the ring network through each first node in the ring network per unit time. The statistical value of the flow entering and / or leaving the ring network through the first node includes the larger of the inflow flow and the outflow flow.
[0138] For example, such as Figure 8 As shown, Figure 7The ring network selected in the middle box includes nodes I, J, K, L, M, N, P, and Q. It should be understood that when the first node is defined as a node connected to the upper-level network of the ring network, the first node in that ring network includes nodes Q and I. When the first node is defined as a node connected to the lower-level network of the ring network, the first node in that ring network includes nodes K, L, M, and N. The controller can calculate the sum of the outgoing loop traffic and the sum of the incoming loop traffic of the aforementioned first nodes within the same sampling interval, and use the larger of the sum of the outgoing loop traffic and the sum of the incoming loop traffic as the first traffic value. For example (where the first node is defined as a node connected to the upper-level network of the ring network), in a certain sampling interval R during the sampling time, the outgoing loop traffic (i.e., the data traffic flowing from node P to node Q) of the port connected to node P (i.e., the first port of node Q) is q1, and the incoming loop traffic (i.e., the data traffic flowing from node Q to node P) is q2. The outbound traffic (data traffic flowing from node J to node I) of the port connecting node I and node J (i.e., the first port of node I) is I1, and the inbound traffic (data traffic flowing from node I to node J) is I2. Therefore, the first traffic value can be the larger value between (q1+q2) and (I1+I2). This ensures that the first traffic value indicates the maximum traffic a node in the ring network can potentially carry, thereby improving the accuracy of the configuration strategy determined in subsequent embodiments.
[0139] S407. The controller determines the configuration strategy of the ring network based on the first flow value.
[0140] In this implementation, the configuration policy for the ring network instructs nodes within the ring network to retain network resources according to the policy. In some implementations, the configuration policy instructs all nodes in the ring network to retain network resources according to the policy. For example, the configuration policy determined by the controller instructs each node in the ring network to retain network resources according to this policy. In other implementations, the configuration policy instructs only a subset of nodes in the ring network to retain network resources according to the policy. For example, the configuration policy instructs only the first node in the ring network to retain network resources according to the policy. Yet another example is that the configuration policy instructs all nodes in the ring network other than the first node to retain network resources according to the policy. Still another example is that the configuration policy instructs specified nodes in the ring network to retain network resources according to the policy.
[0141] In some possible implementations, the configuration strategy for the ring network may include bandwidth values for at least one future time period. For example, the configuration strategy may instruct that in each future time period, the first node in the ring network reserves the corresponding bandwidth value on the first port, and non-first nodes in the ring network reserve the corresponding bandwidth values on the ports connected to the ring network.
[0142] For example, the configuration strategy can be shown in Table 1 below.
[0143] Table 1
[0144]
[0145]
[0146] As shown in Table 1, this configuration strategy includes three future time periods: time period t1, time period t2, and time period t3. The bandwidth value corresponding to time period t1 is Z1. The bandwidth value corresponding to time period t2 is Z2. The bandwidth value corresponding to time period t3 is Z3. It should be understood that this configuration strategy instructs the first node in the ring network to reserve a bandwidth greater than or equal to Z1 on its first port during time period t1, and also instructs non-first nodes in the ring network to reserve a bandwidth greater than or equal to Z1 on the port connected to the ring network during time period t1; in time period t2, it reserves a bandwidth greater than or equal to Z2 on its first port, and also instructs non-first nodes in the ring network to reserve a bandwidth greater than or equal to Z2 on the port connected to the ring network during time period t2; in time period t3, it reserves a bandwidth greater than or equal to Z3 on its first port, and also instructs non-first nodes in the ring network to reserve a bandwidth greater than or equal to Z3 on the port connected to the ring network during time period t3.
[0147] It should be understood that this is merely an illustrative example of a configuration strategy and does not imply that this application is limited thereto.
[0148] In other possible implementations, configuration policies can also be used to instruct node operations (or energy-saving actions). For example, nodes in a ring network may include various devices, each capable of operating in different modes. These modes offer different capabilities (e.g., data transmission bandwidth) and consume different amounts of power. Configuration policies can be used to instruct nodes to configure these devices. For instance, when the first traffic value is relatively low, the configuration policy can instruct the node to shut down some devices or to set some devices to sleep or operate in a lower power mode. Accordingly, the configuration policy can include node identifiers, device identifiers, device operating modes, or configuration parameters for configuring devices to operate in a specified mode. Devices may be, for example, processors, or at least one board (or single board), such as a service board or a switching board. The service board is used to receive and transmit data traffic. The service board has one or more ports of the node. The switching board connects the ports of two service boards to transmit data traffic. It should be understood that the larger the bandwidth of the switching board, the greater the maximum bandwidth it can provide to the ports of the connected service boards.
[0149] In some possible implementations, the configuration policy for a specific node (e.g., referred to as node C) may include a list of switching boards for at least one future time period and the bandwidth values provided by each switching board in the list. When node C is the first node, the switching boards in the list are those connecting the first port of node C to other ports in node C. When node C is not the first node, the switching boards in the list are those connecting the port of node C to the ring network to other ports in node C. The configuration policy is used to instruct node C to adjust the bandwidth values of each switching board in the list to the corresponding bandwidth values in the configuration policy during each future time period.
[0150] In other possible implementations, the configuration policy of node C may also include a list of switching boards for at least one future time period and the operations performed on each switching board in the list. The configuration policy is used to instruct node C in the ring network to perform the corresponding operations in the configuration policy for each switching board in the list during each future time period.
[0151] It should be noted that operations on the switching board can adjust the bandwidth provided by the switching board. Therefore, the following example of adjusting the bandwidth provided by the switching board illustrates the operations on the switching network. For example, when the first node receives a configuration policy, it can adjust the bandwidth provided by the switching board for the first port through operations such as shutdown, hibernation, reset, and frequency reduction. It can also adjust the bandwidth provided by the switching board for the first port by switching the operating mode of the switching board (such as hot backup mode and warm backup mode). It can also adjust the bandwidth provided by the switching board for the first port by shutting down, hibernating, or waking up the channels within the switching board. Here, a channel is a component in the switching board used to provide bandwidth. The first node can also adjust the bandwidth provided by the switching board for the first port by shutting down, hibernating, or waking up the switching modules (serdes) within the switching board. When a non-first node receives a configuration policy, it can also perform the above operations to adjust the bandwidth of the switching board for the port connecting the non-first node to the ring network. This application embodiment does not limit this.
[0152] For example, the first port in node C (e.g., node C is the first node) is connected to other ports in node C through switching board 1 and switching board 2. The configuration strategy of node C can be as shown in Table 2 below.
[0153] Table 2
[0154]
[0155] As shown in Table 2, this configuration strategy includes two future time periods, t1 and t2. This strategy instructs node C to adjust the bandwidth provided by switching board 1 to the first port of node C to Z4 and the bandwidth provided by switching board 2 to the first port of node C to Z5 during time period t1. During time period t2, the bandwidth provided by switching board 1 to the first port of node C is adjusted to Z6, and the bandwidth provided by switching board 2 to the first port of node C is adjusted to Z7.
[0156] In other possible implementations, node operations may also include frequency adjustment operations for the node's central processing unit (CPU). For example, the node's CPU may have two operating modes: a high-frequency mode and a low-frequency mode. In high-frequency mode, the CPU operates at a higher frequency and consumes more power. In low-frequency mode, the CPU operates at a lower frequency and consumes less power. The controller can issue a configuration policy to set the CPU's operating mode to low-frequency mode when the first traffic value is less than a preset threshold, and issue a configuration policy to set the CPU's operating mode to high-frequency mode when the first traffic value is greater than the preset threshold. This helps improve the overall energy efficiency of the ring network.
[0157] exist
[0158] The configuration strategy can be in the form of a list as shown in the example above, or it can be in the form of a command line; there is no limitation here.
[0159] In this embodiment, the controller can implement a configuration strategy for the ring network directly based on a first traffic value through various methods. Examples are given below.
[0160] In some possible implementations, the controller can directly determine the configuration strategy for the ring network based on a first flow value. For example, the controller can divide the sampling duration into at least one sampling interval, establish a mapping relationship between each sampling interval and at least one future time period, and then determine the configuration strategy for each future time period based on the first flow value of each sampling interval.
[0161] For example, the sampling intervals include interval x1, interval x2, and interval x3, and each sampling interval may include one or more first flow values. Future time periods include time periods t1, t2, and t3 as shown in Table 1 above. The controller can pre-establish mapping relationships between time period t1 and interval x1, time period t2 and interval x2, and time period t3 and interval x3. Then, the controller can determine the configuration strategy for time period t1 based on the first flow value of interval x1, the configuration strategy for time period t2 based on the first flow value of time period x2, and the configuration strategy for time period t3 based on the first flow value of time period x3.
[0162] For example, when the configuration strategy is a bandwidth value, the controller can use the product of the largest first flow value in each sampling interval and a preset coefficient as the configuration strategy for the corresponding future time period of that sampling interval. The preset coefficient is a number greater than or equal to 1, such as 1.2. Taking Table 1 above as an example, if the largest first flow value in interval x1 of the ring network is 5Gbps, and the preset coefficient is 1.2, then Z1 in Table 1 can be 5 * 1.2 = 6Gbps. It should be understood that this is only an illustrative example; the controller can also use the sum of the largest first flow value in the sampling interval and a preset value as the configuration strategy for the corresponding time period, without limitation.
[0163] When configuring the policy to instruct node operations, the controller determines the corresponding time period node operation based on the first flow value of each sampling interval. Taking Table 2 above as an example, the maximum first flow value of the ring network in interval x1 is 5Gbps, so the sum of Z4 and Z5 in Table 2 can be greater than or equal to 5Gbps.
[0164] In some other possible implementations, the controller may first generate prediction data based on the first flow value, and then determine the configuration strategy of the ring network based on the prediction data.
[0165] For example, the controller can first divide the sampling duration into N sampling intervals and establish a mapping relationship between the N sampling intervals and M future time periods. Then, the controller can obtain the first flow value (such as the maximum first flow value) of the ring network in the N sampling intervals through the steps described in the embodiments of this application. Then, the controller can determine the second flow value of the M future time periods based on the first flow value of the N sampling intervals. The second flow value of the M future time periods is the prediction data. Then, the controller can determine the configuration strategy for K future time periods based on the second flow value of the M future time periods. Wherein, the K future time periods are located within the M future time periods.
[0166] For example, the sampling period is from 00:00 on January 1, 2024 (hereinafter referred to as 00:00 on January 1) to 00:00 on January 2, 2024 (hereinafter referred to as 00:00 on January 2), a total of 24 hours. The sampling interval is 15 minutes. It should be understood that the controller can determine a total of 96 first flow values. The controller can divide these 96 first flow values into 8 sampling intervals (i.e., N is 8 above). Each sampling interval occupies 3 hours of the sampling period. The 8 sampling intervals are named sampling interval A1 to sampling interval A8 in order of time from early to late. The number of future time periods is 8 (i.e., M is 8 above), with a time span from 00:00 on January 2 to 00:00 on January 3, 2024 (hereinafter referred to as 00:00 on January 3). Each future time period is 3 hours. The 8 sampling intervals are named future time period B1 to future time period B8 in order of time from early to late.
[0167] The controller can first establish sampling interval Ai With future time period B i The mapping relationship between them. Where i ranges from 1 to 8.
[0168] Then, the controller can base its decisions on the sampling interval A. i The first flow value determines the future time period B i The controller can use the product of the largest first flow rate value in each sampling interval and a preset coefficient as the prediction data for the corresponding future time period. The preset coefficient is a number greater than or equal to 1, such as 1, 1.2, etc. It should be understood that this is merely an illustrative example; the controller can also use the sum of the largest first flow rate value in the sampling interval and a preset value as the configuration strategy for the corresponding time period, which is not limited here.
[0169] Then, the controller can determine the configuration policy for four future time periods (i.e., K = 4) based on the predicted data for eight future time periods. For example, if the configuration policy is a bandwidth value, the four future time periods refer to future time periods B1 to B4. The controller can use the predicted data for these four future time periods as the bandwidth value for each future time period in the configuration policy. As another example, when the configuration policy instructs the operation of a node, the controller can determine the operation of the node for each future time period (such as the bandwidth value provided by each switching board in the node for the first port) based on the predicted data for these four future time periods, and generate the configuration policy accordingly.
[0170] In this embodiment, the division of the sampling interval and future time period can be user-defined or set by the controller default; this embodiment does not limit this.
[0171] This section provides an example of how to divide sampling intervals. For instance, the controller can calculate the variance and mean of each first flow rate value in each sampling interval. Then, the controller can modify one of the boundary points (referred to as the boundary point with the second sampling interval) of the sampling interval with the largest variance (called the first sampling interval) to minimize the sum of the variances of the modified first and second sampling intervals and maximize the difference in their means. This process is repeated until the boundary points of all sampling intervals have been modified, or the sum of the variances of all sampling intervals is less than a preset value, or the number of repetitions exceeds a preset number. This ensures a more uniform distribution of the first flow rate values across the sampling intervals, which is beneficial for improving the accuracy of the predicted data.
[0172] The following provides an exemplary method for determining prediction data. As described in the preceding embodiments, nodes can obtain sampled data with different time granularities (such as milliseconds, minutes, etc.) through multiple sampling processes. The controller can generate prediction data with a longer time span and coarser time granularity (referred to as guaranteed prediction) using sampled data with a longer time span and coarser time granularity, and generate prediction data with a shorter time span and finer time granularity (referred to as optimized prediction) using sampled data with a shorter time span and finer time granularity. Then, the controller can update the result of the guaranteed prediction using the result of the optimized prediction, that is, update and optimize the prediction data with the coarser time granularity using the prediction data with finer time granularity.
[0173] In some possible implementations, the coarser-granularity sampling data is the sampling data of the N sampling intervals in the above embodiment. The controller determines the first flow value of the N sampling intervals based on the sampling data of these N sampling intervals. Then, the controller determines the second flow value (i.e., prediction data) for M future time periods based on the first flow value of the N sampling intervals. Then, the controller determines the configuration strategy for K future time periods based on the second flow value of the M future time periods. Here, the K future time periods are located within the M future time periods. In this way, the controller implements the above-described guaranteed prediction process. The controller can also acquire sampling data of S sampling intervals and determine the first flow value of the S sampling intervals based on the sampling data of these S sampling intervals. Here, the sampling time of the S sampling intervals is less than the sampling time of the N sampling intervals, and the sampling interval of the S sampling intervals is less than the sampling interval of the N sampling intervals. In other words, the sampling data of the S sampling intervals is sampling data with a shorter time span and finer-granularity. The controller can determine the third flow value (i.e., prediction data) for T future time periods based on the first flow value of the S sampling intervals. The T future time periods are located within the M future time periods. Then, the controller determines the configuration strategy for P time periods based on the third flow values for T future time periods. The P time periods are located within the T time periods. In this way, the controller implements the aforementioned tuning and prediction process.
[0174] In the example above, the configuration strategy for P time periods has higher priority than the configuration strategy for K time periods. In other words, if there is overlap between the configuration strategies for P time periods and the configuration strategies for K time periods, the node will execute the configuration strategy for P time periods first.
[0175] It should be understood that the guarantee prediction process refers to the controller predicting the data transmission rate required by a node over a long period of time using a set of sampled data with a long time span and large sampling intervals. Through guarantee prediction, the controller can provide nodes with predicted data transmission rates over a longer period, allowing nodes to reserve network resources as needed during that time. However, due to the long time span and large sampling intervals of the sampled data in guarantee prediction, the prediction results may be subject to significant interference. Therefore, this application introduces an optimization prediction with a shorter time span, smaller sampling intervals, and shorter prediction time to calibrate and optimize the guarantee prediction results. This ensures that nodes reserve neither too many resources, leading to resource waste, nor too few, resulting in data packet loss during node failures, thus improving the user experience.
[0176] As an example, for a specific first node (e.g., node C), the sampling time for the guaranteed prediction data can be 24 hours, and the sampling interval can be 15 minutes, resulting in a total of 96 sampling intervals. In the guaranteed prediction, the controller can use the sampling data from these 96 sampling intervals to predict the data transmission rate required by the first port of node C per hour (i.e., 12 future time periods) over the next 12 hours.
[0177] In some possible scenarios, the actual data transmission rate required by the first port during a specific period within the 12 future timeframes (such as the second future timeframe) may differ from the predicted result. Therefore, in this embodiment, the controller can also perform optimization prediction. For example, the sampling time for optimization prediction can be the first 10 minutes of each hour within the next 12 hours, with a sampling interval of 100ms, resulting in 6000 sampling intervals. Using the sampled data from these 6000 intervals, the controller predicts the data transmission rate required by the first port of node C after the first 10 minutes of each hour.
[0178] The embodiments of this application can calibrate and ensure the prediction results through the above-mentioned optimization prediction results, ensuring that the resources reserved by the nodes are not too much, which would lead to resource waste, nor too little, which would lead to data packet loss when the nodes fail.
[0179] In some possible implementations, both guaranteed prediction and optimization prediction can be triggered at set times, with the triggering cycle for guaranteed prediction being longer than that for optimization prediction. For example, the guaranteed prediction process can be triggered at midnight every day, while the optimization prediction can be triggered at the top of the hour every day.
[0180] In addition, in this embodiment, within the aforementioned K or P future time periods, the controller can also monitor the real-time traffic volume passing through the first port through a sampling process. When the traffic volume passing through the first port exceeds a preset security threshold, the controller can update the ring network's configuration policy for the current time period (referred to as burst monitoring). The updated configuration policy indicates that the reserved network resources are greater than those before the update. The preset security threshold can be the product of the predicted result and a preset security coefficient. The preset security coefficient can be a number less than 1, such as 0.9, 0.8, etc., without limitation. It should be understood that the priority of the burst monitoring result can be higher than the optimization prediction result to ensure that nodes can reserve sufficient network resources and avoid problems such as data packet loss.
[0181] S408, The controller sends configuration policies to the nodes in the ring network.
[0182] S409. Nodes in a ring network retain network resources based on configuration policies.
[0183] For an introduction to the configuration strategy, please refer to the previous explanation, which will not be repeated here.
[0184] S410, the controller displays the first interface.
[0185] It should be noted that S410 is only an optional step in the network configuration method provided in this application. That is to say, the network configuration method provided in this application may or may not execute S410, and this is not a limitation.
[0186] As an example, the first interface can display the configuration information of a single node in the ring network, or it can display the configuration information of all nodes in the ring network.
[0187] Taking the configuration information of a node (e.g., node C) displayed on the first interface as an example, when the configuration policy is energy-saving action, the configuration information of node C may include at least one of the following: the total bandwidth (or maximum bandwidth) of node C, the energy-saving actions of node C in various future time periods, and the real-time traffic of some ports (e.g., ports connected to the ring network) or all ports of node C.
[0188] When the configuration policy is set to bandwidth, the configuration information for node C can include at least one of the following: node C's total bandwidth (or maximum bandwidth), node C's bandwidth values for various future time periods, and real-time traffic of some ports (such as ports connecting to the ring network) or all ports of node C. The difference between the node's maximum bandwidth and the bandwidth values for various future time periods indicates the network resources saved by node C.
[0189] For example, please refer to Figure 9This is a schematic diagram of a first interface provided in an embodiment of this application. Figure 9 As shown, for a specific node and its first port, the first interface can display a coordinate system with time on the horizontal axis and bandwidth on the vertical axis. This coordinate system includes curves 1, 2, and 3. Curve 1 indicates the real-time traffic of the first port in the node, curve 2 indicates the bandwidth values for various future time periods in the configuration policy (i.e., the relationship between the configuration policy and time), and curve 3 indicates the maximum bandwidth of the node. The shaded area between curves 2 and 3 indicates the energy-saving effect. This allows users to easily and intuitively view the above information, providing a better user experience.
[0190] Based on the above explanation, it should be understood that the overall data transmission rate between the ring network and the external network is greater than or equal to the data transmission rate of any node in the ring network. Therefore, when a node in the ring network fails and a data transmission path needs to be switched, the data transmission rate of each node on the switched data transmission path will not exceed the overall data transmission rate between the ring network and the external network. The network configuration method provided in this application determines the network resources reserved by each node in the ring network based on the amount of traffic flowing into and out of the ring network through the first node per unit time (i.e., the first traffic value, which is also the overall data transmission rate between the ring network and the external network). This ensures that the network resources reserved by each node in the ring network can carry the first traffic value. In this way, data traffic can be transmitted safely and stably in the ring network, reducing packet loss during data transmission, resulting in high data transmission reliability and a better user experience. In addition, this solution only needs to monitor the traffic of the first node in the ring network, without monitoring all nodes in the ring network, and the nodes only need to retain the network resources indicated by the configuration policy, without retaining all network resources. This reduces resource overhead and helps improve energy efficiency.
[0191] This application also provides a network configuration system. This network configuration system can be applied to nodes or to the node's controller; no limitation is made herein.
[0192] Please refer to Figure 10 This is a schematic diagram of the architecture of a network configuration system provided in an embodiment of this application. Figure 10 As shown, the network configuration system includes a user interaction layer 1001, a control layer 1002, and a data layer 1003. The physical forms of the user interaction layer 1001 and the control layer 1002 can be the controllers described in the previous embodiments, and the physical form of the data layer 1003 can be the nodes described in the previous embodiments.
[0193] For example, the user interaction layer 1001 can display a startup control and, upon detecting a trigger operation on the startup control, display a region selection interface. Then, the control layer 1002 can identify the first port, first node, etc., in the ring network upon detecting a selection operation on the ring network in the region selection interface. Then, the user interaction layer 1001 can initiate a sampling process in the data layer 1003 upon detecting a selection operation on each first port in the ring network. Then, the data layer 1003 acquires data through the sampling process and sends the sampled data to the control layer 1002 to calculate a first flow value. Then, the control layer 1002 can calculate a configuration policy based on the first flow value and send the configuration policy to the data layer 1003 for execution. Additionally, the user interaction layer 1001 can display a first interface including the configuration policy.
[0194] The specific details of each of the above steps can be found in the descriptions in the foregoing method embodiments, and will not be repeated here.
[0195] This application also provides a network configuration device, which may include multiple interacting modules for implementing any of the methods described in the above method embodiments.
[0196] For example, please refer to Figure 11 This is a schematic diagram of the structure of a network configuration device provided in an embodiment of this application. Figure 11 As shown, the network configuration device includes: a first module 1101, used to acquire a first flow value of the ring network. The first flow value is used to indicate the statistical value of the flow entering and / or leaving the ring network through a first node, where the first node is some or all of the nodes in the ring network that are connected to the upper layer network, or, the first node is some or all of the nodes in the ring network that are connected to the lower layer network. A second module 1102, used to determine a configuration strategy for the ring network based on the first flow value. The configuration strategy for the ring network is used to instruct the nodes in the ring network to reserve network resources according to the configuration strategy.
[0197] In some possible implementations, the first module 1101 is specifically used to initiate a sampling process for a first port in the first node. The first port is the port where the first node connects to a non-first node in the ring network. The sampling process is used to monitor the traffic volume passing through the first port. The first module 1101 is also used to determine a first traffic value based on the monitoring results of the sampling process.
[0198] In some possible implementations, the first module 1101 is further configured to calculate the sum of the inbound traffic and the sum of the outbound traffic passing through each first port in the ring network per unit time. The inbound traffic refers to the traffic flowing into the ring network, and the outbound traffic refers to the traffic flowing out of the ring network. The larger of the sum of the inbound traffic and the sum of the outbound traffic is taken as the first traffic value.
[0199] In some possible implementations, the first module 1101 is further configured to acquire topology information of the first network. The first network includes a ring network. The topology information of the first network is used to indicate the connection relationships between nodes in the first network. The first module 1101 is further configured to determine the first node in the ring network based on the topology information of the first network.
[0200] In some possible implementations, the first module 1101 is further configured to acquire the first flow value of the ring network over N sampling intervals, where N is a positive integer. The second module 1102 is further configured to determine the second flow value for M future time periods based on the first flow value over the N sampling intervals, where M is a positive integer. The second module 1102 then determines the configuration strategy of the ring network over K future time periods based on the second flow value over the M future time periods. The K future time periods are located within the M future time periods.
[0201] In some possible implementations, the first module 1101 is further used to obtain the first flow value of the ring network in S sampling intervals. The time span of the S sampling intervals is less than the time span of the N sampling intervals. S is a positive integer. The second module 1102 determines the third flow value for T future time periods based on the first flow value of the S sampling intervals. The T future time periods are located within M future time periods. T is a positive integer. The second module 1102 determines the configuration strategy for P future time periods based on the third flow value of the T future time periods. The P future time periods are located within T future time periods. The configuration strategy for the P future time periods has a higher priority than the configuration strategy for the K future time periods.
[0202] In some possible implementations, the network configuration device may further include a third module (not shown in the figure). The third module is used to monitor the traffic volume passing through the first port over K or P future time periods. The first port is the port connecting the first node to the ring network. When the traffic volume passing through the first port exceeds a preset security threshold, the configuration policy of the ring network for the current time period is updated. The updated configuration policy indicates that more network resources are reserved than the previous configuration policy.
[0203] In some possible implementations, the nodes in a ring network include any one or more of the following: access nodes, aggregation nodes, and core nodes.
[0204] In some possible implementations, the upper-layer network is the network located above the ring network in the network architecture, and the lower-layer network is the network located below the ring network in the network architecture.
[0205] In some possible implementations, when the ring network is located at the access layer, the upper network includes the network in the aggregation layer and the network in the core layer. When the ring network is located at the aggregation layer, the upper network includes the network in the core layer, and the lower network includes the network in the access layer. When the ring network is located at the core layer, the lower network includes the network in the aggregation layer and the network in the access layer.
[0206] In some possible implementations, the configuration policy is a bandwidth value. The configuration policy includes a bandwidth value, which is used to instruct nodes in the ring network to configure network resources according to the bandwidth value.
[0207] In some possible implementations, the bandwidth value is greater than or equal to the first traffic value.
[0208] In some possible implementations, configuration policies are used to instruct nodes in a ring network to configure devices within the ring network to adjust the device's operating mode.
[0209] In some possible implementations, the network configuration device may also include a fourth module (not shown in the figure). The fourth module is used to display the first interface. The first interface includes the total bandwidth of the nodes in the ring network and the relationship curve between the ring network configuration strategy and time.
[0210] Optionally, the fourth module is also used to display a second interface when a trigger operation for the launch control is detected. The second interface displays a ring network. Obtaining the first flow value of the ring network includes: obtaining the first flow value of the ring network when a selection operation for the ring network is detected.
[0211] This application also provides an electronic device including one or more processors. The one or more processors are used to execute computer programs or instructions to implement any of the methods described in the above method embodiments.
[0212] This application also provides a computer-readable storage medium, which includes a computer program or instructions that, when executed, enable the implementation of any of the methods described in the above embodiments.
[0213] This application also provides a computer program product, which includes a computer program or instructions, such that when the computer program or instructions are run, the method of any one of the above method embodiments is implemented.
[0214] This application also provides a chip device including a processor and a memory. The processor is used to invoke a computer program or computer instructions stored in the memory to cause the processor to execute any implementation of the above-described method embodiments. Optionally, the processor is coupled to the memory via an interface.
[0215] It should be noted that some optional features in the various embodiments of this application may not depend on other features in certain scenarios, or may be combined with other features in certain scenarios, without limitation.
[0216] The solutions in the various embodiments of this application can be used in reasonable combinations, and the explanations or descriptions of various terms, similar operations, or steps appearing in the embodiments can be referenced or explained to each other in the various embodiments, without limitation.
[0217] This application also provides a system that includes one or more of the above-described devices, apparatuses, computer-readable storage media, computer program products, chips, or chip systems.
[0218] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the explanation of the relevant content and beneficial effects of any of the devices, equipment, and media provided above can be referred to the corresponding method embodiments provided above, and will not be repeated here.
[0219] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0220] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0221] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0222] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essential contribution of the technical solution of this application, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0223] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A network configuration method, characterized in that, include: Obtain a first flow value of the ring network. The first flow value is used to indicate the statistical value of the flow volume flowing into and / or out of the ring network through the first node. The first node is some or all of the nodes in the ring network that are connected to the upper layer network, or the first node is some or all of the nodes in the ring network that are connected to the lower layer network. The configuration strategy of the ring network is determined based on the first traffic value. The configuration strategy of the ring network is used to instruct the nodes in the ring network to reserve network resources in accordance with the configuration strategy.
2. The method according to claim 1, characterized in that, The process of obtaining the first traffic value of the ring network includes: Initiate a sampling process for the first port in the first node, where the first port is the port where the first node is connected to a non-first node in the ring network, and the sampling process is used to monitor the amount of traffic passing through the first port; The first flow rate value is determined based on the monitoring results of the sampling process.
3. The method according to claim 2, characterized in that, Determining the first flow rate value based on the monitoring results of the sampling process includes: Calculate the statistical values of the inbound traffic and / or outbound traffic passing through the first port of the first node in the ring network per unit time; the inbound traffic refers to the traffic flowing into the ring network, and the outbound traffic refers to the traffic flowing out of the ring network. The statistical value of the flow size flowing into and / or out of the ring network through the first node includes the larger of the inflow flow size and the outflow flow size.
4. The method according to any one of claims 1-3, characterized in that, The step of obtaining the first flow value of the ring network includes: obtaining the first flow value of the ring network in N sampling intervals, where N is a positive integer; The method for determining the configuration strategy of the ring network based on the first traffic value includes: Based on the first flow rate values of the N sampling intervals, determine the second flow rate values for M future time periods, where M is a positive integer; The configuration strategy of the ring network in K future time periods is determined based on the second traffic values of the M future time periods, where the K future time periods are located within the M future time periods.
5. The method according to claim 4, characterized in that, The process of obtaining the first flow value of the ring network also includes: Obtain the first flow value of the ring network in S sampling intervals, where the time span of the S sampling intervals is less than the time span of the N sampling intervals, and the sampling interval of the S sampling intervals is less than the sampling interval of the N sampling intervals, where S is a positive integer; The method for determining the configuration strategy of the ring network based on the first traffic value includes: The third flow value for T future time periods is determined based on the first flow value of the S sampling intervals, wherein the T future time periods are located within the M future time periods, and T is a positive integer; The configuration strategies for P future time periods are determined based on the third traffic values of the T future time periods. The P future time periods are located within the T future time periods, and the configuration strategies for the P future time periods have a higher priority than the configuration strategies for the K future time periods.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: Within the K future time periods or the P future time periods, monitor the traffic volume passing through the first port, where the first port is the port where the first node connects to a non-first node in the ring network; When the traffic volume passing through the first port exceeds a preset security threshold, the configuration policy of the ring network for the current time period is updated; wherein the updated configuration policy indicates that the reserved network resources are greater than those of the previous configuration policy.
7. The method according to any one of claims 1-6, characterized in that, The nodes in the ring network include any one or more of the following: access nodes, aggregation nodes, and core nodes.
8. The method according to any one of claims 1-7, characterized in that, The configuration strategy includes a bandwidth value, which is used to instruct nodes in the ring network to configure network resources according to the bandwidth value.
9. The method according to any one of claims 1-7, characterized in that, The configuration strategy is used to instruct nodes in the ring network to configure devices in the ring network to adjust the operating mode of the devices.
10. The method according to any one of claims 1-9, characterized in that, After determining the configuration strategy of the ring network based on the first traffic value, the method further includes: The first interface is displayed, which includes the total bandwidth of the nodes in the ring network and the relationship curve between the configuration strategy of the ring network and time.
11. The method according to any one of claims 1-10, characterized in that, Before obtaining the first flow value of the ring network, the method further includes: When a trigger operation on the launch control is detected, a second interface is displayed, which displays the ring network. The process of obtaining the first traffic value of the ring network includes: When a selection operation is detected for the ring network, the first traffic value of the ring network is obtained.
12. A network configuration device, characterized in that, It includes multiple interacting modules for implementing the method as described in any one of claims 1 to 11.
13. An electronic device, characterized in that, It includes one or more processors; the one or more processors are configured to execute computer programs or instructions to implement the method according to any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program or instructions that, when executed, cause the method of any one of claims 1-11 to be implemented.