CCM detection cycle modification method, device, electronic device and storage medium
By sending and receiving specific messages, the CCM detection cycle in Ethernet OAM is determined and synchronously modified, which solves the problem in the existing technology of being unable to achieve synchronous modification at both ends, avoids false alarms, and meets operation and maintenance needs.
Patent Information
- Application Number
- CN202210590250.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2042-05-26
AI Technical Summary
When modifying the CCM detection cycle in Ethernet OAM, the existing technology cannot realize synchronous modifications at both ends of the OAM session, which is prone to error alarms, such as period value detection error alarms and LOC alarms, which cannot meet the operation and maintenance needs.
By sending cycle update notification messages and receiving cycle update reply messages, it is judged whether both ends are ready to modify the detection cycle, and after confirmation, the local CCM detection cycle is modified synchronously, and the modified CCM message is sent to make the opposite device modify it. its detection cycle.
It realizes the synchronous modification of the CCM detection cycle at both ends of the OAM session, avoids the generation of false alarms, and meets the operation and maintenance requirements.
Smart Images

Figure CN115001944B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network communication, in particular to a method for modifying a CCM detection period in Ethernet OAM and a device, electronic equipment and storage medium for implementing the modification method. Background Art
[0002] The basic function of Ethernet OAM is to detect connectivity through CCM messages. According to the IEEE 802.1ag and ITU Y.1731 standards, the CCM sending period needs to be pre-set before configuring the OAM session. The CCM message format is as follows: Figure 1 As shown, the specific content of the tag field is as follows Figure 2 As shown, the lowest 3 bits represent the sending cycle, and the valid value is 1-7. The cycle value represented by it is as follows Figure 3 As shown, periods ranging from 3.33 ms to 10 minutes can be represented.
[0003] This period is used to control the period of sending CCM messages, and is also used for connectivity detection in the receiving direction. According to the standard, if the correct CCM message is not received within 3.5 times the period time, it is considered that the OAM monitoring session has a LOC (Loss of Continuity) alarm, that is, it is considered that the link has a connectivity problem and requires the upper-layer system to perform linkage processing, such as protection switching. According to the protocol standard definition, this CCM period is pre-configured, and when receiving a message, whether the period value in the message is consistent with the pre-configured value is one of the steps in the CCM message legitimacy check. If not, an alarm of inconsistent period needs to be reported. However, in actual use, from the perspective of network management, there is an application requirement to adjust this period. If the CCM period at both ends is simply modified directly, the following two problems may occur: (1) Since both ends cannot guarantee simultaneous modification, an alarm of period value check error will be generated; (2) Since this period is also used to detect link connectivity, if it is modified improperly, a LOC alarm may be generated, further triggering other linkage behaviors of the upper-layer system. For example, if the two devices (A and B) originally used a 3.33ms sending and receiving cycle, and now want to change it to a 100ms sending and receiving cycle. After the configuration of end A is modified, end A will send CCM messages according to the 100ms sending cycle, but the receiving direction of port B has not been modified at the same time. In a short period of time, the receiving direction detection is still performed according to the 3.33ms cycle. Therefore, it is easy to trigger a LOC alarm due to the failure to receive the CCM message sent by end A for more than 3.5 times the 3.33ms cycle. The above two points are errors that administrators do not want to see when modifying the CCM detection cycle at both ends.
[0004] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention
[0005] The purpose of the present invention is to provide a method for modifying the CCM detection period, which can realize synchronous modification of the CCM detection period at both ends of an OAM session without generating false alarms, thereby meeting operation and maintenance requirements. At the same time, a device, electronic device and storage medium for implementing the modification method are also provided.
[0006] To achieve the above object, an embodiment of the present invention provides a method for modifying a CCM detection period, the modification method comprising:
[0007] Initiate CCM detection period modification, send a period update notification message, the period update notification message includes an enable field for identifying detection period modification enable information;
[0008] receiving a period update reply message, and determining whether the detection period modification is ready, wherein the period update reply message includes the enable field;
[0009] In response to being ready to modify the detection period, modify the local CCM detection period, and send a CCM message after the modified CCM detection period, wherein the CCM message is used to enable the opposite device to modify the CCM detection period based on the CCM message.
[0010] In one or more embodiments of the present invention, the modification method further includes:
[0011] Disable CCM reception detection when starting CCM detection period modification.
[0012] In one or more embodiments of the present invention, the tag field of the CCM message after the CCM detection period is modified includes a field for identifying that the CCM detection period in the CCM message is a modified CCM detection period.
[0013] In one or more embodiments of the present invention, the modification method further includes:
[0014] After sending the periodic update notification message, determining whether a periodic update reply message is received within a preset time;
[0015] In response to not receiving the periodic update reply message, resume CCM reception detection and report to the upper layer system that the peer device has not replied to the periodic update reply message; or continue to send several periodic update notification messages continuously.
[0016] In one or more implementations of the present invention, the periodic update notification message is generated by the following steps:
[0017] The operation code field in the OAM PDU message is configured as a preset value, and the unused bits in the tag field are configured as an enable field, so as to form the periodic update notification message.
[0018] The present invention also discloses a method for modifying a CCM detection period, the modification method comprising:
[0019] receiving a period update notification message, wherein the period update notification message includes an enable field for identifying detection period modification enable information;
[0020] Determine whether to enable the time negotiation function;
[0021] In response to the start of the time negotiation function, further determining whether to enable the detection period modification based on the period update notification message;
[0022] In response to enabling detection period modification, setting the OAM session to a periodic learning state, turning off CCM reception detection, turning off CCM message sending, and sending a periodic update reply message, wherein the periodic update reply message includes the enable field;
[0023] Receive the CCM message after the CCM detection period is modified, obtain the CCM detection period information in the CCM message and update the local CCM detection period, and enable the period detection function and the CCM message sending function.
[0024] The present invention also discloses a device for modifying a CCM detection period, the device comprising:
[0025] A first message sending module, used to start the CCM detection period modification, and send a period update notification message, wherein the period update notification message includes an enable field for identifying the detection period modification enable information;
[0026] A first message receiving module, used for receiving a period update reply message, and judging whether the detection period modification is ready, wherein the period update reply message includes the enable field;
[0027] The first cycle modification module is used to modify the local CCM detection cycle in response to being ready to modify the detection cycle, and send a CCM message after the modified CCM detection cycle, wherein the CCM message is used to enable the opposite device to modify the CCM detection cycle based on the CCM message.
[0028] The present invention also discloses a device for modifying a CCM detection period, the device comprising:
[0029] A second message receiving module, used for receiving a period update notification message, wherein the period update notification message includes an enable field for identifying detection period modification enable information;
[0030] The first judgment module is used to judge whether to enable the time negotiation function;
[0031] A second judgment module is used to respond to the start time negotiation function and further judge whether to enable the detection period modification based on the period update notification message;
[0032] A message reply module, configured to, in response to enabling detection period modification, set the OAM session to a periodic learning state, disable CCM reception detection, disable CCM message sending, and send a periodic update reply message, wherein the periodic update reply message includes the enable field;
[0033] The second period modification module is used to receive the CCM message after the CCM detection period is modified, obtain the CCM detection period information in the CCM message and update the local CCM detection period, and enable the period detection function and the CCM message sending function.
[0034] The present invention also discloses an electronic device, the electronic device comprising:
[0035] at least one processor; and
[0036] At least one memory is coupled to the at least one processor and stores a computer program for execution by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device executes the method described above.
[0037] The present invention also discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a machine, the method described above is implemented.
[0038] Compared with the prior art, the present invention can realize synchronous modification of the CCM detection cycle at both ends of an OAM session without generating false alarms, thus meeting operation and maintenance requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is a schematic diagram of the CCM message format;
[0040] Figure 2 yes Figure 1 Diagram of the format of the marked fields in the middle;
[0041] Figure 3 yes Figure 2 Specific value table of the marked fields;
[0042] Figure 4It is a schematic diagram of the interaction between the sender and the receiver in Ethernet OAM;
[0043] Figure 5 It is a flow chart of the modification of the detection period of the sending end in Ethernet OAM;
[0044] Figure 6 It is a schematic diagram of the format of the detection period notification message and the detection period update reply message;
[0045] Figure 7 It is a flow chart of the detection period modification of the receiving end in Ethernet OAM;
[0046] Figure 8 It is a structural block diagram of a device for modifying a CCM detection period applied in a transmitting end;
[0047] Fig. 9 The present invention is a structural block diagram of a device for modifying a CCM detection period applied to a receiving end. DETAILED DESCRIPTION
[0048] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.
[0049] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.
[0050] In the prior art, when modifying the CCM detection period, it is impossible to achieve synchronous modification of both ends of the OAM session, and error alarms will be generated, such as cycle value detection error alarms, LOC alarms, etc., which cannot meet the operation and maintenance requirements. However, the method, device, electronic device and storage medium for modifying the CCM detection period in Ethernet OAM disclosed in the present invention can achieve synchronous modification of the CCM detection period at both ends of the OAM session without generating error alarms, thus meeting the operation and maintenance requirements.
[0051] The present invention discloses a method for modifying a CCM detection period in Ethernet OAM, which is applied to an Ethernet OAM scenario. In the scenario, connectivity detection can be performed between devices through CCM messages.
[0052] The following takes the transmitting end as an example to describe in detail the method for modifying the CCM detection period in Ethernet OAM disclosed in the present invention. Figure 4 and Figure 5 As shown, the modification method includes the following steps:
[0053] S1, start the CCM detection period modification and send a period update notification message, where the period update notification message includes an enable field for identifying the detection period modification enable information;
[0054] Specifically, when modifying the CCM detection period, the transmitting end first starts the CCM detection period modification function. The CCM detection period modification function can be enabled through a corresponding instruction or through a physical switch, etc., and can be selected according to actual needs.
[0055] When the CCM detection period modification function is enabled, a period update notification message is further sent to the receiving end. The period update notification message can be used to start the notification of the OAM session CCM detection period update. In this embodiment, the period update notification message is customized based on the OAM PDU message. Figure 6 As shown, it is the OAM PDU message format, which includes an operation code (OpCode) field and a flag (Flags) field. By configuring the value of the operation code field to a preset value, such as 64, the message is identified as a periodic update notification message. At the same time, the flag field is used to customize the enable field that can identify the detection period modification enable information. The detection period enable modification information here includes the enable detection period modification information and the detection period modification information that is ready. For example, bit4 of the flag field can be used to identify whether the detection period modification is enabled, and bit5 can be used to identify whether the detection period modification is ready, which can be selected according to actual needs. For example, when bit4 is set to 1, it indicates that the detection period modification is enabled. When bit5 is set to 1, it indicates that the detection period modification is ready. Of course, in other embodiments, the existing non-periodic OAM message can also be used, and the reserved position of its flag field can be used to customize the periodic update notification message. And for the receiving end, the pre-configured operation code field value used to notify the CCM detection period modification and the corresponding tag field configurable position value can be used to jointly determine whether the OAM PDU is a notification message for the OAM session CCM detection period modification, so as to distinguish it from the original function of the operation code.
[0056] Furthermore, in order to avoid false alarms of LOC error alarms during the negotiation process of modifying the CCM detection period, the CCM reception detection may be disabled after the CCM detection period modification function is enabled.
[0057] S2, receiving a period update reply message, and determining whether the detection period modification is ready, the period update reply message including the enable field;
[0058] Specifically, after the transmitting end sends the cycle update notification message, it further waits for the receiving end to reply with a cycle update reply message. After the receiving end receives the cycle update notification message, it replies with a cycle update reply message to the receiving end, and the cycle update reply message also includes the enable field described above, and the enable field records whether the receiving end is ready to modify the detection cycle.
[0059] Furthermore, after the sending end sends the periodic update notification message, due to network abnormalities, the receiving end may not receive the periodic update notification message, and the sending end may not receive the periodic update reply message. Therefore, the sending end also periodically detects whether the periodic update reply message is received. During implementation, a timer can be used to periodically detect whether the periodic update reply message is received.
[0060] When the receiving end does not receive the periodic update notification message within a certain period of time, the timing detection mechanism of the sending end can detect this event, and then clear the update periodic notification state and restore CCM reception detection. At the same time, it reports to the upper-layer system that the peer device (receiving end) has not responded to the periodic update reply message, and the CCM detection period modification has failed. The upper-layer system can decide to conduct a new round of CCM detection modification process again.
[0061] When the sender does not receive a periodic update reply message within a certain period of time, the sender's timing detection mechanism can detect this event, and then clear the update cycle notification state and restore CCM reception detection. At the same time, it reports to the upper-layer system that the peer device has not responded to the periodic update reply message and the CCM detection period modification has failed. The upper-layer system can decide to conduct a new round of CCM detection modification process again.
[0062] In order to ensure the consistency of the confirmation processing of the CCM detection period modification, the sender still sends several period update notification messages to the receiver after the preset time (i.e. the timer times out). For the receiver, even if it is in the period learning state, the period in the CCM message it receives remains unchanged. Even if the local CCM detection period is updated, the result of the update is that the local CCM detection period remains unchanged, and the CCM detection period at both ends remains consistent, which will not have any impact on the OAM session.
[0063] When the sending end receives the period update reply message, it further determines whether the receiving end is ready to modify the detection period based on the information carried in the period update reply message. During implementation, the value of the enable field in the period update reply message can be used to determine whether the receiving end is ready to modify the detection period. For example, when bit 4 is 0 and bit 5 is 1 in the above-mentioned flag field, it indicates that the receiving end is ready to modify the detection period.
[0064] S3, in response to being ready to modify the detection period, modify the local CCM detection period, and send a CCM message after the modified CCM detection period, wherein the CCM message is used to enable the opposite device to modify the CCM detection period based on the CCM message.
[0065] Specifically, when the sending end determines that the receiving end is ready to modify the detection period, the sending end further modifies the local CCM detection period. After the modification is completed, the CCM message is sent to the receiving end according to the modified CCM detection period. The receiving end can modify the local CCM detection period according to the CCM message, thereby ensuring the consistency of the operation of the CCM detection period modification at both ends.
[0066] Furthermore, since the sending end does not close the sending function of the CCM message throughout the negotiation process of the modification of the CCM detection period, in order to prevent the receiving end from misprocessing the received CCM message, the sending end makes a corresponding mark in the sent CCM message to identify that the CCM message is a message after the CCM detection period is modified. For example, a bit can be set in the tag field in the CCM message to identify that the period in the CCM message is the modified period, and the bit can be configured according to actual needs.
[0067] In this embodiment, in order to ensure that the receiving end can receive the CCM message after the CCM detection period is modified, the sending end can send several CCM messages after modifying the CCM detection period to ensure that the receiving end can receive the CCM message. During implementation, it is best for the sending end to send 3 CCM messages to the receiving end.
[0068] Furthermore, when the receiving end modifies the local CCM detection period, it sends a CCM message to the sending end. After receiving the CCM message after the CCM detection period is modified, the sending end reports the CCM detection period modification event to the upper system. In addition, since the CCM reception detection is turned off after the CCM detection period modification function is turned on, when the sending end receives the CCM message after the CCM detection period is modified, the CCM reception detection is turned on, that is, the CCM message after the CCM detection period is modified can trigger the turning on of the CCM reception detection of the sending end.
[0069] The following takes the receiving end as an example to describe in detail the method for modifying the CCM detection period in Ethernet OAM disclosed by the present invention. Figure 7 As shown, the modification method includes the following steps:
[0070] S1', receiving a period update notification message, wherein the period update notification message includes an enable field for identifying detection period modification enable information;
[0071] S2', determine whether to enable the time negotiation function;
[0072] Specifically, after the sending end sends the periodic update notification message to the receiving end, the receiving end may receive the periodic update notification message or may not receive the periodic update notification message due to network reasons. The specific processing of the receiving end not receiving the periodic update notification message is described above, and will not be repeated here. Similarly, the specific processing of the periodic update notification message is described above, and will not be repeated here.
[0073] When the receiving end receives the periodic update notification message, it further determines whether to enable the time negotiation function, which is used to identify whether the device needs to modify the CCM detection period. The time negotiation function is enabled in the following ways: one is to enable it through the corresponding command, and the other is to enable it through the corresponding physical button, which can be configured according to actual needs.
[0074] S3', in response to starting the time negotiation function, further determining whether to enable the detection period modification based on the period update notification message;
[0075] Specifically, when the receiving end determines that the time negotiation function is enabled, it further obtains information carried in the period update notification message to determine whether the detection period modification is enabled. During implementation, the receiving end determines whether the detection period needs to be modified through the enable field.
[0076] S4', in response to enabling detection period modification, setting the OAM session to a periodic learning state, turning off CCM reception detection, turning off CCM message sending, and sending a periodic update reply message, wherein the periodic update reply message includes the enable field;
[0077] Specifically, after determining to enable the detection cycle modification, the OAM session is further set to the cycle learning state, and the CCM reception detection is turned off, the CCM sending is turned off, and a cycle update reply message is sent to the sending end. In the cycle update reply message, the second bit of the enable field is set to the first preset value to indicate that it is ready to modify the detection cycle. After receiving the cycle update reply message, the sending end determines whether the receiving end is ready to modify the detection cycle through the enable field in the message.
[0078] S5', receiving the CCM message after the CCM detection period is modified, obtaining the CCM detection period information in the CCM message and updating the local CCM detection period, and enabling the period detection function and the CCM message sending function.
[0079] Specifically, after the receiving end sends a period update reply message to the sending end, it waits to receive a CCM message after the CCM detection period is modified. When the sending end determines through the period update reply message that the receiving end is ready to modify the detection period, it further sends several CCM messages after the CCM detection period is modified to the receiving end.
[0080] When the receiving end receives the first CCM message after the CCM detection period is modified, it further obtains the CCM detection period information carried in the CCM message, and updates the local configuration based on the CCM detection period information to ensure that the local CCM detection period is the same as the CCM detection period in the sending end. At the same time, the period detection function is turned on and CCM sending is turned on. At this time, the receiving period detection and CCM sending period are both the modified period values consistent with the sending end.
[0081] Furthermore, the receiving end needs to report the modification of the CCM detection period to the upper layer system to report the CCM detection period modification event.
[0082] After the receiving end completes the modification of the local CCM detection period, it can send CCM messages to the sending end. After the sending end receives the CCM message, it can trigger the start of the receiving detection.
[0083] The present invention ensures the operational consistency of CCM detection period modification at both ends through the handshake mechanism and linkage processing of periodic update messages (periodic update notification messages and periodic update reply messages) and CCM messages. At the same time, through necessary error shielding configuration (such as closing CCM receiving detection after opening the CCM detection period modification function), it is ensured that some false alarms will not be generated during the modification phase of the CCM detection period, avoiding unnecessary processing and network switching of the upper system.
[0084] like Figure 7As shown, the present invention also discloses a device for modifying the CCM detection period in Ethernet OAM, which is applied to the sending end in Ethernet OAM and can implement the modification method of steps S1 to S3 described above. Specifically, the modification device includes: a first message sending module, a first message receiving module and a first cycle modification module. Among them, the first message sending module is used to send a cycle update notification message after starting the CCM detection period modification, and the cycle update notification message includes an enable field for identifying the detection period modification enable information; the first message receiving module is used to receive a cycle update reply message and determine whether it is ready to modify the detection period, and the cycle update reply message includes the enable field; the first cycle modification module is used to modify the local CCM detection period in response to being ready to modify the detection period, and send a CCM message after modifying the CCM detection period, and the CCM message is used to enable the opposite device to modify the CCM detection period based on the CCM message. This module corresponds one-to-one to the steps of the above method, and will not be repeated here.
[0085] like Figure 8 As shown, the present invention also discloses a CCM detection period modification device in Ethernet OAM, which is applied to the receiving end in Ethernet OAM and can implement the modification method of S1' to S5' described above. Specifically, the modification device includes: a second message receiving module, a first judgment module, a second judgment module, a message reply module and a second period modification module. Among them, the second message receiving module is used to receive a periodic update notification message, and the periodic update notification message includes an enable field for identifying the detection period modification enable information; the first judgment module is used to judge whether to turn on the time negotiation function; the second judgment module is used to respond to the start of the time negotiation function, and further judge whether to enable the detection period modification based on the periodic update notification message; the message reply module is used to respond to enabling the detection period modification, set the OAM session to the periodic learning state, turn off the CCM reception detection, turn off the CCM message sending, and send a periodic update reply message, and the periodic update reply message includes the enable field; the second period modification module is used to receive the CCM message after modifying the CCM detection period, obtain the CCM detection period information in the CCM message and update the local CCM detection period, and turn on the periodic detection function and the CCM message sending function. The above modules correspond one by one to the steps of the above methods, and will not be repeated here.
[0086] The electronic device disclosed in one embodiment of the present invention may include, but is not limited to: a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile electronic device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a message sending and receiving device, a wearable electronic device, a consumer electronic device, etc. The electronic device can implement the above-mentioned method for modifying the CCM detection period, can realize the synchronous modification of the CCM detection period at both ends of the OAM session, and will not generate an error alarm, so as to meet the operation and maintenance requirements. Specifically, the electronic device includes at least one memory, at least one processor and a computer program, at least one memory is coupled to the at least one processor, wherein the computer program is stored in the memory and can be run in the processor, such as the computer program is a CCM detection period modification program, etc. During implementation, when the processor executes the computer program, each step in the above method can be implemented, such as the steps of starting the CCM detection period modification, sending a period update notification message, etc.
[0087] The computer program here can be divided into one or more units, and the one or more units are stored in the memory and executed by the memory to complete the present invention. Among them, one or more units can be a series of computer program instruction segments that can complete specific functions, and the computer program instruction segments are used to describe the execution process of the computer program in the electronic device.
[0088] It should be noted that the electronic equipment here includes but is not limited to the memory, processor and computer program mentioned above, and may also include others, such as input devices for inputting instructions (such as keyboards, etc.), display screens for displaying negotiation results, communication interfaces, etc. These components communicate with each other through a bus.
[0089] The present invention also discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned detection cycle modification method can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, executable file or some intermediate form, etc., and the computer-readable medium can include any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), etc.
[0090] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0091] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0092] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0094] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.
Claims
1. A method for modifying a CCM detection period, characterized in that: The modification method comprises: The sending end starts the CCM detection period modification and sends a period update notification message, wherein the period update notification message includes an enable field for identifying the detection period modification enable information, and the detection period modification enable information includes enabling detection period modification information and being ready to perform detection period modification information; The receiving end receives the periodic update notification message, determines whether to enable the time negotiation function, and determines whether to enable the detection period modification based on the periodic update notification message when the time negotiation function is enabled, and sets the OAM session to the periodic learning state when the detection period modification is enabled, closes the CCM reception detection, closes the CCM message sending, and sends a periodic update reply message, wherein the periodic update reply message includes the enable field; The sending end receives the cycle update reply message, determines whether it is ready to modify the detection cycle, and if it is ready to modify the detection cycle, modifies the local CCM detection cycle, and sends the CCM message after the modified CCM detection cycle, wherein the CCM message is used to enable the opposite end device to modify the CCM detection cycle based on the CCM message; The receiving end receives the CCM message after the CCM detection period is modified, obtains the CCM detection period information in the CCM message and updates the local CCM detection period, starts periodic detection, and starts sending CCM messages.
2. The modification method according to claim 1, characterized in that: The modification method further comprises: Disable CCM reception detection when enabling CCM detection period modification.
3. The modification method according to claim 1, characterized in that: The tag field of the CCM message after the CCM detection period is modified includes a field for identifying that the CCM detection period in the CCM message is a modified CCM detection period.
4. The modification method according to claim 1, characterized in that: The modification method further comprises: After sending the periodic update notification message, determining whether a periodic update reply message is received within a preset time; In response to not receiving the periodic update reply message, resume CCM reception detection and report to the upper layer system that the peer device has not replied to the periodic update reply message; or continue to send several periodic update notification messages continuously.
5. The modification method according to claim 1, characterized in that: The periodic update notification message is generated by the following steps: The operation code field in the OAM PDU message is configured as a preset value, and the unused bits in the tag field are configured as an enable field, so as to form the periodic update notification message.
6. A device for modifying a CCM detection period, characterized in that: The modification device comprises: A first message sending module, used to enable the sending end to start the CCM detection period modification, and send a period update notification message, wherein the period update notification message includes an enable field for identifying the detection period modification enabling information, and the detection period modification enabling information includes enabling detection period modification information and being ready to perform detection period modification information; A first message receiving module, configured to enable the transmitting end to receive a period update reply message to determine whether the detection period modification is ready, wherein the period update reply message includes the enable field; A first cycle modification module, configured to modify a local CCM detection cycle in response to being ready to modify the detection cycle, and send a CCM message after the CCM detection cycle is modified, wherein the CCM message is used to enable the opposite end device to modify the CCM detection cycle based on the CCM message; A second message receiving module, used to enable a receiving end to receive a periodic update notification message; A first judgment module is used to enable the receiving end to judge whether to enable the time negotiation function; A second judgment module is used to respond to the start time negotiation function and further judge whether to enable the detection period modification based on the period update notification message; A message reply module, configured to, in response to enabling detection period modification, set the OAM session to a periodic learning state, disable CCM reception detection, disable CCM message sending, and send a periodic update reply message; The second period modification module is used to enable the receiving end to receive the CCM message after the CCM detection period is modified, obtain the CCM detection period information in the CCM message and update the local CCM detection period, and enable the period detection function and the CCM message sending function.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and At least one memory, the at least one memory is coupled to the at least one processor and stores a computer program for execution by the at least one processor, when the computer program is executed by the at least one processor, the electronic device executes the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a machine, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and equipment for detecting periodically link state
CN101039224A
Systems and methods for dynamic operations, administration, and management
US20130114394A1