CN101867502B - Method and device for inhibiting port oscillation - Google Patents

Method and device for inhibiting port oscillation Download PDF

Info

Publication number
CN101867502B
CN101867502B CN201010199300.9A CN201010199300A CN101867502B CN 101867502 B CN101867502 B CN 101867502B CN 201010199300 A CN201010199300 A CN 201010199300A CN 101867502 B CN101867502 B CN 101867502B
Authority
CN
China
Prior art keywords
port
penalty value
time period
value
state
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
CN201010199300.9A
Other languages
Chinese (zh)
Other versions
CN101867502A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201010199300.9A priority Critical patent/CN101867502B/en
Publication of CN101867502A publication Critical patent/CN101867502A/en
Application granted granted Critical
Publication of CN101867502B publication Critical patent/CN101867502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Monitoring And Testing Of Exchanges (AREA)
  • Sub-Exchange Stations And Push- Button Telephones (AREA)

Abstract

The invention discloses a method and a device for inhibiting port oscillation. The method comprises the following steps of: regularly obtaining the current oscillation state of a port and mapping to form a punishment value; judging whether the punishment value is greater than the inhibiting threshold or not, if so, setting the port to be in a failure state and reporting to an upper-layer protocol module that the port is in the failure state. The technical scheme can effectively inhibit the oscillation frequency of the port and reduce influence on the stability of a communication device and the whole network by port oscillation.

Description

The suppressing method of port oscillation and device
Technical field
The present invention relates to the communications field, in particular to a kind of suppressing method and device of port oscillation.
Background technology
In communication equipment application, device port may because of a variety of causes (such as, physical signalling interference, link layer configuration error etc.) and cause port frequently alternately to occur connecting (up) and not being connected (down, or be called inefficacy) state.
Port frequently concussion can cause all kinds of Routing Protocol, negotiate marking commutation (Multi-Protocol Label Switching, referred to as MPLS), Spanning-Tree Protocol (spanning tree protocol, referred to as STP) etc. upper-layer protocol repeatedly shake, also can to the central processing unit of equipment (Central processing unit, referred to as CPU) produce certain impact, thus equipment and network generation are comparatively had a strong impact on, section communication equipment even may be caused to paralyse, cause network to use, and affect disparate networks business.
Summary of the invention
Frequently shake for correlation technique middle port and can produce to equipment and network the problem comparatively had a strong impact on, main purpose of the present invention is the suppressing method and the device that provide a kind of port oscillation, to solve the problem one of at least.
According to an aspect of the present invention, a kind of suppressing method of port oscillation is provided.
Suppressing method according to port oscillation of the present invention comprises: the current concussion situation of timing acquisition port, and is mapped as penalty value; Judge whether penalty value is greater than suppression threshold value; If so, then arranging port is failure state, and is failure state to the state of upper-layer protocol module reporting port.
According to a further aspect in the invention, the restraining device at a kind of port oscillation is provided.
Restraining device according to port oscillation of the present invention comprises: mapping block, and the current concussion situation for the port by timing acquisition is mapped as penalty value; Judge module, for judging whether penalty value is greater than suppression threshold value; Processing module, for when output module is for being, arranging port is failure state, and is failure state to the state of upper-layer protocol module reporting port.
Pass through the present invention, current penalty value is calculated according to certain algorithm by the concussion situation of port, when penalty value is greater than the suppression threshold value of setting, no longer report in up, down state of a period of time inner port, be down (failure state) to upper strata uploaded state, solve correlation technique middle port frequently to shake and can produce to equipment and network the problem comparatively had a strong impact on, and then effectively can suppress the concussion frequency of port, and reduce the impact of port oscillation on communication equipment and whole network stabilization.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the suppressing method of port oscillation according to the embodiment of the present invention;
Fig. 2 is the flow chart of the suppressing method of port oscillation according to the preferred embodiment of the invention;
Fig. 3 is the structured flowchart of the restraining device of port oscillation according to the embodiment of the present invention;
Fig. 4 is the structured flowchart of the restraining device of port oscillation according to the preferred embodiment of the invention.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Fig. 1 is the flow chart of the suppressing method of port oscillation according to the embodiment of the present invention.As shown in Figure 1, following process is comprised according to the suppressing method of the port oscillation of the embodiment of the present invention:
Step S102: the current concussion situation of timing acquisition port, and be mapped as penalty value;
Wherein, above-mentioned penalty value is the value calculated by algorithm according to the frequency of up, down event, require that algorithm increases according to certain rules according to the frequency of up, down event, along with the time decays according to certain rules, such as: penalty value along with the linear increase of up, down event, along with the time is with exponential damping.
Step S104: judge whether penalty value is greater than suppression threshold value;
Wherein, above-mentioned suppression threshold value is the value pre-set, and when penalty value is greater than this value, up, down time occurred here is no longer valid, and is marked as disarmed state, and not reporting port virtual condition change, reporting port state is down.
Step S106: if then arranging port is failure state, and be failure state to the state of upper-layer protocol module reporting port.
In correlation technique, because port frequently shakes, upper-layer protocol is caused repeatedly to shake, also impact is caused to the CPU of equipment, equipment and network are produced and comparatively has a strong impact on, adopt said method, effectively can suppress the concussion frequency of port, and reduce the impact of port oscillation on communication equipment and whole network stabilization.
In preferred implementation process, in order to map above-mentioned penalty value, need timing statistics ports physical state variation frequency (i.e. port oscillation frequency), particularly, timer timing read port concussion frequency can be adopted, also can adopt this concussion frequency of other mode timing acquisitions.
Owing to being just add up above-mentioned concussion frequency every a time period (regularly), thus the time period can be continuous print multiple time period.For initial (first) time period, in step S602, penalty value can be mapped in the following manner: make penalty value become to increase progressively relation with the frequency of oscillation f of port within this time period (first time period).
Such as, within first time period, can be described by following formula and map penalty value:
Penalty value=initial value+exp (f) * ln2
Known by above formula, penalty value and frequency of oscillation f exponentially increase progressively relation.
Such as, within first time period, can also be described by following formula and map penalty value:
Penalty value=initial value+this period frequency of linear coefficient *
Known by above formula, penalty value and frequency of oscillation f is linear increases progressively relation.
In the other times section except first time period (time period namely after first time period), in step S602, penalty value can be mapped in the following manner: penalty value and the port concussion frequency f within this time period becomes to increase progressively relation, and become to successively decrease relation with the time interval T between this time period and first time period.
Such as, in the other times section except first time period, can be described by following formula and map penalty value:
Penalty value=last time period penalty value * attenuation coefficient+exp (this period frequency) * ln2
Wherein, 0 < attenuation coefficient < 1, known by above formula, penalty value and frequency of oscillation f exponentially increase progressively relation, and (embodied by attenuation coefficient with the relation that becomes to successively decrease of the time interval T between this time period and first time period, because along with the time increases, once, the corresponding reduction of penalty value once for every iteration).
Such as, in the other times section except first time period, can also be described by following formula and map penalty value:
Penalty value=last time period penalty value * attenuation coefficient+this period frequency of linear coefficient *
Wherein, 0 < attenuation coefficient < 1, known by above formula, penalty value and frequency of oscillation f is linear increases progressively relation, and (embodied by attenuation coefficient with the relation that becomes to successively decrease of the time interval T between this time period and first time period, because along with the time increases, once, the corresponding reduction of penalty value once for every iteration).
Preferably, if penalty value is less than reuse threshold value (wherein, reuse threshold value and be less than or equal to suppression threshold value), said method can also comprise following process:
(1) judge whether port is in disarmed state;
(2) if then remove the disarmed state of port, and the actual concussion state of reporting port (port actual physics variable condition).
Wherein, reusing threshold value is the value pre-set, and when penalty value is by being greater than after suppression threshold value decays to and be less than and reuse threshold value, this port just comes into force again, reporting port state variation.
In preferred implementation process, recovering the change of reporting port actual physics has two kinds of methods: automatically recover and manually recover.Automatic recovery method is as follows: timing read port change frequency, calculates penalty value according to algorithm always, until penalty value be less than setting reuse threshold value time, recover normal port status and report, up, down state of this port is just effectively.Manual restoration methods is as follows: cancel port holddown by command set, and remove the penalty value calculated, recover normal port status and report, up, down state of this port is effective.
Preferably, if penalty value is greater than maximum penalty value (wherein, maximum penalty value is greater than suppression threshold value), said method can also comprise following process: penalty value is set to maximum penalty value.
Wherein, maximum penalty value is the value pre-set, if according to punishing that the penalty value that algorithm calculates exceedes this value, is then set to this value (being used for controlling the longest suppression time).
Below in conjunction with Fig. 2, above-mentioned preferred implementation process is described.
Fig. 2 is the flow chart of the suppressing method of port oscillation according to the preferred embodiment of the invention.As shown in Figure 2, the suppressing method of port oscillation comprises following process according to the preferred embodiment of the invention:
Step S202: statistics ports physical state variation frequency, plays a timer and is used for the physical state change frequency of timing read port;
Step S204: according to physical state change frequency and the Time Calculation penalty value of specific algorithm port;
Step S206: the penalty value calculated in real time and suppression threshold and maximum penalty value are compared;
Step S208: if penalty value is greater than suppression threshold be less than maximum penalty value, port is set to holddown, and be down to upper strata uploaded state;
Step S210: if penalty value is greater than maximum penalty value, then penalty value is set to the numerical value of maximum penalty value, port is set to holddown, and be down to upper strata uploaded state;
Step S212: if penalty value is less than suppression threshold value, judges whether port was in holddown last time;
Step S214: if be in holddown, removes the holddown of port, to the state of upper strata reporting port reality.
Fig. 3 is the structured flowchart of the restraining device of port oscillation according to the embodiment of the present invention.As shown in Figure 3, comprise according to the restraining device of the port oscillation of the embodiment of the present invention:
Mapping block 30, the current concussion situation for the port by timing acquisition is mapped as penalty value;
Judge module 32, for judging whether penalty value is greater than suppression threshold value;
Processing module 34, for when output module is for being, arranging port is failure state, and is failure state to the state of upper-layer protocol module reporting port.
Adopt said apparatus, effectively can suppress the concussion frequency of port, and reduce the impact of port oscillation on communication equipment and whole network stabilization.
Preferably, mapping block 30, also within first time period, makes penalty value and the port frequency of oscillation f within this time period become to increase progressively relation.
Preferably, mapping block 30, also in the other times section except first time period, make penalty value and the port concussion frequency f within this time period become to increase progressively relation, and to become to successively decrease relation with the time interval T between this time period and first time period.
Preferably, judge module 32, also for be less than in penalty value reuse threshold value time, judge whether port is in disarmed state, wherein, reuse threshold value and be less than or equal to suppression threshold value;
Preferably, processing module 34, also for when judge module exports as being, removes the disarmed state of port, and the actual concussion state of reporting port.
Preferably, as shown in Figure 4, said apparatus can also comprise: arrange module 36, also for when penalty value is greater than maximum penalty value, penalty value is set to maximum penalty value, and wherein, maximum penalty value is greater than suppression threshold value.
Wherein, penalty value, maximum penalty value, suppression threshold value, the concept of reusing threshold value are described above, repeat no more herein.
In preferred implementation process, frequency according to up, down event in several cycles (time period) of port calculates current penalty value according to certain algorithm, when penalty value is greater than the suppression threshold value of setting, now up, down state of port no longer reports, also port can be set to disarmed state, be shown as down on upper strata, recover reporting port state according to certain strategy.
The preferred implementation process that above-mentioned each module be combined with each other specifically see the description of Fig. 1 and Fig. 2, can repeat no more herein.
In sum, by above-described embodiment provided by the invention, current penalty value is calculated according to certain algorithm by the frequency of up, down event according to port, when penalty value is greater than the suppression threshold value of setting, now no longer report in up, down state of a period of time inner port, be down to upper strata uploaded state, frequent up, down event of port is controlled, it is made to be less than certain frequency, recover again normally to report Deng failture evacuation, to reduce the impact on communication equipment and whole network stabilization.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on network that multiple calculation element forms, alternatively, they can realize with the executable program code of calculation element, thus, they can be stored and be performed by calculation element in the storage device, and in some cases, step shown or described by can performing with the order be different from herein, or they are made into each integrated circuit modules respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a suppressing method for port oscillation, is characterized in that, comprising:
The current concussion situation of port described in timing acquisition, and be mapped as penalty value;
Judge whether described penalty value is greater than suppression threshold value;
If so, then arranging described port is failure state, and reports the state of described port to be failure state to upper-layer protocol module.
2. method according to claim 1, is characterized in that, within first time period, maps described penalty value in the following manner:
Described penalty value and the described port frequency of oscillation f within this time period becomes to increase progressively relation.
3. method according to claim 1, is characterized in that, in the other times section except first time period, maps described penalty value in the following manner:
Described penalty value and the described port concussion frequency f within this time period becomes to increase progressively relation, and to become to successively decrease relation with the time interval T between this time period and described first time period.
4. according to the method in any one of claims 1 to 3, it is characterized in that, if described penalty value is less than reuse threshold value, wherein, described in reuse threshold value and be less than or equal to described suppression threshold value, also comprise:
Judge whether described port is in disarmed state;
If so, then remove the disarmed state of described port, and report the actual concussion state of described port.
5. according to the method in any one of claims 1 to 3, it is characterized in that, if described penalty value is greater than maximum penalty value, wherein, described maximum penalty value is greater than described suppression threshold value, also comprises: described penalty value is set to described maximum penalty value.
6. a restraining device for port oscillation, is characterized in that, comprising:
Mapping block, the current concussion situation for the described port by timing acquisition is mapped as penalty value;
Judge module, for judging whether described penalty value is greater than suppression threshold value;
Processing module, for when described judge module exports as being, arranging described port is failure state, and reports the state of described port to be failure state to upper-layer protocol module.
7. device according to claim 6, is characterized in that,
Described mapping block, also within first time period, makes described penalty value and the described port frequency of oscillation f within this time period become to increase progressively relation.
8. device according to claim 6, is characterized in that,
Described mapping block, also in the other times section except first time period, make described penalty value and the described port concussion frequency f within this time period become to increase progressively relation, and to become to successively decrease relation with the time interval T between this time period and described first time period.
9. the device according to any one of claim 6 to 8, is characterized in that,
Described judge module, also for be less than in described penalty value reuse threshold value time, judge whether described port is in disarmed state, wherein, described in reuse threshold value and be less than or equal to described suppression threshold value;
Described processing module, also for when described judge module exports as being, removing the disarmed state of described port, and reporting the actual concussion state of described port.
10. the device according to any one of claim 6 to 8, is characterized in that, also comprises:
Arrange module, also for when described penalty value is greater than maximum penalty value, described penalty value is set to described maximum penalty value, wherein, described maximum penalty value is greater than described suppression threshold value.
CN201010199300.9A 2010-06-02 2010-06-02 Method and device for inhibiting port oscillation Active CN101867502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010199300.9A CN101867502B (en) 2010-06-02 2010-06-02 Method and device for inhibiting port oscillation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010199300.9A CN101867502B (en) 2010-06-02 2010-06-02 Method and device for inhibiting port oscillation

Publications (2)

Publication Number Publication Date
CN101867502A CN101867502A (en) 2010-10-20
CN101867502B true CN101867502B (en) 2015-05-20

Family

ID=42959074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010199300.9A Active CN101867502B (en) 2010-06-02 2010-06-02 Method and device for inhibiting port oscillation

Country Status (1)

Country Link
CN (1) CN101867502B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404205B (en) * 2011-11-04 2017-11-28 中兴通讯股份有限公司 A kind of method and apparatus for suppressing Multicast Routing concussion
CN104426693B (en) * 2013-08-27 2018-02-09 新华三技术有限公司 A kind of method and apparatus that forwarding unit port status management is exchanged in software defined network
CN107517114B (en) * 2016-06-16 2022-08-02 中兴通讯股份有限公司 Method and device for updating link state of communication port
CN107769951A (en) * 2016-08-22 2018-03-06 南京中兴软件有限责任公司 Chain processing method and device
CN106656608A (en) * 2016-12-27 2017-05-10 北京华为数字技术有限公司 Method for inhibiting interface oscillation, and routing device
CN110505090A (en) * 2019-08-21 2019-11-26 新华三大数据技术有限公司 A kind of IRF port controlling method and device
CN111049764B (en) * 2019-12-30 2022-03-29 上德(珠海)数据科技有限公司 Method for reducing network signal interaction interference of network switch
CN113726542B (en) * 2020-05-26 2023-04-07 中国电信股份有限公司 Routing oscillation suppression method and related equipment
CN112422442B (en) * 2020-10-21 2022-07-05 鹏城实验室 Method for processing session interrupt message of bidirectional forwarding detection protocol and storage medium
CN112965831B (en) * 2021-02-18 2023-06-13 新华三信息安全技术有限公司 Method and device for inhibiting repeated smoothing of data

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227262A (en) * 2008-02-20 2008-07-23 中兴通讯股份有限公司 System and method of route inhibiting

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227262A (en) * 2008-02-20 2008-07-23 中兴通讯股份有限公司 System and method of route inhibiting

Also Published As

Publication number Publication date
CN101867502A (en) 2010-10-20

Similar Documents

Publication Publication Date Title
CN101867502B (en) Method and device for inhibiting port oscillation
US9042216B2 (en) Loop prevention mechanism for ethernet ring protection
CN105827419B (en) Method, equipment and controller for processing forwarding equipment fault
CN105357137B (en) Message filtering method and the FPGA being applicable in, intelligent substation
WO2001031858A3 (en) Method for improving data transfer quality in data packet oriented communication networks
CN105900406A (en) Technique for network service availability
CN105515998B (en) A kind of method and system in the domain SPTN three layers of domain and two layers of domain intercommunication
US7613122B2 (en) Relay device for selecting an optimal path
CN104065571B (en) A kind of broadcasting packet processing method, apparatus and system
CN101557343A (en) Detecting and protecting method of double-layer loop in VRRP topological network
CN101917303A (en) Processing method and device of alarm dithering resistance
CN104539461A (en) Device and method for inhibitory protocol port oscillation reporting
CN111147303B (en) Message processing method, device, network system, electronic equipment and storage medium
CN103200100A (en) Method and device for packet transmitting
CN101562826B (en) Alarm merging method
CN104168192A (en) Rerouting method and device in fault network
CN107979499A (en) Network multipoint fault restoration methods based on stateful datum plane
US7580418B2 (en) Network, router device, route updating suppression method used for the same, and program thereof
CN105281927A (en) Method and device for multilink protection switching
CN112491688B (en) Loop detection method and device and readable storage medium
CN107809381B (en) Method for realizing active audit based on routing loop in SDN
CN103636168B (en) A kind of method of fault recovery, node and path-calculating element
CN106803803A (en) Virtual local area network restoration method, system and device
CN101137159A (en) Alarm information reporting method
CN105790984B (en) Configuration and implementation method of operation maintenance management function and forwarding equipment

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