WO2015035852A1 - Method and device for announcing state between nodes - Google Patents

Method and device for announcing state between nodes Download PDF

Info

Publication number
WO2015035852A1
WO2015035852A1 PCT/CN2014/084900 CN2014084900W WO2015035852A1 WO 2015035852 A1 WO2015035852 A1 WO 2015035852A1 CN 2014084900 W CN2014084900 W CN 2014084900W WO 2015035852 A1 WO2015035852 A1 WO 2015035852A1
Authority
WO
WIPO (PCT)
Prior art keywords
mep
ccm
status
status information
management
Prior art date
Application number
PCT/CN2014/084900
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 WO2015035852A1 publication Critical patent/WO2015035852A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices

Definitions

  • ETH-OAM (Ethernet-Operations, Administration and Maintenance), ETH-OAM mainly includes two functions: fault management and performance management.
  • ETH-OAM compliance standards electrical and electronic engineers The IEEE (Institute of Electrical and Electronics Engineers) standard 802. lag and International Telecommunications Union (ITU Telecommunications Union) ITU-TY.1731;
  • the specific functions of ETH-0AM include: Connectivity Test CC (Continuity Check), ring Back detection LB (Loopback), Link Trace (LT), Loss Measurement LM (Loss Measurement), Time Delay Measurement (DMCDelay Measurement) and Synthetic Loss Measurement (SLM).
  • the CM Continuousity Check Message
  • the CM is a multicast frame generated by the MEP and broadcast to all other MEPs in the same MA.
  • the CCM is periodically exchanged between MEPs to allow MEP discovery.
  • One maintains connectivity between other MEPs in the domain MD.
  • the local MEP maintains a CCM list from the remote MEP.
  • the CCM list is created based on the configured remote MEP.
  • Embodiments of the present invention provide a method and apparatus for inter-node status advertisement to improve system response efficiency.
  • the status information includes: one or more of a management status of the first node, a supported function type, and resource information corresponding to the type of the supported function.
  • Transmitting the changed state information to the first CCM and transmitting the first CCM to the other MEPs includes: when the management state in the state information of the first MEP changes, the changed management state Encapsulating to the first CCM;
  • the method before the MEP management state in the state information of the first MEP is changed, the method includes:
  • the management state in the state information of the first MEP is The value is set to 0, and the management state change of the first MEP includes:
  • the sending the encapsulated first CCM to the other MEP includes : transmitting the first CCM to the other MEPs by triggering a continuous transmission.
  • the management status in the status information of the first MEP includes: And delete the active/standby switch of the device where the first MEP is located.
  • the other MEP is located in the same maintenance alliance MA as the first MEP.
  • the Capab ili TLV further includes a SubTLV, where the SubTLV is used to carry the status information of the first MEP. Management status, types of supported functions, and resource information corresponding to the types of functions supported One or more of them.
  • the acquiring unit is configured to acquire the state information of the first MEP, where the state information of the first MEP includes: a management state of the first MEP, a supported function type, and resource information corresponding to the supported functional category.
  • the state information of the first MEP includes: a management state of the first MEP, a supported function type, and resource information corresponding to the supported functional category.
  • the sending unit is configured to, when the state information of the first MEP changes, encapsulate the state information of the change of the first MEP into the first connectivity detection message CCM, and the first CCM Send to other MEPs.
  • the sending unit includes:
  • a sending subunit configured to send the encapsulated first CCM to the other MEP.
  • the encapsulating subunit is further configured to: change management status in status information of the first MEP Before the first MEP is in a normal state, the first MEP acquires a management state value in the state information of the first MEP, and encapsulates the state information when the first MEP is in a normal state.
  • the sending subunit is further configured to send the second CCM to the other MEP according to the sending.
  • the management state in the current state information of the first MEP when the first MEP is in a normal state, the management state in the current state information of the first MEP The value of the first MEP is changed to 0, and the management status change of the first MEP includes:
  • the management device where the first MEP is located has an active/standby switchover, the status information of the first MEP
  • the value of the management state in the message changes from 0 to 1.
  • the sending subunit is specifically configured to:
  • the management in the status information of the first MEP The status includes: shutdown, deletion, and active/standby switchover of the device where the first MEP is located.
  • the sending unit further includes:
  • a setting subunit configured to: when the function of the first MEP and/or the resource corresponding to the function change, the function type supported in the state information of the first MEP and the corresponding resource information supporting the function Value is reset;
  • the method and device for inter-node state notification when the state information of the first node is changed, by changing the corresponding state value in the state information, and packaging the changed state information of the first node to the
  • the other MEPs in the maintenance alliance in which the first node is located, and other nodes in the maintenance alliance in which the first node is located may perform corresponding operations according to the received state information of the first node, thereby solving the problem that the nodes can actively Notify other nodes in the same domain with their own status information, and The other nodes perform corresponding processing on the state information of the first node that is saved, and the nodes can actively announce the current function support capability and the corresponding resource availability to other nodes, thereby improving the system response efficiency.
  • the first node is the first MEP
  • the first MEP encapsulates the changed state information of the first MEP into the CCM and sends the same Maintain other MEPs in the alliance so that other MEPs can know the status changes of the first MEP in time and handle them accordingly. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly.
  • FIG. 1(a) is a partial structural diagram of a Capabilial TLV according to an embodiment of the present invention
  • FIG. 1(b) is a partial structural diagram of a sub-TLV according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of another method for status notification between MEPs according to an embodiment of the present invention
  • FIG. 4 is another schematic diagram of a method for status notification between MEPs according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a first MEP according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of another first MEP according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of still another first MEP according to an embodiment of the present invention.
  • the present invention is applicable to the operation, management, and maintenance of Ethernet (ETH-OAM).
  • ETH-OAM Ethernet
  • the concepts involved in ETH-OAM include: Maintenance Domain (MD), Maintenance Association (MA), Maintenance Association End Point (MEP) and Maintenance Domain Intermediate Point (MIP).
  • MD indicates the network covered by the ETH-OAM.
  • the boundaries of the MD are defined by a series of MEPs configured on the port and identified by the "maintenance domain name”.
  • the concept of level (hierarchy) was introduced in the maintenance domain.
  • the maintenance domain is divided into eight levels, identified by the integers 0 ⁇ 7. You can configure multiple maintenance alliance MAs in the maintenance domain as required.
  • Each maintenance federation is a collection of maintenance endpoints in the maintenance domain.
  • the MA is identified by "Maintain Domain Name + Maintenance Alliance Name".
  • the MEP determines the range and boundary of the MD and is the edge node of the MA. MD and MA determine the service and level of the packets sent by the MEP.
  • the MEP is the session body of the ETH-0AM specific function deployment, and is used to send and receive the corresponding 0AM message, and the MEP is the detection body of the ETH-0AM.
  • a method for inter-node state notification according to an embodiment of the present invention includes:
  • the status information of the first node includes: one or more of a management status of the first node, a function type supported by the first node, and resource information corresponding to the supported function type.
  • the first node is a maintenance association end point MEP (hereinafter referred to as "first MEP") in the maintenance domain MD1, and the status information of the first node is carried in the first node multicast.
  • the Capability TLV Type-Length-Value
  • the “other MEPs” may be other MEPs in the maintenance domain MD1 where the first MEP is located, or other MEPs in the maintenance alliance MA where the first MEP is located.
  • the Capability TLV is used to carry the management status of the MEP, the function support status of the MEP, and the resource status corresponding to the MEP support function.
  • the MEP_STATE_VALUE field indicates the management status value of the MEP
  • the FUN_SUPP0RT_VALUE field indicates the MEP support function type value
  • the FUN-RESOURCE-VALUE field indicates the MEP support function type. Resource information.
  • the third line of Figure 2 includes resource information for the types of supported functions of the MEP.
  • the resource information of the MEP supporting function type includes: Synthetic Loss Measurement-Resource (Synthetic Loss Measurement-Resource), Delay Measurement-Resource (Delay Measurement-Resource), Packet Loss Measurement-Resource LM- R ( Loss Measurement-Resource), Link Trace-Resource, Link Loop-Resource, and Loopback-Resource .
  • the first MEP When the type of the support function of the first MEP changes or the resource information corresponding to the supported function type changes, the first MEP encapsulates the changed status information into the CCM, and then sends the CCM multicast to the continuous transmission by triggering the continuous transmission.
  • Other MEPs In the embodiment of the present invention, the number of consecutive transmissions is three times as an example, and the actual situation is not specifically limited.
  • the first CCM carries the status information of the first node in the MD 1 where the first node (the first MEP) is located or the other MEPs in the maintenance alliance.
  • the first CCM carries the current status information of the first node.
  • the second CCM carrying the Capabili TLV is saved and/or updated.
  • the Capab ili TLV carries status information corresponding to the current management status of the first MEP.
  • the method for notifying the inter-node status of the embodiment of the present invention when the current state information of the first node (the first MEP) is changed, the state information of the first MEP after the change state is encapsulated in the CCM, and the multicast is sent to the Other nodes (MEPs) in the MD where the first MEP is located or other MEPs in the maintenance alliance where the first MEP is located, so that other MEPs perform corresponding operations according to the changed state information of the first node, thereby causing the nodes to
  • the status of other MEPs in the same maintenance domain can be actively notified, and the other MEPs in the same maintenance domain or other MEPs in the same maintenance domain can be saved.
  • the status information of a MEP is processed correspondingly, and the nodes can actively notify their current function support capabilities and corresponding resource availability, thereby improving the system response efficiency. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
  • the first MEP When the first MEP is in the normal state, the first MEP acquires the management state value in the current state information of the first MEP, and encapsulates the management state value in the current state information of the first MEP to the first CCM.
  • the value of the management state in the current state information of the first MEP is set to 0.
  • the management status in the status information of the first MEP includes: shutdown, deletion, and active/standby switchover of the device where the first MEP is located.
  • the first MEP of the CCM is a maintenance association end point MEP (hereinafter referred to as "the first MEP") in the maintenance domain MD1, and the status information of the first MEP is carried in the first MEP.
  • the Capability TLV (Type-Length-Value) in the connectivity test packet sent by the multicast is sent to other MEPs in the MD1 or other MEPs in the maintenance association MA1 where the first MEP is located.
  • the management status in the Capab ity TLV in the first CCM sent by the first MEP includes: Admin-Down, Admin-Del, and the active/standby switch of the device where the first MEP is located (Admin-Switch) ).
  • the setting of the MEP management state value is set to 0 only for the values of the Admin-Down, the Admin-Del, and the Admin-Switch, and is not specifically limited.
  • the value of the management state in the state information of the first MEP changes from 0 to 1;
  • the value of the management state in the state information of the first MEP changes from 0 to 1.
  • the value of the Admin-Switch of the Capabiity TLV is set to 1 by 0, and the Capabiity TLV is encapsulated into the second CCM (Continuity Check Message).
  • the multicast is sent to the other MEPs in MD1 or MA1 where the first MEP is located.
  • the second CCM multicast that is encapsulated is sent to the other MEPs in the MD or MA where the first MEP is located by triggering the continuous transmission, including:
  • the status information corresponding to the first MEP, and the CC (Cont inuity Check) status position corresponding to the second CCM in the other MEP is off.
  • the comparison finds that the Admin-Del value and the second MEP are in the second CCM. If the saved ME-Del value of the first MEP is different, the second MEP performs the Admin-Del process, and the CC state location corresponding to the first MEP saved by the second MEP is Down.
  • the second CCM multicast is sent to the other MEP (such as the second MEP) in the MD or the MA where the first MEP is located by triggering the continuous sending, so that the MD of the first MEP or other MEPs in the MA are in accordance with the
  • the second CCM performs a shutdown process, and sets the CC state position of the first MEP in the MD or the other MEP in the MA of the first MEP to off.
  • the corresponding Admin-Down in the Capability TLV in the second CCM sent by the first MEP is set to 1, and immediately triggers the continuous transmission to send the Capability TLV to the second CCM multicast to
  • the other MEP such as the second MEP
  • the second MEP does not need to wait 3.5 times of the transmission cycle time to receive the second CCM sent by the first MEP due to its own state change.
  • the Admin-Down value in the second CCM is pre-stored with the second MEP.
  • the Admin-Down value of the first MEP is different.
  • the Admin-Down process is performed, and the corresponding CC (Continuity Check) status bit is set to the Admin-Down value carried in the second CCM.
  • the Admin-Switch status information in the first CCM and the Admin-Switch status information of the first MEP saved in the second MEP are saved. If the two MEPs are different, the second MEP performs the Admin-Switch state change to 1 according to the Admin-Switch status information of the first MEP carried in the second CCM, and the waiting aging time of the corresponding CC status bit is Down. Waiting for Capability TLV Switching time ( Wait-switch-time ). When the Wait_switch_time ends, if the second MEP does not receive the third CCM sent by the first MEP, the second MEP sets the CC status bit to Down and triggers the generation of the remote fault identification (RDI).
  • RDI remote fault identification
  • the second MEP in the Wait-switch-time receives the third CCM packet with the lj Admin-Switch status set to 0, the second MEP resets the transmission waiting period of 3-5 times.
  • the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
  • the first MEP encapsulates the reset ETH-0AM function and the resource bit value into the Capab ili TLV of the CCM before the global enabling change of the local ETH-0AM function or the situation in which the session resource fails to be required by the user.
  • Medium, and multicast is sent to other MEPs in MD 1 or MA1 (such as the second MEP) according to the sending period.
  • the first MEP encapsulates the state information of the first MEP that is re-set to the first CCM.
  • the first MEP sends the first CCM multicast to the other MEP, so that the other MEPs obtain the status information of the first MEP according to the first CCM, and according to the status information of the first MEP carried by the first CCM to other MEPs.
  • the management device is configured to feed back state information of the first MEP, and store current state information of the first MEP.
  • the first MEP sends the first CCM to the other MEPs (such as the second MEP) in the MD 1 or MA1 where the first MEP is located by triggering the continuous transmission, so that the second MEP will carry the first one carried by the first CCM.
  • the status information of the MEP is compared with the CCM sent when the first MEP is in the normal state, and the global enabling change of the ETH-0AM function of the first MEP or the shortage of the session resources is determined, that is, the ETH-0AM function and the resource bit value are changed.
  • the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two A fault, and deal with it accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
  • the embodiment of the present invention is only described by taking the method of the first node to implement the inter-MEP state advertisement as an example.
  • the other MEPs in the embodiment also have the function corresponding to the first MEP, that is, the first MEP.
  • the method of state notification between the MEPs is also applicable to other MEPs.
  • the first MEP can be interchanged with other MEPs at the functional location, which is not specifically limited by the present invention.
  • the embodiment of the present invention provides a first MEP 4, which may be any maintenance termination point in the Ethernet.
  • the specific form of the first MEP is not specifically limited.
  • the method of any of the foregoing MEP status notifications of the embodiments of the present invention may be implemented.
  • the first MEP 4 includes an acquisition unit 41 and a transmission unit 42. among them:
  • the obtaining unit 41 is configured to obtain current state information of the first MEP, where the current state information of the first MEP includes: one of a management state of the first MEP, a type of the supported function, and resource information corresponding to the type of the function.
  • the sending unit 42 is configured to, when the current state information of the first MEP changes, trigger the continuous sending of the state information of the change of the first MEP to the first connectivity detection message CCM, and multicast the first CCM. It is sent to the maintenance domain MD where the first MEP is located or the other node in the maintenance association MA. The other MEPs obtain the current state information of the first MEP in the same maintenance domain or maintenance alliance MA through the first CCM.
  • the first CCM carries current state information of the first MEP.
  • the MD of the first MEP or another MEP in the MA receives the first CCM
  • the MD of the first MEP or other MEPs of the MA changes according to the state information of the first MEP carried in the first CCM. Perform corresponding processing.
  • the first MEP of the embodiment of the present invention when the state information of the first MEP is changed, encapsulates the changed state information, and triggers continuous transmission to multicast the encapsulated state information to the MD or MA where the first MEP is located.
  • Other MEPs so that other MEPs perform corresponding operations according to the status information of the first MEP, so that MEPs can actively notify their own current status information to other MEPs in the same maintenance domain or MA, and save other MEPs to themselves.
  • Corresponding processing is performed on the status information of the first MEP, and the MEP can actively announce its current function support capability and corresponding resource availability, thereby improving the system response efficiency.
  • the first MEP fails and the link between the first MEP and another MEP in the maintenance alliance in which the first MEP is located is not faulty
  • the first MEP Other MEPs in the maintenance alliance can distinguish these two faults in time and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
  • the transmitting unit 42 may include: a packaging subunit 421 and a transmitting subunit 422, where:
  • a package subunit 421, configured to encapsulate the changed management state to the first CCM when the management state in the current state information of the first MEP changes;
  • the sending sub-unit 422 is configured to send the encapsulated first CCM multicast to the other MEPs in the MD or MA where the first MEP is located by triggering continuous transmission.
  • the encapsulating subunit 421 is further configured to: before the management state change in the current state information of the first MEP, that is, when the first MEP is in a normal state, the first MEP acquires the current state information of the first MEP. Management state value, and encapsulating the current state information of the first MEP into the second CCM.
  • the value of the management state in the current state information of the first MEP is set to 0;
  • the CCM may also not carry the status information of the first MEP.
  • the sending sub-unit 422 is further configured to send the second CCM multicast to the other MEPs in the MD or MA where the first MEP is located according to a preset sending period.
  • the management status change of the first MEP includes:
  • the value of the management state in the state information of the first MEP changes from 0 to 1;
  • the value of the management state in the state information of the first MEP changes from 0 to 1;
  • the value of the management state in the state information of the first MEP changes from 0 to 1.
  • the sending subunit 422 is specifically configured to:
  • the other MEP deletes the state information corresponding to the first MEP saved by the first CCM, and sets the connectivity detection CC status value corresponding to the first MEP saved by itself.
  • the management status in the status information of the first MEP includes: off, deleting, and active/standby switching of the device where the first MEP is located.
  • the sending unit 42 further includes a setting subunit 423, where: the setting subunit 423 is configured to: when the function of the first MEP and/or the resource of the corresponding function is changed, The type of function supported in the current state information of a MEP and the value corresponding to the resource information of the corresponding supporting function are reset.
  • the package subunit 421 is further configured to encapsulate the state information of the first MEP after being repositioned to the first
  • the sending subunit 422 is further configured to send the first CCM multicast to the other MEPs in the MD or MA where the first MEP is located by triggering continuous transmission.
  • the CCM is configured to obtain the state information of the first MEP according to the first CCM, and feed back the current state information of the first MEP to the management device where the first CCM is located, and store the current MEP information. Current status information.
  • the first MEP of the embodiment of the present invention when the state information of the first MEP changes, triggers the continuous transmission by changing the corresponding state value in the state information, and by changing the state information after the state is changed by the package
  • the encapsulated state information is multicast and sent to the other MEPs in the MD or the MA where the first MEP is located, so that the MDs in which the first MEP is located or other MEPs in the MA perform corresponding operations according to the state information of the first MEP. Therefore, the response time of the system is saved. Therefore, the MEP can actively notify the other MEPs in the same maintenance domain or MA in the same maintenance domain or other MEPs in the same maintenance domain or ME.
  • the status information is processed correspondingly, and the MEP can actively announce its current function support capability and corresponding resource availability, thereby improving the system response efficiency. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
  • An embodiment of the present invention provides a first MEP 5, as shown in FIG. 8, the first MEP 5 includes: one or more processors 51, one or more memories 52, one or more communication interfaces 53 and a bus
  • the processor 51, the memory 52, and the communication interface 53 are connected by a bus 54 and complete communication with each other.
  • the bus 54 can be an Industry Standard Architecture (ISA) bus or a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. .
  • the bus 54 can include an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus. among them:
  • the memory 52 is for storing executable program code, the program code including computer operating instructions.
  • the memory 52 may contain high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
  • the processor 51 may be one or more central processing units (CPUs), or one or more specific integrated circuits (ASICs), or configured to implement the present invention.
  • CPUs central processing units
  • ASICs application specific integrated circuits
  • the communication interface 53 is mainly used to implement communication between the MEPs in this embodiment.
  • the processor 51 is configured to acquire current state information of the first MEP, where the first MEP is current.
  • the status information includes: at least one or more of a management status of the first MEP, a supported function type, and resource information corresponding to the type of the support function;
  • the processor 51 is further configured to: when the current state information of the first MEP changes, trigger the continuous sending of the state information of the change of the first MEP to the first connectivity detection message CCM, and pass the first CCM.
  • the communication interface 53 is multicast and sent to the maintenance domain MD where the first MEP is located or the other MEPs in the maintenance alliance MA.
  • the other MEPs acquire the current state information of the first MEP located in the same MD or MA through the first CCM.
  • the first CCM carries current state information of the first MEP.
  • the MDs in which the first MEP is located receive the first CCM
  • the MDs in which the first MEP is located or other MEPs in the MA change according to the state information of the first MEP carried by the first CCM.
  • Perform corresponding processing includes updating or saving or deleting status information related to the first MEP saved by itself.
  • the status information after the state is changed by the package is triggered to continuously send the encapsulated state information to the MD or MA where the first MEP is located.
  • the other MEPs in the other MEPs so that other MEPs can perform corresponding operations according to the current state information of the first MEP, so that the MEPs can actively notify their MEDs of other MEPs in the same MD or MA, and make other MEPs themselves.
  • the saved MEP status information is processed correspondingly, and the MEP can actively announce its current function support capability and corresponding resource availability, thereby improving the system response efficiency.
  • the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, since only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
  • processor 51 is further configured to: when the management state in the current state information of the first MEP changes, package the changed management state to the first CCM;
  • the MD of the first MEP or another MEP in the MA receives the first CCM
  • the MD of the first MEP or another MEP of the MA changes the first MEP saved by itself according to the first CCM. status information.
  • the processor 51 is further configured to: before the management state change in the current state information of the first MEP, that is, when the first MEP is in a normal state, the first MEP acquires a current state information of the first MEP.
  • the management status value in the interest and encapsulates the current status information of the first MEP (including the management status value in the current status information) to the second CCM.
  • the value of the management state in the current state information of the first MEP is set to 0.
  • the first CCM may not carry the state information of the first MEP.
  • the processor 51 is further configured to multicast the second CCM to the other MEPs in the MD or the MA where the first MEP is located, according to the preset sending period.
  • the management status change of the first MEP includes:
  • the value of the management state in the state information of the first MEP changes from 0 to 1;
  • the value of the management state in the state information of the first MEP changes from 0 to 1;

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a method and device for announcing a state between nodes, which relate to the technical field of communications, and realize active notification of a state of a current node for other nodes in the same domain between nodes, other nodes being enabled to conduct corresponding processing on the state; meanwhile, active notification of a function support capability of the current node and a corresponding resource availability condition can occur between nodes, thereby improving the system response efficiency. The method comprises: when state information about a first node changes, packaging the changed state information about the first node into a first notification message, and sending the first notification message to other nodes, wherein the state information about the first node comprises: a management state of the first node, a supported function category and one piece or multiple pieces of resource information corresponding to the supported function category. The embodiments of the present invention can be applied to a maintenance end point inside the Ethernet.

Description

一种节点间状态通告的方法和设备  Method and device for status notification between nodes
本申请要求于 2013年 09月 16日提交中国专利局、 申请号为 201310422696.2、 发 明名称为 "一种节点间状态通告的方法和设备"的中国专利申请的优先权, 其全部内容 通过引用结合在本申请中。 The present application claims priority to Chinese Patent Application No. 201310422696.2, entitled "A Method and Apparatus for State Notification of Inter-Node Status", filed on September 16, 2013, the entire contents of which are incorporated herein by reference. In this application.
技术领域 Technical field
本发明涉及通信技术领域, 尤其涉及一种节点间状态通告的方法和设备。  The present invention relates to the field of communications technologies, and in particular, to a method and device for status notification between nodes.
背景技术 Background technique
关于以太网对应的操作、 管理与维护 ETH-OAM (Ethernet- Operations, Administration and Maintenance) , ETH-OAM 主要包含故障管理、 性能管理 两个方面的功能集, ETH-OAM遵从标准:电气和电子工程师协会 IEEE (Institute of Electrical and Electronics Engineers)标准 802. lag禾口国际电信联盟标 ( International Telecommunications Union) ITU-TY.1731; 其中 ETH-0AM 的具体功能包括:连通性检测 CC(Continuity Check)、环回检测 LB( Loopback)、 链路追踪 LT (Link Trace) 、 丢包测量 LM (Loss Measurement) 、 时延测量 DMCDelay Measurement)以及合成丢包测量 SLM( Synthetic Loss Measurement )。 ETH-OAM涉及到的概念主要包括: 维护域 MD (Maintenance Domain) 、 维护联 盟 MA ( Maintenance Association ) 、 维护联盟终结点 MEP ( Maintenance association End Point )禾口维护中间点 MIP ( Maintenance domain Intermediate Point) 。 这里 ETH_0AM是基于 MD、 MA、 MEP禾口 MIP来部署的, MEP ¾ ETH-OAM 的检测主体。  ETH-OAM (Ethernet-Operations, Administration and Maintenance), ETH-OAM mainly includes two functions: fault management and performance management. ETH-OAM compliance standards: electrical and electronic engineers The IEEE (Institute of Electrical and Electronics Engineers) standard 802. lag and International Telecommunications Union (ITU Telecommunications Union) ITU-TY.1731; The specific functions of ETH-0AM include: Connectivity Test CC (Continuity Check), ring Back detection LB (Loopback), Link Trace (LT), Loss Measurement LM (Loss Measurement), Time Delay Measurement (DMCDelay Measurement) and Synthetic Loss Measurement (SLM). The concepts involved in ETH-OAM include: maintenance domain MD (Maintenance Domain), Maintenance Alliance (MA), Maintenance Association End Point (MEP), and Maintenance Domain Intermediate Point (MIP). Here ETH_0AM is deployed based on MD, MA, MEP and MIP, and the detection body of MEP 3⁄4 ETH-OAM.
其中, 现有技术中连通性检测报文 CCM (Continuity Check Message) 为 MEP产生的组播帧, 被广播到相同的 MA内的所有其他 MEP; 其中 CCM在 MEP间 周期性地交换, 允许 MEP发现一个维护域 MD里的其他 MEP之间的连通性。 为了 检测故障, 本地 MEP会维护一个来自远端 MEP的 CCM列表, 该 CCM列表是基于 配置的远端 MEP来创建的,当本地 MEP在预设周期里没有接收到配置的远端 MEP 的 CCM, 本地 MEP会发出告警。  The CM (Continuity Check Message) in the prior art is a multicast frame generated by the MEP and broadcast to all other MEPs in the same MA. The CCM is periodically exchanged between MEPs to allow MEP discovery. One maintains connectivity between other MEPs in the domain MD. In order to detect the fault, the local MEP maintains a CCM list from the remote MEP. The CCM list is created based on the configured remote MEP. When the local MEP does not receive the configured CCM of the remote MEP in the preset period, The local MEP will issue an alarm.
发明人发现现有技术中至少存在如下问题: 当本地 MEP超过 3.5倍发包间 隔的时间里没有接收到某个远端 MEP发送的 CCM时, 则认为本端 MEP和该远端 MEP之间的链路发生故障, 结果, 当本端 MEP和该远端 MEP之间的链路发生故 障时本地 MEP无法及时获取远端 MEP的状态信息,进而使得系统响应时间延长。 The inventors have found that at least the following problems exist in the prior art: When the local MEP exceeds 3.5 times the private room If the CCM sent by a remote MEP is not received in the interval, the link between the local MEP and the remote MEP is faulty. As a result, the link between the local MEP and the remote MEP. When the path fails, the local MEP cannot obtain the status information of the remote MEP in time, which in turn increases the response time of the system.
发明内容 Summary of the invention
本发明的实施例提供一种节点间状态通告的方法和设备, 以提高系统响应 效率。  Embodiments of the present invention provide a method and apparatus for inter-node status advertisement to improve system response efficiency.
第一方面, 提供一种节点间状态通告的方法, 包括:  In a first aspect, a method for status notification between nodes is provided, including:
当第一节点的状态信息发生变化时, 将所述第一节点的发生变化的状态信 息封装至第一通告报文, 并将所述第一通告报文发送至其他节点; 所述第一节 点的状态信息包括: 所述第一节点的管理状态、 支持的功能种类以及对应支持 所述功能种类的资源信息中的一种或多种。  When the state information of the first node is changed, the state information of the change of the first node is encapsulated into the first advertisement packet, and the first advertisement packet is sent to other nodes; The status information includes: one or more of a management status of the first node, a supported function type, and resource information corresponding to the type of the supported function.
在第一方面的第一种可能的实现方式中, 所述第一节点是维护联盟终结点 In a first possible implementation manner of the first aspect, the first node is a maintenance alliance termination point
MEP。 MEP.
结合第一方面的第一种可能的实现方式, 在第一方面的第二种可能的实现 方式中, 所述当所述第一 MEP的状态信息发生变化时, 将所述第一 MEP的发生 变化的状态信息封装至第一 CCM,并将所述第一 CCM发送至所述其他 MEP,包括: 当所述第一 MEP的状态信息中的管理状态更改时, 将更改后的所述管理状 态封装至所述第一 CCM;  With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, when the state information of the first MEP changes, the first MEP occurs. Transmitting the changed state information to the first CCM and transmitting the first CCM to the other MEPs includes: when the management state in the state information of the first MEP changes, the changed management state Encapsulating to the first CCM;
将封装后的所述第一 CCM发送至所述其他 MEP。  The encapsulated first CCM is sent to the other MEPs.
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的实现 方式中, 所述第一 MEP的状态信息中的 MEP管理状态更改之前, 包括:  With the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, before the MEP management state in the state information of the first MEP is changed, the method includes:
当所述第一 MEP处于正常状态时, 所述第一 MEP获取所述第一 MEP的状态 信息中的管理状态值, 并将获取的所述第一 MEP处于正常状态时的状态信息封 装至第二 CCM;  When the first MEP is in a normal state, the first MEP acquires a management state value in the state information of the first MEP, and encapsulates the obtained state information of the first MEP in a normal state to the first Two CCM;
将所述第二 CCM发送至所述其他 MEP。  Sending the second CCM to the other MEPs.
结合第一方面的第二种可能的实现方式, 在第一方面的第四种可能的实现 方式中, 所述第一 MEP处于正常状态时, 所述第一 MEP的状态信息中的管理状 态的值设置为 0, 所述第一 MEP的管理状态更改包括:  With reference to the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, when the first MEP is in a normal state, the management state in the state information of the first MEP is The value is set to 0, and the management state change of the first MEP includes:
当所述第一 MEP被管理设备删除时, 所述第一 MEP的状态信息中的管理状 态的值由 0变为 1 ; When the first MEP is deleted by the management device, the management status in the status information of the first MEP The value of the state changes from 0 to 1;
或者  Or
当所述第一 MEP被管理设备关闭时, 所述第一 MEP的状态信息中的管理状 态的值由 0变为 1 ;  When the first MEP is closed by the management device, the value of the management state in the state information of the first MEP is changed from 0 to 1;
或者,  Or,
当所述第一 MEP所在的管理设备发生主备切换时, 所述第一 MEP的状态信 息中的管理状态的值由 0变为 1。  When the active/standby switchover occurs on the management device where the first MEP is located, the value of the management state in the state information of the first MEP changes from 0 to 1.
结合第一方面的第二种或第四种可能的实现方式, 在第一方面的第五种可 能的实现方式中, 所述将封装后的所述第一 CCM发送至所述其他 MEP, 包括: 通过触发连续发送将所述第一 CCM发送至所述其他 MEP。 In conjunction with the second or fourth possible implementation of the first aspect, in a fifth possible implementation manner of the first aspect, the sending the encapsulated first CCM to the other MEP includes : transmitting the first CCM to the other MEPs by triggering a continuous transmission.
结合第一方面的第一种至第四种可能的实现方式中的任意一个, 在第一方 面的第六种可能的实现方式中, 所述第一 MEP的状态信息中的管理状态包括: 关闭、 删除以及所述第一 MEP所在设备的主备切换。  With reference to any one of the first to fourth possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, the management status in the status information of the first MEP includes: And delete the active/standby switch of the device where the first MEP is located.
结合第一方面的第一种可能的实现方式,在第一方面的第七种实现方式中, 所述当所述第一 MEP的状态信息发生变化时, 将所述第一 MEP的发生变化的状 态信息封装至第一 CCM, 并将所述第一 CCM发送至所述其他 MEP, 包括:  With reference to the first possible implementation manner of the first aspect, in a seventh implementation manner of the first aspect, when the state information of the first MEP changes, the occurrence of the first MEP changes. The status information is encapsulated to the first CCM, and the first CCM is sent to the other MEP, including:
当所述第一 MEP 的功能和 /或对应该功能的资源发生更改时, 将所述第一 MEP 的状态信息中支持的功能种类以及对应的支持该功能的资源信息对应的值 重新置位;  Resetting the value of the function supported in the state information of the first MEP and the corresponding value corresponding to the resource information supporting the function when the function of the first MEP and/or the resource corresponding to the function is changed;
将重新置位后的状态信息封装至第一 CCM;  Encapsulating the re-set state information to the first CCM;
将所述第一 CCM发送至所述其他 MEP。  Sending the first CCM to the other MEPs.
结合第一方面的第一种至第七种可能的实现方式中的任意一个, 在第一方 面的第八种实现方式中,所述其他 MEP与所述第一 MEP位于同一维护联盟 MA内。  With reference to any one of the first to the seventh possible implementation manners of the first aspect, in the eighth implementation manner of the first aspect, the other MEP is located in the same maintenance alliance MA as the first MEP.
结合第一方面的第一种至第八种可能的实现方式中的任意一个, 在第一方 面的第九种实现方式中,所述第一 CCM包括 Capab i l i ty TLV,该 Capab i 1 i ty TLV 用于携带所述第一 MEP的状态信息。  In conjunction with any one of the first to eighth possible implementations of the first aspect, in a ninth implementation of the first aspect, the first CCM includes a Capab ili TLV, the Capab i 1 i ty The TLV is used to carry status information of the first MEP.
结合第一方面的第九种可能的实现方式,在第一方面的第十种实现方式中, 所述 Capab i l i ty TLV还包括 SubTLV, 所述 SubTLV用于携带所述第一 MEP的状 态信息中的管理状态、 支持的功能种类以及对应支持所述功能种类的资源信息 中的一种或多种。 With reference to the ninth possible implementation manner of the first aspect, in a tenth implementation manner of the first aspect, the Capab ili TLV further includes a SubTLV, where the SubTLV is used to carry the status information of the first MEP. Management status, types of supported functions, and resource information corresponding to the types of functions supported One or more of them.
第二方面, 一种第一维护联盟终结点 MEP, 包括获取单元和发送单元, 其 中: In a second aspect, a first maintenance alliance termination point MEP includes an obtaining unit and a sending unit, where:
所述获取单元, 用于获取所述第一 MEP的状态信息, 所述第一 MEP的状态 信息包括: 所述第一 MEP的管理状态、 支持的功能种类以及对应支持所述功能 种类的资源信息中的一种或多种;  The acquiring unit is configured to acquire the state information of the first MEP, where the state information of the first MEP includes: a management state of the first MEP, a supported function type, and resource information corresponding to the supported functional category. One or more of
所述发送单元, 用于当所述第一 MEP的状态信息发生变化时, 将所述第一 MEP的发生变化的状态信息封装至第一连通性检测报文 CCM, 并将所述第一 CCM 发送至其他 MEP。 在第二方面的第一种可能的实现方式中, 所述发送单元, 包括:  The sending unit is configured to, when the state information of the first MEP changes, encapsulate the state information of the change of the first MEP into the first connectivity detection message CCM, and the first CCM Send to other MEPs. In a first possible implementation manner of the second aspect, the sending unit includes:
封装子单元, 用于当所述第一 MEP的状态信息中的管理状态更改时, 将更 改后的所述管理状态封装至所述第一 CCM;  a packaging subunit, configured to encapsulate the changed management state to the first CCM when a management state in the state information of the first MEP is changed;
发送子单元, 用于将封装后的所述第一 CCM发送至所述其他 MEP。  And a sending subunit, configured to send the encapsulated first CCM to the other MEP.
结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能的实现 方式中, 所述封装子单元, 还用于在所述第一 MEP的状态信息中的管理状态更 改之前, 当所述第一 MEP处于正常状态时, 所述第一 MEP获取所述第一 MEP的 状态信息中的管理状态值, 并将所述第一 MEP处于正常状态时的状态信息封装 至第二 CCM;  With reference to the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the encapsulating subunit is further configured to: change management status in status information of the first MEP Before the first MEP is in a normal state, the first MEP acquires a management state value in the state information of the first MEP, and encapsulates the state information when the first MEP is in a normal state. Two CCM;
所述发送子单元, 还用于根据将所述第二 CCM发送至所述其他 MEP。  The sending subunit is further configured to send the second CCM to the other MEP according to the sending.
结合第二方面的第一种可能的实现方式, 在第二方面的第三种可能的实现 方式中, 所述第一 MEP处于正常状态时, 所述第一 MEP的当前状态信息中的管 理状态的值设置为 0, 所述第一 MEP的管理状态更改包括:  With reference to the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, when the first MEP is in a normal state, the management state in the current state information of the first MEP The value of the first MEP is changed to 0, and the management status change of the first MEP includes:
当所述第一 MEP被管理设备删除时, 所述第一 MEP的状态信息中的管理状 态的值由 0变为 1 ;  When the first MEP is deleted by the management device, the value of the management state in the state information of the first MEP is changed from 0 to 1;
或者  Or
当所述第一 MEP被管理设备关闭时, 所述第一 MEP的状态信息中的管理状 态的值由 0变为 1 ;  When the first MEP is closed by the management device, the value of the management state in the state information of the first MEP is changed from 0 to 1;
或者,  Or,
当所述第一 MEP所在的管理设备发生主备切换时, 所述第一 MEP的状态信 息中的管理状态的值由 0变为 1。 When the management device where the first MEP is located has an active/standby switchover, the status information of the first MEP The value of the management state in the message changes from 0 to 1.
结合第一方面的第一种或第三种可能的实现方式, 在第二方面的第四种可 能的实现方式中, 所述发送子单元, 具体用于:  In conjunction with the first or third possible implementation of the first aspect, in a fourth possible implementation of the second aspect, the sending subunit is specifically configured to:
将所述第一 CCM发送至所述其他 MEP。  Sending the first CCM to the other MEPs.
结合第二方面、第二方面的第一种至第五种可能的实现方式中的任意一个, 在第二方面的第五种可能的实现方式中, 所述第一 MEP的状态信息中的管理状 态包括: 关闭、 删除以及所述第一 MEP所在设备的主备切换。  With reference to the second aspect, any one of the first to fifth possible implementation manners of the second aspect, in a fifth possible implementation manner of the second aspect, the management in the status information of the first MEP The status includes: shutdown, deletion, and active/standby switchover of the device where the first MEP is located.
结合第二方面, 在第二方面的第六种可能的实现方式中, 所述发送单元, 还包括:  With reference to the second aspect, in a sixth possible implementation manner of the second aspect, the sending unit, further includes:
设置子单元,用于当所述第一 MEP的功能和 /或对应该功能的资源发生更改 时, 将所述第一 MEP的状态信息中支持的功能种类以及对应的支持该功能的资 源信息对应的值重新置位;  And a setting subunit, configured to: when the function of the first MEP and/or the resource corresponding to the function change, the function type supported in the state information of the first MEP and the corresponding resource information supporting the function Value is reset;
所述封装子单元, 还用于将重新置位后的状态信息封装至第一 CCM;  The package subunit is further configured to encapsulate the repositioned state information to the first CCM;
所述发送子单元, 还用于通过触发连续发送将所述第一 CCM发送至所述其 他 MEP。 结合第二方面、第二方面的第一种至第六种可能的实现方式中的任意一个, 在第二方面的第七种可能的实现方式中, 所述其他 MEP与所述第一 MEP位于同 一维护联盟 MA内。  The sending subunit is further configured to send the first CCM to the other MEP by triggering continuous transmission. With reference to the second aspect, any one of the first to the sixth possible implementation manners of the second aspect, in a seventh possible implementation manner of the second aspect, the other MEP is located in the first MEP Within the same maintenance alliance MA.
结合第二方面、第二方面的第一种至第七种可能的实现方式中的任意一个, 在第二方面的第八种可能的实现方式中, 所述第一 CCM包括 Capab i l i ty TLV, 该 Capab i l i ty TLV用于携带所述第一 MEP的状态信息。 结合第二方面的第八种可能的实现方式, 在第二方面的第九种可能的实现 方式中, 所述 Capab i l i ty TLV还包括 SubTLV, 所述 SubTLV用于携带所述第一 MEP 的状态信息中的管理状态、 支持的功能种类以及对应支持所述功能种类的 资源信息中的一种或多种。  With reference to the second aspect, any one of the first to the seventh possible implementation manners of the second aspect, in the eighth possible implementation manner of the second aspect, the first CCM includes a Capab ili TLV, The Capab ili TLV is configured to carry status information of the first MEP. In conjunction with the eighth possible implementation of the second aspect, in a ninth possible implementation manner of the second aspect, the Capab ili TLV further includes a SubTLV, where the SubTLV is configured to carry a state of the first MEP One or more of the management status in the information, the type of supported function, and the resource information corresponding to the type of the supported function.
本发明实施例的节点间状态通告的方法和设备, 当第一节点的状态信息改 变时, 通过改变该状态信息中对应的状态值, 并将该第一节点的改变的状态信 息封装后发送至该第一节点所在的维护联盟内的其他 MEP, 该第一节点所在的 维护联盟内的其他节点可以根据接收到的该第一节点的状态信息做出对应操 作, 从而解决了节点间能够主动将自身的状态信息通知同一域其他节点, 并使 得其他节点对其保存的该第一节点的状态信息进行对应的处理, 而且节点间能 够主动向其他节点通告自身当前的功能支持能力以及对应资源可用情况, 进而 提高了系统响应效率。 另外, 如果该方案应用于 Ethernet 0AM中, 第一节点是 第一 MEP, 则第一 MEP的状态发生改变时, 第一 MEP将该第一 MEP的改变后的 状态信息封装到 CCM中发送给同一维护联盟内的其他 MEP, 以便其他 MEP及时 获知该第一 MEP的状态变化并做出相应处理。 在第一 MEP出现故障而第一 MEP 到该第一 MEP所在的维护联盟内的其他 MEP之间的链路没有故障的情况下, 该 第一 MEP所在的维护联盟内的其他 MEP可以及时区分得知这两种故障, 并做出 相应处理。 The method and device for inter-node state notification according to the embodiment of the present invention, when the state information of the first node is changed, by changing the corresponding state value in the state information, and packaging the changed state information of the first node to the The other MEPs in the maintenance alliance in which the first node is located, and other nodes in the maintenance alliance in which the first node is located may perform corresponding operations according to the received state information of the first node, thereby solving the problem that the nodes can actively Notify other nodes in the same domain with their own status information, and The other nodes perform corresponding processing on the state information of the first node that is saved, and the nodes can actively announce the current function support capability and the corresponding resource availability to other nodes, thereby improving the system response efficiency. In addition, if the solution is applied to the Ethernet 0AM, the first node is the first MEP, and when the state of the first MEP changes, the first MEP encapsulates the changed state information of the first MEP into the CCM and sends the same Maintain other MEPs in the alliance so that other MEPs can know the status changes of the first MEP in time and handle them accordingly. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1 (a)为本发明的实施例的一种 Capab i l i ty TLV的部分组成结构示意图; 图 1 (b)为本发明的实施例的一种 sub-TLV的部分组成结构示意图; 图 2为本发明的实施例的一种 Capab i l i ty TLV的比特位示意图; 图 3为本发明的实施例的另一种 MEP间状态通告的方法的流程示意图; 图 4为本发明的实施例的又一种 MEP间状态通告的方法的流程示意图; 图 5为本发明的实施例的一种第一 MEP的结构示意图;  1(a) is a partial structural diagram of a Capabilial TLV according to an embodiment of the present invention; FIG. 1(b) is a partial structural diagram of a sub-TLV according to an embodiment of the present invention; FIG. 3 is a schematic flowchart of another method for status notification between MEPs according to an embodiment of the present invention; FIG. 4 is another schematic diagram of a method for status notification between MEPs according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of a first MEP according to an embodiment of the present invention; FIG.
图 6为本发明的实施例的另一种第一 MEP的结构示意图;  6 is a schematic structural diagram of another first MEP according to an embodiment of the present invention;
图 7为本发明的实施例的又一种第一 MEP的结构示意图;  FIG. 7 is a schematic structural diagram of still another first MEP according to an embodiment of the present invention; FIG.
图 8为本发明的实施例的又一第一 MEP的结构示意图。  FIG. 8 is a schematic structural diagram of still another first MEP according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的 实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动 前提下所获得的所有其他实施例, 都属于本发明保护的范围。 本发明实施例中提到的 "节点" 均为节点网络设备, 或部署在网络设备上 的功能实体。 The technical solutions in the embodiments of the present invention will be clearly described in conjunction with the drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention. The "nodes" mentioned in the embodiments of the present invention are node network devices, or functional entities deployed on network devices.
本发明适用于以太网的操作、管理与维护 ETH-OAM(EtherNet- Operations, Administration and Maintenance) 。 其中, ETH-OAM 涉及的概念主要包括: 维护域 MD (Maintenance Domain) 、 维护联盟 MA (Maintenance Association) 、 维护联盟终结点 MEP (Maintenance association End Point) 禾口维护中间点 MIP (Maintenance domain Intermediate Point) 。 MD指明了 ETH-OAM所覆盖的 网络。 MD的边界是由配置在端口上的一系列 MEP定义的, 并以 "维护域名" 来 标识。 维护域中引入了级别 (层次) 的概念。 维护域共分为八级, 用整数 0〜7 来标识。 在维护域内根据需要可以配置多个维护联盟 MA。 每个维护联盟是维护 域内一些维护端点的集合。 其中 MA 以 "维护域名 +维护联盟名" 来标识。 MEP 确定了 MD的范围和边界, 是 MA的边缘节点。 其中 MD和 MA确定了该 MEP所发 出的报文的业务和级别。 这里 MEP是 ETH-0AM具体的功能部署的会话主体, 用 于收发对应的 0AM报文, 并且 MEP为 ETH-0AM的检测主体。 本发明实施例的一 种节点间状态通告的方法, 包括:  The present invention is applicable to the operation, management, and maintenance of Ethernet (ETH-OAM). Among them, the concepts involved in ETH-OAM include: Maintenance Domain (MD), Maintenance Association (MA), Maintenance Association End Point (MEP) and Maintenance Domain Intermediate Point (MIP). . The MD indicates the network covered by the ETH-OAM. The boundaries of the MD are defined by a series of MEPs configured on the port and identified by the "maintenance domain name". The concept of level (hierarchy) was introduced in the maintenance domain. The maintenance domain is divided into eight levels, identified by the integers 0~7. You can configure multiple maintenance alliance MAs in the maintenance domain as required. Each maintenance federation is a collection of maintenance endpoints in the maintenance domain. The MA is identified by "Maintain Domain Name + Maintenance Alliance Name". The MEP determines the range and boundary of the MD and is the edge node of the MA. MD and MA determine the service and level of the packets sent by the MEP. Here, the MEP is the session body of the ETH-0AM specific function deployment, and is used to send and receive the corresponding 0AM message, and the MEP is the detection body of the ETH-0AM. A method for inter-node state notification according to an embodiment of the present invention includes:
第一节点获取该第一节点的当前状态信息。  The first node acquires current state information of the first node.
其中, 该第一节点的状态信息包括: 第一节点的管理状态、 第一节点支持 的功能种类以及对应支持功能种类的资源信息中的一种或多种。  The status information of the first node includes: one or more of a management status of the first node, a function type supported by the first node, and resource information corresponding to the supported function type.
假定第一节点为维护域 MD1 中的某个维护联盟终结点 MEP (Maintenance association End Point) (以下称为 "第一 MEP" ) , 该第一节点的状态信息 被携带在该第一节点组播发送的连通性检测报文 CCM 中的 Capability TLV (Type-Length-Value) 中发给其他 MEP。 这里, "其他 MEP" 可以是第一 MEP 所在的维护域 MD1 内的其他 MEP, 也可以是第一 MEP所在的维护联盟 MA内的其 他 MEP。 Capability TLV用于携带 MEP的管理状态、 MEP的功能支持状态和 MEP 支持功能对应的资源状态。 Capability TLV 的结构如图 1 (a) 所示, 其中 Capability TLV的类型 TLV TYPE为 1字节; Capability TLV的长度 TLV LENGTH 为 2字节; C寧 bility TLV的值 TLV VALUE包含: MEP状态 (MEP_STATE_VALUE: 2 字节) 、 功能支持 ( FUN_SUPPORT_VALUE: 2 字节) 以及功能资源 ( FUN_RESOURCE_VALUE: 2字节) 。 Assume that the first node is a maintenance association end point MEP (hereinafter referred to as "first MEP") in the maintenance domain MD1, and the status information of the first node is carried in the first node multicast. The Capability TLV (Type-Length-Value) in the sent connectivity check message CCM is sent to other MEPs. Here, the "other MEPs" may be other MEPs in the maintenance domain MD1 where the first MEP is located, or other MEPs in the maintenance alliance MA where the first MEP is located. The Capability TLV is used to carry the management status of the MEP, the function support status of the MEP, and the resource status corresponding to the MEP support function. The structure of the Capability TLV is shown in Figure 1 (a), where the Capability TLV type TLV TYPE is 1 byte; the Capability TLV length TLV LENGTH is 2 bytes; C Ning bility TLV value TLV VALUE contains: MEP status (MEP_STATE_VALUE : 2 bytes) , function support ( FUN_SUPPORT_VALUE: 2 bytes) and function resource ( FUN_RESOURCE_VALUE : 2 bytes).
MEP_STATE_VALUE字段表示 MEP的管理状态值, FUN_SUPP0RT_VALUE字段表 示 MEP支持功能种类值, FUN-RESOURCE-VALUE字段表示 MEP的支持功能种类的 资源信息。 The MEP_STATE_VALUE field indicates the management status value of the MEP, the FUN_SUPP0RT_VALUE field indicates the MEP support function type value, and the FUN-RESOURCE-VALUE field indicates the MEP support function type. Resource information.
其中, Capability TLV的比特位如图 2所示。 图 2的第一行中包括了 MEP 的管理状态。其中, MEP的管理状态包括:关闭(Admin-Down)、删除(Admin-Del) 以及 MEP所在设备的主备切换 (Admin-Switch) 。 MEP的管理状态还可以包括: 等待切换时间 (Wait-switch-time) 。 当 MEP的管理状态中的任意一个发生变 化时, 第一 MEP 将向其他 MEP 发送连通性检测报文 CCM (Continuity Check Message), 以便其他 MEP根据该 CCM中携带的第一 MEP的管理状态值做出相应 处理。 The bit of the Capability TLV is shown in Figure 2. The first line of Figure 2 includes the management status of the MEP. The management status of the MEP includes: Admin-Down, Admin-Del, and the Admin-Switch of the device where the MEP resides. The management status of the MEP may also include: Waiting time (Wait-switch-time). When any one of the management states of the MEP changes, the first MEP sends a Continuity Check Message (CCM) to the other MEPs, so that other MEPs can perform the management state value of the first MEP carried in the CCM. The corresponding processing.
图 2的第二行中包括了 MEP的支持功能种类, 其中, MEP的支持功能种类 包括: 合成丢包测量 -支持 SLM-S (Synthetic Loss Measurement -Support) 时延测量 -支持 DM-S (Delay Measurement-Support) 丢包测量 -支持 LM-S (Loss Measurement-Support) 、 链路追踪 -支持 LT-S (Link Trace-Support) 、 组播 环回 -支持 MLB-S ( Multicast Loopback-Support ) 以及环回 -支持 LB-S ( Loopback-Support ) 。  The second line of Figure 2 includes the types of MEP support functions. The types of MEP support functions include: Synthetic Loss Measurement - Support SLM-S (Synthetic Loss Measurement - Support) Delay Measurement - Support DM-S (Delay) Measurement-Support) Loss of Packet Measurement - Supports LM-S (Loss Measurement-Support), Link Tracking - Supports LT-S (Link Trace-Support), Multicast Loopback - Supports MLB-S (Multicast Loopback-Support) and Loopback - Supports LB-S (Loopback-Support).
图 2的第三行中包括了 MEP的支持功能种类的资源信息。 其中, MEP的支 持功能种类的资源信息包括: 合成丢包测量 -资源 SLM-R (Synthetic Loss Measurement-Resource) 、 时 延 测 量 -资 源 DM-R (Delay Measurement -Resource) 丢包测量 -资源 LM-R ( Loss Measurement-Resource ) 、 链路追踪 -资源 LT-R ( Link Trace-Resource ) 、 组播环回 -资源 MLB-R ( Multicast Loopback-Resource) 以及环回 -资源 LB_R (Loop Back-Resource) 。  The third line of Figure 2 includes resource information for the types of supported functions of the MEP. The resource information of the MEP supporting function type includes: Synthetic Loss Measurement-Resource (Synthetic Loss Measurement-Resource), Delay Measurement-Resource (Delay Measurement-Resource), Packet Loss Measurement-Resource LM- R ( Loss Measurement-Resource), Link Trace-Resource, Link Loop-Resource, and Loopback-Resource .
当第一 MEP的支持功能种类发生变化或者支持功能种类对应的资源信息发 生变化时, 第一 MEP将会将发生变化的状态信息封装至 CCM中, 然后通过触发 连续发送将该 CCM组播发送至其他 MEP。本发明实施例中连续发送的次数以 广 3 次为例, 实际情况不作具体限定。  When the type of the support function of the first MEP changes or the resource information corresponding to the supported function type changes, the first MEP encapsulates the changed status information into the CCM, and then sends the CCM multicast to the continuous transmission by triggering the continuous transmission. Other MEPs. In the embodiment of the present invention, the number of consecutive transmissions is three times as an example, and the actual situation is not specifically limited.
可选地, 还可以将 CCM中的 Capability TLV的管理状态、 支持功能种类、 支持功能种类的资源信息中的任意一个或多个以子 TLV (SubTLV) 的方式来标 识,这样, 当需要扩展 Capability TLV的其他功能时,也可以通过增加 Sub_TLV 的方式来实现。  Optionally, any one or more of the management status of the Capability TLV in the CCM, the type of the supported function, and the resource information of the supported function type may be identified in a sub-TLV (SubTLV) manner, so that when the Capability needs to be extended Other functions of the TLV can also be achieved by adding Sub_TLV.
在这种情况下, SubTLV的结构如图 1 (b) 所示, SubTLV包括: SubTLV的 类型 SubTLV-TYPE( 1字节)、 SubTLV的长度 SubTLV_LENGTH( 2字节)以及 SubTLV 的值 SubTLV - VALUE。 其中 SubTLV-VALUE的大小由 SubTLV - LENGTH决定, 其中, SubTLV-VALUE可以为 MEP状态 MEP_STATE_TLV、 功能支持 FUN_SUPPORT_TLV以 及功能资源 FTO_RESOURCE_TLV。 In this case, the structure of SubTLV is as shown in Figure 1 (b). SubTLV includes: SubTLV type SubTLV-TYPE (1 byte), SubTLV length SubTLV_LENGTH (2 bytes), and SubTLV The value of SubTLV - VALUE. The size of the SubTLV-VALUE is determined by SubTLV-LENGTH, wherein the SubTLV-VALUE can be the MEP state MEP_STATE_TLV, the function support FUN_SUPPORT_TLV, and the function resource FTO_RESOURCE_TLV.
当该第一节点的当前状态信息发生变化时, 将该第一节点的发生变化的状 态信息封装至第一通告报文, 并将该第一通告报文发送至其他节点。 When the current state information of the first node changes, the state information of the change of the first node is encapsulated into the first advertisement packet, and the first advertisement packet is sent to other nodes.
其中, 该第一节点 (第一 MEP ) 所在的 MD 1 内或维护联盟内的其他 MEP通 过第一 CCM获取所述第一节点的状态信息, 第一 CCM携带该第一节点的当前状 态信息。  The first CCM carries the status information of the first node in the MD 1 where the first node (the first MEP) is located or the other MEPs in the maintenance alliance. The first CCM carries the current status information of the first node.
当第一节点 (第一 MEP ) 处于正常状态时, 第一 MEP通过获取自身的当前 管理状态, 例如: 第一 MEP的管理状态值。 具体的, 第一 MEP的当前管理状态 包括: 第一 MEP当前所在的设备是否发生主备切换或者第一 MEP当前是否处于 删除或关闭的状态。 第一 MEP 将第一 MEP 的当前管理状态封装至第二 CCM 的 Capab i l i ty TLV中, 然后按照发送周期定时将该第二 CCM组播发送至第一 MEP 所在的 MD 1 内或第一 MEP所在的维护联盟内的其他 MEP, 若位于 MD 1 内的其他 MEP或与该第一 MEP位于同一维护联盟的其他 MEP支持该携带 Capab i l i ty TLV 的第二 CCM, 则保存和 /或更新自身保存的该 Capab i l i ty TLV携带的对应该第 一 MEP的当前管理状态的状态信息。  When the first node (the first MEP) is in the normal state, the first MEP obtains its current management state, for example: the management state value of the first MEP. Specifically, the current management status of the first MEP includes: whether the device where the first MEP is currently located has an active/standby switchover or whether the first MEP is currently in the deleted or closed state. The first MEP encapsulates the current management state of the first MEP into the Capab ili TLV of the second CCM, and then sends the second CCM multicast to the MD1 where the first MEP is located or where the first MEP is located according to the sending period. If other MEPs in the maintenance alliance are supported by other MEPs in the MD 1 or other MEPs in the same maintenance alliance as the first MEP support, the second CCM carrying the Capabili TLV is saved and/or updated. The Capab ili TLV carries status information corresponding to the current management status of the first MEP.
当第一 MEP的当前管理状态发生变化时, 第一 MEP将发生变化的状态信息 至封装至第一 CCM中, 并通过触发连续发送在不用等待发送周期到来时实时将 该第一 CCM发送至该第一 MEP所在的 MD 1 内的其他 MEP或该第一 MEP所在的维 护联盟内的其他 MEP, 以便该第一 MEP所在的 MD 1 内的其他 MEP或该第一 MEP 所在的维护联盟内的其他 MEP接收该第一 CCM, 并发现接收到的该第一 CCM中 的该第一 MEP的状态信息与接收方保存的该第一 MEP的状态信息相比发生变化, 从而进行相应的处理。  When the current management state of the first MEP changes, the first MEP encapsulates the changed state information into the first CCM, and sends the first CCM to the real-time by triggering the continuous transmission when the waiting for the transmission period does not arrive. Other MEPs in the MD 1 where the first MEP is located or other MEPs in the maintenance alliance where the first MEP is located, so that other MEPs in the MD 1 where the first MEP is located or other maintenance alliances in which the first MEP is located The MEP receives the first CCM, and finds that the received status information of the first MEP in the first CCM changes compared with the status information of the first MEP saved by the receiver, and performs corresponding processing.
本发明实施例的节点间状态通告的方法, 当第一节点 (第一 MEP ) 的当前 状态信息改变时, 通过将改变状态之后的该第一 MEP的状态信息封装在 CCM中 组播发送至该第一 MEP所在的 MD内的其他节点 (MEP ) 或该第一 MEP所在的维 护联盟内的其他 MEP, 以便其他 MEP根据所述第一节点的变化后的状态信息做 出对应操作, 从而使得节点间能够主动通知同一维护域内的其他 MEP的当前状 态, 并使得同一维护域内的其他 MEP或同一维护联盟内的其他 MEP对保存的第 一 MEP的状态信息进行对应的处理, 而且节点间能够主动通知自身当前的功能 支持能力以及对应资源可用情况, 进而提高了系统响应效率。 在第一 MEP出现 故障而第一 MEP到该第一 MEP所在的维护联盟内的其他 MEP之间的链路没有故 障的情况下, 该第一 MEP所在的维护联盟内的其他 MEP可以及时区分得知这两 种故障, 并做出相应处理。 比如, 由于只是第一 MEP本身有特别的操作, 而第 一 MEP所在的设备与其他设备之间的链路并无故障, 因此与该第一 MEP关联的 数据业务并不需要切换。 The method for notifying the inter-node status of the embodiment of the present invention, when the current state information of the first node (the first MEP) is changed, the state information of the first MEP after the change state is encapsulated in the CCM, and the multicast is sent to the Other nodes (MEPs) in the MD where the first MEP is located or other MEPs in the maintenance alliance where the first MEP is located, so that other MEPs perform corresponding operations according to the changed state information of the first node, thereby causing the nodes to The status of other MEPs in the same maintenance domain can be actively notified, and the other MEPs in the same maintenance domain or other MEPs in the same maintenance domain can be saved. The status information of a MEP is processed correspondingly, and the nodes can actively notify their current function support capabilities and corresponding resource availability, thereby improving the system response efficiency. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
具体的, 以下结合具体的实施例进行说明。 Specifically, the following description will be made in conjunction with specific embodiments.
如图 3所示, 本发明实施例提供了另一种 MEP间状态通告的方法, 该方法 包括:  As shown in FIG. 3, an embodiment of the present invention provides another method for status notification between MEPs, where the method includes:
当第一 MEP处于正常状态时, 该第一 MEP获取该第一 MEP的当前状态信息 中的管理状态值, 并将该第一 MEP的当前状态信息中的管理状态值封装至第一 CCM。  When the first MEP is in the normal state, the first MEP acquires the management state value in the current state information of the first MEP, and encapsulates the management state value in the current state information of the first MEP to the first CCM.
其中, 第一 MEP处于正常状态时, 该第一 MEP的当前状态信息中的管理状 态的值设置为 0。  When the first MEP is in the normal state, the value of the management state in the current state information of the first MEP is set to 0.
这里第一 MEP 的状态信息中的管理状态包括: 关闭、 删除以及该第一 MEP 所在的设备的主备切换。  The management status in the status information of the first MEP includes: shutdown, deletion, and active/standby switchover of the device where the first MEP is located.
CCM的第一 MEP为维护域 MD 1中的某个维护联盟终结点 MEP ( Maintenance association End Point ) (以下称为 "第一 MEP " ) , 该第一 MEP的状态信息 被携带在该第一 MEP 组播发送的连通性检测报文 CCM 中的 Capabi l ity TLV ( Type-Length-Value )中发给 MDl 内的其他 MEP或该第一 MEP所在的维护联盟 MA1 内的其他 MEP。 其中, 第一 MEP发送的第一 CCM中的 Capab i l ity TLV中的 管理状态包括: 关闭 (Admin-Down ) 、 删除 (Admin-Del ) 以及该第一 MEP所在 设备的主备切换 (Admin-Switch ) 。  The first MEP of the CCM is a maintenance association end point MEP (hereinafter referred to as "the first MEP") in the maintenance domain MD1, and the status information of the first MEP is carried in the first MEP. The Capability TLV (Type-Length-Value) in the connectivity test packet sent by the multicast is sent to other MEPs in the MD1 or other MEPs in the maintenance association MA1 where the first MEP is located. The management status in the Capab ity TLV in the first CCM sent by the first MEP includes: Admin-Down, Admin-Del, and the active/standby switch of the device where the first MEP is located (Admin-Switch) ).
当第一 MEP处于正常状态时, Admin-Down Admin-Del 以及 Admin-Switch 对应的值均设置为 0。  When the first MEP is in the normal state, the values corresponding to Admin-Down Admin-Del and Admin-Switch are both set to 0.
本发明实施例中 MEP管理状态值的设置仅以 Admin-Down、 Admin-Del 以及 Admin-Switch对应的值均设置为 0为例, 不作具体限定。  In the embodiment of the present invention, the setting of the MEP management state value is set to 0 only for the values of the Admin-Down, the Admin-Del, and the Admin-Switch, and is not specifically limited.
当然, 在该第一 CCM也可以不携带该第一 MEP的状态信息。 202、第一 MEP根据预设的发送周期组播发送第一 CCM至该第一 MEP所在的 MD或 MA内的其他 MEP。 Of course, the first CCM may not carry the status information of the first MEP. 202. The first MEP multicasts, according to a preset sending period, the first CCM to the other MEP in the MD or MA where the first MEP is located.
203、 当该第一 MEP的当前状态信息中的管理状态更改时, 将更改后的管理 状态封装至第二 CCM。  203. When the management status in the current status information of the first MEP changes, the changed management status is encapsulated to the second CCM.
其中, 该第一 MEP的管理状态更改包括:  The management status change of the first MEP includes:
当该第一 MEP被管理设备删除时, 该第一 MEP的状态信息中的管理状态的 值由 0变为 1 ;  When the first MEP is deleted by the management device, the value of the management state in the state information of the first MEP is changed from 0 to 1;
或者  Or
当第一 MEP被管理设备关闭时, 该第一 MEP的状态信息中的管理状态的值 由 0变为 1 ;  When the first MEP is powered off by the management device, the value of the management state in the state information of the first MEP changes from 0 to 1;
或者,  Or,
当第一 MEP所在的管理设备发生主备切换时, 该第一 MEP的状态信息中的 管理状态的值由 0变为 1。  When the active/standby switchover occurs on the management device where the first MEP is located, the value of the management state in the state information of the first MEP changes from 0 to 1.
这里当第一 MEP 所在的管理设备发生主备切换时, Capabi l ity TLV 的 Admin-Switch对应的值由 0设置为 1, 并将所述 Capabi l ity TLV封装至第二 CCM ( Continuity Check Message ) 中组播发送至第一 MEP所在的 MD1或 MA1 内 的其他 MEP。  Here, when the active/standby switchover occurs on the management device where the first MEP is located, the value of the Admin-Switch of the Capabiity TLV is set to 1 by 0, and the Capabiity TLV is encapsulated into the second CCM (Continuity Check Message). The multicast is sent to the other MEPs in MD1 or MA1 where the first MEP is located.
204、 第一 MEP通过触发连续发送将封装后的第二 CCM组播发送至该第一 MEP所在的 MD或维护联盟 MA内的其他 MEP,以便该第一 MEP所在的 MD或 MA内 的其他 MEP根据接收到的该第二 CCM携带的第一 MEP的更改后的状态信息更改 自身保存的该第一 MEP对应的状态信息。  The first MEP sends the encapsulated second CCM multicast to the MD where the first MEP is located or other MEPs in the maintenance alliance MA by triggering the continuous transmission, so that the MEP in which the first MEP is located or other MEPs in the MA And changing, according to the changed state information of the first MEP carried by the second CCM, the state information corresponding to the first MEP saved by itself.
这里通过触发连续发送将封装后的第二 CCM组播发送至该第一 MEP所在的 MD或 MA内的其他 MEP, 包括:  Here, the second CCM multicast that is encapsulated is sent to the other MEPs in the MD or MA where the first MEP is located by triggering the continuous transmission, including:
通过触发连续发送将第二 CCM组播发送至该第一 MEP所在的 MD或 MA内的 其他 MEP, 以便该第一 MEP所在的 MD或 MA内的其他 MEP根据第二 CCM删除所 述其他 MEP保存的第一 MEP对应的状态信息,并将所述其他 MEP中所述第二 CCM 对应的连通性检测 CC ( Cont inuity Check ) 状态位置为关闭。  Sending the second CCM multicast to the other MEPs in the MD or MA where the first MEP is located by triggering the continuous transmission, so that the other MEPs in the MD or MA in which the first MEP is located are deleted according to the second CCM. The status information corresponding to the first MEP, and the CC (Cont inuity Check) status position corresponding to the second CCM in the other MEP is off.
这里当第一 MEP被删除时, Capabi l ity TLV中对应的 Admin-Del将被置位 为 1,并触发连续发送将该 Admin-Del值为 1的 Capabi l ity TLV封装在第二 CCM 中组播发送至该第一 MEP所在 MD或 MA内的其他 MEP (比如第二 MEP ) , 而第二 MEP不用再等待 3.5倍的发送周期时间再去通过接收第一 MEP因自身状态改变 而发送的第二 CCM, 而是很快收到第一 MEP被删除时发出的第二 CCM并在第二 MEP本地删除该第二 MEP保存的第一 MEP的状态信息。 Here, when the first MEP is deleted, the corresponding Admin-Del in the Capabiity TLV will be set to 1, and trigger the continuous sending of the Capabiity TLV with the Admin-Del value of 1 in the second CCM group. Broadcast to other MEPs (such as the second MEP) in the MD or MA where the first MEP is located, and second The MEP does not have to wait 3.5 times of the transmission cycle time to receive the second CCM sent by the first MEP due to its own state change, but quickly receives the second CCM sent when the first MEP is deleted and is in the second MEP. The status information of the first MEP saved by the second MEP is deleted locally.
具体的, 当该第一 MEP所在 MD或 MA内的其他 MEP (比如第二 MEP)接收到 第一 MEP发送的第二 CCM时, 比较发现该第二 CCM中 Admin-Del值与第二 MEP 预先保存的第一 MEP的 Admin-Del值不同, 则第二 MEP进行 Admin-Del处理, 将第二 MEP保存的对应第一 MEP的 CC状态位置为关闭 Down。  Specifically, when the other MEP in the MD or the MA (such as the second MEP) receives the second CCM sent by the first MEP, the comparison finds that the Admin-Del value and the second MEP are in the second CCM. If the saved ME-Del value of the first MEP is different, the second MEP performs the Admin-Del process, and the CC state location corresponding to the first MEP saved by the second MEP is Down.
可选地, 通过触发连续发送将第二 CCM组播发送至第一 MEP所在的 MD或 MA内的其他 MEP (比如第二 MEP) , 以便第一 MEP所在的 MD或 MA内的其他 MEP 根据第二 CCM进行关闭处理, 并将第一 MEP所在的 MD或 MA内的其他 MEP中的 第一 MEP的 CC状态位置为关闭。  Optionally, the second CCM multicast is sent to the other MEP (such as the second MEP) in the MD or the MA where the first MEP is located by triggering the continuous sending, so that the MD of the first MEP or other MEPs in the MA are in accordance with the The second CCM performs a shutdown process, and sets the CC state position of the first MEP in the MD or the other MEP in the MA of the first MEP to off.
这里当第一 MEP被关闭时, 第一 MEP发出的第二 CCM中的 Capability TLV 中对应的 Admin-Down 将被置位为 1, 并立刻触发连续发送将 Capability TLV 通过第二 CCM组播发送至第一 MEP所在 MD或 MA内的其他 MEP(比如第二 MEP), 而第二 MEP不用再等待 3.5倍的发送周期时间后通过接收第一 MEP因自身状态 改变而发送的第二 CCM。  Here, when the first MEP is closed, the corresponding Admin-Down in the Capability TLV in the second CCM sent by the first MEP is set to 1, and immediately triggers the continuous transmission to send the Capability TLV to the second CCM multicast to The other MEP (such as the second MEP) in the MD or MA of the first MEP, and the second MEP does not need to wait 3.5 times of the transmission cycle time to receive the second CCM sent by the first MEP due to its own state change.
具体的, 当第一 MEP所在 MD或 MA内的其他 MEP (比如第二 MEP)接收到第 一 MEP发送的第二 CCM时,根据该第二 CCM中 Admin-Down值与该第二 MEP预先 保存的第一 MEP 的 Admin-Down 值不同, 进行 Admin-Down 处理, 将对应 CC (Continuity Check) 状态位置位为第二 CCM中携带的 Admin-Down值。  Specifically, when the first MEP is in the MD or the other MEP in the MA (for example, the second MEP) receives the second CCM sent by the first MEP, the Admin-Down value in the second CCM is pre-stored with the second MEP. The Admin-Down value of the first MEP is different. The Admin-Down process is performed, and the corresponding CC (Continuity Check) status bit is set to the Admin-Down value carried in the second CCM.
或者,  Or,
通过触发连续发送将封装后的第一 CCM组播发送至第一 MEP所在 MD或 MA 内的其他节点 (比如第二 MEP) , 以便该第二 MEP根据第一 CCM中的状态信息 将该第二 MEP保存的第一 MEP的 CC状态值置为关闭的等待老化时间设置为第一 CCM中携带的等待切换时间, 若第一 CCM携带的等待切换时间结束后没有接收 到第一节点发送的第三 CCM, 则重置等待老化时间。  Transmitting the encapsulated first CCM multicast to other nodes (such as the second MEP) in the MD or MA where the first MEP is located by triggering continuous transmission, so that the second MEP is to be the second according to the status information in the first CCM. The waiting aging time of the first MEP is set to the waiting time of the first CCM. If the waiting time of the first CCM is not received, the third node does not receive the third node. CCM, resets the waiting aging time.
第一 MEP所在 MD或 MA内的其他 MEP (比如第二 MEP) 接收到第一 CCM时, 将第一 CCM 中 Admin-Switch 状态信息与第二 MEP 预先保存的第一 MEP 的 Admin-Switch状态信息比较发现二者不同, 则该第二 MEP根据第二 CCM携带的 第一 MEP的 Admin-Switch状态信息进行 Admin-Switch状态变化为 1的处理, 即将对应的 CC状态位置位 Down的等待老化时间设置为 Capability TLV中等待 切换时间 ( Wait-switch-time ) 。 当 Wait_switch_time结束时, 若该第二 MEP 没接收到发送第一 MEP发送的第三 CCM, 则该第二 MEP将置 CC状态位为 Down 并触发生成远端故障标识 RDI ( Remote fault identification ) 。 When the first MEM is in the MD or the other MEP in the MA (for example, the second MEP), the Admin-Switch status information in the first CCM and the Admin-Switch status information of the first MEP saved in the second MEP are saved. If the two MEPs are different, the second MEP performs the Admin-Switch state change to 1 according to the Admin-Switch status information of the first MEP carried in the second CCM, and the waiting aging time of the corresponding CC status bit is Down. Waiting for Capability TLV Switching time ( Wait-switch-time ). When the Wait_switch_time ends, if the second MEP does not receive the third CCM sent by the first MEP, the second MEP sets the CC status bit to Down and triggers the generation of the remote fault identification (RDI).
当 Wait-switch-time内该第二 MEP接收至 lj Admin-Switch状态置位为 0的 第三 CCM报文, 该第二 MEP将重置等待老化时间为 3. 5倍的发送周期。  When the second MEP in the Wait-switch-time receives the third CCM packet with the lj Admin-Switch status set to 0, the second MEP resets the transmission waiting period of 3-5 times.
若 Admin-Switch状态为 1 的第二 CCM丢失, 则第一 MEP所在的 MD或 MA 中的其他 MEP (比如第二 MEP )可以依照策略在 3. 5倍 CCM发送周期后延长等待 保存的 Wait-switch-time时间, 再置为 Down并触发生成 RDI, 其中该策略主 要包括: 1、 应用报文的等待时间, 按照 3. 5倍 CCM发送周期加上等待时间来老 化; 2、 忽略报文的等待时间, 按照 CCM发送周期的 3. 5倍来老化。  If the second CCM with the Admin-Switch status of 1 is lost, the MD of the first MEP or other MEPs of the MA (such as the second MEP) can extend the Waiting for Waiting after the 3.5 times CCM transmission period according to the policy. The switch-time is set to Down and triggers the generation of the RDI. The policy mainly includes: 1. Waiting time of the application packet, aging according to 3.5 times CCM sending period plus waiting time; 2. Ignoring the packet Waiting time, aging according to 3.5 times the CCM transmission period.
本发明提供的实施例中 MEP的管理状态值仅以 0或 1为例, 且等待老化时 间设置也仅以 3. 5倍 CCM发送周期为例进行说明, 不做具体限定。  In the embodiment provided by the present invention, the management status value of the MEP is only 0 or 1 as an example, and the waiting aging time setting is only described by taking the CCM transmission period as an example, and is not specifically limited.
本发明实施例提供的 MEP间状态通告的方法, 当第一 MEP的状态信息中的 管理状态改变时, 通过改变该状态信息中对应的管理状态值, 并通过触发连续 发送将封装改变状态之后的状态信息组播发送至第一 MEP所在的 MD或 MA内的 其他 MEP (比如第二 MEP ) , 以便该第二 MEP根据所述第一 MEP的状态信息做出 对应操作, 从而使得 MEP能够自身的当前状态主动通知同一维护域或维护联盟 内的第二 MEP, 并使得该第二 MEP对自身保存的对应第一 MEP的状态信息进行 对应的处理, 而且 MEP间能够主动通报自身当前功能支持能力以及对应资源可 用情况, 进而提高了系统响应效率。 在第一 MEP出现故障而第一 MEP到该第一 MEP所在的维护联盟内的其他 MEP之间的链路没有故障的情况下, 该第一 MEP 所在的维护联盟内的其他 MEP可以及时区分得知这两种故障,并做出相应处理。 比如, 由于只是第一 MEP本身有特别的操作, 而第一 MEP所在的设备与其他设 备之间的链路并无故障, 因此与该第一 MEP关联的数据业务并不需要切换。  The method for advertising status between MEPs provided by the embodiment of the present invention, when the management state in the state information of the first MEP changes, by changing the corresponding management state value in the state information, and after triggering continuous transmission, the package is changed after the state is changed. The status information is multicast and sent to other MEs (such as the second MEP) in the MD or MA where the first MEP is located, so that the second MEP performs corresponding operations according to the status information of the first MEP, so that the MEP can The current state actively notifies the second MEP in the same maintenance domain or maintenance alliance, and causes the second MEP to process the status information of the corresponding first MEP saved by itself, and the MEP can actively notify the current function support capability and Corresponding to the availability of resources, the system response efficiency is improved. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
参照图 4所示, 本发明的实施例的一种 MEP间状态通告的方法, 包括: 301、 当第一 MEP的功能和 /或对应功能的资源发生更改时, 将状态信息中 支持的功能种类以及对应支持功能的资源信息对应的值重新置位。 Referring to FIG. 4, a method for inter-MEP status notification according to an embodiment of the present invention includes: 301. A function type supported in status information when a function of a first MEP and/or a resource of a corresponding function is changed. And the value corresponding to the resource information corresponding to the support function is reset.
假定第一 MEP为维护域 MD1或维护联盟 MA1中的某个维护终结点, 该第一 MEP 的状态信息被携带在该第一 MEP 组播发送的连通性检测报文 CCM 的 Capabi l ity TLV ( Type-Length-Value ) 中发给 MD1或 MAI 内的其他 MEP (比 如第二 MEP ) 。 当本地的以太网对应的操作、 管理与维护 ETH-0AM ( Ethernet-Operat i ons, Admin i strat ion and Maintenance ) 功能的全局使能 变化或会话资源无法满足用户需求的情况下, 第一 MEP对应的 ETH-0AM功能与 资源位值发生变化被重新置位, 并触发连续发送 CCM。 It is assumed that the first MEP is a maintenance domain of the maintenance domain MD1 or the maintenance alliance MA1, and the status information of the first MEP is carried in the Capabiity TLV of the connectivity detection message CCM sent by the first MEP multicast ( Type-Length-Value ) is sent to other MEPs in MD1 or MAI (than Such as the second MEP). When the local Ethernet corresponding operation, management, and maintenance of the ETH-0AM (Ethernet-Operat i ons, Admin i strat ion and Maintenance) function is globally changed or the session resources cannot meet the user requirements, the first MEP corresponds to The ETH-0AM function and the change in the resource bit value are reset and trigger the continuous transmission of the CCM.
可选地, 在本地 ETH-0AM功能的全局使能变化或会话资源出现无法用户需 求的情况之前, 第一 MEP 将该重置的 ETH-0AM 功能与资源位值封装至 CCM 的 Capab i l i ty TLV中, 并根据发送周期组播发送至 MD 1或 MA1 内的其他 MEP (比 如第二 MEP ) 。  Optionally, the first MEP encapsulates the reset ETH-0AM function and the resource bit value into the Capab ili TLV of the CCM before the global enabling change of the local ETH-0AM function or the situation in which the session resource fails to be required by the user. Medium, and multicast is sent to other MEPs in MD 1 or MA1 (such as the second MEP) according to the sending period.
302、 第一 MEP将重新置位后的第一 MEP的状态信息封装至第一 CCM。  302. The first MEP encapsulates the state information of the first MEP that is re-set to the first CCM.
303、 第一 MEP将该第一 CCM组播发送至其他 MEP, 以便其他 MEP根据该第 一 CCM获取第一 MEP的状态信息, 并根据该第一 CCM携带的第一 MEP的状态信 息向其他 MEP所在的管理设备反馈第一 MEP的状态信息, 并存储该第一 MEP的 当前状态信息。  303. The first MEP sends the first CCM multicast to the other MEP, so that the other MEPs obtain the status information of the first MEP according to the first CCM, and according to the status information of the first MEP carried by the first CCM to other MEPs. The management device is configured to feed back state information of the first MEP, and store current state information of the first MEP.
第一 MEP通过触发连续发送将第一 CCM发送至该第一 MEP所在的 MD 1或 MA1 内的其他 MEP (比如第二 MEP ) , 以便该第二 MEP将接收到的第一 CCM携带的第 一 MEP 的状态信息与第一 MEP 正常状态时发送的 CCM 比较, 确定第一 MEP 的 ETH-0AM功能的全局使能变化或会话资源出现不足的情况, 即 ETH-0AM功能与 资源位值发生变化, 则该第二 MEP 向该第二 MEP所在的管理设备上报第一 MEP 对应的功能故障可能是由于第一 MEP的 ETH-0AM功能关闭或资源不足的问题, 并保存第一 MEP的 ETH-0AM功能与资源位值发生变化时发送的第一 CCM。 该第 一 CCM用于显示查看。  The first MEP sends the first CCM to the other MEPs (such as the second MEP) in the MD 1 or MA1 where the first MEP is located by triggering the continuous transmission, so that the second MEP will carry the first one carried by the first CCM. The status information of the MEP is compared with the CCM sent when the first MEP is in the normal state, and the global enabling change of the ETH-0AM function of the first MEP or the shortage of the session resources is determined, that is, the ETH-0AM function and the resource bit value are changed. The function of the second MEP to report the first MEP to the management device where the second MEP is located may be caused by the ETH-0AM function of the first MEP being closed or the resource is insufficient, and the ETH-0AM function of the first MEP is saved. The first CCM sent when the resource bit value changes. This first CCM is used to display the view.
本发明实施例的 MEP间状态通告的方法, 当第一 MEP的状态信息中的功能 和 /或对应功能的资源发生更改时,通过改变该第一 MEP的状态信息中对应的功 能和 /或对应功能的资源值,并通过触发连续发送将封装改变状态之后的状态信 息组播发送至该第一 MEP所在的 MD或 MA内的第二 MEP, 以便该第二 MEP根据 该第一 MEP的状态信息做出对应操作, 从而第一 MEP能够将自身的当前状态主 动通知同一维护域或维护联盟内的第二 MEP, 并使得第二 MEP对自身保存的第 一 MEP的状态信息进行对应的处理, 而且 MEP间能够主动通告自身当前的功能 支持能力以及对应资源可用情况, 进而提高了系统响应效率。 在第一 MEP出现 故障而第一 MEP到该第一 MEP所在的维护联盟内的其他 MEP之间的链路没有故 障的情况下, 该第一 MEP所在的维护联盟内的其他 MEP可以及时区分得知这两 种故障, 并做出相应处理。 比如, 由于只是第一 MEP本身有特别的操作, 而第 一 MEP所在的设备与其他设备之间的链路并无故障, 因此与该第一 MEP关联的 数据业务并不需要切换。 The method for informing the inter-MEP state in the embodiment of the present invention, when the function in the state information of the first MEP and/or the resource of the corresponding function is changed, by changing the corresponding function and/or corresponding in the state information of the first MEP And the second MEP in the MD or the MA in which the first MEP is located, so that the second MEP is based on the status information of the first MEP. Corresponding operations are performed, so that the first MEP can actively notify the second MEP in the same maintenance domain or maintenance alliance in the current state, and enable the second MEP to process the state information of the first MEP saved by itself, and MEPs can proactively announce their current functional support capabilities and corresponding resource availability, thereby improving system response efficiency. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two A fault, and deal with it accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
这里图广图 4任一所对应的实施例仅以第一节点实施 MEP间状态通告的方 法为例进行说明,实施例中的其他 MEP同样具有与第一 MEP的功能, 即第一 MEP 对应的 MEP间状态通告的方法同样适用于其他 MEP, 在功能位置上第一 MEP可 与其他 MEP互换, 本发明不做具体限定。  The embodiment of the present invention is only described by taking the method of the first node to implement the inter-MEP state advertisement as an example. The other MEPs in the embodiment also have the function corresponding to the first MEP, that is, the first MEP. The method of state notification between the MEPs is also applicable to other MEPs. The first MEP can be interchanged with other MEPs at the functional location, which is not specifically limited by the present invention.
本发明实施例提供一种第一 MEP 4, 该第一 MEP 4具体可以为以太网中任 一种维护终结点, 在本发明的实施例中对第一 MEP的具体形式不做具体限制, 以可以实现本发明的实施例的上述任一 MEP 间状态通告的方法为准。 参照图 5 所示, 第一 MEP 4包括获取单元 41和发送单元 42。 其中: The embodiment of the present invention provides a first MEP 4, which may be any maintenance termination point in the Ethernet. In the embodiment of the present invention, the specific form of the first MEP is not specifically limited. The method of any of the foregoing MEP status notifications of the embodiments of the present invention may be implemented. Referring to FIG. 5, the first MEP 4 includes an acquisition unit 41 and a transmission unit 42. among them:
获取单元 41, 用于获取第一 MEP的当前状态信息, 该第一 MEP的当前状态 信息包括: 第一 MEP的管理状态、 支持的功能种类以及对应支持该功能种类的 资源信息中的一种或多种;  The obtaining unit 41 is configured to obtain current state information of the first MEP, where the current state information of the first MEP includes: one of a management state of the first MEP, a type of the supported function, and resource information corresponding to the type of the function. Multiple
发送单元 42, 用于当第一 MEP的当前状态信息发生变化时, 触发连续发送 将该第一 MEP 的发生变化的状态信息封装至第一连通性检测报文 CCM, 并将第 一 CCM组播发送至第一 MEP所在的维护域 MD或维护联盟 MA内的其他节点, 其 中,其他 MEP通过第一 CCM获取位于同一维护域或维护联盟 MA内的第一 MEP的 当前状态信息。 该第一 CCM携带第一 MEP的当前状态信息。  The sending unit 42 is configured to, when the current state information of the first MEP changes, trigger the continuous sending of the state information of the change of the first MEP to the first connectivity detection message CCM, and multicast the first CCM. It is sent to the maintenance domain MD where the first MEP is located or the other node in the maintenance association MA. The other MEPs obtain the current state information of the first MEP in the same maintenance domain or maintenance alliance MA through the first CCM. The first CCM carries current state information of the first MEP.
这里, 若第一 MEP所在的 MD或 MA内的其他 MEP接收到第一 CCM, 则第一 MEP所在的 MD或 MA内的其他 MEP根据该第一 CCM中携带的第一 MEP的状态信 息的变化进行对应处理。  Here, if the MD of the first MEP or another MEP in the MA receives the first CCM, the MD of the first MEP or other MEPs of the MA changes according to the state information of the first MEP carried in the first CCM. Perform corresponding processing.
本发明实施例的第一 MEP, 当第一 MEP 的状态信息改变时, 通过封装改变 后的状态信息, 并触发连续发送将封装后的状态信息组播发送至第一 MEP所在 的 MD或 MA内的其他 MEP, 以便其他 MEP根据所述第一 MEP的状态信息做出对 应操作,从而 MEP间能够将自身的当前状态信息主动通知同一维护域或 MA内的 其他 MEP, 并使得其他 MEP对自身保存的对应该第一 MEP的状态信息进行对应 的处理, 而且 MEP间能够主动通告自身的当前的功能支持能力以及对应资源可 用情况, 进而提高了系统响应效率。 在第一 MEP出现故障而第一 MEP到该第一 MEP所在的维护联盟内的其他 MEP之间的链路没有故障的情况下, 该第一 MEP 所在的维护联盟内的其他 MEP可以及时区分得知这两种故障,并做出相应处理。 比如, 由于只是第一 MEP本身有特别的操作, 而第一 MEP所在的设备与其他设 备之间的链路并无故障, 因此与该第一 MEP关联的数据业务并不需要切换。 The first MEP of the embodiment of the present invention, when the state information of the first MEP is changed, encapsulates the changed state information, and triggers continuous transmission to multicast the encapsulated state information to the MD or MA where the first MEP is located. Other MEPs, so that other MEPs perform corresponding operations according to the status information of the first MEP, so that MEPs can actively notify their own current status information to other MEPs in the same maintenance domain or MA, and save other MEPs to themselves. Corresponding processing is performed on the status information of the first MEP, and the MEP can actively announce its current function support capability and corresponding resource availability, thereby improving the system response efficiency. In the case that the first MEP fails and the link between the first MEP and another MEP in the maintenance alliance in which the first MEP is located is not faulty, the first MEP Other MEPs in the maintenance alliance can distinguish these two faults in time and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
进一步, 参照图 6所示, 发送单元 42, 可以包括: 封装子单元 421和发送 子单元 422, 其中:  Further, referring to FIG. 6, the transmitting unit 42 may include: a packaging subunit 421 and a transmitting subunit 422, where:
封装子单元 421, 用于当第一 MEP 的当前状态信息中的管理状态更改时, 将更改后的管理状态封装至第一 CCM;  a package subunit 421, configured to encapsulate the changed management state to the first CCM when the management state in the current state information of the first MEP changes;
发送子单元 422, 用于通过触发连续发送将封装后的第一 CCM组播发送至 该第一 MEP所在的 MD或 MA内的其他 MEP。  The sending sub-unit 422 is configured to send the encapsulated first CCM multicast to the other MEPs in the MD or MA where the first MEP is located by triggering continuous transmission.
可选的, 封装子单元 421, 还用于在第一 MEP 的当前状态信息中的管理状 态更改之前, 即该第一 MEP处于正常状态时, 该第一 MEP获取第一 MEP的当前 状态信息中的管理状态值, 并将第一 MEP 的当前状态信息封装至第二 CCM, 该 第一 MEP处于正常状态时, 第一 MEP的当前状态信息中的管理状态的值设置为 0; 当然, 第一 CCM也可以不携带该第一 MEP的状态信息。  Optionally, the encapsulating subunit 421 is further configured to: before the management state change in the current state information of the first MEP, that is, when the first MEP is in a normal state, the first MEP acquires the current state information of the first MEP. Management state value, and encapsulating the current state information of the first MEP into the second CCM. When the first MEP is in the normal state, the value of the management state in the current state information of the first MEP is set to 0; The CCM may also not carry the status information of the first MEP.
发送子单元 422, 还用于根据预设的发送周期将第二 CCM组播发送至该第 一 MEP所在的 MD或 MA内的其他 MEP。  The sending sub-unit 422 is further configured to send the second CCM multicast to the other MEPs in the MD or MA where the first MEP is located according to a preset sending period.
可选的, 第一 MEP的管理状态更改包括:  Optionally, the management status change of the first MEP includes:
当第一 MEP被管理设备删除时, 该第一 MEP的状态信息中的管理状态的值 由 0变为 1 ;  When the first MEP is deleted by the management device, the value of the management state in the state information of the first MEP changes from 0 to 1;
或者  Or
当第一 MEP被管理设备关闭时, 该第一 MEP的状态信息中的管理状态的值 由 0变为 1 ;  When the first MEP is powered off by the management device, the value of the management state in the state information of the first MEP changes from 0 to 1;
或者,  Or,
当第一 MEP所在的管理设备发生主备切换时, 该第一 MEP的状态信息中的 管理状态的值由 0变为 1。  When the active/standby switchover occurs on the management device where the first MEP is located, the value of the management state in the state information of the first MEP changes from 0 to 1.
可选的, 发送子单元 422, 具体用于:  Optionally, the sending subunit 422 is specifically configured to:
通过触发连续发送将封装后的第一 CCM组播发送至该第一 MEP 所在的 MD 或 MA内的其他 MEP, 该第一 MEP所在的 MD或 MA内的其他 MEP接收到第一 MEP 发送的第一 CCM, 则其他 MEP根据第一 CCM对自身保存的第一 MEP对应的状态 信息进行删除处理,并将自身保存的第一 MEP对应的连通性检测 CC状态值置位 为关闭; Sending the encapsulated first CCM multicast to the other MEPs in the MD or MA where the first MEP is located by triggering the continuous transmission, and the other MEPs in the MD or MA in which the first MEP is located receive the first MEP transmission. a CCM, the other MEP deletes the state information corresponding to the first MEP saved by the first CCM, and sets the connectivity detection CC status value corresponding to the first MEP saved by itself. For closing
或者,  Or,
通过触发连续发送将封装后的第一 CCM组播发送至该第一 MEP 所在的 MD 或 MA内的其他 MEP, 该第一 MEP所在的 MD或 MA内的其他 MEP接收到第一 MEP 发送的第一 CCM, 则该第一 MEP所在的 MD或 MA内的其他 MEP根据第一 CCM对 自身保存的第一 MEP的状态信息进行关闭处理, 并将自身保存的该第一 MEP对 应的 CC状态值置位为关闭;  Sending the encapsulated first CCM multicast to the other MEPs in the MD or MA where the first MEP is located by triggering the continuous transmission, and the other MEPs in the MD or MA in which the first MEP is located receive the first MEP transmission. a CCM, the MD in which the first MEP is located, or other MEPs in the MA, according to the first CCM, the state information of the first MEP saved by the first CCM is closed, and the CC state value corresponding to the first MEP saved by the first MEP is set. Bit is off;
或者,  Or,
通过触发连续发送将封装后的第一 CCM组播发送至该第一 MEP 所在的 MD 或 MA内的其他 MEP, 该第一 MEP所在的 MD内的其他 MEP接收到第一 MEP发送 的第一 CCM, 则其他 MEP根据第一 CCM中的状态信息将自身保存的该第一 MEP 对应的 CC状态置为关闭的等待老化时间设置为该第一 CCM的状态信息中的等待 切换时间, 若等待切换时间结束后没有接收到第一 MEP更新的第三 CCM, 则重 置等待老化时间。  Sending the encapsulated first CCM multicast to the other MEPs in the MD or the MA where the first MEP is located by triggering the continuous transmission, and the other MEPs in the MD where the first MEP is located receives the first CCM sent by the first MEP. And waiting for the aging time in which the other MEP sets the CC state corresponding to the first MEP to be closed to the waiting aging time in the state information of the first CCM according to the status information in the first CCM, if waiting for the switching time If the third CCM of the first MEP update is not received after the end, the waiting aging time is reset.
可选的, 该第一 MEP的状态信息中的管理状态包括: 关闭、 删除以及该第 一 MEP所在设备的主备切换。  Optionally, the management status in the status information of the first MEP includes: off, deleting, and active/standby switching of the device where the first MEP is located.
可选的, 参照图 7所示, 发送单元 42, 还包括设置子单元 423, 其中: 设置子单元 423,用于当第一 MEP的功能和 /或对应功能的资源发生更改时, 将该第一 MEP的当前状态信息中支持的功能种类以及对应支持功能的资源信息 对应的值重新置位。  Optionally, referring to FIG. 7, the sending unit 42 further includes a setting subunit 423, where: the setting subunit 423 is configured to: when the function of the first MEP and/or the resource of the corresponding function is changed, The type of function supported in the current state information of a MEP and the value corresponding to the resource information of the corresponding supporting function are reset.
封装子单元 421, 还用于将重新置位后的第一 MEP 的状态信息封装至第一 The package subunit 421 is further configured to encapsulate the state information of the first MEP after being repositioned to the first
CCM。 CCM.
发送子单元 422, 还用于通过触发连续发送将该第一 CCM组播发送至该第 一 MEP所在的 MD或 MA内的其他 MEP。  The sending subunit 422 is further configured to send the first CCM multicast to the other MEPs in the MD or MA where the first MEP is located by triggering continuous transmission.
这里, 若该第一 MEP所在的 MD 内的其他 MEP接收到第一 MEP发送的第一 Here, if the other MEPs in the MD where the first MEP is located receive the first one sent by the first MEP
CCM, 则以便其他 MEP根据第一 CCM获取该第一 MEP的状态信息, 并根据该第一 CCM携带的状态信息向自身所在的管理设备反馈第一 MEP 的当前状态信息, 存 储该第一 MEP的当前状态信息。 The CCM is configured to obtain the state information of the first MEP according to the first CCM, and feed back the current state information of the first MEP to the management device where the first CCM is located, and store the current MEP information. Current status information.
本发明实施例的第一 MEP, 当第一 MEP 的状态信息改变时, 通过改变该状 态信息中对应的状态值, 并通过封装改变状态至后的状态信息触发连续发送将 封装后的状态信息组播发送至该第一 MEP所在的 MD或 MA内的其他 MEP, 以便 该第一 MEP所在的 MD或 MA内的其他 MEP根据该第一 MEP的状态信息做出对应 操作, 从而节约了系统的响应时间, 从而, MEP 间能够将自身的当前状态信息 主动通知同一维护域或 MA内的其他 MEP,并使得同一维护域或 MA内的其他 MEP 对自身保存的对应该 MEP的状态信息进行对应的处理, 而且 MEP间能够主动通 告自身当前的功能支持能力以及对应资源可用情况, 提高了系统响应效率。 在 第一 MEP出现故障而第一 MEP到该第一 MEP所在的维护联盟内的其他 MEP之间 的链路没有故障的情况下, 该第一 MEP所在的维护联盟内的其他 MEP可以及时 区分得知这两种故障, 并做出相应处理。 比如, 由于只是第一 MEP本身有特别 的操作, 而第一 MEP所在的设备与其他设备之间的链路并无故障, 因此与该第 一 MEP关联的数据业务并不需要切换。 The first MEP of the embodiment of the present invention, when the state information of the first MEP changes, triggers the continuous transmission by changing the corresponding state value in the state information, and by changing the state information after the state is changed by the package The encapsulated state information is multicast and sent to the other MEPs in the MD or the MA where the first MEP is located, so that the MDs in which the first MEP is located or other MEPs in the MA perform corresponding operations according to the state information of the first MEP. Therefore, the response time of the system is saved. Therefore, the MEP can actively notify the other MEPs in the same maintenance domain or MA in the same maintenance domain or other MEPs in the same maintenance domain or ME. The status information is processed correspondingly, and the MEP can actively announce its current function support capability and corresponding resource availability, thereby improving the system response efficiency. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
本发明的实施例提供一种第一 MEP 5, 参照图 8所示, 该第一 MEP 5包括: 一个或多个处理器 51、 一个或多个存储器 52、 一个或多个通信接口 53和总线 54, 该处理器 51、 存储器 52和通信接口 53通过总线 54连接并完成相互间的 通信。 An embodiment of the present invention provides a first MEP 5, as shown in FIG. 8, the first MEP 5 includes: one or more processors 51, one or more memories 52, one or more communication interfaces 53 and a bus The processor 51, the memory 52, and the communication interface 53 are connected by a bus 54 and complete communication with each other.
该总线 54可以是工业标准体系结构 ( Industry Standard Architecture , 简称为 ISA) 总线或外部设备互连 (Peripheral Component , 简称为 PCI ) 总线 或扩展工业标准体系结构 ( Extended Industry Standard Architecture , 简称 为 EISA) 总线。 该总线 54可以包括地址总线、 数据总线、 控制总线等。 为便 于表示, 图 8中仅用一条粗线表示, 但并不表示仅有一根总线或一种类型的总 线。 其中:  The bus 54 can be an Industry Standard Architecture (ISA) bus or a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. . The bus 54 can include an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 8, but it does not mean that there is only one bus or one type of bus. among them:
存储器 52用于存储可执行程序代码, 该程序代码包括计算机操作指令。存 储器 52可能包含高速 RAM存储器,也可能还包括非易失性存储器(non-volati le memory ) , 例如至少一个磁盘存储器。  The memory 52 is for storing executable program code, the program code including computer operating instructions. The memory 52 may contain high speed RAM memory and may also include non-volatile memory, such as at least one disk memory.
处理器 51可能是一个或多个中央处理器 (Central Processing Unit , 简 称为 CPU),或者是一个或多个特定集成电路(Appl ication Specific Integrated Circuit , 简称为 ASIC) , 或者是被配置成实施本发明实施例的一个或多个集 成电路。  The processor 51 may be one or more central processing units (CPUs), or one or more specific integrated circuits (ASICs), or configured to implement the present invention. One or more integrated circuits of an embodiment of the invention.
通信接口 53, 主要用于实现本实施例中的 MEP之间的通信。  The communication interface 53 is mainly used to implement communication between the MEPs in this embodiment.
其中, 处理器 51, 用于获取第一 MEP的当前状态信息, 该第一 MEP的当前 状态信息包括: 第一 MEP的管理状态、 支持的功能种类以及对应支持该功能种 类的资源信息中的至少一种或多种; The processor 51 is configured to acquire current state information of the first MEP, where the first MEP is current. The status information includes: at least one or more of a management status of the first MEP, a supported function type, and resource information corresponding to the type of the support function;
处理器 51, 还用于当第一 MEP的当前状态信息发生变化时, 触发连续发送 将该第一 MEP 的发生变化的状态信息封装至第一连通性检测报文 CCM, 并将第 一 CCM通过通信接口 53组播发送至该第一 MEP所在的维护域 MD或维护联盟 MA 内的其他 MEP, 其中, 该其他 MEP通过第一 CCM获取位于同一 MD或 MA内的第 一 MEP的当前状态信息。 该第一 CCM携带第一 MEP的当前状态信息。  The processor 51 is further configured to: when the current state information of the first MEP changes, trigger the continuous sending of the state information of the change of the first MEP to the first connectivity detection message CCM, and pass the first CCM. The communication interface 53 is multicast and sent to the maintenance domain MD where the first MEP is located or the other MEPs in the maintenance alliance MA. The other MEPs acquire the current state information of the first MEP located in the same MD or MA through the first CCM. The first CCM carries current state information of the first MEP.
这里, 若该第一 MEP所在的 MD内的其他 MEP接收到该第一 CCM, 则该第一 MEP所在的 MD或 MA内的其他 MEP根据第一 CCM携带的该第一 MEP的状态信息 的变化进行对应处理。 该对应处理包括对自身保存的与第一 MEP相关的状态信 息进行更新或保存或删除。  Here, if the other MEPs in the MD in which the first MEP is located receive the first CCM, the MDs in which the first MEP is located or other MEPs in the MA change according to the state information of the first MEP carried by the first CCM. Perform corresponding processing. The corresponding processing includes updating or saving or deleting status information related to the first MEP saved by itself.
本发明实施例的第一 MEP, 当第一 MEP 的状态信息改变时, 通过封装改变 状态至后的状态信息触发连续发送将封装后的状态信息组播发送至该第一 MEP 所在的 MD或 MA内的其他 MEP, 以便其他 MEP根据所述第一 MEP的当前状态信 息做出对应操作, 从而 MEP 间能够主动将自身的当前状态信息通知同一 MD 或 MA内的其他 MEP, 并使得其他 MEP对自身保存的对应 MEP的状态信息进行对应 的处理, 而且 MEP间能够主动通告自身当前的功能支持能力以及对应资源可用 情况,进而提高了系统响应效率。在第一 MEP出现故障而第一 MEP到该第一 MEP 所在的维护联盟内的其他 MEP之间的链路没有故障的情况下, 该第一 MEP所在 的维护联盟内的其他 MEP可以及时区分得知这两种故障, 并做出相应处理。 比 如, 由于只是第一 MEP本身有特别的操作, 而第一 MEP所在的设备与其他设备 之间的链路并无故障, 因此与该第一 MEP关联的数据业务并不需要切换。  In the first MEP of the embodiment of the present invention, when the state information of the first MEP is changed, the status information after the state is changed by the package is triggered to continuously send the encapsulated state information to the MD or MA where the first MEP is located. The other MEPs in the other MEPs, so that other MEPs can perform corresponding operations according to the current state information of the first MEP, so that the MEPs can actively notify their MEDs of other MEPs in the same MD or MA, and make other MEPs themselves. The saved MEP status information is processed correspondingly, and the MEP can actively announce its current function support capability and corresponding resource availability, thereby improving the system response efficiency. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, since only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched.
进一步, 处理器 51, 还用于当第一 MEP的当前状态信息中的管理状态更改 时, 将更改后的管理状态封装至第一 CCM;  Further, the processor 51 is further configured to: when the management state in the current state information of the first MEP changes, package the changed management state to the first CCM;
处理器 51,还用于通过触发连续发送将封装后的第一 CCM通过通信接口 53 组播发送至该第一 MEP所在的 MD或 MA内的其他 MEP。  The processor 51 is further configured to multicast the first CCM after being encapsulated by the continuous transmission to the other MEPs in the MD or MA where the first MEP is located by triggering continuous transmission.
这里, 若该第一 MEP所在的 MD或 MA内的其他 MEP接收到第一 CCM, 则该 第一 MEP所在的 MD或 MA内的其他 MEP根据该第一 CCM更改自身保存的该第一 MEP的状态信息。  Here, if the MD of the first MEP or another MEP in the MA receives the first CCM, the MD of the first MEP or another MEP of the MA changes the first MEP saved by itself according to the first CCM. status information.
可选的, 处理器 51, 还用于在第一 MEP的当前状态信息中的管理状态更改 之前, 即该第一 MEP处于正常状态时, 该第一 MEP获取第一 MEP的当前状态信 息中的管理状态值, 并将第一 MEP的当前状态信息 (包括当前状态信息中的管 理状态值) 封装至第二 CCM。 该第一 MEP处于正常状态时, 第一 MEP的当前状 态信息中的管理状态的值设置为 0 ; 当然, 该第一 CCM也可以不携带第一 MEP 的状态信息。 Optionally, the processor 51 is further configured to: before the management state change in the current state information of the first MEP, that is, when the first MEP is in a normal state, the first MEP acquires a current state information of the first MEP. The management status value in the interest, and encapsulates the current status information of the first MEP (including the management status value in the current status information) to the second CCM. When the first MEP is in the normal state, the value of the management state in the current state information of the first MEP is set to 0. Of course, the first CCM may not carry the state information of the first MEP.
处理器 51, 还用于根据预设的发送周期将第二 CCM通过通信接口 53组播 发送至该第一 MEP所在的 MD或 MA内的其他 MEP。  The processor 51 is further configured to multicast the second CCM to the other MEPs in the MD or the MA where the first MEP is located, according to the preset sending period.
进一步, 可选的, 第一 MEP的管理状态更改包括:  Further, optionally, the management status change of the first MEP includes:
当第一 MEP被管理设备删除时, 该第一 MEP的状态信息中的管理状态的值 由 0变为 1 ;  When the first MEP is deleted by the management device, the value of the management state in the state information of the first MEP changes from 0 to 1;
或者  Or
当第一 MEP被管理设备关闭时, 该第一 MEP的状态信息中的管理状态的值 由 0变为 1 ;  When the first MEP is powered off by the management device, the value of the management state in the state information of the first MEP changes from 0 to 1;
或者,  Or,
当第一 MEP所在管理设备发生主备切换时, 该第一 MEP的状态信息中的管 理状态的值由 0变为 1。  When the active/standby switchover occurs on the management device where the first MEP is located, the value of the management state in the state information of the first MEP changes from 0 to 1.
可选的, 处理器 51, 具体用于:  Optionally, the processor 51 is specifically configured to:
通过触发连续发送将封装后的第一 CCM通过通信接口 53组播发送至该第一 MEP所在的 MD或 MA内的其他 MEP, 若该第一 MEP所在的 MD或 MA内的其他 MEP 接收到该第一 MEP发送的第一 CCM,则该第一 MEP所在的 MD或 MA内的其他 MEP 根据第一 CCM对自身保存的第一 MEP对应的状态信息进行删除处理, 并将对应 的连通检测状态值置位为关闭;  The first CCM that is encapsulated is sent to the other MEPs in the MD or MA where the first MEP is located through the communication interface 53 by triggering the continuous transmission. If the MEP in which the first MEP is located or other MEPs in the MA receives the The first CCM sent by the first MEP, the MD of the first MEP or the other MEPs in the MA deletes the state information corresponding to the first MEP saved by the first CCM, and the corresponding connectivity detection status value Set to off;
或者,  Or,
通过触发连续发送将封装后的第一 CCM通过通信接口 53组播发送至该第一 MEP所在的 MD内的其他 MEP,若该第一 MEP所在的 MD内的其他 MEP接收到第一 MEP发送的第一 CCM文, 则该第一 MEP所在的 MD内的其他 MEP根据第一 CCM对 自身保存的该第一 MEP对应的状态信息进行关闭处理,并将自身保存的第一 MEP 对应的连通检测状态值置位为关闭;  Sending the encapsulated first CCM to the other MEPs in the MD where the first MEP is located through the communication interface 53 by triggering the continuous transmission, if the other MEPs in the MD where the first MEP is located receive the first MEP transmission. The first CCM text, the other MEPs in the MD in which the first MEP is located, according to the first CCM, the state information corresponding to the first MEP saved by the first CCM is closed, and the connectivity detection state corresponding to the first MEP saved by itself is connected. The value is set to off;
或者,  Or,
通过触发连续发送将封装后的第一 CCM通过通信接口 53组播发送至该第一 MEP所在的 MD 内的其他 MEP, 该第一 MEP所在的 MD 内的其他 MEP接收到第一 MEP发送的第一 CCM, 则该第一 MEP所在的 MD内的其他 MEP根据第一 CCM中的 该第一 MEP的状态信息将自身保存的第一 MEP对应连通检测状态置位关闭的等 待老化时间设置为该第一 CCM的状态信息中的等待切换时间。 若置位后等待切 换时间结束后没有接收到第一 MEP更新的第三连通性检测报文, 则重置等待老 化时间。 The first CCM that is encapsulated is sent to the other MEPs in the MD where the first MEP is located by using the communication interface 53 by triggering the continuous transmission, and the other MEPs in the MD where the first MEP is located receive the first The first CCM sent by the MEP, the other MEPs in the MD in which the first MEP is located, according to the status information of the first MEP in the first CCM, the first MEP corresponding to the first MEP is set to the connectivity detection state, and the waiting aging time is turned off. Set to wait for the switching time in the status information of the first CCM. If the third connectivity detection packet of the first MEP update is not received after the handover time is expired, the waiting for aging time is reset.
可选的, 状态信息中的管理状态包括: 关闭、 删除以及该第一 MEP所在设 备的主备切换。  Optionally, the management status in the status information includes: shutdown, deletion, and active/standby switchover of the device where the first MEP is located.
可选的, 处理器 51, 还用于当第一 MEP 的功能和 /或对应功能的资源发生 更改时, 将该第一 MEP的当前状态信息中支持的功能种类以及对应支持功能的 资源信息对应的值重新置位。  Optionally, the processor 51 is further configured to: when the function of the first MEP and/or the resource of the corresponding function is changed, corresponding to the type of the function supported in the current state information of the first MEP and the resource information of the corresponding supporting function The value is reset.
处理器 51, 还用于将重新置位后的状态信息封装至第一 CCM。  The processor 51 is further configured to encapsulate the re-set state information to the first CCM.
处理器 51, 还用于通过触发连续发送将该第一 CCM通过通信接口 53组播 发送至该第一 MEP所在的 MD或 MA内的其他 MEP。  The processor 51 is further configured to multicast the first CCM to the other MEPs in the MD or the MA where the first MEP is located by triggering the continuous transmission.
这里, 若该第一 MEP所在的 MD 内的其他 MEP接收到第一 MEP发送的第一 CCM,则以便该第一 MEP所在的 MD或 MA内的其他 MEP根据第一 CCM获取该第一 MEP的状态信息, 并根据该第一 CCM携带的该第一 MEP的状态信息向自身所在 的管理设备反馈第一 MEP的当前状态信息,并存储该第一 CCM携带的该第一 MEP 的当前状态信息。  Here, if the other MEPs in the MD in which the first MEP is located receive the first CCM sent by the first MEP, the MDs in which the first MEP is located or other MEPs in the MA acquire the first MEP according to the first CCM. The status information is used to feed back the current status information of the first MEP to the management device where the first MEP is located according to the status information of the first MEP, and store the current status information of the first MEP carried by the first CCM.
本发明实施例的第一 MEP, 当第一 MEP 的状态信息改变时, 通过改变该状 态信息中对应的状态值, 并通过封装改变状态至后的状态信息触发连续发送将 封装后的状态信息组播发送至该第一 MEP所在的 MD或 MA内的其他 MEP, 以便 该第一 MEP所在的 MD或 MA内的其他 MEP根据该第一 CCM携带的第一 MEP的状 态信息做出对应操作, 从而节约了系统的响应时间, 进而使得 MEP间能够主动 将自身的当前状态信息通知同一维护域内的其他的 MEP, 并使得其他 MEP对自 身保存的与第一 MEP对应的状态信息进行相应的处理, 而且 MEP间能够主动通 报自身当前的功能支持能力以及对应资源可用情况, 提高了系统响应效率。 在 第一 MEP出现故障而第一 MEP到该第一 MEP所在的维护联盟内的其他 MEP之间 的链路没有故障的情况下, 该第一 MEP所在的维护联盟内的其他 MEP可以及时 区分得知这两种故障, 并做出相应处理。 比如, 由于只是第一 MEP本身有特别 的操作, 而第一 MEP所在的设备与其他设备之间的链路并无故障, 因此与该第 一 MEP关联的数据业务并不需要切换。 本发明实施例中提到的第一 MEP 4、 5 的状态信息, 均可通过 CCM 中 Capabi l ity TLV携带, CCM中的 Capabi l ity TLV携带 MEP的状态信息的具体方 式可以参考前面方法实施例的描述、 图 1-4及其对应的说明书的描述。 The first MEP of the embodiment of the present invention, when the state information of the first MEP is changed, triggers the continuous transmission of the encapsulated state information group by changing the corresponding state value in the state information, and triggering the state information after the state is changed by the package. The broadcast is sent to the other MEPs in the MD or the MA where the first MEP is located, so that the MDs in which the first MEP is located or other MEPs in the MA perform corresponding operations according to the status information of the first MEP carried by the first CCM, thereby The response time of the system is saved, and the MEP can actively notify the other MEPs in the same maintenance domain of the current status information, and cause the other MEPs to process the status information corresponding to the first MEP. MEPs can proactively report their current functional support capabilities and corresponding resource availability, improving system response efficiency. If the link between the first MEP and the other MEPs in the maintenance alliance where the first MEP is located is not faulty, the other MEPs in the maintenance alliance where the first MEP is located may be distinguished in time. Know these two kinds of faults and deal with them accordingly. For example, because only the first MEP itself has a special operation, and the link between the device where the first MEP is located and other devices is not faulty, the data service associated with the first MEP does not need to be switched. The state information of the first MEPs 4 and 5 mentioned in the embodiment of the present invention may be carried by the Capabiity TLV in the CCM. The specific manner of carrying the status information of the MEP in the Capabi Tal in the CCM may refer to the foregoing method embodiment. Description of the drawings, Figures 1-4 and their corresponding descriptions.
通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本发 明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用软件实现 时, 可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个 或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质, 其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。 存储介质可以是计算机能够存取的任何可用介质。 以此为例但不限于: 计算机 可读介质可以包括 RAM、 ROM, EEPR0M、 CD-ROM或其他光盘存储、 磁盘存储介质 或者其他磁存储设备、 或者能够用于携带或存储具有指令或数据结构形式的期 望的程序代码并能够由计算机存取的任何其他介质。 此外。 任何连接可以适当 的成为计算机可读介质。 例如, 如果软件是使用同轴电缆、 光纤光缆、 双绞线、 数字用户线 (DSL) 或者诸如红外线、 无线电和微波之类的无线技术从网站、 服 务器或者其他远程源传输的, 那么同轴电缆、 光纤光缆、 双绞线、 DSL 或者诸 如红外线、 无线和微波之类的无线技术包括在所属介质的定影中。 如本发明所 使用的, 盘 (Di sk) 和碟 (di sc ) 包括压缩光碟 (CD ) 、 激光碟、 光碟、 数字 通用光碟 (DVD ) 、 软盘和蓝光光碟, 其中盘通常磁性的复制数据, 而碟则用激 光来光学的复制数据。 上面的组合也应当包括在计算机可读介质的保护范围之 内。  Through the description of the above embodiments, it will be apparent to those skilled in the art that the present invention can be implemented in hardware, firmware implementation, or a combination thereof. When implemented in software, the functions described above may be stored in or transmitted as one or more instructions or code on a computer readable medium. Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another. A storage medium may be any available media that can be accessed by a computer. By way of example and not limitation, the computer readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage media or other magnetic storage device, or can be used to carry or store an instruction or data structure. The desired program code and any other medium that can be accessed by the computer. Also. Any connection may suitably be a computer readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwaves are included in the fixing of the associated media. As used in the present invention, a disc (di sk) and a disc (di sc) include a compact disc (CD), a laser disc, a disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, wherein the disc is usually magnetically copied, The disc uses a laser to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.
总之, 以上所述仅为本发明技术方案的较佳实施例而已, 并非用于限定本发 明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改 进等, 均应包含在本发明的保护范围之内。  In summary, the above description is only a preferred embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims

权利要求 Rights request
1、 一种节点间状态通告的方法, 其特征在于, 包括: 当第一节点的状态信息发生变化时, 将所述第一节点的发生变化的状态信 息封装至第一通告报文, 并将所述第一通告报文发送至其他节点; 所述第一节 点的状态信息包括: 所述第一节点的管理状态、 支持的功能种类以及对应支持 所述功能种类的资源信息中的一种或多种。 1. A method of inter-node status notification, characterized in that it includes: when the status information of the first node changes, encapsulating the changed status information of the first node into a first notification message, and The first notification message is sent to other nodes; the status information of the first node includes: one of the management status of the first node, the functional type supported, and the resource information corresponding to supporting the functional type, or Various.
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一节点是维护联盟终 结点 MEP。 2. The method according to claim 1, characterized in that the first node is a maintenance alliance end point MEP.
3、 根据权利要求 2所述的方法, 其特征在于, 所述当所述第一 MEP的状态 信息发生变化时, 将所述第一 MEP 的发生变化的状态信息封装至第一 CCM , 并 将所述第一 CCM发送至所述其他 MEP, 包括: 当所述第一 MEP的状态信息中的管理状态更改时, 将更改后的所述管理状 态封装至所述第一 CCM; 将封装后的所述第一 CCM发送至所述其他 MEP。 3. The method according to claim 2, characterized in that: when the status information of the first MEP changes, the changed status information of the first MEP is encapsulated into the first CCM, and The first CCM is sent to the other MEP, including: when the management status in the status information of the first MEP changes, encapsulating the changed management status to the first CCM; The first CCM is sent to the other MEP.
4、 根据权利要求 3所述的方法, 其特征在于, 所述第一 MEP的状态信息中 的 MEP管理状态更改之前, 包括: 当所述第一 MEP处于正常状态时, 所述第一 MEP获取所述第一 MEP的状态 信息中的管理状态值, 并将获取的所述第一 MEP处于正常状态时的状态信息封 装至第二 CCM; 将所述第二 CCM发送至所述其他 MEP。 4. The method according to claim 3, characterized in that, before the MEP management status in the status information of the first MEP is changed, the method includes: when the first MEP is in a normal state, the first MEP obtains manage the status value in the status information of the first MEP, and encapsulate the obtained status information when the first MEP is in the normal state to the second CCM; send the second CCM to the other MEP.
5、 根据权利要求 3所述的方法, 其特征在于, 所述第一 MEP处于正常状态 时, 所述第一 MEP的状态信息中的管理状态的值设置为 0, 所述第一 MEP的管 理状态更改包括: 当所述第一 MEP被管理设备删除时, 所述第一 MEP的状态信息中的管理状 态的值由 0变为 1 ; 或者 当所述第一 MEP被管理设备关闭时, 所述第一 MEP的状态信息中的管理状 态的值由 0变为 1 ; 或者, 当所述第一 MEP所在的管理设备发生主备切换时, 所述第一 MEP的状态信 息中的管理状态的值由 0变为 1。 5. The method according to claim 3, characterized in that when the first MEP is in a normal state, the value of the management status in the status information of the first MEP is set to 0, and the management of the first MEP The status change includes: when the first MEP is deleted by the management device, the value of the management status in the status information of the first MEP changes from 0 to 1; or when the first MEP is shut down by the management device, the The value of the management status in the status information of the first MEP changes from 0 to 1; Or, when the management device where the first MEP is located undergoes active/standby switching, the value of the management status in the status information of the first MEP changes from 0 to 1.
6、 根据权利要求 3或 5所述的方法, 其特征在于, 所述将封装后的所述第 一 CCM发送至所述其他 MEP, 包括: 通过触发连续发送将所述第一 CCM发送至所述其他 MEP。 6. The method according to claim 3 or 5, wherein the sending the encapsulated first CCM to the other MEPs includes: sending the first CCM to the other MEPs by triggering continuous sending. Describe other MEPs.
7、 根据权利要求 2 中任一项所述的方法, 其特征在于, 所述第一 MEP的 状态信息中的管理状态包括: 关闭、 删除以及所述第一 MEP所在设备的主备切 换。 7. The method according to any one of claims 2, wherein the management status in the status information of the first MEP includes: shutdown, deletion, and active/standby switching of the device where the first MEP is located.
8、 根据权利要求 2所述的方法, 其特征在于, 所述当所述第一 MEP的状态 信息发生变化时, 将所述第一 MEP 的发生变化的状态信息封装至第一 CCM, 并 将所述第一 CCM发送至所述其他 MEP, 包括: 当所述第一 MEP 的功能和 /或对应该功能的资源发生更改时, 将所述第一 MEP 的状态信息中支持的功能种类以及对应的支持该功能的资源信息对应的值 重新置位; 将重新置位后的状态信息封装至第一 CCM; 将所述第一 CCM发送至所述其他 MEP。 8. The method according to claim 2, characterized in that: when the status information of the first MEP changes, the changed status information of the first MEP is encapsulated into the first CCM, and The first CCM is sent to the other MEP, including: when the function of the first MEP and/or the resources corresponding to the function are changed, the function type and corresponding function type supported in the status information of the first MEP are changed. Reset the value corresponding to the resource information that supports the function; Encapsulate the reset status information to the first CCM; Send the first CCM to the other MEP.
9、 根据权利要求 2-8中任一所述的方法, 其特征在于, 所述其他 MEP与所 述第一 MEP位于同一维护联盟 MA内。 9. The method according to any one of claims 2 to 8, characterized in that the other MEP and the first MEP are located in the same maintenance alliance MA.
10、 根据权利要求 2-9中任一所述的方法, 其特征在于, 所述第一 CCM包 括 Capab i l i ty TLV, 该 Capab i l i ty TLV用于携带所述第一 MEP的状态信息。 10. The method according to any one of claims 2 to 9, characterized in that the first CCM includes a Capability TLV, and the Capability TLV is used to carry status information of the first MEP.
1 1、 根据权利要求 10所述的方法, 其特征在于, 所述 Capab i l i ty TLV还 包括 SubTLV, 所述 SubTLV用于携带所述第一 MEP的状态信息中的管理状态、 支持的功能种类以及对应支持所述功能种类的资源信息中的一种或多种。 1 1. The method according to claim 10, characterized in that the Capability TLV further includes a SubTLV, and the SubTLV is used to carry the management status, supported function types in the status information of the first MEP, and Corresponds to one or more types of resource information supporting the functional type.
12、 一种第一维护联盟终结点 MEP, 其特征在于, 包括获取单元和发送单 元, 其中: 12. A first maintenance alliance endpoint MEP, characterized by including an acquisition unit and a sending unit, where:
所述获取单元, 用于获取所述第一 MEP的状态信息, 所述第一 MEP的状态 信息包括: 所述第一 MEP的管理状态、 支持的功能种类以及对应支持所述功能 种类的资源信息中的一种或多种; 所述发送单元, 用于当所述第一 MEP的状态信息发生变化时, 将所述第一 MEP的发生变化的状态信息封装至第一连通性检测报文 CCM, 并将所述第一 CCM 发送至其他 MEP。 The obtaining unit is used to obtain the status information of the first MEP. The status of the first MEP The information includes: one or more of the management status of the first MEP, supported function types, and resource information corresponding to supporting the functional types; the sending unit, used to receive the status information of the first MEP When a change occurs, the changed status information of the first MEP is encapsulated into a first connectivity detection message CCM, and the first CCM is sent to other MEPs.
13、 根据权利要求 12所述的第一 MEP, 其特征在于, 所述发送单元, 包括: 封装子单元, 用于当所述第一 MEP的状态信息中的管理状态更改时, 将更 改后的所述管理状态封装至所述第一 CCM; 发送子单元, 用于将封装后的所述第一 CCM发送至所述其他 MEP。 13. The first MEP according to claim 12, characterized in that the sending unit includes: an encapsulation subunit, configured to encapsulate the changed management status in the status information of the first MEP when the management status changes. The management status is encapsulated into the first CCM; and a sending subunit is used to send the encapsulated first CCM to the other MEPs.
14、 根据权利要求 13所述的第一 MEP, 其特征在于, 所述封装子单元, 还用于在所述第一 MEP的状态信息中的管理状态更改之 前, 当所述第一 MEP处于正常状态时, 所述第一 MEP获取所述第一 MEP的状态 信息中的管理状态值, 并将所述第一 MEP处于正常状态时的状态信息封装至第 二 CCM; 所述发送子单元, 还用于根据将所述第二 CCM发送至所述其他 MEP。 14. The first MEP according to claim 13, wherein the encapsulation subunit is further configured to, before the management status in the status information of the first MEP changes, when the first MEP is in a normal state When the first MEP is in the normal state, the first MEP obtains the management status value in the status information of the first MEP, and encapsulates the status information when the first MEP is in the normal state to the second CCM; the sending subunit also Used to send the second CCM to the other MEP according to the request.
15、 根据权利要求 13所述的第一 MEP, 其特征在于, 所述第一 MEP处于正 常状态时, 所述第一 MEP 的当前状态信息中的管理状态的值设置为 0, 所述第 一 MEP的管理状态更改包括: 当所述第一 MEP被管理设备删除时, 所述第一 MEP的状态信息中的管理状 态的值由 0变为 1 ; 或者 当所述第一 MEP被管理设备关闭时, 所述第一 MEP的状态信息中的管理状 态的值由 0变为 1 ; 或者, 当所述第一 MEP所在的管理设备发生主备切换时, 所述第一 MEP的状态信 息中的管理状态的值由 0变为 1。 15. The first MEP according to claim 13, wherein when the first MEP is in a normal state, the value of the management status in the current status information of the first MEP is set to 0, and the first MEP is in a normal state. The management status change of the MEP includes: when the first MEP is deleted by the management device, the value of the management status in the status information of the first MEP changes from 0 to 1; or when the first MEP is shut down by the management device When, the value of the management status in the status information of the first MEP changes from 0 to 1; or, when the management device where the first MEP is located undergoes a master-standby switchover, the value of the management status in the status information of the first MEP changes from 0 to 1; The value of the management status changes from 0 to 1.
16、 根据权利要求 13或 15所述的第一 MEP, 其特征在于, 所述发送子单 元, 具体用于: 将所述第一 CCM发送至所述其他 MEP。 16. The first MEP according to claim 13 or 15, characterized in that the sending subunit is specifically used for: Send the first CCM to the other MEP.
17、 根据权利要求 12〜16任一项所述的第一 MEP, 其特征在于, 所述第一 MEP 的状态信息中的管理状态包括: 关闭、 删除以及所述第一 MEP所在设备的 主备切换。 17. The first MEP according to any one of claims 12 to 16, wherein the management status in the status information of the first MEP includes: shutdown, deletion, and primary and backup of the device where the first MEP is located. switch.
18、 根据权利要求 12所述的第一 MEP, 其特征在于, 所述发送单元, 还包 括: 设置子单元,用于当所述第一 MEP的功能和 /或对应该功能的资源发生更改 时, 将所述第一 MEP的状态信息中支持的功能种类以及对应的支持该功能的资 源信息对应的值重新置位; 所述封装子单元, 还用于将重新置位后的状态信息封装至第一 CCM; 所述发送子单元, 还用于通过触发连续发送将所述第一 CCM发送至所述其 他 MEP。 18. The first MEP according to claim 12, characterized in that the sending unit further includes: a setting subunit, used when the function of the first MEP and/or the resources corresponding to the function are changed. , reset the value corresponding to the function type supported in the status information of the first MEP and the corresponding resource information supporting the function; the encapsulation subunit is also used to encapsulate the reset status information into The first CCM; the sending subunit is also used to send the first CCM to the other MEP by triggering continuous sending.
19、 根据权利要求 12-18 中任一所述的第一 MEP, 其特征在于, 所述其他 MEP与所述第一 MEP位于同一维护联盟 MA内。 19. The first MEP according to any one of claims 12 to 18, characterized in that the other MEP and the first MEP are located in the same maintenance alliance MA.
20、 根据权利要求 12-19 中任一所述的第一 MEP, 其特征在于, 所述第一20. The first MEP according to any one of claims 12-19, characterized in that, the first
CCM包括 Capab i l i ty TLV, 该 Capab i l i ty TLV用于携带所述第一 MEP的状态信 息。 The CCM includes a Capability TLV, which is used to carry status information of the first MEP.
21、 根据权利要求 20所述的第一 MEP, 其特征在于, 所述 Capab i l i ty TLV还 包括 SubTLV , 所述 SubTLV用于携带所述第一 MEP的状态信息中的管理状态、 支持 的功能种类以及对应支持所述功能种类的资源信息中的一种或多种。 21. The first MEP according to claim 20, wherein the Capability TLV further includes a SubTLV, and the SubTLV is used to carry the management status and supported function types in the status information of the first MEP. and one or more types of resource information corresponding to supporting the functional type.
PCT/CN2014/084900 2013-09-16 2014-08-21 Method and device for announcing state between nodes WO2015035852A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310422696.2A CN104468158B (en) 2013-09-16 2013-09-16 The method and apparatus of state advertisement between a kind of node
CN201310422696.2 2013-09-16

Publications (1)

Publication Number Publication Date
WO2015035852A1 true WO2015035852A1 (en) 2015-03-19

Family

ID=52665046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084900 WO2015035852A1 (en) 2013-09-16 2014-08-21 Method and device for announcing state between nodes

Country Status (2)

Country Link
CN (1) CN104468158B (en)
WO (1) WO2015035852A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055162B (en) * 2017-12-29 2020-12-25 瑞斯康达科技发展股份有限公司 Fault determination method and node
CN108667691B (en) * 2018-06-25 2021-01-01 北京小度信息科技有限公司 Network state monitoring method, device, equipment and computer readable storage medium
CN111381941A (en) * 2018-12-27 2020-07-07 北京忆恒创源科技有限公司 Method and device for providing QoS in concurrent task processing system
CN115696304B (en) * 2023-01-03 2023-03-21 顺霆科技(无锡)有限公司 Information issuing method for splitting and merging distributed application merging self-organizing network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540692A (en) * 2009-04-14 2009-09-23 杭州华三通信技术有限公司 Dynamic multicast configuration method and node equipment
CN101547139A (en) * 2008-03-28 2009-09-30 华为技术有限公司 Method and device for announcing network topology changes
CN101674229A (en) * 2008-09-12 2010-03-17 华为技术有限公司 Information management method of link aggregation group and network node
CN103262470A (en) * 2012-08-21 2013-08-21 华为技术有限公司 FCoE network linking management method, device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610180A (en) * 2008-06-18 2009-12-23 华为技术有限公司 The difference maintaining end point leaves, recovers, alarms in the Ethernet detection of connectivity method and warning system
CN101521603B (en) * 2008-12-26 2011-10-26 中兴通讯股份有限公司 Method and system for quickly detecting connectivity of link
CN102164042A (en) * 2010-02-21 2011-08-24 华为技术有限公司 Connectivity fault alarming method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547139A (en) * 2008-03-28 2009-09-30 华为技术有限公司 Method and device for announcing network topology changes
CN101674229A (en) * 2008-09-12 2010-03-17 华为技术有限公司 Information management method of link aggregation group and network node
CN101540692A (en) * 2009-04-14 2009-09-23 杭州华三通信技术有限公司 Dynamic multicast configuration method and node equipment
CN103262470A (en) * 2012-08-21 2013-08-21 华为技术有限公司 FCoE network linking management method, device and system

Also Published As

Publication number Publication date
CN104468158B (en) 2018-07-13
CN104468158A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
US11871283B2 (en) Service continuity implementation method, device, and service continuity implementation system
US11303564B2 (en) Packet forwarding method, apparatus, and system
JP6204510B2 (en) Topology discovery in hybrid networks
EP2725737B1 (en) Network policy configuration method, management device and network management centre device
US11528239B2 (en) Time-sensitive networking communication method and apparatus for configuring virtual switching node
US11665636B2 (en) Method for selecting access network type, device, and system
US20170302476A1 (en) Associating VXLANS With Tunnels
WO2019128273A1 (en) Method, device and system for determining connection relation of network devices
BR112014001861B1 (en) Method for implementing a packet radio general service tunnel protocol, and cloud computing system for managing the implementation of a packet radio general service tunneling protocol
US9288075B2 (en) Method and system for auto-configuration, and network node
WO2021204102A1 (en) Network information exposure method and device
WO2012088910A1 (en) Method and system for detecting connectivity fault
EP3417652A1 (en) Anchor mobility in wireless networks
WO2015035852A1 (en) Method and device for announcing state between nodes
WO2016062165A1 (en) Method and apparatus for implementing operations, administration and maintenance function
WO2018107974A1 (en) Routing switching-back method, and controller and system
WO2016110084A1 (en) Method, device and system for precision time protocol time synchronization in aggregation network
WO2018000859A1 (en) Topology determination method, message response method, controller and switch
CN109474446B (en) Method and device for negotiating synchronization
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
TWI740210B (en) Method for terminal device management and server
CN102761477B (en) Multicast protocol file transmitting method and device
WO2015024523A1 (en) Ip bearer network failure determining method and system
CN113938405A (en) Data processing method and device
CN104468386B (en) Flow equalization method and device in a kind of Ethernet virtualization internet network

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: 14844637

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: 14844637

Country of ref document: EP

Kind code of ref document: A1