Switching method and device for service clock recovery mode
By automatically switching the service clock recovery mode based on changes in clock quality during message exchange between devices, the problem of service interruption caused by frequency synchronization loss in existing technologies is solved, achieving lossless switching of service clock recovery mode and improving transmission reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, when restoring the service clock using the differential method, if the transmitting and receiving ends lose frequency synchronization, they cannot automatically switch to the adaptive method, resulting in service interruption.
By sending indication information based on clock quality changes during message exchange between devices, the service clock recovery method is automatically switched to ensure that the clock recovery methods of the sending and receiving ends are consistent.
Automatic switching of service clock recovery mode was implemented, reducing the impact of clock quality changes on services and improving the reliability of service transmission.
Smart Images

Figure CN116367018B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data communication, in particular to a switching method and device of service clock recovery mode. BACKGROUND
[0002] With the development of double-gigabit optical networks, the quality of service of industry private lines is increasingly required, and therefore the transmission network needs to ensure the clock accuracy, time delay and reliability of private line services.
[0003] When the transmission network carries a constant bit rate (CBR) service or a circuit emulation service (CES), it needs to provide transparent transmission of the service clock to ensure that the service clock at the sending end and the receiving end has the same long-term frequency accuracy.
[0004] To ensure the transparent transmission of the service clock, the transmission network has the following two CBR / CES service clock recovery modes:
[0005] 1. Adaptive method: based on the interval of packet arrival or the filling level of the buffer area to recover timing, or by stamping the time in the packet to recover timing. This method can ensure the transparency of the service clock and has no requirement for the external reference clock.
[0006] 2. Differential method: the deviation of the service clock and the reference clock is encoded and transmitted in the packet network, and the service clock is recovered at the remote end by using the same reference clock; this clock recovery method can ensure the transparency of the service clock, but requires the transmitting and receiving ends to be frequency-synchronized to the primary reference clock (PRC).
[0007] At present, when the existing technology recovers the service clock in the differential method, if the transmitting and receiving ends lose frequency synchronization, it will cause service interruption and cannot automatically switch to the adaptive method. Therefore, there is an urgent need for a switching method of service clock recovery mode, which can automatically switch the service clock recovery mode during service operation. SUMMARY
[0008] At least one embodiment of the present application provides a switching method and device of service clock recovery mode, which can automatically switch the service clock recovery mode during service operation.
[0009] To solve the above technical problems, the present application is implemented as follows:
[0010] In a first aspect, the embodiments of the present application provide a switching method of service clock recovery mode, comprising:
[0011] The first device changes a sending clock recovery mode of the first service when a clock quality change meets a first condition in a process of interacting with a second device in a message of the first service.
[0012] The first device sends first indication information to the second device, the first indication information being used to indicate the sending clock recovery mode of the first service of the first device.
[0013] Optionally, the sending of the first indication information to the second device specifically includes:
[0014] The first device carries the first indication information in the message of the first service sent to the second device.
[0015] Optionally, the first indication information is a first clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the first device.
[0016] 4. The method of claim 2, further comprising:
[0017] The first device keeps the sending clock recovery mode of the first service unchanged when the clock quality change does not meet the first condition, and carries the first indication information in the message of the first service sent to the second device.
[0018] Optionally, after the first device sends the first indication information to the second device, the method further includes:
[0019] The first device receives second indication information sent by the second device, wherein the second indication information is used to indicate the sending clock recovery mode of the first service of the second device.
[0020] When the sending clock recovery mode indicated by the second indication information is different from a receiving clock recovery mode of the first service of the first device, the receiving clock recovery mode of the first service is changed to the sending clock recovery mode indicated by the second indication information.
[0021] Optionally, the second indication information is carried in the message of the first service sent by the second device.
[0022] Optionally, the second indication information is a second clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the second device.
[0023] Optionally, when the clock quality meets a first condition, the sending clock recovery mode of the first service is changed, including at least one of the following:
[0024] The first device changes the sending clock recovery mode of the first service from a first recovery mode to a second recovery mode when the clock quality level decreases to a first level.
[0025] The first device changes the sending clock recovery mode of the first service from the second recovery mode to the first recovery mode when the clock quality level increases to a second level.
[0026] Optionally, the first recovery mode is a differential mode, and the second recovery mode is an adaptive mode.
[0027] The first service is a fixed bit rate service and / or a circuit emulation service.
[0028] In a second aspect, an embodiment of the present application provides a method for switching a service clock recovery mode, including:
[0029] The second device receives first indication information sent by the first device in a process of interacting with the first device on a first service, wherein the first indication information is used to indicate a sending clock recovery mode of the first service of the first device.
[0030] When the sending clock recovery mode indicated by the first indication information is different from a receiving clock recovery mode of the first service of the second device, the receiving clock recovery mode of the first service is set to the sending clock recovery mode indicated by the first indication information.
[0031] Optionally, the first indication information is carried in a message of the first service sent by the first device.
[0032] Optionally, the first indication information is a first clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the first device.
[0033] Optionally, after the receiving clock recovery mode of the first service is set to the sending clock recovery mode indicated by the first indication information, the method further includes:
[0034] The second device judges whether the sending clock recovery mode indicated by the first indication information is the same as the sending clock recovery mode of the first service, and if not, changes the sending clock recovery mode of the first service to the sending clock recovery mode indicated by the first indication information, and after the change, sends second indication information to the first device, the second indication information being used to indicate the sending clock recovery mode of the first service currently used by the second device.
[0035] Optionally, the second indication information is carried in a message of the first service sent by the second device.
[0036] Optionally, the second indication information is a second clock recovery mode identifier corresponding to the sending clock recovery mode of the first service currently used by the second device.
[0037] Optionally, the first service is a fixed bit rate service and / or a circuit emulation service.
[0038] In a third aspect, an embodiment of the present application provides a communication device, which is a first device, comprising a transceiver and a processor, wherein,
[0039] The processor is configured to change the sending clock recovery mode of the first service if the clock quality change meets a first condition in a process of interacting with a second device in a message of the first service.
[0040] The transceiver is configured to send first indication information to the second device, the first indication information being used to indicate the sending clock recovery mode of the first service currently used by the first device.
[0041] In a fourth aspect, an embodiment of the present application provides a first device, comprising a processor, a memory, and a program stored in the memory and capable of running on the processor, and the program, when executed by the processor, implements the steps of the method in the first aspect.
[0042] In a fifth aspect, an embodiment of the present application provides a communication device, which is a second device, comprising a transceiver and a processor, wherein,
[0043] The transceiver is configured to receive first indication information sent by a first device in a process of interacting with the first device in a message of a first service, and the first indication information is used to indicate the sending clock recovery mode of the first service currently used by the first device.
[0044] The processor is configured to set the receiving clock recovery mode of the first service to the sending clock recovery mode indicated by the first indication information when the sending clock recovery mode indicated by the first indication information is different from the receiving clock recovery mode of the first service of the second device.
[0045] In a sixth aspect, an embodiment of the present application provides a second device, comprising: a processor, a memory, and a program stored in the memory and executable in the processor, when the program is executed by the processor, the steps of the method according to the second aspect are implemented.
[0046] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium, the computer readable storage medium stores a program, when the program is executed by a processor, the steps of the method are implemented.
[0047] Compared with the prior art, the service clock recovery mode switching method and device provided by the embodiment of the present application realize automatic switching of the service clock recovery mode, reduce the influence of clock quality change on the service, and improve the reliability of service transmission. BRIEF DESCRIPTION OF DRAWINGS
[0048] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are included to provide a description of the preferred embodiments and are not intended to limit the scope of the application. Moreover, the same reference numerals are used throughout the same figures. In the drawings:
[0049] Figure 1 A flow chart for the service clock recovery mode switching method of the embodiment of the present application applied to the first device side;
[0050] Figure 2 A flow chart for the service clock recovery mode switching method of the embodiment of the present application applied to the second device side;
[0051] Figure 3 An interaction flow schematic diagram of the service clock recovery mode switching method of the embodiment of the present application;
[0052] Figure 4 A structural schematic diagram of the first device of an embodiment of the present application;
[0053] Figure 5 A structural schematic diagram of the first device of another embodiment of the present application;
[0054] Figure 6 A structural schematic diagram of the second device of an embodiment of the present application;
[0055] Figure 7Structure diagram of a second device according to another embodiment of the present application;
[0056] Figure 8 Structure diagram of a first device according to another embodiment of the present application;
[0057] Figure 9 Structure diagram of a second device according to another embodiment of the present application. DETAILED DESCRIPTION
[0058] Exemplary embodiments of the present application will be described herein below with reference to the accompanying drawings. While exemplary embodiments of the present application are illustrated, it is to be understood that the present application is not limited to the embodiments described herein, but can be practiced with variation within the spirit and scope of the present application. Rather, the embodiments are provided as exemplary embodiments of the present application so as to convey the scope of the present application to those skilled in the art.
[0059] The terms "first", "second", and the like, as used in the description and the claims herein, are used as identifiers to describe an order, and are not intended to denote a particular sequential order, unless otherwise specifically stated. It is to be understood that the use of these terms herein is intended to convey a possible order of execution of a process, method, or sequence of steps, unless otherwise specifically stated. Furthermore, the terms "comprise", "comprising", "include", "including", and the like, are meant to encompass non-exclusive inclusions, such that processes, methods, articles, or apparatuses that comprise, include, or the like, a list of steps or elements, can include other steps or elements not expressly listed or inherent to such processes, methods, articles, or apparatuses. The term "and / or" as used herein means at least one of the connected objects.
[0060] The following description provides examples, and is not limiting of the scope, applicability, or configuration set forth in the claims. Changes can be made in the function and arrangement of elements discussed without departing from the scope and spirit of aspects of the application. Various examples can omit, substitute, or add various procedures or components as appropriate. For instance, the methods described can be performed in an order different from that described, and other steps can be added, omitted, or combined. Also, features described with respect to certain examples can be combined in other examples.
[0061] As described in the background section, prior art transmission networks typically employ either adaptive or differential service clock recovery methods. Among them:
[0062] The adaptive mode does not require frequency synchronization between the transmitting and receiving ends, but the precision of the recovered service clock is affected by the packet delay variation (PDV) of the transmission network, and the variation of the PDV will cause the precision of the recovered service clock to decrease. This is intolerable for some CBR / CES services with high quality requirements.
[0063] The precision of the recovered service clock in the differential mode is not affected by the PDV of the transmission network, but frequency synchronization is required between the transmitting and receiving ends, which is generally realized by tracing to the PRC, and the transmission network has high requirements.
[0064] The current transmission network needs to support wireless services and generally has the frequency synchronization capability, so the differential method can be used to recover the service clock. In the prior art method, once the frequency synchronization between the transmitting and receiving ends is lost, the service will be interrupted, and the adaptive method cannot be automatically switched. In the prior art solution, the transmission device can only manually select and configure one of the two methods when the service is established, and the switching between the two services cannot be realized. In order to solve at least one of the above problems, the embodiments of the present application provide a switching method of a service clock recovery mode, which realizes automatic and lossless switching of the clock recovery mode during service operation.
[0065] Please refer to Figure 1 The switching method of the service clock recovery mode provided by the embodiments of the present application, when applied to the first device side, comprises the following steps.
[0066] Step 11, in the process of the first device interacting with the second device in the first service message, if the clock quality change meets the first condition, the sending clock recovery mode of the first service is changed.
[0067] Here, the first service can be a fixed bit rate service and / or a circuit emulation service. The first service is usually a bidirectional service, that is, in the process of the first device interacting with the second device in the first service message, the first device sends the first service message to the second device, and in addition, the first device can also receive the first service message sent by the second device.
[0068] Step 12, the first device sends first indication information to the second device, and the first indication information is used to indicate the sending clock recovery mode of the first service of the first device at present.
[0069] In the embodiment of the present application, the first device changes the sending clock recovery mode of the first service when the clock quality change meets the first condition, and sends first indication information to the second device, the first indication information being used to indicate the current sending clock recovery mode of the first service of the first device. Since the sending clock recovery mode of the first service has been changed in step 11, the current sending clock recovery mode of the first service of the first device is the changed sending clock recovery mode, that is, the first indication information in step 12 indicates the changed sending clock recovery mode.
[0070] Through the above steps, the embodiment of the present application can change the sending clock recovery mode of the first service according to the quality change of the device clock, and indicate the changed sending clock recovery mode to the opposite device, so that the opposite device can timely adaptively switch the receiving clock recovery mode according to the changed sending clock recovery mode, so that the sending and receiving devices can unify the clock recovery mode, and the switching of the clock recovery mode in the transmission direction from the first device to the second device is realized, thereby realizing automatic and lossless switching of the clock recovery mode in the service running process, reducing the influence of the clock quality change on the service, and improving the reliability of the service transmission.
[0071] In the embodiment of the present application, the first device triggers the switching of the sending clock recovery mode when the clock quality change meets the first condition, and the first condition can be a pre-set condition, and specifically can include one or more of the following:
[0072] 1) The first device changes the sending clock recovery mode of the first service from the first recovery mode to the second recovery mode when the clock quality level is reduced to the first level.
[0073] 2) The first device changes the sending clock recovery mode of the first service from the second recovery mode to the first recovery mode when the clock quality level is improved to the second level.
[0074] Generally, the second level is better than the first level, or the second level is the same as the first level. The first recovery mode is a differential mode, and the second recovery mode is an adaptive mode.
[0075] As an implementation manner, the first device can indicate the changed sending clock recovery mode of the first service to the opposite device through the first indication message independent of the service message.
[0076] As another implementation manner, the first indication message can also be carried in a message of the first service sent by the first device. For example, first indication information is added in the message of the first service to indicate the sending clock recovery manner of the sending device, so that after the sending device changes the sending clock recovery manner of the service, the first indication information can be carried in the message of the service sent subsequently to indicate the changed sending clock recovery manner, so as to notify the opposite device. Specifically, the first indication information can be a first clock recovery manner identifier corresponding to the sending clock recovery manner of the first service currently of the first device.
[0077] When the clock quality of the first device does not change to satisfy the first condition, the first device can keep the sending clock recovery manner of the first service unchanged, and carry the first indication information in the message of the first service sent to the second device. At this time, the first indication information still indicates the sending clock recovery manner of the first service currently of the first device.
[0078] Considering the bidirectional transmission of the first service, after the step 12, the first device can also receive second indication information sent by the second device, wherein the second indication information is used to indicate the sending clock recovery manner of the first service currently of the second device. When the sending clock recovery manner indicated by the second indication information is different from the receiving clock recovery manner of the first service of the first device, the receiving clock recovery manner of the first service is changed to the sending clock recovery manner indicated by the second indication information. Specifically, the second indication information is carried in the message of the first service sent by the second device. Optionally, the second indication information is a second clock recovery manner identifier corresponding to the sending clock recovery manner of the first service currently of the second device.
[0079] Specifically, after the step 12, the second device can set the receiving clock recovery manner of the first service of the second device to the sending clock recovery manner indicated by the first indication information according to the first indication information, and in addition, the second device can change the sending clock recovery manner of the first service to the sending clock recovery manner indicated by the first indication information, and send second indication information to the first device to indicate the sending clock recovery manner of the first service currently (i.e. after the change) of the second device. In this way, the first device can also receive the second indication information sent by the second device, and change the receiving clock recovery manner of the first service to the sending clock recovery manner indicated by the second indication information.
[0080] Similarly, the second device can indicate the modified transmission clock recovery method for the first service to the first device via a second indication message independent of the service message, or it can carry relevant indication information in the first service message sent by the second device. For example, the second message carries second indication information to indicate the transmission clock recovery method for the first service of the second device. In this way, the first device can receive and determine whether the transmission clock recovery method indicated by the second indication information is the same as the reception clock recovery method of the first device's first service: if they are different, it changes its own reception clock recovery method for the first service to the transmission clock recovery method indicated by the second indication information; if they are the same, it does not change its own reception clock recovery method for the first service.
[0081] Through the above steps, this embodiment of the invention realizes the switching of clock recovery mode in the transmission direction from the second device to the first device, and finally realizes the automatic switching of clock recovery mode in the bidirectional transmission direction of the first service, reducing the impact of clock quality changes on services and improving the reliability of service transmission.
[0082] Corresponding to the above methods, this embodiment of the invention also provides another method for switching service clock recovery modes, applied to the second device side, such as... Figure 2 As shown, the method includes:
[0083] Step 21: During the process of the second device interacting with the first device to exchange messages for the first service, the second device receives first indication information sent by the first device, wherein the first indication information is used to indicate the current transmission clock recovery method of the first service of the first device.
[0084] Here, the first service is a fixed bit rate service and / or a circuit emulation service.
[0085] Step 22: When the transmission clock recovery method indicated by the first indication information is different from the reception clock recovery method of the first service of the second device, the reception clock recovery method of the first service is set to the transmission clock recovery method indicated by the first indication information.
[0086] In the above steps, when the first indication information indicates the beta of the first device's current transmission clock recovery method for the first service and the second device's current reception clock recovery method for the first service, the second device changes its own reception clock recovery method for the first service to the transmission clock recovery method indicated by the first indication information, thereby unifying the clock recovery methods of the transmitting and receiving devices and realizing the switching of clock recovery methods in the transmission direction from the first device to the second device.
[0087] The first indication information can be other information independent of a service message, or can be carried in a service message. For example, the first indication information can be carried in a message of the first service sent by the first device. Specifically, the first indication information can be a first clock recovery mode identifier corresponding to the current sending clock recovery mode of the first device for the first service. In step 22, if the sending clock recovery mode indicated by the first indication information is the same as the receiving clock recovery mode of the second device for the first service, the second device does not change the receiving clock recovery mode of the second device for the first service.
[0088] Considering the bidirectional transmission of the service, after changing the receiving clock recovery mode of the second device for the first service to the sending clock recovery mode indicated by the first indication information, the second device can further determine whether the sending clock recovery mode indicated by the first indication information is the same as the sending clock recovery mode of the first service: if not, the sending clock recovery mode of the second device for the first service is changed to the sending clock recovery mode indicated by the first indication information; if yes, the sending clock recovery mode of the second device for the first service is not changed.
[0089] In the embodiment of the present application, after changing the sending clock recovery mode of the second device for the first service to the sending clock recovery mode indicated by the first indication information, the second device further sends second indication information to the first device, where the second indication information is used to indicate the current sending clock recovery mode of the second device for the first service, that is, the changed sending clock recovery mode of the first service.
[0090] Similarly, the second indication information can be other information independent of a service message, or can be carried in a service message (second message). For example, the second indication information is carried in a message of the first service sent by the second device. Specifically, the second indication information can be a second clock recovery mode identifier corresponding to the current sending clock recovery mode of the second device for the first service.
[0091] The above method of the embodiment of the present application is further described below through the flow of the interaction between devices. Please refer to Figure 3 The switching method of the service clock recovery mode of the embodiment of the present application includes an automatic switching stage (steps 31-35) and an automatic recovery stage (steps 36-39). Wherein,
[0092] In the automatic switching stage:
[0093] Step 31, the first device sends a service message to the second device, wherein the service message contains a clock recovery mode identifier, which is used to indicate the sending clock recovery mode of the service message at the first device.
[0094] Specifically, the service can be CBR or CES bidirectional service. In step 31, the sending clock recovery mode of the service message is differential mode, and the clock recovery mode indicated by the clock recovery mode identifier in step 31 is differential mode. At this time, the current clock quality level of the first device is a certain specific level and the levels above the specific level.
[0095] Step 32, when the clock quality level of the first device is reduced to below the certain specific level (not including the specific level), the clock recovery mode identifier in the service message is changed to adaptive mode; and the clock recovery mode for sending the service message is changed to adaptive mode.
[0096] Step 33, when the second device receives the changed clock recovery mode identifier in the service message in step 32, it is found that the current sending and receiving clock recovery modes of the service message of the second device are both differential mode, i.e. different from the changed clock recovery mode identifier in the service message in step 32. At this time, the second device changes the sending and receiving clock recovery modes of the service message to adaptive mode.
[0097] Step 34, the second device sends a service message to the first device, wherein the clock recovery mode identifier in the service message is changed to adaptive mode.
[0098] Step 35, after the first device receives the changed clock recovery mode identifier in the service message sent by the second device, it is found that the receiving clock recovery mode of the service message of the first device is differential mode, i.e. different from the changed clock recovery mode identifier in the service message in step 34. At this time, the first device changes the receiving clock recovery mode of the service message to adaptive mode.
[0099] In the automatic recovery phase:
[0100] Step 36, when the clock quality level of the first device is restored to a certain specific level and above, the clock recovery mode identifier in the service message is changed to differential mode; in addition, the clock recovery mode for sending the service message is changed to differential mode.
[0101] Step 37, when the second device receives the changed clock recovery mode identifier in the service message in step 36, the second device finds that the current clock recovery mode of the service message is adaptive mode, i.e. different from the changed clock recovery mode identifier in the service message in step 36, at this time, the second device changes the clock recovery mode of the service message to differential mode.
[0102] Step 38, the second device sends a service message to the first device, and the clock recovery mode identifier in the service message is changed to differential mode.
[0103] Step 39, after the first device receives the clock recovery mode identifier changed to differential mode in the service message sent by the second device, the first device finds that the clock recovery mode of the service message is adaptive mode, i.e. different from the changed clock recovery mode identifier in the service message in step 38, at this time, the first device changes the clock recovery mode of the service message to differential mode.
[0104] The following provides an example of the switching method of the service clock recovery mode of the present application when the CBR / CES / TDM service is carried on the transmission network in the manner of pseudo-wire (PW) emulation, and specifically includes:
[0105] In the automatic switching phase:
[0106] Step s1: the first device uses pseudo-wire emulation edge to edge (PWE3) to encapsulate the CBR / CES / TDM service, and the encapsulated message carries the clock recovery mode identifier.
[0107] In step s1, the type of the carried service is CBR / CES / TDM bidirectional service. The clock recovery mode identifier of the current bidirectional service PWE3 encapsulation message is differential mode.
[0108] Suppose the current clock quality level of the first device is QL-ePRC, and the specific level is QL-PRC. The clock quality levels involved in this example, the high-low order of the levels and the corresponding SSM codes are shown in the following table:
[0109] Clock Quality Class Ranking of classes Corresponding SSM encoding QL-ePRTC Highest 0010 QL-PRTC 0010 QL-ePRC 0010 QL-PRC 0010 QL-SSU-A 0100 QL-SSU-B 1000 QL-eSEC 1011 QL-SEC 1011 QL-DNU Lowest 1111
[0110] Table 1
[0111] Step s2: When the clock quality level of the first device falls to QL-SSU-A, which is already below the specified level QL-PRC, the clock recovery mode in the message in step s1 is changed to adaptive; the first device changes the clock recovery mode of the sent service PWE3 encapsulation message to adaptive.
[0112] Step s3: When the second device receives the clock recovery mode in the service message in step s2, which is changed to adaptive, it is determined that the clock quality level of the first device is below the specified level QL-PRC, and thus the clock recovery mode of the received service PWE3 encapsulation message of the second device is changed to adaptive.
[0113] Step s4: Because the service is a bidirectional service, the second device also sends a service PWE3 encapsulation message to the first device. At this time, the second device changes the clock recovery mode in the service PWE3 encapsulation message to adaptive. In addition, the second device also changes the clock recovery mode of the sent service PWE3 encapsulation message to adaptive.
[0114] Step s5: After the first device receives the clock recovery mode in the service PWE3 encapsulation message sent by the second device, which is changed to adaptive, the first device changes the clock recovery mode of the received service PWE3 encapsulation message to adaptive.
[0115] Automatic recovery phase:
[0116] Step s6: When the clock quality level of the first device recovers to QL-PRC, which is already equal to the specified level QL-PRC, the first device changes the clock recovery mode in the sent service PWE3 encapsulation message to differential, and also changes the clock recovery mode of the sent service PWE3 encapsulation message to differential.
[0117] Step 7: When the second device receives the clock recovery mode in the service PWE3 encapsulation message in step s6, which is changed to differential, it is determined that the clock quality level of the first device has recovered to above the specified level QL-PRC, and thus the clock recovery mode of the received service PWE3 encapsulation message is changed to differential.
[0118] Step s8: The clock recovery mode in the service PWE3 encapsulation message sent by the second device to the first device is changed to differential. In addition, the second device also changes the clock recovery mode of the sent service PWE3 encapsulation message to differential.
[0119] Step s9: After the first device receives the clock recovery mode in the service PWE3 encapsulation message sent by the second device, which is changed to differential, the first device changes the clock recovery mode of the received service PWE3 encapsulation message to differential.
[0120] In the above method:
[0121] 1. The identification of the service clock recovery mode is carried in the service message. When the clock quality level of the first device is reduced to a certain specific level, it indicates that the clock quality level is not suitable for the differential mode, and thus the identification of the service clock recovery mode is changed to the adaptive method to inform the second device.
[0122] 2. The second device receives the change of the service clock recovery mode identification of the first device, changes the clock recovery mode of the received service message to the adaptive mode, and changes the service clock recovery method identification in the service message sent by the second device to the first device to the adaptive mode. The first device changes the received service clock recovery method to the adaptive mode according to the service clock recovery method identification in the service message.
[0123] 3. The various embodiments of the present application associate the change of the device clock state with the service clock recovery method, and ingeniously design the automatic switching of the service clock recovery mode to realize the lossless switching of the service clock.
[0124] The prior art can only reconfigure the service and reset the service clock recovery mode when the service clock recovery mode needs to be switched, but this will cause service interruption and affect the service quality. Compared with the prior art, the embodiments of the present application can support the automatic switching of the service clock recovery mode, and avoid the influence on the service. In addition, the embodiments of the present application ingeniously design the automatic switching of the service clock recovery mode to realize the lossless switching of the service clock.
[0125] The above introduces various methods of the embodiments of the present application. The following will further provide a device for implementing the above method.
[0126] Please refer to Figure 4 The embodiments of the present application also provide a communication device 400, which is a first device and comprises:
[0127] A first changing module 401 is configured to change the sending clock recovery mode of a first service if the clock quality changes meet a first condition in the process of interacting with a second device in a message of the first service.
[0128] A first sending module 402 is configured to send first indication information to the second device, and the first indication information is used to indicate the sending clock recovery mode of the first service of the first device.
[0129] Optionally, the first sending module is further configured to carry the first indication information in the message of the first service when sending the message of the first service to the second device, so as to send the first indication information to the second device.
[0130] Optionally, the first indication information is a first clock recovery mode identifier corresponding to a current sending clock recovery mode of the first device for the first service.
[0131] Optionally, the communication device further comprises:
[0132] a second sending module, configured to keep the sending clock recovery mode of the first service unchanged when the clock quality change does not satisfy the first condition, and carry the first indication information in a message of the first service sent to the second device.
[0133] Optionally, the communication device further comprises:
[0134] a first receiving module, configured to receive second indication information sent by the second device after sending the first indication information to the second device, wherein the second indication information is used to indicate a current sending clock recovery mode of the second device for the first service;
[0135] a second changing module, configured to change the receiving clock recovery mode of the first service to a clock recovery mode indicated by the second indication information when the clock recovery mode indicated by the second indication information is different from a receiving clock recovery mode of the first device for the first service.
[0136] Optionally, the second indication information is carried in a message of the first service sent by the second device.
[0137] Optionally, the second indication information is a second clock recovery mode identifier corresponding to a current sending clock recovery mode of the second device for the first service.
[0138] Optionally, when the clock quality change satisfies the first condition, the sending clock recovery mode of the first service is changed, including at least one of the following:
[0139] the sending clock recovery mode of the first service is changed from a first recovery mode to a second recovery mode when a clock quality level of the first device decreases to a first level;
[0140] the sending clock recovery mode of the first service is changed from the second recovery mode to the first recovery mode when the clock quality level of the first device increases to a second level.
[0141] Optionally, the first recovery mode is a differential mode, and the second recovery mode is an adaptive mode.
[0142] the first service is a fixed bit rate service and / or a circuit emulation service.
[0143] It should be noted that the device in this embodiment is the device corresponding to the method shown in the above Figure 1 The implementation manners in the above embodiments are all applicable to the embodiments of the device, and the same technical effects can be achieved. The device provided in the embodiments of the present application can implement all the method steps achieved by the method embodiments, and the same technical effects can be achieved. Here, the same parts and beneficial effects in the method embodiments will not be described in detail.
[0144] Please refer to Figure 5 The embodiments of the present application also provide a communication device 500, which is a first device and comprises a transceiver 501 and a processor 502.
[0145] The processor 502 is configured to, in a process of interacting with a second device in a first service, change a sending clock recovery mode of the first service if a clock quality change meets a first condition.
[0146] The transceiver 501 is configured to send first indication information to the second device, where the first indication information is used to indicate a sending clock recovery mode of the first service of the first device at present.
[0147] Optionally, the transceiver is also configured to carry the first indication information in a message of the first service when sending the message of the first service to the second device, so as to send the first indication information to the second device.
[0148] Optionally, the first indication information is a first clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the first device at present.
[0149] Optionally, the transceiver is also configured to keep the sending clock recovery mode of the first service unchanged when the clock quality change does not meet the first condition, and carry the first indication information in the message of the first service when sending the message of the first service to the second device.
[0150] Optionally, the transceiver is also configured to receive second indication information sent by the second device after sending the first indication information to the second device, where the second indication information is used to indicate a sending clock recovery mode of the first service of the second device at present.
[0151] The processor is also configured to change a receiving clock recovery mode of the first service to the clock recovery mode indicated by the second indication information when the sending clock recovery mode indicated by the second indication information is different from a receiving clock recovery mode of the first service of the first device.
[0152] Optionally, the second indication information is carried in a message of the first service sent by the second device.
[0153] Optionally, the second indication information is a second clock recovery mode identifier corresponding to a current clock recovery mode of the first service of the second device.
[0154] Optionally, when the clock quality change satisfies a first condition, the sending clock recovery mode of the first service is changed, including at least one of the following:
[0155] The first device changes the sending clock recovery mode of the first service from a first recovery mode to a second recovery mode when the clock quality level decreases to a first level.
[0156] The first device changes the sending clock recovery mode of the first service from the second recovery mode to the first recovery mode when the clock quality level increases to a second level.
[0157] Optionally, the first recovery mode is a differential mode, and the second recovery mode is an adaptive mode.
[0158] The first service is a fixed bit rate service and / or a circuit emulation service.
[0159] It should be noted that the device in this embodiment is a device corresponding to the method shown in the above Figure 1 The implementation manners in the above embodiments are all applicable to the embodiments of the device, and can achieve the same technical effects. The device provided in the embodiment of the application can implement all the method steps achieved by the method embodiments, and can achieve the same technical effects. Therefore, the same parts and beneficial effects of the method embodiments will not be described in detail.
[0160] Please refer to Figure 6 The embodiment of the application further provides a communication device 600, which is a second device and includes:
[0161] The first receiving module 601 is configured to receive first indication information sent by a first device in a process of interacting with the first device in a first service message, wherein the first indication information is used to indicate a current sending clock recovery mode of the first service of the first device.
[0162] The first changing module 602 is configured to set a receiving clock recovery mode of the first service as a clock recovery mode indicated by the first indication information when the sending clock recovery mode indicated by the first indication information is different from a receiving clock recovery mode of the first service of the second device.
[0163] Optionally, the first indication information is carried in a message of the first service sent by the first device.
[0164] Optionally, the first indication information is a first clock recovery mode identifier corresponding to the sending clock recovery mode of the first device at present.
[0165] Optionally, the communication device further comprises:
[0166] The first processing module is configured to, after setting the receiving clock recovery mode of the first service to the clock recovery mode indicated by the first indication information, judge whether the clock recovery mode indicated by the first indication information is the same as the sending clock recovery mode of the first service, and if not, change the sending clock recovery mode of the first service to the clock recovery mode indicated by the first indication information, and after the change, send second indication information to the first device, the second indication information being used to indicate the sending clock recovery mode of the first service of the second device at present.
[0167] Optionally, the second indication information is carried in a message of the first service sent by the second device.
[0168] Optionally, the second indication information is a second clock recovery mode identifier corresponding to the sending clock recovery mode of the second device at present.
[0169] Optionally, the first service is a fixed bit rate service and / or a circuit emulation service.
[0170] It should be noted that the device in this embodiment is a device corresponding to the method shown in the above Figure 2 The implementation manners in the above embodiments are all applicable to the embodiments of the device, and can also achieve the same technical effects. The device provided in the embodiments of the present application can implement all the method steps achieved by the method embodiments, and can achieve the same technical effects. Therefore, the same parts and beneficial effects of the method embodiments will not be described in detail herein.
[0171] Please refer to Figure 7 The embodiments of the present application further provide a second device 700, comprising a transceiver 701 and a processor 702.
[0172] The transceiver 701 is configured to, in the process of interacting with a first device in a message of a first service, receive first indication information sent by the first device, wherein the first indication information is used to indicate a sending clock recovery mode of the first service of the first device at present.
[0173] The processor 702 is configured to set the receiving clock recovery mode of the first service to the clock recovery mode indicated by the first indication information when the clock recovery mode indicated by the first indication information is different from the receiving clock recovery mode of the first service of the second device.
[0174] Optionally, the first indication information is carried in a message of the first service sent by the first device.
[0175] Optionally, the first indication information is a first clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the first device at present.
[0176] Optionally, the processor is further configured to judge whether the clock recovery mode indicated by the first indication information is the same as the sending clock recovery mode of the first service after setting the receiving clock recovery mode of the first service to the clock recovery mode indicated by the first indication information, and change the sending clock recovery mode of the first service to the clock recovery mode indicated by the first indication information if they are different, and send second indication information to the first device after the change, where the second indication information is used to indicate the sending clock recovery mode of the first service of the second device at present.
[0177] Optionally, the second indication information is carried in a message of the first service sent by the second device.
[0178] Optionally, the second indication information is a second clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the second device at present.
[0179] Optionally, the first service is a fixed bit rate service and / or a circuit emulation service.
[0180] It should be noted that the device in this embodiment is a device corresponding to the method shown in the above Figure 2 The implementation manners in the above embodiments are all applicable to the embodiments of the device, and can also achieve the same technical effects. The device provided in the embodiments of the present application can implement all the method steps achieved by the method embodiments, and can achieve the same technical effects. Therefore, the same parts and beneficial effects of the device embodiments as the method embodiments will not be repeated in detail.
[0181] For details, please refer to Figure 8The embodiment of the present application further provides a communication device 800, which is a first device, comprising a processor 801, a memory 802, a computer program stored in the memory 802 and capable of running on the processor 801, wherein the computer program is executed by the processor 801 to realize each process of the method for switching the service clock recovery mode executed by the first device, and the same technical effects can be achieved, and thus details are not repeated herein.
[0182] Please refer to Figure 9 The embodiment of the present application further provides a communication device 900, which is a second device, comprising a processor 901, a memory 902, a computer program stored in the memory 902 and capable of running on the processor 901, wherein the computer program is executed by the processor 901 to realize each process of the method for switching the service clock recovery mode executed by the second device, and the same technical effects can be achieved, and thus details are not repeated herein.
[0183] The embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize each process of the method for switching the service clock recovery mode, and the same technical effects can be achieved, and thus details are not repeated herein. The computer readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0184] It should be noted that, in this document, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that processes, methods, articles or devices including a series of elements not only include those elements, but also include other elements not explicitly listed, or further include elements inherent to such processes, methods, articles or devices. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0185] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, also can be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application essentially or say the part of contribution to the prior art can be embodied in the form of software product, the computer software product is stored in a storage medium (such as ROM / RAM, disk, optical disk), including a number of instructions to make a terminal (may be a mobile phone, computer, server, air conditioner, or network equipment, etc.) executes the method described in various embodiments of the present application.
[0186] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the above-mentioned specific embodiments, the above-mentioned specific embodiments are only illustrative, but not restrictive, those skilled in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims, all of which belong to the protection of the present application.
Claims
1. A method for switching a service clock recovery mode, characterized by, The method comprises: If the clock quality change satisfies a first condition, the first device changes a sending clock recovery mode of the first service in the process of interacting with the second device in a message of the first service; The first device sends first indication information to the second device, and the first indication information is used to indicate the sending clock recovery mode of the first service of the first device at present.
2. The method of claim 1, wherein: The first device carries the first indication information in the message of the first service when sending the message of the first service to the second device. The first indication information is a first clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the first device at present.
3. The method of claim 1, wherein the method further comprises: Further comprising:
4. The method of claim 2, wherein the method further comprises: If the clock quality change does not satisfy the first condition, the first device keeps the sending clock recovery mode of the first service unchanged and carries the first indication information in the message of the first service when sending the message of the first service to the second device. After the first device sends the first indication information to the second device, the method further comprises:
5. The method of claim 1 to 4, wherein, The first device receives second indication information sent by the second device, wherein the second indication information is used to indicate the sending clock recovery mode of the first service of the second device at present; If the sending clock recovery mode indicated by the second indication information is different from the receiving clock recovery mode of the first service of the first device, the receiving clock recovery mode of the first service is changed to the sending clock recovery mode indicated by the second indication information.
6. The method of claim 5, wherein: The second indication information is carried in the message of the first service sent by the second device. The second indication information is a second clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the second device at present.
7. The method of claim 6, wherein the method further comprises: If the clock quality change satisfies a first condition, the first device changes a sending clock recovery mode of the first service in the process of interacting with the second device in a message of the first service; 8. The method of claim 1, wherein the method further comprises: The first device sends first indication information to the second device, and the first indication information is used to indicate the sending clock recovery mode of the first service of the first device at present.
9. The method of claim 8, wherein: The first recovery mode is a differential mode, and the second recovery mode is an adaptive mode; The first service is a fixed bit rate service and / or a circuit emulation service. The method comprises: 10. A method of switching a service clock recovery mode, characterized by, The second device receives first indication information sent by the first device in a process of interacting with the first device in a message of the first service, wherein the first indication information is used to indicate a sending clock recovery mode of the first device at present. When the sending clock recovery mode indicated by the first indication information is different from a receiving clock recovery mode of the first service of the second device, the receiving clock recovery mode of the first service is set to the sending clock recovery mode indicated by the first indication information.
11. The method of claim 10, wherein: the first indication information is carried in a message of the first service sent by the first device.
12. The method of claim 11, wherein the method further comprises: the first indication information is a first clock recovery mode identifier corresponding to the sending clock recovery mode of the first device at present.
13. The method of claim 11, wherein the method further comprises: After the receiving clock recovery mode of the first service is set to the sending clock recovery mode indicated by the first indication information, the method further comprises: the second device judges whether the sending clock recovery mode indicated by the first indication information is the same as the sending clock recovery mode of the first service, if not, the sending clock recovery mode of the first service is changed to the sending clock recovery mode indicated by the first indication information, and after the change, the second device sends second indication information to the first device, wherein the second indication information is used to indicate the sending clock recovery mode of the first service of the second device at present.
14. The method of claim 13, wherein: the second indication information is carried in a message of the first service sent by the second device.
15. The method of claim 13, wherein the method further comprises: the second indication information is a second clock recovery mode identifier corresponding to the sending clock recovery mode of the first service of the second device at present.
16. The method of claim 10, wherein: the first service is a fixed bit rate service and / or a circuit emulation service.
17. A communication device, characterized by the communication device is a first device, comprising a transceiver and a processor, wherein: the processor is configured to change the sending clock recovery mode of the first service if the clock quality change meets a first condition in a process of interacting with a second device in a message of the first service; the transceiver is configured to send first indication information to the second device, wherein the first indication information is used to indicate the sending clock recovery mode of the first service of the first device at present.
18. A communication device, characterized by the communication device is a first device, comprising a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program is executed by the processor to implement the steps of the method of any one of claims 1 to 9.
19. A communication device, characterized by the communication device is a second device, comprising a transceiver and a processor, wherein: the transceiver is configured to receive first indication information sent by the first device in a process of interacting with the first device in a message of the first service, wherein the first indication information is used to indicate a sending clock recovery mode of the first device at present. The processor is configured to set the receiving clock recovery mode of the first service to the sending clock recovery mode indicated by the first indication information when the sending clock recovery mode indicated by the first indication information is different from the receiving clock recovery mode of the first service of the second device.
20. A communications device, comprising: Comprise: A processor, a memory, and a program stored on the memory and executable on the processor, the program, when executed by the processor, implements the steps of the method according to any one of claims 10 to 16.
21. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Method, device and system for transmitting TDM services in packet network
CN101686185A
Method and device for selecting clock sources of microwave network elements
CN102664699A