CN102255755B - Access network switch port utilization rate counting method - Google Patents

Access network switch port utilization rate counting method Download PDF

Info

Publication number
CN102255755B
CN102255755B CN2011102011172A CN201110201117A CN102255755B CN 102255755 B CN102255755 B CN 102255755B CN 2011102011172 A CN2011102011172 A CN 2011102011172A CN 201110201117 A CN201110201117 A CN 201110201117A CN 102255755 B CN102255755 B CN 102255755B
Authority
CN
China
Prior art keywords
port
switch
statistical
access network
statistics
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
CN2011102011172A
Other languages
Chinese (zh)
Other versions
CN102255755A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Wuhan FiberHome Networks 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 Wuhan FiberHome Networks Co Ltd filed Critical Wuhan FiberHome Networks Co Ltd
Priority to CN2011102011172A priority Critical patent/CN102255755B/en
Publication of CN102255755A publication Critical patent/CN102255755A/en
Application granted granted Critical
Publication of CN102255755B publication Critical patent/CN102255755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an access network switch port utilization rate counting method, which relates to access network switch resource statistics. The method comprises the following steps of: at least deploying a network management server in a switch network to identify and manage switches to be counted; making rules for counting whether ports of the switches are utilized or not; establishing a statistical table in a background database of the network management server, wherein the statistical table acquires port sets of each switch in the first counting, and the port sets comprise unutilized port sets and utilized port sets; performing port state detection on the ports in the unutilized port set of each switch; and judging whether the whole counting task is finished or not, outputting counting results in form of report if the whole counting task is finished, otherwise waiting for the starting of the next polling task. By the counting method, the port utilization conditions of the switches in the network can be accurately counted under the condition of influencing network performance as little as possible, relatively fewer resources are consumed, the influence of uncertain factors is reduced and relatively higher counting accuracy is ensured.

Description

A kind of statistical method of access network switch port utilization rate
Technical field
The present invention relates to the resource statistics of Access Network switch, is specifically a kind of statistical method of access network switch port utilization rate.
Background technology
Development along with the deployment of broadband network, two, the application of three-tier switch in the metropolitan area Access Network is more and more wider, the quantity that switch is used is also increasing, and in return the utilance of the physical port of machine important component part, also more and more become the content that telecom operators pay close attention to.
Generally, the utilance of switch physical port can obtain by the state of inquiring about this port, but simple inquiry port status obtains port utilization ratio, due to the uncertain factor in inquiry, inquiry is existed to some obstacles, thereby cause the port utilization ratio of acquisition inaccurate.For in the situation that the switch enormous amount, understand whole Access Network Internet resources utilize situation, need the port utilization ratio of these switches of statistics, will face following problem like this:
1. same switch is probably different in the port service condition of different time, for example, for the switch of family's broadband access, its port Link state depends on whether this family is using the broadband access network business, because resident family has uncertainty the surf time, if the simple state to put sometime port judges the port utilization ratio of whole switch, be obviously irrational.
2. switch enormous amount, statistics need to, to each port reading state of every switch, need to expend huge time and manpower by the mode of checking one by one port status.When switch quantity is large, port Duo time offered load can be larger, likely cause the decline of network quality, and then affect the operation of network regular traffic and the Network Management and Maintenance personnel management to switch, therefore be necessary to consider more accurately, resource consumption statistical method still less.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide a kind of statistical method of access network switch port utilization rate, while particularly in network, needing the switch quantity of being added up more, this statistical method can be in the situation that the little network performance that affects of trying one's best, count accurately the port of switch in network and utilize situation, resource consumption is less, reduces the impact of uncertain factor, and the statistics accuracy rate is higher.
For reaching above purpose, the technical scheme that the present invention takes is: a kind of statistical method of access network switch port utilization rate comprises step:
101. at least dispose a NM server in switch network, the effector as carrying out port utilization ratio statistics and collection statistical information, identified and managed the switch that requires statistics;
102. set the statistical rules whether port of switch is utilized, comprise how judging the port current state, the time interval of poll port status, need judge several times that port status is as making for confirming that port is used really;
103. set up statistical form in the background data base of described NM server, this statistical form is that every switch is set up a catalogue, obtains the port set of every switch in adding up for the first time, comprises and does not utilize the port set and utilized the port set;
104. adopt successively mode, the port in the port set that do not utilize of every switch carried out to the port status detection;
105. judge that whether port is in the use state, if enter 106; If not, proceed to 104 detection next ports;
Whether reaching 106. add up the number of times that this port is judged as the use state number of times of setting in described statistical rules, is to enter 107, otherwise this port is judged as the number of times of use state, adds one, proceeds to 104 detection next ports;
107. judge that this port, as the use state, never utilizes it in port set and removes, transfer to and utilize in the port set;
108. it is complete to judge whether whole switches detect, and is to carry out 109, otherwise proceed to 104 continuation, detects next port;
109. judge whether whole statistics task is finished, and is to carry out 110, otherwise proceed to 103, wait for the beginning of polling tasks next time;
110. with report form output statistics.
On the basis of technique scheme, in described 103, statistical form also comprises port number, the switch IP of switch name, switch, if the switch wherein in cluster network and there is no the IP address records its managing I P.
On the basis of technique scheme, in described 104, when switch quantity is less than 100, adopt successively mode to carry out the port status detection; When equipment is greater than 100, successively mode changes multithreading into and carries out the port status detection.
On the basis of technique scheme, in described 105, according to the combination of switch ports themselves controlled state and connection status, judge that whether port is in the use state.
On the basis of technique scheme, in described 106, confirm that a port is to be used the needed statistics number of port to be defaulted as 1.
On the basis of technique scheme, in described 110, described form is .xls file or .txt file.
Beneficial effect of the present invention is:
1, according to repeatedly obtaining the switch ports themselves service condition, to guarantee statistical accuracy.Select circulation at a certain time interval to carry out port status poll operation, and the continuous time span of carrying out of appointment, generally speaking, it hour is unit that the time interval take, lasting time span be take sky as unit, so reduce to affect the uncertain factor of statistical accuracy, as the user, temporarily not use this port, port failure etc. to be reduced to minimum.
2, the number of giving out a contract for a project that at every turn obtains the port service condition is done to optimization, reduce taking bandwidth and network management resources as far as possible.Increase along with statistics number, port in not using the port set can reduce gradually, and due to when the detection port state, just to not using the port in the port set to be detected, like this can greatly reduce the quantity of giving out a contract for a project in each polling procedure, reduced the burden of offered load and NM server.
3, carry out this statistics in the mode of background service, guarantee the parallelization of other attended operations of webmaster personnel, start execution thread in background service, the good statistical rules of Network Management and Maintenance personnel setting and after the time, this task is carried out in the backstage timing automatic, process, to user transparent, does not affect other attended operations yet.
4, provide multiple match selection to statistical rules, to adapt to various needs.For port whether in using the judgement of state, may there be different understanding in different operators, in the ordinary course of things, the state of port comprises controlled state and mode of operation, is in actual use jointly determined or only paid close attention to wherein a kind of can independently the selection by operator by the two.
5, added up the detailed form of rear output.After the statistics of port utilization ratio is finished, a detailed form should be provided, described form provides switch name, switch IP, the total port number of switch, does not use the port set, has used port set, port utilization ratio, as operator has, needs to do expansion again.
The accompanying drawing explanation
The network design figure that Fig. 1 is the embodiment of the present invention;
The flow chart of the statistical method embodiment that Fig. 2 is access network switch port utilization rate of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
As shown in Figure 1, the network design figure of the embodiment of the present invention, at first dispose at least one " NM server ", guarantees that NM server can manage the required switch that carries out the port utilization ratio statistics; Then the user configures the key elements such as the essential decision rule of statistics, interval time on NM server; The task of its enable port compute utilization ratio statistics, utilize the polling mechanism statistics port regularly on NM server to utilize situation.But this method is not limited to the deployment of this network, for other arbitrary network, dispose with level applicable equally.
As shown in Figure 2, be the flow chart of the embodiment of the present invention, shown in step as follows:
101. at least dispose a NM server in switch network, the effector as carrying out port utilization ratio statistics and collection statistical information, identified and managed the switch that requires statistics.
102. the statistical rules whether port of regulation switch is utilized, described NM server possesses patterned operation interface, the user can set the statistical rules whether switch ports themselves be utilized by this operation interface, rule comprises how judging the port current state, need judge several times port as the use state could confirm that port is used, the interval of poll port status and duration.
103. set up statistical form in the background data base of described NM server, for storing statistics, every switch is set up a record, this statistical form is obtained the port set of every switch in adding up for the first time, comprises and does not utilize port set (character string forms with the port logic index means) and utilized the port set; Statistical form also comprises port number, the switch IP of switch name, switch, if the switch wherein in cluster network and there is no the IP address records its managing I P.
104. adopt successively mode, the port in the port set that do not utilize of every switch is carried out to the port status detection, certainly, also can adopt in other embodiments multithreading to replace successively mode.When the switch negligible amounts, adopt mode successively just can meet the demands, and when switch quantity is more, for the operation that does not affect other functions of network management system can adopt the mode of multithreading.We take every 100 switches as a thread,, when switch is less than 100, adopt mode successively; When switch is greater than 100, successively mode changes multithreading into and carries out the port status detection, and every 100 switches are arranged in a thread, and the part of 100 switches of less than also can be specified separately a thread.
105. record the state of port according to the statistical rules set before, judge that according to the combination of switch ports themselves controlled state and connection status whether port is in the use state, if enter 106; If not, proceed to 104 detection next ports.
Whether reaching 106. add up the number of times that this port is judged as the use state number of times of stipulating in described statistical rules, is to enter 107, otherwise this port is judged as the number of times of use state, adds one, proceeds to 104 detection next ports.Choosing is relatively arranged, confirm that a port is to be used the needed statistics number of port to be defaulted as 1, and confirm that a port is to be used the needed statistics number of port can be specified according to actual conditions by the user, the time interval of poll is also specified according to actual conditions by the user.
107. judge that this port, as the use state, never utilizes it in port set and removes, transfer to and utilize in the port set.Can reduce like this in upper once poll with the traffic of switch, alleviate the load of network and the burden of NM server.
108. it is complete to judge whether armamentarium detects, and is to carry out 109, otherwise proceed to 104 continuation, detects next port.
109. judge whether whole statistics task is finished, and is to carry out 110, otherwise proceed to 103, wait for the beginning of polling tasks next time.
110., with report form output statistics, described form is .xls file or .txt file.
Below by a specific embodiment, the present invention is elaborated.
The present embodiment need to carry out the port utilization ratio statistics to the switch in the access network of a residential quarter, 500 of the total switches in this community, be deployed in respectively corridor or community center's machine room of each residential building, according to method described in the invention, added up as follows so:
The first step: at regional center (RC) machine room configuration NM server, on NM server, operation, by the port utilization ratio statistics program of thought exploitation of the present invention, is guaranteed all switches that NM server can the management objectives community.
Second step: on NM server, the rule of port service condition and the time interval and the statistics number of statistics poll are judged in configuration, here, in order to guarantee the accuracy of statistics, the time interval that we set the statistics poll is 6 hours, and add up continuously one week, the rule of judgement port in using state is that controlled state and the connection status of port is UP.
The 3rd step: start statistics task, according to scheme of the present invention, can in the background data base of NM server, set up the port utilization ratio statistical form for these all switches in community, can obtain the title, IP address, port sum, untapped port set of these switches, the information such as port set of having used in poll for the first time, and deposit database in.
Whether the 4th step: in poll, at first according to the rule judgment port of setting before, using, if so, whether the number of times that further judgement quilt statistics is " at the use state " reaches the number of times that rule is set; If so, the index of this port is not removed and joined in " having utilized the port set " from " utilizing the port set ".
The 5th step: judge whether the number of times of poll has reached the number of times of setting, if so, finish statistics, the output statistics, if not, wait for that next poll starts.
The present invention is not limited to above-mentioned execution mode, for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, within these improvements and modifications also are considered as protection scope of the present invention.The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (5)

1. the statistical method of an access network switch port utilization rate, is characterized in that, comprises step:
101. at least dispose a NM server in switch network, the effector as carrying out port utilization ratio statistics and collection statistical information, identified and managed the switch that requires statistics;
102. set the statistical rules whether port of switch is utilized, comprise how judging the port current state, the time interval of poll port status, need judge several times that port status is as making for confirming that port is used really;
103. set up statistical form in the background data base of described NM server, this statistical form is that every switch is set up a catalogue, obtains the port set of every switch in adding up for the first time, comprises and does not utilize the port set and utilized the port set;
104. adopt successively mode, the port in the port set that do not utilize of every switch carried out to the port status detection;
105. judge that whether port is in the use state, if enter 106; If not, proceed to 104 detection next ports; Combination according to switch ports themselves controlled state and connection status judges that whether port is in the use state;
Whether reaching 106. add up the number of times that this port is judged as the use state number of times of setting in described statistical rules, is to enter 107, otherwise this port is judged as the number of times of use state, adds one, proceeds to 104 detection next ports;
107. judge that this port, as the use state, never utilizes it in port set and removes, transfer to and utilize in the port set;
108. it is complete to judge whether whole switches detect, and is to carry out 109, otherwise proceed to 104 continuation, detects next port;
109. judge whether whole statistics task is finished, and is to carry out 110, otherwise proceed to 103, wait for the beginning of polling tasks next time;
110. with report form output statistics.
2. the statistical method of access network switch port utilization rate as claimed in claim 1, it is characterized in that: in described 103, statistical form also comprises port number, the device IP of switch name, every switch, if wherein the switch in cluster network and there is no the IP address, record its managing I P.
3. the statistical method of access network switch port utilization rate as claimed in claim 1, is characterized in that: in described 104, when switch quantity is less than 100, adopt successively mode to carry out the port status detection; When switch quantity is greater than 100, successively mode changes multithreading into and carries out the port status detection.
4. the statistical method of access network switch port utilization rate as claimed in claim 1, is characterized in that: in described 106, confirm that a port is to be used the needed statistics number of port to be defaulted as 1.
5. the statistical method of access network switch port utilization rate as claimed in claim 1, it is characterized in that: in described 110, described form is .xls file or .txt file.
CN2011102011172A 2011-07-19 2011-07-19 Access network switch port utilization rate counting method Active CN102255755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102011172A CN102255755B (en) 2011-07-19 2011-07-19 Access network switch port utilization rate counting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102011172A CN102255755B (en) 2011-07-19 2011-07-19 Access network switch port utilization rate counting method

Publications (2)

Publication Number Publication Date
CN102255755A CN102255755A (en) 2011-11-23
CN102255755B true CN102255755B (en) 2013-12-11

Family

ID=44982760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102011172A Active CN102255755B (en) 2011-07-19 2011-07-19 Access network switch port utilization rate counting method

Country Status (1)

Country Link
CN (1) CN102255755B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995536B (en) * 2019-11-29 2022-04-26 紫光华山科技有限公司 Resource utilization rate statistical method and device
CN112637079B (en) * 2020-12-16 2022-08-23 中国电子科技集团公司第三十研究所 Multi-line flow impact control method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1199970A (en) * 1998-05-13 1998-11-25 广东省邮电科学技术研究院 Central operation and maintenance system of analog movable communication network B
CN1347232A (en) * 2000-09-30 2002-05-01 Lg电子株式会社 Adaptive polling method of router

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7917957B2 (en) * 2007-05-29 2011-03-29 Alcatel Lucent Method and system for counting new destination addresses

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1199970A (en) * 1998-05-13 1998-11-25 广东省邮电科学技术研究院 Central operation and maintenance system of analog movable communication network B
CN1347232A (en) * 2000-09-30 2002-05-01 Lg电子株式会社 Adaptive polling method of router

Also Published As

Publication number Publication date
CN102255755A (en) 2011-11-23

Similar Documents

Publication Publication Date Title
CN102622303B (en) A kind of method of internal memory premature beats and device
CN104102543B (en) The method and apparatus of adjustment of load in a kind of cloud computing environment
CN101738997A (en) Multithread electric negative control system and control method
CN106383668A (en) Information storage method, storage management device and client
CN101605132A (en) A kind of method for identifying network data stream
CN108268549A (en) Data auditing system and method
CN104778528A (en) Method and system for obtaining smart city evaluation indexes by utilizing big data
CN102404760B (en) Method and device for real-time measurement of system performance
CN105022823B (en) A kind of cloud service performance early warning event generation method based on data mining
CN102255755B (en) Access network switch port utilization rate counting method
CN116996582B (en) CDN dispatch intelligent monitoring management system based on big data analysis
CN115203161A (en) Data migration management system based on internet access service
CN102034163A (en) Method and system for managing asset information of telecommunication equipment
CN105493050A (en) Data processing device, and data processing method and program
CN110475161A (en) A kind of the fault automatic location method and its system of IPTV service live streaming link
CN101083561A (en) Method for summarizing and reporting XDSL user connection parameter to network management
CN116154951A (en) Inter-station system data synchronization method based on ad hoc network
CN102811154B (en) Resource acquisition method and network server system
CN107613511A (en) Network management, mobile terminal and device
CN114841519A (en) Electric power work ticket construction method and device
CN102377580A (en) Method and equipment for uploading performance data
CN101753457B (en) Method and system for predicating available bandwidth of end-to-end route between nodes at Internet end
CN103049522A (en) Automatic substitution method for multi-data sources of electric quantity
CN101227326A (en) Method and system for supplementary reporting of performance data
CN105917614B (en) Method and apparatus for operating access network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170327

Address after: 430074 East Lake high tech Development Zone, Hubei Province, No. 6, No., high and new technology development zone, No. four

Patentee after: Fenghuo Communication Science &. Technology Co., Ltd.

Address before: 430074 Hubei Province, Wuhan East Lake new Dongxin Road No. 5 East Building optical communication industry

Patentee before: Wuhan Fenghuo Network Co., Ltd.