CN103684585B - The method, apparatus and system of measuring and protecting group switching time - Google Patents

The method, apparatus and system of measuring and protecting group switching time Download PDF

Info

Publication number
CN103684585B
CN103684585B CN201210319882.9A CN201210319882A CN103684585B CN 103684585 B CN103684585 B CN 103684585B CN 201210319882 A CN201210319882 A CN 201210319882A CN 103684585 B CN103684585 B CN 103684585B
Authority
CN
China
Prior art keywords
message
port
equipment
switching time
network equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210319882.9A
Other languages
Chinese (zh)
Other versions
CN103684585A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210319882.9A priority Critical patent/CN103684585B/en
Publication of CN103684585A publication Critical patent/CN103684585A/en
Application granted granted Critical
Publication of CN103684585B publication Critical patent/CN103684585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides the method for measuring and protecting group switching time, equipment and system; be used in measuring and protecting group switching time in existing network; specifically comprise: the situation of change receiving the port of message according to the situation of change of port-mark entrained in the message that opposite end sends or local terminal; whether the protection group judging between opposite end and local terminal there occurs is switched; switch if there occurs, the temporal information utilizing protection group to switch the message of front and back calculates protection group switching time.Instant invention overcomes in prior art the drawback utilizing external tester measuring and protecting group switching time, can measure in existing network, meanwhile, utilize the port change sending or receive message to judge the method whether protection group switches to there will not be erroneous judgement.

Description

The method, apparatus and system of measuring and protecting group switching time
Technical field
The present invention relates to communication technical field, be specifically related to a kind of method, apparatus and system of measuring and protecting group switching time.
Background technology
Along with the raising of access device status in a network, utilize various EPON (xPON, xpassiveopticalnetwork) network carries out Fiber-To-The-Building/roadside/family (FTTB/C/H, FiberToTheBuilding/Curb/Home) or the networking application of network construction form to optical line terminal (OLT, opticallineterminal) of mobile carrying propose higher reliability requirement.
In order to ensure the reliability of business, the fault point that Water demand optical network system is possible, when breaking down in fault point, for guarantee business is not interrupted, needs to use Protection Scheme for Transmission Line to protect.Conventional protection scheme sets up protection group in a link, also claims protection mechanism or pretection switch.A protection group contains equipment, the annexation of equipment room and the wrap protection of equipment room protected in link.In addition, the protection system of multiple protection group composition also can be described as protection group.In normal operation, main port bearer service.When main port link occurs fault, the business of main port is switched on standby port by system automatically, ensures the normal transmission of business, provides the protection to link.Protection group is switched needs certain hour, and if protection group switching time is long, can cause network servicequality decline so that interrupt, therefore, protection group switching time is the key index of system.So-called protection group switching time refers to link because protection group switches time of the link down caused, comprise switching time of standby usage port and switching complete after the link-recovery time.
The Protection Scheme for Transmission Line of current optical network system support comprises Gigabit-capable Passive Optical Network protect types B (GPONTYPEB; gigabit-capablepassiveopticalnetwork), GPONTYPEB dual-homed, GPONTYPEC, Ethernet passive optical network protect types B (EPONTYPEB; Ethernetpassiveopticalnetwork), EPONTYPED, network side protection scheme comprises ethernet port protection group etc.The protection group of each Protection Scheme for Transmission Line switches all needs certain hour.And each network layer all there are certain requirements service outage duration, if protection group long meeting switching time causes network servicequality to decline and even interrupts.Therefore, for when ensureing that fault occurs, business is not interrupted, various salvo has corresponding switching performance requirement, comprises the requirement for protection group switching time.
At present for the measurement of protection group switching time, be all constantly send common Ethernet message by tester, in opposite end tester packet receiving, see that the number of packet loss during the packet receiving of opposite end is to estimate switching time.The operability of this mode in existing network environment is not strong; And can judge by accident when protection group is not switched and just occurred packet loss of link, cause the protection group switching time of measurement inaccurate.
Summary of the invention
Given out a contract for a project by tester for overcoming prior art, the existing network operability that opposite end calculates switching time scheme according to packet loss number is not strong, and the problem of easily erroneous judgement, embodiments provides a kind of method, apparatus and system of measuring and protecting group switching time.Concrete:
According to the first aspect of the embodiment of the present invention, a kind of method of switching time of measuring and protecting group is provided, comprises: the main port of the second equipment in the first equipment connection protection group in protection group and standby port; First equipment receives the message for measuring and protecting group switching time continuously, every two adjacent messages for measuring and protecting group switching time are that transmitting terminal sends to be less than or equal to very first time interval, the very first time is spaced apart protection group switching time and measures the maximum error of measuring of allowing, carries the port-mark of transmitting terminal transmit port in the message for measuring and protecting group switching time; Whether the first equipment compares the first message identical with port-mark entrained in the second message, to judge whether described protection group switches, second message is the message for measuring and protecting group switching time from the second equipment that the first equipment receives, and the first message is the upper message for measuring and protecting group switching time from the second equipment of the second message that the first equipment receives; If the first message is different with port-mark entrained in the second message, then the first equipment calculates protection group switching time according to the temporal information of the first message and the second message.
In the first possible implementation of first aspect, optionally, temporal information calculating protection group switching time according to described first message and described second message specifically comprises: the temporal information of the first message is the time of reception that the first equipment receives the first message, and the temporal information of the second message is the time of reception that the first equipment receives described second message; First equipment compares the time of reception of the second message and the time of reception of the first message, to obtain protection group switching time; Or the temporal information of the first message is the delivery time of this first message carried in the first message, the temporal information of the second message is the delivery time of this second message carried in the second message; First equipment compares the delivery time of the second message and the delivery time of the first message, to obtain protection group switching time; Or; the temporal information of the first message is that the sequence of message number of this first message carried in the first message and message send interval; the temporal information of the second message is that the sequence of message number of this second message carried in the second message and message send interval; first equipment compares the difference of the sequence of message number of the sequence of message number of acquisition second message and the first message; and this difference is multiplied by transmission interval entrained in the first message or the second message, to obtain protection group switching time.
In the implementation that the second of first aspect is possible, further, this first equipment is optical network unit ONU or Optical Network Terminal ONT, and this second equipment is optical line terminal OLT; Or the first equipment is OLT, the second equipment is optical network unit ONU or Optical Network Terminal ONT; Or the first equipment is access device, the second equipment is convergence device; Or the first equipment is convergence device, the second equipment is access device.
In the third possible implementation of first aspect, further, the message for measuring and protecting group switching time is one-way delay measurement 1DM message, and the very first time is spaced apart 5 milliseconds.
According to the second aspect of the embodiment of the present invention, the method for the switching time of another measuring and protecting group is provided, specifically comprises: the main port of the first equipment in protection group is connected the second equipment in described protection group with standby port; First equipment receives the message being used for measuring and protecting group switching time, every two adjacent messages for measuring and protecting group switching time are that transmitting terminal sends to be less than or equal to very first time interval, and the very first time is spaced apart protection group switching time and measures the maximum error of measuring of allowing; Whether the first equipment compares its main port receiving message for adjacent twice identical, to judge whether protection group switches; If the adjacent main port receiving message for twice of the first equipment there occurs change; first equipment calculates protection group switching time according to the temporal information of the first message and the second message; second message is first message for measuring and protecting group switching time from second equipment of the first equipment received by after the main port receiving message changes, and the first message is the upper message for measuring and protecting group switching time from the second equipment of the second message that the first equipment receives.
In the first possible implementation of second aspect, temporal information calculating protection group switching time according to the first message and the second message specifically comprises: the temporal information of the first message is the time of reception that the first equipment receives the first message, and the temporal information of the second message is the time of reception that the first equipment receives the second message; First equipment compares the time of reception of the second message and the time of reception of the first message, to obtain protection switch time; Or the temporal information of the first message is the delivery time of this first message carried in the first message, the temporal information of the second message is the delivery time of this second message carried in the second message; First equipment compares the delivery time of the second message and the delivery time of the first message, to obtain protection group switching time; Or; the temporal information of the first message is that the sequence of message number of this first message carried in the first message and message send interval; the temporal information of the second message is that the sequence of message number of this second message carried in the second message and message send interval; first equipment compares the difference of the sequence of message number of the sequence of message number of acquisition second message and the first message; and this difference is multiplied by transmission interval entrained in the first message or the second message, to obtain protection group switching time.
In the implementation that the second of second aspect is possible, further, the first equipment is optical network unit ONU or Optical Network Terminal ONT, and the second equipment is optical line terminal OLT; Or the first equipment is OLT, the second equipment is ONU or ONT; Or the first equipment is access device, the second equipment is convergence device; Or the first equipment is convergence device, the second equipment is access device.
In the third possible implementation of second aspect, further, the message for measuring and protecting switching time is one-way delay measurement 1DM message, and the very first time is spaced apart 5 milliseconds.
According to the third aspect of the embodiment of the present invention, a kind of method measuring the switching time of dual-homed protection group is provided, specifically comprises: main port and the standby port of the first equipment in protection group are connected the second equipment in described protection group and the 3rd equipment respectively; First equipment receives the first message and the second message, second message is the message for measuring and protecting group switching time from the second equipment or the 3rd equipment that the first equipment receives, and the first message is the upper message for measuring and protecting group switching time from the second equipment or the 3rd equipment of the second message of receiving of the first equipment; Every two adjacent messages for measuring and protecting group switching time from the second equipment or the 3rd equipment are that transmitting terminal sends to be less than or equal to very first time interval, and the very first time is spaced apart protection group switching time and measures the maximum error of measuring of allowing; Whether the first equipment judges that it receives the first message identical with the main port of the second message, to judge whether described protection group switches; Or the first equipment judges that whether device identification entrained in the first message is identical with device identification entrained in the second message, to judge whether described protection group switches; If different, then the first equipment calculates protection group switching time according to the temporal information of the first message and the second message.
In the first possible implementation of the third aspect, temporal information calculating protection group switching time according to the first message and the second message specifically comprises: the temporal information of the first message is the time of reception that the first equipment receives the first message, and the temporal information of the second message is the time of reception that the first equipment receives the second message; First equipment compares the time of reception of the second message and the time of reception of the first message, to obtain protection group switching time; Or the temporal information of the first message is the delivery time of this first message carried in the first message, the temporal information of the second message is the delivery time of this second message carried in the second message; First equipment compares the delivery time of the second message and the delivery time of the first message, to obtain protection group switching time.
In the implementation that the second of the third aspect is possible, the first equipment is optical network unit ONU or Optical Network Terminal ONT, and the second equipment and described 3rd equipment are optical line terminal OLT; Or the first equipment is access device, the second equipment and described 3rd equipment are convergence device.
In the third possible implementation of the third aspect, the message for measuring and protecting switching time is one-way delay measurement 1DM message, and the described very first time is spaced apart 5 milliseconds.
The method of the measuring and protecting group switching time of the first aspect that the embodiment of the present invention discloses, second aspect and the third aspect; can in existing network measuring and protecting group switching time; convenient and swift, overcome in prior art the drawback that outside tester must be utilized to measure.Simultaneously; the method that the embodiment of the present invention discloses utilizes the change of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
According to the fourth aspect of the embodiment of the present invention, provide a kind of network equipment, concrete, this network equipment comprises: receiver module, for receiving message, parsing module, obtains analysis result for the message of resolving received by receiver module, memory module, for storing the information from parsing module, processing module is for obtaining the second port-mark and the first port-mark, relatively whether the second port-mark is identical with the first port-mark, to judge whether the protection group between the network equipment and the first equipment switches, second port-mark is the port-mark carried in the second message from parsing module, first port is designated the port-mark carried in the first message from memory module, second message is the message for measuring and protecting group switching time from the first equipment that the network equipment receives, the second message that first message receives for the described network equipment upper one from the message for measuring and protecting group switching time described in the first equipment, if different, processing module then calculates protection group switching time according to the temporal information of the first message and the second message.
In the first possible implementation of fourth aspect, temporal information calculating protection group switching time according to the first message and the second message specifically comprises: the temporal information of the first message is the delivery time of the first message carried in the first message, and the temporal information of the second message is the delivery time of the second message carried in the second message; Processing module compares the delivery time of the second message and the delivery time of the first message, to obtain protection group switching time; Or; the temporal information of the first message is that the sequence of message number of this first message carried in the first message and message send interval; the temporal information of the second message is that the sequence of message number of this second message carried in the second message and message send interval; processing module compares the difference of the sequence of message number of the sequence of message number of acquisition second message and the first message; and this difference is multiplied by transmission interval entrained in the first message or the second message, to obtain protection group switching time.
In the implementation that the second of fourth aspect is possible, the network equipment also comprises monitoring modular, receives the time of reception of message for monitoring receiver module and the time of reception that monitoring obtains is reported and submitted to processing module; Calculate protection group switching time according to the temporal information of the first message and the second message specifically to comprise, processing module compares the time of reception of time of reception from the second message of monitoring modular and the first message, to obtain protection group switching time.
According to the 5th aspect of the embodiment of the present invention, provide a kind of network equipment, concrete, this network equipment comprises: this network equipment comprises main port and standby port, receiver module, for receiving message, monitoring modular, receives the port-mark of the port of message the main port of acquisition reception message for monitoring receiver module, parsing module, obtains analysis result for the message of resolving received by receiver module, memory module, for storing the information from monitoring modular and parsing module, processing module is for obtaining the second port-mark and the first port-mark, relatively whether the second port-mark is identical with the first port-mark, to judge whether the protection group between the network equipment and the first equipment switches, second port-mark is the port-mark of the main port of reception second message from monitoring modular, first port is designated the port-mark of the main port of reception first message from memory module, second message is the message for measuring and protecting group switching time from the first equipment, first message is the upper message for measuring and protecting group switching time from the first equipment of the second message, if the second port-mark is different from the first port-mark, processing module calculates protection group switching time according to the temporal information of the first message and the second message.
In the first possible implementation in the 5th, temporal information calculating protection group switching time according to the first message and the second message specifically comprises: the temporal information of the first message is the delivery time of the first message carried in the first message, and the temporal information of the second message is the delivery time of the second message carried in the second message; Processing module compares the delivery time of the second message and the delivery time of the first message, to obtain protection group switching time; Or; the temporal information of the first message is that the sequence of message number of this first message carried in the first message and message send interval; the temporal information of the second message is that the sequence of message number of this second message carried in the second message and message send interval; processing module compares the difference of the sequence of message number of the sequence of message number of acquisition second message and the first message; and this difference is multiplied by transmission interval entrained in the first message or the second message, to obtain protection group switching time.
According to the 6th aspect of the embodiment of the present invention, provide a kind of network equipment, be applied in dual-homed protection group, concrete, this network equipment comprises: main port and standby port, receiver module, for receiving message, monitoring modular, receives the port-mark of the port of message the port of acquisition reception message for monitoring receiver module, parsing module, obtains analysis result for the message of resolving received by receiver module, memory module, for storing the information from monitoring modular and parsing module, processing module is for obtaining the second port-mark and the first port-mark, relatively whether the second port-mark is identical with the first port-mark, to judge whether dual-homed protection group switches, second port-mark is for the port-mark of the second port of the second message of measuring and protecting group switching time from the reception of monitoring modular, second port is the main port of network equipment when receiving the second message, first port is designated reception from memory module for the port-mark of the first port of the first message of measuring and protecting group switching time, first port is the main port of network equipment when receiving the first message, first message is a upper message for measuring and protecting group switching time of the second message that the network equipment receives, if the second port-mark is different from the first port-mark, processing module calculates protection group switching time according to the temporal information of the first message and the second message.
In the first possible implementation in the 6th, this network equipment also comprises parsing module, obtains analysis result for the message of resolving received by receiver module; Temporal information calculating protection group switching time according to the first message and current message specifically comprises: processing module obtains the time of reception from the first message of memory module, and the time of reception of current message from monitoring modular, the relatively time of reception of current message and the time of reception of the first message, to obtain protection group switching time; Or; processing module obtains from the delivery time carried in the first message of memory module; and from the delivery time carried in the current message of parsing module; compare delivery time entrained in delivery time entrained in current message and the first message, to obtain protection group switching time.
According to the 6th aspect of the embodiment of the present invention, provide a kind of network equipment, be applied in dual-homed protection group, concrete, this network equipment comprises: main port and standby port, receiver module, for receiving message, parsing module, reports and submits analysis result to processing module for the message of resolving received by receiver module, memory module, for storing the information from parsing module, processing module is for obtaining the second device identification and the first device identification, relatively whether the second device identification is identical with the first device identification, to judge whether dual-homed protection group switches, second device identification is the device identification of carrying in the second message for measuring and protecting group switching time from the second port accepts of parsing module, second port is the main port of network equipment when receiving the second message, first device identification is the mark of carrying in the first message for measuring and protecting group switching time from the first port accepts of memory module, first port is the main port of network equipment when receiving the first message, first message is a upper message for measuring and protecting group switching time of the second message that the network equipment receives, if the second device identification is different with the first device identification, processing module calculates protection group switching time according to the temporal information of the first message and the second message, the message for measuring and protecting group switching time that first message and the second message send with the time interval being less than or equal to protection group switching time and measuring the maximum error of measuring of allowing for transmitting terminal, .
The network equipment of the measuring and protecting group switching time of the fourth aspect that the embodiment of the present invention discloses, the 5th aspect and the 6th aspect; can in existing network measuring and protecting group switching time; convenient and swift, overcome in prior art the drawback that outside tester must be utilized to measure.Simultaneously; the network equipment that the embodiment of the present invention discloses utilizes the change of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
According to the 7th aspect of the embodiment of the present invention, provide a kind of system of measuring and protecting group switching time, concrete: this system comprises interconnective first network equipment and second network equipment; Second network equipment for generating the message of the device identification carrying second network equipment, or for generating the message carrying the port-mark of second network equipment main port and the device identification of second network equipment; And generated message is sent to first network equipment, the time interval between every two adjacent message that second network equipment sends is less than or equal to protection group switching time and measures the maximum error of measuring of allowing; The main port of the first equipment to be connected with standby port the second equipment form protection group time, whether first network equipment is used for identical from adjacent two main ports for the message of measuring and protecting group switching time of second network equipment according to its reception, to judge whether the protection group between first network equipment and second network equipment switches, if main port is not identical, then first network device measuring protection group switching time; Or; when main port and the standby port formation protection group of the first equipment connection second equipment; first network equipment be used for received by it adjacent two whether identical from the port-mark carried in the message for measuring and protecting group switching time of second network equipment; to judge whether the protection group between first network equipment and second network equipment switches; if port-mark is not identical, then first network device measuring protection group switching time.
In the first possible implementation in the 7th, first network equipment is also for generating the message of the device identification of carrying first network equipment, or the message of device identification for the port-mark that generates the main port carrying first network equipment and first network equipment; And the time interval between every two adjacent message being sent to by generated message second network equipment first network equipment to send is less than or equal to protection group switching time measures the maximum error of measuring of allowing; When main port and the standby port formation protection group of the first equipment connection second equipment, whether second network equipment is also for identical from adjacent two main ports for the message of measuring and protecting group switching time of first network equipment according to its reception, to judge whether the protection group between first network equipment and second network equipment switches, if main port is not identical, then second network device measuring protection group switching time; Or the main port of the first equipment to be connected with standby port the second equipment form protection group time; second network equipment also for received by it adjacent two whether identical from the port-mark carried in the message for measuring and protecting group switching time of first network equipment; to judge whether the protection group between first network equipment and second network equipment switches; if port-mark is not identical, then second network device measuring protection group switching time.
According to the eighth aspect of the embodiment of the present invention, provide a kind of system measuring dual-homed protection group switching time, concrete: this is comprise system to comprise first network equipment, second network equipment and the 3rd network equipment, and wherein the main port of first network equipment is connected with the 3rd network equipment with second network equipment respectively with standby port; The network equipment that first network equipment discloses for the embodiment of the present invention the 6th aspect; Second network equipment for generating the message of the device identification carrying second network equipment, and measures the time interval of the maximum error of measuring of allowing continuously to the message carrying the device identification of described second network equipment described in described first network equipment transmission to be less than or equal to protection group switching time; 3rd network equipment for generating the message of the device identification carrying the 3rd network equipment, and measures the time interval of the maximum error of measuring of allowing continuously to the message carrying the device identification of the 3rd network equipment described in the transmission of first network equipment to be less than or equal to protection group switching time.
The system of the measuring and protecting group switching time of the 7th aspect that the embodiment of the present invention discloses, eighth aspect, can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that outside tester must be utilized to measure.Simultaneously; the system that the embodiment of the present invention discloses utilizes the change of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Accompanying drawing explanation
In order to be illustrated more clearly in the present invention and related embodiment, provide the following drawings.
Fig. 1 is the method flow diagram of measuring and protecting group switching time in the embodiment of the present invention one, two and three;
Fig. 2 is the method flow diagram of another kind of measuring and protecting group switching time in the embodiment of the present invention one, two and three;
Fig. 3 is GPONTypeB and EPONTypeB protection group networking structure schematic diagram in the embodiment of the present invention one;
Fig. 4 is ethernet port protection group networking structure schematic diagram in the embodiment of the present invention two;
Fig. 5 is GPONTypeC and EPONTypeD protection group networking structure schematic diagram in the embodiment of the present invention three;
Fig. 6 is the method flow diagram of measuring and protecting group switching time in the dual-homed protection group of the embodiment of the present invention four GPON, EPON;
Fig. 7 is GPON, EPON dual-homed protection group networking structure schematic diagram in the embodiment of the present invention four;
Fig. 8 is network equipment infrastructure schematic diagram in the embodiment of the present invention five, six, seven;
Fig. 9 is network equipment infrastructure schematic diagram in the embodiment of the present invention eight.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with embodiment and accompanying drawing, the present invention is described in further details.At this, schematic description and description of the present invention is for explaining the present invention, but not as a limitation of the invention.
Execution mode one: the embodiment of the present invention provides a kind of protection group switching time method of measurement, and the method can be applied in the networking structure of GPONTypeB or EPONTypeB, and as depicted in figs. 1 and 2, the method comprises:
It is similar that GPONTypeB with EPONTypeB protection mechanism realizes principle, as shown in Figure 3.These two kinds of protection group protections use the optical splitter of 2:N; OLT has two passive optical-fiber network (PON; PassiveOpticalNetwork) mouth is connected with the optical splitter of this 2:N simultaneously; a PON mouth is only had to be in state of activation; the port corresponding with this PON is main port; another PON mouth is in stand-by state, and port corresponding is with it standby port.Certainly, when cost allows, OLT is upper can exist plural port, and one of them is primary, and remaining is in stand-by state.Multiple message or the message that can carry port-mark can be used in the embodiment of the present invention; below only for Ethernet message; message for measuring and protecting group switching time can be common message, also can be the message being specifically designed to measuring and protecting group switching time.The message being specifically designed to measuring and protecting group switching time can be the message with specific identifier, also can be some specific message, as detection type message.For GPONTypeB and EPONTypeB protection group; the MEP based on protection group can be set up in OLT side; each optical network unit (ONU; or Optical Network Terminal (ONT opticalnetworkunit); opticalnetworkterminal) the upper MEP set up based on port; illustrate for concrete a certain ONU, be designated as an ONU, ONU method of measurement is identical therewith for his each ONU or ONT method of measurement.
Method of measurement specifically comprises, as shown in Figure 1:
Step 101: as shown in S101 in Fig. 1, an ONU receives the message for measuring and protecting group switching time from OLT.Message for measuring and protecting group switching time can be Ethernet message, also can be the message of other types, below for Ethernet message.The type of Ethernet message can unrestricted choice.Message for measuring and protecting group switching time can be specific message, and the message of transport service also can be used for measuring.These from OLT every two adjacent message between the time interval be less than or equal to protection group switching time and measure the maximum error of measuring of allowing.These Ethernet messages from OLT can be that this OLT sends, also can be based upon this OLT upstream other MEP send and forwarded by OLT.Protection group switching time measures difference that the maximum error of measuring of allowing requires according to certainty of measurement and different; setting that can be artificial; such as; GPONTypeB or the EPONTypeB protection group being less than 50ms is required for protection group switching time; when rough measure, can set its maximum error of measuring of allowing artificially is 7ms.Certainly; more easily; can select existing Ethernet periodically packet, can be the ETHOAM message such as one-way delay measurement 1DM message, continuity check message CCM message, loopback message LBM message, Linktrace Message LTM message, alarm indication signal AIS message, locking signal LCK message, test TST message, automatically protection conversion APS message, maintain communications channel MCC message, loss measurement message LMM message, latency measurement DM message, experiment OAM message EXM message, the specific OAM message VSM message of supplier.Optionally, going when selecting 1DM message, according to different required precisions, its transmission interval can be set and be less than or equal to 5ms, as 1ms, 2ms, 3.3ms.These messages that can be used to measuring and protecting group switching time carry the main port mark of OLT place equipment and OLT; optionally; the method of carrying can be by software related port identified be issued to transmit port hardware or software on; message is through this port, and hardware or software add respective identification on message.Optionally, this port-mark can be only the port numbers of the main port of this OLT, it can be the combination of the MAC address of this OLT and the port numbers of main port, also can be the combination of the Internet protocol IP address of this OLT and the port numbers of main port, can also be the combination of the MEP identify label ID of the OLT that OLT place equipment is arranged and the port numbers of main port, other marks that can be used for the different main ports distinguishing this OLT also can use.Optionally, the TLV field of above-mentioned ETHOAM message can be used to carry above-mentioned port-mark.Optionally, the message of transmission can carry the delivery time of message.Different as required, the destination-mac address that message sends can be set to MAC Address or the Multicast MAC Address of an ONU.
Step 102: as shown in S102 in Fig. 1; after one ONU, of receiving from OLT carries second message of port-mark for measuring and protecting group switching time; whether identical upper first message for measuring and protecting group switching time carrying port-mark from OLT searching that an ONU received before this message, compare the port-mark carried in these two messages.When required precision is not high, whether the message that an ONU also can compare before the first message is identical with port-mark entrained in the second message, and this method is also the object of the present patent application protection, forms the equivalent with the embodiment of the present invention.Can identify that whether message is from OLT with device identifications such as the source MAC carried in message, source IP addresss, message from this OLT also can carry other and identify for ONU for the device identification identified, the MD grade of carrying in message also can be used in the maintenance field MD planned to identify.Generally, one ONU also can after discovery message goes out the situation of active, carry out again saidly comparing behavior, the port-mark of the main port carried in the port-mark of the OLT main port carried in last message received before now can only comparing message dropping and first message received after again receiving message.By continuous more described port-mark, judge that whether port-mark entrained in the message of front and back two is identical.If the judgement of step 102 is identical; illustrate that protection group not switch; do not carry out the measurement of protection group switching time; receive after storage carry in message for judging that the temporal information of mark, port-mark and message that message is originated is for rear use; and continue to compare the second message and the next message for measuring and protecting group switching time received, this comparison procedure continues until find that port-mark occurs different or measures time-out always.
Step 103: as shown in S103 in Fig. 1, if the judgement of step 102 is different, illustrates that protection group is switched, then poor according to the delivery time difference or the time of reception that are used for the first message and the second message, draws protection group switching time.Method for survey calculation can be the time of reception of comparing the first message and the second message, show that the time of reception of two messages is poor.The method calculated can also be comprise: message carries the moment that this message sends; The method calculated compares the delivery time entrained by two messages for comparing port-mark, show that delivery time is poor.When the message from OLT is periodically packet, the method for calculating can also be comprise: each periodically packet carries an integer sequence number, and the sequence number entrained by described periodically packet that order sends is continuous print; The method calculated compares the integer sequence number entrained by two messages for comparing port-mark, draws integer sequence difference, be multiplied by the transmission interval of periodically packet after acquired results takes absolute value.Calculate acquired results and can directly think protection group switching time, its measure error scope is the maximum transmission interval of transmitting terminal of zero to twice.When knowing OLT worst case transmit time interval, result of calculation can be deducted a maximum transmission interval, measure error vanishing is to the maximum transmission interval of transmitting terminal.Such as, when the message from OLT is the 1DM message at 3.3ms transmission interval, the measure error scope of the measurement of receiving terminal the one ONU is 0 ~ 6.6ms, and after deducting a transmission interval, measure error becomes-3.3ms ~ 3.3ms.Very short thus when can ensure certainty of measurement at transmission time interval, the temporal information of the message before the first message and the second message also can be utilized to calculate protection group switching time, and this method is the equivalent of the embodiment of the present invention.
By step 101, step 102, step 103, an ONU can record the descending switching time of protection group.In addition, by step 101a, step 102a, step 102b, step 103a can the up switching times of measuring and protecting group, as shown in Figure 2.The up switching time of measuring and protecting group and the descending switching time of measuring and protecting group can carry out separately, also can carry out simultaneously.Carry out while described measuring and not necessarily require synchronously, but the descending switching time of measuring and protecting group and up switching time can realized with in a protection group reversed process.
Step 101a: as shown in S201 in Fig. 2, OLT receive the message for measuring and protecting group switching time from an ONU.Message for measuring and protecting group switching time can be Ethernet message, also can be the message of other types, below for Ethernet message.The type of Ethernet message can unrestricted choice.Message for measuring and protecting group switching time can be specific message, and the message of transport service also can be used for measuring.These from an ONU every two adjacent message between the time interval be less than or equal to protection group switching time and measure the maximum error of measuring of allowing.Protection group switching time measures difference that the maximum error of measuring of allowing requires according to certainty of measurement and different; setting that can be artificial; such as; GPONTypeB or the EPONTypeB protection group being less than 50ms is required for protection group switching time; when rough measure, can set its maximum error of measuring of allowing artificially is 5ms.Certainly; more easily; can select existing Ethernet periodically packet, can be the ETHOAM message such as one-way delay measurement 1DM message, continuity check message CCM message, loopback message LBM message, Linktrace Message LTM message, alarm indication signal AIS message, locking signal LCK message, test TST message, automatically protection conversion APS message, maintain communications channel MCC message, loss measurement message LMM message, latency measurement DM message, experiment OAM message EXM message, the specific OAM message VSM message of supplier.Optionally, going when selecting 1DM message, according to different required precisions, its transmission interval can be set and be less than or equal to 5ms, as 1ms, 2ms, 3.3ms.The device identification of an ONU place equipment and ONU is carried in these messages from an ONU, optionally, these device identifications comprise the MAC address of described OLT place equipment, the device number of described OLT place equipment, the combination of any one or any two in the MEP identify label ID of described OLT and the Internet protocol IP address of described OLT place equipment, described MAC Address, device number, the combination of MEPID and IP address and other information can as the device identification of equipment, other marks that can be used for distinguishing different ONU also can be used as device identification.Optionally, described device identification can be carried in type in message, length, numerical value TLV field.Optionally, the message of transmission can carry the delivery time of message.Different as required, the destination-mac address that message sends can be set to MAC Address or the Multicast MAC Address of an ONU.
Whether step 102a: as shown in S202 in Fig. 2, OLT compare the main port receiving adjacent two messages in front and back different.Here the message said is not limited to the message that an ONU sends.When required precision is not high; whether OLT also can change by the main port of timing ratio comparatively for receiving message; or whether the main port that also can compare for receiving the adjacent nearer message of two changes; these two kinds of methods are also the objects of the present patent application protection, form the equivalent with the embodiment of the present invention.Generally, OLT also can after discovery message goes out the situation of active, carry out this again and compare behavior, the port-mark of the port-mark receiving the main port of last message before now only can comparing message dropping and the main port receiving first message after again receiving message.Each port has buffer memory, and the message that OLT can be read by judgement determines receiving the main port of message from the buffer memory which port is corresponding.By constantly comparing front and back for receiving the main port of message, judge whether OLT changes for the main port receiving message.If front and back, for receiving the main port of message for different, illustrate that protection group is switched, then obtain the temporal information calculating protection group switching time.Because in the embodiment of the present invention, OLT is a corresponding multiple ONU, and protection group switching time refers to the switching time of OLT and certain specific ONU place equipment.Therefore the message for calculating switching time need from same ONU.Measure the protection group switching time between this OLT and ONU for OLT end, after determining that protection group is switched, obtain and switch last temporal information from the message of an ONU received on the front OLT of generation; And obtain to switch and first temporal information from the message of an ONU received on rear OLT occurs, such as, device identification entrained in message can be utilized to carry out searching message and obtaining temporal information.If the judgement of step 102a is identical; illustrate that protection group is switched; store the port-mark of the port of a message after in two messages that OLT place equipment receives for comparing and corresponding temporal information for next time than than with; and the port-mark of the receiving port of the message received after continuation reception and the port-mark of the port of next message of reception, this comparison procedure continues always until the main port for receiving message before and after finding occurs difference or measures overtime.
Step 103a: as shown in S203 in Fig. 2; if the comparative result of step 102a is different; first message for measuring and protecting group switching time from an ONU that OLT receives after searching main port change, and a message for measuring and protecting group switching time from an ONU on this message.According to the delivery time of described two messages of temporal information calculating of these two messages is poor or the time of reception is poor, draw protection group switching time.Optionally, computing time, the method at interval can be time of reception of the message that comparison step 102b finds, and showed that time of reception is poor.Optionally, described computing time, the method at interval can also be delivery time according to the message carried in message, or according to the integer sequence number of the message carried in message and the transmission interval of message.It is identical that the Methods and steps 103 of concrete computational methods and Error processing describes, and repeats no more herein.Here the message for measuring and protecting group switching time said can be the message being specifically designed to measuring and protecting group switching time, also can be common message.When required precision is not high, also can calculate with other messages before and after main port change, this method is the equivalent of the embodiment of the present invention.What it should be noted that the embodiment of the present invention discloses refers to for former and later two messages calculated the message sent by an ONU, and the message that other ONU send is not considered when the up switching time of measurement the one ONU place ONU protection group.OLT can identify the transmission source of message by the MAC Address of an ONU place ONU of carrying in message or other device identifications identifying this ONU.
What deserves to be explained is, ONU and OLT can be synchronous to literary composition of transmitting messages, and also can be nonsynchronous.The type of message of the message that the one ONU sends can be identical with the type of message of the message that OLT sends, also can be different.The message that one ONU and OLT sends can be periodically packet, and the transmission interval of periodically packet can be free according to the type of hardware condition and message, both send the transmission interval of periodically packet can be different.The transmission interval of selected periodically packet is less, and the protection switch time precision measured by opposite end is higher.In addition; when OLT sends multicast message; each ONU can record the descending switching time of respective protection group in once switching; if when each ONU sends periodically packet to OLT; OLT can record the up switching time of protection group of each ONU in once switching; above behavior also can be carried out simultaneously, thus makes each ONU and OLT in a protection group reversed process, record the descending and up switching time of protection group of each ONU respectively.
The method of the measuring and protecting group switching time that the embodiment of the present invention discloses, can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that outside tester must be utilized to measure.Simultaneously; the method that the embodiment of the present invention discloses utilizes the change of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode two: the embodiment of the present invention provides a kind of method of measuring and protecting group switching time, as depicted in figs. 1 and 2.
As shown in Figure 4, ethernet port protection group may be used for the link protection between convergence device and access device.Convergence device and access device have two ports, and two ports of equipment are all enable, but only have primary port to be in state of activation, and another port is in stand-by state.In some cases, can there is more than one standby port in protection group, and this method is applicable equally.Multiple message or the message that can carry port-mark can be used in the embodiment of the present invention; below only for Ethernet message; message for measuring and protecting group switching time can be common message, also can be the message being specifically designed to measuring and protecting group switching time.The message being specifically designed to measuring and protecting group switching time can be the message with specific identifier, also can be some specific message, as detection type message.Protection group shown in Fig. 4, two ports of access device and convergence device set up two links respectively, access device is set up the MEP based on protection group, convergence device is set up the MEP based on protection group.
Concrete method of measurement is as follows:
Step 201: as shown in S201 in S101 or Fig. 2 in Fig. 1, access device receives the message for measuring and protecting group switching time from convergence device.Message for measuring and protecting group switching time can be Ethernet message, also can be the message of other types, below for Ethernet message.The type of Ethernet message can unrestricted choice.Message for measuring and protecting group switching time can be specific message, and the message of transport service also can be used for measuring.These from convergence device every two adjacent message between the time interval be less than or equal to protection group switching time and measure the maximum error of measuring of allowing.These Ethernet messages from convergence device can be that this convergence device sends, and also can be that other MEP being based upon this convergence device upstream send.Protection group switching time measures difference that the maximum error of measuring of allowing requires according to certainty of measurement and different, and setting that can be artificial, such as, when rough measure, can set its maximum error of measuring of allowing artificially is 100ms.Certainly; more easily; can select existing Ethernet periodically packet, can be the ETHOAM message such as one-way delay measurement 1DM message, continuity check message CCM message, loopback message LBM message, Linktrace Message LTM message, alarm indication signal AIS message, locking signal LCK message, test TST message, automatically protection conversion APS message, maintain communications channel MCC message, loss measurement message LMM message, latency measurement DM message, experiment OAM message EXM message, the specific OAM message VSM message of supplier.Optionally, going when selecting 1DM message, according to different required precisions, its transmission interval can be set and be less than or equal to 5ms, as 1ms, 2ms, 3.3ms.Optionally, these are from the main port mark can carrying convergence device place equipment and convergence device in the message of convergence device, the method of carrying can be by software related port identified be issued to transmit port hardware or software on, message is through this port, and hardware or software add respective identification on message.Optionally, this port-mark can be only the port numbers of the main port of this convergence device, it can be the combination of the MAC address of this convergence device and the port numbers of main port, also can be the combination of the Internet protocol IP address of this convergence device and the port numbers of main port, can also be the combination of the MEP identify label ID of convergence device and the port numbers of main port, other marks that can be used for the different main ports distinguishing this convergence device also can use.Optionally, the MAC Address of this convergence device in the TLV field from the message of convergence device, can be carried, or device number, or the MEPID of convergence device.Optionally, the message of transmission can carry the delivery time of message.Different as required, the destination-mac address that message sends can be set to MAC Address or the Multicast MAC Address of access device.
Step 202: after access device one of receiving from convergence device carries second message of port-mark for measuring and protecting group switching time; upper first message for measuring and protecting group switching time carrying port-mark from convergence device searching that access device received before this message; whether the port-mark relatively carried in these two messages is identical, as shown in S102 in Fig. 1.When required precision is not high, whether the message that access device also can compare before the first message is identical with port-mark entrained in the second message, and this method is also the object of the present patent application protection, forms the equivalent with the embodiment of the present invention.Can identify that whether message is from convergence device with device identifications such as the source MAC carried in message, source IP addresss, message from this convergence device also can carry other for the device identification that identifies for access device identification, and the MD grade of carrying in message also can be used in the maintenance field MD planned to identify.Generally, access device also can after discovery message goes out the situation of active, carry out again saidly comparing behavior, the port-mark of the main port carried in the port-mark of the convergence device main port carried in last message received before now can only comparing message dropping and first message received after again receiving message.Or as shown in S202 in Fig. 2, whether the main port comparing adjacent two messages before and after receiving is different.When required precision is not high; whether OLT also can change by the main port of timing ratio comparatively for receiving message; or whether the main port that also can compare for receiving the adjacent nearer message of two changes; these two kinds of methods are also the objects of the present patent application protection, form the equivalent with the embodiment of the present invention.By constantly more described port-mark or described receiving terminal main port, the port-mark entrained by judging in the message of front and back or receiving terminal main port whether identical.If the judgement of step 202 is identical; illustrate that protection group is switched; access device stores relevant information; as the temporal information etc. of the information for identifying convergence device, port-mark, message; and continue to compare, this comparison procedure continues until occur different for receiving the port-mark carried in the main port of message or front and back message or measure time-out before and after finding always.
Step 203: as shown in S203 in S103 or Fig. 2 in Fig. 1; if the judgement of step 202 is different; illustrate that protection group is switched; access device then according to protection group switch before and after from two messages for measuring and protecting group switching time of convergence device delivery time difference or the time of reception poor, draw protection group switching time.Optionally, two messages for calculating can be two messages for measuring and protecting group switching time from convergence device of adjacent reception, and non-conterminous two messages also can be used when required precision is not high to calculate.Computational methods can be the delivery times according to carrying in time of reception of message or message, also can calculate according to the sequence number in periodically packet.It is identical that concrete computational methods and error processing method and step 103 in embodiment one describe, and repeats no more herein.
By step 201, step 202, step 203, the access device at access device place can record the descending switching time of protection group.Because ethernet port protection group two side apparatus is symmetrical; it is all single equipment configuration dual-port; therefore the method for measurement of the up switching time of protection group is identical with the method for measurement of descending switching time, namely by same method, convergence device can record the up switching time of protection group.Access device and convergence device, simultaneously to literary composition of transmitting messages, can realize the descending switching time of measuring and protecting group and up switching time simultaneously in a same protection group reversed process.When the corresponding multiple access device of existence convergence device, the message that each access device sends should identify by Portable device, and for the mark of convergence device identification from different access device, method of measurement is similar.
What deserves to be explained is, access device and convergence device can be synchronous to literary composition of transmitting messages, and also can be nonsynchronous.The type of message of the message that type of message and the convergence device of the message that access device sends send can be identical, also can be different.The message that access device and convergence device send can be periodically packet, and the transmission interval of periodically packet can be free according to the type of hardware condition and message, both send the transmission interval of periodically packet can be different.The transmission interval of selected periodically packet is less, and the protection switch time precision measured by opposite end is higher.
The method of the measuring and protecting group switching time that the embodiment of the present invention discloses, can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the method that the embodiment of the present invention discloses utilizes the change of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode three: the embodiment of the present invention provides a kind of method of measuring and protecting group switching time, can be applied in the networking structure as GPONTypeC or EPONTypeD, as shown in Figure 1 and Figure 2.
GPONTypeC protection group uses the optical splitter of 2:N, and EPONTypeD protection group uses the optical splitter of 1:N, but both protection mechanisms to realize principle similar, as shown in Figure 5.Two ports of OLT connect two optical splitters respectively, and two ports of each ONU or ONT also access this optical splitter of two respectively.OLT and ONU all only has a PON mouth to be in master state, is main port, and another PON mouth is in stand-by state, is standby port.In some cases, can there is more than one standby port in protection group, and this method is applicable equally.Multiple message or the message that can carry port-mark can be used in the embodiment of the present invention; below only for Ethernet message; message for measuring and protecting group switching time can be common message, also can be the message being specifically designed to measuring and protecting group switching time.The message being specifically designed to measuring and protecting group switching time can be the message with specific identifier, also can be some specific message, as detection type message.All set up the MEP based on protection group at OLT and ONU, wherein a certain ONU or ONT is designated as an ONU, and the method for measurement of other ONU or ONT is identical with this ONU or ONT.
Concrete method of measurement is as follows:
Step 301: as shown in S201 in S101 or Fig. 2 in Fig. 1, an ONU receives the message for measuring and protecting group switching time from OLT.Message for measuring and protecting group switching time can be Ethernet message, also can be the message of other types, below for Ethernet message.The type of Ethernet message can unrestricted choice.Message for measuring and protecting group switching time can be specific message, and the message of transport service also can be used for measuring.These from OLT every two adjacent message between the time interval be less than or equal to protection group switching time and measure the maximum error of measuring of allowing.These Ethernet messages from OLT can be that this OLT sends, and also can be that other MEP being based upon this OLT upstream send.Protection group switching time measures difference that the maximum error of measuring of allowing requires according to certainty of measurement and different, and setting that can be artificial, such as, when rough measure, can set its maximum error of measuring of allowing artificially is 7ms.Certainly; more easily; can select existing Ethernet periodically packet, can be the ETHOAM message such as one-way delay measurement 1DM message, continuity check message CCM message, loopback message LBM message, Linktrace Message LTM message, alarm indication signal AIS message, locking signal LCK message, test TST message, automatically protection conversion APS message, maintain communications channel MCC message, loss measurement message LMM message, latency measurement DM message, experiment OAM message EXM message, the specific OAM message VSM message of supplier.Optionally, going when selecting 1DM message, according to different required precisions, its transmission interval can be set and be less than or equal to 5ms, as 1ms, 2ms, 3.3ms.Optionally, these are from the main port mark can carrying OLT place equipment and OLT in the message of OLT, the method of carrying can be by software related port identified be issued to transmit port hardware or software on, message is through this port, and hardware or software add respective identification on message.Optionally, this port-mark can be only the port numbers of the main port of this OLT, it can be the combination of the MAC address of this OLT and the port numbers of main port, also can be the combination of the Internet protocol IP address of this OLT and the port numbers of main port, can also be the combination of the MEP identify label ID of OLT and the port numbers of main port, other marks that can be used for the different main ports distinguishing this OLT also can use.Optionally, the MAC Address of this OLT in the TLV field from the message of OLT, can be carried, or device number, or the MEPID of OLT.Optionally, the message of transmission can carry the delivery time of message.Different as required, the destination-mac address that message sends can be set to MAC Address or the Multicast MAC Address of an ONU.
Step 302: after an ONU one of receiving from OLT carries second message of port-mark for measuring and protecting group switching time; upper first message for measuring and protecting group switching time carrying port-mark from OLT searching that an ONU received before this message; whether the port-mark relatively carried in these two messages is identical, as shown in S102 in Fig. 1.When required precision is not high, whether the message that an ONU also can compare before the first message is identical with port-mark entrained in the second message, and this method is also the object of the present patent application protection, forms the equivalent with the embodiment of the present invention.Can identify that whether message is from OLT with device identifications such as the source MAC carried in message, source IP addresss, message from this OLT also can carry other and identify for ONU for the device identification identified, the MD grade of carrying in message also can be used in the maintenance field MD planned to identify.Or whether an ONU compares the main port receiving adjacent two messages in front and back different, as shown in S202 in Fig. 2.When required precision is not high; whether the one ONU also can change by the main port of timing ratio comparatively for receiving message; or whether the main port that also can compare for receiving the adjacent nearer message of two changes; these two kinds of methods are also the objects of the present patent application protection, form the equivalent with the embodiment of the present invention.By constantly more described port-mark or described receiving terminal main port, the port-mark entrained by judging in the message of front and back or receiving terminal main port whether identical.If be more than judged as identical; illustrate that protection group is switched; one ONU stores relevant information; comprise the port information etc. in temporal information for judging information that message originates, message and message; for next time than than with; and continue to compare, this comparison procedure continues until occur different for the main port of the OLT carried in the message of the main port or reception that receive message or measure time-out before and after finding always.
Step 303: as shown in S203 in S103 or Fig. 2 in Fig. 1; if the judgement of step 302 is different; protection group generation pretection switch is described; then according to two messages for comparing port-mark or for the delivery time difference of two messages that compare receiving port or the time of reception poor, draw protection group switching time.In the less demanding situation of certainty of measurement, also can be other messages that protection group switches front and back for what calculate.The method calculated can be, computing time, the method at interval can be compare two messages for comparing port-mark or the time of reception for two messages that compare receiving port, showed that the time of reception of two messages is poor.The method calculated can also be comprise: message carries the moment that this message sends; The method calculated compares two messages for comparing port-mark or the delivery time for two messages that compare receiving port, show that the delivery time of two messages is poor.When the message from OLT is periodically packet, the method for calculating can also be comprise: each periodically packet carries an integer sequence number, and the sequence number entrained by described periodically packet that order sends is continuous print; The method calculated be compare two messages for comparing port-mark or for compare receiving port two messages entrained by integer sequence number, draw the integer sequence difference of two messages, after acquired results takes absolute value, be multiplied by the transmission interval of periodically packet.Calculate acquired results and can directly think protection group switching time, its measure error scope is for zero to maximum allowed measure error.When knowing OLT worst case transmit time interval, result of calculation can be deducted a maximum time interval, so measure error scope is for zero to maximum allowed measure error.Such as, when the message from OLT is the 1DM message at 3.3ms transmission interval, the measure error scope of the measurement of receiving terminal the one ONU is 0 ~ 6.6ms, and after deducting a transmission interval, measure error becomes-3.3ms ~ 3.3ms.Message for calculating can be the message being specifically designed to measuring and protecting group switching time from OLT, also can be other messages from OLT.If the result that step 302 compares is identical, then store relevant information, for rear use, and continue to compare until find that protection group is switched or measures time-out.
By step 301, step 302, step 303, the ONU at an ONU place can record the descending switching time of protection group.In addition, by step 301a, step 302a, step 303a can the up switching time of measuring and protecting group, as depicted in figs. 1 and 2.The up switching time of measuring and protecting group and the descending switching time of measuring and protecting group can carry out separately, also can carry out simultaneously.Carry out while described measuring and not necessarily require synchronously, but the descending switching time of measuring and protecting group and up switching time can realized with in a protection group reversed process.
Step 301a: as shown in S201 in S101 or Fig. 2 in Fig. 1, OLT receive the message for measuring and protecting group switching time from an ONU.Message for measuring and protecting group switching time can be Ethernet message, also can be the message of other types, below for Ethernet message.The type of Ethernet message can unrestricted choice.Message for measuring and protecting group switching time can be specific message, and the message of transport service also can be used for measuring.These from an ONU every two adjacent message between the time interval be less than or equal to protection group switching time and measure the maximum error of measuring of allowing.Protection group switching time measures difference that the maximum error of measuring of allowing requires according to certainty of measurement and different, and setting that can be artificial, such as, when rough measure, can set its maximum error of measuring of allowing artificially is 5ms.Certainly; more easily; can select existing Ethernet periodically packet, can be the ETHOAM message such as one-way delay measurement 1DM message, continuity check message CCM message, loopback message LBM message, Linktrace Message LTM message, alarm indication signal AIS message, locking signal LCK message, test TST message, automatically protection conversion APS message, maintain communications channel MCC message, loss measurement message LMM message, latency measurement DM message, experiment OAM message EXM message, the specific OAM message VSM message of supplier.Optionally, going when selecting 1DM message, according to different required precisions, its transmission interval can be set and be less than or equal to 5ms, as 1ms, 2ms, 3.3ms.The device identification of an ONU place equipment and ONU is carried in these messages from an ONU.Optionally, these device identifications comprise the combination of any one or any two in the Internet protocol IP address of the MAC address of described OLT place equipment, the device number of described OLT place equipment, the MEP identify label ID of described OLT and described OLT place equipment, the combination of described MAC Address, device number, MEPID and IP address and other information can as the device identification of equipment, and other marks that can be used for distinguishing different ONU also can be used as device identification.The port-mark of the main port of an ONU place equipment and ONU is carried in these messages from an ONU.Optionally, this port-mark can be only the port numbers of the main port of this ONU, it can be the combination of the MAC address of this ONU and the port numbers of main port, also can be the combination of the Internet protocol IP address of this ONU and the port numbers of main port, can also be the combination of the MEP identify label ID of OLT and the port numbers of main port, other marks that can be used for the different main ports distinguishing this ONU also can use.Optionally, described device identification can be carried in type in message, length, numerical value TLV field.Optionally, the message of transmission can carry the delivery time of message.Different as required, the destination-mac address that message sends can be set to MAC Address or the Multicast MAC Address of an ONU.
The device identification of the ONU place equipment of step 302a:OLT entrained by received message, with receive at this message before message in the device identification of carrying compare, judge whether identical, through judging the port-mark finding last message having with it identical device to identify that described OLT stores, whether identically compare the port-mark carried in these two messages again, as shown in S102 in Fig. 1.The process that said judgement is searched also can be the device identification of OLT according to an ONU place equipment entrained in received message, search the device identification entrained by this message in the list item of the relevant devices mark directly stored by it, thus determine that received last carries the port-mark of the message of this device identification before OLT receives this message.When required precision is not high; whether OLT also can comparatively change for receiving the port-mark carried in message by timing ratio; or also can compare and whether change for receiving the port-mark carried in the adjacent nearer message of two; these two kinds of methods are also the objects of the present patent application protection, form the equivalent with the embodiment of the present invention.Generally, OLT also can after in discovery, message goes out the situation of active, then carries out saidly comparing behavior.If two adjacent two port-marks had entrained by the message of identical device mark are recently different, then think that protection group there occurs and switch.Or OLT compares the receiving terminal OLT main port for receiving adjacent two messages in front and back continuously, as shown in S202 in Fig. 2.Here the message said is not limited to the message that an ONU sends.When required precision is not high; whether OLT also can change by the main port of timing ratio comparatively for receiving message; or whether the main port that also can compare for receiving the adjacent nearer message of two changes; these two kinds of methods are also the objects of the present patent application protection, form the equivalent with the embodiment of the present invention.Generally, OLT also can after discovery message goes out the situation of active, carry out again saidly comparing behavior, before now only can comparing message dropping, receive port-mark and the port-mark of the receiving terminal main port of reception first message after again receiving message of the receiving terminal main port of last message.By constantly comparing front and back for receiving the main port of message, judge that whether OLT is identical for the main port receiving message.Compare behavior by described, judge that whether adjacent to have port-mark entrained in the message of identical device mark for the OLT main port or adjacent recently two receiving message twice identical.If be more than judged as identical; illustrate that protection group is switched; OLT stores relevant information; comprise the port information that carries in temporal information for judging information that message originates, message and message or the port information etc. for the port that receives message; for next time than than with; and continue to compare, this comparison procedure continues until occur different for the main port of the OLT carried in the message of the main port or reception that receive message or measure time-out before and after finding always.
Step 303a: as shown in S203 in S103 or Fig. 2 in Fig. 1; if the judgement of step 302a is different; illustrate that protection group is switched; then poor according to the delivery time difference with two messages of the device identification of an ONU place equipment or the time of reception for comparing port-mark, draw protection group switching time.Optionally, computing time interval method can be in comparison step 302a for comparing the time of reception with two messages of the device identification of an ONU place equipment of port-mark, show that time of reception is poor.Optionally, described computing time, the method at interval can also be delivery time according to the message carried in message, or according to the integer sequence number of the message carried in message and the transmission interval of message.It is identical that concrete computational methods and embodiment one step 103 describe, and repeats no more herein.When required precision is not high, also can calculate with other messages before and after main port change, this method is the equivalent of the embodiment of the present invention.It should be noted that for first judging and finding the port-mark that last has identical device mark, then compare port-mark to judge whether method protection group occurring and switches, directly can calculate switching time according to two messages for comparing.And judge for utilizing receiving port to change the method whether protection group switches; message for calculating must be the message from an ONU, and the message namely for calculating is the second message that first of receiving after last receiving before the change of receiving terminal main port carries the first message of the device identification of an ONU place equipment and the change of receiving terminal main port carries the device identification of an ONU place equipment.If therefore the judgement of step 302a is different, illustrates that protection group is switched, then according to the delivery time of the first message and the second message is poor or the time of reception is poor, draws protection group switching time.The method calculated can be that computing time, the method at interval can be the time of reception of comparing the first message and the second message, showed that the time of reception of two messages is poor.The method calculated can also be comprise: message carries the moment that this message sends; The method calculated compares the delivery time of the first message and the second message, show that the delivery time of two messages is poor.When the message from OLT is periodically packet, the method for calculating can also be comprise: each periodically packet carries an integer sequence number, and the sequence number entrained by described periodically packet that order sends is continuous print; The method calculated compares the first message and the integer sequence number entrained by the second message, draws the integer sequence difference of two messages, be multiplied by the transmission interval of periodically packet after acquired results takes absolute value.Calculate acquired results and can directly think protection group switching time, its measure error scope is for zero to maximum allowed measure error.When knowing OLT worst case transmit time interval, result of calculation can be deducted a maximum time interval, so measure error scope is for zero to maximum allowed measure error.Such as, when the message from OLT is the 1DM message at 3.3ms transmission interval, the measure error scope of the measurement of receiving terminal the one ONU is 0 ~ 6.6ms, and after deducting a transmission interval, measure error becomes-3.3ms ~ 3.3ms.OLT can identify the transmission source of message by the MAC Address of the ONU place ONU carried in message.Optionally, when carrying other device identifications of its place ONU in the message that an ONU sends, OLT also can by identifying that this device identification identifies that whether message is from an ONU.
What deserves to be explained is, ONU and OLT can be synchronous to literary composition of transmitting messages, and also can be nonsynchronous.The type of message of the message that the one ONU sends can be identical with the type of message of the message that OLT sends, also can be different.The message that one ONU and OLT sends can be periodically packet, and the transmission interval of periodically packet can be free according to the type of hardware condition and message, both send the transmission interval of periodically packet can be different.The transmission interval of selected periodically packet is less, and the protection switch time precision measured by opposite end is higher.In addition; when OLT sends multicast message; each ONU can record the descending switching time of respective protection group in once switching; if when each ONU sends periodically packet to OLT; OLT can record the up switching time of protection group of each ONU in once switching; above behavior also can be carried out simultaneously, thus makes each ONU and OLT in a protection group reversed process, record the descending and up switching time of protection group of each ONU respectively.
The method of the measuring and protecting group switching time that the embodiment of the present invention discloses, can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the method that the embodiment of the present invention discloses utilizes the change of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode four: the embodiment of the present invention provides a kind of method of measurement of protection group switching time, can be applicable in the dual-home network of GPON or EPON, as shown in Figure 2 and Figure 6.
GPON, EPON dual-homed protection group protection mechanism is similar.As shown in Figure 7, two ports adhered to separately between two distinct devices are joined same protection group by the local command line configuration of webmaster or OLT by dual-homed protection group.Multiple message or the message that can carry port-mark can be used in the embodiment of the present invention; below only for Ethernet message; message for measuring and protecting group switching time can be common message, also can be the message being specifically designed to measuring and protecting group switching time.The message being specifically designed to measuring and protecting group switching time can be the message with specific identifier, also can be some specific message, as detection type message.Set up the MEP based on port at two OLT, two OLT are designated as an OLT and the 2nd OLT respectively, assuming that the port that protection group switches a front OLT place is main port, the port at the 2nd OLT place is standby port; Each ONU or ONT sets up the MEP based on protection group, and illustrate for concrete a certain ONU, be designated as an ONU, ONU method of measurement is identical therewith for other each ONU or ONT method of measurement.
Concrete grammar is as follows:
Step 401: as shown in S301 in S201 or Fig. 6 in Fig. 2, an ONU receives the message being used for measuring and protecting group switching time.Message for measuring and protecting group switching time can be Ethernet message, also can be the message of other types, below for Ethernet message.Message for measuring and protecting group switching time can be specific message, and the message of transport service also can be used for measuring.The message received is from an OLT or the 2nd OLT, these messages from an OLT or the 2nd OLT can be sent by a described OLT or the 2nd OLT, also can by the upstream MEP of an OLT, the 2nd OLT send and by a described OLT, the 2nd OLT forward.These from an OLT every two adjacent message between the time interval and from the 2nd OLT every two adjacent message between time interval sum be less than or equal to protection group switching time and measure the maximum error of measuring of allowing.Protection group switching time measures difference that the maximum error of measuring of allowing requires according to certainty of measurement and different, and setting that can be artificial, such as, when rough measure, can set its maximum error of measuring of allowing artificially is 5ms.Optionally; message from an OLT, the 2nd OLT can select existing Ethernet periodically packet, can be the ETHOAM message such as one-way delay measurement 1DM message, continuity check message CCM message, loopback message LBM message, Linktrace Message LTM message, alarm indication signal AIS message, locking signal LCK message, test TST message, automatically protection conversion APS message, maintain communications channel MCC message, loss measurement message LMM message, latency measurement DM message, experiment OAM message EXM message, the specific OAM message VSM message of supplier.Optionally, going when selecting 1DM message, according to different required precisions, its transmission interval can be set and be less than or equal to 5ms, as 1ms, 2ms, 3.3ms.Optionally, the device identification of its OLT place equipment, the 2nd OLT place equipment is carried in these messages from an OLT, the 2nd OLT respectively.Optionally, these device identifications comprise the combination of any one or any two in the Internet protocol IP address of the MAC address of MEP place equipment, the device number of MEP place equipment, MEP identify label ID and MEP place equipment, the combination of described MAC Address, device number, MEPID and IP address and other information can as the device identification of equipment, and other marks that can be used for distinguishing different ONU also can be used as device identification.Optionally, the delivery time of message can be carried in the message from an OLT, the 2nd OLT.Different as required, the destination-mac address of transmission can be set to MAC Address or the Multicast MAC Address of an ONU.Although an OLT and the 2nd OLT sends to an ONU or E-Packets, but owing to only having the main port at an OLT place in running order, the port at the 2nd OLT place is in stand-by state, so only can be sent to an ONU from the message of an OLT; Occur after protection group switches, the port at the 2nd OLT place becomes main port, and an OLT deactivates state, at this moment only can be sent to an ONU from the message of the 2nd OLT.
Step 402 a: ONU compares the receiving terminal main port that before and after reception, adjacent two messages are used, as shown in S202 in Fig. 2, or an ONU compares device identification entrained in adjacent two messages in front and back, as shown in S302 in Fig. 6.When required precision is not high; whether the device identification entrained by other messages that the one ONU also can compare before and after the change of its main port is identical; or whether compare the port receiving other messages before and after the change of its main port identical; this method is also the object of the present patent application protection, forms the equivalent with the embodiment of the present invention.Generally, one ONU also can after discovery message goes out the situation of active, carry out again saidly comparing behavior, now only can compare the receiving terminal main port that receives last message before message dropping and the receiving terminal main port of reception first message after again receiving message, or the device identification entrained by last message received before only comparing message dropping and the device identification entrained by first message received after again receiving message.What deserves to be explained is, entrained for relatively and judge whether that the device identification of switching refers to the device identification of an OLT or the 2nd OLT place equipment in message, if message sent by the MEP of an OLT and the 2nd OLT upstream, so when message by an OLT or the 2nd OLT forward time can carry the device identification of a upper OLT or the 2nd OLT place equipment, the source MAC that the MEP message of a described OLT and the 2nd OLT upstream carries is not used in and compares.If an ONU finds that the information compared there occurs change, then an ONU determines that protection group there occurs and switches.By described comparison, judge that whether adjacent to have device identification entrained in the message of device identification for the main port or adjacent recently two receiving message twice identical.These device identifications can be the source MAC in the message of a described OLT or described 2nd OLT place equipment transmission, also can be that other can be used for distinguishing other device identifications of a described OLT and described 2nd OLT.If be more than judged as identical; illustrate that protection group is switched; one ONU stores relevant information; comprise the port information etc. in temporal information for judging information that message originates, message and message; for next time than than with; and continue to compare, this comparison procedure continues until find that protection group is switched or measures time-out always.
Step 403: as shown in S303 in S203 or Fig. 6 in Fig. 2, if the judgement of step 402 is different, illustrates that protection group is switched, then basis is poor or the time of reception is poor for the delivery time of two messages compared, and draws protection group switching time.Optionally, computing time, the method at interval can be compare two message times of reception for comparing, and showed that the time of reception of two messages is poor.The method calculated can be identical with embodiment step 103, repeats no more.In the less demanding situation of certainty of measurement, the message for calculating also can be other messages for measuring and protecting group switching time before and after protection group is switched.
By step 401, step 402, step 403, the ONU at an ONU place can record the descending switching time of protection group.Optionally, the descending switching time of protection group measured by the one ONU can be reported and submitted to the 2nd OLT by step.One ONU is carried at the protection group descending switching time that step 403 records in message and reports and submits to the 2nd OLT.In general, relatively, an ONU can report and submit measured protection group to the 2nd OLT for its reference by descending switching time for the up switching time of protection group and descending switching time.When needs, the descending switching time of protection group that the 2nd OLT can report and submit an ONU is directly as the up switching time of protection group.When from an OLT with when sending from the MEP that the message of the 2nd OLT is upstream, an ONU also measures the up-downgoing switching time of dual-homed protection group simultaneously to literary composition of transmitting messages by the MEP with this upstream.
What deserves to be explained is, what deserves to be explained is, the message from an OLT and the 2nd OLT can be synchronous, also can be nonsynchronous.Type of message from the message of an OLT can be identical with the type of message of the message from the 2nd OLT, also can be different.Message from an OLT and the 2nd OLT can be periodically packet, and the transmission interval of periodically packet can be free according to the type of hardware condition and message, both send the transmission interval of periodically packet can be different.The transmission interval of selected periodically packet is less, and the protection switch time precision measured by opposite end is higher.In addition, when the message from an OLT and the 2nd OLT is multicast message, each ONU can record the descending switching time of respective protection group in once switching.
The method of the measuring and protecting group switching time that the embodiment of the present invention discloses, can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the method that the embodiment of the present invention discloses utilizes the change of the device identification of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode five: the embodiment of the present invention provides a kind of network equipment, as shown in Figure 8.Concrete, this equipment comprises:
Receiver module, for receiving message;
Parsing module, obtains analysis result for second message of resolving received by receiver module, and parsing module can be used for the port-mark that comprises in analytic message and device identification, optionally, also can be used for the delivery time of message entrained in analytic message;
Memory module, for storing the information from parsing module, information from parsing module can be passed on by processing module, also can directly be reported and submitted by parsing module, the port-mark that the information that memory module stores includes but not limited to carry in message, temporal information, device identification and the corresponding relation between them;
Processing module is for obtaining the second port-mark and the first port-mark, relatively whether the second port-mark is identical with the first port-mark, to judge whether the protection group between this network equipment and the first equipment switches, this second port-mark is the port-mark carried in the second message from parsing module, this first port is designated the port-mark carried in the first message from memory module, this second message is the message for measuring and protecting group switching time from the first equipment that this network equipment receives, the second message that this first message receives for this network equipment upper one from the message for measuring and protecting group switching time described in the first equipment, this second port-mark can directly be reported and submitted by parsing module, also can be reported and submitted by parsing module and report and submit to processing module to after memory module by memory module, if the result of above-mentioned comparison is different, then calculate protection group switching time according to the temporal information of the first message and the second message, if identical, memory module stores the port-mark of corresponding message, the temporal information of message, the device identification of message and the corresponding relation between them, for future use, and proceed to compare, until measure protection group switching time or measure time-out, processing module is by judging that whether the device identification entrained by message in analysis result is identical with the device identification received before this entrained by message, by this deterministic process, last determining that this equipment received before receiving this message carries the port-mark of the message of identical device identification, more whether comparing these two, to carry port-marks entrained in the message of identical device mark identical.Described deterministic process can also be to the device identification relevant list item of device identification stored by described processing module directly entrained by the message in analysis result, thus last determining that this equipment received before receiving this message carries the port-mark of the message of identical device identification; Optionally, device identification may comprise send message the maintenance field MD grade of equipment, MAC address, device number, Internet protocol IP address and the combination of any one or any two that sends in the MEP identify label ID of the MEP on the equipment of message; Port-mark may comprise the MEPID of the MEP on the port numbers of the equipment main port sending message, the MAC Address of the equipment of transmission message, the IP address of the equipment of transmission message or the equipment of transmission message; In this case, corresponding parsing module need be equipped with device identification entrained in analytic message and the function of port-mark; Above-mentioned for judge and message for calculating also can be more close non-conterminous message, as described in processing module timing compare and calculate, or compare every several message and calculate.
Optionally, when these two messages carry the delivery time of message, the method for calculating comprises, by after in the message that receives entrained delivery time deduct the delivery time of another message; Optionally, when this message carries the delivery time of message, the method calculating delivery time difference comprises, because the equipment of current transmission message does not have message caching mechanism mostly, delivery time can be equal to the time of reception, so it is poor that the delivery time difference calculating gained also can be used as time of reception of message; Or, optionally, when these two messages are in a series of messages periodically sent two and carry the transmission interval of the message that the integer sequence of message number of message and described periodicity send in these two messages, the method calculated comprises, by after in the message that receives entrained integer sequence number deduct integer sequence number entrained in another message, the transmission interval of the message that described periodicity sends is multiplied by after acquired results takes absolute value, wherein, in the message that the described periodicity sent in order sends, entrained integer sequence of message number is continuous print.
Optionally, this equipment can comprise monitoring modular, for monitor receiver module receive message the time of reception and time of reception of monitoring report and submit to processing module.In this case, delivery time difference between described two messages or the time of reception difference computational methods can also be, by described monitoring module monitors to after time of reception deducting another message that described monitoring module monitors arrives the time of reception of message of receiving.Optionally, this equipment can also comprise generation module, for generating the message of the port-mark carrying this equipment main port, or, this equipment also comprises generation module, for generating the message carrying the port-mark of this equipment main port and the device identification of this equipment; This equipment can also comprise sending module, and for sending the message that described generation module generates, the time interval between every two adjacent message that this sending module sends is less than or equal to protection group switching time and measures the maximum error of measuring of allowing.Optionally; when this equipment main port and at least one standby port; this monitoring modular also can be used for monitoring this equipment and receives the main port of message and monitoring result is reported and submitted to judge module; by the change of receiving terminal main port, judge module can judge whether protection group switches; if switched, then measuring and protecting group switching time.
The disclosed network equipment can be ONU, can be OLT or ONT, can be access device, also can be convergence device, can also be other network entities and the network equipment.
By the front and back change of the transmitting terminal main port information of carrying in the message that receives, the network equipment that the embodiment of the present invention discloses can judge whether protection group switches, as switched, carry out the calculating of protection group switching time.Meanwhile, this network equipment also can be used for sending the message carrying port-mark and/or device identification, by lasting transmission message, opposite equip. can be made to record protection group switching time.This network equipment can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the network equipment that the embodiment of the present invention discloses utilizes the change of the device identification of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode six: the embodiment of the present invention provides a kind of network equipment, as shown in Figure 8.Concrete, this equipment comprises:
Receiver module, for receiving message;
Monitoring modular, also obtain the port-mark of the port receiving current message for monitoring the port receiving current message and report and submit to processing module or memory module, optionally, also can be used for monitoring this equipment receive the moment of message and report and submit to processing module or memory module;
Parsing module, obtain analysis result for the message of resolving received by receiver module, analysis result can include but not limited to the delivery time, device identification, port-mark etc. that carry in message;
Memory module, for storing the information from monitoring modular and parsing module, information from monitoring modular and parsing module can directly be reported and submitted by monitoring modular and parsing module, also can be pass on by by processing module, the port-mark that the information that memory module stores includes but not limited to carry in message, temporal information, device identification and the corresponding relation between them;
Processing module is for obtaining the second port-mark and the first port-mark, relatively whether the second port-mark is identical with the first port-mark, to judge whether the protection group between this network equipment and the first equipment switches, second port-mark is the port-mark of the port of reception second message from monitoring modular, first port is designated the port-mark of the port of reception first message from described memory module, second message is the message for measuring and protecting group switching time from the first equipment, first message is the upper message for measuring and protecting group switching time from described first equipment of the second message, if described second port-mark is different from described first port-mark, described processing module calculates protection group switching time according to the temporal information of described first message and described second message, if the second port-mark is identical with described first port-mark, the port-mark of the port of memory module storage corresponding reception message, the temporal information entrained by message, the device identification of message and the corresponding relation between them, for future use, and continue to compare until find that protection group is switched or measures time-out, parsing module is by the device identification in analytic message and analysis result is reported and submitted to processing module, and processing module is by the source of analysis result identification message.This first message and the second message are respectively described equipment last message from consolidated network equipment received before the main port for receiving message changes and are first message from consolidated network equipment of described equipment received by after the main port for receiving message changes.Optionally, when certainty of measurement is less demanding, the first message and the second message also can be other messages before and after main port change, if the second message is that main port changes rear second every message, and penultimate message before the first message main port change; Optionally, when this first message and this second message carry the delivery time of message, the method calculating delivery time difference comprises, the delivery time of described second message entrained in this second message is deducted the delivery time of described first message entrained in this first message, because the equipment of current transmission message does not have message caching mechanism mostly, delivery time can be equal to the time of reception, so it is poor that the delivery time difference calculating gained also can be used as time of reception of message.Or, optionally, when this first message and the second message are in a series of messages periodically sent two and carry the transmission interval of the message that the integer sequence of message number of described first message and described second message and described periodicity send in this first message and this second message respectively, the method calculated can comprise, integer sequence number entrained in this second message is deducted integer sequence number entrained in this first message, transmission interval entrained in this first message and this second message is multiplied by after acquired results takes absolute value, wherein, in the message that the described periodicity sent in order sends, entrained integer sequence of message number is continuous print.Or, optionally, the monitoring modular of this network equipment also has the function that monitoring equipment receives the message moment concurrently, the method so calculated can comprise, by monitoring module monitors to and report and submit to deduct the time of reception of this second message of processing module monitoring module monitors to and report and submit to the time of reception of this first message of processing module.Optionally, device identification may comprise send message the maintenance field MD grade of equipment, MAC address, device number, Internet protocol IP address and the combination of any one or any two that sends in the MEP identify label ID of the MEP on the equipment of message; In this case, corresponding parsing module need be equipped with device identification entrained in analytic message and the function of port-mark; Above-mentioned for judge and message for calculating also can be more close non-conterminous message, as described in processing module timing compare and calculate, or compare every several message and calculate.
Optionally, this network equipment can also comprise generation module, for generating the message of the port-mark carrying this network equipment main port; Or generation module is for generating the message of the device identification of port-mark and the described equipment carrying this equipment main port; This network equipment also comprises sending module, and for sending the message generating message and generate, the time interval between every two adjacent message that sending module sends is less than or equal to protection group switching time and measures the maximum error of measuring of allowing.
The disclosed network equipment can be ONU, can be OLT or ONT, can be access device, also can be convergence device, can also be other network entities and the network equipment.
By the front and back change receiving the receiving terminal main port information of message, the network equipment that the embodiment of the present invention discloses can judge whether protection group switches, as switched, carry out the calculating of protection group switching time.By the front and back change of the transmitting terminal main port information of carrying in the message that receives, the network equipment that the embodiment of the present invention discloses can judge whether protection group switches, as switched, carry out the calculating of protection group switching time.Meanwhile, this network equipment also can be used for sending the message carrying port-mark and/or device identification, by lasting transmission message, opposite equip. can be made to record protection group switching time.This network equipment can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the network equipment that the embodiment of the present invention discloses utilizes the change of the device identification of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode seven: the embodiment of the present invention provides a kind of network equipment, this network equipment may be used for the protection group switching time measuring dual-homed protection group as shown in Figure 8.Concrete, this equipment comprises:
Receiver module, for receiving message;
Monitoring modular, also obtain the port-mark of the port receiving current message for monitoring the port receiving current message and report and submit to processing module or memory module, optionally, also can be used for monitoring this equipment receive the moment of message and report and submit to processing module or memory module;
Memory module, for storing the information from described monitoring modular, information from monitoring modular can directly be reported and submitted by monitoring modular, also can be pass on by by processing module, the port-mark that the information that memory module stores includes but not limited to carry in message, temporal information, device identification and the corresponding relation between them;
Processing module is for obtaining the second port-mark and the first port-mark, relatively whether the second port-mark is identical with the first port-mark, to judge whether described dual-homed protection group switches, second port-mark is for the port-mark of the second port of the second message of measuring and protecting group switching time from the reception of described monitoring modular, second port is the main port of this network equipment when receiving the second message, first port is designated reception from described memory module for the port-mark of the first port of the first message of measuring and protecting group switching time, first port is the main port of this network equipment when receiving the first message, first message is a upper message for measuring and protecting group switching time of described second message that the described network equipment receives, the second port-mark from monitoring modular can directly be reported and submitted by monitoring modular, also can be passed on by processing module, port-mark is that this device interior is for judging that message send reception by which port concrete, it can be the port numbers of self of port, also can be the mark that equipment distributes to concrete port, also can be that other can be used for distinguishing the mark of different port, judge that whether described second port-mark is not identical with described first port-mark, to determine whether the receiving port of the described network equipment there occurs change, if not identical, temporal information according to described first message and described current message calculates protection group switching time, if identical, memory module store corresponding receive the port of message port-mark, temporal information entrained by message, the device identification of message and the corresponding relation between them, for future use and proceed to compare until measure protection group switching time or time-out.Optionally; this network equipment can also comprise parsing module; delivery time entrained in message is reported and submitted for resolving also phase processing module; processing module by comparing the delivery time of rear first message of port change receiving message port change last message front and receive message, can draw protection group switching time.Optionally, processing module can change the time of reception of rear first message by comparing monitoring modular reception message port change last message front monitored and the port receiving message, draw protection group switching time; Above-mentioned for judge and message for calculating also can be more close non-conterminous message, as described in processing module timing compare and calculate, or compare every several message and calculate.
Or, be that this network equipment comprises: receiver module with the disclosed scheme arranged side by side utilizing receiving port to change to judge method that whether protection group switches corresponding, for receiving message, parsing module, reports and submits analysis result to processing module for the current message of resolving received by described receiver module, memory module, for storing the information from described parsing module, described processing module is for obtaining the second device identification and the first device identification, relatively whether the second device identification is identical with the first device identification, to judge whether described dual-homed protection group switches, second device identification is the device identification of carrying in the second message for measuring and protecting group switching time from the second port accepts of described parsing module, second port is the main port of described network equipment when receiving the second message, first device identification is the mark of carrying in the first message for measuring and protecting group switching time from the first port accepts of described memory module, first port is the main port of described network equipment when receiving the first message, first message is a upper message for measuring and protecting group switching time of the second message that the described network equipment receives, whether more described second device identification is identical with described first device identification, if not identical, described processing module obtains from the delivery time carried in the described current message in the delivery time carried in described first message of described memory module and described analysis result, the delivery time of more described current message and the delivery time of described first message, to obtain protection group switching time.Before and after judge module judges according to the result that parsing module is resolved, in adjacent twice message, whether entrained device identification is identical, if different, then think that protection group there occurs and switches, calculate.Optionally, this network equipment also can comprise monitoring modular, for monitoring the time of reception receiving message.The method of this network device computes protection group switching time can be the delivery time carried in the message utilizing parsing module to resolve, and also can be the time of reception of the reception message utilizing monitoring modular to monitor.If processing module is through judging, find that protection group is not switched, then memory module stores the relevant device identification entrained by message and the transmission of corresponding message or receiving time information etc., for future use, and continues to compare until measure protection group switching time or time-out; Above-mentioned for judge and message for calculating also can be more close non-conterminous message, as described in processing module timing compare and calculate, or compare every several message and calculate.
Optionally, these two kinds of network equipments can also comprise generation module, for generating the message of the port-mark carrying this network equipment main port; Or this generation module carries the message of the port-mark of this network equipment main port and the device identification of this network equipment for generating; This network equipment also comprises sending module, and for sending the message generating message and generate, the time interval between every two adjacent message that described sending module sends is less than or equal to protection group switching time and measures the maximum error of measuring of allowing.By the convergence device with Liang GeOLT upstream, dual-homed opposite end to literary composition of transmitting messages, measure while the up protection switch time of dual-homed protection group and the descending protection switch time of protection group can be realized.
Disclosed above two kinds of network equipments can be ONU or ONT, also can access device, also can be other network equipments or network entity.
The network equipment that the embodiment of the present invention discloses can be changed by the front and back receiving the receiving terminal main port information of message or the front and back change of equipment identification information entrained in message judges whether protection group switches, and as switched, carries out the calculating of protection group switching time.By the front and back change of the transmitting terminal main port information of carrying in the message that receives, the network equipment that the embodiment of the present invention discloses can judge whether protection group switches, as switched, carry out the calculating of protection group switching time.Meanwhile, this network equipment also can be used for sending the message carrying port-mark and/or device identification, by lasting transmission message, opposite equip. can be made to record protection group switching time.This network equipment can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the network equipment that the embodiment of the present invention discloses utilizes the change of the device identification of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode eight: the embodiment of the present invention also provides a kind of network equipment, as shown in Figure 9, comprises processor, memory, receiver, wherein processor with rear both be coupled.This network equipment may be used for performing the method as embodiment one, two, three or four.Concrete, receiver is for receiving the message from this network equipment outside; Processor processes the message received, concrete, has the function as monitoring modular, parsing module and the processing module in embodiment five, six, seven.
This processor can be general processor, and as integrated circuit (IC), so its program performed stores in memory; This processor also can be application-specific integrated circuit (ASIC), as ASIC (ApplicationSpecificIntegratedCircuit) or FPGA (Field-Programmablegatearray), or other similar functions devices.
According to the network equipment that the present embodiment provides, this network equipment can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the network equipment that the embodiment of the present invention discloses utilizes the change of the device identification of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode nine: the embodiment of the present invention also provides a kind of system of measuring and protecting group switching time, and this system at least comprises first network equipment and second network equipment.
On the one hand, if this system by the main port of first network equipment to be connected with standby port the second equipment form protection group time, such as (OLT in figure is first network equipment to network system shown in Fig. 3,0NU (1) is second network equipment): second network equipment generates the message carrying the device identification of this second network equipment self, or for generating the message carrying the port-mark of described second network equipment main port and the device identification of described second network equipment; The message that this second network equipment generates is message for measuring and protecting group switching time, and the time interval of measuring the maximum error of measuring of allowing to be less than or equal to protection group switching time sends continuously to first network equipment.First network equipment receives the message for measuring and protecting group switching time from second network equipment; whether identically judge this first equipment to receive adjacent two these main ports being used for the message of measuring and protecting group switching time; determine whether the protection group between this first network equipment and second network equipment switches with this; if the reception main port of adjacent two messages is not identical, then first network device measuring protection group switching time.Concrete, the 26S Proteasome Structure and Function of first network equipment can the network equipment in reference implementation mode six; Second network equipment comprises generation module, for generate the device identification that carries this network equipment self, for the message of measuring and protecting group switching time, this device identification can time maintenance field MD grade, source MAC, IP address etc., this device identification can for receiving equipment identification message source; Second network equipment also comprises sending module, for be less than or equal to time interval that protection group switching time measures the maximum error of measuring of allowing continuously to described first network equipment send this carry the device identification of the network equipment, for the message of measuring and protecting group switching time.
On the one hand, if when this system forms protection group by the main port of first network equipment connection second equipment and standby port, such as (ONU (1) in figure is first network equipment to network system shown in Fig. 3, OLT is second network equipment): second network equipment generates the message carrying the device identification of this second network equipment self, or for generating the message carrying the port-mark of described second network equipment main port and the device identification of described second network equipment; The message that this second network equipment generates is message for measuring and protecting group switching time, and the time interval of measuring the maximum error of measuring of allowing to be less than or equal to protection group switching time sends continuously to first network equipment.First network equipment receives the message for measuring and protecting group switching time from second network equipment; judge received by it adjacent two whether identical from the port-mark carried in the message for measuring and protecting group switching time of second network equipment; to determine whether the protection group between this first network equipment and second network equipment switches; if the port-mark of the main port of the second network equipment carried in adjacent two messages is not identical, then first network device measuring protection group switching time.Concrete, the 26S Proteasome Structure and Function of first network equipment can the network equipment in reference implementation mode five; Second network equipment comprises generation module, for generate the device identification that carries this network equipment self and main port port-mark, for the message of measuring and protecting group switching time, this device identification can time maintenance field MD grade, source MAC, IP address etc., this device identification can for receiving equipment identification message source, and main port port-mark can judge main port during the second equipment transmission message for the equipment receiving message; Second network equipment also comprises sending module, for be less than or equal to time interval that protection group switching time measures the maximum error of measuring of allowing continuously to described first network equipment send this carry the device identification of the network equipment, for the message of measuring and protecting group switching time.
In the system that present embodiment discloses, first network equipment and second network equipment can be the transmitting terminal of test packet and the measuring junction of protection group switching time simultaneously, namely, first network equipment can also generate the message for measuring and protecting group switching time, carry the port-mark of the main port of first network equipment in this message or also carry the device identification of first network equipment simultaneously, and the time interval of measuring the maximum error of measuring of allowing to be less than or equal to protection group switching time sends continuously to first network equipment, same, second network equipment can perform judgement and the measurement function of the first network equipment as described in first two sections equally, concrete, when main port and the standby port formation protection group of the first equipment connection second equipment, whether second network equipment is also for identical from adjacent two main ports for the message of measuring and protecting group switching time of first network equipment according to its reception, to judge whether the protection group between first network equipment and second network equipment switches, if described main port is not identical, then second network device measuring protection group switching time, or the main port of the first equipment to be connected with standby port described second equipment form protection group time, whether the port-mark of second network equipment also for carrying in adjacent two messages for measuring and protecting group switching time from described first network equipment received by it be identical, to judge whether the protection group between first network equipment and second network equipment switches, if port-mark is not identical, then second network device measuring protection group switching time.
According to the network system that the present embodiment provides, this network system can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the network system that the embodiment of the present invention discloses utilizes the change of the device identification of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Execution mode ten: the embodiment of the present invention also provides a kind of system of measuring and protecting group switching time, and this system at least comprises first network equipment, second network equipment and the 3rd network equipment.Wherein the main port of first network equipment is connected with the 3rd network equipment with second network equipment respectively with standby port, form a dual-homed connection, such as shown in accompanying drawing 7, first network equipment can be ONU (1), second network equipment can be OLT (1), and the 3rd network equipment can be OLT (2);
Wherein first network equipment judge that it receives adjacent two whether identical for the device identification testing to carry in the message of protection group switching time; if not identical, think that protection group there occurs and switch; then according to the temporal information measuring and protecting group switching time of these adjacent two messages; in concrete method of measurement preceding embodiment, existing description, repeats no more.Or first network equipment judge its receive adjacent two whether identical for the main port testing the message of protection group switching time; if not identical, think that protection group there occurs and switch; then according to the temporal information measuring and protecting group switching time of these adjacent two messages; in concrete method of measurement preceding embodiment, existing description, repeats no more.Concrete, the 26S Proteasome Structure and Function of first network equipment realizes the network equipment as described in execution mode seven.
Second network equipment is the equipment that function is identical with the 3rd network equipment; concrete; second or the 3rd the network equipment for generate the device identification that carries this network equipment self, for the message of measuring and protecting group switching time, and be less than or equal to time interval that protection group switching time measures the maximum error of measuring of allowing continuously to described first network equipment send this carry the device identification of the network equipment, for the message of measuring and protecting group switching time.
According to the network system that the present embodiment provides, this network system can in existing network measuring and protecting group switching time, convenient and swift, overcome in prior art the drawback that external tester must be utilized to measure.Simultaneously; the network system that the embodiment of the present invention discloses utilizes the change of the device identification of transmitting terminal or receiving terminal main port to judge whether generation protection group to switch; can not judge by accident, overcome prior art peripheral tester and easily occur erroneous judgement and cause measuring inaccurate problem.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention can use hardware implementing, or firmware realizes, or their compound mode realizes.When implemented in software, above-mentioned functions can be stored in computer-readable medium or as the one or more instruction on computer-readable medium or code and transmit.Computer-readable medium comprises computer-readable storage medium and communication media, and wherein communication media comprises any medium being convenient to transmit computer program from a place to another place.Storage medium can be any usable medium that computer can access.Be not limited to as example: computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc storage, magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or storing the expectation with instruction or data structure form program code and can by any other medium of computer access.In addition.Any connection can be suitable become computer-readable medium.Such as, if software be use coaxial cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line (DSL) or such as infrared ray, radio and microwave and so on wireless technology from website, server or other remote source, so the wireless technology of coaxial cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared ray, wireless and microwave and so on be included in affiliated medium fixing in.As used in the present invention, dish (Disk) and dish (disc) comprise compression laser disc (CD), laser dish, laser disc, Digital Versatile Disc (DVD), floppy disk and Blu-ray Disc, the copy data of the usual magnetic of its mid-game, dish then carrys out the copy data of optics with laser.Combination above also should be included within the protection range of computer-readable medium.
In a word, the foregoing is only the preferred embodiment of technical solution of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (23)

1. a method for the switching time of measuring and protecting group, the main port of the second equipment in protection group described in the first equipment connection in described protection group and standby port, is characterized in that, described method comprises:
Described first equipment receives the message being used for measuring and protecting group switching time, every two adjacent described messages for measuring and protecting group switching time are that transmitting terminal sends to be less than or equal to very first time interval, the described very first time is spaced apart protection group switching time and measures the maximum error of measuring of allowing, carries the port-mark of transmitting terminal transmit port in the described message for measuring and protecting group switching time;
Whether described first equipment compares the first message identical with port-mark entrained in the second message, to judge whether described protection group switches, described second message for described first equipment receive from the message for measuring and protecting group switching time described in described second equipment, described second message that described first message receives for described first equipment upper one from the message for measuring and protecting group switching time described in described second equipment;
If described first message is different with port-mark entrained in described second message, then described first equipment calculates protection group switching time according to the temporal information of described first message and described second message.
2. method according to claim 1, is characterized in that:
The described temporal information calculating protection group switching time according to described first message and described second message specifically comprises:
The temporal information of described first message is the time of reception that described first equipment receives described first message, and the temporal information of described second message is the time of reception that described first equipment receives described second message; The time of reception of more described second message of described first equipment and the time of reception of described first message, to obtain protection group switching time;
Or the temporal information of described first message is the delivery time of this first message carried in described first message, the temporal information of described second message is the delivery time of this second message carried in described second message; The delivery time of more described second message of described first equipment and the delivery time of described first message, to obtain protection group switching time;
Or; the temporal information of described first message is that the sequence of message number of this first message carried in described first message and message send interval; the temporal information of described second message is that the sequence of message number of this second message carried in described second message and message send interval; described first equipment compares the difference of the sequence of message number of sequence of message number and described first message obtaining described second message; and this difference is multiplied by transmission interval entrained in described first message or the second message, to obtain protection group switching time.
3. method according to claim 1, is characterized in that:
Described first equipment is optical network unit ONU or Optical Network Terminal ONT, and described second equipment is optical line terminal OLT;
Or described first equipment is OLT, described second equipment is optical network unit ONU or Optical Network Terminal ONT;
Or described first equipment is access device, described second equipment is convergence device;
Or described first equipment is convergence device, described second equipment is access device.
4. method according to claims 1 to 3 any one, is characterized in that:
The described message for measuring and protecting group switching time is one-way delay measurement 1DM message, and the described very first time is spaced apart 5 milliseconds.
5. a method for the switching time of measuring and protecting group, the main port of the first equipment in described protection group is connected the second equipment in described protection group with standby port, it is characterized in that, described method comprises:
Described first equipment receives the message being used for measuring and protecting group switching time, every two adjacent described messages for measuring and protecting group switching time are that transmitting terminal sends to be less than or equal to very first time interval, and the described very first time is spaced apart protection group switching time and measures the maximum error of measuring of allowing;
Whether described first equipment compares its main port receiving message for adjacent twice identical, to judge whether described protection group switches;
If the adjacent main port receiving message for twice of described first equipment there occurs change; described first equipment calculates protection group switching time according to the temporal information of the first message and the second message; described second message is first message for measuring and protecting group switching time from described second equipment of described first equipment received by after the main port receiving message changes, and described first message is the upper message for measuring and protecting group switching time from described second equipment of described second message that described first equipment receives.
6. method according to claim 5, is characterized in that:
The described temporal information calculating protection group switching time according to described first message and described second message specifically comprises:
The temporal information of described first message is the time of reception that described first equipment receives described first message, and the temporal information of described second message is the time of reception that described first equipment receives described second message; The time of reception of more described second message of described first equipment and the time of reception of described first message, to obtain protection switch time;
Or the temporal information of described first message is the delivery time of this first message carried in described first message, the temporal information of described second message is the delivery time of this second message carried in described second message; The delivery time of more described second message of described first equipment and the delivery time of described first message, to obtain protection group switching time;
Or; the temporal information of described first message is that the sequence of message number of this first message carried in described first message and message send interval; the temporal information of described second message is that the sequence of message number of this second message carried in described second message and message send interval; described first equipment compares the difference of the sequence of message number of sequence of message number and described first message obtaining described second message; and this difference is multiplied by transmission interval entrained in described first message or the second message, to obtain protection group switching time.
7. method according to claim 6, is characterized in that:
Described first equipment is optical network unit ONU or Optical Network Terminal ONT, and described second equipment is optical line terminal OLT;
Or described first equipment is OLT, described second equipment is ONU or ONT;
Or described first equipment is access device, described second equipment is convergence device;
Or described first equipment is convergence device, described second equipment is access device.
8. method according to claim 5 to 7 any one, is characterized in that:
The described message for measuring and protecting switching time is one-way delay measurement 1DM message, and the described very first time is spaced apart 5 milliseconds.
9. a method for the switching time of measuring and protecting group, main port and the standby port of the first equipment in described protection group are connected the second equipment in described protection group and the 3rd equipment respectively, and it is characterized in that, described method comprises:
Described first equipment receives the first message and the second message, described second message is the message for measuring and protecting group switching time from described second equipment or described 3rd equipment that described first equipment receives, and described first message is the upper message for measuring and protecting group switching time from the second equipment or the 3rd equipment of described second message that receives of described first equipment; From described second equipment or described 3rd equipment every two adjacent described in be that transmitting terminal sends to be less than or equal to very first time interval for the message of measuring and protecting group switching time, the described very first time is spaced apart protection group switching time and measures the maximum error of measuring of allowing;
Whether described first equipment judges that it receives described first message identical with the main port of described second message, to judge whether described protection group switches; Or described first equipment judges that whether device identification entrained in described first message is identical with device identification entrained in described second message, to judge whether described protection group switches;
If different, then described first equipment calculates protection group switching time according to the temporal information of described first message and described second message.
10. method according to claims 9, is characterized in that:
Temporal information calculating protection group switching time according to described first message and described second message specifically comprises:
The temporal information of described first message is the time of reception that described first equipment receives described first message, and the temporal information of described second message is the time of reception that described first equipment receives described second message; The time of reception of more described second message of described first equipment and the time of reception of described first message, to obtain protection group switching time;
Or the temporal information of described first message is the delivery time of this first message carried in described first message, the temporal information of described second message is the delivery time of this second message carried in described second message; The delivery time of more described second message of described first equipment and the delivery time of described first message, to obtain protection group switching time.
11. according to claims 10 method, it is characterized in that:
Described first equipment is optical network unit ONU or Optical Network Terminal ONT, and described second equipment and described 3rd equipment are optical line terminal OLT;
Or described first equipment is access device, described second equipment and described 3rd equipment are convergence device.
12. according to claims 11 method, it is characterized in that:
The described message for measuring and protecting switching time is one-way delay measurement 1DM message, and the described very first time is spaced apart 5 milliseconds.
13. 1 kinds of network equipments, is characterized in that, the described network equipment comprises:
Receiver module, for receiving message;
Parsing module, obtains analysis result for the message of resolving received by described receiver module;
Memory module, for storing the information from described parsing module;
Processing module is for obtaining the second port-mark and the first port-mark, whether more described second port-mark is identical with described first port-mark, to judge whether the protection group between the described network equipment and the first equipment switches, described second port-mark is the port-mark carried in the second message from described parsing module, described first port is designated the port-mark carried in the first message from described memory module, described second message is the message for measuring and protecting group switching time from described first equipment that the described network equipment receives, described second message that described first message receives for the described network equipment upper one from the message for measuring and protecting group switching time described in described first equipment,
If different, described processing module then calculates protection group switching time according to the temporal information of described first message and described second message.
14., according to the network equipment described in claim 13, is characterized in that:
The described temporal information calculating protection group switching time according to described first message and described second message specifically comprises:
The temporal information of described first message is the delivery time of the first message carried in described first message, and the temporal information of described second message is the delivery time of the second message carried in described second message; The delivery time of more described second message of described processing module and the delivery time of described first message, to obtain protection group switching time;
Or; the temporal information of described first message is that the sequence of message number of this first message carried in described first message and message send interval; the temporal information of described second message is that the sequence of message number of this second message carried in described second message and message send interval; described processing module compares the difference of the sequence of message number of sequence of message number and described first message obtaining described second message; and this difference is multiplied by transmission interval entrained in described first message or the second message, to obtain protection group switching time.
15., according to the network equipment described in claim 13, is characterized in that:
The described network equipment also comprises monitoring modular, receives the time of reception of message for monitoring described receiver module and the time of reception that monitoring obtains is reported and submitted to described processing module;
The described temporal information according to described first message and described second message calculates protection group switching time and specifically comprises: described processing module compares the time of reception of time of reception from described second message of described monitoring modular and described first message, to obtain protection group switching time.
16. 1 kinds of network equipments, the described network equipment comprises main port and standby port, it is characterized in that, the described network equipment comprises:
Receiver module, for receiving message;
Monitoring modular, receives the port-mark of the port of message the main port of the described message of acquisition reception for monitoring described receiver module;
Parsing module, obtains analysis result for the message of resolving received by described receiver module;
Memory module, for storing the information from described monitoring modular and described parsing module;
Processing module is for obtaining the second port-mark and the first port-mark, whether more described second port-mark is identical with described first port-mark, to judge whether the protection group between the described network equipment and the first equipment switches, described second port-mark is the port-mark of the main port of reception second message from described monitoring modular, described first port is designated the port-mark of the main port of reception first message from described memory module, described second message is the message for measuring and protecting group switching time from described first equipment, described first message is the upper message for measuring and protecting group switching time from described first equipment of described second message,
If described second port-mark is different from described first port-mark, described processing module calculates protection group switching time according to the temporal information of described first message and described second message.
17., according to the network equipment described in claim 16, is characterized in that:
The described temporal information calculating protection group switching time according to described first message and described second message specifically comprises:
The temporal information of described first message is the delivery time of the first message carried in described first message, and the temporal information of described second message is the delivery time of the second message carried in described second message; The delivery time of more described second message of described processing module and the delivery time of described first message, to obtain protection group switching time;
Or; the temporal information of described first message is that the sequence of message number of this first message carried in described first message and message send interval; the temporal information of described second message is that the sequence of message number of this second message carried in described second message and message send interval; described processing module compares the difference of the sequence of message number of sequence of message number and described first message obtaining described second message; and this difference is multiplied by transmission interval entrained in described first message or the second message, to obtain protection group switching time.
18. 1 kinds of network equipments, be applied in dual-homed protection group, the described network equipment comprises main port and standby port, it is characterized in that, the described network equipment comprises:
Receiver module, for receiving message;
Monitoring modular, receives the port of message for monitoring described receiver module and obtains the port-mark receiving described message port;
Parsing module, obtains analysis result for the message of resolving received by described receiver module;
Memory module, for storing the information from described monitoring modular and described parsing module;
Processing module is for obtaining the second port-mark and the first port-mark, whether more described second port-mark is identical with described first port-mark, to judge whether described dual-homed protection group switches, described second port-mark is for the port-mark of the second port of the second message of measuring and protecting group switching time from the reception of described monitoring modular, main port when described second port is described network equipment reception described second message, described first port is designated reception from described memory module for the port-mark of the first port of the first message of measuring and protecting group switching time, main port when described first port is described network equipment reception described first message, described first message is a upper message for measuring and protecting group switching time of described second message that the described network equipment receives,
If described second port-mark is different from described first port-mark, described processing module calculates protection group switching time according to the temporal information of described first message and described second message.
19., according to the network equipment described in claim 18, is characterized in that:
The described network equipment also comprises parsing module, obtains analysis result for the message of resolving received by described receiver module;
The temporal information of the described current message received according to described first message and described receiver module calculates protection group switching time and specifically comprises:
Described processing module obtains the time of reception from described first message of described memory module, and the time of reception of described current message from described monitoring modular, the time of reception of more described current message and the time of reception of described first message, to obtain protection group switching time;
Or; described processing module obtains from the delivery time carried in described first message of described memory module; and from the delivery time carried in the described current message of described parsing module; delivery time entrained in delivery time entrained in more described current message and described first message, to obtain protection group switching time.
20. 1 kinds of network equipments, be applied in dual-homed protection group, the described network equipment comprises main port and standby port, it is characterized in that, the described network equipment comprises:
Receiver module, for receiving message;
Parsing module, reports and submits analysis result to processing module for the message of resolving received by described receiver module;
Memory module, for storing the information from described parsing module;
Described processing module is for obtaining the second device identification and the first device identification, whether more described second device identification is identical with described first device identification, to judge whether described dual-homed protection group switches, described second device identification is the device identification of carrying in the second message for measuring and protecting group switching time from the second port accepts of described parsing module, main port when described second port is described network equipment reception described second message, described first device identification is the mark of carrying in the first message for measuring and protecting group switching time from the first port accepts of described memory module, main port when described first port is described network equipment reception described first message, described first message is a upper message for measuring and protecting group switching time of described second message that the described network equipment receives, the message for measuring and protecting group switching time that described first message and described second message send with the time interval being less than or equal to protection group switching time and measuring the maximum error of measuring of allowing for transmitting terminal,
If described second device identification is different with described first device identification, described processing module calculates protection group switching time according to the temporal information of described first message and described second message.
The system of 21. 1 kinds of measuring and protecting group switching times, is characterized in that:
Described system comprises interconnective first network equipment and second network equipment;
Described second network equipment for generating the message for measuring and protecting group switching time of the device identification carrying described second network equipment, or for generating the message for measuring and protecting group switching time carrying the port-mark of described second network equipment main port and the device identification of described second network equipment; And generated message is sent to described first network equipment, the time interval between every two adjacent message that described second network equipment sends is less than or equal to protection group switching time and measures the maximum error of measuring of allowing;
The main port of described first network equipment to be connected with standby port described second network equipment form protection group time, whether described first network equipment is used for identical from adjacent two main ports for the message of measuring and protecting group switching time of described second network equipment according to its reception, to judge whether the protection group between described first network equipment and described second network equipment switches, if described main port is not identical, then described first network device measuring protection group switching time; Or,
When main port and the standby port formation protection group of second network equipment described in described first network equipment connection; whether the port-mark that described first network equipment is used for carrying in adjacent two messages for measuring and protecting group switching time from described second network equipment received by it is identical; to judge whether the protection group between described first network equipment and described second network equipment switches; if described port-mark is not identical, then described first network device measuring protection group switching time.
22. systems as claimed in claim 21, is characterized in that:
Described first network equipment is also for generating the message of the device identification of carrying described first network equipment, or the message of device identification for the port-mark that generates the main port carrying described first network equipment and described first network equipment; And the time interval between every two adjacent message being sent to by generated message first network equipment described in described second network equipment to send is less than or equal to protection group switching time measures the maximum error of measuring of allowing;
When main port and the standby port formation protection group of second network equipment described in described first network equipment connection, whether described second network equipment is also for identical from adjacent two main ports for the message of measuring and protecting group switching time of described first network equipment according to its reception, to judge whether the protection group between described first network equipment and described second network equipment switches, if described main port is not identical, then described second network device measuring protection group switching time; Or,
The main port of described first network equipment to be connected with standby port described second network equipment form protection group time; whether the port-mark of described second network equipment also for carrying in adjacent two messages for measuring and protecting group switching time from described first network equipment received by it be identical; to judge whether the protection group between described first network equipment and described second network equipment switches; if described port-mark is not identical, then described second network device measuring protection group switching time.
The system of 23. 1 kinds of measuring and protecting group switching times, is characterized in that:
Described system comprises first network equipment, second network equipment and the 3rd network equipment, and the main port of wherein said first network equipment is connected with described 3rd network equipment with described second network equipment respectively with standby port;
Described first network equipment is any one network equipment in claim 18,19 and 20;
Described second network equipment for generating the message for measuring and protecting group switching time of the device identification carrying described second network equipment, and measures the time interval of the maximum error of measuring of allowing continuously to the message carrying the device identification of described second network equipment described in described first network equipment transmission to be less than or equal to protection group switching time;
Described 3rd network equipment for generating the message for measuring and protecting group switching time of the device identification carrying described 3rd network equipment, and measures the time interval of the maximum error of measuring of allowing continuously to the message carrying the device identification of described 3rd network equipment described in described first network equipment transmission to be less than or equal to protection group switching time.
CN201210319882.9A 2012-09-03 2012-09-03 The method, apparatus and system of measuring and protecting group switching time Active CN103684585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210319882.9A CN103684585B (en) 2012-09-03 2012-09-03 The method, apparatus and system of measuring and protecting group switching time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210319882.9A CN103684585B (en) 2012-09-03 2012-09-03 The method, apparatus and system of measuring and protecting group switching time

Publications (2)

Publication Number Publication Date
CN103684585A CN103684585A (en) 2014-03-26
CN103684585B true CN103684585B (en) 2016-01-27

Family

ID=50321012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210319882.9A Active CN103684585B (en) 2012-09-03 2012-09-03 The method, apparatus and system of measuring and protecting group switching time

Country Status (1)

Country Link
CN (1) CN103684585B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109309615B (en) * 2017-07-27 2020-07-07 华为技术有限公司 Method and device for transmitting data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479460A (en) * 2003-05-29 2004-03-03 上海交通大学 Passive optical network protection method
CN101499853A (en) * 2008-01-30 2009-08-05 华为技术有限公司 Optical path measuring method, optical network and network appliance
CN101964734A (en) * 2010-10-18 2011-02-02 中兴通讯股份有限公司 Method and device for measuring network port fault time
CN102412955A (en) * 2011-11-28 2012-04-11 华为技术有限公司 Method for obtaining time deviation between master device and slave device under condition of asymmetrical optical fibers and communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4039150B2 (en) * 2002-07-09 2008-01-30 株式会社デンソー Optical switch subsystem
ATE506771T1 (en) * 2008-02-04 2011-05-15 Alcatel Lucent METHOD FOR COORDINATING MEASUREMENTS AND CALIBRATIONS IN A PASSIVE OPTICAL NETWORK

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479460A (en) * 2003-05-29 2004-03-03 上海交通大学 Passive optical network protection method
CN101499853A (en) * 2008-01-30 2009-08-05 华为技术有限公司 Optical path measuring method, optical network and network appliance
CN101964734A (en) * 2010-10-18 2011-02-02 中兴通讯股份有限公司 Method and device for measuring network port fault time
CN102412955A (en) * 2011-11-28 2012-04-11 华为技术有限公司 Method for obtaining time deviation between master device and slave device under condition of asymmetrical optical fibers and communication system

Also Published As

Publication number Publication date
CN103684585A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
US20130266306A1 (en) Time synchronization method for communication system, slave station apparatus, master station apparatus, control device, and program
US8670663B2 (en) Methods, systems, and computer-readable media for providing notification of a power failure
US7468958B2 (en) Optical line terminal that detects and identifies a rogue ONT
US7313330B2 (en) Redundant apparatus and method for gigabit ethernet passive optical network system and frame format thereof
US7809262B2 (en) Methods, systems, and computer-readable media for determining physical layer failures
US20050158048A1 (en) Optical line terminal for managing link status of optical network units and gigabit ethernet passive optical network employing same
CN102684780B (en) Optical network protecting method and optical fiber line switching equipment
CN103457658B (en) Optical line terminal olt
JP4913865B2 (en) Optical communication network system, master station optical communication device, optical communication method and communication program
CN101414932A (en) Method, system and apparatus managing alarm of long-distance passive optical network system
CN102056033B (en) Method for managing uplink burst overhead parameter and passive optical network system
CN101557539A (en) Optical network data transmission method as well as system and equipment thereof
CN101834687A (en) Method, system and device for switching main and spare light access networks
US8948586B2 (en) Method and apparatus for laser overlap detection
CN106301837A (en) EPON alarm detection method and device
CN104158586B (en) Switching realization method, sites and system
CN105228183A (en) Upstream data abnormality eliminating method and device
CN106464356A (en) Method, device and system for detecting rogue optical network unit
EP4165800A1 (en) Fault location in an optical ring network
JP2014135657A (en) Synchronization maintenance device, station-side device, customer premises-side device, communication system, and method for maintaining synchronous time
CN103684585B (en) The method, apparatus and system of measuring and protecting group switching time
KR20110061254A (en) Detecting apparatus and method for optical line in passive optical network system
CN102025437A (en) Method, system and device for protection switching
JP2011087121A (en) Obstacle optical network unit-specifying method and obstacle optical network unit-specifying device
CN105634590A (en) Ether passive optical network optical path diagnosis method

Legal Events

Date Code Title Description
PB01 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