CN111212337B - Port classification method and device - Google Patents

Port classification method and device Download PDF

Info

Publication number
CN111212337B
CN111212337B CN201911381915.0A CN201911381915A CN111212337B CN 111212337 B CN111212337 B CN 111212337B CN 201911381915 A CN201911381915 A CN 201911381915A CN 111212337 B CN111212337 B CN 111212337B
Authority
CN
China
Prior art keywords
port
pon
linear equation
pon port
slope
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.)
Active
Application number
CN201911381915.0A
Other languages
Chinese (zh)
Other versions
CN111212337A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911381915.0A priority Critical patent/CN111212337B/en
Publication of CN111212337A publication Critical patent/CN111212337A/en
Application granted granted Critical
Publication of CN111212337B publication Critical patent/CN111212337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0071Provisions for the electrical-optical layer interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a port classification method and a port classification device, relates to the field of communication, and can predict the future fluctuation trend of port flow. The method comprises the following steps: acquiring flow parameters of a PON port in T time periods, wherein the flow parameters are used for reflecting the flow condition of the PON port in one time period, and T is a positive integer greater than or equal to 2; carrying out linear fitting on the traffic parameters of the PON port in T time periods, and determining a fitted linear equation; determining the type of a PON port according to the slope of a linear equation, wherein the type of the PON port comprises a stable port, an increasing port or a decreasing port; the stable port is a PON port with the flow changing along with the time and no fluctuation trend; the growth port is a PON port with the fluctuation trend that the flow is increased along with the change of time; a drop port is a PON port where the traffic has a reduced tendency to fluctuate over time. The method and the device are used for the process of predicting the port flow.

Description

Port classification method and device
Technical Field
The present application relates to the field of communications, and in particular, to a port classification method and apparatus.
Background
With the popularization of optical fiber networks and the rise of various new network applications, the quality requirements of users on broadband networks are increasing day by day. Because the current network application has higher requirement on the network rate, the congestion problem often occurs in the daily network, and the network congestion seriously influences the internet surfing experience of the user. At present, for the congestion problem of the network, the bandwidth expansion is usually performed in the broadband access network to solve the congestion problem.
Currently, operators usually adopt a traffic alarm mechanism to determine whether broadband capacity expansion is needed. Specifically, when the traffic of a network port in the access network exceeds a certain threshold (for example, 70% of the physical upper limit of the port traffic), the server generates an alarm message for the network port. When the server generates the alarm information, the broadband access network may have a traffic congestion problem. The operator regularly sorts the network ports according to the quantity of the alarm information of the network ports, determines the quantity of the alarm information and the network ports which are easy to be congested according to the sorting result, and expands the broadband of the network ports according to the quantity of the alarm information and the network ports which are easy to be congested.
However, the existing capacity expansion scheme for broadband is essentially a passive response mode, and when the server generates the alarm information of the network port, the probability that the user under the port has experienced traffic congestion is high. Therefore, it is necessary to determine the future fluctuation trend of the port traffic, so as to expand the bandwidth before the port traffic is congested.
Disclosure of Invention
The embodiment of the application provides a port classification method and device, which can judge the future trend of port flow in advance.
In order to achieve the purpose, the application provides the following technical scheme:
in a first aspect, the present application provides a port classification method, including:
acquiring flow parameters of a PON port in T time periods, wherein the flow parameters are used for reflecting the flow condition of the PON port in one time period, and T is a positive integer greater than or equal to 2; carrying out linear fitting on the traffic parameters of the PON port in T time periods, and determining a fitted linear equation; determining the type of a PON port according to the slope of a linear equation, wherein the type of the PON port comprises a stable port, an increasing port or a decreasing port; wherein, the stable port is a PON port with the flow kept unchanged along with the time change; the growth type port is a PON port with the flow gradually increasing along with the time change; the down type port is a PON port in which the traffic gradually decreases with time.
Based on the technical scheme, the server performs linear fitting on the traffic parameters of the PON port in a plurality of time periods, and determines a fitted linear equation. The server then determines the type of PON port (e.g., a steady port, an increasing port, a decreasing port) based on the slope of the linear equation. Thus, the server can judge the future trend of port traffic according to the type of the PON port. Furthermore, the operator can perform broadband capacity expansion on the port with the upward trend of the port flow when no flow congestion occurs, so that the situation that the broadband is subjected to capacity expansion after the user experiences the flow congestion is avoided, and the user experience is improved.
In one possible design, determining the type of PON port according to the slope of the linear equation includes: if the slope of the linear equation is larger than a first threshold value, determining that the PON port is an extension port; if the slope of the linear equation is smaller than a second threshold value, determining that the PON port is a descending port; if the slope of the linear equation is less than or equal to a first threshold value and the slope of the linear equation is greater than or equal to a second threshold value, determining that the PON port is a stable port; wherein the first threshold is greater than the second threshold, and the first threshold is a positive number and the second threshold is a negative number. Based on the technical scheme, the PON ports can be accurately classified according to the first threshold and/or the second threshold.
In one possible design, when the PON port is an increasing port or a decreasing port, a traffic trend of the PON port is determined according to a linear equation, and the traffic trend is used to represent a change situation of a traffic size of the PON port in a future time period.
In one possible design, a first difference is determined, where the first difference is a difference between a traffic parameter of the PON port in a T-th time period and a traffic parameter in a 1-th time period; judging whether the first difference value has the same sign with the slope of the linear equation; if the first difference value is different from the slope of the linear equation in sign, determining that the PON port has a traffic mutation condition; and if the first difference value is the same as the slope of the linear equation in sign, determining that the PON port has no traffic sudden change. Based on the above technical scheme, the server can determine whether the PON port has a traffic sudden change condition according to the first difference value.
In a second aspect, the present application provides a server comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring flow parameters of a PON port in T time periods, the flow parameters are used for reflecting the flow condition of the PON port in one time period, and T is a positive integer greater than or equal to 2; the processing module is used for performing linear fitting on the traffic parameters of the PON port in T time periods to determine a fitted linear equation; determining the type of a PON port according to the slope of a linear equation, wherein the type of the PON port comprises a stable port, an increasing port or a decreasing port; the stable port is a PON port with the flow changing along with the time and no fluctuation trend; the growth port is a PON port with the fluctuation trend that the flow is increased along with the change of time; a drop port is a PON port where the traffic has a reduced tendency to fluctuate over time.
In one possible design, the processing module is further configured to determine that the PON port is an extension port when a slope of the linear equation is greater than a first threshold; when the slope of the linear equation is smaller than a second threshold value, determining that the PON port is a descending port; when the slope of the linear equation is less than or equal to a first threshold and the slope of the linear equation is greater than or equal to a second threshold, determining that the PON port is a stable port; wherein the first threshold is greater than the second threshold, and the first threshold is a positive number and the second threshold is a negative number.
In a possible design, the processing module is further configured to determine, according to a linear equation, a traffic trend of the PON port when the PON port is an increasing port or a decreasing port, where the traffic trend is used to characterize a change situation of traffic of the PON port in a future time period.
In a possible design, the processing module is further configured to determine a first difference value, where the first difference value is a difference value between a traffic parameter of the PON port in a T-th time period and a traffic parameter in a 1-th time period; judging whether the first difference value has the same sign with the slope of the linear equation; when the first difference value is different from the slope of the linear equation in sign, determining that the PON port has a traffic mutation condition; and when the first difference value is the same as the slope of the linear equation in sign, determining that the PON port has no traffic sudden change.
In a third aspect, the present invention provides a server comprising: a processor, a memory, and a communication interface; wherein the communication interface is for a server, the plurality of programs including computer executable instructions that, when executed by the server, the processor executes the computer executable instructions stored by the memory to implement the port classification method as described in the first aspect and any one of the possible implementations of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored therein instructions that, when executed on a terminal, cause the terminal to perform a port classification method as described in the first aspect and any one of the possible implementations of the first aspect.
In a fifth aspect, an embodiment of the present invention provides a computer program product containing instructions, which when run on a server, causes the server to perform the method for port classification as described in the first aspect and any one of the possible implementations of the first aspect.
In a sixth aspect, an embodiment of the present invention provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a computer program or instructions to implement the port classification method described in the first aspect and any possible implementation manner of the first aspect.
Specifically, the chip provided in the embodiment of the present invention further includes a memory for storing a computer program or instructions.
Drawings
Fig. 1 is a schematic diagram of a PON network according to an embodiment of the present invention;
fig. 2 is a flowchart of a port classification method according to an embodiment of the present invention;
fig. 3 is a flowchart of another port classification method according to an embodiment of the present invention;
fig. 4 is a flowchart of another port classification method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another server according to an embodiment of the present invention.
Detailed Description
The character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship. For example, A/B may be understood as A or B.
In the description of the present invention, the meaning of "a plurality" means two or more unless otherwise specified.
Furthermore, the terms "comprising" and "having" and any variations thereof as referred to in the description of the invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In addition, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "e.g.," is intended to present concepts in a concrete fashion.
In order to facilitate understanding of the technical solutions of the present application, some technical terms are described below.
1. Uplink rate
The uplink rate refers to a data transmission rate when the mobile terminal sends information to the base station, for example, a data transmission rate from a wireless terminal such as a mobile phone or a notebook to the base station.
2. Downstream rate
The downlink rate refers to a transmission rate when the base station sends information to the mobile terminal, for example, a rate at which a wireless terminal such as a mobile phone or a notebook computer downloads data from the base station or a network.
An embodiment of the present application provides a port classification method, which is applied to a PON network, and is, as shown in fig. 1, a PON network structure according to an embodiment of the present invention.
A PON network is a point-to-multipoint network structure in which upstream and downstream traffic of all users pass through PON ports and then converge at OLT (optical line terminal) ports. As shown in fig. 1, the PON port includes an optical splitter, which can provide services for multiple users, and the user traffic is converged to the OLT port through the PON port, wherein the OLT port can be connected to multiple PON ports simultaneously.
As shown in fig. 2, a port classification method provided in an embodiment of the present application includes the following steps:
s101, a server acquires flow parameters of a PON port in T time periods.
The traffic parameter is used for reflecting the traffic condition of the PON port in a time period, and T is a positive integer greater than or equal to 2.
Optionally, the traffic parameter may be an uplink peak rate, a downlink peak rate, an uplink average rate, or a downlink average rate. The following describes how the server acquires the traffic parameters of the PON port in T time periods by using specific traffic parameters.
Example one, the traffic parameter is the upstream peak rate. Table 1 shows the uplink peak rate for 3 time periods. One row in table 1 is a piece of data, the left column in one row is a time period, and the right column is an upstream peak rate in Megabytes (MB)/Second (Second, S).
TABLE 1
Time period Peak rate of uplink
1 month and 1 day all day (24 hours) 12M/S
1 month and 2 days (24 hours) 21M/S
1 month and 3 days of the whole day (24 hours) 30M/S
It should be noted that the uplink peak rate is used to indicate the maximum uplink rate in the time period. Taking the peak uplink rate of 1 month and 1 day as an example, the server acquires one uplink rate every 10 minutes and 144 uplink rates in 24 hours. And the server determines the maximum uplink flow rate to be the uplink peak rate of 1 month and 1 day according to the 144 uplink rates.
In the embodiment of the present application, the downlink peak rate is obtained in the same manner as the uplink peak rate, and details thereof are not repeated here.
Example two, the traffic parameter is the uplink average rate. Table 2 shows the uplink average rate for 3 time periods. One row in table 2 is a piece of data, the left column in one row is a time period, and the right column is an upstream average rate.
TABLE 2
Time period Average rate of uplink
1 month and 1 day all day (24 hours) 4M/S
1 month and 2 days (24 hours) 7M/S
1 month and 3 days of the whole day (24 hours) 10M/S
It should be noted that the uplink average rate is used to represent an average value of the uplink rate in the time period. Taking the average uplink rate of 1 month and 1 day as an example, the server acquires one uplink rate every 10 minutes and 144 uplink rates in 24 hours. And the server determines the average value of the uplink rates to be the uplink average rate of 1 month and 1 day according to the 144 uplink rates.
In this embodiment of the present application, the downlink average rate is obtained in the same manner as the uplink average rate, and details thereof are not repeated here.
Optionally, the server obtains traffic parameters of the PON port in T time periods, and generates a PON port traffic sequence XT. Wherein the flow sequence XT=【x1,x2,x3,...xt】,xtIs the flow parameter of the t-th time period, and t is an integer greater than or equal to 2.
S102, the server performs linear fitting on the traffic parameters of the PON port in T time periods, and determines a fitted linear equation.
In a possible implementation manner, the server determines, according to a linear equation fitted by traffic parameters of the PON port in T time periods, by using formula (1):
Figure BDA0002342467820000061
wherein,
Figure BDA0002342467820000062
and the flow parameter of the t-th time period is the size, s is the slope of the linear equation, and b is the intercept of the linear equation.
Constructing an error function J:
Figure BDA0002342467820000063
wherein x isiIs the magnitude of the flow parameter for the ith time period.
Calculating the formula (2) to obtain the slope s:
Figure BDA0002342467820000064
calculating the formula (2) to obtain an intercept b:
Figure BDA0002342467820000065
it should be noted that the value of the loss function J is minimized by obtaining the optimal parameters s and b. After determining the optimal parameters s and b, a fitted linear equation can be obtained.
Illustratively, the fitted linear equation is determined, taking the upstream peak rate of Table 2 as an example. As can be seen from Table 2, x1Is 4, x2Is 7, x3Is 10.
The server determines the slope s of the linear equation according to formula (3) as:
Figure BDA0002342467820000066
Figure BDA0002342467820000071
the server determines the intercept b of the linear equation according to formula (4) as:
Figure BDA0002342467820000072
in summary, the slope s of the linear equation equals 3 and the intercept b equals 1. The server may determine the fitted linear equation
Figure BDA0002342467820000073
S103, the server determines the type of the PON port according to the slope of the linear equation.
The types of PON ports include a stable port, an increasing port, or a decreasing port.
It should be noted that the stable port is a PON port whose traffic is kept unchanged over time; the growth type port is a PON port with the flow gradually increasing along with the time change; the down type port is a PON port in which the traffic gradually decreases with time. And when the PON port is an increasing port or a decreasing port, determining the flow trend of the PON port according to a linear equation.
The traffic trend is used for representing the change situation of the traffic size of the PON port in a future time period.
Optionally, the server sets the first threshold and the second threshold. And the server compares the slope of the linear equation with the first threshold and/or the second threshold to determine the type of the PON port. Wherein the first threshold is greater than the second threshold, and the first threshold is a positive number and the second threshold is a negative number.
And if the slope of the linear equation is greater than the first threshold value, the server determines that the PON port is an extension port.
And if the slope of the linear equation is smaller than a second threshold value, the server determines that the PON port is a descending port.
And if the slope of the linear equation is smaller than or equal to the first threshold and the slope of the linear equation is larger than or equal to the second threshold, the server determines that the PON port is a stable port.
Illustratively, the first threshold is 0.1 and the second threshold is-0.1. If the slope of the linear equation is 0.5, and 0.5>0.1, the server determines that the PON port is an extension port. If the slope of the linear equation is-0.8, -0.8< -0.1, the server determines that the PON port is a drop port. If the slope of the linear equation is 0.05, -0.1<0.05<0.1, the server determines that the PON port is a stable port.
It should be noted that, in practical applications, the network operation and maintenance department may set the first threshold and the second threshold by itself according to the local service development situation.
Based on the technical scheme, the server performs linear fitting on the traffic parameters of the PON port in a plurality of time periods, and determines a fitted linear equation. The server then determines the type of PON port (e.g., a steady port, an increasing port, a decreasing port) based on the slope of the linear equation. Therefore, the server can judge the future fluctuation trend of the port flow through the type of the PON port. Furthermore, the operator can perform broadband capacity expansion on the port with the upward trend of the port flow when no flow congestion occurs, so that the situation that the broadband is subjected to capacity expansion after the user experiences the flow congestion is avoided, and the user experience is improved.
Based on the port classification method shown in fig. 2, the server can determine the future fluctuation trend of the port traffic according to the type of the port. However, when the port flow has a sudden change, the linear equation fitted by the server is inaccurate, and an accurate slope cannot be obtained. The port type determined by the server is also inaccurate due to the inaccurate slope of the linear equation. Therefore, the server determines the future fluctuation trend of the port traffic according to the port type, and is also inaccurate. Therefore, the server needs to determine whether there is a sudden change in the port traffic to ensure the accuracy of the server in determining the future fluctuation trend of the port traffic.
As shown in fig. 3, an embodiment of the present application provides a port classification method, including the following steps:
s201, the server determines a first difference value.
The first difference is a difference between a traffic parameter of the PON port in a T-th time period and a traffic parameter in a 1-th time period;
in one possible design, the server determines the first difference value by equation (5).
Figure BDA0002342467820000081
Wherein D isTIs a first difference value, xiIs the flow parameter of the ith time period.
S202, the server judges whether the first difference value is the same as the slope of the linear equation in sign.
In a possible implementation manner, if the first difference value and the slope of the linear equation are both positive signs, or the first difference value and the slope of the linear equation are both negative signs, the server judges that the first difference value and the slope of the linear equation have the same sign; if the first difference is a positive sign, the slope of the linear equation is a negative sign, or the first difference is a negative sign and the slope of the linear equation is a positive sign, the server judges that the slope signs of the first difference and the linear equation are different.
Optionally, when the first difference is not the same as the slope of the linear equation in sign, the server determines that there is a traffic sudden change at the PON port. The abrupt flow rate change means that the flow rate of the PON port increases or decreases by a large amplitude at a certain time.
Illustratively, the first difference is-1 and the slope of the linear equation is 0.5. The first difference value is different from the slope in sign, and the server determines that the PON port has the condition of sudden traffic change.
When a network cut-over, a line fault, or other problems occur, the PON port may suddenly change traffic. When the PON port has a sudden change of the flow, the server cannot accurately judge the future fluctuation trend of the port flow.
Optionally, when the first difference is the same as the slope of the linear equation in sign, the server determines that there is no traffic sudden change at the PON port.
Based on the technical scheme, the server judges whether the PON port has the situation of sudden flow change by comparing whether the sign of the first difference value is the same as the sign of the slope of the linear equation, so that the accuracy of judging the future fluctuation trend of the port flow by the server is ensured.
Optionally, based on the port classification method shown in fig. 2, the server may evaluate development of broadband services in different areas according to port types of multiple ports in multiple areas. Taking a region as an example, the development of broadband service in the region is evaluated according to the port types of the M ports in the region. Wherein M is an integer greater than 2.
As shown in fig. 4, an embodiment of the present application provides a port classification method, including the following steps:
s301, the server determines the port types of M PON ports in the target area.
According to a possible implementation manner, the server determines that the M PON ports belong to the target area according to address information of the M PON ports. The server determines the port types of the M PON ports in the target area.
The address information is used to indicate an area to which the PON port belongs.
S302, the server evaluates the broadband service of the target area according to the port types of the M PON ports.
According to a possible implementation manner, the server evaluates the broadband service of the target area according to the number of the port types of the M PON ports.
And if the number of the growth ports of the target area is greater than the third threshold value, the server determines that the broadband service of the target area develops rapidly.
And if the number of the drop ports of the target area is smaller than the fourth threshold, the server determines that the broadband service of the target area develops slowly.
And if the number of the increasing ports of the target area is less than or equal to the third threshold and the number of the decreasing ports of the target area is greater than or equal to the fourth threshold, the server determines that the broadband service of the target area is stably developed.
The third threshold is M × a first preset ratio, and the fourth threshold is M × a second preset ratio.
It should be noted that, when the server determines that the broadband service in the area is rapidly developing, it indicates that the number of users in the area is increasing, and in order to avoid a traffic congestion situation, an operator may preferentially perform capacity expansion on a port in the area. When the server determines that the broadband service in the area is developing slowly, it indicates that the users in the area may be lost, and the operator needs to pay attention to the broadband development in the area.
In the embodiment of the present application, the server may be divided into the functional modules or the functional units according to the above method examples, for example, each functional module or functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional module or a functional unit. The division of the modules or units in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
As shown in fig. 5, a server provided in an embodiment of the present invention includes:
an obtaining module 101, configured to obtain a traffic parameter of a PON port in T time periods, where the traffic parameter is used to reflect a traffic condition of the PON port in one time period, and T is a positive integer greater than or equal to 2.
The processing module 102 is configured to perform linear fitting on the traffic parameters of the PON port in T time periods, and determine a fitted linear equation; determining the type of the PON port according to the slope of the linear equation; the stable port is a PON port with the flow changing along with the time and no fluctuation trend; the growth port is a PON port with the fluctuation trend that the flow is increased along with the change of time; a drop port is a PON port where the traffic has a reduced tendency to fluctuate over time.
Optionally, the processing module 102 is further configured to determine that the PON port is an extension port when a slope of the linear equation is greater than a first threshold; when the slope of the linear equation is smaller than a second threshold value, determining that the PON port is a descending port; and when the slope of the linear equation is less than or equal to a first threshold value and the slope of the linear equation is greater than or equal to a second threshold value, determining that the PON port is a stable port.
Optionally, the processing module 102 is further configured to determine, according to a linear equation, a traffic trend of the PON port when the PON port is an increasing port or a decreasing port, where the traffic trend is used to represent a change situation of a traffic size of the PON port in a future time period.
Optionally, the processing module 102 is further configured to determine a first difference value; judging whether the first difference value has the same sign with the slope of the linear equation; when the first difference value is different from the slope of the linear equation in sign, determining that the PON port has a traffic mutation condition; and when the first difference value is the same as the slope of the linear equation in sign, determining that the PON port has no traffic sudden change.
Fig. 6 shows yet another possible structure of the server involved in the above embodiment. The server includes: a processor 201 and a communication interface 202. The processor 201 is used to control and manage the actions of the device, for example, to perform the various steps in the method flows shown in the above-described method embodiments, and/or to perform other processes for the techniques described herein. The communication interface 202 is used to support communication of the server with other network entities. The server may also include a memory 203 and a bus 204, the memory 203 being used to store program codes and data for the devices.
The processor 201 may implement or execute various exemplary logical blocks, units and circuits described in connection with the present disclosure. The processor may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, units, and circuits described in connection with the present disclosure. A processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, a DSP and a microprocessor, or the like.
Memory 203 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 204 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 204 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
The present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the port classification method in the above method embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is caused to execute the port classification method in the method flow shown in the foregoing method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having 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), a register, a hard disk, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Since the server, the computer-readable storage medium, and the computer program product in the embodiments of the present invention may be applied to the method described above, reference may also be made to the method embodiments for obtaining technical effects, and details of the embodiments of the present invention are not described herein again.
The above is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A method for port classification, the method comprising:
acquiring flow parameters of a PON port in T time periods, wherein the flow parameters are used for reflecting the flow condition of the PON port in one time period, and T is a positive integer greater than or equal to 2;
carrying out linear fitting on the traffic parameters of the PON port in T time periods, and determining a fitted linear equation;
determining the type of the PON port according to the slope of the linear equation, wherein the type of the PON port comprises a stable port, an increasing port or a decreasing port; wherein the stable port is a PON port with the flow kept unchanged along with the time change; the growth type port is a PON port with the flow gradually increasing along with the time change; the descending port is a PON port with the flow gradually reduced along with the change of time;
determining a first difference value, wherein the first difference value is a difference value between a traffic parameter of a PON port in a T-th time period and a traffic parameter of a 1 st time period;
judging whether the first difference value has the same sign with the slope of the linear equation;
if the first difference value is different from the slope of the linear equation in sign, determining that the PON port has a traffic mutation condition;
and if the first difference value is the same as the slope of the linear equation in sign, determining that the PON port has no traffic mutation.
2. The method of claim 1, wherein the determining the type of the PON port according to the slope of the linear equation comprises:
if the slope of the linear equation is greater than a first threshold value, determining that the PON port is an extension port;
if the slope of the linear equation is smaller than a second threshold value, determining that the PON port is a descending port;
if the slope of the linear equation is less than or equal to the first threshold and the slope of the linear equation is greater than or equal to the second threshold, determining that the PON port is a stable port; wherein the first threshold is greater than the second threshold, and the first threshold is a positive number and the second threshold is a negative number.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
when the PON port is an increasing port or a decreasing port, determining the flow trend of the PON port according to the linear equation, wherein the flow trend is used for representing the change situation of the flow size of the PON port in the future time period.
4. A server, characterized in that the server comprises:
an obtaining module, configured to obtain a traffic parameter of a PON port in T time periods, where the traffic parameter is used to reflect a traffic condition of the PON port in one time period, and T is a positive integer greater than or equal to 2;
the processing module is used for performing linear fitting on the traffic parameters of the PON port in T time periods to determine a fitted linear equation; determining the type of the PON port according to the slope of the linear equation, wherein the type of the PON port comprises a stable port, an increasing port or a decreasing port; wherein the stable port is a PON port with the flow kept unchanged along with the time change; the growth type port is a PON port with the flow gradually increasing along with the time change; the descending port is a PON port with the flow gradually reduced along with the change of time;
the processing module is further configured to determine a first difference value, where the first difference value is a difference value between a traffic parameter of the PON port in a T-th time period and a traffic parameter in a 1-th time period; judging whether the first difference value has the same sign with the slope of the linear equation; when the first difference value is different from the slope of the linear equation in sign, determining that the PON port has a traffic mutation condition; and when the first difference value is the same as the slope of the linear equation in sign, determining that no traffic sudden change exists in the PON port.
5. The server according to claim 4,
the processing module is further configured to determine that the PON port is an extension port when a slope of the linear equation is greater than a first threshold; when the slope of the linear equation is smaller than a second threshold value, determining that the PON port is a descending port; when the slope of the linear equation is less than or equal to the first threshold and the slope of the linear equation is greater than or equal to the second threshold, determining that the PON port is a stable port; wherein the first threshold is greater than the second threshold, and the first threshold is a positive number and the second threshold is a negative number.
6. The server according to claim 4 or 5,
the processing module is further configured to determine a traffic trend of the PON port according to the linear equation when the PON port is an increasing port or a decreasing port, where the traffic trend is used to characterize a change situation of a traffic size of the PON port in a future time period.
7. A server, comprising: a processor, a memory, and a communication interface; wherein the plurality of programs for the server includes computer executable instructions that, when executed by the processor, cause the server to perform the port classification method of any of claims 1 to 3.
8. A computer-readable storage medium having stored therein instructions which, when executed by a computer, cause the computer to perform the port classification method of any one of claims 1 to 3.
CN201911381915.0A 2019-12-27 2019-12-27 Port classification method and device Active CN111212337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911381915.0A CN111212337B (en) 2019-12-27 2019-12-27 Port classification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911381915.0A CN111212337B (en) 2019-12-27 2019-12-27 Port classification method and device

Publications (2)

Publication Number Publication Date
CN111212337A CN111212337A (en) 2020-05-29
CN111212337B true CN111212337B (en) 2022-02-25

Family

ID=70788219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911381915.0A Active CN111212337B (en) 2019-12-27 2019-12-27 Port classification method and device

Country Status (1)

Country Link
CN (1) CN111212337B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553733B (en) * 2022-04-26 2022-07-26 江苏电保姆电力服务有限公司 Intelligent gateway monitoring management system and method based on artificial intelligence

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372375A (en) * 2016-10-26 2017-02-01 武汉大学 Method for predicting diversion ratio change of distributary channels of two-stage bifurcated riverway in the downstream of reservoir
CN108462603A (en) * 2018-01-03 2018-08-28 全球能源互联网研究院有限公司 The method and device of prediction, the network upgrade of Power Information Network data on flows
CN109241486A (en) * 2018-09-14 2019-01-18 拉扎斯网络科技(上海)有限公司 Data analysis method, device, equipment and computer storage medium
CN109495317A (en) * 2018-12-13 2019-03-19 中国南方电网有限责任公司 Data network method for predicting and device
CN109951491A (en) * 2019-03-28 2019-06-28 腾讯科技(深圳)有限公司 Network attack detecting method, device, equipment and storage medium
CN110505540A (en) * 2019-07-11 2019-11-26 中国联合网络通信集团有限公司 A kind of method and device judging the port PON dilatation priority

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372375A (en) * 2016-10-26 2017-02-01 武汉大学 Method for predicting diversion ratio change of distributary channels of two-stage bifurcated riverway in the downstream of reservoir
CN108462603A (en) * 2018-01-03 2018-08-28 全球能源互联网研究院有限公司 The method and device of prediction, the network upgrade of Power Information Network data on flows
CN109241486A (en) * 2018-09-14 2019-01-18 拉扎斯网络科技(上海)有限公司 Data analysis method, device, equipment and computer storage medium
CN109495317A (en) * 2018-12-13 2019-03-19 中国南方电网有限责任公司 Data network method for predicting and device
CN109951491A (en) * 2019-03-28 2019-06-28 腾讯科技(深圳)有限公司 Network attack detecting method, device, equipment and storage medium
CN110505540A (en) * 2019-07-11 2019-11-26 中国联合网络通信集团有限公司 A kind of method and device judging the port PON dilatation priority

Also Published As

Publication number Publication date
CN111212337A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN110430583B (en) SSB beam optimization configuration method and device
CN103491556B (en) A kind of method and device of network adjustment
CN101437326A (en) Method and system to manage communications
CN110505540B (en) Method and device for judging PON port expansion priority
CN111741427A (en) Service complaint processing method, device and equipment
CN111147327B (en) Network quality evaluation method and device
CN109963288B (en) Evaluation method and device of base station
CN111212337B (en) Port classification method and device
CN110166964B (en) Method and device for determining base station to be expanded
US20200389411A1 (en) Method and system for allocating resources in a cloud-based communication system
CN114928849B (en) Base station deployment method and device, electronic equipment and storage medium
CN113612620B (en) Fusion package recommendation method and device, server and storage medium
CN108337634B (en) HAPS call access control method, device, high altitude platform equipment and storage medium
CN113518459B (en) Resource scheduling processing method and device and electronic equipment
CN112085282B (en) Cell traffic prediction method and server
CN111585789B (en) Data prediction method and device
CN109275158B (en) Method and device for dense networking
CN109951329B (en) Network resource scheduling method and device
CN110191510B (en) Beam distribution method and device
CN109451515B (en) Network priority evaluation method and device
CN113347660A (en) Communication signal detection method, apparatus, device and medium
CN113453285A (en) Resource adjusting method, device and storage medium
CN111884848B (en) Network slice selection method and device
García et al. Automatic UMTS system resource dimensioning based on service traffic analysis
CN114826950B (en) Port number prediction method, device and storage medium

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