CN115883375A - Network bandwidth processing method, device, equipment and storage medium - Google Patents

Network bandwidth processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115883375A
CN115883375A CN202211540147.0A CN202211540147A CN115883375A CN 115883375 A CN115883375 A CN 115883375A CN 202211540147 A CN202211540147 A CN 202211540147A CN 115883375 A CN115883375 A CN 115883375A
Authority
CN
China
Prior art keywords
bandwidth
adjusted
adjustment
value
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211540147.0A
Other languages
Chinese (zh)
Inventor
刘兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202211540147.0A priority Critical patent/CN115883375A/en
Publication of CN115883375A publication Critical patent/CN115883375A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides a network bandwidth processing method, a device, equipment and a storage medium, and belongs to the technical field of network communication. The method comprises the following steps: determining a reference bandwidth value according to the maximum bandwidth of a target port and the number of accessed devices of the target port; determining initial bandwidth occupation information of the equipment to be adjusted to the target port within a preset time length; determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information; if so, generating a bandwidth adjustment request sent to a server in the authentication system, and acquiring bandwidth adjustment information from the server, wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request; and adjusting the bandwidth of the equipment to be adjusted on the target port according to the bandwidth adjustment information. The method and the device can achieve the effects of improving the practicability and flexibility of bandwidth adjustment.

Description

Network bandwidth processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a network bandwidth processing method, apparatus, device, and storage medium.
Background
With the development of internet technology, people can access the internet through computer equipment to search various materials and data. Generally, an authorized user or device access port may be made to access a network through an 802.1x network.
In the related art, when an 802.1x network authentication network is deployed, multiple users or devices may access any port on an authentication device, however, after each user or each device passes authentication, a situation that traffic currently used by an individual user occupies a bandwidth of a certain port of the authentication device too high may occur. Generally, those skilled in the art will control the flow of 802.1x networks by setting the flow available to individual users as unlimited rate or adjusting the flow available to each user to a fixed bandwidth.
However, the related art scheme has a problem that an unlimited user may occupy most of the bandwidth while other users may use only a very small portion of the bandwidth, or may also have a problem that the port bandwidth cannot be fully utilized, and thus, the related art scheme has a problem that the practicality and flexibility of bandwidth adjustment are poor.
Disclosure of Invention
The present application aims to provide a network bandwidth processing method, apparatus, device and storage medium, which can achieve the effect of improving the practicability and flexibility of bandwidth adjustment.
The embodiment of the application is realized as follows:
in a first aspect of the embodiments of the present application, a method for processing a network bandwidth is provided, where the method is applied to an authentication device in an authentication system, and includes:
determining a reference bandwidth value according to the maximum bandwidth of a target port and the number of accessed devices of the target port;
determining initial bandwidth occupation information of the equipment to be adjusted to the target port within a preset time length;
determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information;
if so, generating a bandwidth adjustment request sent to a server in the authentication system, and acquiring bandwidth adjustment information from the server, wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request;
and adjusting the bandwidth of the equipment to be adjusted on the target port according to the bandwidth adjustment information.
Optionally, the generating sending a bandwidth adjustment request to a server in the authentication system, and acquiring bandwidth adjustment information from the server includes:
generating the bandwidth adjustment request according to the identifier of the device to be adjusted, where the bandwidth adjustment request includes at least one of the following: the identifier of the equipment to be adjusted and the identifier of the target port are obtained;
sending the bandwidth adjustment request to the server;
receiving a bandwidth adjustment response sent by the server;
and obtaining the bandwidth adjustment information according to the bandwidth adjustment response.
Optionally, the obtaining the bandwidth adjustment information according to the bandwidth adjustment response includes:
receiving and analyzing the bandwidth adjustment response, and determining whether a preset adjustment attribute field exists in the bandwidth adjustment response;
if the bandwidth adjustment response exists, acquiring a preset adjustment value corresponding to the bandwidth adjustment response attribute field in the bandwidth adjustment response, and acquiring the bandwidth adjustment information according to the preset adjustment value;
and if the reference bandwidth value does not exist, taking the reference bandwidth value as the bandwidth adjustment information.
Optionally, the obtaining the bandwidth adjustment information according to the preset adjustment value includes:
comparing the preset adjusting value with the reference bandwidth value;
if the preset adjustment value is larger than the reference bandwidth value, taking the reference bandwidth value as the bandwidth adjustment information;
and if the preset adjusting value is smaller than or equal to the reference bandwidth value, taking the preset adjusting value as the bandwidth adjusting information.
Optionally, the determining initial bandwidth occupation information of the device to be adjusted on the target port within a preset time duration includes:
acquiring the identifier of the equipment to be adjusted;
determining all account information accessed to the target port through the equipment to be adjusted according to the identifier of the equipment to be adjusted;
determining flow consumption information used by each account information through the target port within the preset time length;
and obtaining the initial bandwidth occupation information according to the flow consumption information of the account information.
Optionally, the determining whether to perform bandwidth adjustment on the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information includes:
determining whether the initial bandwidth occupation information is greater than the reference bandwidth value;
if so, determining to perform bandwidth adjustment on the equipment to be adjusted;
and if not, determining not to adjust the bandwidth of the equipment to be adjusted.
Optionally, the method further comprises:
if the bandwidth of the equipment to be adjusted is determined not to be adjusted, real-time bandwidth occupation information of the equipment to be adjusted in a target time period is monitored in real time, and the current time is taken as a termination time in the target time period;
determining whether the real-time bandwidth occupation information meets a preset condition;
and if so, adjusting the bandwidth of the equipment to be adjusted according to the reference bandwidth value or a preset adjustment value corresponding to the equipment to be adjusted.
In a second aspect of the embodiments of the present application, there is provided a network bandwidth processing apparatus, which is applied to an authentication device in an authentication system, where the network bandwidth processing apparatus includes:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a reference bandwidth value according to the maximum bandwidth of a target port and the number of accessed devices of the target port;
the determining module is further configured to determine initial bandwidth occupation information of the device to be adjusted on the target port within a preset duration;
the determining module is further configured to determine whether to perform bandwidth adjustment on the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information;
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 under the condition that bandwidth adjustment is performed on the device to be adjusted, where the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request;
and the adjusting module is used for adjusting the bandwidth of the equipment to be adjusted on the target port according to the bandwidth adjusting information.
In a third aspect of the embodiments of the present application, there is provided a computer device, where the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program, when executed by the processor, implements the network bandwidth processing method according to the first aspect.
In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, where a computer program is stored, and when executed by a processor, the computer program implements the network bandwidth processing method according to the first aspect.
The beneficial effects of the embodiment of the application include:
according to the network bandwidth processing method provided by the embodiment of the application, a reference bandwidth value is determined according to the maximum bandwidth of a target port and the number of accessed devices of the target port, initial bandwidth occupation information of a device to be adjusted on the target port within a preset time length is determined, whether the device to be adjusted is subjected to bandwidth adjustment is determined according to the reference bandwidth value and the initial bandwidth occupation information, if yes, a bandwidth adjustment request is generated to be sent to a server in the authentication system, bandwidth adjustment information is obtained from the server, and the bandwidth of the device to be adjusted on the target port is adjusted according to the bandwidth adjustment information.
The reference bandwidth value is determined by the maximum bandwidth of the target port and the number of devices that have access to the target port at the current time, and the initial bandwidth occupation information is obtained according to the occupation situation of the device to be adjusted on the bandwidth of the target port within a preset time period taking the current time as the termination time, and whether to adjust the bandwidth of the device to be adjusted is determined by the reference bandwidth value and the initial bandwidth occupation information. Therefore, when the bandwidth of the device to be adjusted is adjusted, the bandwidth of the device to be adjusted can be selectively adjusted based on the actual occupation condition of the actual bandwidth at the current moment, and the problem that an individual terminal device occupies most of the bandwidth of the target port or the bandwidth of the target port cannot be fully utilized can be solved.
Thus, the effect of improving the practicability and flexibility of bandwidth adjustment can be achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic structural diagram of an authentication system method according to an embodiment of the present application;
fig. 2 is a flowchart of a first network bandwidth processing method according to an embodiment of the present application;
fig. 3 is a flowchart of a second network bandwidth processing method according to an embodiment of the present application;
fig. 4 is a flowchart of a third network bandwidth processing method according to an embodiment of the present application;
fig. 5 is a flowchart of a fourth network bandwidth processing method according to an embodiment of the present application;
fig. 6 is a flowchart of a fifth network bandwidth processing method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a network bandwidth processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
In the related art, when the network is deployed through an 802.1x network authentication, multiple users or devices may access any port on the authentication device, however, after each user or each device passes the authentication, a situation that traffic currently used by an individual user occupies too high bandwidth of a certain port of the authentication device may occur. Generally, those skilled in the art will control the flow of 802.1x networks by setting the flow available to individual users as unlimited rate or adjusting the flow available to each user to a fixed bandwidth. However, the related art scheme has a problem that an unlimited user may occupy most of the bandwidth while other users may use only a very small portion of the bandwidth, or may also have a problem that the port bandwidth cannot be fully utilized, and thus, the related art scheme has a problem that the practicality and flexibility of bandwidth adjustment are poor.
Therefore, an embodiment of the present application provides a network bandwidth processing method, where a reference bandwidth value is determined according to a maximum bandwidth of a target port and a number of devices that have been accessed to the target port, initial bandwidth occupation information of a device to be adjusted for the target port within a preset time period is determined, whether to perform bandwidth adjustment on the device to be adjusted is determined according to the reference bandwidth value and the initial bandwidth occupation information, if yes, a bandwidth adjustment request is generated to be sent to a server in the authentication system, bandwidth adjustment information is obtained from the server, and a bandwidth of the device to be adjusted on the target port is adjusted according to the bandwidth adjustment information, so that an effect of improving practicality and flexibility of bandwidth adjustment can be achieved.
The embodiments of the present application take a network bandwidth processing method applied in an authentication system as an example for description. But it is not shown that the embodiment of the present application can only be applied to an authentication system for network bandwidth processing.
Fig. 1 is a schematic structural diagram of an authentication system provided in the present application, and referring to fig. 1, the authentication system includes an authentication device a, a server B, and a plurality of terminal devices C.
The authentication device A is connected with the server B, and the authentication device A is also connected with each terminal device C respectively.
Alternatively, the server B may be a Radius Authentication Dial-In User Service (Remote User Dial Authentication Service) Authentication server.
The server B may store a plurality of attributes configured in advance by a user or a related technician, for example, attributes such as a VLAN (Virtual Local Area Network), an ACL (Access Control list), and a QoS (Quality of Service).
Each terminal device C may be running with an 802.1x client.
The authentication device a may interact with each terminal device C through a corresponding request or instruction, so as to receive and process the authentication request sent by each terminal device C, and issue a corresponding attribute to each terminal device C.
Generally, when performing 802.1x authentication, each terminal device C first sends a login request or an authentication request to the authentication device a when performing an authentication service, where the login request or the authentication request may include an account number and a password of a user. And the authentication device A forwards the login Request or the authentication Request to the server B through a Radius Access-Request message after processing so as to authenticate the account and the password of the user.
After receiving the account and password of the user, the server B may encapsulate, in a Radius Access-Access message, each attribute field corresponding to the user and stored in the server B, and issue the message to the authentication device a, and then the authentication device a adaptively configures corresponding parameters corresponding to each attribute field to each terminal device C and/or accesses each account of the authentication device a through each terminal device C.
In this way, 802.1x authentication can be achieved.
The following explains the network bandwidth processing method provided in the embodiment of the present application in detail.
Fig. 2 is a flowchart of a network bandwidth processing method provided in the present application, which may be applied to any authentication device, such as the authentication device a described above. Referring to fig. 2, an embodiment of the present application provides a network bandwidth processing method, including:
step 1001: and determining a reference bandwidth value according to the maximum bandwidth of the target port and the number of the accessed devices of the target port.
Alternatively, the target port may be any access port on the authentication device, which is accessible to the terminal device or the user, and the target port may be accessible to multiple terminal devices or multiple users at the same time. The target port may be a gigabit bandwidth interface, a hundred-megabyte bandwidth interface, or the like, which is not limited in this embodiment.
The maximum bandwidth may be used to characterize the maximum amount of data transmission that the destination port can support per unit of time, for example, the maximum bandwidth may be 100Mbps (megabits per second).
The accessed device may refer to a terminal device that has accessed the authentication device or has passed authentication at the current time.
Illustratively, when the first terminal device initiates an authentication request to the authentication device to request to access the target port, at this time, none of the terminal devices has successfully accessed the target interface, and therefore the number of the accessed 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 request to access the target port, since the first terminal device has successfully accessed the target interface, the number of the accessed devices is 1.
Alternatively, the reference bandwidth value may be calculated from the maximum bandwidth and the number of accessed devices, and may be used as a reference value for performing bandwidth adjustment on each terminal device or each accessed device. In addition, the reference bandwidth value may refer to a maximum bandwidth value that the authentication device and/or the destination port can equally allocate for each terminal device.
Illustratively, the reference bandwidth value may be calculated by:
D=M/(Y+1)
wherein D represents the reference bandwidth value, M represents the maximum bandwidth of the destination port, and Y represents the number of accessed devices.
It should be noted that, in this way, the maximum bandwidth value that can be equally allocated to each terminal device accessing the target port at the current time can be accurately determined according to the maximum bandwidth of the target port and the number of successfully accessed devices, so as to facilitate subsequent bandwidth adjustment for each terminal device or user.
Step 1002: and determining initial bandwidth occupation information of the equipment to be adjusted to the target port within a preset time length.
Optionally, the device to be adjusted may be any terminal device accessing the target port, or may also be a terminal device sending an authentication request to the target port at the current time, which is not limited in this embodiment of the present application. The terminal device may be any of the terminal devices C described above.
The preset duration may be a duration set by a relevant technician according to actual needs, where the duration is used to monitor bandwidth occupation or traffic usage of the device to be adjusted. Generally, the preset time period takes the current time as the termination time, and the preset time period may be any possible time period such as 10 minutes, 1 hour, and the like.
The initial bandwidth occupation 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 preset time period to a maximum bandwidth of the target port.
That is to say, the initial bandwidth occupation information may be used to indicate the data amount transmitted by the device to be adjusted through the target interface within the preset time period, and may also be used to indicate the proportion of the maximum bandwidth occupied by the device to be adjusted on the target port.
It should be noted that, in this way, the data volume transmitted by each device to be adjusted through the target port in a period of time before the current time and/or the bandwidth proportion occupied by the target port in a period of time before the current time can be accurately determined, so as to subsequently and accurately determine whether bandwidth adjustment needs to be performed on each device to be adjusted.
Step 1003: and determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information.
Optionally, the operation of adjusting the bandwidth of the device to be adjusted may refer to adjusting a maximum data amount that the device to be adjusted can transmit through the target port in a unit time, that is, adjusting a traffic speed of the device to be adjusted.
For example, the bandwidth adjustment performed on the device to be adjusted may specifically be to reduce a bandwidth of the device to be adjusted, where the target port may be used by the device to be adjusted, reduce a maximum amount of data that can be transmitted by the device to be adjusted through the target port in a unit time, or reduce a traffic speed of the device to be adjusted. The embodiment of the present application does not limit this.
Therefore, whether the bandwidth of each device to be adjusted needs to be adjusted or not can be accurately determined.
Step 1004: and if so, generating a bandwidth adjustment request sent to a server in the authentication system, and acquiring bandwidth adjustment information from the server.
Alternatively, the server may be the server B described above.
The bandwidth adjustment request may be a message used to obtain the corresponding attribute parameter from the server, and specifically may be used to obtain the bandwidth adjustment information from the server.
For example, the bandwidth adjustment Request may refer to the Radius Access-Request message, and the bandwidth adjustment Request may also be an instruction carried in a Value field of a vector-Specific attribute in the Radius Access-Request message, for acquiring a preconfigured bandwidth adjustment Value stored by the server.
Optionally, the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request.
In addition, the bandwidth adjustment information may be a specific value set in advance by a relevant technician or a user to indicate that the bandwidth adjustment is performed on the device to be adjusted. The bandwidth adjustment information may be corresponding to the device to be adjusted, or may be corresponding to all accounts accessed to the target port through the device to be adjusted, which is not limited in this embodiment of the application.
It should be noted that, when it is determined that the bandwidth of the device to be adjusted needs to be adjusted, a specific value for adjusting the bandwidth of the device to be adjusted, that is, the bandwidth adjustment information needs to be determined first, so that the bandwidth of the device to be adjusted can be accurately adjusted according to the bandwidth adjustment information.
Step 1005: and adjusting the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information.
Optionally, the bandwidth of the device to be adjusted on the target port may refer to a maximum bandwidth value that the device to be adjusted can use the target port.
Optionally, the bandwidth of the device to be adjusted on the target port may be specifically adjusted to the specific value, indicated by the bandwidth adjustment information, of performing bandwidth adjustment on the device to be adjusted, or the bandwidth of the device to be adjusted on the target port may be adjusted to any possible bandwidth that is smaller than the specific value, indicated by the bandwidth adjustment information, of performing bandwidth adjustment on the device to be adjusted.
It should be noted that, the reference bandwidth value is determined by the maximum bandwidth of the target port and the number of devices that have accessed the target port at the current time, and the initial bandwidth occupation information is obtained according to the occupation situation of the device to be adjusted on the bandwidth of the target port within the preset time duration taking the current time as the termination time. And determining whether to perform bandwidth adjustment on the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information.
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 occupation condition of the actual bandwidth at the current moment, so that the problem that only individual users can be fixedly set as non-speed limit or all users can be uniformly set with speed limit in the related art is avoided.
Therefore, the problem that individual terminal equipment occupies most of the bandwidth of the target port or the bandwidth of the target port cannot be fully utilized can be avoided, and the practicability and flexibility of bandwidth adjustment are improved.
In the embodiment of the application, a reference bandwidth value is determined according to the maximum bandwidth of a target port and the number of accessed devices of the target port, initial bandwidth occupation information of a device to be adjusted on the target port within a preset time period is determined, whether bandwidth adjustment is performed on the device to be adjusted is determined according to the reference bandwidth value and the initial bandwidth occupation information, if yes, a bandwidth adjustment request is generated and sent to a server in the authentication system, bandwidth adjustment information is obtained from the server, and the bandwidth of the device to be adjusted on the target port is adjusted according to the bandwidth adjustment information.
The reference bandwidth value is determined by the maximum bandwidth of the target port and the number of devices that have access to the target port at the current time, and the initial bandwidth occupation information is obtained according to the occupation situation of the device to be adjusted on the bandwidth of the target port within a preset time period taking the current time as the termination time, and whether to adjust the bandwidth of the device to be adjusted is determined by the reference bandwidth value and the initial bandwidth occupation information. Therefore, when the bandwidth of the device to be adjusted is adjusted, the device to be adjusted is selectively adjusted based on the actual occupation situation of the actual bandwidth at the current moment, and the problem that the individual terminal device occupies most of the bandwidth of the target port or the bandwidth of the target port cannot be fully utilized can be solved.
Thus, the effect of improving the practicability and flexibility of bandwidth adjustment can be achieved.
In one possible implementation manner, referring to fig. 3, generating and sending a bandwidth adjustment request to a server in the authentication system, and acquiring bandwidth adjustment information from the server includes:
step 1006: and generating the bandwidth adjustment request according to the identifier of the device to be adjusted.
Optionally, the bandwidth adjustment request includes at least one of the following items: the identifier of the device to be adjusted and the identifier of the target port.
Alternatively, the identifier of the device to be adjusted may refer to a 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 perform bandwidth adjustment on all accounts accessed to the target port through the device to be adjusted in the following process.
Optionally, the identifier of the target port may be a port (port number) of the target port, which is not limited in this embodiment of the application.
Step 1007: the bandwidth adjustment request is sent to the server.
It should be noted that the bandwidth adjustment request includes the identifier of the device to be adjusted, so that after the server receives the bandwidth adjustment request, the attribute field and/or the attribute parameter corresponding to the device to be adjusted, which are stored on the server, can be accurately determined.
And, the bandwidth adjustment request further includes the identifier of the target port, so that after the server receives the bandwidth adjustment request, the attribute field and/or attribute parameter stored in the server and related to the target port accessed by the device to be adjusted can also be accurately determined.
Step 1008: and receiving a bandwidth adjustment response sent by the server.
Optionally, the bandwidth adjustment response may be the Radius Access-Access message.
The bandwidth adjustment response may include various attribute fields and/or attribute parameters that are pre-configured by a technician or a user with respect to 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 performing bandwidth adjustment on the device to be adjusted.
Step 1009: and obtaining the bandwidth adjustment information according to the bandwidth adjustment response.
Thus, the accuracy and the practicability of the determined bandwidth adjustment information can be ensured.
In a possible implementation manner, referring to fig. 4, obtaining the bandwidth adjustment information according to the bandwidth adjustment response includes:
step 1010: and receiving and analyzing the bandwidth adjustment response, and determining whether a preset adjustment attribute field exists in the bandwidth adjustment response.
Optionally, the preset adjustment attribute field may refer to a field for instructing to adjust the bandwidth of the device to be adjusted, and may also include any other possible attribute field.
For example, it may be the Vendor-Specific field of the Radius Access-Request described above.
The preset adjustment attribute field may include a field indicating a specific value.
For another example, the Value field information of the Radius Access-Request may include Value field information for adding an attribute field, and the Value field information may include attribute fields such as a Value-Id, a Value Type, and a Value.
Wherein the Vendor-Id attribute field may be used to define the Vendor ID. The Vendor Type attribute field may be used to define specific parameters of the attribute, such as a specific value (that is, a speed limit value) for performing bandwidth adjustment on the device to be adjusted, specific parameters of a VLAN, specific parameters of QoS, specific parameters of an ACL, and the like. The Vendor Value attribute field may be used to define whether the corresponding attribute needs to be acquired, for example, if the Vendor Value attribute field is defined as 0, it represents that the attribute corresponding to the Vendor Value attribute field does not need to be acquired from the server, and if the Vendor Value attribute field is defined as 1, it represents that the attribute corresponding to the Vendor Value attribute field needs to be acquired from the server. The embodiment of the present application does not limit this.
Step 1011: if the bandwidth adjustment response exists, acquiring a preset adjustment value corresponding to the bandwidth adjustment response attribute field in the bandwidth adjustment response, and acquiring the bandwidth adjustment information according to the preset adjustment value.
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 be a specific value for performing bandwidth adjustment on the device to be adjusted, which is not limited in the embodiment of the present application.
In addition, a specific parameter corresponding to any other attribute field in the bandwidth adjustment response may also be obtained, which is not limited in this embodiment of the application.
It should be noted that, if the preset adjustment attribute field exists in the bandwidth adjustment response, it indicates that the related technical staff or the user stores in advance the attribute parameter for sending to the device to be adjusted for performing the bandwidth adjustment in the server. Therefore, specific parameters of each attribute predefined in the server can be accurately obtained so as to complete the authentication service, and the bandwidth adjustment information can be accurately determined so as to adjust the bandwidth of the device to be adjusted.
Step 1012: and if the reference bandwidth value does not exist, the reference bandwidth value is used as the bandwidth adjustment information.
It should be noted that if the bandwidth adjustment response does not include the preset adjustment attribute field, it indicates that the server does not store the attribute parameter for sending to the device to be adjusted for performing bandwidth adjustment, and then the reference bandwidth value may be used as the bandwidth adjustment information to implement bandwidth adjustment on the device to be adjusted, thereby avoiding the problem that individual terminal devices occupy most of the bandwidth of the target port. Therefore, the practicability and flexibility of bandwidth adjustment can be improved.
In a possible implementation manner, obtaining the bandwidth adjustment information according to the preset adjustment value includes:
and comparing the preset adjusting value with the reference bandwidth value.
And if the preset adjustment value is larger than the reference bandwidth value, taking the reference bandwidth value as the bandwidth adjustment information.
It should be noted 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 instructing bandwidth adjustment of the device to be adjusted is greater than the currently calculated reference value that can be allocated evenly, and therefore, the smaller reference bandwidth value is used as the bandwidth adjustment information.
And if the preset adjusting value is smaller than or equal to the reference bandwidth value, taking the preset adjusting value as the bandwidth adjusting information.
It should be noted that, if the preset adjustment value is less than or equal to the reference bandwidth value, it may indicate that the specific value stored in the server for instructing bandwidth adjustment of the device to be adjusted is smaller than the currently calculated reference value that can be allocated equally, and therefore, the smaller reference bandwidth value is used as the bandwidth adjustment information.
Therefore, a smaller bandwidth value can be allocated to the device to be adjusted, and the situation that the bandwidth proportion of the target port occupied by the device to be adjusted is too large under the condition that the preset adjustment value is too large can be avoided.
In a possible implementation manner, referring to fig. 5, determining initial bandwidth occupation information of a device to be adjusted on the target port within a preset time duration includes:
step 1013: and acquiring the identifier of the equipment to be adjusted.
Alternatively, the identification may be the MAC address described above.
Step 1014: and determining all account information accessed to the target port through the equipment to be adjusted according to the identifier of the equipment to be adjusted.
Alternatively, the account information may include a user name, an account number, an identification ID, and the like for distinguishing the user.
That is, all accounts accessed to the target port by the device to be adjusted may be determined based on the MAC of the device to be adjusted, so that all accounts accessed to the target port by one device to be adjusted may be counted.
Step 1015: and determining the flow consumption information of each account information used by the target port within the preset time length.
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.
Therefore, the traffic consumption information used by all accounts accessing the target port through the device to be adjusted within the preset time length can be counted, that is, the traffic consumption information used by the device to be adjusted can be counted.
Step 1016: and obtaining the initial bandwidth occupation information according to the flow consumption information of each account information.
Optionally, the bandwidth occupied by the device to be adjusted may be obtained by converting the preset duration and the traffic consumption information.
Illustratively, the statistical unit of the bandwidth is bps, and the traffic refers to the sum of the transmitted and received data amounts, and the statistical unit of the traffic is Byte (Byte), so that the bandwidth occupied by the device to be adjusted and the initial bandwidth occupation information can be obtained through a conversion relation of 1Byte/s =8 bps.
It should be noted that, since there may be multiple accounts accessing the target port on one device to be adjusted at the same time, all accounts accessing the target port through one device to be adjusted are counted by the identifier, and the initial bandwidth occupation information is obtained according to the traffic consumption information of each account information, so that the problem that one device to be adjusted occupies most of the bandwidth of the target port can be avoided. Therefore, the practicability and flexibility of bandwidth adjustment can be improved.
In a possible implementation manner, determining whether to perform bandwidth adjustment on the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information includes:
determining whether the initial bandwidth occupation information is greater than the reference bandwidth value.
Therefore, the size relation between the bandwidth of the target port occupied by the device to be adjusted and the reference bandwidth value can be accurately determined, and whether the device to be adjusted needs to be adjusted in bandwidth or not can be accurately determined.
And if so, determining to adjust the bandwidth of the equipment to be adjusted.
It should be noted that, if the initial bandwidth occupation information is greater than the reference bandwidth value, it indicates that the bandwidth of the target port occupied by the device to be adjusted is greater than the maximum bandwidth value that the target port can equally allocate to each terminal device, that is, the device to be adjusted occupies more bandwidth of the target port, and therefore the device to be adjusted needs to be adjusted in bandwidth.
If not, determining not to adjust the bandwidth of the device to be adjusted.
It should be noted that, if the initial bandwidth occupation 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 equally allocate to each terminal device, that is, the device to be adjusted occupies less bandwidth of the target port, so that bandwidth adjustment on the device to be adjusted is not required.
Therefore, the bandwidth of the device to be adjusted which occupies more bandwidth can be adjusted, and the device to be adjusted which occupies less bandwidth is not affected.
In one possible implementation, referring to fig. 6, the method further includes:
step 1017: and if the bandwidth of the equipment to be adjusted is determined not to be adjusted, monitoring real-time bandwidth occupation information of the equipment to be adjusted in a target time period in real time.
Optionally, the target time period takes the current time as a termination time. The target period may be a period set by a relevant technician according to actual needs, for monitoring traffic usage of the device to be adjusted after authentication or bandwidth occupation of the target port.
Optionally, the real-time bandwidth occupation information may be an average value of a ratio of a bandwidth of the target port used by the device to be adjusted in the target period to a maximum bandwidth of the target port.
Step 1018: and determining whether the real-time bandwidth occupation information meets a preset condition.
Optionally, the preset condition may be that the amplitude of the real-time bandwidth occupation information of the device to be adjusted exceeds a preset threshold, the bandwidth using the target port indicated by the real-time bandwidth occupation information of the device to be adjusted exceeds a preset bandwidth value, and/or the average value of the ratio of the bandwidth using the target port indicated by the real-time bandwidth occupation information of the device to be adjusted to the maximum bandwidth of the target port is greater than a preset ratio. The embodiment of the present application does not limit this.
Step 1019: and if so, adjusting the bandwidth of the equipment to be adjusted according to the reference bandwidth value or a preset adjustment value corresponding to the equipment to be adjusted.
It should be noted that, if the real-time bandwidth occupation information satisfies 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 that the device to be adjusted needs to be adjusted.
In addition, the bandwidth of the device to be adjusted may be adjusted according to the reference bandwidth value or the preset adjustment value corresponding to the device to be adjusted by referring to step 1004, step 1005 and other corresponding steps, which is not described herein again in this embodiment of the present application.
In a possible manner, after the device to be adjusted is adjusted in bandwidth, the change of the number of the accessed devices of the target port can be monitored continuously and in real time, so as to ensure that the calculated reference bandwidth value can be updated in time.
Further, when the reference tape value is changed, step 1002 to step 1005, or step 1002 to step 1003, or step 1017 to step 1019 may be executed again. So as to ensure that the bandwidth of each device to be adjusted can be accurately adjusted in real time according to the bandwidth occupation condition of the current target port.
The following describes a device, an apparatus, and a computer-readable storage medium for executing the network bandwidth processing method provided by the present application, and specific implementation procedures and technical effects thereof are referred to above, and will not be described again below.
Fig. 7 is a schematic structural diagram of a network bandwidth processing apparatus according to an embodiment of the present application, and referring to fig. 7, the apparatus includes:
the determining module 201 is configured to determine a reference bandwidth value according to the maximum bandwidth of the target port and the number of devices accessed to the target port.
The determining module 201 is further configured to determine initial bandwidth occupation information of the device to be adjusted on the target port within a preset time duration.
The determining module 201 is further configured to determine whether to perform bandwidth adjustment on the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information.
A sending and obtaining module 202, 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 the bandwidth of the device to be adjusted is adjusted.
Wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request.
And the adjusting module 203 is configured to adjust the bandwidth of the device to be adjusted on the target port according to the bandwidth adjustment information.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These 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), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application. Referring to fig. 8, the computer apparatus includes: a memory 301 and a processor 302, wherein the memory 301 stores a computer program operable on the processor 302, and the processor 302 executes the computer program to implement the steps of any of the above-mentioned method embodiments.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps in the foregoing method embodiments may be implemented.
Optionally, the present application also provides a program product, such as a computer-readable storage medium, comprising a program, which when executed by a processor, is configured to perform any of the above-described embodiments of the network bandwidth processing method.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A network bandwidth processing method is applied to an authentication device in an authentication system, and the method comprises the following steps:
determining a reference bandwidth value according to the maximum bandwidth of a target port and the number of accessed devices of the target port;
determining initial bandwidth occupation information of the equipment to be adjusted to the target port within a preset time length;
determining whether to adjust the bandwidth of the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information;
if so, generating and sending a bandwidth adjustment request to a server in the authentication system, and acquiring bandwidth adjustment information from the server, wherein the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request;
and adjusting the bandwidth of the equipment to be adjusted on the target port according to the bandwidth adjustment information.
2. The network bandwidth processing method of claim 1, wherein the generating and sending a bandwidth adjustment request to a server in the authentication system and obtaining bandwidth adjustment information from the server comprises:
generating the bandwidth adjustment request according to the identifier of the device to be adjusted, where the bandwidth adjustment request includes at least one of the following items: the identifier of the equipment to be adjusted and the identifier of the target port are obtained;
sending the bandwidth adjustment request to the server;
receiving a bandwidth adjustment response sent by the server;
and obtaining the bandwidth adjustment information according to the bandwidth adjustment response.
3. The method of claim 2, wherein the obtaining the bandwidth adjustment information according to the bandwidth adjustment response comprises:
receiving and analyzing the bandwidth adjustment response, and determining whether a preset adjustment attribute field exists in the bandwidth adjustment response;
if the bandwidth adjustment response exists, acquiring a preset adjustment value corresponding to the bandwidth adjustment response attribute field in the bandwidth adjustment response, and acquiring the bandwidth adjustment information according to the preset adjustment value;
and if the reference bandwidth value does not exist, taking the reference bandwidth value as the bandwidth adjustment information.
4. The method for processing network bandwidth according to claim 3, wherein the obtaining the bandwidth adjustment information according to the preset adjustment value comprises:
comparing the preset adjusting value with the reference bandwidth value;
if the preset adjustment value is larger than the reference bandwidth value, taking the reference bandwidth value as the bandwidth adjustment information;
and if the preset adjusting value is smaller than or equal to the reference bandwidth value, taking the preset adjusting value as the bandwidth adjusting information.
5. The method for processing network bandwidth according to claim 1, wherein the determining the initial bandwidth occupation information of the device to be adjusted on the target port within a preset time duration includes:
acquiring the identifier of the equipment to be adjusted;
determining all account information accessed to the target port through the equipment to be adjusted according to the identifier of the equipment to be adjusted;
determining flow consumption information used by each account information through the target port within the preset time length;
and obtaining the initial bandwidth occupation information according to the flow consumption information of the account information.
6. The method for processing network bandwidth according to claim 1, wherein the determining whether to perform bandwidth adjustment on the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information includes:
determining whether the initial bandwidth occupation information is greater than the reference bandwidth value;
if so, determining to adjust the bandwidth of the equipment to be adjusted;
if not, determining not to adjust the bandwidth of the device to be adjusted.
7. The network bandwidth processing method of any one of claims 1-6, wherein the method further comprises:
if the bandwidth of the equipment to be adjusted is determined not to be adjusted, real-time bandwidth occupation information of the equipment to be adjusted in a target time period is monitored in real time, and the current time is taken as a termination time in the target time period;
determining whether the real-time bandwidth occupation information meets a preset condition;
and if so, adjusting the bandwidth of the equipment to be adjusted according to the reference bandwidth value or a preset adjustment value corresponding to the equipment to be adjusted.
8. A network bandwidth processing apparatus, applied to an authentication device in an authentication system, the apparatus comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a reference bandwidth value according to the maximum bandwidth of a target port and the number of accessed devices of the target port;
the determining module is further configured to determine initial bandwidth occupation information of the device to be adjusted on the target port within a preset duration;
the determining module is further configured to determine whether to perform bandwidth adjustment on the device to be adjusted according to the reference bandwidth value and the initial bandwidth occupation information;
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 under the condition that bandwidth adjustment is performed on the device to be adjusted, where the bandwidth adjustment information is determined by the server according to the bandwidth adjustment request;
and the adjusting module is used for adjusting the bandwidth of the equipment to be adjusted on the target port according to the bandwidth adjusting information.
9. A computer device, comprising: memory in which a computer program is stored which is executable on the processor, and a processor which, when executing the computer program, carries out the steps of the method according to any one of the preceding claims 1 to 7.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of one of claims 1 to 7.
CN202211540147.0A 2022-12-02 2022-12-02 Network bandwidth processing method, device, equipment and storage medium Pending CN115883375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211540147.0A CN115883375A (en) 2022-12-02 2022-12-02 Network bandwidth processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211540147.0A CN115883375A (en) 2022-12-02 2022-12-02 Network bandwidth processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115883375A true CN115883375A (en) 2023-03-31

Family

ID=85765634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211540147.0A Pending CN115883375A (en) 2022-12-02 2022-12-02 Network bandwidth processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115883375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319322A (en) * 2023-12-01 2023-12-29 成都睿众博芯微电子技术有限公司 Bandwidth allocation method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117319322A (en) * 2023-12-01 2023-12-29 成都睿众博芯微电子技术有限公司 Bandwidth allocation method, device, equipment and storage medium
CN117319322B (en) * 2023-12-01 2024-02-27 成都睿众博芯微电子技术有限公司 Bandwidth allocation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108924221B (en) Method and device for allocating resources
US20240098010A1 (en) Method and system for using a downloadable agent for a communication system, device, or link
US10095993B1 (en) Methods and apparatus for configuring granularity of key performance indicators provided by a monitored component
CN106412628B (en) Bandwidth adjusting method and related equipment
US11646968B2 (en) Communication method and related device
CN109167812B (en) Method for evaluating service quality and determining adjustment strategy, server and storage medium
JP2005518147A (en) System for estimating network traffic characteristics of executable software applications
CN104869155B (en) Data Audit method and device
KR20150013800A (en) System and method for ensuring subscriber fairness using outlier detection
US10498615B2 (en) Method, apparatus and system for providing wireless network speed information
EP3499818B1 (en) Method and device for load processing
CN115883375A (en) Network bandwidth processing method, device, equipment and storage medium
US10050889B1 (en) Traffic control platform
CN106954212A (en) A kind of portal authentication method and system
CN109787796B (en) Method and device for authorizing network function service
US20180376358A1 (en) Remote management of base stations and/or the functions performed thereby
CN110380981B (en) Flow distribution method and equipment
KR102602073B1 (en) Service registration based on service capability requirements and preferences
EP3617922A1 (en) Apparatus and methods for deriving fingerprints of communications devices
US20220141150A1 (en) Implementing network constraint exceptions on a per device basis
CN109729016A (en) A kind of file transmitting method, equipment and computer readable storage medium
CN109474626A (en) A kind of method for network authorization and device based on SNS
CN115580568A (en) Method and system for realizing network service quality guarantee based on IPv6 flow label
CN103259804B (en) Method and system for obtaining and comparing network service quality information
KR102000199B1 (en) Method and Server Apparatus for Providing Internet of Things Platform Service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination