CN113489624A - Outlet bandwidth flow optimization method and device, computer equipment and storage medium - Google Patents

Outlet bandwidth flow optimization method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113489624A
CN113489624A CN202110773017.0A CN202110773017A CN113489624A CN 113489624 A CN113489624 A CN 113489624A CN 202110773017 A CN202110773017 A CN 202110773017A CN 113489624 A CN113489624 A CN 113489624A
Authority
CN
China
Prior art keywords
bandwidth
user
flow
traffic
interface
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.)
Granted
Application number
CN202110773017.0A
Other languages
Chinese (zh)
Other versions
CN113489624B (en
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.)
Guangdong Mechanical and Electrical College
Original Assignee
Guangdong Mechanical and Electrical College
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 Guangdong Mechanical and Electrical College filed Critical Guangdong Mechanical and Electrical College
Priority to CN202110773017.0A priority Critical patent/CN113489624B/en
Publication of CN113489624A publication Critical patent/CN113489624A/en
Application granted granted Critical
Publication of CN113489624B publication Critical patent/CN113489624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a method and a device for optimizing outlet bandwidth flow, computer equipment and a storage medium. The method comprises the following steps: acquiring interface bandwidth of an outlet bandwidth device; dynamically adjusting the user flow according to the interface bandwidth; collecting the number of internet users; and displaying the interface bandwidth, the user flow and the number of the internet users in a graphic display mode. By implementing the method provided by the embodiment of the invention, the automatic flow optimization can be realized, the bandwidth can be fully utilized, the user experience is good, and the operation and maintenance management work is not easy to make mistakes.

Description

Outlet bandwidth flow optimization method and device, computer equipment and storage medium
Technical Field
The present invention relates to a traffic optimization method, and more particularly, to a method, an apparatus, a computer device, and a storage medium for optimizing egress bandwidth traffic.
Background
The flow optimization comprises intelligent caching and intelligent content distribution, and can solve the problems of high broadband service outlet cost, unsmooth user network, low downloading speed and the like for telecom, radio and television, other ISP operators and enterprise customers.
The current flow optimization technologies mainly include three types, respectively: the method comprises the steps of performing bandwidth total flow control, fixed-speed flow control on bandwidth of each user and dynamic flow control on bandwidth of each user; however, the existing traffic optimization technology cannot optimize a campus network with a fixed total amount of outlet bandwidth in real time, and cannot completely meet the actual requirements of the campus network of colleges and universities; in order to fully and reasonably utilize the campus network bandwidth, a network administrator needs to frequently log in a plurality of heterogeneous network management systems to perform real-time optimization on outlet traffic, and firstly, logs in outlet bandwidth equipment to check the bandwidth utilization condition; secondly, logging in an internet authentication platform to check the number of network access users; finally, the login traffic optimization device optimizes the traffic of the campus network user, but in this way, multiple heterogeneous network management systems cannot be managed simultaneously, so that the operation of an administrator is frequent and easy to make mistakes, the policy tuning is delayed, the user experience is poor, and the bandwidth cannot be fully utilized.
Therefore, it is necessary to design a new method, which can fully utilize the bandwidth, provide good user experience, and prevent errors in the operation and maintenance management work.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides an outlet bandwidth flow optimization method, an outlet bandwidth flow optimization device, computer equipment and a storage medium.
In order to achieve the purpose, the invention adopts the following technical scheme: the method for optimizing the egress bandwidth flow comprises the following steps:
acquiring interface bandwidth of an outlet bandwidth device;
dynamically adjusting the user flow according to the interface bandwidth;
collecting the number of internet users;
and displaying the interface bandwidth, the user flow and the number of the internet users in a graphic display mode.
The further technical scheme is as follows: the dynamically adjusting the user flow according to the interface bandwidth includes:
adjusting a user bandwidth threshold value by adopting a real-time flow optimization algorithm according to the interface bandwidth to obtain a target bandwidth threshold value;
and simulating to log in the traffic optimization equipment and modifying a user bandwidth threshold corresponding to the traffic optimization equipment.
The further technical scheme is as follows: the adjusting the user bandwidth threshold value by adopting a real-time traffic optimization algorithm according to the interface bandwidth to obtain a target bandwidth threshold value comprises the following steps:
setting an initial user bandwidth threshold value, a user bandwidth value and an exit bandwidth value according to the using condition of the exit bandwidth flow of the campus network;
determining a difference between the interface bandwidth and the egress bandwidth value;
processing the user bandwidth value according to the step granularity according to the difference value to obtain a processing result;
and adjusting the initial user bandwidth threshold according to the processing result to obtain a target bandwidth threshold.
The further technical scheme is as follows: the simulating to log in the traffic optimization device and modify the user bandwidth threshold corresponding to the traffic optimization device includes:
capturing packets, analyzing the bandwidth values of various operator interfaces and the operation of modifying corresponding user bandwidth thresholds by logging in a traffic optimization device, and recording corresponding element IDs;
opening a browser login page;
logging in an outlet bandwidth device and a flow optimization device;
acquiring interface bandwidth values of each operator and performing cumulative superposition to form a current export bandwidth value;
logging in the flow optimization equipment and modifying the user bandwidth of the flow optimization equipment according to the processing result;
and outputting the current outlet bandwidth value and the user bandwidth of the flow optimization equipment, and writing the current outlet bandwidth value and the user bandwidth of the flow optimization equipment into a database.
The further technical scheme is as follows: the opening of the browser login page comprises the following steps:
and calling a Chrome browser of the Selenium module to open a browser login page.
The further technical scheme is as follows: the collecting the number of the internet users comprises the following steps:
using a developer tool of a browser to capture and analyze the operation of acquiring the number of the internet users by the administrator login authentication system, and recording corresponding element IDs;
opening a browser login page;
logging in a user internet authentication system;
acquiring the number of online users in an online authentication system;
and outputting the current number of the online users, and writing the current number of the online users into a database to obtain the number of the online users.
The further technical scheme is as follows: the displaying the interface bandwidth, the user traffic and the number of the internet users in a graphic display mode comprises the following steps:
and displaying the interface bandwidth, the user flow and the number of the online users by using a Synchronized charts chart type of the Highcharts plug-in.
The invention also provides an outlet bandwidth flow optimizing device, which comprises:
the bandwidth acquisition unit is used for acquiring the interface bandwidth of the outlet bandwidth equipment;
the flow adjusting unit is used for dynamically adjusting the user flow according to the interface bandwidth;
the quantity acquisition unit is used for acquiring the quantity of the internet users;
and the graphic display unit is used for displaying the interface bandwidth, the user traffic and the number of the internet users in a graphic display mode.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: according to the invention, a simulation network administrator logs in a plurality of heterogeneous network management systems, after the interface bandwidth of the equipment is acquired, the real-time flow optimization algorithm is adopted to optimize the user flow, the number of online users is acquired, the relevant content is displayed by adopting a graph, a plurality of heterogeneous network systems can be managed simultaneously, the operation of the simulation administrator is adopted, the automatic flow optimization is realized, the bandwidth can be fully utilized, the user experience is good, and the operation and maintenance management work is not easy to make mistakes.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of an egress bandwidth traffic optimization method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an egress bandwidth traffic optimization method according to an embodiment of the present invention;
fig. 3 is a sub-flow diagram of an egress bandwidth traffic optimization method according to an embodiment of the present invention;
fig. 4 is a sub-flow diagram of an egress bandwidth traffic optimization method according to an embodiment of the present invention;
fig. 5 is a sub-flow diagram of an egress bandwidth traffic optimization method according to an embodiment of the present invention;
fig. 6 is a sub-flow diagram of an egress bandwidth traffic optimization method according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of an egress bandwidth traffic optimization apparatus provided in an embodiment of the present invention;
fig. 8 is a schematic block diagram of a traffic adjustment unit of an egress bandwidth traffic optimization apparatus according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of a threshold determination subunit of the egress bandwidth traffic optimization apparatus provided by an embodiment of the present invention;
fig. 10 is a schematic block diagram of a device optimization subunit of the egress bandwidth traffic optimization apparatus provided in the embodiment of the present invention;
fig. 11 is a schematic block diagram of a quantity acquisition unit of the egress bandwidth traffic optimization apparatus according to an embodiment of the present invention;
FIG. 12 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of an egress bandwidth traffic optimization method according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of an egress bandwidth traffic optimization method according to an embodiment of the present invention. The method for optimizing the egress bandwidth flow is applied to a server. The server performs data interaction with the terminal, performs intelligent flow optimization on outlet bandwidth in the campus network, and visually displays the outlet bandwidth on the terminal in a graph form. A simulation administrator logs in a plurality of heterogeneous network management systems, collects the total size of the outlet bandwidth of the campus network, intelligently optimizes the user flow of the campus network in real time, further optimizes the user internet experience, and makes full use of the campus network bandwidth, so that the campus network management system can adapt to the campus network environment of colleges and universities in a large bandwidth mode with fixed total amount of the outlet bandwidth. Through visual chart design, data on different devices are synchronously updated in real time, and real-time and historical outlet bandwidth flow, online user number and user flow optimization data are presented. Not only reduces the misoperation risk brought by frequent manual operation of an administrator, but also greatly improves the operation and maintenance efficiency, and simultaneously realizes the visualization effect of operation and maintenance management.
Fig. 2 is a flowchart illustrating an egress bandwidth traffic optimization method according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S140.
And S110, collecting the interface bandwidth of the exit bandwidth equipment.
In this embodiment, the interface bandwidth refers to relevant information of the egress traffic, including the egress traffic rate and other contents. The egress bandwidth devices include egress bandwidth devices of respective operators.
Specifically, calling a Selenium component realizes that a simulation administrator logs in the campus network outlet bandwidth load balancing equipment and obtains outlet flow information.
And S120, dynamically adjusting the user flow according to the interface bandwidth.
In this embodiment, the user traffic refers to relevant information of the egress bandwidth, and includes a bandwidth threshold and a real-time bandwidth value after user optimization.
In an embodiment, referring to fig. 3, the step S120 may include steps S121 to S122.
And S121, adjusting the user bandwidth threshold value by adopting a real-time flow optimization algorithm according to the interface bandwidth so as to obtain a target bandwidth threshold value.
In this embodiment, the target bandwidth threshold refers to a user bandwidth threshold obtained by real-time adjustment according to the device interface bandwidth.
In this embodiment, the real-time flow optimization algorithm is Uc ═ Max [ Umin, Min [ Uc + sign (B95% -Bc) × Step, Umax ] ]; wherein, Uc is the current user bandwidth value; b is the maximum value of the exit bandwidth, which is set to 1000Mbps in this example; bc is the current export bandwidth value; sign (x) is a mathematical sign function whose function is to take a certain number of signs (positive or negative): when x >0, sign (x) 1; when x is 0, sign (x) is 0; when x <0, sign (x) is-1; step optimizes the stepping granularity for the user flow, and the example is set to be 1 Mbps; umin is the minimum value of user bandwidth, and is set to be 4Mbps in the example; umax is the maximum value of the user bandwidth, and is set to 200Mbps in the example; min () is a mathematical function, taking the minimum value; max () is a mathematical function, taking the maximum value.
In an embodiment, referring to fig. 4, the step S121 may include steps S1211 to S1214.
S1211, setting an initial user bandwidth threshold, a user bandwidth value and an exit bandwidth value according to the using condition of the exit bandwidth flow of the campus network.
In this embodiment, the initial user bandwidth threshold refers to an initial value of the user bandwidth threshold, and the user bandwidth value refers to a bandwidth value of a traffic used by a user; the egress bandwidth value refers to a numerical value of the egress bandwidth of the device.
Specifically, according to the usage of the outlet bandwidth flow of the campus network, the initial user bandwidth threshold is set to [4,200], wherein the minimum value Umin of the user bandwidth is set to 4Mbps, the maximum value Umax of the user bandwidth is set to 200Mbps, the value Uc of the user bandwidth is initially set to Umax, and the value B of the outlet bandwidth is set to 10000 Mbps.
And S1212, determining a difference value between the interface bandwidth and the egress bandwidth value.
In this embodiment, the device interface bandwidth refers to the current egress traffic; comparing the current outlet flow Bc with the outlet bandwidth value B, when the current outlet flow is greater than 95% of the outlet bandwidth value, B95% -Bc <0, and sign (B95% -Bc) is negative; and when the current outlet flow is less than 95% of the outlet bandwidth value, sign (B x 95% -Bc) >0 and sign (B x 95% -Bc) is positive.
And S1213, processing the user bandwidth value according to the step granularity according to the difference value to obtain a processing result.
In this embodiment, the processing result refers to increasing the fire reduction according to the step granularity for the user bandwidth value according to the difference.
And S1214, adjusting the initial user bandwidth threshold value according to the processing result to obtain the target bandwidth threshold value.
The initial user bandwidth threshold is [4,200], and the adjusted processing result needs to be compared with the maximum value Umax of the initial user bandwidth threshold, and the minimum value of the two is taken. And comparing the compared minimum value with the minimum value Umin of the initial user bandwidth threshold value, and taking the maximum value of the minimum value and the initial user bandwidth threshold value to obtain a reasonable value for optimizing the real-time flow of the user so as to determine the target bandwidth threshold value.
In this embodiment, the device interface traffic is periodically collected according to the collection interval time setting value being 30 seconds, so as to adjust the user bandwidth threshold according to the real-time traffic optimization algorithm.
And S122, simulating to log in the traffic optimization equipment and modifying a user bandwidth threshold corresponding to the traffic optimization equipment.
Specifically, calling a Selenium component to realize that a simulation administrator logs in the traffic optimization equipment and modifies a user bandwidth threshold corresponding to the traffic optimization equipment according to a real-time traffic optimization algorithm.
In this embodiment, the traffic optimization device refers to a device for performing egress bandwidth traffic optimization.
In an embodiment, referring to fig. 5, the step S122 may include steps S1221 to S1226.
And S1221, capturing packets, analyzing the bandwidth value of each operator interface and the operation of modifying the corresponding user bandwidth threshold value by the login flow optimization equipment, and recording the corresponding element ID.
In the present embodiment, the element ID is an ID of the modified traffic optimizing device or the like.
And S1222, opening a browser login page.
In this embodiment, a Chrome browser of the Selenium module is called to open a browser login page.
And S1223, logging in an outlet bandwidth device and a flow optimization device.
Specifically, the egress bandwidth device refers to a device corresponding to the acquisition bandwidth, and includes devices of various operators. The server simulates an administrator to input a user name and a password to log in the outlet bandwidth equipment and the flow optimization equipment. The identity authentication of an administrator is completed by butting the enterprise WeChat identity authentication interface, different terminal types are self-adapted by butting the enterprise WeChat identity authentication interface with the enterprise WeChat, and the administrator can visually check the current or historical bandwidth and the online user data.
And S1224, acquiring interface bandwidth values of each operator, and performing cumulative overlapping to form a current export bandwidth value.
In this embodiment, the current egress bandwidth value is an accumulated value of the bandwidth values of the interfaces of the respective operators.
And S1225, logging in the flow optimization equipment and modifying the user bandwidth of the flow optimization equipment according to the processing result.
In this embodiment, the administrator click operation is simulated, interface bandwidth values of each operator are taken out, and accumulated and superimposed to form a current export bandwidth value; and simultaneously logging in a flow optimization device, and modifying the user bandwidth by using a real-time flow optimization algorithm.
And S1226, outputting the current export bandwidth value and the user bandwidth of the traffic optimization equipment, and writing the current export bandwidth value and the user bandwidth of the traffic optimization equipment into a database.
And S130, collecting the number of the internet users.
In this embodiment, the number of internet users refers to the number of users who are using traffic.
Specifically, calling a Selenium component realizes simulating an administrator to log in an authentication system and acquiring the number of users who surf the internet.
In an embodiment, referring to fig. 6, the step S130 may include steps S131 to S135.
S131, capturing and analyzing the operation of acquiring the number of the internet users by the administrator logging in the authentication system by using a developer tool of the browser, and recording corresponding element IDs;
in this embodiment, the element ID is an ID of an authentication system that acquires the number of internet access users, or the like.
And S132, opening a browser login page.
In this embodiment, a Chrome browser driver of the Selenium module is called, and a browser login page is automatically opened.
And S133, logging in a user internet authentication system.
In this embodiment, the simulation administrator inputs a user name and a password, and logs in the user internet authentication system; the identity authentication of an administrator is completed by butting the enterprise WeChat identity authentication interface, different terminal types are self-adapted by butting the enterprise WeChat identity authentication interface with the enterprise WeChat, and the administrator can visually check the current or historical bandwidth and the online user data.
And S134, acquiring the number of online users in the online authentication system.
In this embodiment, the number of online users refers to the number of online users of the network.
And simulating the clicking operation of an administrator, and taking out the number of online users in the online authentication system.
And S135, outputting the current number of the online users, and writing the current number of the online users into a database to obtain the number of the online users.
A simulation administrator logs in a plurality of heterogeneous network management systems, the total size of the outlet bandwidth of the campus network is collected, the user flow of the campus network is intelligently optimized in real time, the user internet experience is further optimized, the campus network bandwidth is more fully utilized, and the campus network management system can adapt to the campus network environment of colleges and universities in a large bandwidth mode with fixed total amount of the outlet bandwidth.
And S140, displaying the interface bandwidth, the user traffic and the number of the internet users in a graphic display mode.
In this embodiment, the interface bandwidth, the user traffic, and the number of online users are shown using Synchronized charts chart type of the Highcharts plug-in.
And writing the outlet bandwidth, the user bandwidth threshold value, the number of online users and the like into a database, and storing the intelligent flow control record. The Synchronized charts chart type of the Highcharts plug-in is used, outlet bandwidth, the number of network users and user flow control optimization data are displayed in real time in a graph form through self-built application of mobile end enterprise WeChat or a computer end webpage, and the visualization effect is achieved; through visual chart design, data on different devices are synchronously updated in real time, and real-time and historical outlet bandwidth flow, online user number and user flow optimization data are presented. Not only reduces the misoperation risk brought by frequent manual operation of an administrator, but also greatly improves the operation and maintenance efficiency, and simultaneously realizes the visualization effect of operation and maintenance management.
Parameters such as acquisition interval time, step granularity and the like in the real-time traffic optimization algorithm can be properly adjusted according to the fine requirements of user network management. When the graph is visually displayed, the graphic display mode can adopt other graphic displays, such as a bar chart, a pie chart, a bubble chart, a combination chart, a real-time dynamic chart and the like.
The method comprises the steps that a network manager is simulated to log in a plurality of heterogeneous network management systems, user-based real-time intelligent flow optimization is achieved for a campus network outlet with a fixed bandwidth total amount, meanwhile, identity authentication of the manager is completed through a butt joint enterprise WeChat identity authentication interface, and the manager can check the total bandwidth of the current outlet and the bandwidth condition of each user in real time through different types of terminals.
According to the method for optimizing the outlet bandwidth flow, a simulation network manager logs in a plurality of heterogeneous network management systems, after the interface bandwidth of the equipment is collected, the real-time flow optimization algorithm is adopted for optimizing the user flow, the number of online users is collected, the relevant content is displayed by using graphs, the plurality of heterogeneous network systems can be managed simultaneously, the operation of the simulation manager is adopted, the automatic flow optimization is realized, the bandwidth can be fully utilized, the user experience is good, and the operation and maintenance management work is not prone to errors.
Fig. 7 is a schematic block diagram of an egress bandwidth traffic optimization apparatus 300 according to an embodiment of the present invention. As shown in fig. 7, the present invention further provides an egress bandwidth traffic optimization apparatus 300 corresponding to the above egress bandwidth traffic optimization method. The egress bandwidth traffic optimization apparatus 300 includes a unit for performing the above egress bandwidth traffic optimization method, and the apparatus may be configured in a server. Specifically, referring to fig. 7, the egress bandwidth traffic optimization apparatus 300 includes a bandwidth collection unit 301, a traffic adjustment unit 302, a quantity collection unit 303, and a graph presentation unit 304.
A bandwidth collecting unit 301, configured to collect an interface bandwidth of an egress bandwidth device; a traffic adjusting unit 302, configured to dynamically adjust user traffic according to the interface bandwidth; a number acquisition unit 303, configured to acquire the number of internet users; and a graphic display unit 304, configured to display the interface bandwidth, the user traffic, and the number of the internet users in a graphic display manner.
In an embodiment, as shown in fig. 8, the traffic adjusting unit 302 comprises a threshold determining subunit 3021 and a device optimizing subunit 3022.
A threshold determination subunit 3021, configured to adjust a user bandwidth threshold by using a real-time traffic optimization algorithm according to the interface bandwidth to obtain a target bandwidth threshold; the device optimization subunit 3022 is configured to simulate logging in a traffic optimization device and modify a user bandwidth threshold corresponding to the traffic optimization device.
In an embodiment, as shown in fig. 9, the threshold determining subunit 3021 includes a setting module 30211, a difference determining module 30212, a bandwidth value processing module 30213, and an adjusting module 30214.
A setting module 30211, configured to set an initial user bandwidth threshold, a user bandwidth value, and an egress bandwidth value according to a usage situation of egress bandwidth traffic of a campus network; a difference determining module 30212, configured to determine a difference between the interface bandwidth and the egress bandwidth value; a bandwidth value processing module 30213, configured to process the user bandwidth value according to the step granularity according to the difference value to obtain a processing result; an adjusting module 30214, configured to adjust the initial user bandwidth threshold according to the processing result, so as to obtain a target bandwidth threshold.
In an embodiment, as shown in fig. 10, the device optimization subunit 3022 includes a first analysis module 30221, a first open module 30222, a first login module 30223, a bandwidth value acquisition module 30224, a bandwidth modification module 30225, and a first output module 30226.
A first analysis module 30221, configured to grab a packet, analyze an operation of modifying a corresponding user bandwidth threshold by each operator interface bandwidth value and login traffic optimization device, and record a corresponding element ID; a first opening module 30222, configured to open a browser login page; a first login module 30223, configured to log in an egress bandwidth device and a traffic optimization device; a bandwidth value obtaining module 30224, configured to obtain interface bandwidth values of each operator, perform cumulative overlapping, and form a current export bandwidth value; a bandwidth modification module 30225, configured to log in the traffic optimization device and modify a user bandwidth of the traffic optimization device according to a processing result; a first output module 30226, configured to output the current egress bandwidth value and the user bandwidth of the traffic optimization device, and write the current egress bandwidth value and the user bandwidth of the traffic optimization device into the database.
In an embodiment, the first open module 30222 is configured to call a Chrome browser of the Selenium module to open a browser login page.
In an embodiment, as shown in fig. 11, the number acquisition unit 303 includes a second analysis subunit 3031, a second opening subunit 3032, a second login subunit 3033, a user number acquisition subunit 3034, and a second output subunit 3035.
A second analysis subunit 3031, configured to use a developer tool of the browser to perform packet capturing and analysis on the operation of the administrator logging in the authentication system to obtain the number of the internet users, and record a corresponding element ID; a second opening subunit 3032, configured to open a browser login page; a second login subunit 3033, configured to log in the user internet authentication system; a user number obtaining subunit 3034, configured to obtain the number of online users in the internet access authentication system; the second output subunit 3035 is configured to output the current number of online users, and write the current number of online users into the database to obtain the number of online users.
In an embodiment, the graphic presentation unit 304 is configured to present the interface bandwidth, the user traffic, and the number of users accessing the internet by using a Synchronized charts chart type of a Highcharts plug-in.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the egress bandwidth traffic optimization apparatus 300 and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The egress bandwidth traffic optimization apparatus 300 may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 12, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a method of egress bandwidth traffic optimization.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be caused to perform an outlet bandwidth traffic optimization method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 12 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
acquiring interface bandwidth of an outlet bandwidth device; dynamically adjusting the user flow according to the interface bandwidth; collecting the number of internet users; and displaying the interface bandwidth, the user flow and the number of the internet users in a graphic display mode.
In an embodiment, when implementing the step of dynamically adjusting the user traffic according to the interface bandwidth, the processor 502 specifically implements the following steps:
adjusting a user bandwidth threshold value by adopting a real-time flow optimization algorithm according to the interface bandwidth to obtain a target bandwidth threshold value; and simulating to log in the traffic optimization equipment and modifying a user bandwidth threshold corresponding to the traffic optimization equipment.
In an embodiment, when implementing the step of adjusting the user bandwidth threshold by using the real-time traffic optimization algorithm according to the interface bandwidth to obtain the target bandwidth threshold, the processor 502 specifically implements the following steps:
setting an initial user bandwidth threshold value, a user bandwidth value and an exit bandwidth value according to the using condition of the exit bandwidth flow of the campus network; determining a difference between the interface bandwidth and the egress bandwidth value; processing the user bandwidth value according to the step granularity according to the difference value to obtain a processing result; and adjusting the initial user bandwidth threshold according to the processing result to obtain a target bandwidth threshold.
In an embodiment, when implementing the steps of simulating to log in the traffic optimization device and modifying the user bandwidth threshold corresponding to the traffic optimization device, the processor 502 specifically implements the following steps:
capturing packets, analyzing the bandwidth values of various operator interfaces and the operation of modifying corresponding user bandwidth thresholds by logging in a traffic optimization device, and recording corresponding element IDs; opening a browser login page; logging in an outlet bandwidth device and a flow optimization device; acquiring interface bandwidth values of each operator and performing cumulative superposition to form a current export bandwidth value; logging in the flow optimization equipment and modifying the user bandwidth of the flow optimization equipment according to the processing result; and outputting the current outlet bandwidth value and the user bandwidth of the flow optimization equipment, and writing the current outlet bandwidth value and the user bandwidth of the flow optimization equipment into a database.
In an embodiment, when the processor 502 implements the step of opening the browser landing page, the following steps are specifically implemented:
and calling a Chrome browser of the Selenium module to open a browser login page.
In an embodiment, when the processor 502 implements the step of collecting the number of internet users, the following steps are specifically implemented:
using a developer tool of a browser to capture and analyze the operation of acquiring the number of the internet users by the administrator login authentication system, and recording corresponding element IDs; opening a browser login page; logging in a user internet authentication system; acquiring the number of online users in an online authentication system; and outputting the current number of the online users, and writing the current number of the online users into a database to obtain the number of the online users.
In an embodiment, when the step of displaying the interface bandwidth, the user traffic, and the number of the internet users in the graphical display manner is implemented, the processor 502 specifically implements the following steps:
and displaying the interface bandwidth, the user flow and the number of the online users by using a Synchronized charts chart type of the Highcharts plug-in.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
acquiring interface bandwidth of an outlet bandwidth device; dynamically adjusting the user flow according to the interface bandwidth; collecting the number of internet users; and displaying the interface bandwidth, the user flow and the number of the internet users in a graphic display mode.
In an embodiment, when the processor executes the computer program to implement the step of dynamically adjusting the user traffic according to the interface bandwidth, the following steps are specifically implemented:
adjusting a user bandwidth threshold value by adopting a real-time flow optimization algorithm according to the interface bandwidth to obtain a target bandwidth threshold value; and simulating to log in the traffic optimization equipment and modifying a user bandwidth threshold corresponding to the traffic optimization equipment.
In an embodiment, when the processor executes the computer program to implement the step of adjusting the user bandwidth threshold by using the real-time traffic optimization algorithm according to the interface bandwidth to obtain the target bandwidth threshold, the following steps are specifically implemented:
setting an initial user bandwidth threshold value, a user bandwidth value and an exit bandwidth value according to the using condition of the exit bandwidth flow of the campus network; determining a difference between the interface bandwidth and the egress bandwidth value; processing the user bandwidth value according to the step granularity according to the difference value to obtain a processing result; and adjusting the initial user bandwidth threshold according to the processing result to obtain a target bandwidth threshold.
In an embodiment, when the processor executes the computer program to implement the steps of simulating to log in the traffic optimization device and modifying the user bandwidth threshold corresponding to the traffic optimization device, the following steps are specifically implemented:
capturing packets, analyzing the bandwidth values of various operator interfaces and the operation of modifying corresponding user bandwidth thresholds by logging in a traffic optimization device, and recording corresponding element IDs; opening a browser login page; logging in an outlet bandwidth device and a flow optimization device; acquiring interface bandwidth values of each operator and performing cumulative superposition to form a current export bandwidth value; logging in the flow optimization equipment and modifying the user bandwidth of the flow optimization equipment according to the processing result; and outputting the current outlet bandwidth value and the user bandwidth of the flow optimization equipment, and writing the current outlet bandwidth value and the user bandwidth of the flow optimization equipment into a database.
In an embodiment, when the processor executes the computer program to implement the step of opening the browser landing page, the following steps are specifically implemented:
and calling a Chrome browser of the Selenium module to open a browser login page.
In an embodiment, when the processor executes the computer program to realize the step of collecting the number of internet users, the following steps are specifically realized:
using a developer tool of a browser to capture and analyze the operation of acquiring the number of the internet users by the administrator login authentication system, and recording corresponding element IDs; opening a browser login page; logging in a user internet authentication system; acquiring the number of online users in an online authentication system; and outputting the current number of the online users, and writing the current number of the online users into a database to obtain the number of the online users.
In an embodiment, when the processor executes the computer program to realize the step of displaying the interface bandwidth, the user traffic and the number of the internet users in a graphical display manner, the following steps are specifically realized:
and displaying the interface bandwidth, the user flow and the number of the online users by using a Synchronized charts chart type of the Highcharts plug-in.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
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. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. 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, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The method for optimizing the egress bandwidth flow is characterized by comprising the following steps:
acquiring interface bandwidth of an outlet bandwidth device;
dynamically adjusting the user flow according to the interface bandwidth;
collecting the number of internet users;
and displaying the interface bandwidth, the user flow and the number of the internet users in a graphic display mode.
2. The egress bandwidth traffic optimization method according to claim 1, wherein the dynamically adjusting the user traffic according to the interface bandwidth comprises:
adjusting a user bandwidth threshold value by adopting a real-time flow optimization algorithm according to the interface bandwidth to obtain a target bandwidth threshold value;
and simulating to log in the traffic optimization equipment and modifying a user bandwidth threshold corresponding to the traffic optimization equipment.
3. The method of claim 2, wherein the adjusting the user bandwidth threshold according to the interface bandwidth by using a real-time traffic optimization algorithm to obtain a target bandwidth threshold comprises:
setting an initial user bandwidth threshold value, a user bandwidth value and an exit bandwidth value according to the using condition of the exit bandwidth flow of the campus network;
determining a difference between the interface bandwidth and the egress bandwidth value;
processing the user bandwidth value according to the step granularity according to the difference value to obtain a processing result;
and adjusting the initial user bandwidth threshold according to the processing result to obtain a target bandwidth threshold.
4. The method of claim 2, wherein simulating to log in to the traffic optimization device and modifying the user bandwidth threshold corresponding to the traffic optimization device comprises:
capturing packets, analyzing the bandwidth values of various operator interfaces and the operation of modifying corresponding user bandwidth thresholds by logging in a traffic optimization device, and recording corresponding element IDs;
opening a browser login page;
logging in an outlet bandwidth device and a flow optimization device;
acquiring interface bandwidth values of each operator and performing cumulative superposition to form a current export bandwidth value;
logging in the flow optimization equipment and modifying the user bandwidth of the flow optimization equipment according to the processing result;
and outputting the current outlet bandwidth value and the user bandwidth of the flow optimization equipment, and writing the current outlet bandwidth value and the user bandwidth of the flow optimization equipment into a database.
5. The egress bandwidth traffic optimization method according to claim 4, wherein said opening a browser landing page comprises:
and calling a Chrome browser of the Selenium module to open a browser login page.
6. The method for optimizing egress bandwidth traffic according to claim 1, wherein the collecting the number of internet users comprises:
using a developer tool of a browser to capture and analyze the operation of acquiring the number of the internet users by the administrator login authentication system, and recording corresponding element IDs;
opening a browser login page;
logging in a user internet authentication system;
acquiring the number of online users in an online authentication system;
and outputting the current number of the online users, and writing the current number of the online users into a database to obtain the number of the online users.
7. The method for optimizing outlet bandwidth and traffic according to claim 1, wherein the displaying the interface bandwidth, the user traffic, and the number of users accessing the internet in a graphical display manner includes:
and displaying the interface bandwidth, the user flow and the number of the online users by using a Synchronized charts chart type of the Highcharts plug-in.
8. An egress bandwidth traffic optimization apparatus, comprising:
the bandwidth acquisition unit is used for acquiring the interface bandwidth of the outlet bandwidth equipment;
the flow adjusting unit is used for dynamically adjusting the user flow according to the interface bandwidth;
the quantity acquisition unit is used for acquiring the quantity of the internet users;
and the graphic display unit is used for displaying the interface bandwidth, the user traffic and the number of the internet users in a graphic display mode.
9. A computer device, characterized in that the computer device comprises a memory, on which a computer program is stored, and a processor, which when executing the computer program implements the method according to any of claims 1 to 7.
10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
CN202110773017.0A 2021-07-08 2021-07-08 Outlet bandwidth flow optimization method and device, computer equipment and storage medium Active CN113489624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110773017.0A CN113489624B (en) 2021-07-08 2021-07-08 Outlet bandwidth flow optimization method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110773017.0A CN113489624B (en) 2021-07-08 2021-07-08 Outlet bandwidth flow optimization method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113489624A true CN113489624A (en) 2021-10-08
CN113489624B CN113489624B (en) 2022-04-15

Family

ID=77937571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110773017.0A Active CN113489624B (en) 2021-07-08 2021-07-08 Outlet bandwidth flow optimization method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113489624B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604124A (en) * 2022-12-15 2023-01-13 南京翼辉爱智物联技术有限公司(Cn) Bandwidth control method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796348A (en) * 2015-04-03 2015-07-22 华为技术有限公司 IDC (internet data center) network export flow balancing and adjusting method, equipment and system based on SDN (software-defined networking)
CN105357083A (en) * 2015-12-15 2016-02-24 福建星网锐捷网络有限公司 Gateway flow adjusting method and system based on uncertain bandwidth detection
CN106254261A (en) * 2016-08-09 2016-12-21 杭州华三通信技术有限公司 The method and apparatus of flow detection
CN107623644A (en) * 2017-09-30 2018-01-23 新华三技术有限公司 A kind of bandwidth speed limiting method, apparatus and equipment
CN111669785A (en) * 2020-06-17 2020-09-15 三明学院 Mobile data distribution method of heterogeneous wireless network based on campus network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796348A (en) * 2015-04-03 2015-07-22 华为技术有限公司 IDC (internet data center) network export flow balancing and adjusting method, equipment and system based on SDN (software-defined networking)
CN105357083A (en) * 2015-12-15 2016-02-24 福建星网锐捷网络有限公司 Gateway flow adjusting method and system based on uncertain bandwidth detection
CN106254261A (en) * 2016-08-09 2016-12-21 杭州华三通信技术有限公司 The method and apparatus of flow detection
CN107623644A (en) * 2017-09-30 2018-01-23 新华三技术有限公司 A kind of bandwidth speed limiting method, apparatus and equipment
CN111669785A (en) * 2020-06-17 2020-09-15 三明学院 Mobile data distribution method of heterogeneous wireless network based on campus network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115604124A (en) * 2022-12-15 2023-01-13 南京翼辉爱智物联技术有限公司(Cn) Bandwidth control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113489624B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN105281981B (en) The data traffic monitoring method and device of network service
CN103379002B (en) The adaptive monitoring of telecommunication network
CN108399114A (en) A kind of system performance testing method, apparatus and storage medium
US20030229695A1 (en) System for use in determining network operational characteristics
CN108241799B (en) Cross-system access method, system, device and computer readable storage medium
CN110493146B (en) Edge intelligent network sensing platform and control method
CN113489624B (en) Outlet bandwidth flow optimization method and device, computer equipment and storage medium
US20170272379A1 (en) Visualization of computer resource quotas
CN106559265A (en) A kind of cloud service provider ability integration appraisal system and examining method
CN113141410B (en) Dynamically adjusted QPS control method, system, device and storage medium
CN104683998A (en) Method and device for processing business quality
CN109495291A (en) Call abnormal localization method, device and server
CN110896357A (en) Flow prediction method, device and computer readable storage medium
CN107623644A (en) A kind of bandwidth speed limiting method, apparatus and equipment
US10592359B2 (en) System and a method for providing on-demand resiliency services
CN109474700A (en) Cut-in method, storage medium, client and the memory node of iSCSI client
CN106803815B (en) Flow control method and device
WO2020093502A1 (en) Nominal bandwidth adjusting method and device
CN114500288A (en) Bandwidth adjusting method and device and storage medium
CN112988892A (en) Distributed system hot spot data management method
WO2023147731A1 (en) Abnormal data processing method and apparatus, and electronic device
CN103780446A (en) Method and system for monitoring network bandwidth resource in real time
CN104660436B (en) service level management method and system
CN115086194A (en) Data transmission method for cloud application, computing equipment and computer storage medium
CN109873708A (en) A kind of assets portrait method clustered based on traffic characteristic and kmeans

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
GR01 Patent grant
GR01 Patent grant