CN109525424A - A kind of method and device for realizing RDI based on chip - Google Patents

A kind of method and device for realizing RDI based on chip Download PDF

Info

Publication number
CN109525424A
CN109525424A CN201811318986.1A CN201811318986A CN109525424A CN 109525424 A CN109525424 A CN 109525424A CN 201811318986 A CN201811318986 A CN 201811318986A CN 109525424 A CN109525424 A CN 109525424A
Authority
CN
China
Prior art keywords
chip
flag bit
rdi
message
ccm
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.)
Withdrawn
Application number
CN201811318986.1A
Other languages
Chinese (zh)
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201811318986.1A priority Critical patent/CN109525424A/en
Publication of CN109525424A publication Critical patent/CN109525424A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/557Error correction, e.g. fault recovery or fault tolerance

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

Present invention discloses a kind of method and device for realizing RDI based on chip, method includes that chip receives CCM message, and judges whether the CCM message has a RDI flag bit, and the state of chip is updated to when CCM message has RDI flag bit there are failures;It is that the CCM message with RDI flag bit is periodically sent to distal end there are when failure in the state of chip, after fault recovery, chip removes RDI mark in CCM message.The present invention realizes the setting and removing of RDI mark by chip, without reporting CPU to be arranged by upper layer software (applications) and removing RDI mark, alleviates the burden of CPU, improves Message processing efficiency.

Description

A kind of method and device for realizing RDI based on chip
Technical field
The present invention relates to a kind of computer network communication technology fields, realize RDI's based on chip more particularly, to a kind of Method and device.
Background technique
RDI (Remote Defect Indication, remote bug instruction) is between local terminal MEP and distal end MEP Exchange trouble situation, as local terminal MEP detect notify after defect or failure distal end MEP or distal end MEP detect defect or Local terminal MEP is notified after person's failure.After defect or failure occur, in receiving direction, exchange chip is received to be indicated with RDI The CCM message of position, and CCM message is reported into CPU, indicate that interchanger executes corresponding operation by upper layer software (applications);In sender To, it by the mark position RDI in CCM message is 1 by upper layer software (applications) and during failure continues, and after fault recovery, The same RDI mark removed by upper layer software (applications) in CCM message.
When faults frequent occurs, the CCM message received is frequently reported CPU by exchange chip, so that cpu resource is big Amount occupies, other is caused to report the message of CPU that cannot timely handle.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of method and dress that RDI is realized based on chip is provided It sets.
To achieve the above object, the following technical solutions are proposed by the present invention: a method of RDI is realized based on chip, including
CCM message is received, judges whether the CCM message has RDI flag bit, and there is RDI flag bit in CCM message When the state of chip is updated to there are failures;
It is that the CCM message with RDI flag bit is periodically sent to distal end there are when failure in the state of chip.
Preferably, the value mark that the state of the chip passes through chip status flag bit in setting chip.
Preferably, the value of the chip status flag bit are as follows:
[(LocalCheckEnableVector&LocalFailVector)]|[(RemoteCheckEnableVector& RemoteFailVector)],
Wherein, LocalFailVector is the value of local fault register storage, and the local fault register is for remembering Record local failure cause;LocalCheckEnableVector is the value that local detection enables register storage, the local inspection Enabled register is surveyed for memorization COMS clip local failure cause to be detected;RemoteFailVector is far-end fault deposit The value of device storage, the far-end fault register are used to record CCM message and the far-end fault original received with RDI flag bit Cause;RemoteCheckEnableVector is the value that enabled register storage is detected in distal end, and enabled register is detected in the distal end For memorization COMS clip far-end fault reason to be detected.
Preferably, RDI flag bit when periodically sending the CCM message with RDI flag bit to distal end, in CCM message 1 is set to by chip.
Present invention further teaches a kind of devices that RDI is realized based on chip, including
Enter direction message processing module (MPM), for receiving message and judging whether the CCM message has RDI flag bit, and The state of chip is updated to there are failures when CCM message has RDI flag bit;
Outgoing packet processing module, for receiving message and judging whether the CCM message has RDI flag bit, and The state of chip is updated to there are failures when CCM message has RDI flag bit.
Preferably, it is described enter direction message processing module (MPM) include
Message receiving module, for receiving CCM message;
Judgment module, for judging whether CCM message has RDI flag bit;
State update module, for updating the state of chip when judgment module judges that CCM message has RDI flag bit For there are failures.
Preferably, state of the state update module by the value more new chip of chip status flag bit in setting chip, institute The value for stating chip status flag bit is calculated by following formula:
PresentRDI=[(LocalCheckEnableVector&LocalFailVector)] | [(RemoteCheckEnableVector&RemoteFailVector)],
Wherein, PresentRDI is the value of chip status flag bit, and LocalFailVector is that local fault register is deposited The value of storage, the local fault register are used for minute book earth fault reason;LocalCheckEnableVector is local inspection The value of enabled register is surveyed, the local detection enables register for memorization COMS clip local failure cause to be detected; RemoteFailVector is the value of far-end fault register, and the far-end fault register is used to record the CCM report received Stationery has RDI flag bit and far-end fault reason;RemoteCheckEnableVector is that enabled register is detected in distal end Value, the distal end detect enabled register and are used for memorization COMS clip far-end fault reason to be detected.
Preferably, the outgoing packet processing module includes
Flag bit setup module is that there are by the mark position RDI in CCM message be 1 when failure for the state in chip;
Message sending module, for the CCM message with RDI flag bit to be periodically sent to distal end.
The beneficial effects of the present invention are:
The present invention is arranged by chip and removes RDI mark, without reporting CPU to be arranged by upper layer software (applications) and removing RDI Mark, alleviates the burden of CPU, improves Message processing efficiency.
Detailed description of the invention
Fig. 1 is method flow schematic diagram of the invention;
Fig. 2 is CCM message structure schematic diagram;
Fig. 3 is the device of the invention structural block diagram schematic diagram.
Specific embodiment
Below in conjunction with attached drawing of the invention, clear, complete description is carried out to the technical solution of the embodiment of the present invention.
A kind of disclosed method and device that RDI is realized based on chip, realizes RDI flag bit by chip Setting and removing, reduce the burden of CPU, improve Message processing efficiency.
As shown in Figure 1, a kind of method that RDI is realized based on chip, including
CCM message is received, and judges whether the CCM message has RDI flag bit, and is indicated in CCM message with RDI The state of chip is updated to there are failures when position;
Specifically, CCM message is used to detect the connectivity of link, in 802.1ag, by periodically sending CCM report Text detects the connectivity of link, if continuous 3 CCM message losss, then it is assumed that other side is unreachable, i.e., there are failures for link.Such as Shown in Fig. 2, the format of CCM message a comprising tag field, the tag field have 8 bits, wherein RDI mark Position is in the 8th bit of tag field, and when implementation, during failure continues, RDI flag bit is set to 1 by chip, described Chip is asic chip or fpga chip or NP chip etc..
When chip receives CCM message, first determine whether it has RDI flag bit, if it exists RDI flag bit, then Show that there are failures, at this point, further the state of more new chip is that there are failures.When it is implemented, being equipped with shaped like chips in chip State marker (PresentRDI), is used for the state of identification chip, can be identified by the way that the value of chip status marker is arranged The state of chip.
Specifically, local fault register (LocalFailVector) is equipped in chip, local detection enables register (LocalCheckEnableVector), enabled register is detected in far-end fault register (RemoteFailVector) and distal end (RemoteCheckEnableVector).Wherein, local fault register is used for minute book earth fault reason comprising multiple Bit, each bit can be used for identifying local failure cause, and the MEP id field that CCM message is modified in such as distal end is repaired It is changed to the grade not being expected to;Local detection enables register for memorization COMS clip local failure cause to be detected, packet The bit quantity contained is identical as the bit quantity that local fault register is included, and corresponds;Far-end fault deposit Device is modified CCM time interval or is stopped for recording the CCM message and far-end fault reason that receive and have RDI flag bit, such as distal end Only send CCM message etc.;Distal end detects enabled register and is used for memorization COMS clip far-end fault reason to be detected, it includes Bit quantity is identical as the bit quantity that far-end fault register is included, and corresponds.
When it is implemented, the value of chip status flag bit can be calculated by following expression:
PresentRDI=[(LocalCheckEnableVector&LocalFailVector)] | [(RemoteCheckEnableVector&RemoteFailVector)]
Further, in the state of chip there are when failure, sending to distal end to chip periodicity has RDI flag bit CCM message.
Specifically, when the status display of chip be there are when failure, chip by behind the mark position RDI 1 in CCM message, Periodically CCM message is sent to distal end.After fault recovery, the RDI flag bit in CCM message is removed by chip.Pass through Chip replaces upper layer software (applications) to carry out the setting and removing of RDI flag bit, effectively reduces the occupancy of CPU.
As shown in figure 3, a kind of device that RDI is realized based on chip, including
Enter direction message processing module (MPM), for receiving message and judging whether the CCM message has RDI flag bit, and The state of chip is updated to there are failures when CCM message has RDI flag bit;
Outgoing packet processing module is periodically to send and have more to distal end there are when failure for the state in chip There is the CCM message of RDI flag bit.
Specifically, entering direction message processing module (MPM) includes message receiving module, judgment module and state update module, In, CCM message is sent in judgment module by message receiving module for receiving CCM message;Judgment module is for judging Whether CCM message has RDI flag bit;State update module is used for the state of chip when CCM message has RDI flag bit It is updated to that there are failures.
Direction processing module includes flag bit setup module and message sending module out, wherein flag bit setup module is used It is that there are by the mark position RDI in CCM message be 1 when failure in the state in chip;Message sending module is for periodically CCM message with RDI flag bit is sent to distal end.
When implementation, the state of chip identifies core by the value of chip status marker (PresentRDI) in setting chip The state of piece, when implementation, the value of the settable chip status marker of state update module such as sets the value of chip status flag bit When being set to 1, indicate that there are failures;When setting 0 for the value of chip status flag bit, indicate that failure is not present.
Further, entering direction processing module further includes local fault register (LocalFailVector), local detection Enabled register (LocalCheckEnableVector), far-end fault register (RemoteFailVector) and distal end are detected Enabled register (RemoteCheckEnableVector).Wherein, local fault register is used for minute book earth fault reason, It includes multiple bits, and each bit can be used for identifying local failure cause (as the MEP ID word of CCM message is modified in distal end Section,Local terminal thinks that the value is incorrect);Local detection enables register and is used for memorization COMS clip local failure cause to be detected, It includes bit quantity it is identical as the bit quantity that local fault register is included, and correspond;Far-end fault Register receives CCM message and far-end fault reason with RDI flag bit for recording, as between the modification CCM time of distal end Every or stop sending CCM message etc.;Distal end detects enabled register and is used for memorization COMS clip far-end fault reason to be detected, The bit quantity for including is identical as the bit quantity that far-end fault register is included, and corresponds.
When it is implemented, state update module passes through the value of following expression computing chip state flag bit:
PresentRDI=[(LocalCheckEnableVector&LocalFailVector)] | [(RemoteCheckEnableVector&RemoteFailVector)]
The present invention is arranged by chip and removes RDI mark, without reporting CPU to be arranged by upper layer software (applications) and removing RDI Mark, alleviates the burden of CPU, improves Message processing efficiency.
Technology contents and technical characteristic of the invention have revealed that as above, however those skilled in the art still may base Make various replacements and modification without departing substantially from spirit of that invention, therefore, the scope of the present invention in teachings of the present invention and announcement It should be not limited to the revealed content of embodiment, and should include various without departing substantially from replacement and modification of the invention, and be this patent Shen Please claim covered.

Claims (8)

1. a kind of method for realizing RDI based on chip, which is characterized in that including
CCM message is received, judges whether the CCM message has RDI flag bit, and will when CCM message has RDI flag bit The state of chip is updated to that there are failures;
It is that the CCM message with RDI flag bit is periodically sent to distal end there are when failure in the state of chip.
2. the method according to claim 1, wherein the state of the chip passes through chip status in setting chip The value of flag bit identifies.
3. according to the method described in claim 2, it is characterized in that, the value of the chip status flag bit are as follows:
[(LocalCheckEnableVector&LocalFailVector)|(RemoteCheckEnableVector& RemoteFailVector)],
Wherein, LocalFailVector is the value of local fault register storage, and the local fault register is used for minute book Earth fault reason;LocalCheckEnableVector is the value that local detection enables register storage, and the local detection makes Energy register is for memorization COMS clip local failure cause to be detected;RemoteFailVector is that far-end fault register is deposited The value of storage, the far-end fault register receive CCM message and far-end fault reason with RDI flag bit for recording; RemoteCheckEnableVector is the value that enabled register storage is detected in distal end, and the distal end is detected enabled register and used In memorization COMS clip far-end fault reason to be detected.
4. the method according to claim 1, wherein periodically sending to distal end, there is the CCM of RDI flag bit to report RDI flag bit in Wen Shi, CCM message is set to 1 by chip.
5. a kind of device for realizing RDI based on chip, which is characterized in that including
Enter direction message processing module (MPM), for receiving message and judging whether the CCM message has RDI flag bit, and in CCM The state of chip is updated to that there are failures when having RDI flag bit by message;
Outgoing packet processing module, for receiving message and judging whether the CCM message has RDI flag bit, and in CCM The state of chip is updated to that there are failures when having RDI flag bit by message.
6. device according to claim 5, which is characterized in that it is described enter direction message processing module (MPM) include
Message receiving module, for receiving CCM message;
Judgment module, for judging whether CCM message has RDI flag bit;
State update module, for being updated to deposit by the state of chip when judgment module judges that CCM message has RDI flag bit In failure.
7. device according to claim 6, which is characterized in that state update module passes through chip status mark in setting chip The value of the state of the value of will position more new chip, the chip status flag bit is calculated by following formula:
PresentRDI=[(LocalCheckEnableVector&LocalFailVector)] | [(RemoteCheckEnableVector&RemoteFailVector)],
Wherein, PresentRDI is the value of chip status flag bit, and LocalFailVector is local fault register storage Value, the local fault register are used for minute book earth fault reason;LocalCheckEnableVector makes for local detection The value of energy register storage, the local detection enable register for memorization COMS clip local failure cause to be detected; RemoteFailVector is the value of far-end fault register storage, and the far-end fault register has for recording to receive The CCM message and far-end fault reason of RDI flag bit;RemoteCheckEnableVector is that enabled register is detected in distal end The value of storage, the distal end detect enabled register and are used for memorization COMS clip far-end fault reason to be detected.
8. device according to claim 5, which is characterized in that the outgoing packet processing module includes
Flag bit setup module is that there are by the mark position RDI in CCM message be 1 when failure for the state in chip;
Message sending module, for the CCM message with RDI flag bit to be periodically sent to distal end.
CN201811318986.1A 2018-11-07 2018-11-07 A kind of method and device for realizing RDI based on chip Withdrawn CN109525424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811318986.1A CN109525424A (en) 2018-11-07 2018-11-07 A kind of method and device for realizing RDI based on chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811318986.1A CN109525424A (en) 2018-11-07 2018-11-07 A kind of method and device for realizing RDI based on chip

Publications (1)

Publication Number Publication Date
CN109525424A true CN109525424A (en) 2019-03-26

Family

ID=65774264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811318986.1A Withdrawn CN109525424A (en) 2018-11-07 2018-11-07 A kind of method and device for realizing RDI based on chip

Country Status (1)

Country Link
CN (1) CN109525424A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848758A (en) * 2005-04-15 2006-10-18 大唐移动通信设备有限公司 Realizing method for supporting OAM function under multi-PHY connection
CN101499938A (en) * 2009-03-27 2009-08-05 武汉烽火网络有限责任公司 Apparatus and method for implementing high frequency continuity detection in CFM
CN101521603A (en) * 2008-12-26 2009-09-02 中兴通讯股份有限公司 Method and system for quickly detecting connectivity of link
CN102006229A (en) * 2010-11-24 2011-04-06 中兴通讯股份有限公司 Processing method, device and system of link state
CN104135404A (en) * 2014-07-30 2014-11-05 上海斐讯数据通信技术有限公司 Method for realizing high-frequency continuity check in CFM (Cathode-Follower Mixer)
CN105187278A (en) * 2015-09-21 2015-12-23 盛科网络(苏州)有限公司 Chip realization method of detecting operations, administration and maintenance (OAM) mistake without loss
CN105897446A (en) * 2014-09-30 2016-08-24 浙江亿邦通信科技股份有限公司 FPGA based EFM OAM processing method and hardware realization device
US9531625B2 (en) * 2015-01-28 2016-12-27 Ciena Corporation System and method for providing redundant network connections

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848758A (en) * 2005-04-15 2006-10-18 大唐移动通信设备有限公司 Realizing method for supporting OAM function under multi-PHY connection
CN101521603A (en) * 2008-12-26 2009-09-02 中兴通讯股份有限公司 Method and system for quickly detecting connectivity of link
CN101499938A (en) * 2009-03-27 2009-08-05 武汉烽火网络有限责任公司 Apparatus and method for implementing high frequency continuity detection in CFM
CN102006229A (en) * 2010-11-24 2011-04-06 中兴通讯股份有限公司 Processing method, device and system of link state
CN104135404A (en) * 2014-07-30 2014-11-05 上海斐讯数据通信技术有限公司 Method for realizing high-frequency continuity check in CFM (Cathode-Follower Mixer)
CN105897446A (en) * 2014-09-30 2016-08-24 浙江亿邦通信科技股份有限公司 FPGA based EFM OAM processing method and hardware realization device
US9531625B2 (en) * 2015-01-28 2016-12-27 Ciena Corporation System and method for providing redundant network connections
CN105187278A (en) * 2015-09-21 2015-12-23 盛科网络(苏州)有限公司 Chip realization method of detecting operations, administration and maintenance (OAM) mistake without loss

Similar Documents

Publication Publication Date Title
WO2015192659A1 (en) Intelligent transformer substation warning message reporting method
CN104980293B (en) A kind of OAM message is quickly sent and the method and device of detection processing
CN101193052A (en) Method and system for sub-network connection protection in multi-protocol label switching
CN103036716B (en) Link switch-over method and system
CN109218107A (en) Link switch-over method, device, the network equipment and network system
CN101132319B (en) Method for Ethernet operation and maintaining fault detection
CN103999406B (en) The processing method and device of communication path
CN108920296A (en) A kind of Fault Locating Method, device and computer readable storage medium
CN102404141A (en) Method and device of alarm inhibition
CN102868569A (en) Method, node and system for detecting performance of three-layer virtual private network
CN105187278B (en) The chip implementing method of the detection OAM mistakes of no loss
CN103684903A (en) GOOSE message anomaly online detection method
CN108090989A (en) A kind of computer room method for inspecting and system
CN105868029A (en) Consistency fault-tolerance processing method and system
CN102185719A (en) Service link tracking realization method and device
CN109525424A (en) A kind of method and device for realizing RDI based on chip
CN101163057B (en) Fault notifying method and apparatus, and service receiving method and apparatus
CN104348676B (en) A kind of chain circuit detecting method and equipment based on operation management maintainance OAM
CN104869012B (en) System and method are monitored based on dispatching of power netwoks phone comprehensive warning
CN104038387B (en) Line detecting method on frame-type switch business board
CN109144800A (en) A kind of collection method, device and the relevant device of server failure information
CN107995065A (en) Port status notifying method, device and ethernet device
CN205792657U (en) The cab integrated radio communication of dual CAN bus
CN101505242B (en) Router fault detection method and router device
CN109218180A (en) Multicast control method and device based on Local Area Network

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 215101 unit 13 / 16, 4th floor, building B, No. 5, Xinghan street, Suzhou Industrial Park, Jiangsu Province

Applicant after: Suzhou Shengke Communication Co.,Ltd.

Address before: 215000 unit 13 / 16, floor 4, building B, No. 5, Xinghan street, Suzhou Industrial Park, Wuzhong District, Suzhou City, Jiangsu Province

Applicant before: CENTEC NETWORKS (SU ZHOU) Co.,Ltd.

WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190326