Network bandwidth processing method, device, equipment and storage medium

By determining the reference bandwidth value based on the maximum bandwidth of the target port and the number of devices during 802.1x network authentication, and adjusting the bandwidth based on the initial bandwidth occupancy information, the problem of excessive bandwidth occupied by individual users and underutilized bandwidth is solved, and bandwidth adjustment is improved. practicality and flexibility.

CN115883375BActive Publication Date: 2024-09-17MAIPU COMM TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211540147.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2024-09-17
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

In the existing 802.1x network authentication, the traffic of individual users occupies too high bandwidth, resulting in insufficient bandwidth for other users, insufficient utilization of port bandwidth, and poor practicality and flexibility of bandwidth adjustment.

Method used

By determining the reference bandwidth value based on the maximum bandwidth of the target port and the number of connected devices, combined with the initial bandwidth occupation information of the device to be adjusted, it is decided whether to adjust the bandwidth, and sends a request to the authentication system server to obtain the adjustment information, and adjust the bandwidth in real time.

Benefits of technology

It improves the practicality and flexibility of bandwidth adjustment, ensures that bandwidth adjustment is based on the current actual occupancy, and avoids the problem of individual devices occupying too much bandwidth or the bandwidth is underutilized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115883375B
    Figure CN115883375B
Patent Text Reader

Abstract

The present application provides a network bandwidth processing method, device, equipment and storage medium, which belongs to the field of network communication technology. The method includes: determining a reference bandwidth value according to the maximum bandwidth of the target port and the number of devices connected to the target port; determining the initial bandwidth occupancy information of the device to be adjusted on the target port within a preset time period; determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information; if so, generating a bandwidth adjustment request to be sent to the server in the authentication system, and obtaining bandwidth adjustment information from the server, wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request; adjusting the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information. The present application can achieve the effect of improving the practicality and flexibility of bandwidth adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a network bandwidth processing method, device, equipment and storage medium. Background Art

[0002] With the development of Internet technology, people can access the Internet through computer devices to search for various materials and data. Generally, authorized users or devices can access the network through 802.1x network.

[0003] In the related art, when the network is deployed through 802.1x network authentication, multiple users or devices may access any port on the authentication device. However, after each user or device passes the authentication, the traffic currently used by an individual user may occupy too much bandwidth of a port of the authentication device. Generally, current related technical personnel will control the traffic of the 802.1x network by setting the traffic that can be used by individual users to unlimited speed or adjusting the traffic that can be used by each user to a fixed bandwidth.

[0004] However, the solutions in the related art have the problem that users with unlimited speed may occupy most of the bandwidth, while other users can only use a small part of the bandwidth, or there may also be a problem that the port bandwidth cannot be fully utilized. Therefore, the solutions in the related art have the problem of poor practicality and flexibility in bandwidth adjustment. Summary of the invention

[0005] The purpose of the present application is to provide a network bandwidth processing method, device, equipment and storage medium, which can improve the practicality and flexibility of bandwidth adjustment.

[0006] The embodiment of the present application is implemented as follows:

[0007] According to a first aspect of an embodiment of the present application, a network bandwidth processing method is provided, which is applied to an authentication device in an authentication system, including:

[0008] Determine a reference bandwidth value according to the maximum bandwidth of the target port and the number of devices connected to the target port;

[0009] Determine initial bandwidth occupancy information of the target port by the device to be adjusted within a preset time period;

[0010] Determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information;

[0011] If so, generating a bandwidth adjustment request to be sent to a server in the authentication system, and obtaining bandwidth adjustment information from the server, wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request;

[0012] The bandwidth of the device to be adjusted on the target port is adjusted according to the bandwidth adjustment information.

[0013] Optionally, the generating and sending a bandwidth adjustment request to a server in the authentication system, and obtaining bandwidth adjustment information from the server, includes:

[0014] Generate the bandwidth adjustment request according to the identifier of the device to be adjusted, wherein the bandwidth adjustment request includes at least one of the following: the identifier of the device to be adjusted and the identifier of the target port;

[0015] Sending the bandwidth adjustment request to the server;

[0016] receiving a bandwidth adjustment response sent by the server;

[0017] The bandwidth adjustment information is obtained according to the bandwidth adjustment response.

[0018] Optionally, obtaining the bandwidth adjustment information according to the bandwidth adjustment response includes:

[0019] receiving and parsing the bandwidth adjustment response, and determining whether a preset adjustment attribute field exists in the bandwidth adjustment response;

[0020] If so, obtaining a preset adjustment value corresponding to the bandwidth adjustment response attribute field in the bandwidth adjustment response, and obtaining the bandwidth adjustment information according to the preset adjustment value;

[0021] If not present, the reference bandwidth value is used as the bandwidth adjustment information.

[0022] Optionally, obtaining the bandwidth adjustment information according to the preset adjustment value includes:

[0023] Comparing the preset adjustment value with the reference bandwidth value;

[0024] If the preset adjustment value is greater than the reference bandwidth value, using the reference bandwidth value as the bandwidth adjustment information;

[0025] If the preset adjustment value is less than or equal to the reference bandwidth value, the preset adjustment value is used as the bandwidth adjustment information.

[0026] Optionally, the determining of initial bandwidth occupancy information of the target port by the device to be adjusted within a preset time period includes:

[0027] Obtaining the identification of the device to be adjusted;

[0028] Determine all account information accessing the target port through the device to be adjusted according to the identifier of the device to be adjusted;

[0029] Determine the traffic consumption information used by each of the account information through the target port within the preset time period;

[0030] The initial bandwidth occupancy information is obtained according to the flow consumption information of each account information.

[0031] Optionally, the determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information includes:

[0032] Determining whether the initial bandwidth occupancy information is greater than the reference bandwidth value;

[0033] If yes, determine to adjust the bandwidth of the device to be adjusted;

[0034] If not, it is determined not to adjust the bandwidth of the device to be adjusted.

[0035] Optionally, the method further comprises:

[0036] If it is determined that the bandwidth of the device to be adjusted is not to be adjusted, real-time bandwidth occupancy information of the device to be adjusted within a target time period is monitored in real time, and the target time period takes the current time as the end time;

[0037] Determining whether the real-time bandwidth occupancy information meets a preset condition;

[0038] If so, the bandwidth of the device to be adjusted is adjusted according to the reference bandwidth value or a preset adjustment value corresponding to the device to be adjusted.

[0039] According to a second aspect of an embodiment of the present application, a network bandwidth processing device is provided, which is applied to an authentication device in an authentication system. The network bandwidth processing device includes:

[0040] A determination module, configured to determine a reference bandwidth value according to a maximum bandwidth of a target port and a number of devices connected to the target port;

[0041] The determination module is further used to determine the initial bandwidth occupation information of the device to be adjusted on the target port within a preset time period;

[0042] The determination module is further configured to determine whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information;

[0043] a sending and obtaining module, configured to generate a bandwidth adjustment request to be sent to a server in the authentication system and obtain bandwidth adjustment information from the server when bandwidth adjustment is performed on the device to be adjusted, wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request;

[0044] The adjustment module is used to adjust the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information.

[0045] According to a third aspect of an embodiment of the present application, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the network bandwidth processing method described in the first aspect is implemented.

[0046] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the network bandwidth processing method described in the first aspect is implemented.

[0047] The beneficial effects of the embodiments of the present application include:

[0048] A network bandwidth processing method provided by an embodiment of the present application determines a reference bandwidth value according to the maximum bandwidth of a target port and the number of devices connected to the target port, determines initial bandwidth occupancy information of the device to be adjusted on the target port within a preset time period, determines whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information, and if so, generates a bandwidth adjustment request to be sent to a server in the authentication system, obtains bandwidth adjustment information from the server, and adjusts the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information.

[0049] The reference bandwidth value is determined by the maximum bandwidth of the target port and the number of devices connected to the target port at the current moment, and the initial bandwidth occupancy information is obtained based on the occupancy of the bandwidth of the target port by the device to be adjusted within a preset time period with the current moment as the end moment, and whether to adjust the bandwidth of the device to be adjusted is determined by the reference bandwidth value and the initial bandwidth occupancy information. In this way, it can be ensured that when the bandwidth of the device to be adjusted is adjusted, the bandwidth of the device to be adjusted is selectively adjusted based on the actual occupancy of the actual bandwidth at the current moment, thereby solving the problem that individual terminal devices occupy most of the bandwidth of the target port or the bandwidth of the target port cannot be fully utilized.

[0050] In this way, the practicality and flexibility of bandwidth adjustment can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 A schematic diagram of the structure of an authentication system method provided in an embodiment of the present application;

[0053] Figure 2 A flowchart of a first network bandwidth processing method provided in an embodiment of the present application;

[0054] Figure 3 A flowchart of a second network bandwidth processing method provided in an embodiment of the present application;

[0055] Figure 4 A flowchart of a third network bandwidth processing method provided in an embodiment of the present application;

[0056] Figure 5 A flowchart of a fourth network bandwidth processing method provided in an embodiment of the present application;

[0057] Figure 6 A flowchart of a fifth network bandwidth processing method provided in an embodiment of the present application;

[0058] Figure 7 A schematic diagram of the structure of a network bandwidth processing device provided in an embodiment of the present application;

[0059] Figure 8 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0061] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0062] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0063] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0064] In the related art, when the network is deployed through 802.1x network authentication, multiple users or devices may access any port on the authentication device. However, after each user or each device is authenticated, the traffic currently used by an individual user may occupy too much bandwidth of a port of the authentication device. Generally, current related technical personnel will control the traffic of the 802.1x network by setting the traffic that can be used by individual users to unlimited speed or adjusting the traffic that can be used by each user to a fixed bandwidth. However, the solutions in the related art have the problem that users with unlimited speed may occupy most of the bandwidth, while other users can only use a small part of the bandwidth, or there may also be a problem that the port bandwidth cannot be fully utilized. Therefore, the solutions in the related art have the problem of poor practicality and flexibility in bandwidth adjustment.

[0065] To this end, an embodiment of the present application provides a network bandwidth processing method, by determining a reference bandwidth value according to the maximum bandwidth of the target port and the number of devices connected to the target port, determining the initial bandwidth occupancy information of the device to be adjusted on the target port within a preset time period, and determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information. If so, a bandwidth adjustment request is generated and sent to a server in the authentication system, and bandwidth adjustment information is obtained from the server. The bandwidth of the device to be adjusted on the target port is adjusted according to the bandwidth adjustment information, thereby achieving the effect of improving the practicality and flexibility of bandwidth adjustment.

[0066] The embodiment of the present application is described by taking the network bandwidth processing method applied in the authentication system as an example, but it does not mean that the embodiment of the present application can only be applied to the authentication system for network bandwidth processing.

[0067] Figure 1 A schematic diagram of the structure of an authentication system provided for this application, see Figure 1The authentication system includes an authentication device A, a server B, and multiple terminal devices C.

[0068] The authentication device A is connected to the server B, and the authentication device A is also connected to each terminal device C respectively.

[0069] Optionally, server B may be a Radius (Remote Authentication Dial-In User Service) authentication server.

[0070] Server B may store various attributes configured in advance by users or relevant technical personnel, such as VLAN (Virtual Local Area Network), ACL (Access Control Lists), QoS (Quality of Service) and other attributes.

[0071] Each terminal device C may run an 802.1x client.

[0072] The authentication device A can interact with each terminal device C through corresponding requests or instructions to receive and process the authentication requests sent by each terminal device C and send corresponding attributes to each terminal device C.

[0073] Generally, when performing 802.1x authentication, when performing authentication services, each terminal device C first sends a login request or authentication request to the authentication device A, and the login request or authentication request may include the user's account and password. The authentication device A then processes the login request or authentication request and forwards it to the server B through a Radius Access-Request message to authenticate the user's account and password.

[0074] After receiving the user's account and password authentication, server B can encapsulate the attribute fields corresponding to the user stored in server B in a Radius Access-Accept message and send it to authentication device A. Authentication device A then adaptively configures the corresponding parameters corresponding to each attribute field to each terminal device C and / or each account accessing authentication device A through each terminal device C.

[0075] In this way, 802.1x authentication can be achieved.

[0076] The network bandwidth processing method provided in the embodiment of the present application is explained in detail below.

[0077] Figure 2This is a flowchart of a network bandwidth processing method provided by the present application. The method can be applied to any authentication device, such as the authentication device A mentioned above. Figure 2 , the embodiment of the present application provides a network bandwidth processing method, including:

[0078] Step 1001: Determine a reference bandwidth value according to the maximum bandwidth of the target port and the number of devices connected to the target port.

[0079] Optionally, the target port can be any access port on the authentication device that can be accessed by the terminal device or user, and the target port can be accessed by multiple terminal devices or multiple users at the same time. The target port can be a gigabit bandwidth interface, a 100M bandwidth interface, etc., which is not limited in the embodiments of the present application.

[0080] The maximum bandwidth may be used to characterize the maximum data transmission volume that the target port can support in a unit time. For example, the maximum bandwidth may be 100 Mbps (megabits per second).

[0081] The connected device may refer to a terminal device that has been connected to the authentication device or has passed authentication at the current moment.

[0082] Exemplarily, when the first terminal device initiates an authentication request to the authentication device to access the target port, at this time, no terminal device has successfully accessed the target interface, so the number of connected devices is 0. Assuming that the first terminal device successfully accesses the target port, when the second terminal device initiates an authentication request to the authentication device to access the target port, since the first terminal device has successfully accessed the target interface, the number of connected devices is 1.

[0083] Optionally, the reference bandwidth value may be calculated by the maximum bandwidth and the number of connected devices, and may be used as a reference value for adjusting the bandwidth of each terminal device or each connected device. In addition, the reference bandwidth value may be the maximum bandwidth value that the authentication device and / or the target port can evenly allocate to each terminal device.

[0084] Exemplarily, the reference bandwidth value may be calculated in the following manner:

[0085] D=M / (Y+1)

[0086] Wherein, D represents the reference bandwidth value, M represents the maximum bandwidth of the target port, and Y represents the number of connected devices.

[0087] It is worth noting that in this way, the maximum bandwidth value that can be evenly allocated to each terminal device accessing the target port at the current moment can be accurately determined based on the maximum bandwidth of the target port and the number of devices that have been successfully connected, which facilitates subsequent bandwidth adjustment for each terminal device or user.

[0088] Step 1002: Determine the initial bandwidth occupancy information of the target port by the device to be adjusted within a preset time period.

[0089] Optionally, the device to be adjusted may be any terminal device connected to the target port, or may be a terminal device that currently sends an authentication request to the target port, which is not limited in this embodiment of the present application. The terminal device may be any terminal device C mentioned above.

[0090] The preset duration can be a period of time set by relevant technical personnel according to actual needs for monitoring the bandwidth occupancy or traffic usage of the device to be adjusted. Generally, the preset duration uses the current time as the end time, and the preset duration can be any possible duration such as 10 minutes, 1 hour, etc.

[0091] The initial bandwidth occupancy information may be an average value of the ratio of the bandwidth of the target port used by the device to be adjusted within the preset time period to the maximum bandwidth of the target port.

[0092] That is, the initial bandwidth occupancy information can be used to indicate the amount of data transmitted by the device to be adjusted through the target interface within the preset time period, and can also be used to indicate the proportion of the maximum bandwidth of the target port occupied by the device to be adjusted.

[0093] It is worth noting that, in this way, the amount of data transmitted by each device to be adjusted through the target port in a period of time before the current moment, and / or the proportion of the bandwidth occupied by the target port in a period of time before the current moment can be accurately determined, so as to subsequently accurately determine whether it is necessary to adjust the bandwidth of each device to be adjusted.

[0094] Step 1003: Determine whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information.

[0095] Optionally, the operation of adjusting the bandwidth of the device to be adjusted may refer to adjusting the maximum amount of data that can be transmitted by the device to be adjusted through the target port within a unit time, that is, adjusting the flow rate of the device to be adjusted.

[0096] Exemplarily, adjusting the bandwidth of the device to be adjusted may specifically refer to reducing the bandwidth of the device to be adjusted that can use the target port, reducing the maximum amount of data that can be transmitted by the device to be adjusted through the target port per unit time, or reducing the flow rate of the device to be adjusted. This embodiment of the application is not limited to this.

[0097] In this way, it can be accurately determined whether bandwidth adjustment is required for each device to be adjusted.

[0098] Step 1004: If yes, generate a bandwidth adjustment request to send to the server in the authentication system, and obtain bandwidth adjustment information from the server.

[0099] Optionally, the server may be the server B mentioned above.

[0100] The bandwidth adjustment request may be a message used to obtain corresponding attribute parameters from the server, and may specifically be used to obtain the bandwidth adjustment information from the server.

[0101] For example, the bandwidth adjustment request may refer to the above-mentioned Radius Access-Request message, and the bandwidth adjustment request may also be an instruction for obtaining a preconfigured bandwidth adjustment value stored in the server and carried in the Value field of the Vendor-Specific attribute in the Radius Access-Request message.

[0102] Optionally, the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request.

[0103] In addition, the bandwidth adjustment information may be a specific value set in advance by a relevant technician or user to indicate bandwidth adjustment for the device to be adjusted. The bandwidth adjustment information may correspond to the device to be adjusted, or may correspond to all accounts accessing the target port through the device to be adjusted, and the embodiments of the present application do not limit this.

[0104] It is worth noting that when it is determined that the bandwidth of the device to be adjusted needs to be adjusted, it is necessary to first determine the specific value of the bandwidth of the device to be adjusted, that is, the bandwidth adjustment information, so that the bandwidth of the device to be adjusted can be accurately adjusted according to the bandwidth adjustment information.

[0105] Step 1005: Adjust the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information.

[0106] Optionally, the bandwidth of the device to be adjusted on the target port may refer to a maximum bandwidth value of the target port that the device to be adjusted can use.

[0107] Optionally, the bandwidth of the device to be adjusted on the target port can be specifically adjusted to the specific value for bandwidth adjustment of the device to be adjusted indicated by the bandwidth adjustment information, or the bandwidth of the device to be adjusted on the target port can be adjusted to any possible bandwidth that is smaller than the specific value for bandwidth adjustment of the device to be adjusted indicated by the bandwidth adjustment information.

[0108] It is worth noting that since the reference bandwidth value is determined by the maximum bandwidth of the target port and the number of devices connected to the target port at the current moment, and the initial bandwidth occupancy information is obtained based on the occupancy of the bandwidth of the target port by the device to be adjusted within a preset time period with the current moment as the end moment, whether to adjust the bandwidth of the device to be adjusted is determined by the reference bandwidth value and the initial bandwidth occupancy information.

[0109] That is to say, when the bandwidth of the device to be adjusted is adjusted, the bandwidth of the device to be adjusted is selectively adjusted based on the actual bandwidth occupancy at the current moment. In this way, the problem of only being able to set individual users to unlimited speed or setting speed limits for all users in the related technology is avoided.

[0110] In this way, the problem that a certain terminal device occupies most of the bandwidth of the target port or the bandwidth of the target port cannot be fully utilized can be avoided, thereby improving the practicality and flexibility of bandwidth adjustment.

[0111] In an embodiment of the present application, a reference bandwidth value is determined based on the maximum bandwidth of the target port and the number of devices connected to the target port, and initial bandwidth occupancy information of the device to be adjusted on the target port within a preset time period is determined. Based on the reference bandwidth value and the initial bandwidth occupancy information, it is determined whether to adjust the bandwidth of the device to be adjusted. If so, a bandwidth adjustment request is generated and sent to a server in the authentication system, and bandwidth adjustment information is obtained from the server. The bandwidth of the device to be adjusted on the target port is adjusted based on the bandwidth adjustment information.

[0112] The reference bandwidth value is determined by the maximum bandwidth of the target port and the number of devices connected to the target port at the current moment, and the initial bandwidth occupancy information is obtained based on the occupancy of the bandwidth of the target port by the device to be adjusted within a preset time period with the current moment as the end moment, and whether to adjust the bandwidth of the device to be adjusted is determined by the reference bandwidth value and the initial bandwidth occupancy information. In this way, it can be ensured that when the bandwidth of the device to be adjusted is adjusted, the bandwidth of the device to be adjusted is selectively adjusted based on the actual occupancy of the actual bandwidth at the current moment, thereby solving the problem that individual terminal devices occupy most of the bandwidth of the target port or the bandwidth of the target port cannot be fully utilized.

[0113] In this way, the practicality and flexibility of bandwidth adjustment can be improved.

[0114] For a possible implementation, see Figure 3 , generating and sending a bandwidth adjustment request to a server in the authentication system, and obtaining bandwidth adjustment information from the server, including:

[0115] Step 1006: Generate the bandwidth adjustment request according to the identifier of the device to be adjusted.

[0116] Optionally, the bandwidth adjustment request includes at least one of the following: an identifier of the device to be adjusted and an identifier of the target port.

[0117] Optionally, the identifier of the device to be adjusted may refer to the MAC address (physical address) of the device to be adjusted. Since the MAC address can be used to uniquely identify the device to be adjusted, all account information related to the device to be adjusted can be determined according to the bandwidth adjustment request, so as to subsequently adjust the bandwidth of all accounts accessing the target port through the device to be adjusted.

[0118] Optionally, the identifier of the target port may be a port (port number) of the target port, which is not limited in the embodiment of the present application.

[0119] Step 1007: Send the bandwidth adjustment request to the server.

[0120] It is worth noting that the bandwidth adjustment request includes the identifier of the device to be adjusted. Therefore, after the server receives the bandwidth adjustment request, the attribute field and / or attribute parameter corresponding to the device to be adjusted and stored on the server can be accurately determined.

[0121] Furthermore, the bandwidth adjustment request also includes the identifier of the target port. After receiving the bandwidth adjustment request, the server can also accurately determine the attribute fields and / or attribute parameters stored on the server related to the device to be adjusted accessing the target port.

[0122] Step 1008: Receive a bandwidth adjustment response sent by the server.

[0123] Optionally, the bandwidth adjustment response may be the above-mentioned Radius Access-Accept message.

[0124] The bandwidth adjustment response may include various attribute fields and / or attribute parameters pre-configured by relevant technicians or users for the device to be adjusted and / or all accounts accessing the target port through the device to be adjusted, for example, bandwidth adjustment information indicating a specific value for bandwidth adjustment of the device to be adjusted.

[0125] Step 1009: Obtain the bandwidth adjustment information according to the bandwidth adjustment response.

[0126] In this way, the accuracy and practicality of the determined bandwidth adjustment information can be ensured.

[0127] For a possible implementation, see Figure 4 , obtaining the bandwidth adjustment information according to the bandwidth adjustment response, including:

[0128] Step 1010: Receive and parse the bandwidth adjustment response, and determine whether there is a preset adjustment attribute field in the bandwidth adjustment response.

[0129] Optionally, the preset adjustment attribute field may refer to a field used to indicate adjustment of the bandwidth of the device to be adjusted, and may also include any other possible attribute field.

[0130] For example, it may be the Vendor-Specific field of the above-mentioned Radius Access-Request.

[0131] The preset adjustment attribute field may include a field for indicating a specific value.

[0132] For another example, the Vendor-Specific field of the Radius Access-Request may include Value field information for adding attribute fields, and the Value field information may include attribute fields such as Vendor-Id, Vendor Type, and VendorValue.

[0133] Among them, the Vendor-Id attribute field can be used to define the vendor ID. The Vendor Type attribute field can be used to define specific parameters of the attribute, such as the specific value of the bandwidth adjustment of the device to be adjusted (i.e., the speed limit value), the specific parameters of the VLAN, the specific parameters of the QoS, the specific parameters of the ACL, etc. The Vendor Value attribute field can be used to define whether it is necessary to obtain the corresponding attribute. For example, defining the Vendor Value attribute field as 0 means that it is not necessary to obtain the attribute corresponding to the Vendor Value attribute field from the server, and defining the Vendor Value attribute field as 1 means that it is necessary to obtain the attribute corresponding to the Vendor Value attribute field from the server. The embodiments of the present application do not limit this.

[0134] Step 1011: If it exists, obtain the preset adjustment value corresponding to the bandwidth adjustment response attribute field in the bandwidth adjustment response, and obtain the bandwidth adjustment information according to the preset adjustment value.

[0135] Optionally, the preset adjustment value refers to a specific parameter of each attribute. The preset adjustment value corresponding to the bandwidth adjustment response attribute field may refer to a specific value for adjusting the bandwidth of the device to be adjusted, which is not limited in the embodiment of the present application.

[0136] In addition, specific parameters corresponding to any other attribute field in the bandwidth adjustment response may also be obtained, which is not limited in this embodiment of the present application.

[0137] It is worth noting that if there is a preset adjustment attribute field in the bandwidth adjustment response, it means that the relevant technicians or users have stored the attribute parameters for sending to the device to be adjusted for bandwidth adjustment in the server in advance. In this way, the specific parameters of each attribute pre-defined in the server can be accurately obtained to complete the authentication service, and the bandwidth adjustment information can be accurately determined to adjust the bandwidth of the device to be adjusted.

[0138] Step 1012: If it does not exist, use the reference bandwidth value as the bandwidth adjustment information.

[0139] It is worth noting that if there is no preset adjustment attribute field in the bandwidth adjustment response, it means that the server does not store the attribute parameters for sending to the device to be adjusted for bandwidth adjustment, then the reference bandwidth value can be used as the bandwidth adjustment information to achieve bandwidth adjustment of the device to be adjusted, thereby avoiding the problem of individual terminal devices occupying most of the bandwidth of the target port. In this way, the practicality and flexibility of bandwidth adjustment can be improved.

[0140] In a possible implementation, obtaining the bandwidth adjustment information according to the preset adjustment value includes:

[0141] The preset adjustment value is compared with the reference bandwidth value.

[0142] If the preset adjustment value is greater than the reference bandwidth value, the reference bandwidth value is used as the bandwidth adjustment information.

[0143] It is worth noting that if the preset adjustment value is greater than the reference bandwidth value, it may indicate that the specific value stored in the server for indicating bandwidth adjustment for the device to be adjusted is greater than the currently calculated reference value that can be evenly distributed, so the smaller reference bandwidth value is used as the bandwidth adjustment information.

[0144] If the preset adjustment value is less than or equal to the reference bandwidth value, the preset adjustment value is used as the bandwidth adjustment information.

[0145] It is worth noting that if the preset adjustment value is less than or equal to the reference bandwidth value, it may indicate that the specific numerical value stored in the server for indicating bandwidth adjustment for the device to be adjusted is smaller than the currently calculated reference value that can be evenly distributed, so the smaller reference bandwidth value is used as the bandwidth adjustment information.

[0146] In this way, it can be ensured that a smaller bandwidth value is allocated to the device to be adjusted, and it can be avoided that when the preset adjustment value is too large, the device to be adjusted occupies too large a proportion of the bandwidth of the target port.

[0147] For a possible implementation, see Figure 5 , determine the initial bandwidth occupancy information of the target port by the device to be adjusted within a preset time period, including:

[0148] Step 1013: Obtain the identifier of the device to be adjusted.

[0149] Optionally, the identifier may be the above-mentioned MAC address.

[0150] Step 1014: Determine all account information accessing the target port through the device to be adjusted according to the identifier of the device to be adjusted.

[0151] Optionally, the account information may include user name, account number, identification ID and other information used to distinguish users.

[0152] That is, all accounts accessing the target port through the device to be adjusted can be determined based on the MAC of the device to be adjusted, so that all accounts accessing the target port through one device to be adjusted can be counted.

[0153] Step 1015: Determine the traffic consumption information of each account information used through the target port within the preset time period.

[0154] Optionally, the traffic consumption information may refer to the total amount of data transmitted, sent or received through the target port within the preset time period.

[0155] In this way, the traffic consumption information used by all accounts accessing the target port through the device to be adjusted within the preset time period can be counted, that is, the traffic consumption information used by the device to be adjusted can be counted.

[0156] Step 1016: Obtain the initial bandwidth usage information according to the traffic consumption information of each account information.

[0157] Optionally, the bandwidth occupied by the device to be adjusted may be obtained by converting the preset duration and the traffic consumption information.

[0158] Exemplarily, the statistical unit of bandwidth is bps, and traffic refers to the total amount of data sent and received, and the statistical unit of traffic is Byte. Therefore, the bandwidth occupied by the device to be adjusted and the initial bandwidth occupancy information can be obtained through the conversion relationship of 1Byte / s=8bps.

[0159] It is worth noting that, since there may be multiple accounts connected to the target port at the same time on a device to be adjusted, all accounts connected to the target port through a device to be adjusted are counted through the identifier, and the initial bandwidth occupancy information is obtained according to the traffic consumption information of each account information, so that the problem of a device to be adjusted occupying most of the bandwidth of the target port can be avoided. In this way, the practicality and flexibility of bandwidth adjustment can be improved.

[0160] In a possible implementation, determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information includes:

[0161] It is determined whether the initial bandwidth occupancy information is greater than the reference bandwidth value.

[0162] In this way, the relationship between the bandwidth of the target port occupied by the device to be adjusted and the reference bandwidth value can be accurately determined, so as to accurately determine whether bandwidth adjustment of the device to be adjusted is required.

[0163] If yes, it is determined to adjust the bandwidth of the device to be adjusted.

[0164] It is worth noting that if the initial bandwidth occupancy information is greater than the reference bandwidth value, it indicates that the bandwidth occupied by the device to be adjusted on the target port is greater than the maximum bandwidth value that the target port can averagely allocate to each terminal device, that is, the device to be adjusted occupies more bandwidth of the target port, and therefore the bandwidth of the device to be adjusted needs to be adjusted.

[0165] If not, it is determined not to adjust the bandwidth of the device to be adjusted.

[0166] It is worth noting that if the initial bandwidth occupancy information is less than or equal to the reference bandwidth value, it indicates that the bandwidth occupied by the device to be adjusted on the target port is less than or equal to the maximum bandwidth value that the target port can allocate on average to each terminal device, that is, the device to be adjusted occupies less bandwidth of the target port, so there is no need to adjust the bandwidth of the device to be adjusted.

[0167] In this way, it can be ensured that bandwidth adjustment is performed only on the device to be adjusted that occupies more bandwidth, without affecting the device to be adjusted that occupies less bandwidth.

[0168] For a possible implementation, see Figure 6 , the method further comprises:

[0169] Step 1017: If it is determined that the bandwidth of the device to be adjusted is not to be adjusted, real-time bandwidth occupancy information of the device to be adjusted within the target time period is monitored in real time.

[0170] Optionally, the target time period ends at the current time. The target time period may be a time period set by relevant technical personnel according to actual needs to monitor the flow usage of the device to be adjusted after authentication or the bandwidth occupancy of the target port.

[0171] Optionally, the real-time bandwidth occupancy information may be an average value of a ratio of a bandwidth of the target port used by the device to be adjusted within the target period to a maximum bandwidth of the target port.

[0172] Step 1018: Determine whether the real-time bandwidth occupancy information meets a preset condition.

[0173] Optionally, the preset condition may be that the amplitude of the real-time bandwidth occupancy information of the device to be adjusted exceeds a preset threshold, the bandwidth used by the target port indicated by the real-time bandwidth occupancy information of the device to be adjusted exceeds a preset bandwidth value, and / or the average value of the ratio of the bandwidth used by the target port to the maximum bandwidth of the target port indicated by the real-time bandwidth occupancy information of the device to be adjusted is greater than a preset ratio. The embodiments of the present application are not limited to this.

[0174] Step 1019: If the conditions are met, bandwidth adjustment is performed on the device to be adjusted according to the reference bandwidth value or a preset adjustment value corresponding to the device to be adjusted.

[0175] It is worth noting that if the real-time bandwidth occupancy information meets the preset condition, it may indicate that the bandwidth of the target port used by the device to be adjusted is too large or the bandwidth fluctuates greatly, so the bandwidth of the device to be adjusted needs to be adjusted.

[0176] In addition, the bandwidth adjustment of the device to be adjusted according to the reference bandwidth value or the preset adjustment value corresponding to the device to be adjusted can be performed by referring to step 1004, step 1005 and other corresponding steps, which will not be elaborated in the embodiments of the present application.

[0177] In a possible manner, after the bandwidth of the device to be adjusted is adjusted, the change in the number of devices connected to the target port may be continuously and in real time monitored to ensure that the calculated reference bandwidth value can be updated in a timely manner.

[0178] Furthermore, if the reference bandwidth value changes, steps 1002 to 1005, or steps 1002 to 1003, and steps 1017 to 1019 may be re-executed to ensure that the bandwidth of each device to be adjusted can be accurately adjusted in real time according to the current bandwidth occupancy of the target port.

[0179] The following describes the apparatus, device, and computer-readable storage medium used to execute the network bandwidth processing method provided in the present application. The specific implementation process and technical effects are described above and will not be repeated below.

[0180] Figure 7 is a schematic diagram of the structure of a network bandwidth processing device provided in an embodiment of the present application, see Figure 7 , the device comprises:

[0181] The determination module 201 is used to determine a reference bandwidth value according to the maximum bandwidth of the target port and the number of devices connected to the target port.

[0182] The determination module 201 is further configured to determine initial bandwidth occupancy information of the target port by the device to be adjusted within a preset time period.

[0183] The determination module 201 is further configured to determine whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information.

[0184] The sending and obtaining module 202 is used to generate a bandwidth adjustment request to send to a server in the authentication system and obtain bandwidth adjustment information from the server when bandwidth adjustment is performed on the device to be adjusted.

[0185] The bandwidth adjustment information is determined by the server according to the bandwidth adjustment request.

[0186] The adjustment module 203 is configured to adjust the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information.

[0187] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0188] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0189] Figure 8 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 8 The computer device includes: a memory 301 and a processor 302. The memory 301 stores a computer program that can be run on the processor 302. When the processor 302 executes the computer program, the steps in any of the above method embodiments are implemented.

[0190] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0191] Optionally, the present application also provides a program product, such as a computer-readable storage medium, including a program, which is used to execute any of the above-mentioned network bandwidth processing method embodiments when executed by a processor.

[0192] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0193] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0194] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0195] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0196] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0197] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A network bandwidth processing method, characterized in that: An authentication device applied to an authentication system, the method comprising: Determine a reference bandwidth value according to the maximum bandwidth of the target port and the number of devices connected to the target port, wherein the reference bandwidth value is the maximum bandwidth value that can be evenly allocated by the authentication device and / or the target port to each connected device; Determine initial bandwidth occupancy information of the target port by the device to be adjusted within a preset time period; Determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information; If so, generate and send a bandwidth adjustment request to a server in the authentication system, and obtain bandwidth adjustment information according to the bandwidth adjustment response of the server, wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request; Adjust the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information; The acquiring bandwidth adjustment information according to the bandwidth adjustment response of the server includes: receiving and parsing the bandwidth adjustment response, and determining whether a preset adjustment attribute field exists in the bandwidth adjustment response; If so, obtaining a preset adjustment value corresponding to the bandwidth adjustment response attribute field in the bandwidth adjustment response, and obtaining the bandwidth adjustment information according to the preset adjustment value; If not present, the reference bandwidth value is used as the bandwidth adjustment information; The obtaining the bandwidth adjustment information according to the preset adjustment value includes: Comparing the preset adjustment value with the reference bandwidth value; If the preset adjustment value is greater than the reference bandwidth value, using the reference bandwidth value as the bandwidth adjustment information; If the preset adjustment value is less than or equal to the reference bandwidth value, taking the preset adjustment value as the bandwidth adjustment information; The determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information includes: Determining whether the initial bandwidth occupancy information is greater than the reference bandwidth value; If yes, determine to adjust the bandwidth of the device to be adjusted; If not, it is determined not to adjust the bandwidth of the device to be adjusted.

2. The network bandwidth processing method according to claim 1, characterized in that: The generating and sending a bandwidth adjustment request to a server in the authentication system, and acquiring bandwidth adjustment information according to a bandwidth adjustment response of the server, comprises: Generate the bandwidth adjustment request according to the identifier of the device to be adjusted, wherein the bandwidth adjustment request includes at least one of the following: the identifier of the device to be adjusted and the identifier of the target port; Sending the bandwidth adjustment request to the server; receiving a bandwidth adjustment response sent by the server; The bandwidth adjustment information is obtained according to the bandwidth adjustment response.

3. The network bandwidth processing method according to claim 1, characterized in that: The determining of the initial bandwidth occupation information of the target port by the device to be adjusted within a preset time period includes: Obtaining the identification of the device to be adjusted; Determine all account information accessing the target port through the device to be adjusted according to the identifier of the device to be adjusted; Determine the traffic consumption information used by each of the account information through the target port within the preset time period; The initial bandwidth occupancy information is obtained according to the flow consumption information of each account information.

4. The network bandwidth processing method according to any one of claims 1 to 3, characterized in that: The method further comprises: If it is determined that the bandwidth of the device to be adjusted is not to be adjusted, real-time bandwidth occupancy information of the device to be adjusted within a target time period is monitored in real time, and the target time period takes the current time as the end time; Determining whether the real-time bandwidth occupancy information meets a preset condition; If so, the bandwidth of the device to be adjusted is adjusted according to the reference bandwidth value or a preset adjustment value corresponding to the device to be adjusted.

5. A network bandwidth processing device, characterized in that: An authentication device used in an authentication system, the device comprising: A determination module, configured to determine a reference bandwidth value according to a maximum bandwidth of a target port and the number of devices connected to the target port, wherein the reference bandwidth value is a maximum bandwidth value that can be evenly allocated by the authentication device and / or the target port to each connected device; The determination module is further used to determine the initial bandwidth occupation information of the device to be adjusted on the target port within a preset time period; The determination module is further configured to determine whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupancy information; a sending and obtaining module, configured to generate a bandwidth adjustment request to be sent to a server in the authentication system when bandwidth adjustment is performed on the device to be adjusted, and obtain bandwidth adjustment information according to a bandwidth adjustment response of the server, wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request; An adjustment module, configured to adjust the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information; The sending and obtaining module is specifically used for: receiving and parsing the bandwidth adjustment response, and determining whether a preset adjustment attribute field exists in the bandwidth adjustment response; If so, obtaining a preset adjustment value corresponding to the bandwidth adjustment response attribute field in the bandwidth adjustment response, and obtaining the bandwidth adjustment information according to the preset adjustment value; If not present, the reference bandwidth value is used as the bandwidth adjustment information; The sending and obtaining module is specifically used for: Comparing the preset adjustment value with the reference bandwidth value; If the preset adjustment value is greater than the reference bandwidth value, using the reference bandwidth value as the bandwidth adjustment information; If the preset adjustment value is less than or equal to the reference bandwidth value, taking the preset adjustment value as the bandwidth adjustment information; The determination module is specifically used for: Determining whether the initial bandwidth occupancy information is greater than the reference bandwidth value; If yes, determine to adjust the bandwidth of the device to be adjusted; If not, it is determined not to adjust the bandwidth of the device to be adjusted.

6. A computer device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the steps of the method described in any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Network transmission control method and system

    CN102377588A

  • Bandwidth control strategy distribution method and bandwidth control method, device and system

    CN103457872A

  • Bandwidth allocation apparatus and bandwidth allocation method

    US20190394135A1

  • Method and device for adjusting rated bandwidth

    US20210111961A1