CN1889409B - Chain circuit state detecting method and system - Google Patents
Chain circuit state detecting method and system Download PDFInfo
- Publication number
- CN1889409B CN1889409B CN2006100995138A CN200610099513A CN1889409B CN 1889409 B CN1889409 B CN 1889409B CN 2006100995138 A CN2006100995138 A CN 2006100995138A CN 200610099513 A CN200610099513 A CN 200610099513A CN 1889409 B CN1889409 B CN 1889409B
- Authority
- CN
- China
- Prior art keywords
- management frames
- gfp
- receive
- link state
- gfp management
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This invention discloses a test method for link state and a system, in which, the method includes: a sending end transmits a management frame carrying with test information to a receiving end to judge if the receiving end can receive said management frame normally, if so, it judges the link state is right, the system includes: a sending end for transmitting a management frame carrying with test information to a receiving end, a receiving end for receiving the management frame from the transmission end and a test unit for testing if the receiving end can receive said management frame normally and judging the state of the current link based on the test result.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of link state detection method and system.
Background technology
Multi-service transport platform (MSTP, Multi-Service Transport Platform) equipment is by SDH (Synchronous Digital Hierarchy) (SDH, Synchronous Digital Hierarchy) network transmission data business.Data message will transmit on SDH and must once encapsulate message earlier again, identifies heading, length, content etc., and peer node can be judged the content and the length of payload according to a content of encapsulation.The most general encapsulation format is exactly Generic Framing Procedure (GFP, Generic Framing Procedure) encapsulation at present.
Gfp frame after the GFP encapsulation has polytype, comprises Frame and management frames.What encapsulate in the Frame is exactly the user's data message.Management frames produces in order to reach the purpose that manages communication with far-end.Management frames is initiated by this end node, by arriving the opposite end with the identical path of Frame, does not transmit after the opposite end receives, and handles but be reported to CPU (CPU, Central Processing Unit) to give software.
The basic model of MSTP equipment then as shown in Figure 1, wherein, delivering to the first data map module 102 after 101 pairs of data messages of first data processing module are handled carries out the GFP encapsulation and inserts the GFP management frames down, message is sent to the second data map module 103 afterwards, the second data map module 103 is finished the decapsulation of GFP, and the extraction of finishing the GFP management frames reports, second data processing module, 104 receiving data frames.
A kind of link state detection method is in the prior art: whether the mode of inserting special Ethernet message to first data processing module 101 by software CPU detects link normal.The message here is the message that does not encapsulate through GFP.Following slotting o'clock of message at first data processing module 101, the detection of data and extracting o'clock at second data processing module 104.
But at first, art methods only is applicable to the equipment that can descend to insert the Ethernet message, then can't realize for descending to insert Ethernet message equipment;
Secondly, the type of message of Ethernet message of inserting and current practical business forwarding may be inconsistent down, causes can't correctly discerning at receiving terminal.For example the type of message of current forwarding is multiprotocol label switching (MPLS, Multi Protocol Label Switching) type, but the message format of test frame is an ethernet type, obscures so can cause receiving terminal, causes receiving terminal to realize more complicated or can not realize;
At last, owing to adopt the Ethernet message to transmit, so opposite equip. also needs to support to detect and issue the Ethernet message, and message may be dropped when link bandwidth is not enough.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of link state detection method and system, is used to improve equipment dependability and simplifies testing process.
Link state detection method provided by the invention comprises step: transmitting terminal sends to carry to receiving terminal and detects the management of information frame, and described management frames is used for managing communication with the opposite end; Judge whether receiving terminal can normally receive described management frames,, judge that then Link State is normal if can normally receive.
When preferably, transmitting terminal sends management frames at least one management frames being set need reply; The management frames feedback response message of after the normal receiving management frame of receiving terminal needs being replied; Judge that whether transmitting terminal can receive the response message that receiving terminal sends, if can receive, judges that then Link State is normal.
Preferably, the number of the transmitting terminal management frames that record need be replied when sending management frames; With the ratio of the number of the response message that receives and the number of the management frames that need reply as the ratio of replying; If reply ratio, judge that then Link State is normal more than or equal to replying the ratio thresholding.
Preferably, judge whether normally to receive and comprise step: transmitting terminal picks up counting when sending management frames; Judgement thresholding in the time receiving terminal whether can receive described management frames, if can receive, then judge normal the reception.
Preferably, judge whether normally to receive and comprise step: transmitting terminal is counted the management frames that sends; Receiving terminal is counted the management frames that receives; With the ratio of the number of the management frames of the number of the management frames that receives and transmission as the reception ratio; If more than or equal to the ratio of reception thresholding, then judging, this ratio receives normally.
Preferably, described detection information comprises identification field, facility information, transmission cycle and answer logo; Described judge whether normally to receive comprise step: receiving terminal receives and carries out facility information after the management frames and detect; If the facility information in the management frames is consistent with receivable facility information, then judge to receive normally.
Preferably, described transmitting terminal transmission management frames is that transmitting terminal regularly sends management frames according to the transmission cycle.
Preferably, described transmitting terminal transmission management frames is that transmitting terminal sends management frames according to the instruction aperiodicity ground that receives.
Link State detection system provided by the invention comprises: transmitting terminal, be used for carrying detection management of information frame to the receiving terminal transmission, and described management frames is used for managing communication with the opposite end; Receiving terminal is used to receive the management frames from transmitting terminal; Detecting unit is used to detect receiving terminal and whether can normally receives described management frames, and judges current Link State according to testing result.
Preferably, described detecting unit is integrated in receiving terminal, or is integrated in transmitting terminal, perhaps independent the existence.
Above technical scheme as can be seen, the present invention has the following advantages:
At first, because the present invention utilizes management frames to carry out Link State and detects, when the MSTP communication between devices, management frames is followed normal data frames and is together sent/receive, so do not need to increase new detection frame, just do not need consideration equipment to detecting the compatibility issue of frame yet, therefore improved the accommodation of link detecting, improve detecting reliability, also simplified testing process simultaneously;
Secondly,, can select different bases for estimation, so improved the flexibility that detects according to actual conditions because the present invention has adopted multiple Link State basis for estimation;
Once more, because the present invention has also inserted facility information in management frames, so in link detecting, carry out joint detection, avoided the situation of wrong company effectively, and increased the maintainability of equipment;
At last, because the present invention can preset sense cycle, regularly detected automatically according to sense cycle by system, can also manually detect, multiple detection method makes the present invention have more generalization, and testing result is more accurate.
Description of drawings
Fig. 1 is the basic model schematic diagram of MSTP equipment in the prior art;
Fig. 2 is the frame format figure of GFP;
Fig. 3 is the inventive method first embodiment flow chart;
Fig. 4 is the inventive method second embodiment flow chart;
Fig. 5 is the inventive method the 3rd embodiment flow chart;
Fig. 6 is the inventive method the 4th embodiment flow chart;
Fig. 7 is a system schematic of the present invention.
Embodiment
Link state detection method provided by the invention and system are used for realizing simply the detection to Link State, and improve accuracy and the versatility that detects.
MSTP equipment is by SDH network transmission data business, and SDH generally adopts the GFP encapsulation of data.
The frame format of the GFP that defines among the ITU-TG.7041 as shown in Figure 2, wherein:
PTI=100 is designated management frames
PFI=Payload specific
EXI=Payload specific
UPI=Payload specific
Wherein the UPI value is not specified, and does not stipulate in the GFP agreement.Its value can be following 00000011 to 11111110 certain middle value.
Wherein the UPI value distributes as shown in the table:
Table 1
PTI=100 | |
The UPI value | Purposes |
00000000and11111111 | Keep |
00000001 | Client signal failure (client signal is lost) |
00000010 | The client signal failure |
[0043]
(feature synchronization loss) | |
00000011 to 11111110 | For later use keeps |
Whether EXI supports according to different can the selection of equipment with PFI.
It is that GFP management frames and extraction report that equipment can be judged this frame according to the value of PTI.
See also Fig. 3, the inventive method first embodiment comprises:
301, send management frames;
Wherein, transmitting terminal sends to comprise to receiving terminal and detects the management of information frame.
302, judge normally receiving management frame of receiving terminal, if can, then turn to step 303, if can not then turn to step 304;
303, judge that current Link State is normal;
304, judge that current Link State is undesired.
See also Fig. 4, the inventive method second embodiment comprises:
401, attribute is replied in setting;
Wherein, the some management frames in the management frames that transmitting terminal will send are set to and need reply, and this realizes by the detection information that is provided with in the management frames.
Detection information comprises:
Identification field: identify the type of this test frame, following several types can be arranged: periodically detect frame, aperiodicity detects frame, acknowledgement frame;
Facility information: put down in writing the facility information that sends this message;
The transmission cycle: the transmission cycle of this protocol frame;
Whether need to reply: whether need to reply after sign is received this frame.
402, send management frames;
Wherein, transmitting terminal sends to comprise to receiving terminal and detects the management of information frame, comprising the management frames that is set to reply.
403, judge whether receiving terminal receives management frames,, then turn to step 404,, then turn to step 405 if do not receive if receive;
404, feed back response message and turn to step 406;
Wherein, receiving terminal feeds back response message according to the attribute of replying in the management frames to transmitting terminal.
405, judge the undesired and end of Link State;
406, judge whether transmitting terminal receives response message, if, then turn to step 407, if not, then turn to step 405;
407, judge that Link State is normal.
Present embodiment on the basis of first embodiment refinement a kind of situation of normal reception, simultaneously for the detection of Link State has increased a judgement, promptly be to judge whether transmitting terminal can receive response message.
See also Fig. 5, the inventive method the 3rd embodiment comprises:
501, attribute is replied in setting;
Wherein, the some management frames in the management frames that transmitting terminal will send are set to and need reply, and this realizes by the detection information that is provided with in the management frames.
502, send management frames;
Wherein, transmitting terminal sends to comprise to receiving terminal and detects the management of information frame, comprising the management frames that is set to reply.
503, write down the number of the management frames that need reply;
504, judge whether receiving terminal receives management frames, if, then turn to step 505, if not, then turn to step 506;
505, feed back response message and turn to step 507;
Wherein, receiving terminal feeds back response message according to the attribute of replying in the management frames to transmitting terminal.
506, judge the undesired and end of Link State;
507, judge whether transmitting terminal receives response message, if, then turn to step 508, if not, then turn to step 506;
508, calculate the number of the response message that receives;
Wherein, transmitting terminal calculates the number from the response message of receiving terminal receive.
509, whether judgement replys ratio more than or equal to thresholding, if, then turn to step 510, if not, then turn to step 506;
Wherein, with the ratio of the number of the response message that receives and the number that the management frames that need reply is set as the ratio of replying.
Replying the threshold value of ratio can formulate according to the actual transmissions needs, if to transmitting the less demanding of accuracy, then can reduce threshold value, promptly allow a certain amount of feedback information to lose, if require high to the transmission accuracy, can threshold value be set to 1, promptly must all response messages all receive and to think that just Link State is normal.
510, judge that Link State is normal.
Present embodiment is described in detail the situation of replying, and no longer only judges whether to receive response message, but according to actual conditions the different ratio of replying thresholdings, the flexibility that has improved link detecting like this is set.
See also Fig. 6, the inventive method the 4th embodiment comprises:
601, attribute is replied in setting;
Wherein, the some management frames in the management frames that transmitting terminal will send are set to and need reply, and this realizes by the detection information that is provided with in the management frames.
602, send management frames;
Wherein, transmitting terminal sends to comprise to receiving terminal and detects the management of information frame, comprising the management frames that is set to reply.
603, record sends the number of management frames;
Wherein, transmitting terminal writes down the number of the management frames of all transmissions.
604, write down the number of the management frames that need reply;
605, judge whether receiving terminal receives management frames, if, then turn to step 606, if not, then turn to step 607;
606, calculate the number of the management frames receive and turn to step 608;
Wherein, receiving terminal calculates the number of the management frames that receives.
607, judge that Link State is undesired and finishes;
608, whether judge the reception ratio more than or equal to the ratio of reception thresholding, if, then turn to step 609, if not, then turn to step 607;
Wherein, with the ratio of the number of the management frames of the number of the management frames that receives and transmission as the reception ratio.
The threshold value of reception ratio can be formulated according to the actual transmissions needs, if to transmitting the less demanding of accuracy, then can reduce threshold value, promptly allow a certain amount of management frames to lose, if require high to the transmission accuracy, can threshold value be set to 1, promptly must all management frames all receive and to think that just Link State is normal.
609, feedback response message;
Wherein, receiving terminal feeds back response message according to the attribute of replying in the management frames to transmitting terminal.
610, judge whether transmitting terminal receives response message, if, then turn to step 611, if not, then turn to step 607;
611, calculate the number of the response message that receives;
Wherein, transmitting terminal calculates the number from the response message of receiving terminal receive.
612, whether judgement replys ratio more than or equal to thresholding, if, then turn to step 613, if not, then turn to step 607;
Wherein, with the ratio of the number of the response message that receives and the number that the management frames that need reply is set as the ratio of replying.
Replying the threshold value of ratio can formulate according to the actual transmissions needs, if to transmitting the less demanding of accuracy, then can reduce threshold value, promptly allow a certain amount of feedback information to lose, if require high to the transmission accuracy, can threshold value be set to 1, promptly must all response messages all receive and to think that just Link State is normal.
613, judge that Link State is normal.
Present embodiment has increased the judgement of the ratio that receives.
Be understandable that, on the basis of present embodiment, can expand the 5th embodiment, promptly increase the judgement of facility information, this is judged as judging normally a kind of situation of receiving management frame of recipient.
The transmission of mentioning among each embodiment of front promptly can be that periodically to send can also be aperiodicity, sends some frames by the people in the some time for specifying in.
Enumerate embodiment according to the difference of the mode that sends management frames below:
If periodicity continuous detecting:
Under this detecting pattern, transmitting terminal periodically sends management frames to receiving terminal.
Transmitting terminal is done following processing:
Periodically send management frames;
To each the management frames counting that sends;
If in the management frames that sends, be set to reply, then each acknowledgement frame of receiving is counted.
Receiving terminal is done following processing:
The receiving management frame also carries out timing, when receiving terminal a period of time with interior do not receive this frame after with regard to report and alarm;
Receive the inspection of carrying out facility information after the management frames, if facility information in the management frames of finding to receive and receivable facility information are not inconsistent, report and alarm then;
Detect " whether needing to reply " in this frame whether the territory is set to and reply,, then send acknowledgement frame if need reply;
Acknowledgement frame counting to the management frames that receives and transmission.
If noncontinuity detects:
Under this detecting pattern, the transmitting terminal aperiodicity sends management frames to receiving terminal.
Transmitting terminal is done following processing:
Send N management frames according to the order that receives;
To each the management frames counting that sends;
If in the management frames that sends, be set to reply, then each acknowledgement frame of receiving is counted.
Receiving terminal is done following processing:
The receiving management frame also carries out timing, when receiving terminal a period of time with interior do not receive this frame after with regard to report and alarm;
Receive the inspection of carrying out facility information after the management frames, if facility information in the management frames of finding to receive and receivable facility information are not inconsistent, report and alarm then;
Detect " whether needing to reply " in this frame whether the territory is set to and reply,, then send acknowledgement frame if need reply;
Acknowledgement frame counting to the detection frame that receives and transmission.
See also Fig. 7, system of the present invention comprises: transmitting terminal 701 is used for carrying detection management of information frame to receiving terminal 702 transmissions; Receiving terminal 702 is used to receive the management frames from transmitting terminal 701; Detecting unit 703 is used to detect receiving terminal 702 and whether can normally receives described management frames, and detects transmitting terminal 701 and whether can receive feedback information, and judges current Link State according to testing result.
Detecting unit 703 is integrated in the receiving terminal 702, or is integrated in the transmitting terminal 701, perhaps independent the existence.
More than a kind of link state detection method provided by the present invention and system are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all have in specific embodiments and applications and change more part, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. a link state detection method is characterized in that, comprises step:
Transmitting terminal sends the Generic Framing Procedure GFP management frames of carrying detection information to receiving terminal, and described GFP management frames is used for managing communication with the opposite end, and described GFP management frames is followed normal GFP Frame and together sent and receive;
Judge whether receiving terminal can normally receive described GFP management frames,, judge that then Link State is normal if can normally receive.
2. link state detection method according to claim 1 is characterized in that,
Transmitting terminal is provided with at least one GFP management frames when sending the GFP management frames and need replys;
Receiving terminal normally receives the GFP management frames feedback response message that the GFP management frames is replied needs afterwards;
Judge that whether transmitting terminal can receive the response message that receiving terminal sends, if can receive, judges that then Link State is normal.
3. link state detection method according to claim 2 is characterized in that,
The number of the transmitting terminal GFP management frames that record need be replied when sending the GFP management frames;
With the ratio of the number of the response message that receives and the number of the GFP management frames that need reply as the ratio of replying;
If reply ratio, judge that then Link State is normal more than or equal to replying the ratio thresholding.
4. according to each described link state detection method in the claim 1 to 3, it is characterized in that, judge whether normally to receive and comprise step:
Transmitting terminal picks up counting when sending the GFP management frames;
Judgement thresholding in the time receiving terminal whether can receive described GFP management frames, if can receive, then judge normal the reception.
5. according to each described link state detection method in the claim 1 to 3, it is characterized in that, judge whether normally to receive and comprise step:
Transmitting terminal is counted the GFP management frames that sends;
Receiving terminal is counted the GFP management frames that receives;
With the ratio of the number of the GFP management frames of the number of the GFP management frames that receives and transmission as the reception ratio;
If more than or equal to the ratio of reception thresholding, then judging, this ratio receives normally.
6. according to each described link state detection method in the claim 1 to 3, it is characterized in that described detection information comprises identification field, facility information, transmission cycle and answer logo;
Described judge whether normally to receive comprise step:
Receiving terminal carries out the facility information detection after receiving the GFP management frames;
If the facility information in the GFP management frames is consistent with receivable facility information, then judge to receive normally.
7. link state detection method according to claim 6 is characterized in that, it is that transmitting terminal regularly sends the GFP management frames according to the transmission cycle that described transmitting terminal sends the GFP management frames.
8. link state detection method according to claim 6 is characterized in that, it is that transmitting terminal sends the GFP management frames according to the instruction aperiodicity ground that receives that described transmitting terminal sends the GFP management frames.
9. a Link State detection system is characterized in that, comprising:
Transmitting terminal is used for sending the GFP management frames of carrying detection information to receiving terminal, and described GFP management frames is used for managing communication with the opposite end, and described GFP management frames is followed normal GFP Frame and together sent and receive;
Receiving terminal is used to receive the GFP management frames from transmitting terminal;
Detecting unit is used to detect receiving terminal and whether can normally receives described GFP management frames, and judges current Link State according to testing result.
10. Link State detection system according to claim 9 is characterized in that described detecting unit is integrated in receiving terminal, or is integrated in transmitting terminal, perhaps independent the existence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100995138A CN1889409B (en) | 2006-07-26 | 2006-07-26 | Chain circuit state detecting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2006100995138A CN1889409B (en) | 2006-07-26 | 2006-07-26 | Chain circuit state detecting method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1889409A CN1889409A (en) | 2007-01-03 |
CN1889409B true CN1889409B (en) | 2010-08-18 |
Family
ID=37578670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2006100995138A Active CN1889409B (en) | 2006-07-26 | 2006-07-26 | Chain circuit state detecting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1889409B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102064952B (en) * | 2009-11-13 | 2014-03-12 | 中兴通讯股份有限公司 | Large-scale equipment link management method and system |
CN106372026B (en) * | 2015-07-22 | 2020-01-31 | 深圳市中兴微电子技术有限公司 | link detection method and receiving equipment |
CN115226066B (en) * | 2022-07-21 | 2024-08-02 | 北京市地铁运营有限公司技术创新研究院分公司 | Urban rail transit wireless communication system fault early warning method and device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1719926A (en) * | 2004-07-06 | 2006-01-11 | 华为技术有限公司 | Wireless link detecting method |
-
2006
- 2006-07-26 CN CN2006100995138A patent/CN1889409B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1719926A (en) * | 2004-07-06 | 2006-01-11 | 华为技术有限公司 | Wireless link detecting method |
Non-Patent Citations (1)
Title |
---|
曾智龙等.适用于Data over SDH的GFP通用成帧规程协议.光子技术 2.2003,(2),119-120. * |
Also Published As
Publication number | Publication date |
---|---|
CN1889409A (en) | 2007-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102710484B (en) | Ring redundant real-time Ethernet communication method | |
CN101478421B (en) | OAM packet timing processing system and method | |
CN106301996B (en) | A kind of method and device that PTP message is tested automatically | |
CN101490993A (en) | A low power media access control protocol | |
CN103095605A (en) | Data transmission method and system capable of fusing router in mobile internet of things | |
CN101834685B (en) | 1588 message extracting and processing method and equipment | |
CN106254199B (en) | Unidirectional ring network fault point positioning method, concentrator, terminal equipment and system | |
EP2451227B1 (en) | Wireless communication apparatus, wireless communication system and wireless communication method | |
EP2472793A1 (en) | Method, device and system for transmitting e1 bidirectional looped network data | |
CN1889409B (en) | Chain circuit state detecting method and system | |
CN103684818A (en) | Method and device for detecting failures of network channel | |
CN105183687A (en) | Time-sharing serial communication method and system | |
CN105871512B (en) | A kind of data transmission method and device | |
CN106452894B (en) | Failure connecting detection method and apparatus | |
CN103905268A (en) | GRE link detection method and device, main control board and communication protection system | |
CN108833056B (en) | Encoding method for priority communication of two fire-fighting buses | |
CN101237319B (en) | Time synchronization method in Ethernet ring network and Ethernet ring system | |
CN107612738B (en) | The uplink traffic fast switching system and method for VPLS dual-homed service model | |
CN102263672A (en) | Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device | |
CN106100941B (en) | Method and device based on communication reliability between distributed system test board | |
CN106549822B (en) | Method and device for testing response time of time synchronization message and test equipment | |
WO2002011371A1 (en) | Communication system, communication device, and communication method | |
CN114422126B (en) | Joint debugging test system and method for quantum key management software module | |
CN105391666B (en) | Multi-service bus transmission system and transmission method based on FSK modulation demodulation | |
CN103873131A (en) | Wireless meter reading communication relaying method |
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 |