CN112187512A - Port automatic expansion method, device and equipment based on flow monitoring - Google Patents

Port automatic expansion method, device and equipment based on flow monitoring Download PDF

Info

Publication number
CN112187512A
CN112187512A CN202010889089.7A CN202010889089A CN112187512A CN 112187512 A CN112187512 A CN 112187512A CN 202010889089 A CN202010889089 A CN 202010889089A CN 112187512 A CN112187512 A CN 112187512A
Authority
CN
China
Prior art keywords
flow
period
port
average value
capacity expansion
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
CN202010889089.7A
Other languages
Chinese (zh)
Other versions
CN112187512B (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.)
Zhongying Youchuang Information Technology Co Ltd
Original Assignee
Zhongying Youchuang Information 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 Zhongying Youchuang Information Technology Co Ltd filed Critical Zhongying Youchuang Information Technology Co Ltd
Priority to CN202010889089.7A priority Critical patent/CN112187512B/en
Publication of CN112187512A publication Critical patent/CN112187512A/en
Application granted granted Critical
Publication of CN112187512B publication Critical patent/CN112187512B/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
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • 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/14Network analysis or design
    • H04L41/147Network analysis or design for predicting network behaviour
    • 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
    • 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
    • H04L43/0894Packet rate

Abstract

The embodiment of the invention provides a port automatic capacity expansion method, a device and equipment based on flow monitoring. The method comprises the steps of acquiring the flow and the bandwidth of all ports of equipment at set time intervals through snmp; calculating the flow average value of the current period and the flow average value of the previous period, and predicting the flow average value predicted value of the next period; when the flow in the existing period exceeds the bandwidth threshold, generating a capacity expansion command or a capacity expansion suggestion; and receiving a capacity expansion command and expanding the capacity of the equipment port. In this way, the port flow can be collected once at intervals according to the snmp, the collection period is short, the port flow condition can be reflected more timely and accurately, an analysis report is generated through analysis of flow collection results, the service condition of the equipment port is displayed more intelligently and visually, a user can master the service condition of the network in time, the network is optimized, and the industry satisfaction degree is improved.

Description

Port automatic expansion method, device and equipment based on flow monitoring
Technical Field
Embodiments of the present invention generally relate to the field of traffic monitoring, and more particularly, to a method, an apparatus, and a device for port auto-expansion based on traffic monitoring.
Background
In real life, the bandwidth of the network plays a decisive role in the experience of the user on the internet, the mode of monitoring the flow in the current network is slow, the flow of the port of the acquisition equipment with smaller granularity can not be flexibly analyzed, effective big data analysis can be carried out, and a detailed report can not be formed by planning, so that the user can not quickly, intelligently and visually see the service condition of the network.
When a user surfs the internet and finds that the network speed is slow, serious dissatisfaction can be caused to the network quality of an operator, but the client cannot monitor the flow conditions of all network circuits in real time, the shortage of the user bandwidth can be timely and accurately found, capacity expansion suggestion is carried out on the user bandwidth, the user perception is influenced, the loss of a client group can be caused, and the industry satisfaction degree can be reduced.
Disclosure of Invention
According to the embodiment of the invention, a port automatic capacity expansion scheme based on flow monitoring is provided.
In a first aspect of the invention, a method for port automatic capacity expansion based on traffic monitoring is provided. The method comprises the following steps:
acquiring the flow and bandwidth of all ports of equipment at set time intervals through the snmp;
calculating the flow average value of the current period and the flow average value of the previous period, and predicting the flow average value predicted value of the next period;
when the flow in the existing period exceeds the bandwidth threshold, generating a capacity expansion command or a capacity expansion suggestion;
and receiving a capacity expansion command and expanding the capacity of the equipment port.
Further, the calculating the flow average value of the current period and the flow average value of the previous period includes:
calculating the average flow value of the current period comprises:
selecting the granularity of a time period, and counting flow data points in the time period;
selecting all or part of the flow data points to average to obtain a flow average value in the current time period;
calculating the average value of the flow of the last period, comprising:
selecting the granularity of a time period, and counting flow data points in the time period;
and selecting all or part of the flow data points to average to obtain a flow average value in the last time period.
Further, the predicting a predicted value of the flow mean value of the next period includes:
Figure BDA0002656383520000021
wherein E is3The flow mean value predicted value of the next period is obtained; e2The flow average value of the current period is obtained; e1The average value of the flow in the last period.
Further, the bandwidth threshold is used to determine whether capacity expansion is needed, where the bandwidth threshold is used to determine whether capacity expansion is needed
If the flow in the period exceeds the bandwidth threshold, the current equipment port needs to be expanded;
if the flow in the period does not exceed the bandwidth threshold, the capacity expansion of the current equipment port is not needed.
Further, the expanding the capacity of the device port includes:
searching version information of the equipment according to the model of the network element equipment;
inquiring the bandwidth of the port capable of expanding capacity through the corresponding inquiry instruction;
identifying a port to be expanded according to the snmp;
according to the target expansion capacity, expanding the capacity of the port to be expanded;
and updating the expanded bandwidth according to the description specification of the port.
In a second aspect of the invention, a port automatic capacity expansion device based on flow monitoring is provided. The device includes:
the acquisition module acquires the flow and the bandwidth of all ports of the equipment at set time intervals through the snmp;
the calculation module is used for calculating the flow average value of the current period and the flow average value of the previous period and predicting the flow average value predicted value of the next period;
the generating module is used for generating a capacity expansion command or a capacity expansion suggestion when the flow exceeds a bandwidth threshold value in a period;
and the capacity expansion module is used for receiving a capacity expansion command and expanding the capacity of the equipment port.
Further, the calculation module comprises a first calculation module, a second calculation module and a prediction module;
the first calculation module is used for selecting the granularity of a time period and counting flow data points in the time period; selecting all or part of the flow data points to average to obtain a flow average value in the current time period;
the second calculation module is used for selecting the granularity of a time period and counting flow data points in the time period; and selecting all or part of the flow data points to average to obtain a flow average value in the last time period.
The prediction module is used for predicting a flow mean prediction value of the next period, and comprises:
Figure BDA0002656383520000031
wherein E is3The flow mean value predicted value of the next period is obtained; e2The flow average value of the current period is obtained; e1The average value of the flow in the last period.
Further, the capacity expansion module includes:
the searching module is used for searching the version information of the equipment according to the model of the network element equipment;
the query module is used for querying the bandwidth of the output port capable of expanding capacity through the corresponding query instruction;
the identification module is used for identifying a port to be expanded according to the snmp;
the capacity expansion module is used for expanding the capacity of the port to be expanded according to the target capacity expansion;
and the updating module is used for updating the expanded bandwidth according to the description specification of the port.
In a third aspect of the invention, an electronic device is provided. The electronic device includes: a memory having a computer program stored thereon and a processor implementing the method as described above when executing the program.
In a fourth aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the method as according to the first aspect of the invention.
It should be understood that the statements herein reciting aspects are not intended to limit the critical or essential features of any embodiment of the invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
According to the invention, the port flow is collected once at intervals by the snmp, the collection period is short, the port flow condition can be reflected more timely and accurately, and the analysis report is generated by analyzing the flow collection result, so that the service condition of the equipment port is displayed more intelligently and intuitively, a user can master the service condition of the network in time, the network is optimized, and the industry satisfaction is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present invention will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like or similar reference characters designate like or similar elements, and wherein:
FIG. 1 shows a flow diagram of a method for port auto-provisioning based on traffic monitoring, according to an embodiment of the invention;
FIG. 2 shows a block diagram of a port auto-capacity device based on traffic monitoring according to an embodiment of the invention;
FIG. 3 illustrates a block diagram of an exemplary electronic device capable of implementing embodiments of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
According to the invention, the port flow is collected once at intervals by the snmp, the collection period is short, the port flow condition can be reflected more timely and accurately, and the analysis report is generated by analyzing the flow collection result, so that the service condition of the equipment port is displayed more intelligently and intuitively, a user can master the service condition of the network in time, the network is optimized, and the industry satisfaction is improved.
Fig. 1 shows a flowchart of a port auto-capacity expansion method based on traffic monitoring according to an embodiment of the present invention.
The method comprises the following steps:
s101, acquiring the traffic and the bandwidth of all ports of the equipment at set time intervals through the snmp.
The snmp is a standard protocol specifically designed for managing network nodes (servers, workstations, routers, switches, HUBS, etc.) in an IP network, which is an application layer protocol. SNMP enables a network administrator to manage network performance, discover and solve network problems, and plan network growth. The network management system receives the random message (and the event report) through the SNMP to know that the network has problems.
In the embodiment of the present invention, the time interval may be set according to a situation, and traffic and bandwidth data are acquired from a port of a device at intervals of the time interval. For example, the time interval is set to 5 minutes, that is, the traffic and bandwidth of the current device are obtained from all ports of the device once every five minutes by snmp.
The set time interval can be shorter, so the acquisition period is short, and the flow condition of the port can be reflected more timely and accurately.
S102, calculating the flow average value of the current period and the flow average value of the previous period, and predicting the flow average value predicted value of the next period.
S102-1, calculating the flow average value of the current period comprises:
selecting the granularity of a time period, and counting flow data points in the time period;
as an embodiment of the present invention, a time period is selected, and the granularity of the time period may be an hour granularity, a day granularity, a week granularity, or an arbitrary time interval granularity; in a selected time period, the flow rate acquisition is performed according to the set time interval, for example, the time period is selected to be 1 hour, and the set time interval is 5 minutes, so that 12 time intervals can be acquired in one time period, wherein each acquisition further includes an inflow rate and an outflow rate, so that 24 flow rate data points can be acquired in 1 hour. Therefore, the data desired by the user can be acquired more flexibly.
And selecting all or part of the flow data points to average to obtain a flow average value in the current time period.
In the above embodiment, the first 50% of the flow data is selected from the flows in the selection time period from large to small, that is, the 24 flow data points are sorted in the order of the flows from large to small, and a part of the data points with the largest flow may be taken as the data base, for example, the 12 data points with the largest flow are taken as the data base; or taking all the data points as a data base to perform average data calculation, so as to calculate the flow average data in the current selection period.
S102-2, calculating a flow average value of a last period, comprising:
selecting the granularity of a time period, and counting flow data points in the time period;
the granularity of the time period is the same as the granularity of the selected time period. For example, in the above embodiment, the time period is also selected to be 1 hour, and the set time interval is 5 minutes, so that 12 time intervals can be collected in one time period, where each collection further includes an inflow rate and an outflow rate, so that 24 flow data points can be collected in 1 hour.
And selecting all or part of the flow data points to average to obtain a flow average value in the last time period.
In the above embodiment, from the flow rate in the previous period, the first 50% flow rate data is selected from large to small, that is, the 24 flow rate data points are sorted in the order of the flow rate from large to small, and a part of the data points with the largest flow rate may be taken as a data base, for example, the 12 data points with the largest flow rate are taken as a data base; the average data calculation can also be performed by taking all the data points as a data base, so as to calculate the flow average data in the last period. And calculating the average flow data in the previous period of the current selection period.
S102-3, predicting the flow mean value predicted value of the next period, which specifically comprises the following steps:
firstly, calculating the increase and decrease range, wherein the increase and decrease range Q is as follows:
Figure BDA0002656383520000071
the predicted value of the flow average value in the next period is the product of the flow average value in the current period and the increase and decrease amplitude Q, namely:
Figure BDA0002656383520000072
wherein E is3The flow mean value predicted value of the next period is obtained; e2The flow average value of the current period is obtained; e1The average value of the flow in the last period.
As an embodiment of the present invention, the average value E of the flow rate of the current period2Is 100M; average value of flow E of last period1Is 50 MB; the flow prediction value E of the next period can be calculated by formula (2)3Is 200M.
By the flow prediction method, the flow data in the future period can be predicted according to the flow data in the current period and the flow data in the historical period, and the prediction result is used as the basis for judging whether the capacity expansion is carried out.
S103, when the flow rate in the existing period exceeds the bandwidth threshold value, a capacity expansion command or a capacity expansion suggestion is generated.
In embodiments of the present invention, the user may set the bandwidth threshold, and in order not to affect the traffic input, the bandwidth threshold generally needs to be set slightly lower than the bandwidth value, for example, the bandwidth threshold is set to 95% or 90% of the bandwidth.
In the embodiment of the present invention, the user may also set a capacity expansion determination mechanism, for example, if one of the average traffic value of the current period, the average traffic value of the previous period, and the predicted traffic value of the next period exceeds the bandwidth threshold, it may be determined that a capacity expansion condition is reached, and a capacity expansion process is started. However, in this method, the capacity expansion is not needed originally, but the capacity expansion is performed only once when the bandwidth threshold is exceeded, which results in waste of resources. Therefore, in order to reduce the frequency of the occurrence of the situation, the judgment mechanism can be adjusted to judge that the capacity expansion condition is reached and start the capacity expansion process if two of the flow average value of the current period, the flow average value of the previous period and the flow predicted value of the next period exceed the bandwidth threshold; or if all of the flow average value of the current period, the flow average value of the previous period and the flow predicted value of the next period exceed the bandwidth threshold, judging that the capacity expansion condition is reached, and starting the capacity expansion process.
The start of the capacity expansion process may be in an active manner or in a passive manner. The active mode is to automatically generate a capacity expansion command if the capacity expansion condition is met, and execute the following step S104. The passive mode is to send a capacity expansion suggestion to the user if the above capacity expansion condition is reached, and execute the following step S104.
As an embodiment of the present invention, when the start of the capacity expansion process is performed in a passive manner, after the analysis, an analysis report is generated, which includes information about a time period selected by a user, a periodic traffic data selection condition, a traffic mean value of a previous period, a traffic mean value of a current period, a traffic predicted value of a next period, a port name, a port bandwidth, a bandwidth threshold, a device name, a city, and the like, and is sent to the user by a communication means, for example, sent to a user mailbox in a form of a mail with a specific format, or sent to a personal mobile phone in a form of a short message with a specific format, where the content header of the mail or the short message has a corresponding tag, such as a date and a circuit ID, when the user replies to the mail or the short message, a corresponding link is found according to the corresponding tag, and if yes is included in the content replied by, dilatation to XXXM ", then according to user's needs, directly carry on the dilatation, if send: 20200812, link a, mean 1, mean 2, mean 3, corresponding port name, port bandwidth, device name, city information to client mailbox, user reply mail: 20200812, if the link a is expanded to 100M, it means that it obtains the desire of the user to expand the capacity, and if it needs to expand the link port to 100M, it will be determined according to the content in the mail replied by the user: 20200812, Link A finds the corresponding device and port and then expands it to 100M.
In this embodiment, if the user selects to perform capacity expansion, the bandwidth value to be expanded is input, and capacity expansion is performed according to the bandwidth value newly input by the client, which is more flexible and convenient. And recommending the optimal bandwidth value for the user to select.
And S104, receiving a capacity expansion command and expanding the capacity of the equipment port.
No matter the start of the above-mentioned dilatation process can be active mode or passive mode, will receive the dilatation command, after receiving the dilatation command, start the dilatation process, as follows:
s104-1, according to the network element equipment model, searching the version information of the equipment. For example, the network element device is a Huacheng device, and version information of the device, for example, ME60V600R009C20SPC600, is queried through display version.
And S104-2, inquiring the bandwidth of the output port capable of expanding capacity through the corresponding inquiry instruction.
S104-3, identifying a port to be expanded according to the snmp; for example, a segment portindex number is acquired through snmp and corresponds to a specific port of the device; for example, the port corresponding to the portindex number 244 is porttdescr.
S104-4, expanding the capacity of the port to be expanded according to the target expansion capacity; the target expansion capacity may be an expansion capacity selected by a user, or may be calculated by calculating the target expansion capacity, and the target expansion capacity is generally larger than a flow value exceeding the bandwidth, or a flow value exceeding a bandwidth threshold.
And S104-5, updating the expanded bandwidth according to the description specification of the port.
Updating according to the original port description of the port and the expanded bandwidth to achieve the effect of the specification and tidiness of the port description of the whole network, so that a user can manage the device port later, for example, expanding the bandwidth to 100m, and then keeping up with-100 m after the original port description.
According to the embodiment of the invention, the port flow is collected once at intervals according to the snmp, the collection period is short, the port flow condition can be reflected more timely and accurately, and the analysis report is generated by analyzing the flow collection result, so that the service condition of the equipment port is displayed more intelligently and intuitively, a user can master the service condition of the network in time, the network is optimized, and the industry satisfaction is improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules illustrated are not necessarily required to practice the invention.
The above is a description of method embodiments, and the embodiments of the present invention are further described below by way of apparatus embodiments.
As shown in fig. 2, the apparatus 200 includes:
the acquiring module 210 acquires the traffic and bandwidth of all ports of the device at set time intervals through the snmp;
the calculating module 220 is configured to calculate a flow average value of the current period and a flow average value of the previous period, and predict a flow average value predicted value of the next period;
a generating module 230, configured to generate a capacity expansion command or a capacity expansion suggestion when the periodic internal flow exceeds a bandwidth threshold;
and the capacity expansion module 240 is configured to receive a capacity expansion command and expand the capacity of the device port.
The calculation module 220 includes: a first calculation module 221, a second calculation module 222, and a prediction module 223;
the first calculation module 221 is configured to select a granularity of a time period, and count flow data points in the time period; selecting all or part of the flow data points to average to obtain a flow average value in the current time period;
the second calculation module 222 is configured to select a granularity of a time period, and count flow data points in the time period; and selecting all or part of the flow data points to average to obtain a flow average value in the last time period.
The predicting module 223 is configured to predict a predicted value of the flow mean value in the next period, and includes:
Figure BDA0002656383520000111
wherein E is3The flow mean value predicted value of the next period is obtained; e2The flow average value of the current period is obtained; e1The average value of the flow in the last period.
The capacity expansion module 240 includes:
the searching module 241 is configured to search version information of the device according to the model of the network element device;
the query module 242 is configured to query, through a corresponding query instruction, a bandwidth that an output port can expand;
an identifying module 243, configured to identify a port to be expanded according to the snmp;
the capacity expansion module 244 is configured to expand the capacity of the port to be expanded according to a target expansion capacity;
the updating module 245 is configured to update the expanded bandwidth according to the description specification of the port.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the described module may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
As shown in fig. 3, the electronic device includes a Central Processing Unit (CPU) that can perform various appropriate actions and processes according to computer program instructions stored in a Read Only Memory (ROM) or computer program instructions loaded from a storage unit into a Random Access Memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The CPU, ROM, and RAM are connected to each other via a bus. An input/output (I/O) interface is also connected to the bus.
A plurality of components in an electronic device are connected to an I/O interface, including: an input unit such as a keyboard, a mouse, etc.; an output unit such as various types of displays, speakers, and the like; storage units such as magnetic disks, optical disks, and the like; and a communication unit such as a network card, modem, wireless communication transceiver, etc. The communication unit allows the electronic device to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processing unit executes the respective methods and processes described above, for example, methods S101 to S104. For example, in some embodiments, methods S101-S104 may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device via ROM and/or the communication unit. When the computer program is loaded into RAM and executed by the CPU, one or more of the steps of methods S101-S104 described above may be performed. Alternatively, in other embodiments, the CPU may be configured to perform methods S101-S104 by any other suitable means (e.g., by way of firmware).
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a load programmable logic device (CPLD), and the like.
Program code for implementing the methods of the present invention may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the invention. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A port automatic capacity expansion method based on flow monitoring is characterized by comprising the following steps:
acquiring the flow and bandwidth of all ports of equipment at set time intervals through the snmp;
calculating the flow average value of the current period and the flow average value of the previous period, and predicting the flow average value predicted value of the next period;
when the flow in the existing period exceeds the bandwidth threshold, generating a capacity expansion command or a capacity expansion suggestion;
and receiving a capacity expansion command and expanding the capacity of the equipment port.
2. The method of claim 1, wherein the calculating the flow average of the current period and the flow average of the previous period comprises:
calculating the average flow value of the current period comprises:
selecting the granularity of a time period, and counting flow data points in the time period;
selecting all or part of the flow data points to average to obtain a flow average value in the current time period;
calculating the average value of the flow of the last period, comprising:
selecting the granularity of a time period, and counting flow data points in the time period;
and selecting all or part of the flow data points to average to obtain a flow average value in the last time period.
3. The method of claim 1, wherein predicting the predicted flow mean value for the next cycle comprises:
Figure FDA0002656383510000011
wherein E is3The flow mean value predicted value of the next period is obtained; e2The flow average value of the current period is obtained; e1The average value of the flow in the last period.
4. The method of claim 1, wherein the bandwidth threshold is used to determine whether capacity expansion is required, and wherein the bandwidth threshold is used to determine whether capacity expansion is required
If the flow in the period exceeds the bandwidth threshold, the current equipment port needs to be expanded;
if the flow in the period does not exceed the bandwidth threshold, the capacity expansion of the current equipment port is not needed.
5. The method of claim 1, wherein the expanding the device port comprises:
searching version information of the equipment according to the model of the network element equipment;
inquiring the bandwidth of the port capable of expanding capacity through the corresponding inquiry instruction;
identifying a port to be expanded according to the snmp;
according to the target expansion capacity, expanding the capacity of the port to be expanded;
and updating the expanded bandwidth according to the description specification of the port.
6. A port automatic capacity expansion device based on flow monitoring is characterized by comprising:
the acquisition module acquires the flow and the bandwidth of all ports of the equipment at set time intervals through the snmp;
the calculation module is used for calculating the flow average value of the current period and the flow average value of the previous period and predicting the flow average value predicted value of the next period;
the generating module is used for generating a capacity expansion command or a capacity expansion suggestion when the flow exceeds a bandwidth threshold value in a period;
and the capacity expansion module is used for receiving a capacity expansion command and expanding the capacity of the equipment port.
7. The apparatus of claim 6, wherein the computation module comprises a first computation module, a second computation module, and a prediction module;
the first calculation module is used for selecting the granularity of a time period and counting flow data points in the time period; selecting all or part of the flow data points to average to obtain a flow average value in the current time period;
the second calculation module is used for selecting the granularity of a time period and counting flow data points in the time period; and selecting all or part of the flow data points to average to obtain a flow average value in the last time period.
The prediction module is used for predicting a flow mean prediction value of the next period, and comprises:
Figure FDA0002656383510000031
wherein E is3The flow mean value predicted value of the next period is obtained; e2The flow average value of the current period is obtained; e1The average value of the flow in the last period.
Wherein E is3The flow mean value predicted value of the next period is obtained; e2The flow average value of the current period is obtained; e1The average value of the flow in the last period.
8. The apparatus of claim 6, wherein the capacity expansion module comprises:
the searching module is used for searching the version information of the equipment according to the model of the network element equipment;
the query module is used for querying the bandwidth of the output port capable of expanding capacity through the corresponding query instruction;
the identification module is used for identifying a port to be expanded according to the snmp;
the capacity expansion module is used for expanding the capacity of the port to be expanded according to the target capacity expansion;
and the updating module is used for updating the expanded bandwidth according to the description specification of the port.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 5.
CN202010889089.7A 2020-08-28 2020-08-28 Port automatic expansion method, device and equipment based on flow monitoring Active CN112187512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010889089.7A CN112187512B (en) 2020-08-28 2020-08-28 Port automatic expansion method, device and equipment based on flow monitoring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010889089.7A CN112187512B (en) 2020-08-28 2020-08-28 Port automatic expansion method, device and equipment based on flow monitoring

Publications (2)

Publication Number Publication Date
CN112187512A true CN112187512A (en) 2021-01-05
CN112187512B CN112187512B (en) 2022-09-06

Family

ID=73924529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010889089.7A Active CN112187512B (en) 2020-08-28 2020-08-28 Port automatic expansion method, device and equipment based on flow monitoring

Country Status (1)

Country Link
CN (1) CN112187512B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114516A (en) * 2021-05-20 2021-07-13 中国联合网络通信集团有限公司 Router management method and device
CN113453096A (en) * 2021-06-04 2021-09-28 中国联合网络通信集团有限公司 Method and device for predicting PON port flow of passive optical network
CN113556253A (en) * 2021-07-30 2021-10-26 济南浪潮数据技术有限公司 Method, system, device and storage medium for predicting real-time flow of switch port
CN113852493A (en) * 2021-09-03 2021-12-28 中盈优创资讯科技有限公司 Intelligent speed regulation method and device for STN (standard deviation network) elastic bandwidth dedicated line
CN114826950A (en) * 2022-05-30 2022-07-29 中国联合网络通信集团有限公司 Port number prediction method, device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012079248A1 (en) * 2010-12-17 2012-06-21 中兴通讯股份有限公司 Forwarding method and system based on virtual local area network (vlan) with capacity expansion and reduction packet transport network (ptn) ports
US20170118041A1 (en) * 2015-10-21 2017-04-27 Brocade Communications Systems, Inc. Distributed rule provisioning in an extended bridge
WO2017118422A1 (en) * 2016-01-08 2017-07-13 中兴通讯股份有限公司 Method and system for distributing preserved bandwidth of tunnel egress
CN108880971A (en) * 2018-05-30 2018-11-23 新华三技术有限公司 The expansion method and device of virtual broadband remote access server vBRAS resource pool
CN109921950A (en) * 2019-03-28 2019-06-21 北京奇艺世纪科技有限公司 A kind of network bandwidth requirements prediction technique, device and electronic equipment
CN110166280A (en) * 2019-04-10 2019-08-23 中国联合网络通信集团有限公司 A kind of network expansion method and device
CN110830307A (en) * 2019-11-21 2020-02-21 中盈优创资讯科技有限公司 Network capacity expansion method and device
CN110858986A (en) * 2018-08-23 2020-03-03 中兴通讯股份有限公司 Bandwidth adjusting method, device, communication equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012079248A1 (en) * 2010-12-17 2012-06-21 中兴通讯股份有限公司 Forwarding method and system based on virtual local area network (vlan) with capacity expansion and reduction packet transport network (ptn) ports
US20170118041A1 (en) * 2015-10-21 2017-04-27 Brocade Communications Systems, Inc. Distributed rule provisioning in an extended bridge
WO2017118422A1 (en) * 2016-01-08 2017-07-13 中兴通讯股份有限公司 Method and system for distributing preserved bandwidth of tunnel egress
CN108880971A (en) * 2018-05-30 2018-11-23 新华三技术有限公司 The expansion method and device of virtual broadband remote access server vBRAS resource pool
CN110858986A (en) * 2018-08-23 2020-03-03 中兴通讯股份有限公司 Bandwidth adjusting method, device, communication equipment and computer readable storage medium
CN109921950A (en) * 2019-03-28 2019-06-21 北京奇艺世纪科技有限公司 A kind of network bandwidth requirements prediction technique, device and electronic equipment
CN110166280A (en) * 2019-04-10 2019-08-23 中国联合网络通信集团有限公司 A kind of network expansion method and device
CN110830307A (en) * 2019-11-21 2020-02-21 中盈优创资讯科技有限公司 Network capacity expansion method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114516A (en) * 2021-05-20 2021-07-13 中国联合网络通信集团有限公司 Router management method and device
CN113453096A (en) * 2021-06-04 2021-09-28 中国联合网络通信集团有限公司 Method and device for predicting PON port flow of passive optical network
CN113453096B (en) * 2021-06-04 2022-12-13 中国联合网络通信集团有限公司 Method and device for predicting PON port flow of passive optical network
CN113556253A (en) * 2021-07-30 2021-10-26 济南浪潮数据技术有限公司 Method, system, device and storage medium for predicting real-time flow of switch port
CN113556253B (en) * 2021-07-30 2023-05-26 济南浪潮数据技术有限公司 Method, system, equipment and storage medium for predicting real-time traffic of switch port
CN113852493A (en) * 2021-09-03 2021-12-28 中盈优创资讯科技有限公司 Intelligent speed regulation method and device for STN (standard deviation network) elastic bandwidth dedicated line
CN114826950A (en) * 2022-05-30 2022-07-29 中国联合网络通信集团有限公司 Port number prediction method, device and storage medium
CN114826950B (en) * 2022-05-30 2023-06-30 中国联合网络通信集团有限公司 Port number prediction method, device and storage medium

Also Published As

Publication number Publication date
CN112187512B (en) 2022-09-06

Similar Documents

Publication Publication Date Title
CN112187512B (en) Port automatic expansion method, device and equipment based on flow monitoring
CN107204894B (en) Method and device for monitoring network service quality
CN109343965A (en) Resource adjusting method, device, cloud platform and server
CN110442498B (en) Abnormal data node positioning method and device, storage medium and computer equipment
EP3272068B1 (en) Building and applying operational experiences for cm operations
CN104348650A (en) Website monitoring method, business device and website monitoring system
CN107241242B (en) Data processing method and device
CN114637650B (en) Elastic expansion method based on Kubernetes cluster
CN112764920A (en) Edge application deployment method, device, equipment and storage medium
CN114265927A (en) Data query method and device, storage medium and electronic device
CN112235814B (en) Cloud SIM card wireless network optimization method, terminal device and server device
CN114301818A (en) Service flow detection method, device, system, terminal and storage medium
CN113204692A (en) Method and device for monitoring execution progress of data processing task
CN112532529B (en) Mesh routing topology networking method and system
CN113485891A (en) Service log monitoring method and device, storage medium and electronic equipment
CN104579793B (en) The dispatching method and system of Internet resources
CN111371908B (en) Method, device, storage medium and electronic device for sending information
CN111311039B (en) Method, device, equipment and medium for determining sensitive user
CN113448747B (en) Data transmission method, device, computer equipment and storage medium
CN103023701B (en) The analytical method of performance parameter and device in network management system
US20220036283A1 (en) Method and technician allocating system for allocating a field technician
CN111343101A (en) Server current limiting method and device, electronic equipment and readable storage medium
CN115686583B (en) Mass Internet of things equipment upgrading method and device, electronic equipment and storage medium
CN116582468B (en) Internet traffic monitoring method, device, equipment and storage medium
WO2009090944A1 (en) Rule base management system, rule base management method, and rule base management program

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 702-2, No. 4811 Caoan Road, Jiading District, Shanghai, 201800

Patentee after: CHINA UNITECHS

Address before: Room 1004-4, 10 / F, 1112 Hanggui Road, Anting Town, Jiading District, Shanghai 201800

Patentee before: CHINA UNITECHS