CN103312633A - Method and device for enabling switch chip to generate OAM (Operation Administration and Management) messages at constant speed - Google Patents

Method and device for enabling switch chip to generate OAM (Operation Administration and Management) messages at constant speed Download PDF

Info

Publication number
CN103312633A
CN103312633A CN2013101781278A CN201310178127A CN103312633A CN 103312633 A CN103312633 A CN 103312633A CN 2013101781278 A CN2013101781278 A CN 2013101781278A CN 201310178127 A CN201310178127 A CN 201310178127A CN 103312633 A CN103312633 A CN 103312633A
Authority
CN
China
Prior art keywords
mep
ccm
table item
item index
current
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
CN2013101781278A
Other languages
Chinese (zh)
Other versions
CN103312633B (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.)
Suzhou Centec Communications 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 CN201310178127.8A priority Critical patent/CN103312633B/en
Publication of CN103312633A publication Critical patent/CN103312633A/en
Application granted granted Critical
Publication of CN103312633B publication Critical patent/CN103312633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for enabling a switch chip to generate OAM (Operation Administration and Management) messages at a constant speed, which belong to the field of network communication. Different CCM (Continuity Check Messages) sending frequencies are supported by multiple timer intervals. A register is used for configuring the adjustable delay time of MEP (Maintenance Endpoint) tables and adjusting the regular CCM sending time of each MEP. All the MEPs on the current time shaft can be processed at just one Interval, and the processing time dots of all the MEPs are evenly scattered on the dots of the Interval/(MEP End-MEP Start+1), so that the CCM sending frequency is set as the Interval, and the processing time of all the MEPs is evenly scattered. The method and the device can ensure that CCMs are generated by each MEP at a correct frequency, messages needing to be transmitted by the network are transmitted at a constant speed to an utmost extent, and the impact on the flow of network equipment is reduced.

Description

Exchanger chip at the uniform velocity produces the method and apparatus of OAM message
Technical field
The present invention relates to network communication field, especially relate to the method and apparatus that a kind of exchanger chip at the uniform velocity produces the OAM message.
Background technology
Ethernet technology has obtained generally using with advantages such as its good economy, interoperability and ease for use.Carrier Ethernet becomes the important research field of current network technology, Carrier Ethernet must provide the functions such as good service management, fault detect, performance monitoring, and the core of this function is OAM (Operation Administration and Maintenance).The Ethernet OAM initial release is by the 802.1ag definition of IEEE tissue, later stage is in order better to adapt to the application of transmission Ethernet, ITU tissue issue ITU-T.Y1731 standard, 802.1ag is revised and improves, the further perfect standard of Ethernet OAM wherein mainly defines two large class functions: fault management, performance monitoring.Fault management mainly comprises: connectivity checks (Ethernet Continuity Check), loopback detection (Ethernet Loopback), path detection (Ethernet Link Trace), far-end fault indication functions such as (Ethernet Remote Defect Indication); Performance monitoring mainly comprises packet loss detection (Frame Loss), Time delay measurement (Frame Delay), throughput measurement (Throughput measurement).Wherein connectivity checks is the difficult point that realizes, must rely on the message that chip produces CCM fast, accurately, in order to satisfy different business demands, has defined the transmission frequency of 7 CCM: 3.33ms in the ethernet standard, 10ms, 100ms, 1s, 10s, 1min, 10min.
The growth of application demand is halted never, and in recent years, the technology of MPLS is applied to the transmission network field, and the PTN technology begins to be accepted by increasing operator.IETF becomes current MPLS-TP standard agreement family in the original MPLS technology of the basis of T-MPLS expansion, OAM also becomes the core content of MPLS-TP, at present popular MPLS-TP OAM has two kinds: a kind of ITU-Y1731 of being based on, redefine for MPLS and to be encapsulated into the OAM that adapts to the MPLS-TP network, the transmission frequency of its CCM defines same ITU-Y1731; The expansion that another kind is based on BFD comes the functions such as supporting business management, fault detect, performance monitoring, and the transmission frequency of its CCM is more flexible, can be configured to the arbitrary value that 1ms is unit.
According to above-mentioned description, although the optional frequency value that CCM sends is a lot, generally select according to business in the practical application, so the actual value of using is limited, and the above CCM of 1s can be finished by CPU fully.In addition, have a large amount of MEP at same equipment, equipment faces two greatly challenges: the first, guarantee that each MEP produces the CCM message with correct frequency; The second, disperse as much as possible each MEP to produce the time point of CCM, namely allow the required transmission of network message as much as possible at the uniform velocity, reduce the flow attack to the network equipment.How in chip, to support above-mentioned 2 points, present or new research direction.
Summary of the invention
The object of the present invention is to provide a kind of exchanger chip at the uniform velocity to produce the method and apparatus of OAM message, by adjusting the time of each MEP list item transmission CCM message, realize the at the uniform velocity transmission of CCM message.
For achieving the above object, the present invention proposes following technical scheme: a kind of exchanger chip at the uniform velocity produces the method for OAM message, comprising:
S1, parameter in the initialization chip also reads, and described parameter comprises at least: the set time (MEPProcessFixDelay) of initial MEP table item index (MEPIndex), the processing time (CurrentCount) that finishes MEP table item index (MEPIndex), CCM message transmission cycle (Interval), present node, current pointer (CurrentIndex), each MEP list item transmission CCM message;
S2 judges that current MEP table item index is whether at initial MEP table item index with finish between the MEP table item index;
S3 judges whether the processing time of present node is the set time that each MEP sends CCM;
S4 judges that whether current MEP table item index is greater than finishing the MEP table item index.
Preferably, described step S1 specifically comprises:
S11 specifies a continuous MEP address space corresponding to each time shaft by register;
S12 by formula MEPProcessFixDelay=Interval/ (MEPEnd-MEPStart+1)-AdjustDelay, calculates the set time that each MEP sends CCM;
Wherein, AdjustDelay is the adjustment time of delay of MEP list item.
The value of described AdjustDelay is used for adjusting the set time that each MEP sends CCM by register configuration.
Described step S2 specifically comprises:
S21 if step S2 is judged as when being, then records the processing time of current processing node;
S22 if step S2 is judged as when no, then jumps to step S1, re-starts initialization.
Described step S3 specifically comprises:
S31 if step S5 is judged as when being, then processes current MEP list item and carries out the transmission of CCM message, and current MEP table item index value is increased progressively 1;
S32, if not, then the processing time with present node increases progressively whether the processing time that re-starts present node after 1 is the judgement that each MEP sends the set time of CCM, until after the processing time of present node equaled set time that each MEP sends CCM, the processing time of described present node stopped circulation and increases progressively 1.
Described step S4 specifically comprises:
S41, if, then enter step S1, carry out circular flow after re-starting initialization;
S42 if not, enters step S21 after then current MEP table item index being increased progressively 1 and carries out circular flow.
Exchanger chip at the uniform velocity produces the device of OAM message, comprising:
Initialization module, the set time of the initial MEP table item index in the initialization chip, the processing time that finishes MEP table item index, CCM message transmission cycle, present node, current pointer, each MEP list item transmission CCM message, and read;
The first judge module is used for judging current MEP table item index value whether at initial MEP table item index with finish between the MEP table item index, if, then record processing time of current processing node, if not, then return described initialization module, re-start initialization;
The second judge module, whether the processing time of judging present node is the set time that each MEP sends CCM, if, then process current MEP list item and carry out the transmission of CCM message, and current MEP table item index increased progressively 1, whether if not, then processing time of present node is increased progressively the processing time that re-starts present node after 1 is the judgement that each MEP sends the set time of CCM;
Whether the 3rd judge module is used for judging current MEP table item index greater than end MEP table item index, if, then enter initialization module, carry out circular flow after re-starting initialization, if not, enter the first judge module after then current MEP table item index being increased progressively 1 and carry out circular flow.
Specify a continuous MEP address space corresponding to each time shaft by register in the described initialization module, and by formula MEPProcessFixDelay=Interval/ (MEPEnd-MEPSta rt+1)-AdjustDelay, calculate the set time that each MEP sends CCM.
The value of described AdjustDelay is used for adjusting the set time that each MEP sends CCM by register configuration.
The invention has the beneficial effects as follows:
(1) circulates to support different transmission frequency by a plurality of clocks, guarantee that each MEP list item produces the CCM message with correct frequency;
(2) adjustment of register pair MEP list item is configured time of delay, be used for adjusting the set time that each MEP sends CCM, can just in time equal an Interval so that handle all MEP on the current time axle, and the processing time of each MEP point, on average be scattered on the point of Interval/ (MEPEnd-MEPStart+1), thereby the transmission frequency that makes CCM is Interval, and the processing time of each MEP on average is scattered, and reaches uniform generation CCM message.
Description of drawings
Fig. 1 is the schematic flow sheet of realizing at the uniform velocity producing the OAM message on time shaft example of the present invention;
Fig. 2 is the schematic flow sheet of Fig. 1 step S1 of the present invention;
Fig. 3 is that the present invention expands to the module diagram of realizing at the uniform velocity producing the OAM message on a plurality of time shaft examples;
Fig. 4 is the module diagram that the present invention realizes at the uniform velocity producing the OAM message device.
Embodiment
Below in conjunction with accompanying drawing of the present invention, the technical scheme of the embodiment of the invention is carried out clear, complete description.
Each time shaft example is supported a specific CCM transmission frequency, and the continuous space of this section is specified by register MEPStart, MEPEnd in the corresponding continuous MEP address of each time shaft, and the processing logic of each time shaft example is identical.
As shown in Figure 1, be the handling process that realizes at the uniform velocity producing the OAM message on the time shaft example, specifically comprise:
S1, parameter in the initialization chip also reads, and parameter comprises at least: the set time (MEPProcessFixDelay) of initial MEP table item index (MEPIndex), the processing time (CurrentCount) that finishes MEP table item index (MEPIndex), CCM message transmission cycle (Interval), present node, current pointer (CurrentIndex), each MEP list item transmission CCM message;
S2 judges that current MEP table item index is whether at initial MEP table item index with finish between the MEP table item index;
S21 if step S2 is judged as when being, then records the processing time of current processing node;
S22 if step S2 is judged as when no, then jumps to step S1, re-starts initialization;
S3 judges whether the processing time of present node is the set time that each MEP sends CCM;
S31 if step S5 is judged as when being, then processes current MEP list item and carries out the transmission of CCM message, after the CCM message is sent completely, current MEP table item index value is increased progressively 1;
S32, if not, then the processing time with present node increases progressively whether the processing time that re-starts present node after 1 is the judgement that each MEP sends the set time of CCM, until after the processing time of present node equaled set time that each MEP sends CCM, the processing time of described present node stopped circulation and increases progressively 1;
S4 judges that whether current MEP table item index is greater than finishing the MEP table item index;
S41, if, then enter step S1, carry out circular flow after re-starting initialization;
S42 if not, enters step S21 after then current MEP table item index being increased progressively 1 and carries out circular flow.
Preferably, as shown in Figure 2, step S1 specifically comprises:
S11 specifies a continuous MEP address space corresponding to each time shaft by register;
S12, by formula MEPProcessFixDelay=Interval/ (MEPEnd-MEPStart+1)-AdjustDelay, calculate the set time that each MEP sends CCM, wherein, the value of AdjustDelay is used for adjusting the set time that each MEP sends CCM by register configuration; By above-mentioned configuration, can be so that all MEP that handle on the current time axle just in time equal an Interval, and the processing time of each MEP point, on average be scattered on the point of Interval/ (MEPEnd-MEPStart+1), thereby so that the transmission frequency of CCM is Interval, the processing time of each MEP on average is scattered, and realizes producing uniformly the CCM message.
As shown in Figure 3, at the uniform velocity produce the apparatus module figure of OAM message for a kind of exchanger chip of the present invention, comprising:
Initialization module, the set time of the initial MEP table item index in the initialization chip, the processing time that finishes MEP table item index, CCM message transmission cycle, present node, current pointer, each MEP list item transmission CCM message, and read;
Wherein, initial MEP table item index and end MEP table item index are configured by register, be used for specifying a continuous MEP list item address space, and by formula MEPProcessFixDelay=Interval/ (MEPEnd-MEPStart+1)-AdjustDelay, calculate the set time that each MEP sends CCM.
The first judge module is used for judging current MEP table item index value whether at initial MEP table item index with finish between the MEP table item index, if, then record processing time of current processing node, if not, then return described initialization module, re-start initialization.
The second judge module, whether the processing time of judging present node is the set time that each MEP sends CCM, if, then process current MEP list item and carry out the transmission of CCM message, and current MEP table item index increased progressively 1, whether if not, then processing time of present node is increased progressively the processing time that re-starts present node after 1 is the judgement that each MEP sends the set time of CCM.
Whether the 3rd judge module is used for judging current MEP table item index greater than end MEP table item index, if, then enter initialization module, carry out circular flow after re-starting initialization, if not, enter the first judge module after then current MEP table item index being increased progressively 1 and carry out circular flow.
Further, the present invention can circulate to support different transmission frequency by a plurality of clocks, as shown in Figure 4, have a plurality of time shaft examples, each time shaft example is controlled one group of MEP list item of identical Interval, can realize that the MEP list item produces the CCM message with different correct frequencies, and disperse as much as possible each MEP to produce the time point of CCM on each time shaft example, so that the required message of network can as much as possible at the uniform velocity, reduce the flow attack to the network equipment.
In sum, the present invention can guarantee that each MEP produces the CCM message with correct frequency; And can disperse as much as possible each MEP to produce the time point of CCM, namely allow the required transmission of network message as much as possible at the uniform velocity, reduce the flow attack to the network equipment.
Technology contents of the present invention and technical characterictic have disclosed as above; yet those of ordinary skill in the art still may be based on teaching of the present invention and announcements and are done all replacement and modifications that does not deviate from spirit of the present invention; therefore; protection range of the present invention should be not limited to the content that embodiment discloses; and should comprise various do not deviate from replacement of the present invention and modifications, and contained by the present patent application claim.

Claims (9)

1. exchanger chip at the uniform velocity produces the method for OAM message, it is characterized in that, comprising:
S1, parameter in the initialization chip also reads, and described parameter comprises at least: the set time (MEPProcessFixDelay) of initial MEP table item index (MEPIndex), the processing time (CurrentCount) that finishes MEP table item index (MEPIndex), CCM message transmission cycle (Interval), present node, current pointer (CurrentIndex), each MEP list item transmission CCM message;
S2 judges that current MEP table item index is whether at initial MEP table item index with finish between the MEP table item index;
S3 judges whether the processing time of present node is the set time that each MEP sends CCM;
S4 judges that whether current MEP table item index is greater than finishing the MEP table item index.
2. exchanger chip according to claim 1 at the uniform velocity produces the method for OAM message, it is characterized in that, described step S1 specifically comprises:
S11 specifies a continuous MEP address space corresponding to each time shaft by register;
S12 by formula MEPProcessFixDelay=Interval/ (MEPEnd-MEPStart+1)-AdjustDelay, calculates the set time that each MEP sends CCM;
Wherein, AdjustDelay is the adjustment time of delay of MEP list item.
3. exchanger chip according to claim 2 at the uniform velocity produces the method for OAM message, it is characterized in that, the value of described AdjustDelay is used for adjusting the set time that each MEP sends CCM by register configuration.
4. exchanger chip according to claim 1 at the uniform velocity produces the method for OAM message, it is characterized in that, described step S2 specifically comprises:
S21 if step S2 is judged as when being, then records the processing time of current processing node;
S22 if step S2 is judged as when no, then jumps to step S1, re-starts initialization.
5. exchanger chip according to claim 1 at the uniform velocity produces the method for OAM message, it is characterized in that, described step S3 also comprises:
S31 if step S5 is judged as when being, then processes current MEP list item and carries out the transmission of CCM message, and current MEP table item index value is increased progressively 1;
S32, if not, then the processing time with present node increases progressively whether the processing time that re-starts present node after 1 is the judgement that each MEP sends the set time of CCM, until after the processing time of present node equaled set time that each MEP sends CCM, the processing time of described present node stopped circulation and increases progressively 1.
6. exchanger chip according to claim 1 at the uniform velocity produces the method for OAM message, it is characterized in that, described step S4 also comprises:
S41, if, then enter step S1, carry out circular flow after re-starting initialization;
S42 if not, enters step S21 after then current MEP table item index being increased progressively 1 and carries out circular flow.
7. exchanger chip at the uniform velocity produces the device of OAM message, it is characterized in that, comprising:
Initialization module, the set time of the initial MEP table item index in the initialization chip, the processing time that finishes MEP table item index, CCM message transmission cycle, present node, current pointer, each MEP list item transmission CCM message, and read;
The first judge module is used for judging that current MEP table item index value is whether at initial MEP table item index with finish between the MEP table item index;
The second judge module is used for judging whether the processing time of present node is the set time that each MEP sends CCM;
The 3rd judge module is used for judging that whether current MEP table item index is greater than finishing the MEP table item index.
8. exchanger chip according to claim 7 at the uniform velocity produces the device of OAM message, it is characterized in that, specify a continuous MEP address space corresponding to each time shaft by register in the described initialization module, and by formula MEPProcessFixDelay=Interval/ (MEPEnd-MEPStart+1)-AdjustDelay, calculate the set time that each MEP sends CCM.
9. exchanger chip according to claim 7 at the uniform velocity produces the device of OAM message, it is characterized in that, the value of described AdjustDelay is used for adjusting the set time that each MEP sends CCM by register configuration.
CN201310178127.8A 2013-05-14 2013-05-14 Exchanger chip at the uniform velocity produces the method and apparatus of OAM message Active CN103312633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310178127.8A CN103312633B (en) 2013-05-14 2013-05-14 Exchanger chip at the uniform velocity produces the method and apparatus of OAM message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310178127.8A CN103312633B (en) 2013-05-14 2013-05-14 Exchanger chip at the uniform velocity produces the method and apparatus of OAM message

Publications (2)

Publication Number Publication Date
CN103312633A true CN103312633A (en) 2013-09-18
CN103312633B CN103312633B (en) 2016-07-06

Family

ID=49137428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310178127.8A Active CN103312633B (en) 2013-05-14 2013-05-14 Exchanger chip at the uniform velocity produces the method and apparatus of OAM message

Country Status (1)

Country Link
CN (1) CN103312633B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130822A (en) * 2016-07-18 2016-11-16 醴陵恒茂电子科技有限公司 Uniformly send the method and system of CCM message
CN106130823A (en) * 2016-07-18 2016-11-16 醴陵恒茂电子科技有限公司 Uniformly send the method and system of BFD message
CN106526461A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Embedded real-time back pressure verification method for flow control
CN111988158A (en) * 2019-05-23 2020-11-24 北京物芯科技有限责任公司 Chip-level OAM message sending method, device, system and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970171A (en) * 2012-12-06 2013-03-13 盛科网络(苏州)有限公司 Method for realizing multiple operations, administration and maintenance (OAM) time precision through chip level

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970171A (en) * 2012-12-06 2013-03-13 盛科网络(苏州)有限公司 Method for realizing multiple operations, administration and maintenance (OAM) time precision through chip level

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄丽: "基于NP路由器的以太网OAM研究与实现", 《万方学位论文》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130822A (en) * 2016-07-18 2016-11-16 醴陵恒茂电子科技有限公司 Uniformly send the method and system of CCM message
CN106130823A (en) * 2016-07-18 2016-11-16 醴陵恒茂电子科技有限公司 Uniformly send the method and system of BFD message
CN106130823B (en) * 2016-07-18 2019-09-03 湖南恒茂高科股份有限公司 Uniformly send the method and system of BFD message
CN106130822B (en) * 2016-07-18 2019-09-03 湖南恒茂高科股份有限公司 Uniformly send the method and system of CCM message
CN106526461A (en) * 2016-12-30 2017-03-22 盛科网络(苏州)有限公司 Embedded real-time back pressure verification method for flow control
CN106526461B (en) * 2016-12-30 2018-12-28 盛科网络(苏州)有限公司 For the method for the embedded real-time back-pressure verifying of flow control
CN111988158A (en) * 2019-05-23 2020-11-24 北京物芯科技有限责任公司 Chip-level OAM message sending method, device, system and storage medium

Also Published As

Publication number Publication date
CN103312633B (en) 2016-07-06

Similar Documents

Publication Publication Date Title
US10756994B2 (en) Switch, controller, system, and link quality detection method
US10541899B2 (en) Data packet sending method and apparatus in IPv6 network
EP2690882B1 (en) Iptv fault location method, device and system
CN111049691B (en) Network fault positioning method, server, acquisition probe and storage medium
CN103312633A (en) Method and device for enabling switch chip to generate OAM (Operation Administration and Management) messages at constant speed
US10129722B2 (en) Service processing method and network device
US9043851B2 (en) Methods, systems, and computer readable media for measuring multicast latency
CN106533803B (en) CPE configuration method and device based on TR069 agreement
CN103067113A (en) Method and device capable of achieving peer-to-peer (PTP) time synchronization and based on aggregation links
CN104980368A (en) Bandwidth guarantee method and apparatus in software defined network (SDN)
WO2022089234A1 (en) Fault processing method, server, electronic device, and readable storage medium
CN109639534A (en) A kind of method, apparatus and computer storage medium of test network transmission performance
CN103517155A (en) Flow dynamic control method and device based on monitor service
CN105379210A (en) Data flow processing method and apparatus
EP3487122A1 (en) Resource allocation method, device and system
CN103036724B (en) State information transmission method, the network equipment and unit equipment
CN107612937A (en) Detection to DHCP extensive aggressions and defence method under a kind of SDN
CN111817962B (en) Android system multi-network-card intelligent routing method
EP2405652A1 (en) Method and device for reducing interruption time of internet protocol television multicast stream
WO2015024523A1 (en) Ip bearer network failure determining method and system
US20160261345A1 (en) Method for setting maintenance association ma, apparatus, and system
CN105471667A (en) Multicast link detection method, network equipment and server
CN104010010A (en) Internet resource acquisition method, device and cache system
US20190036793A1 (en) Network service implementation method, service controller, and communications system
CN106301832B (en) Method and device for processing system log message

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
CP03 Change of name, title or address
CP03 Change of name, title or address

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

Patentee after: Suzhou Shengke Communication Co.,Ltd.

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

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