Hereinafter, the present invention will be described in detail with reference to the drawings and in conjunction with the embodiments. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other if there is no conflict.
 In this embodiment, a flow adjustment method is provided, figure 1 Is a flowchart of a flow adjustment method according to an embodiment of the present invention, such as figure 1 As shown, the process includes the following steps:
 Step S102, the main control board obtains the current flow value of the line card;
 Step S104: When it is determined that the current flow value of the line card is greater than the supervision value, the main control board adjusts the supervision value of the line card.
 Through the above steps, when the current flow value of the line card is greater than the supervision value, the main control board can dynamically adjust the supervision value of the line card. Compared with related technologies, the speed limit value of the line card is fixed. The above steps solve the problem. The problem that the technology cannot effectively supervise the flow of the bundled interface, thereby realizing the effective supervision of the flow of the bundled interface.
 The above step S104 involves when determining that the current flow value of the line card is greater than the supervision value, the main control board adjusts the supervision value of the line card. In an optional embodiment, the current flow value of the line card is greater than the supervision value, and the current flow value of the line card When the flow value is less than the total flow value of all the line cards under the main control board, the main control board adjusts the supervision value of the line cards.
 The above step S102 involves the main control board obtaining the current flow value of the line card. In an optional embodiment, the main control board obtains the current flow value of the line card by obtaining the flow value of each interface included in the line card.
 The supervised value needs to be configured in advance. It should be noted that the supervised value can be configured in a variety of ways. The following is an example of this. In an optional embodiment, the monitoring value of the line card traffic is configured through the operation, management, and maintenance of the main control board, the OAM interface and/or the network management.
 There may also be many ways for the main control board to adjust the supervision value of the line card. In an optional embodiment, the main control board adjusts the supervision value of the line card according to the current traffic ratio of the physical interface. Among them, the current traffic of the physical interface refers to the size of the real-time traffic going out of the physical interface. Adjust the value of traffic supervision by monitoring the current port traffic size.
 In this embodiment, a flow adjustment device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been explained will not be repeated. As used below, the term "module" may implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
 figure 2 It is a structural block diagram of a flow adjustment device according to an embodiment of the present invention, which is applied to the main control board, such as figure 2 As shown, the device includes: an acquisition module 22 for acquiring the current flow value of the line card; an adjustment module 24 for adjusting the supervision value of the line card when it is determined that the current flow value of the line card is greater than the supervision value.
 Optionally, the adjustment module 24 is also used for adjusting the line card when the current flow value of the line card is greater than the supervision value, and the current flow value of the line card is less than the total flow value of all line cards under the main control board. Regulatory value.
 Optionally, the obtaining module 22 is also used to obtain the flow value of each interface included in the line card.
 Optionally, the supervision value is configured in the following manner: the supervision value of the line card traffic is configured through the operation, management, and maintenance OAM interface of the main control board and/or the network management.
 Optionally, the adjustment module 24 is further configured to adjust the supervision value of the line card according to the current traffic ratio of the physical interface.
 It should be noted that each of the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following way, but not limited to this: the above modules are all located in the same processor; or, the above modules are located separately The first processor, the second processor, and the third processor...
 In view of the above-mentioned problems in the related art, the following describes with an optional embodiment, and this optional embodiment combines the above-mentioned embodiment and its optional implementation manner.
 This optional embodiment adopts the following technical solutions:
 The bundled interface traffic monitoring implementation of this optional embodiment includes the following modules:
 A. Distributed switch/router system, traffic monitoring is implemented by line cards;
 B. Through the operation, management and maintenance (Operation, Administration, Maintenance, referred to as OAM) configuration commands to achieve bundled interface traffic monitoring;
 C. Bundled interfaces will exist across boards and on the same board. When on the same board, the implementation of traffic monitoring is the same as the physical interface;
 Also includes:
 D. When the members of the bundled interface cross-board, the supervisory rate can be adjusted by sensing the rate of different members with a single board as a unit;
 E. After the main control board perceives the rate of different line card board members, it reasonably allocates the user-configured rate limit value, and sends it to each line card to realize the traffic monitoring function;
 Among them, D and E are based on A, B, and C, and the algorithm adjusts the rate on the basis of the algorithm to realize the reasonable traffic monitoring function of the bundled interface.
 The method for implementing bundle interface traffic monitoring in this optional embodiment includes the following steps:
 The first step: You need to telnet to the OAM interface of the device or the network manager to configure the rate limit value of traffic supervision through configuration commands;
 Step 2: The main control board senses the user's configuration, and the member of the bundled interface of the online card issues the default initial value of traffic policing;
 Step 3: The device monitors the flow status of each physical interface in real time;
 Step 4: When the traffic exceeds the current supervision default value on some members, but the overall rate limit supervision value has not reached the configured value, make a dynamic adjustment according to the current traffic ratio of the physical interface;
 Step 5: The device continuously monitors the traffic. Repeat Step 4 until the status of the members in the binding port changes, and then perform Step 2 again;
 Step 6: The process is repeated until the user cancels the traffic monitoring policy configuration;
 Compared with the prior art, this optional embodiment achieves the effect of correctly implementing traffic supervision when the members of the bundled interface cross-board, saves the bandwidth requirements of the operator for user traffic, improves bandwidth utilization, and so on.
 The implementation of the technical solution of this optional embodiment will be further described in detail below in conjunction with the accompanying drawings:
 image 3 Is a basic architecture diagram according to the working principle of the embodiment of the present invention, such as image 3 As shown, the hardware module part includes: the main control board and the line card of the device. The main control board needs OAM to dynamically adjust the configuration of traffic supervision, and the line card board realizes the function of traffic supervision.
 The processing steps of the process part are as follows:
 For example, a rate limit value of C is configured in the outbound direction of the smartgroup1 interface. The smartgroup has 3 members with equal physical bandwidth, which are ABC, where AB is on one board and C is on the other board.
 Figure 4 It is a basic work flow chart for implementing traffic monitoring according to an embodiment of the present invention, such as Figure 4 As shown, the process includes the following steps:
 Step S402, configure traffic supervision;
 In step S404, the initial value of traffic policing is issued to the line card where the member is located;
 Step S406: Perform traffic monitoring, and perform statistics on the traffic of the single board periodically;
 Step S408, it is judged whether the supervision value needs to be adjusted, if the judgment result is yes, step S410 is executed, and if the judgment result is no, step S406 is executed;
 In step S410, the supervisory value is reconfigured uniformly on the line cards where all the binding interface members are located.
 according to Figure 4 In the process, the user first needs to configure the traffic monitoring function of the bundled interface.
 The initial value under the main control board realizes the traffic policing function on the line card where the member is located. The initial value of the traffic policing under the line card where the AB member is located is 2*C/3, and the initial value of the traffic policing under the line card where the C member is located is C/3 .
 Port ABC on the line card needs to perform periodic traffic statistics and feed back to the main control board.
 When it is found that the traffic of the board where a member is located exceeds the initial set supervision value but does not reach the overall speed limit value, the main controller needs to re-adjust the supervision value. For example, the traffic sum of port AB in the above example: CA+CB> 2*C/3, CA+CB
 To sum up, the optional embodiment of the present invention provides a reasonable supervision rate distribution method. The main control board obtains bundle port traffic statistics to perceive the size of the bundle interface member traffic, and reasonably dynamically allocates the rate limit value to achieve Similar to the speed limit effect of the physical interface, that is, the overall traffic supervision speed limit value does not exceed the set value, and the speed limit value can be reached under the maximum traffic limit of a certain type of service of a certain user. This overcomes the problem and shortcomings of the bundled interface traffic supervision rate distribution in the related technology.
 In another embodiment, a software is also provided, and the software is used to execute the technical solutions described in the above embodiments and preferred implementations.
 In another embodiment, there is also provided a storage medium in which the above-mentioned software is stored. The storage medium includes, but is not limited to, an optical disk, a floppy disk, a hard disk, and a rewritable memory.
 Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general computing device. They can be concentrated on a single computing device or distributed in a network composed of multiple computing devices. Above, alternatively, they can be implemented with program codes executable by the computing device, so that they can be stored in the storage device for execution by the computing device, and in some cases, can be executed in a different order than here. Perform the steps shown or described, or fabricate them into individual integrated circuit modules, or fabricate multiple modules or steps of them into a single integrated circuit module to achieve. In this way, the present invention is not limited to any specific combination of hardware and software.
 The above are only preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modification, equivalent replacement, improvement, etc., made within the spirit and principle of the present invention should be included in the protection scope of the present invention.