Method, device and equipment for enabling speed limit based on normal communication interface number
By monitoring the number of normal communication interfaces of network devices and adaptively enabling or disabling rate limiting policies, the problem of resource waste caused by existing rate limiting policies is solved, and efficient bandwidth management and availability of critical applications are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU DPTECH TECH
- Filing Date
- 2023-05-04
- Publication Date
- 2026-07-21
AI Technical Summary
Existing rate limiting policies remain enabled after user configuration, regardless of actual bandwidth usage, leading to resource waste and an inability to adaptively adjust based on the actual load of network devices.
By monitoring the number of normal communication interfaces of network devices, a rate limiting policy is enabled when the number of interfaces is less than the pre-configured minimum number of normal communication interfaces, and disabled otherwise, adaptive bandwidth management is achieved.
It improved resource utilization efficiency, enhanced CPU throughput, ensured the availability of critical applications, and avoided resource waste.
Smart Images

Figure CN116545939B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of network communication technology, and in particular to a method, apparatus, and device for enabling rate limiting based on the number of normal communication interfaces. Background Technology
[0002] In a network environment, multiple devices share bandwidth. If user traffic is not limited, sudden surges in data from a large number of users can cause network congestion. To prevent server downtime and application malfunctions due to bandwidth exhaustion, it is necessary to manage user internet activity and set rate-limiting policies to ensure network availability or guarantee the availability of critical applications.
[0003] Currently, existing rate-limiting policies require users to configure relevant parameters, add IP addresses to the rate-limiting group, and set the maximum uplink and downlink bandwidth for the controlled devices. IP addresses not added to the group default to sharing bandwidth. Once configured and enabled, the rate-limiting policy remains active regardless of actual bandwidth usage, resulting in resource waste. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this specification provides a method, apparatus, and device for enabling rate limiting based on the number of normal communication interfaces.
[0005] According to a first aspect of the embodiments of this specification, a method for enabling rate limiting based on the number of normal communication interfaces is provided, the method comprising:
[0006] Obtain the number of normal communication interfaces of the monitored network devices;
[0007] If the number of normal communication interfaces is less than the pre-configured minimum number of normal communication interfaces, then the pre-configured rate limiting policy is enabled on the network device.
[0008] Optionally, the minimum number of normal communication interfaces is recorded in the rate limiting policy; wherein, the network device is configured with one or more of the rate limiting policies.
[0009] Optionally, the minimum number of normal communication interfaces is stored in a global variable; the method further includes:
[0010] Read the minimum number of normal communication interfaces from the global variable.
[0011] Optionally, obtaining the number of normal communication interfaces of the monitored network device includes:
[0012] The status of the communication interface on the network device is monitored through a monitoring process, and the monitoring results are recorded in the monitoring list.
[0013] Read the number of normal communication interfaces from the monitoring list.
[0014] Optionally, enabling the pre-configured rate limiting policy on the network device includes:
[0015] Read the bandwidth limiting table stored in the database, the bandwidth limiting table records the on / off status flag of the limiting policy;
[0016] Set the switch status flag to the enabled state.
[0017] Optionally, the method further includes:
[0018] After the rate limiting policy is enabled, if the number of normal communication interfaces increases to a level greater than or equal to the pre-configured minimum number of normal communication interfaces, then the rate limiting policy is disabled on the network device.
[0019] Optionally, the method further includes:
[0020] The network device can obtain information about whether the method is in an on or off state; when the network device obtains that the method is in an on state, it applies the method.
[0021] According to a second aspect of the embodiments of this specification, an apparatus for enabling rate limiting based on the number of normal communication interfaces is provided, comprising:
[0022] The acquisition unit is used to acquire the number of normal communication interfaces of the monitored network devices.
[0023] The comparison unit is used to compare the number of normal communication interfaces with the pre-configured minimum number of normal communication interfaces.
[0024] A rate limiting unit is used to receive the comparison result from the comparison unit. If the number of normal communication interfaces is less than the pre-configured minimum number of normal communication interfaces, a pre-configured rate limiting policy is enabled on the network device.
[0025] According to a third aspect of the embodiments of this specification, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the method as described in the first aspect.
[0026] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method as described in the first aspect.
[0027] The technical solutions provided in the embodiments of this specification may include the following beneficial effects:
[0028] As can be seen from the above embodiments, the technical solution of this specification obtains the number of normal communication interfaces of the monitored network device and pre-configures a minimum number of normal communication interfaces. When the number of normal communication interfaces is less than the pre-configured minimum number of normal communication interfaces, it indicates that the number of working interfaces is lower than the preset value, and the remaining available bandwidth resources are insufficient for the network device. At this time, a pre-configured rate limiting policy is enabled on the network device to help allocate bandwidth resources reasonably, making the network available or ensuring the availability of critical applications. Compared with existing bandwidth rate limiting methods, the technical solution of this specification can determine whether to enable the pre-configured rate limiting policy based on the pre-set minimum number of normal communication interfaces and the real-time bandwidth usage of the network device during operation, i.e., the number of normal communication interfaces. The technical solution of this specification can achieve load balancing through adaptive rate limiting based on the number of normal communication interfaces, effectively improving resource utilization efficiency and enhancing CPU throughput.
[0029] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description
[0030] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this specification and, together with the description, serve to explain the principles of this specification.
[0031] Figure 1 This is a flowchart illustrating a method for enabling rate limiting based on the number of normal communication interfaces, according to an exemplary embodiment of this specification.
[0032] Figure 2 This is a schematic diagram illustrating communication between a terminal device, a network device, and a database according to an exemplary embodiment.
[0033] Figure 3 This specification is a schematic diagram illustrating the interaction process between a network device and a database according to an exemplary embodiment.
[0034] Figure 4 This is a schematic diagram of a network rate limiting management software interface without configured address groups, as illustrated in this specification according to an exemplary embodiment.
[0035] Figure 5 This is a schematic diagram of a network rate limiting management software interface for configuring the number of address groups, as illustrated in this specification according to an exemplary embodiment.
[0036] Figure 6 This is a structural block diagram of an exemplary embodiment of the present specification, which provides a device for enabling rate limiting based on the number of normal communication interfaces.
[0037] Figure 7This is a schematic diagram of an electronic device structure shown in an exemplary embodiment of this specification. Detailed Implementation
[0038] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this specification. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this specification as detailed in the appended claims. The exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein. These embodiments are provided so that the invention will be thorough and complete, and fully convey the concept of the exemplary embodiments to those skilled in the art.
[0039] The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of this specification. The singular forms “a,” “the,” and “the” as used in this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
[0040] It should be understood that although the terms first, second, third, etc., may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this specification, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."
[0041] As mentioned above, based on the technical solution in this specification, network devices can achieve load balancing by adaptively limiting the rate based on the number of normal communication interfaces, effectively improving resource utilization efficiency and enhancing CPU throughput.
[0042] To facilitate understanding, some of the concepts involved in this instruction manual are explained below:
[0043] Interface status pertains to the physical layer connection status. Network interfaces have two physical connection states: up (normal communication state) and down (abnormal communication state). An up network interface status indicates that the port can receive a matching physical signal (electrical or optical). When the network interface status is down, it indicates an abnormal communication state; the network device indicator light will be constantly off, the interface cannot send packets normally, and a warning log will be generated on the network device.
[0044] The number of normal communication interfaces refers to the number of network interfaces in a normal communication state, i.e., the number of interfaces with an "up" status. Ethernet is the most widely used local area network (LAN) communication method and also a protocol. The Ethernet protocol defines a series of software and hardware standards to connect different computer devices together. The basic elements of Ethernet networking include switches, routers, hubs, fiber optic cables, ordinary network cables, and the Ethernet protocol and communication rules. A network interface is the port for network data connection.
[0045] Networking refers to connecting multiple computers or network devices together so that they can communicate with each other and share resources. This process involves various technologies and protocols, including network topology, network protocols, and network security. The main purpose of networking is to enable data transmission and resource sharing between computers. In a networked environment, multiple computers can communicate with each other and share data and resources through network connections. This can improve work efficiency, reduce repetitive work, and save time and costs. The technical solutions in this manual can be used in various networking modes, such as transparent mode networking, VSM networking, and gateway mode networking.
[0046] Kernel: The most critical part of the operating system, it is a set of program code and data responsible for managing computer hardware and software resources. The kernel has high privileges, accessing all hardware resources of the computer system and controlling and managing all running processes and threads. The kernel's main tasks include handling the scheduling and management of hardware and software resources, and providing system services and interfaces to user programs. The kernel resides in computer memory, handling core tasks. Upon receiving a request, it allocates resources to the application, completes the operation, and then returns the result to the application. In this specification, when the relationship between the number of normal communication interfaces and the pre-configured minimum number of normal communication interfaces changes, the bandwidth rate limiting related table flags are modified through the database, and the operating system kernel is instructed to enable or disable the rate limiting policy.
[0047] Speed limiting policies refer to strategies that restrict bandwidth to achieve network speed limits. Currently, there are two main methods for limiting the speed of LAN users: one is through configuring router parameters, and the other is through third-party software. Generally, network speed limiting management software has an option to add corresponding IPs in its configuration settings. First, the user needs to enable the speed limiting function, and then add the IPs that need to be speed-limited to the speed limiting group. Only IPs added to the speed limiting group will have the speed limiting function enabled; IPs not added to the speed limiting group will still be subject to shared bandwidth by default.
[0048] Network speed limiting management software refers to software designed to limit bandwidth. To prevent users downloading large software or games and impacting overall network speed, network administrators need to limit the speed of a local area network (LAN). Speed limiting software is commonly used in enterprises to manage employee internet usage. When using it, relevant parameters need to be configured in the network speed limiting management software, such as IP address groups, inbound rate, outbound rate, controlled host uplink bandwidth limit, controlled host downlink bandwidth limit, speed limiting application, and speed limit validity period. The technical solution in this manual requires the use of network speed limiting management software with additional functions, including at least: the ability to configure a minimum number of normal communication interfaces, monitor the status of communication interfaces and count the number of normal communication interfaces, and the ability to communicate with a database. This manual does not impose any limitations on these functions.
[0049] To implement the technical solutions described in this specification, the network device also needs to include additional functions, which will be described in detail in the following description of the embodiments. Therefore, the network device also needs to have additional functional modules. The network device can be a single device that simultaneously possesses the relevant functional modules; that is, all the functional modules required in the embodiments are built into the network device. Alternatively, the network device can be a combination of a single device with only some functional modules and external functional modules or other devices with other functional modules. This specification does not limit the actual configuration of the network device.
[0050] The specific implementation methods of this specification will now be described in detail with reference to the embodiments and accompanying drawings.
[0051] Figure 1 This is a flowchart illustrating an exemplary embodiment of a method for enabling rate limiting based on the number of normal communication interfaces provided in this specification. Figure 1 As shown, the method may include the following steps:
[0052] Step 102: Obtain the number of normal communication interfaces of the monitored network devices.
[0053] This embodiment can be applied to network devices, meaning that the network device executes the various steps of this embodiment. As mentioned above, in order to implement the various steps of this embodiment, the network device also needs to have functional modules for implementing other functions. Some embodiments will be listed below, and corresponding descriptions will be made of the other functions that the network device needs to implement and the other functional modules it needs to possess.
[0054] Of course, since there may be multiple embodiments of the technical solution in this specification, the specific functions required by the network device in different embodiments may differ. Those skilled in the art can make actual additions, subtractions or selections according to the requirements of the embodiments, and this specification does not limit this.
[0055] A network device is a device with several network ports capable of sending and receiving packets from terminal devices (mobile phones, tablets, personal computers, etc.) and limiting the rate of packets flowing through its interfaces. Packets exceeding a specified threshold are discarded, while packets below the threshold are allowed to enter or leave. This device can limit the rate of traffic. Since rate limiting mechanisms are more commonly used at network boundaries, such as on access layer switch ports or edge gateways in enterprise networks, network devices can include routers, switches, firewalls, etc. This is merely an example; this specification does not limit the type of network device.
[0056] Network devices need to have the following functions: the ability to configure a minimum number of normal communication interfaces, monitor the status of communication interfaces, and count the number of normal communication interfaces. Optionally, network devices may also have the ability to communicate with a database. The monitoring method is as follows: a parent process creates a child process, which acts as the monitoring process, monitoring the communication status of each network interface in the system background in real time.
[0057] Step 104: If the number of normal communication interfaces is less than the pre-configured minimum number of normal communication interfaces, then the pre-configured rate limiting policy is enabled on the network device.
[0058] When the number of normal communication interfaces is less than the pre-configured minimum number of normal communication interfaces, the network device enables the pre-configured rate limiting policy.
[0059] The technical solutions in this specification can be used in conjunction with network rate limiting management software with corresponding functions. The network rate limiting management software can be configured with: IP address groups for which rate limiting should be enabled based on the number of normal communication interfaces, the minimum number of normal communication interfaces corresponding to the IP address groups, and specific rate limiting policies that match the minimum number of normal communication interfaces for each IP address group. The specific rate limiting policies need to include at least one of the following: ingress rate, egress rate, uplink bandwidth limit for the controlled host, downlink bandwidth limit for the controlled host, applications requiring rate limiting, and the effective time of the rate limiting policy. This specification does not impose any limitations on these aspects.
[0060] The minimum number of normal communication interfaces configured in network rate limiting management software reflects the user's expectations regarding bandwidth limitation. A smaller minimum number of normal communication interfaces indicates more severe bandwidth resource occupancy and less remaining bandwidth. Therefore, a smaller pre-configured minimum number of normal communication interfaces results in a higher threshold for activating the rate limiting policy.
[0061] When the number of normal communication interfaces is less than the preset minimum number of normal communication interfaces, a pre-configured rate limiting policy is activated. After the pre-configured rate limiting policy is activated, the network device monitors the rate of traffic entering the network and "penalizes" the traffic exceeding the limit. The penalty behavior can be customized as packet loss or re-marking of the packet. This is only an example, and this specification does not limit the specific handling method for the excess traffic.
[0062] In one embodiment, all rate limiting policy parameters, including the pre-configured minimum number of normal communication interfaces, are stored locally on the network device, without needing to upload to a database and retrieve relevant data information. This specification does not impose any restrictions on this.
[0063] In one embodiment, the pre-configured minimum number of normal communication interfaces is uploaded to a database as a global variable after configuration is completed. After obtaining the number of normal communication interfaces, the network device retrieves the pre-configured minimum number of normal communication interfaces from the global variables in the database for subsequent comparison.
[0064] Network devices and databases can cooperate to obtain a comparison between the number of normal communication interfaces and the pre-configured minimum number of normal communication interfaces. The following example illustrates this cooperation method:
[0065] In one embodiment, the network device can upload relevant parameters configured in the network rate limiting management software, such as IP address groups, minimum number of normal communication interfaces, maximum bandwidth, applications requiring rate limiting, and the effective time of the rate limiting policy, along with the number of normal communication interfaces, to the database. The device also receives comparison results from the database, comparing the minimum number of normal communication interfaces with the total number of normal communication interfaces. The number of normal communication interfaces is obtained by the network device through a monitoring process. This monitoring process obtains the number of normal communication interfaces by monitoring the communication interface status (normal or abnormal) on the network device, recording the detection results in a monitoring list, and reading the number of normal communication interfaces from the monitoring list. In this embodiment, the network device must include a communication module. The communication module is used to establish a communication connection between the network device and the database. This communication connection can be established based on a wired or wireless network and implemented using any communication protocol in related technologies; this specification does not impose any limitations on this. The network device can upload the actual written data to the database based on this communication connection and receive the comparison results returned by the database.
[0066] In one embodiment, the network device can upload relevant parameters configured in the network rate limiting management software (same as in the previous embodiment, not repeated here) to the database, and receive the minimum number of normal communication interfaces returned by the database and the number of normal communication interfaces obtained by the monitoring process. Then, it compares the minimum number of normal communication interfaces with the number of normal communication interfaces to obtain a comparison result. In this embodiment, the network device needs to include a communication module and a processing module. The communication module is used to establish a communication connection between the network device and the database. This communication connection can be established based on a wired network or a wireless network and can be implemented using any communication protocol in related technologies; this specification does not limit this. The network device can upload the actual written data to the database based on this communication connection and receive the minimum number of normal communication interfaces returned by the database. The processing module is used to compare the minimum number of normal communication interfaces with the number of normal communication interfaces to obtain the corresponding comparison result. This processing module can be a general-purpose processor or a dedicated processing chip, etc.; this specification does not limit this.
[0067] It should be noted that network devices can obtain the minimum number of normal communication interfaces and the number of normal communication interfaces separately through two relatively independent acquisition operations. Therefore, there is no necessary order in which these two acquisition operations are performed, and they can be arbitrarily set according to requirements. However, logically speaking, the network device needs to first collect the minimum number of normal communication interfaces to determine the corresponding comparison standard before comparing the number of normal communication interfaces with this minimum number. Therefore, the acquisition of the number of normal communication interfaces can be relatively later, thus staggering the acquisition operations of the minimum and normal communication interfaces and reducing the performance requirements of the network device in terms of information / data acquisition.
[0068] When users interact with network devices, including sending and receiving rate-limiting parameters in the rate-limiting policy and selecting type options as mentioned above, this can be achieved in various ways, and this specification does not limit this. For example, the network device can provide users with physical buttons or virtual buttons based on a touchscreen for users to trigger interactions. As another example, the network device can include a communication module, which can establish a communication connection with any type of electronic device used by the user (such as a mobile phone, tablet, personal computer, etc.), allowing the user to interact with the network device through that electronic device.
[0069] In one embodiment, network device 24 can upload pre-configured minimum number of normal communication interfaces and pre-configured rate limiting policy related parameter information to database 25, and receive minimum number of normal communication interfaces returned by database 25. For example... Figure 2As shown, the user's terminal device can be a tablet 21, computer 22, mobile phone 23, or other device with internet access capabilities, capable of website access, video downloads, and other bandwidth-intensive network usage activities. This specification does not limit the type or number of terminal devices, or the specific network usage activities of the terminal devices. Network device 24 has several network interfaces and can connect to the aforementioned terminal devices via wired or wireless connections. Bandwidth limiting policy parameters for each terminal device's IP address can be configured in the network device's backend management interface.
[0070] In one embodiment, the interaction process between network device 24 and database 25 can be as follows: Figure 3 The diagram illustrates the interaction process between network devices and the database, including the following steps:
[0071] In step 301, a new monitoring process is created on network device 24. This monitoring process monitors the status of the communication interfaces on network device 24 and records the monitoring results in a monitoring list. Then, the number of normal communication interfaces is read from the monitoring list to obtain the number of normal communication interfaces on the device itself. The method of creating the new monitoring process is that the parent process creates a child process, which continuously monitors the communication interface status of each network interface of network device 24 in the background of the system.
[0072] In step 302, network device 24 configures the rate limiting policy parameters to be introduced. The rate limiting policy related parameters include, but are not limited to: rate limiting switch, minimum number of normal communication interfaces, IP address group, ingress rate, egress rate, uplink bandwidth limit of the controlled host, downlink bandwidth limit of the controlled host, rate limiting application, rate limiting effective time, etc. This is only an example for illustration, and the embodiments in this specification do not limit this.
[0073] Network device 24 can be configured with one or more rate limiting policies as needed. Each rate limiting policy corresponds to a specific IP address group, which contains one or more IP addresses. The IP addresses added to the corresponding IP address group for each rate limiting policy are applicable to that rate limiting policy.
[0074] In step 303, network device 24 sends the minimum number of normal communication interfaces to database 25. The minimum number of normal communication interfaces refers to one of the relevant rate-limiting parameters configured for each rate-limiting policy in the preceding steps. Corresponding to network device 24 being able to configure one or more rate-limiting policies, network device 24 can configure one or more minimum numbers of normal communication interfaces.
[0075] In step 304, database 25 stores the minimum number of normal communication interfaces received from network device 24 as a global variable. Corresponding to one or more minimum normal communication interfaces that network device 24 can configure, database 25 can store one or more global variables for subsequent comparisons to avoid repeated readings.
[0076] In step 305, database 25 returns the minimum number of normal communication interfaces to network device 24. The minimum number of normal communication interfaces is obtained by database 25 from one or more global variables stored in itself.
[0077] In step 306, network device 24 receives one or more minimum normal communication interface counts returned by database 25, and compares the one or more minimum normal communication interface counts with one or more normal communication interface counts stored locally by network device 24 to obtain the quantitative relationship between the two.
[0078] When the number of normal communication interfaces is less than the minimum number of normal communication interfaces, it indicates that the number of network interfaces capable of normal communication is less than the preset value, and the remaining network bandwidth resources are insufficient, requiring network speed limiting. In this case, the database is opened, and the tables related to bandwidth speed limiting are modified. The flag indicating whether bandwidth speed limiting is enabled is changed from disabled to enabled. The speed limiting policy parameters configured in the previous steps are then sent to the operating system kernel via a system call, enabling the speed limiting policy applied to the corresponding IP address group.
[0079] After enabling the rate limiting policy, if the number of normal communication interfaces is greater than or equal to the minimum number of normal communication interfaces, it indicates that the number of network interfaces capable of normal communication is greater than or equal to the preset value, and the remaining network bandwidth resources are sufficient, so network rate limiting is not required. At this point, open the database, modify the tables related to bandwidth rate limiting, and change the flag indicating whether bandwidth rate limiting is enabled to disabled. Then, disable the rate limiting policy applied to the corresponding IP address group via a system call.
[0080] In one embodiment, in addition to the minimum number of normal communication interfaces, one or more of other rate limiting policy parameters, such as rate limiting switch, minimum number of normal communication interfaces, IP address group, ingress rate, egress rate, controlled host uplink bandwidth limit, controlled host downlink bandwidth limit, rate limiting application, and rate limiting validity period, may also be uploaded to the database. This specification does not impose any restrictions on this.
[0081] In one embodiment, the comparison of the relationship between the number of normal communication interfaces and the minimum number of normal communication interfaces can be completed in the database 25. After the database 25 completes the comparison between the minimum number of normal communication interfaces and the number of normal communication interfaces, it returns the comparison result to the network device 24. The network device 24 then adopts a corresponding rate limiting strategy based on the comparison result.
[0082] The minimum number of normal communication interfaces is passed to the database as a global variable. When needed, the database reuses this minimum number of normal communication interfaces to compare with the number of normal communication interfaces, or returns the minimum number of normal communication interfaces to the network device, thereby reducing the number of times the network device needs to obtain information / data, reducing the corresponding resource consumption, and improving the overall processing efficiency.
[0083] In one embodiment, the network device 24 does not need to communicate with the database 25. All rate limiting policy parameters, such as rate limiting switch, minimum number of normal communication interfaces, IP address group, ingress rate, egress rate, controlled host uplink bandwidth limit, controlled host downlink bandwidth limit, rate limiting application, and rate limiting validity period, are stored locally on the network device 24. After the network device 24 retrieves the data and completes the comparison, it adopts the corresponding rate limiting policy based on the comparison result.
[0084] All the rate limiting policy parameters, such as rate limiting switch, minimum number of normal communication interfaces, IP address group, ingress rate, egress rate, controlled host uplink bandwidth limit, controlled host downlink bandwidth limit, rate limiting application, and rate limiting validity period, can be configured in the network rate limiting management software interface. The network rate limiting management software refers to software that can implement bandwidth rate limiting function. This manual does not restrict the specific naming of the software or the specific software page setting method.
[0085] There are many ways to implement the content and presentation of a network speed limiting management software interface. In fact, as long as the required speed limiting policy parameters can be set, this manual does not impose any restrictions. For example, the minimum number of normal communication interfaces can be entered manually or by selecting numbers from a drop-down list.
[0086] In one embodiment, Figure 4 The diagram shows a network rate limiting management software interface without configured address groups. The rate limiting policy switch is enabled and disabled by checking a box. When "Enable" is checked, the following rate limiting policy is applied. Figure 4The software page shown allows configuration of information such as the number of rate-limiting IP address groups, rate-limiting IP address group 1, the minimum number of normal communication interfaces for address group 1, the rate-limiting policy for address group 1, and the rate-limiting time for address group 1. The control switch for implementing the rate-limiting policy can be set to one overall, or to the same number as the number of rate-limiting policies; this manual does not impose any restrictions on this. This manual also does not limit the specific parameters required for configuring the rate-limiting policy, the methods for configuring parameters in the software UI, or the number of software configuration pages required to complete the rate-limiting policy parameter configuration function.
[0087] Correspondingly, Figure 5 This document illustrates a schematic diagram of a network rate limiting management software interface for configuring the number of address groups. When the configured number of IP address groups is a positive integer n greater than 1, the corresponding information such as the number of rate-limited IP address groups, the minimum number of normal communication interfaces per address group, the number of rate-limiting policies per address group, and the number of rate-limiting times for address group 1 will be adjusted accordingly, facilitating user configuration. This embodiment is merely one method for configuring rate-limiting policy-related parameters in a network rate limiting management software interface, and this specification does not impose any limitations on it.
[0088] Corresponding to the aforementioned embodiments of the method for enabling rate limiting based on the number of normal communication interfaces, this specification also provides embodiments of a device for enabling rate limiting based on the number of normal communication interfaces.
[0089] Please refer to Figure 6 , Figure 6 This is a schematic diagram illustrating the structure of a device for enabling rate limiting based on the number of normal communication interfaces, as shown in an exemplary embodiment. Figure 6 As shown, in a software implementation, the device may include:
[0090] Acquisition unit 601 is used to acquire the number of normal communication interfaces of the monitored network devices;
[0091] The comparison unit 602 is used to compare the number of normal communication interfaces with the pre-configured minimum number of normal communication interfaces.
[0092] The rate limiting unit 603 is used to receive the comparison result from the comparison unit. If the number of normal communication interfaces is less than the pre-configured minimum number of normal communication interfaces, the pre-configured rate limiting policy is enabled on the network device.
[0093] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0094] For the apparatus embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The apparatus embodiments described above are merely illustrative, and the modules described as separate components may or may not be physically separate. Some or all of the modules can be selected to achieve the purpose of the solution in this specification, depending on actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0095] This specification also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the methods provided in this specification. Figure 7 This is a schematic structural diagram of an electronic device according to an exemplary embodiment. Please refer to... Figure 7 At the hardware level, the electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other necessary hardware. The processor reads the corresponding computer program from the non-volatile memory into memory and then executes it, forming a device at the logical level that enables rate limiting based on the number of normal communication interfaces. Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software, etc. That is to say, the execution subject of the following processing flow is not limited to individual logic units, but can also be hardware or logic devices.
[0096] This specification also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a method for enabling rate limiting based on the number of normal communication interfaces provided in this specification.
[0097] Specifically, computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, such as semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks.
[0098] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0099] Other embodiments of this specification will readily occur to those skilled in the art upon consideration of the specification and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this specification are indicated by the following claims.
[0100] It should be understood that this specification is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this specification is limited only by the appended claims.
[0101] The above description is merely a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of protection of this specification.
Claims
1. A method for enabling rate limiting based on the number of normal communication interfaces, characterized in that, Applied to network devices, the method includes: Obtain the number of normal communication interfaces of the monitored network devices; If the number of normal communication interfaces is less than the pre-configured minimum number of normal communication interfaces, then the pre-configured rate limiting policy is enabled on the network device. After the rate limiting policy is enabled, if the number of normal communication interfaces increases to be greater than or equal to the pre-configured minimum number of normal communication interfaces, then the rate limiting policy is disabled on the network device. The number of normal communication interfaces refers to the number of network interfaces that are in a normal communication state.
2. The method according to claim 1, characterized in that, The minimum number of normal communication interfaces is recorded in the rate limiting policy; wherein, the network device is configured with one or more of the rate limiting policies.
3. The method according to claim 2, characterized in that, The minimum number of normal communication interfaces is stored in a global variable; the method further includes: Read the minimum number of normal communication interfaces from the global variable.
4. The method according to claim 1, characterized in that, The acquisition of the number of normal communication interfaces of the monitored network devices includes: The status of the communication interface on the network device is monitored through a monitoring process, and the monitoring results are recorded in the monitoring list. Read the number of normal communication interfaces from the monitoring list.
5. The method according to claim 1, characterized in that, Enabling a pre-configured rate-limiting policy on the network device includes: Read the bandwidth limiting table stored in the database, the bandwidth limiting table records the on / off status flag of the limiting policy; Set the switch status flag to the enabled state.
6. The method according to claim 1, characterized in that, The method further includes: The network device can obtain information about whether the method is in an on or off state; when the network device obtains that the method is in an on state, it applies the method.
7. A device for enabling rate limiting based on the number of normal communication interfaces, characterized in that, include: The acquisition unit is used to acquire the number of normal communication interfaces of the monitored network devices. The comparison unit is used to compare the number of normal communication interfaces with the pre-configured minimum number of normal communication interfaces. A rate limiting unit is used to receive the comparison result from the comparison unit. If the number of normal communication interfaces is less than the pre-configured minimum number of normal communication interfaces, a pre-configured rate limiting strategy is enabled on the network device. The shutdown unit is used to disable the rate limiting policy on the network device if the number of normal communication interfaces increases to be greater than or equal to the pre-configured minimum number of normal communication interfaces after the rate limiting policy is enabled. The number of normal communication interfaces refers to the number of network interfaces that are in a normal communication state.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.