CN104135404A - Method for realizing high-frequency continuity check in CFM (Cathode-Follower Mixer) - Google Patents

Method for realizing high-frequency continuity check in CFM (Cathode-Follower Mixer) Download PDF

Info

Publication number
CN104135404A
CN104135404A CN201410367736.2A CN201410367736A CN104135404A CN 104135404 A CN104135404 A CN 104135404A CN 201410367736 A CN201410367736 A CN 201410367736A CN 104135404 A CN104135404 A CN 104135404A
Authority
CN
China
Prior art keywords
mep
cpu
group
interrupt flag
interrupt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410367736.2A
Other languages
Chinese (zh)
Other versions
CN104135404B (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.)
Huzhou YingLie Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410367736.2A priority Critical patent/CN104135404B/en
Publication of CN104135404A publication Critical patent/CN104135404A/en
Application granted granted Critical
Publication of CN104135404B publication Critical patent/CN104135404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method for realizing high-frequency continuity check in a CFM (Cathode-Follower Mixer). The method comprises the following steps: dividing MEPs (Maintenance Associations End Points) on an FPGA (Field-Programmable Gate Array) into a plurality of MEP groups; creating an MEP fault state table corresponding to the MEP groups, wherein each bit in the MEP fault state table corresponds to the current fault state of one MEP; creating an interrupt flag bit table corresponding to the MEP groups; and traversing the interrupt flag bit table by using a CPU (Central Processing Unit), performing CPU interrupt on interrupt flag bits 1 to traverse corresponding MEP groups, informing a user of an MEP fault, and clearing corresponding interrupt flag bits. Through adoption of the method provided by the invention, if a fault occurs in a current MEP group, CPU interrupt is performed on corresponding flag bits 1 to traverse MEPs of corresponding MEP groups without traversing all MEPs, so that the CPU traversing time of the MEPs is shortened greatly particularly when an MEP specification is large, and the burden of the CPU is relieved greatly.

Description

A kind of method that realizes the detection of CFM medium-high frequency continuity
Technical field
The present invention relates to Ethernet operation based on IEEE802.1ag standard, administer and maintain, relate in particular to a kind of method that the CFM of realization medium-high frequency continuity detects.
Background technology
Continuity detection (CC, Continuity Check) function is that in CFM is substantially the most also most important function, and the realization that it is CFM provides may.
The thinking that CC function realizes is: when corresponding correct Ethernet Operations, Administration and Maintenance (OAM has been set up and configured to network environment, Operation Administration and Maintains) configuration after, at same maintenance collection (MA, Maintenance Associations) in local maintenance collection end points (MEP, Maintenance Associations End Point) can send CCM (Continuity Check Message) to every other non-local MEP; Other non-local MEP also can send CCM to all opposite ends simultaneously.Notice that CC function is unidirectional, that is to say that a MEP only periodically sends, do not expect to obtain replying.After local MEP receives that far-end sends to the CCM of oneself, first check that whether the information in this CCM is effective, if the MEP CCM database of the local storage of contrast effectively again, if the entry of this MEP is not set up a new MEP entry with regard to the content of learning in CCM; If had, do not operate.Now the link of a two-way connection is just guaranteed.
The transmission gap periods that has defined CCM in IEEE802.1ag agreement has 3.33 milliseconds, 10 milliseconds, 100 milliseconds, 1 second, 10 seconds, 1 minute, 10 minutes.For the CCM gap periods that is less than 1 second, the way that industry is general is all to realize by FPGA (Field-Programmable Gate Array).As shown in Figure 1, MEP (Maintenance association End Point) is deployed on FPGA, MEP can support 3.33 milliseconds of CCM cycles like this, and namely 3.33 milliseconds send CCM, and 10 milliseconds are detected link failure and notify CPU by interrupt mode.The problem that this scheme exists is that MEP specification can not be too much.If the specification of MEP is too much, each MEP detects link failure within the same short time, and the interruption meeting of generation forms and impacts CPU, affects the operation of other business.
Summary of the invention
Given this, a kind of method that CFM medium-high frequency continuity detects that realizes of the CPU of minimizing burden is provided.
Realize the method that CFM medium-high frequency continuity detects, comprising:
Be divided into some MEP group according to the MEP on FPGA;
The corresponding MEP establishment MEP of group fault state table, each corresponding current malfunction of MEP of described MEP fault state table;
Correspondence MEP group creates interrupt identification bit table;
CPU traversal interrupt identification bit table, the generation CPU that interrupt flag bit is 1 interrupts going to travel through corresponding MEP group, informs MEP fault described in user, removes corresponding interrupt flag bit.
Preferably, every 64 MEP are a MEP group.
Preferably, when MEP fault state table changes, putting corresponding interrupt flag bit is 1.
Preferably, the step of described CPU traversal interrupt identification bit table specifically comprises:
Meeting interrupt flag bit is that 1 generation CPU interrupts;
CPU travels through the MEP group that described interrupt flag bit is corresponding;
Read current MEP fault state table, and carry out XOR with the fault state table that the last time reads, inform the vicissitudinous MEP of user MEP fault, preserve current MEP malfunction;
Remove corresponding interrupt flag bit.
Preferably, the method that the described CFM of realization medium-high frequency continuity detects also comprises: according to user's requirement, and the MEP malfunction of inquiry MEP group.
Adopt after the inventive method, MEP is divided into groups, according to MEP fault state table, if when current MEP group does not have MEP fault, corresponding interrupt flag bit is not that 1, CPU need not travel through to look into it and sees if there is MEP fault, if when there is fault in current MEP group, respective flag position is 1, produce the MEP that CPU interrupts going to travel through corresponding MEP group, and need not travel through all MEP, especially in the time that MEP specification is larger, the time of CPU traversal MEP is reduced greatly, greatly alleviated the burden of CPU.
Brief description of the drawings
Fig. 1 is the method schematic diagram that the existing CFM of realization medium-high frequency continuity detects;
Fig. 2 is that the present invention realizes the method flow diagram that CFM medium-high frequency continuity detects;
Fig. 3 is the concrete grammar flow chart of step S400 in Fig. 2.
Embodiment
In order to make relevant technical staff in the field understand better technical scheme of the present invention, below in conjunction with the accompanying drawing of embodiment of the present invention, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described execution mode is only the present invention's part execution mode, instead of whole execution modes.
Below in conjunction with drawings and embodiments, the invention will be further described.
Consult Fig. 2, the method detecting for realizing CFM medium-high frequency continuity in a kind of execution mode provided by the invention, comprising:
Step S100, is divided into some MEP group according to the MEP on FPGA;
On FPGA, MEP has different specifications.For example, the specification of MEP can be 1K or 4K.
In a preferred embodiment, every 64 MEP are a MEP group, if the i.e. specification of 4K can be divided into 64 MEP groups.Be appreciated that can 128 MEP be also a MEP group, determine according to the specification of FPGA.
Step S200, the corresponding MEP establishment MEP of group fault state table, each corresponding current malfunction of MEP of MEP fault state table;
In MEP fault state table, " 1 " represents corresponding MEP fault, and " 0 " represents that MEP is normal.MEP malfunction is not stop changing, but only has CPU to interrupt going to read, just clear current MEP malfunction.
Step S300, corresponding MEP group creates interrupt identification bit table;
In interrupt identification bit table, " 1 " represents to produce CPU and interrupts going to travel through corresponding MEP group, and " 0 " represents that not needing to produce CPU interrupts.In the time that MEP fault state table changes, putting corresponding interrupt flag bit is 1.
Step S400, CPU traversal interrupt identification bit table, the generation CPU that interrupt flag bit is 1 interrupts going to travel through corresponding MEP group, informs user MEP fault, removes corresponding interrupt flag bit.
When CPU traversal interrupt identification bit table, if interrupt flag bit is 1, produces CPU and interrupt going to travel through corresponding MEP group, inform user MEP fault, so that staff repairs, clear corresponding interrupt flag bit.
In a preferred embodiment, consult Fig. 3, step S400 comprises:
Step S401, meeting interrupt flag bit is that 1 generation CPU interrupts;
Step S402, CPU travels through the MEP group that described interrupt flag bit is corresponding;
Step S403, reads current MEP fault state table, and carries out XOR with the fault state table that the last time reads, and informs the vicissitudinous MEP of user MEP fault, preserves current MEP malfunction;
Step S404, removes corresponding interrupt flag bit.
By step S401~S404, interrupt going to travel through MEP group at CPU, read MEP fault state table, contrast current MEP malfunction and last MEP malfunction, just can the vicissitudinous MEP of clear MEP malfunction, and inform user.
In a preferred embodiment, the method that realizes the detection of CFM medium-high frequency continuity also comprises: according to user's requirement, and the MEP malfunction of inquiry MEP group.
In above-mentioned steps, when CPU interrupts going to travel through MEP group corresponding to interrupt flag bit, only can inform the vicissitudinous MEP of user MEP malfunction, not informing of other, at this moment, if when user wonders other MEP malfunctions, interrupt going to inquire about corresponding MEP group by producing CPU, all members' of this MEP group MEP malfunction is informed to user.
Adopt after the inventive method, MEP is divided into groups, according to MEP fault state table, if when current MEP group does not have MEP fault, corresponding interrupt flag bit is not that 1, CPU need not travel through to look into it and sees if there is MEP fault, if when there is fault in current MEP group, respective flag position is 1, produce the MEP that CPU interrupts going to travel through corresponding MEP group, and need not travel through all MEP, especially in the time that MEP specification is larger, time to CPU traversal MEP reduces greatly, has greatly alleviated the burden of CPU.
Below only expressed several execution mode of the present invention, it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (5)

1. realize the method that CFM medium-high frequency continuity detects, it is characterized in that, comprising:
Be divided into some MEP group according to the MEP on FPGA;
The corresponding MEP establishment MEP of group fault state table, each corresponding current malfunction of MEP of described MEP fault state table;
Correspondence MEP group creates interrupt identification bit table;
CPU traversal interrupt identification bit table, the generation CPU that interrupt flag bit is 1 interrupts going to travel through corresponding MEP group, informs MEP fault described in user, removes corresponding interrupt flag bit.
2. the method that realizes the detection of CFM medium-high frequency continuity according to claim 1, is characterized in that, the step of described CPU traversal interrupt identification bit table specifically comprises:
Meeting interrupt flag bit is that 1 generation CPU interrupts;
CPU travels through the MEP group that described interrupt flag bit is corresponding;
Read current MEP fault state table, and carry out XOR with the fault state table that the last time reads, inform the vicissitudinous MEP of user MEP fault, preserve current MEP malfunction;
Remove corresponding interrupt flag bit.
3. the method that realizes the detection of CFM medium-high frequency continuity according to claim 1, is characterized in that, every 64 MEP are a MEP group.
4. the method that realizes the detection of CFM medium-high frequency continuity according to claim 1, is characterized in that, when MEP fault state table changes, putting corresponding interrupt flag bit is 1.
5. the method that realizes the detection of CFM medium-high frequency continuity according to claim 1, is characterized in that, according to user's requirement, and the MEP malfunction of inquiry MEP group.
CN201410367736.2A 2014-07-30 2014-07-30 A kind of method for realizing the detection of CFM medium-high frequencies continuity Active CN104135404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410367736.2A CN104135404B (en) 2014-07-30 2014-07-30 A kind of method for realizing the detection of CFM medium-high frequencies continuity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410367736.2A CN104135404B (en) 2014-07-30 2014-07-30 A kind of method for realizing the detection of CFM medium-high frequencies continuity

Publications (2)

Publication Number Publication Date
CN104135404A true CN104135404A (en) 2014-11-05
CN104135404B CN104135404B (en) 2017-12-05

Family

ID=51807933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410367736.2A Active CN104135404B (en) 2014-07-30 2014-07-30 A kind of method for realizing the detection of CFM medium-high frequencies continuity

Country Status (1)

Country Link
CN (1) CN104135404B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547303A (en) * 2017-07-06 2018-01-05 中国南方电网有限责任公司 The method for supporting the IED equipment processing NodesTable of PRP or HSR agreements
CN109525424A (en) * 2018-11-07 2019-03-26 盛科网络(苏州)有限公司 A kind of method and device for realizing RDI based on chip

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369922A (en) * 2008-09-28 2009-02-18 华为技术有限公司 Connectivity detection method and maintenance field terminal and system
CN101499938A (en) * 2009-03-27 2009-08-05 武汉烽火网络有限责任公司 Apparatus and method for implementing high frequency continuity detection in CFM
US8400910B1 (en) * 2007-04-13 2013-03-19 World Wide Packets, Inc. Associated tunnels terminating on different packet switches and relaying packets via different tunnel combinations

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8400910B1 (en) * 2007-04-13 2013-03-19 World Wide Packets, Inc. Associated tunnels terminating on different packet switches and relaying packets via different tunnel combinations
CN101369922A (en) * 2008-09-28 2009-02-18 华为技术有限公司 Connectivity detection method and maintenance field terminal and system
CN101499938A (en) * 2009-03-27 2009-08-05 武汉烽火网络有限责任公司 Apparatus and method for implementing high frequency continuity detection in CFM

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547303A (en) * 2017-07-06 2018-01-05 中国南方电网有限责任公司 The method for supporting the IED equipment processing NodesTable of PRP or HSR agreements
CN107547303B (en) * 2017-07-06 2021-07-09 中国南方电网有限责任公司 Method for processing NodesTable by IED equipment supporting PRP or HSR protocol
CN109525424A (en) * 2018-11-07 2019-03-26 盛科网络(苏州)有限公司 A kind of method and device for realizing RDI based on chip

Also Published As

Publication number Publication date
CN104135404B (en) 2017-12-05

Similar Documents

Publication Publication Date Title
US10833932B2 (en) Ad hoc wireless mesh network
EP2507944B1 (en) Method and apparatus for supporting mismatch detection
US10237124B2 (en) Network operation, administration, and maintenance (OAM) method, apparatus, and system
CN104378232A (en) Schizencephaly finding and recovering method and device under main joint and auxiliary joint cluster networking mode
EP2961101A1 (en) Method, system and optical network terminal for ethernet performance detection
US10862735B2 (en) Method and apparatus for implementing operation, administration, and maintenance function
US9794122B2 (en) Method for propagating network management data for energy-efficient IoT network management and energy-efficient IoT node apparatus
CN102082710A (en) Method and system for implementing detection on network topology fault of nodes in network
CN103825759A (en) Method and system for acquiring network topological information
CN104185196A (en) Wireless controller disaster recovery method and system thereof
CN104135404A (en) Method for realizing high-frequency continuity check in CFM (Cathode-Follower Mixer)
CN102143011B (en) Device and method for realizing network protection
CN103118387A (en) Lightweight access point (AP) redundancy access control method of active standby mode
CN103929732A (en) Method for managing terminal peripheral and M2M gateway
CN103634166A (en) Equipment survival detection method and equipment survival detection device
CN105379180A (en) Connectivity check method of service stream link, related apparatus and system
CN203416290U (en) Internet of Things system by redundancy design
CN106713025B (en) A kind of network disaster tolerance method for synchronizing information
CN104202193A (en) Distributed protection link fault detection method
CN103916458A (en) Power enterprise internal application program remote monitoring system based on short message technology
CN104869025A (en) PTN (Packet Transport Network) service configuration parameter detecting method and system
US9525590B2 (en) Relay system and relay device
CN204272161U (en) Warning switch
CN107615708A (en) Alarm information reporting method and device
CN104615509A (en) System for improving running reliability of portal website

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201228

Address after: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 No. 3666 Sixian Road, Songjiang District, Shanghai

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20211124

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method of High Frequency Continuity Detection in CFM

Effective date of registration: 20221205

Granted publication date: 20171205

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003458

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231205

Granted publication date: 20171205

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003458

PC01 Cancellation of the registration of the contract for pledge of patent right