Method and system for realizing channel protection based on software logic

The service tables are obtained and managed through the main controller, the channel link exceptions are monitored and corresponding actions are performed, which solves the problem that the existing 1+1 channel protection scheme cannot be implemented, and the flexibility and stability of channel protection are achieved.

CN119496689APending Publication Date: 2025-02-21NARI INFORMATION & COMM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411532930.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The existing 1+1 channel protection scheme cannot be implemented in scenarios where line code modification operations cannot be performed, especially when service encoding is not supported or equipment is transparent to services.

Method used

The main controller obtains the local service table and relay service table of the device, monitors the abnormal information of the channel link, and performs corresponding actions based on the abnormal information, including single-ended switching, and revises the service table to achieve channel protection.

Benefits of technology

It realizes 1+1 protection of the communication channel without relying on line code editing, improves the universality and flexibility of protection, and ensures the continuity and stability of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496689A_ABST
    Figure CN119496689A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for realizing channel protection based on software logic. The method comprises the following steps: acquiring a local service table and a relay service table of equipment by utilizing a main controller; monitoring abnormal information of a channel link, querying a local service table and a relay service table by the main controller according to the abnormal information, and executing corresponding actions; and after the controller executes a corresponding action, the main controller revises the local service table and the relay service table according to an action execution result. Through logic operation of upper software, 1 + 1 protection is carried out on a communication channel under the condition of not depending on line code editing, channel services are effectively isolated, the universality and flexibility of protection are improved, meanwhile, the control process and table content are optimized, the overall performance of the scheme is ensured, and the method is suitable for popularization and application. Therefore, rapid and stable channel service protection can be realized in various service scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wired communication systems, and in particular to a method and system for implementing channel protection based on software logic. Background Art

[0002] 1+1 channel protection means that the transmitting end sends the same information on both the primary and backup channels (concurrently). Under normal circumstances, the receiving end selects to receive the services on the primary channel. Because the services on the primary and backup channels are exactly the same (both are primary services), when the primary channel is damaged, the primary service can be restored by switching to the backup channel. This switching method is also called single-end switching (switching only on the receiving end), and the switching speed is fast. This method is often used for services with high reliability requirements. In this way, an additional channel is occupied to achieve fast and stable channel service protection.

[0003] At present, 1+1 protection is widely used in optical transmission networks, especially when the main and backup channels cross equipment, 1+1 channel protection is generally adopted, which is particularly common in SDH equipment and OTN equipment. The current 1+1 protection scheme collects and controls the service channel status by inserting codes into the line or using the original service codes. However, if the specific service does not support, or it is inconvenient to insert line codes (such as power grid relay protection services, or the equipment itself is transparent to the service), or the service code itself does not support 1+1 protection related functions (such as most non-SDH services), if you still want to realize the automatic switching protection function, you need to find another way. Summary of the invention

[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.

[0005] In view of the above existing problems, the present invention is proposed. Therefore, the present invention provides a method for implementing channel protection based on software logic to solve the problem that the traditional 1+1 channel protection solution cannot be implemented in the scenario where the line code cannot be modified.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] In a first aspect, the present invention provides a method for implementing channel protection based on software logic, comprising:

[0008] Using the main controller to obtain the local service table and relay service table of the device;

[0009] Monitoring abnormal information of the channel link, according to which the main controller queries the local service table and the relay service table and performs corresponding actions;

[0010] After the controller executes the corresponding action, the main controller revises the local service table and the relay service table according to the action execution result.

[0011] As a preferred solution of the method for implementing channel protection based on software logic described in the present invention, wherein: monitoring abnormal information of the channel link includes:

[0012] The abnormal information includes channel link abnormality or abnormal recovery information;

[0013] Use the line side card to monitor the channel link. If any abnormal information is found, a warning message will be sent to the main controller.

[0014] As a preferred solution of the method for implementing channel protection based on software logic described in the present invention, the abnormal information includes:

[0015] The sources of abnormal information include warning information sent by local device boards to the main controller and warning information synchronized between devices;

[0016] The warning information sent by the local equipment board to the main controller includes relay service alarm, local service alarm, relay service recovery and local service recovery.

[0017] As a preferred solution of the method for implementing channel protection based on software logic described in the present invention, the warning information sent by the local device board to the main controller includes:

[0018] If the warning message is a relay service alarm, the main controller sends an alarm message to the double-end termination device;

[0019] If the warning information is a relay service alarm, it is determined whether the alarm channel is the same as the current working channel and whether the abnormal channel is the working channel. Based on the determination result, the main controller determines whether to execute the local single-end switching action;

[0020] If the warning message is that the relay service is restored, the main controller sends a restoration message to the dual-end termination device;

[0021] If the warning message is local service recovery, it is determined whether the alarm channel is the same as the current working channel. Based on the determination result, the main controller determines whether to execute the local single-ended switching action.

[0022] As a preferred solution of the method for implementing channel protection based on software logic described in the present invention, wherein: the inter-device synchronization warning information includes:

[0023] If the source of the abnormal information is the synchronous warning information between devices, it is determined whether the alarm channel and the current working channel are the same. Based on the determination result, the main controller determines whether to execute the local single-ended switching action.

[0024] As a preferred solution of the method for implementing channel protection based on software logic described in the present invention, wherein: according to the action execution result, the main controller revises the local service table and the relay service table to include:

[0025] If the local single-end switching action is executed successfully, the main controller switches the current channel of the local service table to the original standby channel;

[0026] If the local single-end switching action fails, the current channel of the local service table will not be switched;

[0027] If a backup line alarm is received, single-end switching will not be performed, and an alarm will be sent to the upper platform. The main controller will change the available channels in the local service table to only the main line available;

[0028] If a backup line recovery alarm is received, single-end switching is not performed and an alarm is reported to the upper platform. The main controller changes the available channels in the local service table to make both the primary and backup lines available.

[0029] As a preferred solution of the method for realizing channel protection based on software logic described in the present invention, the local service table and the relay service table include:

[0030] If a service is uploaded or downloaded on a device, the device is a node device for 1+1 protection services, and the corresponding service is recorded in the local service table of the device;

[0031] The contents that need to be recorded in the local service table include service number, current channel, available channel, local upload end, dual-transmit end 1, dual-transmit end 2 and peer device address;

[0032] If a service is only transferred on a certain device, the device is not a node device for 1+1 protection services, but only a transfer device. The corresponding service is recorded in the relay service table of the device.

[0033] The relay service table includes service number, relay end 1, relay end 2, end 1 terminal device address and end 2 terminal device address.

[0034] In a second aspect, the present invention provides a system for implementing channel protection based on software logic, comprising:

[0035] A data acquisition module, used to acquire a local service table and a relay service table of a device using a main controller;

[0036] An action execution module, used to monitor abnormal information of the channel link. According to the abnormal information, the main controller queries the local service table and the relay service table and executes corresponding actions;

[0037] The revision module is used for the main controller to revise the local service table and the relay service table according to the action execution result after the controller executes the corresponding action.

[0038] In a third aspect, the present invention provides a computing device, comprising:

[0039] Memory and processor;

[0040] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for realizing channel protection based on software logic are implemented.

[0041] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the method for implementing channel protection based on software logic.

[0042] Compared with the prior art, the present invention has the following beneficial effects: the present invention realizes 1+1 protection of the communication channel without relying on line code editing through the logical operation of the upper-level software, effectively isolates the channel service, improves the versatility and flexibility of the protection, and optimizes the control flow and table content, ensuring the overall performance of the solution, so that fast and stable channel service protection can be achieved in a variety of service scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:

[0044] Figure 1 This is a schematic diagram of the overall process of a method for implementing channel protection based on software logic according to an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of a specific flow chart of a method for implementing channel protection based on software logic according to an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of a simple application scenario of a method for implementing channel protection based on software logic according to an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0048] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0049] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0050] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0051] At the same time, in the description of the present invention, it should be noted that the orientations or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the system or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0052] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0053] Example 1

[0054] Reference Figure 1-2, as an embodiment of the present invention, provides a method for implementing channel protection based on software logic, comprising:

[0055] S100: using the main controller to obtain the local service table and relay service table of the device;

[0056] S102: Monitor abnormal information of the channel link. According to the abnormal information, the main controller queries the local service table and the relay service table and performs corresponding actions;

[0057] S104: After the controller executes the corresponding action, the main controller revises the local service table and the relay service table according to the action execution result;

[0058] It should be noted that through the efficient operation of the main controller, the local business table and relay business table of the equipment can be accurately obtained and managed, laying a solid foundation for subsequent abnormal monitoring and processing; in terms of real-time monitoring of channel link abnormal information, the present invention realizes instant perception of communication status. Once an abnormality is detected, the main controller can quickly query the business table, accurately match the affected business, and execute corresponding protection measures, such as switching to a backup channel, thereby ensuring the continuity and stability of communication; after the action is executed, the main controller will also revise the business table in real time according to the execution result. This feedback mechanism not only enhances the system's adaptability, but also helps to optimize resource allocation and improve overall communication efficiency.

[0059] In the embodiment of the present application, the above step S100 further includes:

[0060] Local service table: If a service is uploaded or downloaded on a device, the device is a node device for 1+1 protection service, and the corresponding service is recorded in the local service table of the device; the contents that need to be recorded in the local service table include service number, current channel, available channel, local upload end, dual-transmitting end 1, dual-transmitting end 2 and peer device address;

[0061] Relay service table: If a service is only transferred in a certain device, the device is not a node device for the 1+1 protection service, but only a transfer device. The corresponding service is recorded in the relay service table of the device; the relay service table includes the service number, relay end 1, relay end 2, end 1 terminal device address and end 2 terminal device address.

[0062] Specifically, the local business table definition is shown in Table 1:

[0063] Table 1 Local business table

[0064]

[0065]

[0066] Some bytes and data types of the local service table can be customized because the best definition methods for different devices are different; if the devices communicate through UDP / TCP protocol, the address of the opposite device can be defined as the common 4 unsigned data, which are parallel to the representation type of ADDR1.ADDR2.ADDR3.ADDR4; if the device is a slot and accesses data through the SFP independent optical port, the upload end and the dual-transmit end can be defined as |slot number, optical port number| to uniquely determine a service port. This method does not make a rigid requirement for the device and can be used.

[0067] Specifically, the relay service table is defined as shown in Table 2:

[0068] Table 2 Relay service table

[0069]

[0070] The relay service table is the same as the local service table. The customization in the relay service table can also be modified according to different devices.

[0071] It should be noted that in the case of a relatively simple network topology, some devices may only need one of these two tables, depending on the actual business configuration. The local business table is used to record 1+1 protection services uploaded or downloaded locally. The automatic switching action of such services is implemented locally because it has a higher priority and is distinguished from other ordinary services for fast calculation. The local business table can respond quickly and implement switching actions to achieve the function of 1+1 channel protection. The relay business table is used to record 1+1 protection services that are not uploaded or downloaded locally. The automatic switching action of such services is implemented on other devices, so this machine only issues business channel alarms. When there is a problem with its own business link, an alarm is sent to the local upload and download devices at both ends.

[0072] It should also be noted that by accurately constructing the local service table and the relay service table, the key information of the 1+1 protection service is fully recorded, including the service number, channel status, port identification and device address, etc., to achieve flexible adaptation and efficient management of different types of equipment, whether node equipment or transit equipment. This design not only enhances the configurability and scalability of the system, but also improves the ability to accurately monitor and quickly respond to 1+1 protection services in complex network environments, thereby effectively ensuring the stability and reliability of the communication system.

[0073] In the embodiment of the present application, the above step S102 further includes sub-steps A1-A6:

[0074] In A1: the channel link is monitored by the line side board, and if any abnormal information is found, a warning message is sent to the main controller; the abnormal information includes channel link abnormality or abnormal recovery information; the source of the abnormal information includes the warning information sent by the local device board to the main controller and the warning information synchronized between devices; the warning information sent by the local device board to the main controller includes relay service alarm, local service alarm, relay service recovery and local service recovery.

[0075] It should be noted that when the channel is abnormal and unable to communicate, it will be restored to normal after maintenance personnel repair it. The channel status flag in the local business table and relay business table can be directly modified through the main controller, and the system can also automatically detect whether the technical channel has been restored.

[0076] It should be noted that the automatic detection technology can be used to restore normal communication of the link without cutting off power and modifying the main controller registers. This is often the case when the optical fiber is damaged and the optical fiber is directly replaced. By automatically detecting link recovery, the workload of manual modification and maintenance of system stability can be saved.

[0077] In A2: if the warning information is a relay service alarm, the main controller sends an alarm message to the dual-end termination device;

[0078] In A3: If the warning information is a relay service alarm, it is determined whether the alarm channel is the same as the current working channel and whether the abnormal channel is the working channel. Based on the determination result, the main controller determines whether to execute the local single-end switching action;

[0079] In A4: if the warning message is that the relay service is restored, the main controller sends a restoration message to the dual-end termination device;

[0080] In A5: If the warning message is local service recovery, it is determined whether the alarm channel is the same as the current working channel. Based on the determination result, the main controller determines whether to execute the local single-ended switching action.

[0081] In A6: If the source of the abnormal information is the synchronous warning information between devices, it is determined whether the alarm channel and the current working channel are the same. Based on the determination result, the main controller determines whether to execute the local single-ended switching action.

[0082] It should be noted that after receiving the abnormal information, the controller will first query the local service table, and then query the relay service table. This is because logically, once the service in the local service table is damaged, the overall switching time is the longest. This is because it is necessary to alert the main controller at the farthest end of the physical link, so this table is queried first.

[0083] The table lookup process is the main time-consuming point in the automatic switching process, which removes the transmission delay. The table can be pre-sorted, and table attributes can be expanded to add flag labels to optimize the time complexity of table lookup, thereby reducing the table lookup time under multiple services from the algorithm level.

[0084] It should also be noted that, during the protection process, it is necessary to clearly determine what is used as a criterion to determine whether a channel is available. In a possible embodiment, it is possible to determine whether data is flowing by detecting the LOS signal of the SFP optical module.

[0085] Specifically, after all devices involved in the protection of services have established relevant service tables, the properties of the network can be described through the table. At this time, what needs to be done is to monitor all channel links. Once there is an abnormality that blocks the normal transmission of services, it is necessary to alarm the main controller. This action is generally performed by the line side card to monitor whether the incoming data is normal. The monitoring methods include monitoring the data packet loss rate and monitoring the optical network LOS signal.

[0086] In a possible embodiment, the line side card is responsible for continuously monitoring the incoming data flow, evaluating the data packet loss rate by calculating the difference between the received data packet and the data packet that should be sent by the sender, and when it is detected that the data packet loss rate increases abnormally and exceeds a preset threshold, it is considered that there is an abnormality in the channel link. At this time, the line side card will immediately send a warning message containing the channel link abnormality information to the main controller, so that the main controller can query the local service table and the relay service table according to this abnormal information, and perform corresponding actions, such as sending a warning message to the dual-end termination device or performing a local single-end switching action, to ensure the continuity and stability of the service.

[0087] In addition to the channel link abnormality information considered above, it is also necessary to consider the situation after the channel abnormality is restored by the operation and maintenance personnel. This state is a conjugate state with the channel link abnormality. When the link is abnormal, there is a high probability that the abnormality will be restored. The monitoring method for this situation is also the same as the monitoring method for the channel link abnormality.

[0088] When the line side card finds that the channel link is abnormal, it needs to send an alarm to the main controller. The alarm message is different from the characteristics of each device and can be modified by yourself;

[0089] In a possible embodiment, the warning message is as shown in Table 3:

[0090] Table 3 Warning message

[0091] Number of bytes 2 2 2 4 2 Functional Description Message header Total message length Function code Link location flag Message tail

[0092] The message length is short, which is convenient for quickly notifying the main controller. The function code is used to distinguish whether it is a link damage alarm or a link recovery alarm. The link location flag is used to uniquely locate which link is damaged. A common method is to use the combination of [board slot number, board optical module / optical channel number] as the basis for confirming the link.

[0093] In the embodiment of the present application, when receiving the warning information sent by the local device board to the main controller, the processing logic of the controller to perform the corresponding action is shown in Table 4 below:

[0094] Table 4 Controller action execution processing logic 1

[0095]

[0096] It should be noted that, considering that the current service channels are generally bidirectional service channels, there are receiving ends in the dual-end node devices, so the alarm information needs to be synchronized to the dual-end devices, and the entire APS protection process is completed only after the single-end switching action is performed.

[0097] In the embodiment of the present application, when receiving the inter-device synchronization warning information, the processing logic of the controller to perform the corresponding action is shown in Table 5 below:

[0098] Table 5 Controller action execution processing logic 2

[0099]

[0100] Specifically, the actions can be summarized as follows:

[0101] ① Network management level alarm: Alarm to the network management platform. Its main function is to synchronize device information with the network management platform and reflect it to the user side.

[0102] ② Equipment-level alarm: Alarms between devices, mainly used for synchronizing the working status of the main and backup lines between the upload and download devices of automatic switching.

[0103] ③Switch: The specific action of switching the channel from the main channel to the backup channel, or from the backup channel to the main channel.

[0104] The action logic can be summarized as:

[0105] ① If the current work is in the main route / backup route, and the current channel alarm is the main route / backup route, the service needs to be switched to the backup route / main route.

[0106] ② If the device is an upload or download device and needs to switch itself, it will execute the switching action and alert the peer device;

[0107] ③ If not, the device that receives the channel alarm needs to send an alarm request to the upload and download devices of the service to switch.

[0108] All final states after the action is completed need to be reported to the network management platform.

[0109] It should be noted that the present invention continuously monitors key parameters such as the data packet loss rate of the channel link and the LOS signal of the optical network through the line side card, and can promptly detect and respond to the abnormality and recovery status of the channel link. When an abnormal increase in the data packet loss rate is detected or other abnormal information is received, the line side card will quickly send a warning message containing detailed link location information to the main controller. The main controller will query the local service table and the relay service table based on this information, and perform corresponding actions, such as sending a warning message or performing a local single-end switching action. This mechanism not only ensures the continuity and stability of the business, but also realizes rapid notification through a short message length, thereby improving the system response speed. At the same time, the present invention also takes into account the situation of abnormal recovery of the channel link, and provides a corresponding monitoring and notification mechanism, thereby comprehensively ensuring the reliability and stability of the communication network.

[0110] In the embodiment of the present application, the above step S104 further includes sub-steps B1-B4:

[0111] In B1: If the local single-end switching action is successfully executed, the main controller switches the current channel of the local service table to the original standby channel;

[0112] In B2: If the local single-end switching action fails, the current channel of the local service table will not be switched;

[0113] In B3: If a backup line alarm is received, single-end switching is not performed, and an alarm is sent to the upper platform. The main controller changes the available channels in the local service table to only the primary line available;

[0114] In B4: If a backup line recovery alarm is received, single-end switching is not performed, and an alarm is notified to the upper platform. The main controller changes the available channels in the local service table to be available for both the primary and backup lines.

[0115] In the embodiment of the present application, the specific feedback actions and modification actions of the main controller are shown in Table 6:

[0116] Table 6 Controller modification actions

[0117]

[0118] The general logic of Table 6 can be summarized as follows:

[0119] ① If the automatic switching process is completed: modify the table's main backup road flag and main backup road available flag;

[0120] ② If the automatic switching action fails: the automatic protection has failed at this time, and an emergency alarm needs to be reported for human intervention;

[0121] ③ If it is channel recovery information, no switching is required: the table information needs to be updated to maintain the stability of the system status.

[0122] After an automatic switching process is completed, the status needs to be checked to confirm that the system is stable. The main action is for the switching-related equipment to report its own status to the network management platform. After the network management collects all alarms of related services, it modifies the status record of the network management platform and checks whether there are any errors in the logic.

[0123] After completing all the above steps, the 1+1 protection action of a service channel is completed, and the system is restored to a stable state. When the next channel abnormality occurs, just follow the steps of the solution again.

[0124] It should be noted that the present invention mainly considers that the line codes of some services cannot be or are not easy to edit, and replaces the coding operation of the line code in the SDH equipment, and realizes the method of realizing 1+1 protection for the channels in a communication system through the establishment of tables, query tables, and maintenance tables of the upper-layer software. To realize this solution through software, it is not only necessary to have a complete system design to ensure stable operation of the system under automatic conditions, but also to ensure that the automatic switching time is not greater than the common 50ms standard in the industry under multi-level search. Therefore, there are certain requirements for table design, table query method, and system process robustness. Because this method does not involve line coding, it realizes the isolation of channel services and is easy to expand, and can realize 1+1 protection in various business scenarios.

[0125] The above is a schematic scheme of a method for implementing channel protection based on software logic in this embodiment. It should be noted that the technical scheme of the system for implementing channel protection based on software logic and the technical scheme of the method for implementing channel protection based on software logic described above belong to the same concept. For details not described in detail in the technical scheme of the system for implementing channel protection based on software logic in this embodiment, please refer to the description of the technical scheme of the method for implementing channel protection based on software logic described above.

[0126] In this embodiment, the system for implementing channel protection based on software logic includes:

[0127] A data acquisition module, used to acquire a local service table and a relay service table of a device using a main controller;

[0128] The action execution module is used to monitor the abnormal information of the channel link. According to the abnormal information, the main controller queries the local service table and the relay service table and executes the corresponding action;

[0129] The revision module is used for the main controller to revise the local business table and the relay business table according to the action execution result after the controller executes the corresponding action.

[0130] This embodiment further provides a computing device, which is applicable to the case where channel protection is implemented based on software logic, including:

[0131] A memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the method for implementing channel protection based on software logic as proposed in the above embodiment.

[0132] This embodiment further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for implementing channel protection based on software logic as proposed in the above embodiment is implemented.

[0133] The storage medium proposed in this embodiment and the method for implementing channel protection based on software logic proposed in the above embodiment belong to the same inventive concept. The technical details not described in detail in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0134] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ReadOnly, Memory, ROM), random access memory (RandomAccess Memory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.

[0135] Example 2

[0136] Reference Figure 2-3 Table 7-12 is an embodiment of the present invention, which provides a method for implementing channel protection based on software logic. In order to verify its beneficial effects, comparison results of two solutions are provided.

[0137] Combination Figure 2 and Figure 3 , consider a simple three-node ring network, and give a specific explanation of this method. It should be emphasized that this implementation method is not limited to this network topology, and the method is not sensitive to the network topology. The corresponding 1+1 protection function can be achieved for a variety of complex network topologies.

[0138] Topology diagram Figure 3As shown in the figure, three transmission devices form a simple ring topology, in which there are three services. Service 1 is uploaded from the local end of device 1 and downloaded from the local end of device 3. The primary path selects device 1 to device 3 based on the principle of proximity, and the backup path is device 1→device 2→device 3. Service 2 is uploaded from the local end of device 2 and sent to other service areas. Service 3 is an external transit service, simulating a transit service incoming from an external area.

[0139] The main controller obtains the local service table and the relay service table; Figure 3 In this example, device 2 has two tables, while device 1 only needs one table to meet the needs of this simple topology.

[0140] Taking device 2 as an example, the local service table and relay service table are shown in Table 7 and Table 8 below:

[0141] Table 7 Device 2 local service table

[0142]

[0143]

[0144] Table 8 Relay service table

[0145]

[0146] After the controller collects the local service table and relay service table of each device, it monitors and obtains the channel link abnormality or abnormal recovery information;

[0147] like Figure 3 In device 3, if optical module No. 1 of board No. 26 detects that the sprocket is damaged, it sends an alarm message to the main controller of the device. The format of the alarm message is shown in Table 9:

[0148] Table 9 Device 3 Alarm Message 2

[0149]

[0150] The main controller takes corresponding actions based on the abnormal information by querying the two tables in S1;

[0151] like Figure 3 The board of device 1 is damaged, and an alarm is sent to the main controller of device 1. Because it is a two-way service, a warning message must be sent to device 3 while performing a single-end switch locally, so that the opposite device can also perform a single-end switch. Only after both are completed can the link be guaranteed to be unobstructed. The format of the warning message to the opposite device is shown in Table 10:

[0152] Table 10 Device 1 Alarm Message

[0153] Number of bytes 2 2 2 1 1 2 Functional Description Header Total length of message Business Number Alarm Type Alarm channel End of the report

[0154] For example Figure 2 In device 3, if optical module No. 1 of board No. 25 detects that the link is damaged and has completed the logical judgment of the local device, it is also necessary to send an alarm message to the main controller at the other end of the service link to inform that the link is damaged. The alarm message is shown in Table 11:

[0155] Table 11 Device 3 Alarm Message 2

[0156]

[0157] exist Figure 3 In the case of a simple topology, the performance of this solution is tested by a network analyzer and an oscilloscope. The test results are shown in Table 12:

[0158] Table 12 Test results

[0159] Business Name Failure mode Test Equipment Test items Test Results Business 1 Manual fiber pulling Network Analyzer Recovery time 12.051ms Business 1 Manual fiber pulling Oscilloscope Recovery time 11.424ms

[0160] As shown in Table 12, the network analyzer is terminated at the service terminal. The failure mode is to manually pull out an optical fiber to simulate the failure scenario in normal service transmission. The recovery time of the network analyzer, that is, the time it takes to restore the service after the interruption, shows the switching time. At the same time, the IO port on the device is pulled up and down, and the oscilloscope is used to test and verify the accuracy of the data. The data shows that this solution can fully meet the common standard of automatic switching time not exceeding 50ms.

[0161] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A method for implementing channel protection based on software logic, characterized in that: include: Using the main controller to obtain the local service table and relay service table of the device; Monitoring abnormal information of the channel link, according to which the main controller queries the local service table and the relay service table and performs corresponding actions; After the controller executes the corresponding action, the main controller revises the local service table and the relay service table according to the action execution result.

2. The method for implementing channel protection based on software logic according to claim 1, characterized in that: The abnormal information of the monitoring channel link includes: The abnormal information includes channel link abnormality or abnormal recovery information; Use the line side card to monitor the channel link. If any abnormal information is found, a warning message will be sent to the main controller.

3. The method for implementing channel protection based on software logic according to claim 1 or 2, characterized in that: Exception information includes: The sources of abnormal information include warning information sent by local device boards to the main controller and warning information synchronized between devices; The warning information sent by the local equipment board to the main controller includes relay service alarm, local service alarm, relay service recovery and local service recovery.

4. The method for implementing channel protection based on software logic according to claim 3, characterized in that: The warning information sent by the local device board to the main controller includes: If the warning message is a relay service alarm, the main controller sends an alarm message to the double-end termination device; If the warning information is a relay service alarm, it is determined whether the alarm channel is the same as the current working channel and whether the abnormal channel is the working channel. Based on the determination result, the main controller determines whether to execute the local single-end switching action; If the warning message is that the relay service is restored, the main controller sends a restoration message to the dual-end termination device; If the warning message is local service recovery, it is determined whether the alarm channel is the same as the current working channel. Based on the determination result, the main controller determines whether to execute the local single-ended switching action.

5. The method for implementing channel protection based on software logic according to claim 4, characterized in that: Warning messages for synchronization between devices include: If the source of the abnormal information is the synchronous warning information between devices, it is determined whether the alarm channel and the current working channel are the same. Based on the determination result, the main controller determines whether to execute the local single-ended switching action.

6. The method for implementing channel protection based on software logic according to claim 5, characterized in that: According to the result of the action execution, the main controller revises the local service table and the relay service table to include: If the local single-end switching action is executed successfully, the main controller switches the current channel of the local service table to the original standby channel; If the local single-end switching action fails, the current channel of the local service table will not be switched; If a backup line alarm is received, single-end switching will not be performed, and an alarm will be sent to the upper platform. The main controller will change the available channels in the local service table to only the main line available; If a backup line recovery alarm is received, single-end switching is not performed and an alarm is reported to the upper platform. The main controller changes the available channels in the local service table to make both the primary and backup lines available.

7. The method for implementing channel protection based on software logic according to claim 5, characterized in that: The local service table and relay service table include: If a service is uploaded or downloaded on a device, the device is a node device for 1+1 protection services, and the corresponding service is recorded in the local service table of the device; The contents that need to be recorded in the local service table include service number, current channel, available channel, local upload end, dual-transmit end 1, dual-transmit end 2 and peer device address; If a service is only transferred on a certain device, the device is not a node device for 1+1 protection services, but only a transfer device. The corresponding service is recorded in the relay service table of the device. The relay service table includes service number, relay end 1, relay end 2, end 1 terminal device address and end 2 terminal device address.

8. A system for implementing channel protection based on software logic, characterized in that: include, A data acquisition module, used to acquire a local service table and a relay service table of a device using a main controller; An action execution module, used to monitor abnormal information of the channel link. According to the abnormal information, the main controller queries the local service table and the relay service table and executes corresponding actions; The revision module is used for the main controller to revise the local service table and the relay service table according to the action execution result after the controller executes the corresponding action.

9. An electronic device, comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for implementing channel protection based on software logic as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the method for implementing channel protection based on software logic as claimed in any one of claims 1 to 7.