WO2016119598A1 - Alarm processing method and device for optical transport network (otn) device - Google Patents

Alarm processing method and device for optical transport network (otn) device Download PDF

Info

Publication number
WO2016119598A1
WO2016119598A1 PCT/CN2016/070826 CN2016070826W WO2016119598A1 WO 2016119598 A1 WO2016119598 A1 WO 2016119598A1 CN 2016070826 W CN2016070826 W CN 2016070826W WO 2016119598 A1 WO2016119598 A1 WO 2016119598A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm
message
port
otn device
type
Prior art date
Application number
PCT/CN2016/070826
Other languages
French (fr)
Chinese (zh)
Inventor
车克文
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016119598A1 publication Critical patent/WO2016119598A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for processing an OTN device alarm of an optical transport network.
  • SDN Software Defined Networking
  • OTN Optical Transport Network
  • the main purpose of the embodiments of the present invention is to provide a method and a device for processing an OTN device alarm of an optical transport network, so as to at least solve the problem that the OTN device does not support the alarm mechanism in the related art.
  • a method for processing an OTN device alarm of an optical transport network including: an optical transport network OTN device receiving an alert operation message, wherein the type of the alert operation message includes: a first alert monitor a message, a first alarm status query message, the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring status of the OTN device, where the first alarm status query message is used to instruct the OTN device to query the OTN
  • the alarm state of the device the OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message.
  • the alarm operation message is an OFPT_FLOW_MOD message in the OpenFlow protocol, where a type for indicating an alarm operation and a structure type corresponding to the type are defined in an extension type of the OFPT_FLOW_MOD message, and the structure type Different values are used to indicate different types.
  • the alarm operation message further includes the designated port information of the OTN device, and the specified label information
  • the OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message, including:
  • the OTN device queries and specifies the design according to the specified port information and the specified label information.
  • the OTN device determines whether the alarm monitoring status of the local port matches the alarm monitoring status of the first alarm monitoring message, where the status of the alarm monitoring includes: The alarm monitoring is turned off and the alarm monitoring is enabled.
  • the OTN device configures the alarm monitoring status of the local port according to the judgment result.
  • the OTN device configures the alarm monitoring state of the local port according to the determination result, and when the determining result is no, the OTN device configures the local port according to the state of the first alarm monitoring message.
  • the alarm monitoring state when the determining structure is YES, the OTN device prohibits the operation of configuring the alarm monitoring state of the local port.
  • the performing, by the OTN device, the alarming operation corresponding to the type according to the type of the alarm operation message includes: the OTN device querying the designated port according to the specified port information and the specified label information.
  • the information is identified in the extended type of the OFPT_PORT_STATUS message, and the OFPT_PORT_STATUS message is reported.
  • the method further includes: when an alarm is generated on a designated port of the OTN device, the OTN device Determining whether the alarm monitoring status of the designated port is the alarm monitoring is enabled; when the determination result is yes, the OTN device fills in the port information of the designated port in the extended type of the OFPT_PORT_STATUS message, and reports the OFPT_PORT_STATUS message. When the judgment result is no, the OTN device prohibits the operation of reporting the alarm state.
  • a processing apparatus for an OTN device alarm is provided on the OTN device side, and includes: a receiving module, configured to receive an alarm operation message, where the type of the alarm operation message And including: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring status of the OTN device, where the first alarm status query message is used to indicate the
  • the OTN device queries the alarm state of the OTN device, and the execution module is configured to perform an alarm operation corresponding to the type according to the type of the alarm operation message.
  • the alarm operation message is an OFPT_FLOW_MOD message in the OpenFlow protocol, where a type for indicating an alarm operation and a structure type corresponding to the type are defined in an extension type of the OFPT_FLOW_MOD message, and the structure type Different values are used to indicate different types.
  • the alarm operation message further includes the designated port information of the OTN device, and the specified label information
  • the execution module further includes: a first query unit, configured to set the information according to the specified port and the specified label The information is queried to the local port corresponding to the specified port information and the specified tag information; And determining, by the device, whether the alarm monitoring status of the local port matches the alarm monitoring status of the first alarm monitoring message, where the status of the alarm monitoring includes: alarm monitoring is off, and alarm monitoring is enabled; The alarm monitoring status of the local port is configured according to the judgment result.
  • the configuration unit further includes: a first configuration subunit, configured to configure an alarm monitoring state of the local port according to a state of the first alarm monitoring message when the determining result is no;
  • the configuration subunit is configured to prohibit the operation of configuring the alarm monitoring state of the local port when the determining structure is YES.
  • the executing module includes: a second querying unit, configured to query, according to the specified port information and the specified tag information, the local port corresponding to the specified port information and the specified tag information;
  • the third query unit is configured to query an alarm state of the local port, where the alarm state includes: an alarm is generated, and the alarm disappears; and
  • the identifier unit is configured to identify the alarm state information in an extension type of the OFPT_PORT_STATUS message, And reporting the OFPT_PORT_STATUS message.
  • the device further includes: a determining module, configured to: when an alarm is generated on the designated port of the OTN device, determine whether the alarm monitoring state of the designated port is an alarm monitoring enabled; and the reporting module is set to determine the result. If yes, the port information of the designated port is filled in the extension type of the OFPT_PORT_STATUS message, and the OFPT_PORT_STATUS message is reported; the prohibition module is set to prevent the OTN device from performing the report alarm when the determination result is no. State of operation.
  • the alarm operation message includes: a first alarm monitoring message and a first alarm status query message, where the first alarm monitoring message is used to indicate the OTN.
  • the device configures an alarm monitoring state of the OTN device, where the first alarm state query message is used to instruct the OTN device to query the alarm state of the OTN device, and the manner of performing the alarm operation corresponding to the type according to the type of the alarm operation message is implemented in the OTN.
  • the alarm mechanism in the device solves the problem that the OTN device does not support the alarm mechanism in the related art.
  • FIG. 1 is a flowchart of a method for processing an OTN device alarm of an optical transport network according to an embodiment of the present invention
  • FIG. 2 is a structural block diagram 1 of a processing apparatus for an OTN device alarm of an optical transport network according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram 2 of a processing apparatus for an OTN device alarm of an optical transport network according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a controller sending an alarm operation message according to an alternative embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an alarm monitoring message according to an alternative embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an alarm status query message according to an alternative embodiment of the present invention.
  • FIG. 7 is a flowchart of an OTN device network element receiving an alarm operation message for distribution according to an optional embodiment of the present invention
  • FIG. 8 is a flowchart of a method for configuring network element alarm monitoring of an OTN device according to an alternative embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for processing an OTN device network element receiving an alarm query message according to an optional implementation of the present invention.
  • FIG. 10 is a flowchart of a method for actively reporting an alarm state of a network element of an OTN device according to an alternative embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for processing an OTN device alarm according to an embodiment of the present invention. As shown in FIG. :
  • Step S102 The optical transport network OTN device receives an alarm operation message.
  • the type of the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring state of the OTN device, where the first alarm status query message is used. Instructing the OTN device to query the alarm status of the OTN device;
  • Step S104 The OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message.
  • the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to indicate that the OTN device configures the OTN.
  • the alarm monitoring state of the device, the first alarm state query message is used to instruct the OTN device to query the alarm state of the OTN device, and the manner of performing the alarm operation corresponding to the type according to the type of the alarm operation message is implemented in the OTN device.
  • the alarm mechanism solves the problem that the OTN device does not support the alarm mechanism in the related art.
  • the alarm operation message is an OFPT_FLOW_MOD message in the OpenFlow protocol, where an extension operation type of the OFPT_FLOW_MOD message is used to indicate an alarm operation.
  • Type and with that class The type of the structure corresponding to the type, the different values of the structure type are used to indicate different types of alarm operations.
  • the alarm operation message may be an extension of the OFPT_FLOW_MOD message, which is embodied in the type extension supported by the oxm_fields in the Match entries part of the message, such as the newly added type OFPXMT_EXP_OTN_ALARM_MONITOR, which is a value. 100. It is used to indicate an alarm operation, and defines a corresponding structure for identifying an alarm operation type, including alarm monitoring on, alarm monitoring off, and alarm status query.
  • OFPXMT_EXP_ALARM_MONITOR_CANCEL is equal to 0, indicating that the alarm monitoring is off;
  • OFPXMT_EXP_ALARM_MONITOR_SET is equal to 1, indicating that the alarm monitoring is enabled;
  • OFPXMT_EXP_ALARM_MONITOR_QUERY is equal to 2, indicating the alarm status query.
  • the alarm operation message may further include the specified port information of the OTN device, and the specified label information. Based on this, in the step S104, the OTN device according to the alarm operation message
  • the manner in which the type performs the alarm operation corresponding to the type may be implemented by the following steps but not limited to the following steps:
  • Step S11 The OTN device queries the local port corresponding to the specified port information and the specified tag information according to the specified port information and the specified tag information.
  • Step S12 The OTN device determines whether the alarm monitoring state of the local port matches the alarm monitoring state corresponding to the first alarm monitoring message, wherein the alarm monitoring state includes: alarm monitoring is turned off, and alarm monitoring is turned on;
  • Step S13 The OTN configures the alarm monitoring status of the local port according to the determination result.
  • the OTN device configures the alarm monitoring state of the local port according to the state of the first alarm monitoring message.
  • the OTN device prohibits the operation of configuring the alarm monitoring state of the local port.
  • step S104 in this embodiment the manner in which the OTN device performs the alarm operation corresponding to the type according to the type of the alarm operation message may be implemented by:
  • Step S21 The OTN device queries the local port corresponding to the specified port information and the specified tag information according to the specified port information and the specified tag information.
  • Step S22 The OTN device queries the alarm status of the local port, where the alarm status includes: an alarm is generated, and the alarm disappears;
  • Step S23 The OTN device identifies the alarm status information in the extended type of the OFPT_PORT_STATUS message, and reports the OFPT_PORT_STATUS message.
  • the OFPT_PORT_STATUS message is extended, and the type supported by the reason is expanded in the message, for example, the new OFPRR_ALARM_DISAPPEAR is added, and the value is 3, Indicates that the alarm is cleared.
  • the new OFPR_ALARM_OCCUR value is 4, and the alarm is generated, so that the OFPT_PORT_STATUS message can identify the alarm status of the OTN device.
  • the method in this embodiment may further include how to implement the alarm status reporting, and the implementation manner may be implemented by the following steps:
  • Step S31 When an alarm is generated on the designated port of the OTN device, the OTN device determines whether the alarm monitoring status of the designated port is alarm monitoring enabled.
  • Step S32 When the judgment result is yes, the OTN device fills in the port information of the designated port in the extended type of the OFPT_PORT_STATUS message, and reports the OFPT_PORT_STATUS message;
  • Step S33 When the determination result is no, the OTN device prohibits the operation of reporting the alarm state.
  • a processing device for the OTN device alarm of the optical transport network is also provided.
  • the device is used to implement the foregoing embodiments and optional implementations, and details are not described herein.
  • the term “module” "unit” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a block diagram of a processing device for an OTN device alarm of an optical transport network according to an embodiment of the present invention.
  • the device is located on the OTN device side.
  • the device includes: a receiving module 22 configured to receive an alarm operation message.
  • the type of the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring state of the OTN device, where the first alarm status query message is used.
  • the OTN device is instructed to query the alarm state of the OTN device.
  • the execution module 24 is coupled to the receiving module 22 and configured to perform an alarm operation corresponding to the type according to the type of the alarm operation message.
  • the alarm operation message is an OFPT_FLOW_MOD message in the OpenFlow protocol, where a type for indicating an alarm operation and a structure type corresponding to the type are defined in an extension type of the OFPT_FLOW_MOD message, and different values of the structure type are used for Indicates different types of alarm operations.
  • the alarm operation message further carries the designated port information of the OTN device, and the specified label information
  • the execution module further includes: a first query unit, configured to query the specified port information and the specified label according to the specified port information and the specified label information. a local port corresponding to the information; the determining unit is coupled to the first query unit, and configured to determine whether the alarm monitoring state of the local port matches the state of the first alarm monitoring message,
  • the state of the alarm monitoring includes: the alarm monitoring is turned off, and the alarm monitoring is turned on; the configuration unit is coupled with the determining unit, and is configured to configure the alarm monitoring state of the local port according to the judgment result.
  • the configuration unit further includes: a first configuration subunit, configured to configure an alarm monitoring state of the local port according to a state of the first alarm monitoring message when the determination result is negative; the second configuration subunit, the first configuration sub The unit coupling connection is set to prohibit the operation of configuring the alarm monitoring state of the local port when the determination structure is YES.
  • the executing module 24 includes: a second querying unit, configured to query a local port corresponding to the specified port information and the specified tag information according to the specified port information and the specified tag information; and the third query unit is coupled to the second query unit
  • the connection is set to query the alarm status of the local port, where the alarm status includes: an alarm is generated, and the alarm disappears;
  • the identification unit is coupled to the third query unit, and is configured to identify the alarm status information in an extension type of the OFPT_PORT_STATUS message, and Report the OFPT_PORT_STATUS message.
  • the device may further include: a determining module 32 coupled to the executing module 24 and configured to be in the OTN device.
  • the reporting module 34 is coupled with the determining module 32, and is set to fill in the designated port in the extended type of the OFPT_PORT_STATUS message when the determination result is yes.
  • the port information is reported to the OFPT_PORT_STATUS message; the prohibition module 36 is coupled to the reporting module 34, and is set to prevent the OTN device from performing the operation of reporting the alarm state when the determination result is no.
  • FIG. 4 is a flowchart of a controller sending an alarm operation message according to an alternative embodiment of the present invention, as shown in FIG. The steps can include:
  • Step S402 The controller sends an alarm operation message, where the alarm operation message includes: an alarm monitoring message and an alarm status query message;
  • Step S404 The OTN device network element receives an alarm operation message for distribution.
  • Step S406 The OTN device network element alarm monitoring configuration
  • Step S408 The OTN device network element receives the alarm query message processing; the OTN device network element alarm state is actively reported.
  • the OTN-based SDN alarm mechanism is implemented by extending the OFPT_FLOW_MOD message and the OFPT_PORT_STATUS message in the OpenFlow protocol, and the alarm mechanism includes: an alarm monitoring setting, Alarm status query and alarm initiative The report, wherein the alarm monitoring configuration includes: alarm monitoring is enabled, and alarm monitoring is turned off.
  • the extension of the OFPT_FLOW_MOD message is embodied in the extension of the type supported by the oxm_fields in the Match entries part of the message, such as the new type OFPXMT_EXP_OTN_ALARM_MONITOR, and the value 100 is used to indicate the alarm operation.
  • the corresponding structure is defined.
  • the identifier operation type includes: alarm monitoring on, alarm monitoring off, and alarm status query. Therefore, the OTN-based SDN performs the alarm operation on the OTN device node.
  • the extension of the OFPT_PORT_STATUS message is extended to the type supported by the reason in the message. For example, the new OFPRR_ALARM_DISAPPEAR is added, and the value is 3, indicating that the alarm is lost. The new OFPR_ALARM_OCCUR value is 4, and the alarm is generated, so that the OFPT_PORT_STATUS message can be identified.
  • the alarm status of the device enables the OTN device node to report the alarm status of the device.
  • FIG. 5 is a detailed explanation of the step S402 of the optional embodiment
  • FIG. 5 is a schematic structural diagram of an alarm monitoring message according to an optional embodiment of the present invention
  • FIG. 6 is an alarm according to an alternative embodiment of the present invention.
  • a schematic diagram of the status query message structure which can be implemented by the following steps:
  • Step S41 After the Controller triggers the alarm mechanism, first construct an OFPT_FLOW_MOD message according to the OpenFlow protocol.
  • the identifier type is OFPT_FLOW_MOD.
  • Step S42 Fill in the header part of the message. Mainly fill in the command, which is OFPFC_MODIFY. This value is defined in the current protocol.
  • Step S43 Identify the Match entries as the Match of the OpenFlow extension.
  • the method is to assign the type in the Match entries to OFPMT_OXM (which takes a value of 1).
  • Step S44 Fill in the alarm operation type part of the oxm_fields of the Match entries.
  • the types defined in oxm_field take values from 2 to 5, representing the ODU and OCH signal types and signal IDs, respectively.
  • the type defined in the oxm_field may be extended, and the OFPXMT_EXP_OTN_ALARM_MONITOR is defined, and the value is 100, that is, the oxm_field is used to indicate the alarm operation, and the corresponding structure is defined, including the oxm_header, and the value OFPXMC_EXPERIMENTER indicates the OXM extension.
  • this patent defines the field value 0xFF001000, indicating alarm monitoring; oper_type, indicating the type of alarm monitoring operation.
  • the defined alarm operation type macros respectively indicate that the alarm monitoring is turned off, the alarm monitoring is turned on, and the alarm is checked. For example, if the OFPXMT_EXP_ALARM_MONITOR_CANCEL is equal to 0, the alarm monitoring is turned off; the OFXXMT_EXP_ALARM_MONITOR_SET is equal to 1, indicating that the alarm monitoring is enabled; and the OFXXMT_EXP_ALARM_MONITOR_QUERY is equal to 2, indicating the alarm status query.
  • Step 45 Fill in the alarm hierarchy in oxm_fields.
  • the alarm level is required.
  • the OXM type is added to the optional embodiment to indicate the alarm level, that is, the OFPXMT_EXP_OTN_TCM is defined, the value is 101, the OTN alarm level is identified, and the corresponding structure is defined, including: Oxm_header, value OFPXMC_EXPERIMENTER, indicates OXM extension; experimenter, this patent defines the field value 0xFF001001, indicating OTN alarm level; otn_alarm_layer, OTN device alarm monitoring level, TCM1 ⁇ TCM6; pad, indicating reserved field.
  • the selection of the alarm level is selected according to the characteristics of the service in the SDN, and the alarm hierarchy may be multiple.
  • Step S46 Fill in the port, label, and signal type parts in oxm_fields. This section can be filled in according to the current OpenFlow standard.
  • Step S47 Send the OFPT_FLOW_MOD message to the OTN device node.
  • FIG. 7 is a flowchart of the OTN device network element receiving an alarm operation message for distribution according to an alternative embodiment of the present invention. As shown in FIG. 7, the steps of the method include:
  • Step S702 The OTN device network element receives an alarm operation message.
  • Step S704 Obtain an alarm operation type, port information, label information, and an alarm level according to the oxm_field part;
  • Step S706 When the alarm operation type is alarm monitoring enabled, or when the alarm monitoring is turned off, the process enters the OTN device network element alarm monitoring configuration process.
  • Step S708 When the alarm operation type is an alarm query, the process proceeds to a processing flow in which the OTN device network element receives the alarm query message.
  • FIG. 8 is a flowchart of a method for configuring an OTN device network element alarm monitoring according to an alternative embodiment of the present invention. As shown in FIG. 8, the method includes the following steps:
  • Step S802 The OTN device network element retrieves the local port according to the obtained port information and tag information.
  • Step S804 Obtain an alarm state of the port, and determine whether to match the alarm level in the message; If the result of the determination is yes, then step S806 is performed, and if the result of the determination is no, step S808 is performed;
  • Step S806 If the alarm state of the port matches the alarm operation specified by the message at the alarm level specified in the message, the message is not processed;
  • the message is not processed.
  • Step S808 If the alarm state of the port does not match the alarm operation specified by the message at the alarm level specified in the message, the port is configured to perform alarm monitoring according to the message;
  • the port is set to alarm monitoring on the corresponding alarm level.
  • FIG. 9 is a flowchart of a method for processing an OTN device network element to receive an alarm query message according to an optional implementation of the present invention. As shown in FIG. 9, the steps of the method include:
  • Step S902 The OTN device network element retrieves the local port according to the obtained port information and label information.
  • Step S904 The OTN device retrieves the port on the local OTN device according to the obtained port information and label information.
  • Step S906 The OTN device obtains an alarm state of the OTN device.
  • Step S908 The OTN device constructs an OFPT_PORT_STATUS message
  • the alarm status of the port is identified in the reason of the message: the alarm is generated, or the alarm disappears.
  • the value currently supported by the reason is OFPRR_ADD.
  • the value is 0, indicating that the port is added.
  • the OFPRR_DELETE value is 1, indicating that the port is deleted.
  • the OFPRR_MODIFY value is 2, indicating that the port attribute is modified.
  • reason is extended. Added the OFPPR_ALARM_DISAPPEAR, which is 3, indicating that the alarm is cleared.
  • the new OFPR_ALARM_OCCUR value is 4, indicating that an alarm is generated.
  • Step S910 Fill in the port information in the ofp_experimenter_port of the message
  • the filling method is based on relevant protocol standards
  • Step S912 Send the message to the Controller.
  • FIG. 10 is a flowchart of a method for actively reporting an alarm state of a network element of an OTN device according to an alternative embodiment of the present invention. As shown in FIG. 10, the method steps of the optional embodiment may further include:
  • Step S1002 an alarm is generated on the OTN device network element device.
  • Step S1004 determining whether the alarm monitoring of the port of the OTN device is in an open state; when the determination result is yes, executing step S1006; and if the determination result is no, executing step S1008;
  • Step S1006 Construct an alarm report message
  • the OFPT_PORT_STATUS message is constructed to identify the alarm state of the port in the reason of the message: OFPRR_ALARM_OCCUR, and the port information is filled in the ofp_experimenter_port of the message.
  • Step S1008 The alarm operation is not processed
  • Step S1010 Send an alarm report message to the Controller.
  • the optional embodiment of the present invention enables the protocol to support the alarm mechanism of the OTN device, thereby implementing the SDN service recovery switching function based on the OTN device, thereby improving service survivability.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the OTN device is used.
  • the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring state of the OTN device, where The first alarm status query message is used to instruct the OTN device to query the alarm state of the OTN device, and perform the alarm operation corresponding to the type according to the type of the alarm operation message, thereby implementing the alarm mechanism in the OTN device, and solving the related technology.
  • the OTN device does not support the alarm mechanism.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides an alarm processing method and device for an optical transport network (OTN) device. The method comprises: an optical transport network (OTN) device receives an alarm operation message, a type of the alarm operation message comprising: a first alarm monitoring message and a first alarm state query message, the first alarm monitoring message being used to instruct the OTN device to configure an alarm monitoring state of the OTN device, and the first alarm state query message being used to instruct the OTN device to query for an alarm state of the OTN device; and the OTN device performs, according to the type of the alarm operation message, an alarm operation corresponding to the type. By means of the present invention, the problem in related technologies that an OTN device does not support an alarm mechanism is solved, and an alarm mechanism in the OTN device is implemented.

Description

光传送网OTN设备告警的处理方法及装置Optical transmission network OTN equipment alarm processing method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种光传送网OTN设备告警的处理方法及装置。The present invention relates to the field of communications, and in particular to a method and apparatus for processing an OTN device alarm of an optical transport network.
背景技术Background technique
随着软件定义网络(Software Defined Networking简称为SDN)技术在运营商和互联网用户中逐步应用,SDN技术对光传送网(Optical Transport Network简称为OTN)设备中的控制也成为迫切的需求。目前,基于OTN的SDN技术验证与测试,各厂商正与运营商在合作中稳步推进。OpenFlow协议是SDN中最为核心的南向接口协议,但该协议目前不支持OTN设备的告警机制,导致SDN的业务不能进行恢复倒换,进而导致SDN中业务的生存性大幅度降低,无法满足客户对业务的维护需求。As the Software Defined Networking (SDN) technology is gradually applied to operators and Internet users, the control of SDN technology in Optical Transport Network (OTN) devices has become an urgent need. At present, based on OTN-based SDN technology verification and testing, various vendors are steadily advancing with operators. The OpenFlow protocol is the most important southbound interface protocol in SDN. However, the protocol does not support the alarm mechanism of the OTN device. As a result, the SDN service cannot be restored and the service survivability of the SDN is greatly reduced. Maintenance needs of the business.
针对相关技术中OTN设备不支持告警机制的问题,目前尚未提出有效的解决方案。In view of the problem that the OTN device does not support the alarm mechanism in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例的主要目的在于提供一种光传送网OTN设备告警的处理方法及装置,以至少解决相关技术中OTN设备不支持告警机制的问题。The main purpose of the embodiments of the present invention is to provide a method and a device for processing an OTN device alarm of an optical transport network, so as to at least solve the problem that the OTN device does not support the alarm mechanism in the related art.
根据本发明实施例的一个方面,提供了一种光传送网OTN设备告警的处理方法,包括:光传送网OTN设备接收告警操作消息,其中,所述告警操作消息的类型包括:第一告警监视消息、第一告警状态查询消息,该第一告警监视消息用于指示所述OTN设备配置所述OTN设备的告警监视状态,该第一告警状态查询消息用于指示所述OTN设备查询所述OTN设备的告警状态;所述OTN设备依据所述告警操作消息的类型执行与所述类型对应的告警操作。According to an aspect of the present invention, a method for processing an OTN device alarm of an optical transport network is provided, including: an optical transport network OTN device receiving an alert operation message, wherein the type of the alert operation message includes: a first alert monitor a message, a first alarm status query message, the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring status of the OTN device, where the first alarm status query message is used to instruct the OTN device to query the OTN The alarm state of the device; the OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message.
可选地,所述告警操作消息为OpenFlow协议中的OFPT_FLOW_MOD消息,其中,在所述OFPT_FLOW_MOD消息的扩展类型中定义有用于指示告警操作的类型,以及与所述类型对应的结构类型,该结构类型的不同取值用于表示不同的所述类型。Optionally, the alarm operation message is an OFPT_FLOW_MOD message in the OpenFlow protocol, where a type for indicating an alarm operation and a structure type corresponding to the type are defined in an extension type of the OFPT_FLOW_MOD message, and the structure type Different values are used to indicate different types.
可选地,所述告警操作消息还携带有所述OTN设备的指定端口信息、指定标签信息,所述OTN设备依据所述告警操作消息的类型执行与所述类型对应的告警操作包括:所述OTN设备依据所述指定端口信息和所述指定标签信息查询到与所述指定 端口信息和所述指定标签信息对应的本地端口;所述OTN设备判断所述本地端口的告警监视状态与所述第一告警监视消息对应的告警监视状态是否匹配,其中,告警监视的状态包括:告警监视关闭、告警监视开启;所述OTN设备依据判断结果配置所述本地端口的告警监视状态。Optionally, the alarm operation message further includes the designated port information of the OTN device, and the specified label information, and the OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message, including: The OTN device queries and specifies the design according to the specified port information and the specified label information. The port information and the local port corresponding to the specified tag information; the OTN device determines whether the alarm monitoring status of the local port matches the alarm monitoring status of the first alarm monitoring message, where the status of the alarm monitoring includes: The alarm monitoring is turned off and the alarm monitoring is enabled. The OTN device configures the alarm monitoring status of the local port according to the judgment result.
可选地,所述OTN设备依据判断结果配置所述本地端口的告警监视状态包括:在所述判断结果为否时,所述OTN设备依据所述第一告警监视消息的状态配置所述本地端口的告警监视状态;在所述判断结构为是时,所述OTN设备则禁止执行配置所述本地端口的告警监视状态的操作。Optionally, the OTN device configures the alarm monitoring state of the local port according to the determination result, and when the determining result is no, the OTN device configures the local port according to the state of the first alarm monitoring message. The alarm monitoring state; when the determining structure is YES, the OTN device prohibits the operation of configuring the alarm monitoring state of the local port.
可选地,所述OTN设备依据所述告警操作消息的类型执行与所述类型对应的告警操作包括:所述OTN设备依据所述指定端口信息和所述指定标签信息查询到与所述指定端口信息和所述指定标签信息对应的所述本地端口;所述OTN设备查询所述本地端口的告警状态,其中,所述告警状态包括:告警产生、告警消失;所述OTN设备将所述告警状态信息标识在OFPT_PORT_STATUS消息的扩展类型中,并上报所述OFPT_PORT_STATUS消息。Optionally, the performing, by the OTN device, the alarming operation corresponding to the type according to the type of the alarm operation message includes: the OTN device querying the designated port according to the specified port information and the specified label information. The local port corresponding to the specified tag information; the OTN device queries an alarm state of the local port, where the alarm state includes: an alarm is generated, an alarm disappears; and the OTN device sets the alarm state The information is identified in the extended type of the OFPT_PORT_STATUS message, and the OFPT_PORT_STATUS message is reported.
可选地,在所述OTN设备依据所述告警操作消息的类型执行与所述类型对应的告警操作之后,所述方法还包括:在所述OTN设备的指定端口产生告警时,所述OTN设备判断所述指定端口的告警监视状态是否为告警监视开启;在判断结果为是时,所述OTN设备在所述OFPT_PORT_STATUS消息的扩展类型中填写所述指定端口的端口信息,并上报所述OFPT_PORT_STATUS消息;在判断结果为否时,所述OTN设备禁止执行上报告警状态的操作。Optionally, after the OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message, the method further includes: when an alarm is generated on a designated port of the OTN device, the OTN device Determining whether the alarm monitoring status of the designated port is the alarm monitoring is enabled; when the determination result is yes, the OTN device fills in the port information of the designated port in the extended type of the OFPT_PORT_STATUS message, and reports the OFPT_PORT_STATUS message. When the judgment result is no, the OTN device prohibits the operation of reporting the alarm state.
根据本发明实施例的另一个方面,提供了一种光传送网OTN设备告警的处理装置,位于OTN设备侧,包括:接收模块,设置为接收告警操作消息,其中,所述告警操作消息的类型包括:第一告警监视消息、第一告警状态查询消息,该第一告警监视消息用于指示所述OTN设备配置所述OTN设备的告警监视状态,该第一告警状态查询消息用于指示所述OTN设备查询所述OTN设备的告警状态;执行模块,设置为依据所述告警操作消息的类型执行与所述类型对应的告警操作。According to another aspect of the present invention, a processing apparatus for an OTN device alarm is provided on the OTN device side, and includes: a receiving module, configured to receive an alarm operation message, where the type of the alarm operation message And including: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring status of the OTN device, where the first alarm status query message is used to indicate the The OTN device queries the alarm state of the OTN device, and the execution module is configured to perform an alarm operation corresponding to the type according to the type of the alarm operation message.
可选地,所述告警操作消息为OpenFlow协议中的OFPT_FLOW_MOD消息,其中,在所述OFPT_FLOW_MOD消息的扩展类型中定义有用于指示告警操作的类型,以及与所述类型对应的结构类型,该结构类型的不同取值用于表示不同的所述类型。Optionally, the alarm operation message is an OFPT_FLOW_MOD message in the OpenFlow protocol, where a type for indicating an alarm operation and a structure type corresponding to the type are defined in an extension type of the OFPT_FLOW_MOD message, and the structure type Different values are used to indicate different types.
可选地,所述告警操作消息还携带有所述OTN设备的指定端口信息、指定标签信息,所述执行模块还包括:第一查询单元,设置为依据所述指定端口信息和所述指定标签信息查询到与所述指定端口信息和所述指定标签信息对应的本地端口;判断单 元,设置为判断所述本地端口的告警监视状态与所述第一告警监视消息对应的告警监视状态是否匹配,其中,告警监视的状态包括:告警监视关闭、告警监视开启;配置单元,设置为依据判断结果配置所述本地端口的告警监视状态。Optionally, the alarm operation message further includes the designated port information of the OTN device, and the specified label information, the execution module further includes: a first query unit, configured to set the information according to the specified port and the specified label The information is queried to the local port corresponding to the specified port information and the specified tag information; And determining, by the device, whether the alarm monitoring status of the local port matches the alarm monitoring status of the first alarm monitoring message, where the status of the alarm monitoring includes: alarm monitoring is off, and alarm monitoring is enabled; The alarm monitoring status of the local port is configured according to the judgment result.
可选地,所述配置单元还包括:第一配置子单元,设置为在所述判断结果为否时,依据所述第一告警监视消息的状态配置所述本地端口的告警监视状态;第二配置子单元,设置为在所述判断结构为是时,禁止执行配置所述本地端口的告警监视状态的操作。Optionally, the configuration unit further includes: a first configuration subunit, configured to configure an alarm monitoring state of the local port according to a state of the first alarm monitoring message when the determining result is no; The configuration subunit is configured to prohibit the operation of configuring the alarm monitoring state of the local port when the determining structure is YES.
可选地,所述执行模块包括:第二查询单元,设置为依据所述指定端口信息和所述指定标签信息查询到与所述指定端口信息和所述指定标签信息对应的所述本地端口;第三查询单元,设置为查询所述本地端口的告警状态,其中,所述告警状态包括:告警产生、告警消失;标识单元,设置为将所述告警状态信息标识在OFPT_PORT_STATUS消息的扩展类型中,并上报所述OFPT_PORT_STATUS消息。Optionally, the executing module includes: a second querying unit, configured to query, according to the specified port information and the specified tag information, the local port corresponding to the specified port information and the specified tag information; The third query unit is configured to query an alarm state of the local port, where the alarm state includes: an alarm is generated, and the alarm disappears; and the identifier unit is configured to identify the alarm state information in an extension type of the OFPT_PORT_STATUS message, And reporting the OFPT_PORT_STATUS message.
可选地,所述装置还包括:判断模块,设置为在所述OTN设备的指定端口产生告警时,判断所述指定端口的告警监视状态是否为告警监视开启;上报模块,设置为在判断结果为是时,在所述OFPT_PORT_STATUS消息的扩展类型中填写所述指定端口的端口信息,并上报所述OFPT_PORT_STATUS消息;禁止模块,设置为在判断结果为否时,所述OTN设备禁止执行上报告警状态的操作。Optionally, the device further includes: a determining module, configured to: when an alarm is generated on the designated port of the OTN device, determine whether the alarm monitoring state of the designated port is an alarm monitoring enabled; and the reporting module is set to determine the result. If yes, the port information of the designated port is filled in the extension type of the OFPT_PORT_STATUS message, and the OFPT_PORT_STATUS message is reported; the prohibition module is set to prevent the OTN device from performing the report alarm when the determination result is no. State of operation.
通过本发明实施例,采用OTN设备在接收到告警操作消息之后,其中,该告警操作消息包括:第一告警监视消息、第一告警状态查询消息,其中,该第一告警监视消息用于指示OTN设备配置OTN设备的告警监视状态,该第一告警状态查询消息用于指示OTN设备查询OTN设备的告警状态,依据该告警操作消息的类型执行与该类型对应的告警操作的方式,实现了在OTN设备中的告警机制,解决了相关技术中OTN设备不支持告警机制的问题。After the OTN device receives the alarm operation message, the alarm operation message includes: a first alarm monitoring message and a first alarm status query message, where the first alarm monitoring message is used to indicate the OTN. The device configures an alarm monitoring state of the OTN device, where the first alarm state query message is used to instruct the OTN device to query the alarm state of the OTN device, and the manner of performing the alarm operation corresponding to the type according to the type of the alarm operation message is implemented in the OTN. The alarm mechanism in the device solves the problem that the OTN device does not support the alarm mechanism in the related art.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的光传送网OTN设备告警的处理方法的流程图;1 is a flowchart of a method for processing an OTN device alarm of an optical transport network according to an embodiment of the present invention;
图2是根据本发明实施例的光传送网OTN设备告警的处理装置结构框图一;2 is a structural block diagram 1 of a processing apparatus for an OTN device alarm of an optical transport network according to an embodiment of the present invention;
图3是根据本发明实施例的光传送网OTN设备告警的处理装置结构框图二; 3 is a structural block diagram 2 of a processing apparatus for an OTN device alarm of an optical transport network according to an embodiment of the present invention;
图4是根据本发明可选实施例的Controller发送告警操作消息的流程图;4 is a flowchart of a controller sending an alarm operation message according to an alternative embodiment of the present invention;
图5是根据本发明可选实施例的告警监视消息结构示意图;FIG. 5 is a schematic structural diagram of an alarm monitoring message according to an alternative embodiment of the present invention; FIG.
图6是根据本发明可选实施例的告警状态查询消息结构示意图;6 is a schematic structural diagram of an alarm status query message according to an alternative embodiment of the present invention;
图7是根据本发明可选实施例的OTN设备网元收到告警操作消息进行分发的流程图;7 is a flowchart of an OTN device network element receiving an alarm operation message for distribution according to an optional embodiment of the present invention;
图8是根据本发明可选实施例的OTN设备网元告警监视配置方法流程图;FIG. 8 is a flowchart of a method for configuring network element alarm monitoring of an OTN device according to an alternative embodiment of the present invention; FIG.
图9是根据本发明可选实施的OTN设备网元收到告警查询消息的处理方法流程图;9 is a flowchart of a method for processing an OTN device network element receiving an alarm query message according to an optional implementation of the present invention;
图10是根据本发明可选实施例的OTN设备网元告警状态主动上报方法流程图。FIG. 10 is a flowchart of a method for actively reporting an alarm state of a network element of an OTN device according to an alternative embodiment of the present invention.
具体实施方式detailed description
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本发明。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments.
本实施例提供了一种光传送网OTN设备告警的处理方法,图1是根据本发明实施例的光传送网OTN设备告警的处理方法的流程图,如图1所示,该方法的步骤包括:The embodiment of the present invention provides a method for processing an OTN device alarm of an optical transport network. FIG. 1 is a flowchart of a method for processing an OTN device alarm according to an embodiment of the present invention. As shown in FIG. :
步骤S102:光传送网OTN设备接收告警操作消息;Step S102: The optical transport network OTN device receives an alarm operation message.
其中,告警操作消息的类型包括:第一告警监视消息、第一告警状态查询消息,该第一告警监视消息用于指示OTN设备配置OTN设备的告警监视状态,该第一告警状态查询消息用于指示OTN设备查询OTN设备的告警状态;The type of the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring state of the OTN device, where the first alarm status query message is used. Instructing the OTN device to query the alarm status of the OTN device;
步骤S104:OTN设备依据告警操作消息的类型执行与该类型对应的告警操作。Step S104: The OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message.
通过本实施例,OTN设备在接收到告警操作消息之后,其中,告警操作消息包括:第一告警监视消息、第一告警状态查询消息,其中,该第一告警监视消息用于指示OTN设备配置OTN设备的告警监视状态,该第一告警状态查询消息用于指示OTN设备查询OTN设备的告警状态,依据该告警操作消息的类型执行与该类型对应的告警操作的方式,实现了在OTN设备中的告警机制,解决了相关技术中OTN设备不支持告警机制的问题。In this embodiment, after the OTN device receives the alarm operation message, the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to indicate that the OTN device configures the OTN. The alarm monitoring state of the device, the first alarm state query message is used to instruct the OTN device to query the alarm state of the OTN device, and the manner of performing the alarm operation corresponding to the type according to the type of the alarm operation message is implemented in the OTN device. The alarm mechanism solves the problem that the OTN device does not support the alarm mechanism in the related art.
对于本实施例涉及到的该告警操作消息,在本实施例的一个可选实施例中该告警操作消息为OpenFlow协议中的OFPT_FLOW_MOD消息,其中,在OFPT_FLOW_MOD消息的扩展类型中定义有用于指示告警操作的类型,以及与该类 型对应的结构类型,该结构类型的不同取值用于表示不同的告警操作类型。In an optional embodiment of the present embodiment, the alarm operation message is an OFPT_FLOW_MOD message in the OpenFlow protocol, where an extension operation type of the OFPT_FLOW_MOD message is used to indicate an alarm operation. Type, and with that class The type of the structure corresponding to the type, the different values of the structure type are used to indicate different types of alarm operations.
而在本实施例的一个可选的应用场景中,该告警操作消息可以是对OFPT_FLOW_MOD消息进行扩展,体现在对该消息中Match entries部分的oxm_fields支持的类型扩展,如新增类型OFPXMT_EXP_OTN_ALARM_MONITOR,取值100,用于表示告警操作,并定义其对应的结构体,用于标识告警操作类型,包括告警监视开启、告警监视关闭、告警状态查询。例如,OFPXMT_EXP_ALARM_MONITOR_CANCEL等于0,表示告警监视关闭;OFPXMT_EXP_ALARM_MONITOR_SET等于1,表示告警监视开启;OFPXMT_EXP_ALARM_MONITOR_QUERY等于2,表示告警状态查询。In an optional application scenario of the embodiment, the alarm operation message may be an extension of the OFPT_FLOW_MOD message, which is embodied in the type extension supported by the oxm_fields in the Match entries part of the message, such as the newly added type OFPXMT_EXP_OTN_ALARM_MONITOR, which is a value. 100. It is used to indicate an alarm operation, and defines a corresponding structure for identifying an alarm operation type, including alarm monitoring on, alarm monitoring off, and alarm status query. For example, OFPXMT_EXP_ALARM_MONITOR_CANCEL is equal to 0, indicating that the alarm monitoring is off; OFPXMT_EXP_ALARM_MONITOR_SET is equal to 1, indicating that the alarm monitoring is enabled; OFPXMT_EXP_ALARM_MONITOR_QUERY is equal to 2, indicating the alarm status query.
此外,在本实施例的另一个可选实施例中该告警操作消息还可以携带有OTN设备的指定端口信息、指定标签信息;基于此,本实施例中步骤S104中OTN设备依据告警操作消息的类型执行与该类型对应的告警操作的方式可以通过如下步骤但不限于如下步骤来实现:In addition, in another optional embodiment of the embodiment, the alarm operation message may further include the specified port information of the OTN device, and the specified label information. Based on this, in the step S104, the OTN device according to the alarm operation message The manner in which the type performs the alarm operation corresponding to the type may be implemented by the following steps but not limited to the following steps:
步骤S11:OTN设备依据指定端口信息和指定标签信息查询到与指定端口信息和指定标签信息对应的本地端口;Step S11: The OTN device queries the local port corresponding to the specified port information and the specified tag information according to the specified port information and the specified tag information.
步骤S12:OTN设备判断本地端口的告警监视状态与第一告警监视消息对应的告警监视状态是否匹配,其中,告警监视的状态包括:告警监视关闭、告警监视开启;Step S12: The OTN device determines whether the alarm monitoring state of the local port matches the alarm monitoring state corresponding to the first alarm monitoring message, wherein the alarm monitoring state includes: alarm monitoring is turned off, and alarm monitoring is turned on;
步骤S13:OTN依据判断结果配置本地端口的告警监视状态。Step S13: The OTN configures the alarm monitoring status of the local port according to the determination result.
其中,在判断结果为否时,OTN设备依据第一告警监视消息的状态配置本地端口的告警监视状态;在判断结构为是时,OTN设备则禁止执行配置本地端口的告警监视状态的操作。The OTN device configures the alarm monitoring state of the local port according to the state of the first alarm monitoring message. When the determining structure is YES, the OTN device prohibits the operation of configuring the alarm monitoring state of the local port.
在本实施例的另一个实施例中,本实施例中的步骤S104,OTN设备依据告警操作消息的类型执行与该类型对应的告警操作的方式可以通过如下方式但不限于如下方式来实现:In another embodiment of the present embodiment, in step S104 in this embodiment, the manner in which the OTN device performs the alarm operation corresponding to the type according to the type of the alarm operation message may be implemented by:
步骤S21:OTN设备依据指定端口信息和指定标签信息查询到与指定端口信息和指定标签信息对应的本地端口;Step S21: The OTN device queries the local port corresponding to the specified port information and the specified tag information according to the specified port information and the specified tag information.
步骤S22:OTN设备查询本地端口的告警状态,其中,告警状态包括:告警产生、告警消失;Step S22: The OTN device queries the alarm status of the local port, where the alarm status includes: an alarm is generated, and the alarm disappears;
步骤S23:OTN设备将告警状态信息标识在OFPT_PORT_STATUS消息的扩展类型中,并上报OFPT_PORT_STATUS消息。 Step S23: The OTN device identifies the alarm status information in the extended type of the OFPT_PORT_STATUS message, and reports the OFPT_PORT_STATUS message.
针对上述步骤S21至S23,在本实施例的一个可选的应用场景中,是对OFPT_PORT_STATUS消息进行扩展,体现在对该消息中reason支持的类型进行扩展,如新增OFPPR_ALARM_DISAPPEAR,取值为3,表示告警消失;新增OFPPR_ALARM_OCCUR,取值为4,标识告警产生,从而使得OFPT_PORT_STATUS消息能够标识OTN设备的告警状态。For the above-mentioned steps S21 to S23, in an optional application scenario of the embodiment, the OFPT_PORT_STATUS message is extended, and the type supported by the reason is expanded in the message, for example, the new OFPRR_ALARM_DISAPPEAR is added, and the value is 3, Indicates that the alarm is cleared. The new OFPR_ALARM_OCCUR value is 4, and the alarm is generated, so that the OFPT_PORT_STATUS message can identify the alarm status of the OTN device.
在本实施例中,在OTN设备依据告警操作消息的类型执行与该类型对应的告警操作之后,本实施例的方法还可以包括如何实现告警状态的上报,其实现方式可以通过如下步骤来实现:In this embodiment, after the OTN device performs the alarm operation corresponding to the type according to the type of the alarm operation message, the method in this embodiment may further include how to implement the alarm status reporting, and the implementation manner may be implemented by the following steps:
步骤S31:在OTN设备的指定端口产生告警时,OTN设备判断指定端口的告警监视状态是否为告警监视开启;Step S31: When an alarm is generated on the designated port of the OTN device, the OTN device determines whether the alarm monitoring status of the designated port is alarm monitoring enabled.
步骤S32:在判断结果为是时,OTN设备在OFPT_PORT_STATUS消息的扩展类型中填写指定端口的端口信息,并上报OFPT_PORT_STATUS消息;Step S32: When the judgment result is yes, the OTN device fills in the port information of the designated port in the extended type of the OFPT_PORT_STATUS message, and reports the OFPT_PORT_STATUS message;
步骤S33:在判断结果为否时,OTN设备禁止执行上报告警状态的操作。Step S33: When the determination result is no, the OTN device prohibits the operation of reporting the alarm state.
在本实施例中还提供了一种光传送网OTN设备告警的处理装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”“单元”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a processing device for the OTN device alarm of the optical transport network is also provided. The device is used to implement the foregoing embodiments and optional implementations, and details are not described herein. As used below, the term "module" "unit" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的光传送网OTN设备告警的处理装置结构框图一,该装置位于OTN设备侧,如图2所示,该装置包括:接收模块22,设置为接收告警操作消息,其中,告警操作消息的类型包括:第一告警监视消息、第一告警状态查询消息,该第一告警监视消息用于指示OTN设备配置OTN设备的告警监视状态,该第一告警状态查询消息用于指示OTN设备查询OTN设备的告警状态;执行模块24,与接收模块22耦合连接,设置为依据告警操作消息的类型执行与该类型对应的告警操作。2 is a block diagram of a processing device for an OTN device alarm of an optical transport network according to an embodiment of the present invention. The device is located on the OTN device side. As shown in FIG. 2, the device includes: a receiving module 22 configured to receive an alarm operation message. The type of the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring state of the OTN device, where the first alarm status query message is used. The OTN device is instructed to query the alarm state of the OTN device. The execution module 24 is coupled to the receiving module 22 and configured to perform an alarm operation corresponding to the type according to the type of the alarm operation message.
可选地,告警操作消息为OpenFlow协议中的OFPT_FLOW_MOD消息,其中,在OFPT_FLOW_MOD消息的扩展类型中定义有用于指示告警操作的类型,以及与类型对应的结构类型,该结构类型的不同取值用于表示不同的告警操作类型。Optionally, the alarm operation message is an OFPT_FLOW_MOD message in the OpenFlow protocol, where a type for indicating an alarm operation and a structure type corresponding to the type are defined in an extension type of the OFPT_FLOW_MOD message, and different values of the structure type are used for Indicates different types of alarm operations.
可选地,告警操作消息还携带有OTN设备的指定端口信息、指定标签信息,执行模块还包括:第一查询单元,设置为依据指定端口信息和指定标签信息查询到与指定端口信息和指定标签信息对应的本地端口;判断单元,与该第一查询单元耦合连接,设置为判断本地端口的告警监视状态与第一告警监视消息的状态是否匹配,其 中,告警监视的状态包括:告警监视关闭、告警监视开启;配置单元,与判断单元耦合连接,设置为依据判断结果配置本地端口的告警监视状态。Optionally, the alarm operation message further carries the designated port information of the OTN device, and the specified label information, and the execution module further includes: a first query unit, configured to query the specified port information and the specified label according to the specified port information and the specified label information. a local port corresponding to the information; the determining unit is coupled to the first query unit, and configured to determine whether the alarm monitoring state of the local port matches the state of the first alarm monitoring message, The state of the alarm monitoring includes: the alarm monitoring is turned off, and the alarm monitoring is turned on; the configuration unit is coupled with the determining unit, and is configured to configure the alarm monitoring state of the local port according to the judgment result.
可选地,配置单元还包括:第一配置子单元,设置为在判断结果为否时,依据第一告警监视消息的状态配置本地端口的告警监视状态;第二配置子单元,第一配置子单元耦合连接,设置为在判断结构为是时,禁止执行配置本地端口的告警监视状态的操作。Optionally, the configuration unit further includes: a first configuration subunit, configured to configure an alarm monitoring state of the local port according to a state of the first alarm monitoring message when the determination result is negative; the second configuration subunit, the first configuration sub The unit coupling connection is set to prohibit the operation of configuring the alarm monitoring state of the local port when the determination structure is YES.
可选地,执行模块24包括:第二查询单元,设置为依据指定端口信息和指定标签信息查询到与指定端口信息和指定标签信息对应的本地端口;第三查询单元,与第二查询单元耦合连接,设置为查询本地端口的告警状态,其中,告警状态包括:告警产生、告警消失;标识单元,与第三查询单元耦合连接,设置为将告警状态信息标识在OFPT_PORT_STATUS消息的扩展类型中,并上报OFPT_PORT_STATUS消息。Optionally, the executing module 24 includes: a second querying unit, configured to query a local port corresponding to the specified port information and the specified tag information according to the specified port information and the specified tag information; and the third query unit is coupled to the second query unit The connection is set to query the alarm status of the local port, where the alarm status includes: an alarm is generated, and the alarm disappears; the identification unit is coupled to the third query unit, and is configured to identify the alarm status information in an extension type of the OFPT_PORT_STATUS message, and Report the OFPT_PORT_STATUS message.
图3是根据本发明实施例的光传送网OTN设备告警的处理装置结构框图二,如图3所示,装置还可以包括:判断模块32,与执行模块24耦合连接,设置为在OTN设备的指定端口产生告警时,判断指定端口的告警监视状态是否为告警监视开启;上报模块34,与判断模块32耦合连接,设置为在判断结果为是时,在OFPT_PORT_STATUS消息的扩展类型中填写指定端口的端口信息,并上报OFPT_PORT_STATUS消息;禁止模块36,与上报模块34耦合连接,设置为在判断结果为否时,OTN设备禁止执行上报告警状态的操作。3 is a block diagram of a processing device for processing an OTN device alarm of an optical transport network according to an embodiment of the present invention. As shown in FIG. 3, the device may further include: a determining module 32 coupled to the executing module 24 and configured to be in the OTN device. When the specified port generates an alarm, it is determined whether the alarm monitoring status of the designated port is the alarm monitoring enabled; the reporting module 34 is coupled with the determining module 32, and is set to fill in the designated port in the extended type of the OFPT_PORT_STATUS message when the determination result is yes. The port information is reported to the OFPT_PORT_STATUS message; the prohibition module 36 is coupled to the reporting module 34, and is set to prevent the OTN device from performing the operation of reporting the alarm state when the determination result is no.
下面结合本发明的可选实施例对本发明进行举例说明;The invention is exemplified below in conjunction with an alternative embodiment of the invention;
本可选实施例提供了一种基于OPENFLOW协议的实现OTN设备告警机制的方法,图4是根据本发明可选实施例的Controller发送告警操作消息的流程图,如图4所示,该方法的步骤可以包括:The present invention provides a method for implementing an OTN device alarm mechanism based on the OPENFLOW protocol, and FIG. 4 is a flowchart of a controller sending an alarm operation message according to an alternative embodiment of the present invention, as shown in FIG. The steps can include:
步骤S402:Controller发送告警操作消息,其中,该告警操作消息包括:告警监视消息、告警状态查询消息;Step S402: The controller sends an alarm operation message, where the alarm operation message includes: an alarm monitoring message and an alarm status query message;
步骤S404:OTN设备网元收到告警操作消息进行分发;Step S404: The OTN device network element receives an alarm operation message for distribution.
步骤S406:OTN设备网元告警监视配置;Step S406: The OTN device network element alarm monitoring configuration;
步骤S408:OTN设备网元收到告警查询消息的处理;OTN设备网元告警状态主动上报Step S408: The OTN device network element receives the alarm query message processing; the OTN device network element alarm state is actively reported.
对于上述步骤S202至步骤S208,在本可选实施例中,是通过对OpenFlow协议中的OFPT_FLOW_MOD消息和OFPT_PORT_STATUS消息进行扩展,实现了基于OTN的SDN的告警机制,该告警机制包括:告警监视设置、告警状态查询、告警主动上 报,其中,告警监视配置包括:告警监视开启、告警监视关闭。For the foregoing step S202 to step S208, in the present optional embodiment, the OTN-based SDN alarm mechanism is implemented by extending the OFPT_FLOW_MOD message and the OFPT_PORT_STATUS message in the OpenFlow protocol, and the alarm mechanism includes: an alarm monitoring setting, Alarm status query and alarm initiative The report, wherein the alarm monitoring configuration includes: alarm monitoring is enabled, and alarm monitoring is turned off.
而对于OFPT_FLOW_MOD消息的扩展,体现在对该消息中Match entries部分的oxm_fields支持的类型扩展,如新增类型OFPXMT_EXP_OTN_ALARM_MONITOR,并取值100,用于表示告警操作,此外还定义其对应的结构体,用于标识告警操作类型,该告警操作类型包括:告警监视开启、告警监视关闭、告警状态查询。从而实现了基于OTN的SDN对OTN设备节点进行告警操作的功能。The extension of the OFPT_FLOW_MOD message is embodied in the extension of the type supported by the oxm_fields in the Match entries part of the message, such as the new type OFPXMT_EXP_OTN_ALARM_MONITOR, and the value 100 is used to indicate the alarm operation. In addition, the corresponding structure is defined. The identifier operation type includes: alarm monitoring on, alarm monitoring off, and alarm status query. Therefore, the OTN-based SDN performs the alarm operation on the OTN device node.
对OFPT_PORT_STATUS消息的扩展,体现在对消息中reason支持的类型进行扩展,如新增OFPPR_ALARM_DISAPPEAR,取值为3,表示告警消失;新增OFPPR_ALARM_OCCUR,取值为4,标识告警产生,使得OFPT_PORT_STATUS消息能够标识设备的告警状态,从而实现了OTN设备节点能够上报设备告警状态功能。The extension of the OFPT_PORT_STATUS message is extended to the type supported by the reason in the message. For example, the new OFPRR_ALARM_DISAPPEAR is added, and the value is 3, indicating that the alarm is lost. The new OFPR_ALARM_OCCUR value is 4, and the alarm is generated, so that the OFPT_PORT_STATUS message can be identified. The alarm status of the device enables the OTN device node to report the alarm status of the device.
下面结合附图对本可选实施例的步骤S402至步骤S408进行详细的说明;Steps S402 to S408 of the optional embodiment are described in detail below with reference to the accompanying drawings;
下面结合图5和图6对于本可选实施例的步骤S402进行详细的解释,图5是根据本发明可选实施例的告警监视消息结构示意图,图6是根据本发明可选实施例的告警状态查询消息结构示意图,该方式可以通过如下步骤来实现:5 is a detailed explanation of the step S402 of the optional embodiment, FIG. 5 is a schematic structural diagram of an alarm monitoring message according to an optional embodiment of the present invention, and FIG. 6 is an alarm according to an alternative embodiment of the present invention. A schematic diagram of the status query message structure, which can be implemented by the following steps:
步骤S41:当Controller触发告警机制后,首先根据OpenFlow协议构造OFPT_FLOW_MOD消息。在消息的ofp_header中,标识type为OFPT_FLOW_MOD。Step S41: After the Controller triggers the alarm mechanism, first construct an OFPT_FLOW_MOD message according to the OpenFlow protocol. In the ofp_header of the message, the identifier type is OFPT_FLOW_MOD.
步骤S42:对消息中header部分填写。主要填写command,为OFPFC_MODIFY。该值是目前协议中定义的。Step S42: Fill in the header part of the message. Mainly fill in the command, which is OFPFC_MODIFY. This value is defined in the current protocol.
步骤S43:标识该Match entries为OpenFlow扩展的Match。方法为将Match entries中的type赋值为OFPMT_OXM(取值为1)。Step S43: Identify the Match entries as the Match of the OpenFlow extension. The method is to assign the type in the Match entries to OFPMT_OXM (which takes a value of 1).
步骤S44:填写Match entries的oxm_fields中告警操作类型部分。目前oxm_field中定义的类型取值由2到5,分别代表ODU和OCH信号类型与信号ID。Step S44: Fill in the alarm operation type part of the oxm_fields of the Match entries. Currently, the types defined in oxm_field take values from 2 to 5, representing the ODU and OCH signal types and signal IDs, respectively.
在本可选实施例中可以对oxm_field中定义的类型进行扩展,并定义OFPXMT_EXP_OTN_ALARM_MONITOR,取值100,即此oxm_field用于表示告警操作,并定义其对应结构,包含oxm_header,取值OFPXMC_EXPERIMENTER,表示OXM扩展;experimenter,本专利定义该字段取值0xFF001000,表示告警监视;oper_type,表示告警监视操作类型。In this alternative embodiment, the type defined in the oxm_field may be extended, and the OFPXMT_EXP_OTN_ALARM_MONITOR is defined, and the value is 100, that is, the oxm_field is used to indicate the alarm operation, and the corresponding structure is defined, including the oxm_header, and the value OFPXMC_EXPERIMENTER indicates the OXM extension. ;experimenter, this patent defines the field value 0xFF001000, indicating alarm monitoring; oper_type, indicating the type of alarm monitoring operation.
其中,定义的告警操作类型宏分别表示告警监视关闭、告警监视开启、告警查 询,如为OFPXMT_EXP_ALARM_MONITOR_CANCEL等于0,表示告警监视关闭;OFPXMT_EXP_ALARM_MONITOR_SET等于1,表示告警监视开启;OFPXMT_EXP_ALARM_MONITOR_QUERY等于2,表示告警状态查询。The defined alarm operation type macros respectively indicate that the alarm monitoring is turned off, the alarm monitoring is turned on, and the alarm is checked. For example, if the OFPXMT_EXP_ALARM_MONITOR_CANCEL is equal to 0, the alarm monitoring is turned off; the OFXXMT_EXP_ALARM_MONITOR_SET is equal to 1, indicating that the alarm monitoring is enabled; and the OFXXMT_EXP_ALARM_MONITOR_QUERY is equal to 2, indicating the alarm status query.
步骤45:填写oxm_fields中告警层次部分。Step 45: Fill in the alarm hierarchy in oxm_fields.
如果消息为告警操作消息,这需要填写告警层次,本可选实施例新增OXM类型,用于表示告警层次,即定义OFPXMT_EXP_OTN_TCM,取值101,标识OTN告警层次,并定义其对应结构,包含:oxm_header,取值OFPXMC_EXPERIMENTER,表示OXM扩展;experimenter,本专利定义该字段取值0xFF001001,表示OTN告警层次;otn_alarm_layer,OTN设备告警监视层次,TCM1~TCM6;pad,表示保留字段。If the message is an alarm operation message, the alarm level is required. The OXM type is added to the optional embodiment to indicate the alarm level, that is, the OFPXMT_EXP_OTN_TCM is defined, the value is 101, the OTN alarm level is identified, and the corresponding structure is defined, including: Oxm_header, value OFPXMC_EXPERIMENTER, indicates OXM extension; experimenter, this patent defines the field value 0xFF001001, indicating OTN alarm level; otn_alarm_layer, OTN device alarm monitoring level, TCM1 ~ TCM6; pad, indicating reserved field.
其中,告警层次的选择,根据SDN中业务的特性进行选择,且告警层次部分可以为多个。The selection of the alarm level is selected according to the characteristics of the service in the SDN, and the alarm hierarchy may be multiple.
如果消息为告警查询消息,则不需要该部分。This section is not required if the message is an alert query message.
步骤S46:填写oxm_fields中端口、标签、信号类型部分。该部分的填写可依据目前OpenFlow标准。Step S46: Fill in the port, label, and signal type parts in oxm_fields. This section can be filled in according to the current OpenFlow standard.
步骤S47:将OFPT_FLOW_MOD消息发送到OTN设备节点。Step S47: Send the OFPT_FLOW_MOD message to the OTN device node.
下面对步骤S404进行详细的解释,图7是根据本发明可选实施例的OTN设备网元收到告警操作消息进行分发的流程图,如图7所示,该方法的步骤包括:The following is a detailed explanation of the step S404. FIG. 7 is a flowchart of the OTN device network element receiving an alarm operation message for distribution according to an alternative embodiment of the present invention. As shown in FIG. 7, the steps of the method include:
步骤S702:OTN设备网元收到告警操作消息;Step S702: The OTN device network element receives an alarm operation message.
步骤S704:根据oxm_field部分获得告警操作类型、端口信息、标签信息,和告警层次;Step S704: Obtain an alarm operation type, port information, label information, and an alarm level according to the oxm_field part;
步骤S706:当告警操作类型为告警监视开启时,或告警监视关闭时,则流程进入OTN设备网元告警监视配置过程。Step S706: When the alarm operation type is alarm monitoring enabled, or when the alarm monitoring is turned off, the process enters the OTN device network element alarm monitoring configuration process.
步骤S708:当告警操作类型为告警查询时,则流程进入OTN设备网元收到告警查询消息的处理流程。Step S708: When the alarm operation type is an alarm query, the process proceeds to a processing flow in which the OTN device network element receives the alarm query message.
下面对步骤S406进行详细的解释,图8是根据本发明可选实施例的OTN设备网元告警监视配置方法流程图,如图8所示,该方法的步骤包括:The following is a detailed explanation of the step S406. FIG. 8 is a flowchart of a method for configuring an OTN device network element alarm monitoring according to an alternative embodiment of the present invention. As shown in FIG. 8, the method includes the following steps:
步骤S802:OTN设备网元根据已经获得的端口信息、标签信息检索本地端口。Step S802: The OTN device network element retrieves the local port according to the obtained port information and tag information.
步骤S804:获得端口的告警状态,判断是否与消息中的告警层次进行匹配;在 判断结果为是时,则执行步骤S806,判断结果为否时,则执行步骤S808;Step S804: Obtain an alarm state of the port, and determine whether to match the alarm level in the message; If the result of the determination is yes, then step S806 is performed, and if the result of the determination is no, step S808 is performed;
步骤S806:如果在消息中指定的告警层次上,端口的告警状态与消息指定的告警操作匹配,则不处理消息;Step S806: If the alarm state of the port matches the alarm operation specified by the message at the alarm level specified in the message, the message is not processed;
其中,如当消息中告警操作类型为告警监视开启,端口的告警监视状态在指定告警层次为开启,则不处理消息。For example, if the alarm operation type in the message is alarm monitoring enabled, and the alarm monitoring status of the port is enabled at the specified alarm level, the message is not processed.
步骤S808:如果在消息中指定的告警层次上,端口的告警状态与消息指定的告警操作不匹配,则按照消息对端口进行告警监视配置;Step S808: If the alarm state of the port does not match the alarm operation specified by the message at the alarm level specified in the message, the port is configured to perform alarm monitoring according to the message;
其中,如消息中告警操作类型为告警监视开启,端口的告警监视状态在指定告警层次为关闭,则将端口在对应告警层次上设置为告警监视开启。For example, if the alarm operation type in the message is alarm monitoring enabled, and the alarm monitoring status of the port is off at the specified alarm level, the port is set to alarm monitoring on the corresponding alarm level.
下面对步骤S408进行详细的解释,图9是根据本发明可选实施的OTN设备网元收到告警查询消息的处理方法流程图,如图9所示,该方法的步骤包括:The following is a detailed explanation of the step S408. FIG. 9 is a flowchart of a method for processing an OTN device network element to receive an alarm query message according to an optional implementation of the present invention. As shown in FIG. 9, the steps of the method include:
步骤S902:OTN设备网元根据已经获得的端口信息、标签信息检索本地端口;Step S902: The OTN device network element retrieves the local port according to the obtained port information and label information.
步骤S904:OTN设备根据获得的端口信息、标签信息检索本地OTN设备上的端口;Step S904: The OTN device retrieves the port on the local OTN device according to the obtained port information and label information.
步骤S906:OTN设备获得OTN设备的告警状态;Step S906: The OTN device obtains an alarm state of the OTN device.
步骤S908:OTN设备构造OFPT_PORT_STATUS消息;Step S908: The OTN device constructs an OFPT_PORT_STATUS message;
其中,在该消息的reason中标识端口的告警状态:告警产生,或告警消失,The alarm status of the port is identified in the reason of the message: the alarm is generated, or the alarm disappears.
该OFPT_PORT_STATUS消息结构如表1所示:The structure of the OFPT_PORT_STATUS message is shown in Table 1:
ofp_headerOfp_header reasonReason ofp_experimenter_portOfp_experimenter_port
表1Table 1
该reason目前支持的取值有OFPPR_ADD,取值为0,表示端口增加;OFPPR_DELETE,取值为1,表示端口删除;OFPPR_MODIFY,取值为2,表示端口属性修改。为实现本发明提出的方法,对reason进行扩展。新增OFPPR_ALARM_DISAPPEAR,取值3,表示告警消失;新增OFPPR_ALARM_OCCUR,取值为4,表示告警产生。The value currently supported by the reason is OFPRR_ADD. The value is 0, indicating that the port is added. The OFPRR_DELETE value is 1, indicating that the port is deleted. The OFPRR_MODIFY value is 2, indicating that the port attribute is modified. To implement the method proposed by the present invention, reason is extended. Added the OFPPR_ALARM_DISAPPEAR, which is 3, indicating that the alarm is cleared. The new OFPR_ALARM_OCCUR value is 4, indicating that an alarm is generated.
步骤S910:在消息的ofp_experimenter_port中填写端口信息;Step S910: Fill in the port information in the ofp_experimenter_port of the message;
其中,该填写方法以相关协议标准为依据; Wherein, the filling method is based on relevant protocol standards;
步骤S912:将消息发送到Controller。Step S912: Send the message to the Controller.
图10是根据本发明可选实施例的OTN设备网元告警状态主动上报方法流程图,如图10所示,本可选实施例的方法步骤还可以包括:FIG. 10 is a flowchart of a method for actively reporting an alarm state of a network element of an OTN device according to an alternative embodiment of the present invention. As shown in FIG. 10, the method steps of the optional embodiment may further include:
步骤S1002:OTN设备网元设备上产生告警;Step S1002: an alarm is generated on the OTN device network element device.
步骤S1004:判断OTN设备的端口的告警监视是否为开启状态;在判断结果为是时,执行步骤S1006;在判断结果为否时,执行步骤S1008;Step S1004: determining whether the alarm monitoring of the port of the OTN device is in an open state; when the determination result is yes, executing step S1006; and if the determination result is no, executing step S1008;
步骤S1006:构造告警上报消息;Step S1006: Construct an alarm report message;
其中,即为构造OFPT_PORT_STATUS消息在消息的reason中标识端口的告警状态:OFPPR_ALARM_OCCUR,在消息的ofp_experimenter_port中填写端口信息。That is, the OFPT_PORT_STATUS message is constructed to identify the alarm state of the port in the reason of the message: OFPRR_ALARM_OCCUR, and the port information is filled in the ofp_experimenter_port of the message.
步骤S1008:不处理告警操作;Step S1008: The alarm operation is not processed;
步骤S1010:发送告警上报消息到Controller。Step S1010: Send an alarm report message to the Controller.
通过本发明可选实施例,使得协议能够支持OTN设备的告警机制,进而实现了基于OTN设备的SDN业务恢复倒换功能,提高了业务的生存性。The optional embodiment of the present invention enables the protocol to support the alarm mechanism of the OTN device, thereby implementing the SDN service recovery switching function based on the OTN device, thereby improving service survivability.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
上述仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only an alternative embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
在本发明实施例中上述涉及到的OTN设备告警的处理过程中,采用OTN设备在 接收到告警操作消息之后,其中,该告警操作消息包括:第一告警监视消息、第一告警状态查询消息,其中,该第一告警监视消息用于指示OTN设备配置OTN设备的告警监视状态,该第一告警状态查询消息用于指示OTN设备查询OTN设备的告警状态,依据该告警操作消息的类型执行与该类型对应的告警操作的方式,实现了在OTN设备中的告警机制,解决了相关技术中OTN设备不支持告警机制的问题。 In the process of processing the OTN device alarm mentioned above in the embodiment of the present invention, the OTN device is used. After receiving the alarm operation message, the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to instruct the OTN device to configure an alarm monitoring state of the OTN device, where The first alarm status query message is used to instruct the OTN device to query the alarm state of the OTN device, and perform the alarm operation corresponding to the type according to the type of the alarm operation message, thereby implementing the alarm mechanism in the OTN device, and solving the related technology. The OTN device does not support the alarm mechanism.

Claims (12)

  1. 一种光传送网OTN设备告警的处理方法,包括:A method for processing an OTN device alarm of an optical transport network includes:
    光传送网OTN设备接收告警操作消息,其中,所述告警操作消息的类型包括:第一告警监视消息、第一告警状态查询消息,该第一告警监视消息用于指示所述OTN设备配置所述OTN设备的告警监视状态,该第一告警状态查询消息用于指示所述OTN设备查询所述OTN设备的告警状态;The OTN device receives an alarm operation message, where the type of the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to indicate that the OTN device configures the An alarm monitoring status of the OTN device, where the first alarm status query message is used to instruct the OTN device to query an alarm state of the OTN device;
    所述OTN设备依据所述告警操作消息的类型执行与所述类型对应的告警操作。The OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message.
  2. 根据权利要求1所述的方法,其中,所述告警操作消息为OpenFlow协议中的OFPT_FLOW_MOD消息,其中,在所述OFPT_FLOW_MOD消息的扩展类型中定义有用于指示告警操作的类型,以及与所述类型对应的结构类型,该结构类型的不同取值用于表示不同的所述类型。The method according to claim 1, wherein the alarm operation message is an OFPT_FLOW_MOD message in an OpenFlow protocol, wherein a type for indicating an alarm operation and a type corresponding to the type are defined in an extension type of the OFPT_FLOW_MOD message. The type of structure, the different values of which are used to represent different types.
  3. 根据权利要求2所述的方法,其中,所述告警操作消息还携带有所述OTN设备的指定端口信息、指定标签信息,所述OTN设备依据所述告警操作消息的类型执行与所述类型对应的告警操作包括:The method according to claim 2, wherein the alarm operation message further carries specified port information of the OTN device, and designated tag information, and the OTN device performs a correspondence with the type according to the type of the alarm operation message. The alarm operations include:
    所述OTN设备依据所述指定端口信息和所述指定标签信息查询到与所述指定端口信息和所述指定标签信息对应的本地端口;The OTN device queries, according to the specified port information and the specified label information, a local port corresponding to the designated port information and the specified label information;
    所述OTN设备判断所述本地端口的告警监视状态与所述第一告警监视消息对应的告警监视状态是否匹配,其中,告警监视的状态包括:告警监视关闭、告警监视开启;The OTN device determines whether the alarm monitoring status of the local port matches the alarm monitoring status of the first alarm monitoring message, where the status of the alarm monitoring includes: alarm monitoring is turned off, and alarm monitoring is turned on;
    所述OTN设备依据判断结果配置所述本地端口的告警监视状态。The OTN device configures an alarm monitoring state of the local port according to the determination result.
  4. 根据权利要求3所述的方法,其中,所述OTN设备依据判断结果配置所述本地端口的告警监视状态包括:The method of claim 3, wherein the configuring, by the OTN device, the alarm monitoring status of the local port according to the determination result comprises:
    在所述判断结果为否时,所述OTN设备依据所述第一告警监视消息的状态配置所述本地端口的告警监视状态;When the determination result is no, the OTN device configures an alarm monitoring state of the local port according to the state of the first alarm monitoring message;
    在所述判断结构为是时,所述OTN设备则禁止执行配置所述本地端口的告警监视状态的操作。When the determining structure is YES, the OTN device prohibits an operation of configuring an alarm monitoring state of the local port.
  5. 根据权利要求3所述的方法,其中,所述OTN设备依据所述告警操作消息的类型执行与所述类型对应的告警操作包括:The method of claim 3, wherein the performing, by the OTN device, an alert operation corresponding to the type according to the type of the alert operation message comprises:
    所述OTN设备依据所述指定端口信息和所述指定标签信息查询到与所述指 定端口信息和所述指定标签信息对应的所述本地端口;The OTN device queries and refers to the finger according to the specified port information and the specified tag information. The port information and the local port corresponding to the specified tag information;
    所述OTN设备查询所述本地端口的告警状态,其中,所述告警状态包括:告警产生、告警消失;The OTN device queries an alarm state of the local port, where the alarm state includes: an alarm is generated, and an alarm is lost;
    所述OTN设备将所述告警状态信息标识在OFPT_PORT_STATUS消息的扩展类型中,并上报所述OFPT_PORT_STATUS消息。The OTN device identifies the alarm status information in an extended type of the OFPT_PORT_STATUS message, and reports the OFPT_PORT_STATUS message.
  6. 根据权利要求5所述的方法,其中,在所述OTN设备依据所述告警操作消息的类型执行与所述类型对应的告警操作之后,所述方法还包括:The method according to claim 5, wherein after the OTN device performs an alarm operation corresponding to the type according to the type of the alarm operation message, the method further includes:
    在所述OTN设备的指定端口产生告警时,所述OTN设备判断所述指定端口的告警监视状态是否为告警监视开启;When the alarm is generated on the designated port of the OTN device, the OTN device determines whether the alarm monitoring status of the designated port is enabled for alarm monitoring;
    在判断结果为是时,所述OTN设备在所述OFPT_PORT_STATUS消息的扩展类型中填写所述指定端口的端口信息,并上报所述OFPT_PORT_STATUS消息;When the result of the determination is YES, the OTN device fills in the port information of the designated port in the extended type of the OFPT_PORT_STATUS message, and reports the OFPT_PORT_STATUS message;
    在判断结果为否时,所述OTN设备禁止执行上报告警状态的操作。When the determination result is no, the OTN device prohibits the operation of reporting the alarm state.
  7. 一种光传送网OTN设备告警的处理装置,位于OTN设备侧,包括:An apparatus for processing an OTN device alarm on an optical transport network is located on the OTN device side, and includes:
    接收模块,设置为接收告警操作消息,其中,所述告警操作消息的类型包括:第一告警监视消息、第一告警状态查询消息,该第一告警监视消息用于指示所述OTN设备配置所述OTN设备的告警监视状态,该第一告警状态查询消息用于指示所述OTN设备查询所述OTN设备的告警状态;The receiving module is configured to receive an alarm operation message, where the type of the alarm operation message includes: a first alarm monitoring message, a first alarm status query message, where the first alarm monitoring message is used to indicate that the OTN device configures the An alarm monitoring status of the OTN device, where the first alarm status query message is used to instruct the OTN device to query an alarm state of the OTN device;
    执行模块,设置为依据所述告警操作消息的类型执行与所述类型对应的告警操作。And an execution module, configured to perform an alarm operation corresponding to the type according to the type of the alarm operation message.
  8. 根据权利要求7所述的装置,其中,所述告警操作消息为OpenFlow协议中的OFPT_FLOW_MOD消息,其中,在所述OFPT_FLOW_MOD消息的扩展类型中定义有用于指示告警操作的类型,以及与所述类型对应的结构类型,该结构类型的不同取值用于表示不同的所述类型。The apparatus according to claim 7, wherein the alarm operation message is an OFPT_FLOW_MOD message in an OpenFlow protocol, wherein a type for indicating an alarm operation and a type corresponding to the type are defined in an extension type of the OFPT_FLOW_MOD message The type of structure, the different values of which are used to represent different types.
  9. 根据权利要求8所述的装置,其中,所述告警操作消息还携带有所述OTN设备的指定端口信息、指定标签信息,所述执行模块还包括:The device according to claim 8, wherein the alarm operation message further carries specified port information of the OTN device, and specifies label information, and the execution module further includes:
    第一查询单元,设置为依据所述指定端口信息和所述指定标签信息查询到与所述指定端口信息和所述指定标签信息对应的本地端口;The first query unit is configured to query, according to the specified port information and the specified label information, a local port corresponding to the specified port information and the specified label information;
    判断单元,设置为判断所述本地端口的告警监视状态与所述第一告警监视消息对应的告警监视状态是否匹配,其中,告警监视的状态包括:告警监视关闭、 告警监视开启;The determining unit is configured to determine whether the alarm monitoring status of the local port matches the alarm monitoring status of the first alarm monitoring message, where the status of the alarm monitoring includes: alarm monitoring is turned off, Alarm monitoring is turned on;
    配置单元,设置为依据判断结果配置所述本地端口的告警监视状态。The configuration unit is configured to configure an alarm monitoring state of the local port according to the determination result.
  10. 根据权利要求9所述的装置,其中,所述配置单元还包括:The apparatus of claim 9, wherein the configuration unit further comprises:
    第一配置子单元,设置为在所述判断结果为否时,依据所述第一告警监视消息的状态配置所述本地端口的告警监视状态;a first configuration subunit, configured to configure an alarm monitoring state of the local port according to a state of the first alarm monitoring message when the determining result is negative;
    第二配置子单元,设置为在所述判断结构为是时,禁止执行配置所述本地端口的告警监视状态的操作。The second configuration subunit is configured to prohibit the operation of configuring the alarm monitoring state of the local port when the determining structure is YES.
  11. 根据权利要求9所述的装置,其中,所述执行模块包括:The apparatus of claim 9, wherein the execution module comprises:
    第二查询单元,设置为依据所述指定端口信息和所述指定标签信息查询到与所述指定端口信息和所述指定标签信息对应的所述本地端口;a second query unit, configured to query, according to the specified port information and the specified label information, the local port corresponding to the specified port information and the specified label information;
    第三查询单元,设置为查询所述本地端口的告警状态,其中,所述告警状态包括:告警产生、告警消失;The third query unit is configured to query an alarm state of the local port, where the alarm state includes: an alarm is generated, and the alarm is lost;
    标识单元,设置为将所述告警状态信息标识在OFPT_PORT_STATUS消息的扩展类型中,并上报所述OFPT_PORT_STATUS消息。And an identifier unit, configured to identify the alarm status information in an extended type of the OFPT_PORT_STATUS message, and report the OFPT_PORT_STATUS message.
  12. 根据权利要求11所述的装置,其中,所述装置还包括:The apparatus of claim 11 wherein said apparatus further comprises:
    判断模块,设置为在所述OTN设备的指定端口产生告警时,判断所述指定端口的告警监视状态是否为告警监视开启;The determining module is configured to determine, when the alarm is generated on the designated port of the OTN device, whether the alarm monitoring state of the designated port is an alarm monitoring.
    上报模块,设置为在判断结果为是时,在所述OFPT_PORT_STATUS消息的扩展类型中填写所述指定端口的端口信息,并上报所述OFPT_PORT_STATUS消息;The reporting module is configured to: when the judgment result is yes, fill in the port information of the designated port in the extended type of the OFPT_PORT_STATUS message, and report the OFPT_PORT_STATUS message;
    禁止模块,设置为在判断结果为否时,所述OTN设备禁止执行上报告警状态的操作。 The prohibition module is set to prevent the OTN device from performing the operation of reporting the alarm state when the determination result is no.
PCT/CN2016/070826 2015-01-30 2016-01-13 Alarm processing method and device for optical transport network (otn) device WO2016119598A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510054329.0A CN105991311A (en) 2015-01-30 2015-01-30 Optical transport network (OTN) device alarm processing method and device
CN201510054329.0 2015-01-30

Publications (1)

Publication Number Publication Date
WO2016119598A1 true WO2016119598A1 (en) 2016-08-04

Family

ID=56542381

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/070826 WO2016119598A1 (en) 2015-01-30 2016-01-13 Alarm processing method and device for optical transport network (otn) device

Country Status (2)

Country Link
CN (1) CN105991311A (en)
WO (1) WO2016119598A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039207A (en) * 2006-03-13 2007-09-19 华为技术有限公司 Intelligent optical network equipment having double CPU and method for realizing the same
CN101150444A (en) * 2007-10-30 2008-03-26 中兴通讯股份有限公司 A maintenance method upon service alarm generation in automatic switching optical network system
US20120177360A1 (en) * 2011-01-11 2012-07-12 Fujitsu Limited Transmission apparatus and reporting method for reporting fault
CN103051565A (en) * 2013-01-04 2013-04-17 中兴通讯股份有限公司 Framework system of grade software defined network software controller and implementation method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5910811B2 (en) * 2011-07-27 2016-04-27 日本電気株式会社 Switch device control system, configuration control device and configuration control method thereof
US8448238B1 (en) * 2013-01-23 2013-05-21 Sideband Networks, Inc. Network security as a service using virtual secure channels
CN103338163B (en) * 2013-07-16 2016-03-23 清华大学 Support the software defined network controller of dynamic elasticity scheduling of resource
CN103346922B (en) * 2013-07-26 2016-08-10 电子科技大学 The controller of determination network state based on SDN and determine method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039207A (en) * 2006-03-13 2007-09-19 华为技术有限公司 Intelligent optical network equipment having double CPU and method for realizing the same
CN101150444A (en) * 2007-10-30 2008-03-26 中兴通讯股份有限公司 A maintenance method upon service alarm generation in automatic switching optical network system
US20120177360A1 (en) * 2011-01-11 2012-07-12 Fujitsu Limited Transmission apparatus and reporting method for reporting fault
CN103051565A (en) * 2013-01-04 2013-04-17 中兴通讯股份有限公司 Framework system of grade software defined network software controller and implementation method thereof

Also Published As

Publication number Publication date
CN105991311A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US9467330B2 (en) Diagnosing connectivity in a network
WO2016119436A1 (en) Alarm processing method and device, and controller
US20160352578A1 (en) System and method for adaptive paths locator for virtual network function links
WO2014127621A1 (en) Alarm processing method and device, alarm associated information setting method
US10237124B2 (en) Network operation, administration, and maintenance (OAM) method, apparatus, and system
WO2015139533A1 (en) Method for network manager to back-calculate hybrid networking services
WO2019141089A1 (en) Network alarm method, device, system and terminal
US10567195B2 (en) Network nodes in a ring network
CN105790972B (en) Controller and alarm correlation processing method
CN104283802A (en) Neighbor discovery method and device
CN114650226A (en) Topology management method and device, network element management node and storage medium
CN111106970A (en) Data monitoring method and device, electronic equipment and readable storage medium
US20240039782A1 (en) Computer network troubleshooting and diagnostics using metadata
CN107733727B (en) Zero configuration method, device and equipment
JP6389494B2 (en) Method and apparatus for generating network dependencies
US11792095B1 (en) Computer network architecture mapping using metadata
WO2016119598A1 (en) Alarm processing method and device for optical transport network (otn) device
WO2016065925A1 (en) Controller replacing method and device
US20220038798A1 (en) Service path switching method and related device
CN110611620B (en) Link updating method and device
TWI591540B (en) Firmware updating system and method
CN114531392A (en) Multicast service design method, server and storage medium
WO2021063069A1 (en) Filtering information configuration method and system
CN106598978A (en) Query method and apparatus of network element historical alarms
CN107248935A (en) A kind of webmaster finds the system and method for simultaneously monitoring network element

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16742660

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16742660

Country of ref document: EP

Kind code of ref document: A1