WO2021233202A1 - Method for creating maintenance entity group intermediate point, node, and readable storage medium - Google Patents

Method for creating maintenance entity group intermediate point, node, and readable storage medium Download PDF

Info

Publication number
WO2021233202A1
WO2021233202A1 PCT/CN2021/093648 CN2021093648W WO2021233202A1 WO 2021233202 A1 WO2021233202 A1 WO 2021233202A1 CN 2021093648 W CN2021093648 W CN 2021093648W WO 2021233202 A1 WO2021233202 A1 WO 2021233202A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
mip
message
information
function
Prior art date
Application number
PCT/CN2021/093648
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 WO2021233202A1 publication Critical patent/WO2021233202A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the embodiments of the present invention relate to, but are not limited to, the field of communication technology, and in particular to a method for creating an intermediate point of a maintenance entity group, a node, and a computer-readable storage medium.
  • Ethernet operation and maintenance management is an OAM mechanism applied in Ethernet, mainly through Ethernet in the First Mile (EFM) and Connectivity Fault Management (CFM) ) Perform operation, management and maintenance functions on the network.
  • EFM First Mile
  • CFM Connectivity Fault Management
  • LB Loop Back
  • LT Link Trace
  • LB can be used to check the connectivity between a maintenance entity group boundary point (MEG End Point, MEP) and a maintenance entity group intermediate point (MEG Intermediate Point, MIP) or equivalent MEP
  • LT can track the transmission link Message (Link Trace Message, LTM) to view the end-to-end routing path.
  • the embodiment of the present invention provides a method for creating an intermediate point of a maintenance entity group, a node, and a computer-readable storage medium, which can reduce the burden of manually creating a MIP, thereby improving the efficiency of creating a MIP.
  • an embodiment of the present invention provides a method for creating an intermediate point of a maintenance entity group, which includes: a first node sends a function trigger message carrying first information for requesting to create an intermediate point MIP of a maintenance entity group to a second node. Text, so that the second node creates a MIP according to the first information.
  • an embodiment of the present invention also provides a method for creating an intermediate point of a maintenance entity group, which includes: a second node receives a function trigger message sent by a first node, and the function trigger message carries a message for requesting creation. The first information of the MIP; the second node creates the MIP according to the first information.
  • embodiments of the present invention also provide a node, including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the computer program as described above.
  • the method for creating an intermediate point of a maintenance entity group in the first aspect or the method for creating an intermediate point of a maintenance entity group in the second aspect is implemented.
  • an embodiment of the present invention also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the method for creating an intermediate point of a maintenance entity group as described above.
  • FIG. 1 is a schematic diagram of a network topology for executing a method for creating an intermediate point of a maintenance entity group according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of the structure of a special LTM message provided by an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention.
  • FIG. 5 is a schematic diagram of the structure of a special LTR message provided by an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention.
  • Fig. 10 is a schematic diagram of a node provided by an embodiment of the present invention.
  • the embodiment of the present invention provides a method for creating an intermediate point of a maintenance entity group, a node, and a computer-readable storage medium.
  • the first node sends a function trigger message to the second node, and the The function trigger message carries the first information used to indicate that the MIP is requested to be created. Therefore, in the case that the second node receives the function trigger message sent by the first node, the second node can trigger the message according to the function.
  • MIP is automatically created based on the first information, thereby reducing the burden of manually creating MIPs and improving the efficiency of creating MIPs.
  • FIG. 1 is a schematic diagram of a network topology for executing a method for creating an intermediate point of a maintenance entity group according to an embodiment of the present invention.
  • the network topology includes a first node 100, a second node 200, and a third node 300, where the first node 100, the second node 200, and the third node 300 can all support Ethernet services.
  • the first node 100 is provided with an out port
  • the second node 200 is provided with an ingress port and an egress port
  • the third node 300 is provided with an ingress port
  • the egress port of the first node 100 is connected to the ingress port of the second node 200
  • the second node The outgoing port of 200 is connected to the incoming port of the third node 300.
  • a set of peer-to-peer MEPs can be established between the first node 100 and the third node 300.
  • the MIP can be created in the second node 200. Create MIPs for ingress and egress ports.
  • the first node 100, the second node 200, and the third node 300 may respectively include a memory and a processor, where the memory and the processor may be connected by a bus or in other ways.
  • the memory can be used to store non-transitory software programs and non-transitory computer-executable programs.
  • the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • the memory may include a memory remotely provided with respect to the processor, and these remote memories may be connected to the processor through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the network topology and application scenarios described in the embodiments of the present invention are to illustrate the technical solutions of the embodiments of the present invention more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention.
  • Those skilled in the art will know that with the network topology With the evolution of and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present invention are equally applicable to similar technical problems.
  • topology shown in FIG. 1 does not constitute a limitation to the embodiment of the present invention, and may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • each node can respectively call its stored maintenance entity group intermediate point creation program to execute the maintenance entity group intermediate point creation method.
  • FIG. 2 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to an embodiment of the present invention.
  • the method for creating an intermediate point of a maintenance entity group includes but is not limited to step S100.
  • Step S100 The first node sends to the second node a function trigger message carrying first information for requesting to create a MIP, so that the second node creates a MIP according to the first information.
  • the function trigger message may be a special LTM message suitable for performing the LT function, or a special loopback message (Loopback Message, LBM) message suitable for performing the LB function.
  • LBM Loopback Message
  • the special LTM message and the special LBM message are only different in message format and application scenarios, but the two kinds of messages are used to trigger the function of creating MIP and the fields needed to realize the function of creating MIP
  • the information and other contents are the same.
  • the following takes the application scenario of automatically creating MIP when the LT function is executed as an example for explanation.
  • the second node can receive the special LTM message sent by the first node, since the special LTM message carries the first information used to indicate the request to create the MIP, the second node can The MIP is created under the trigger of information, that is, the second node can automatically create the MIP according to the first information in the special LTM message, thereby reducing the burden of manually creating the MIP and improving the efficiency of creating the MIP.
  • the first node and the second node may be located in the same network device, or may be located in different network devices, which is not specifically limited in this embodiment.
  • the first node may have a regular LTM message and a special LTM message. Text (that is, the function trigger message in this embodiment).
  • the first node can be configured with an enable switch for requesting the creation of a MIP.
  • the second node needs to be requested to create a MIP, the first node can turn on the enable switch, and when the enable switch is on, the first node The second node will send a special LTM message carrying the first information for requesting the creation of a MIP; when there is no need to create a MIP, the enable switch will be turned off.
  • the first node will execute In the case of the LT function, a regular LTM message is sent to the second node.
  • LTM messages are messages that need to be used when performing LT functions in some situations.
  • the special LTM message may be improved on the basis of the conventional LTM message.
  • a new field structure may be extended in the conventional LTM message to carry the first information used to indicate a request to create a MIP. It is also possible to redefine the field structure in the conventional LTM message to carry the first information used to indicate the request to create the MIP, which is not specifically limited in this embodiment.
  • FIG. 3 is a schematic diagram of the structure of a special LTM message provided by an embodiment.
  • the structure of the special LTM message includes an Ethernet message header and LTM message content. ,
  • the explanation of each main field of the message structure is as follows:
  • DMAC used to indicate the destination address, encapsulated in the Ethernet message header, the specific value is different from the regular LTM message, for example, the value range of the DMAC field of the regular LTM message is 01-80-C2-00-00 -38 to 01-80-C2-00-00-3F, and in this embodiment, the value of the DMAC field of the special LTM message is 01-80-C2-00-00-40;
  • SMAC used to indicate the source address, encapsulated in the Ethernet packet header
  • Type used to indicate the type
  • MD level used to indicate the level of the maintenance domain
  • OpCode used to indicate the message code, when the message is an LTM message, the value is 0x05;
  • Original MAC used to indicate the address of the source node performing the LT function, that is, the address of the node where the local MEP is located;
  • Target MAC used to indicate the address of the target node performing the LT function, that is, the address of the node where the opposite MEP is located;
  • Additional LTM TLVs used to indicate additional TLV fields, and different TLV contents can be added according to the actual situation.
  • the first information that is carried in the special LTM message and used to indicate a request to create a MIP can be stored in the DMAC field, and It is a special value, for example, the value is 01-80-C2-00-00-40, which is used to indicate that the LTM message is a special LTM message and is used to indicate a request to create a MIP.
  • the second node obtains a special LTM message sent by the first node
  • the DMAC field obtained by the second node by parsing the special LTM message has a value of 01-80-C2-00-00-40
  • the second node will automatically create a MIP based on the first information, which can reduce the burden of manually creating a MIP and improve the efficiency of creating a MIP.
  • the first information used to indicate the request to create the MIP can also be stored in the Additional LTM TLVs field in the format of TLV, which is not specifically limited in this embodiment.
  • the function trigger message also carries at least information such as level parameters and virtual local area network parameters used to create the MIP.
  • the level parameter can be stored in the above MD level field
  • the virtual local area network parameter can be stored in the Ethernet packet header.
  • the method for creating an intermediate point of the maintenance entity group further includes the following steps:
  • Step S200 The first node receives a function response message from the second node within a preset time period
  • Step S300 When the function response message carries the second information indicating that the MIP is successfully created, the first node caches the second information.
  • the function response message may be a Link Trace Reply (LTR) message suitable for performing the LT function, or may be a Loopback Reply (LBR) suitable for performing the LB function.
  • LTR Link Trace Reply
  • LBR Loopback Reply
  • the function response message that carries the second information to indicate the successful creation of the MIP is a special message that is different from the regular LTR message or the regular LBR message.
  • the function response message can be a special LTR message or a special LBR message.
  • the special LTR message and the special LBR message are only different in message format and application scenarios, but the two kinds of messages are used to trigger the function of creating MIP and the fields needed to realize the function of creating MIP
  • the information and other contents are the same.
  • the following takes the application scenario of automatically creating MIP when the LT function is executed as an example for explanation.
  • the second node when the first node sends a special LTM message to the second node so that the second node creates an MIP based on the first information in the special LTM message, the second node will reply to the first node with the special LTR message.
  • the special LTR message meets the aging condition, that is, when the first node receives the special LTR message within the preset time period, the first node can determine that the special LTR message is valid. , The first node will parse the special LTR message.
  • the special LTR message carries the second information indicating that the MIP is successfully created, it means that the second node has successfully created the MIP.
  • the first node can Cache the second information in the received special LTR message, or directly report the second information in the special LTR message to the network manager.
  • the first node may not report the second information in the special LTR message to the network manager, but wait for all intermediate nodes between the receiving and the opposite MEP to complete Special LTR messages sent for the creation of MIP, when the first node receives the special LTR messages replies from all intermediate nodes that created the MIP, the first node then reports the second information in these special LTR messages to Network manager.
  • the first node may also report the second information of the special LTR message to the network manager every time it receives a special LTR message, which is not specifically limited in this embodiment.
  • the preset time period can be appropriately selected according to actual application needs, and this embodiment does not specifically limit it.
  • the first node will determine that the function response message is invalid. At this time, the first node may discard the function response message and wait to receive the next function response message.
  • the network manager when the function response message carries the second information indicating that the MIP is successfully created, after the first node reports the second information in the function response message to the network manager, the network manager can The information content related to the creation of the MIP carried in the second information is stored, such as the node that created the MIP, the address of the node that created the MIP, and so on. Therefore, the network manager can know whether each intermediate node has successfully created the MIP, and can also obtain the relevant information of the intermediate nodes in the entire maintenance domain, which can facilitate the network manager's management of the entire maintenance domain.
  • the second node when the LT function is executed, since the function response message carrying the second information indicating that the MIP is successfully created is a special LTR message created by the second node, the second node can establish There are regular LTR messages and special LTR messages.
  • the second node When the second node receives the regular LTM message sent by the first node, the second node will reply with a regular LTR message according to the regular LTM message; and when the second node receives the special LTM message sent by the first node When sending a message, the second node will reply a special LTR message according to the special LTM message.
  • a conventional LTR message is a message that needs to be used when performing the LT function in some situations.
  • the LT function When the LT function is performed, it can be used to view the end-to-end routing between nodes when received. After the regular LTM message of the path, a regular LTR message is returned.
  • the function response message carrying the second information indicating that the MIP is successfully created can be improved on the basis of the existing related message format.
  • a special LTR message may be a regular LTR message. Improved on the basis of the text, for example, you can extend the new field structure in the regular LTR message to carry the second information used to indicate the successful creation of the MIP, or you can redefine the field structure in the regular LTR message to carry The second information used to indicate the successful creation of the MIP is not specifically limited in this embodiment.
  • FIG. 5 is a schematic diagram of the structure of a special LTR message provided by an embodiment.
  • the structure of the special LTR message includes an Ethernet message header and LTR message content. ,
  • the explanation of each main field of the message structure is as follows:
  • DMAC used to indicate the destination address, encapsulated in the Ethernet packet header
  • SMAC used to indicate the source address, encapsulated in the Ethernet packet header, and its value corresponds to the value of the DMAC field of the special LTM packet in the foregoing embodiment
  • Type used to indicate the type
  • MD level used to indicate the level of the maintenance domain
  • OpCode used to indicate the message code, when the message is an LTR message, the value is 0x04;
  • Additional LTM TLVs indicates additional TLV fields, which are used to store the second information related to the creation of MIPs.
  • the first node may determine whether the current LTR message is a special LTR message carrying the second information related to the creation of MIP through the value of the SMAC field, or may identify the value in the Additional LTM TLVs field. Whether the content is related to the creation of the MIP and determining whether the current LTR message is a special LTR message carrying the second information related to the creation of the MIP is not specifically limited in this embodiment.
  • the method for creating an intermediate point of the maintenance entity group further includes the following steps:
  • Step S400 When the function response message does not carry the second information for indicating that the MIP is successfully created, the first node reports the cached second information to the network manager.
  • the first node in the case that the first node caches the second information carried in the function response message to indicate the successful creation of the MIP, if the first node receives a message that does not carry the second information used to indicate the successful creation of the MIP A function response message for the second information. For example, if the first node receives an LTR message that does not carry the second information, it means that the LTR message is a regular LTR message, and the regular LTR message comes from the pairing of the first node. The end MEP, at this time, indicates that the function trigger message sent by the first node has been forwarded to the opposite MEP, and the intermediate nodes have completed the creation of the MIP.
  • the first node will report the cached second information To the network manager, for example, the information such as the node that created the MIP and the address of the node that created the MIP are reported to the network manager, so that you can learn through the network manager whether each intermediate node has successfully created the MIP, and can also pass The network manager obtains the relevant information of the intermediate nodes in the entire maintenance domain, which is convenient for the network manager to manage the entire maintenance domain.
  • the second information includes location information of the node that created the MIP and flag information used to indicate the success or failure of the MIP creation.
  • the location information of the node that created the MIP and the flag information used to indicate the success or failure of the MIP creation can be configured in the message structure of the function response message, for example, as shown in FIG. 5 In the embodiment, in the Additional LTM TLVs field of the special LTR message structure.
  • the location information of the node that creates the MIP may include at least one of the network element name, rack number, sub-rack number, slot number, and other information, which is not specifically limited in this embodiment.
  • the flag information used to indicate the success or failure of the MIP creation can be a single identification information used to indicate whether the node's inbound port successfully created the MIP, or it may be a single identification information used to indicate whether the node's outbound port successfully created the MIP, and It may include multiple pieces of identification information used to indicate whether the ingress port and egress port of the node successfully create the MIP, which is not specifically limited in this embodiment.
  • the network manager can learn whether each intermediate node has successfully created the MIP, and can also obtain the intermediate nodes in the entire maintenance domain through the network manager , Which can facilitate the management of the entire maintenance domain by the network manager.
  • FIG. 6 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention.
  • the method for creating the intermediate point of the maintenance entity group includes but is not limited to the following steps:
  • Step S510 The second node receives a function trigger message sent by the first node, where the function trigger message carries first information used to indicate a request to create a MIP;
  • Step S520 the second node creates a MIP according to the first information.
  • the function trigger message may be a special LTM message suitable for performing the LT function, or a special LBM message suitable for performing the LB function. It is worth noting that, regardless of whether the function trigger message is a special LTM message or a special LBM message, it will carry the first information used to indicate a request to create a MIP.
  • the second node receives the special LTM message sent by the first node, since the special LTM message carries the first information used to indicate the request to create the MIP, the second node can The MIP is created under the trigger of information, that is, the second node can automatically create the MIP according to the first information in the special LTM message, thereby reducing the burden of manually creating the MIP and improving the efficiency of creating the MIP.
  • the function trigger message that carries the first information for requesting to create a MIP can be improved on the basis of the existing related message format.
  • a special LTM message can be a regular LTM message. Improved on the basis of the text, for example, you can extend a new field structure in a conventional LTM message to carry the first information used to indicate a request to create a MIP, or you can redefine the field structure in a conventional LTM message to carry The first information used to indicate the request to create the MIP is not specifically limited in this embodiment.
  • the method for creating an intermediate point of the maintenance entity group further includes the following steps:
  • Step S530 Determine the outgoing port and forward the function trigger message.
  • the second node when the second node receives the function trigger message sent by the first node, the second node will first determine whether the content of the function trigger message carries the address of the second node, for example, determine a special LTM Whether the content of the Target MAC field in the message is the address of the second node, if the content of the Target MAC field is not the address of the second node, it means that the second node is an intermediate node between a group of peer MEPs.
  • the first The second node will create the MIP according to the first information contained in the function trigger message to indicate the request to create the MIP, and when the creation of the MIP is completed, the second node will also determine the port and forward the function to the next node Trigger messages, so that the function trigger messages can flow through all intermediate nodes between peer MEPs, so that all intermediate nodes can create MIPs according to the first information in the function trigger message.
  • the intermediate node or the opposite MEP when the first node sends a function trigger message to the opposite MEP, if the intermediate node or the opposite MEP receives the function trigger message, it will reply to the first node with a function response message, if When the intermediate node receives the function response message, the intermediate node will determine the port and forward the function response message, and will not perform related processing according to the function response message, that is, the intermediate node transparently transmits the function response message.
  • the peer MEP (for example, the third node in the embodiment shown in FIG. 1) receives the function trigger message sent by the first node, the peer MEP will first determine that the function trigger message is If the content of the Target MAC field is the address of the current node, if the content of the Target MAC field is the address of the current node, the opposite MEP will first determine whether there is a MEP corresponding to the function trigger message on the corresponding flow point. , It means that the current node is the target node to which the function trigger message needs to be transmitted.
  • the opposite MEP will reply to the first node a function response message that does not carry the second information related to the creation of the MIP, and stop forwarding This function triggers a message.
  • the opposite end MEP determines that there is no MEP corresponding to the function trigger message on the corresponding flow point, the opposite end MEP will directly discard the function trigger message.
  • the function trigger message also carries at least information such as level parameters and virtual local area network parameters used to create the MIP.
  • the level parameter may be stored in the MD level field in the special LTM message structure of the embodiment shown in FIG. 3, and the virtual local area network parameters may be stored in the special LTM message structure of the embodiment shown in FIG. 3 In the Ethernet packet header.
  • step S520 includes but is not limited to the following steps:
  • Step S521 the second node triggers the level parameter and the virtual local area network parameter in the message according to the first information acquisition function
  • step S522 the second node creates an MIP on the ingress port and egress port of the second node respectively according to the level parameter and the virtual local area network parameter.
  • the second node after the second node receives the function trigger message sent by the first node, the second node will first determine whether the function trigger message carries the first information used to indicate the request to create a MIP. If the trigger message carries the first information, the second node will parse and obtain the level parameters and virtual local area network parameters in the function trigger message, and according to the level parameters and virtual local area network parameters, the ingress and egress ports of the second node MIP is created automatically. It is worth noting that the outgoing port of the MIP created in the second node can be obtained according to information such as the Media Access Control Address (MAC) table in the second node.
  • MAC Media Access Control Address
  • the second node when the second node separately creates MIPs on its ingress port and egress port, if the corresponding MIP already exists, the second node does not perform a specific creation operation and is deemed to have been successfully created.
  • the method for creating an intermediate point of the maintenance entity group further includes the following steps:
  • Step S540 The second node sends to the first node a function response message carrying the second information indicating that the MIP is successfully created, so that the first node caches the second information or reports the second information to the network manager.
  • the function response message may be an LTR message suitable for performing the LT function, or may be an LBR message suitable for performing the LB function. It is worth noting that the function response message that carries the second information to indicate the successful creation of the MIP is a special message that is different from the regular LTR message or the regular LBR message. When the function response message carries the message to indicate success When creating the second message of the MIP, the function response message can be a special LTR message or a special LBR message.
  • the second node after the second node creates the MIP according to the function trigger message sent by the first node, the second node will reply to the first node with a function response message, and when the first node receives the function response message After the text, the first node will parse the function response message. If the function response message carries the second information indicating that the MIP is successfully created, it means that the second node has successfully created the MIP. At this time, the first The node may buffer the second information in the received function response message, or directly report the second information in the function response message to the network manager.
  • the second node when the LT function is executed, since the function response message carrying the second information indicating that the MIP is successfully created is a special LTR message created by the second node, the second node can establish There are regular LTR messages and special LTR messages.
  • the second node When the second node receives the regular LTM message sent by the first node, the second node will reply with a regular LTR message according to the regular LTM message; and when the second node receives the special LTM message sent by the first node When sending a message, the second node will reply a special LTR message according to the special LTM message.
  • the function response message carrying the second information indicating that the MIP is successfully created can be improved on the basis of the existing related message format.
  • a special LTR message may be a regular LTR message. Improved on the basis of the text, for example, you can extend the new field structure in the regular LTR message to carry the second information used to indicate the successful creation of the MIP, or you can redefine the field structure in the regular LTR message to carry The second information used to indicate the successful creation of the MIP is not specifically limited in this embodiment.
  • the second information includes location information of the node that created the MIP and flag information used to indicate the success or failure of the MIP creation.
  • the location information of the node that created the MIP and the flag information used to indicate the success or failure of the MIP creation can be configured in the message structure of the function response message, for example, as shown in FIG. 5 In the embodiment, in the Additional LTM TLVs field of the special LTR message structure.
  • the location information of the node that creates the MIP may include at least one of the network element name, rack number, sub-rack number, slot number, and other information, which is not specifically limited in this embodiment.
  • the flag information used to indicate the success or failure of the MIP creation can be a single identification information used to indicate whether the node's inbound port successfully created the MIP, or it may be a single identification information used to indicate whether the node's outbound port successfully created the MIP, and It may include multiple pieces of identification information used to indicate whether the ingress port and egress port of the node successfully create the MIP, which is not specifically limited in this embodiment.
  • the network manager can learn whether each intermediate node has successfully created the MIP, and can also obtain the intermediate nodes in the entire maintenance domain through the network manager , Which can facilitate the management of the entire maintenance domain by the network manager.
  • FIG. 8 is a flowchart of a method for creating an intermediate point of a maintenance entity group applied to a network topology.
  • the network topology includes a first node 100, a second node 200, a third node 300, and a fourth node 400, wherein , The first node 100, the second node 200, the third node 300, and the fourth node 400 can all support Ethernet services.
  • the first node 100 and the fourth node 400 create a set of peer MEPs, and the second node 200 and the third node 300 are both intermediate nodes between the set of peer MEPs.
  • MIPs need to be created on the second node 200 and the third node 300.
  • the first node 100 sends a special LTM message to the fourth node 400 (the content of the DMAC field in the message is 01-80-C2-00-40, and the content of other fields is the same as the regular LTM message Same), the special LTM message will be transmitted to the second node 200 first.
  • the second node 200 After the second node 200 determines that the special LTM message conforms to the rule, the second node 200 determines that the content of the DMAC field of the special LTM message is 01-80-C2-00-40, the second node 200 will parse and obtain information such as level parameters and virtual local area network parameters in the special LTM message, and create a MIP on the ingress port and egress port of the second node 200 respectively After the creation of the MIP is completed, the second node 200 will reply to the first node 100 a special LTR message that carries the network element name, rack number, subrack number, slot number, and It indicates whether the ingress port and egress port of the second node 200 have successfully created the MIP flag information, etc.
  • the second node 200 will determine the egress port for transmitting the special LTM message, and forward the special LTM message through the egress port To the third node 300; when the third node 300 receives the special LTM message forwarded by the second node 200, the third node 300 performs the same processing as the second node 200, and forwards the special LTM message to the fourth node 400 LTM message; when the fourth node 400 receives the special LTM message, the fourth node 400 determines that the content of the Target MAC field in the special LTM message is the MAC address of the fourth node 400, so the fourth node 400 Reply a regular LTR message to the first node 100, and stop forwarding the special LTM message.
  • the first node 100 When the first node 100 obtains the special LTR messages sent by the second node 200 and the third node 300 within the preset time period, the first node 100 will carry the information of the node that created the MIP carried in the special LTR message. The location information and the flag information used to indicate the success or failure of MIP creation are cached, and when the first node 100 receives the regular LTR message sent by the fourth node 400, the first node 100 will report all the cached information to Network manager.
  • FIG. 9 is a flowchart of a method for creating an intermediate point of a maintenance entity group applied to another network topology, which includes a first node 100, a second node 200, a third node 300, and a fourth node 400, Among them, the first node 100, the second node 200, the third node 300, and the fourth node 400 can all support Ethernet services.
  • the first node 100, the third node 300, and the fourth node 400 create a point-to-multipoint MEP.
  • the first node 100 and the third node 300 are a set of peer-to-peer MEPs
  • the node 400 is another set of peer-to-peer MEPs
  • the second node 200 is an intermediate node between the first node 100 and the third node 300.
  • the first node 100 sends a special LTM message to the third node 300 (the content of the DMAC field in the message is 01-80-C2-00-40, and the content of other fields is the same as the regular LTM message Same), the special LTM message will be transmitted to the second node 200 first.
  • the second node 200 determines that the special LTM message conforms to the rule, the second node 200 determines that the content of the DMAC field of the special LTM message is 01-80-C2-00-40, the second node 200 will parse and obtain information such as level parameters and virtual local area network parameters in the special LTM message, and create a MIP on the ingress port and egress port of the second node 200 respectively After the creation of the MIP is completed, the second node 200 will reply to the first node 100 a special LTR message that carries the network element name, rack number, subrack number, slot number, and It indicates whether the ingress port and egress port of the second node 200 have successfully created the MIP flag information, etc.
  • the second node 200 will determine the egress port for transmitting the special LTM message, and forward the special LTM message through the egress port To the third node 300; when the third node 300 receives the special LTM message, the third node 300 determines that the content of the Target MAC field in the special LTM message is the MAC address of the third node 300, so the third node 300 The node 300 replies a regular LTR message to the first node 100 and stops forwarding the special LTM message.
  • the first node 100 When the first node 100 obtains the special LTR message sent by the second node 200 within a preset time period, the first node 100 will carry the location information of the node that created the MIP carried in the special LTR message and use it to indicate The flag information indicating the success or failure of MIP creation is cached, and when the first node 100 receives the regular LTR message sent by the third node 300, the first node 100 will report all the cached information to the network manager.
  • an embodiment of the present invention provides a node, which includes a memory 501, a processor 502, and a computer program stored in the memory and running on the processor.
  • the processor and the memory can be connected by a bus or in other ways.
  • the node in this embodiment can be applied to the node in the embodiment shown in Figure 1, Figure 8 or Figure 9.
  • the node in this embodiment can form the one shown in Figure 1, Figure 8 or Figure 9.
  • these embodiments belong to the same inventive concept. Therefore, these embodiments have the same implementation principles and technical effects, which will not be described in detail here.
  • the non-transitory software programs and instructions required to implement the method for creating the intermediate point of the maintenance entity group of the foregoing embodiment are stored in the memory.
  • the method for creating the intermediate point of the maintenance entity group of the foregoing embodiment is executed, for example, executing The method step S100 in FIG. 2, the method steps S200 to S300 in FIG. 4, the method steps S510 to S520 in FIG. 6, or the method steps S521 to S522 in FIG. 7 are described above.
  • the device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • an embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by a processor or a controller, for example, by the aforementioned
  • the execution of a processor in the node embodiment can make the above-mentioned processor execute the method for creating the intermediate point of the maintenance entity group in the above-mentioned embodiment, for example, execute the method step S100 in FIG. 2 and the method step S200 in FIG. 4 described above.
  • computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data).
  • Information such as computer-readable instructions, data structures, program modules, or other data.
  • Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or Any other medium used to store desired information and that can be accessed by a computer.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .
  • the first node is used to send a function trigger message to the second node, and the function trigger message carries the first information used to indicate the request to create the MIP. Therefore, the second node receives the message from the first node.
  • the second node can automatically create the MIP according to the first information in the function trigger message, thereby reducing the burden of manually creating the MIP and improving the efficiency of creating the MIP.
  • the embodiment of the present invention includes: a first node sends a function trigger message carrying first information for requesting creation of a MIP to a second node, so that the second node creates a MIP according to the first information.
  • a first node sends a function trigger message carrying first information for requesting creation of a MIP to a second node, so that the second node creates a MIP according to the first information.
  • the second node when the LT function or the LB function is executed, when the second node receives the function trigger message sent by the first node, since the function trigger message carries a request to create a MIP
  • the first information therefore, the second node can create MIPs triggered by the first information, that is, the second node can automatically create MIPs based on the first information in the function trigger message, thereby reducing the burden of manually creating MIPs , Improve the efficiency of creating MIP.

Abstract

A method for creating a maintenance entity group intermediate point, a node, and a readable storage medium. The method for creating a maintenance entity group intermediate point comprises: a first node sends to a second node a function trigger message carrying first information expressing a request for the creation of a maintenance entity group intermediate point (MIP), so that the second node creates the MIP according to the first information (S100).

Description

维护实体组中间点创建方法、节点及可读存储介质Method for creating intermediate point of maintenance entity group, node and readable storage medium
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为202010428505.3、申请日为2020年05月20日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with an application number of 202010428505.3 and an application date of May 20, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference into this application.
技术领域Technical field
本发明实施例涉及但不限于通信技术领域,尤其涉及一种维护实体组中间点创建方法、节点及计算机可读存储介质。The embodiments of the present invention relate to, but are not limited to, the field of communication technology, and in particular to a method for creating an intermediate point of a maintenance entity group, a node, and a computer-readable storage medium.
背景技术Background technique
以太网操作维护管理(Operation Administration and Maintenance,OAM)技术是应用在以太网中的OAM机制,主要通过第一英里以太网(Ethernet in the First Mile,EFM)和连接故障管理(Connectivity Fault Management,CFM)对网络进行操作管理维护功能。其中,回环(Loop Back,LB)和链路跟踪(Link Trace,LT)是CFM的重要功能。LB可以用于检验一个维护实体组边界点(MEG End Point,MEP)与一个维护实体组中间点(MEG Intermediate Point,MIP)或对等的MEP之间的连通性;LT可以通过发送链路跟踪消息(Link Trace Message,LTM)来查看端到端的路由路径。Ethernet operation and maintenance management (Operation Administration and Maintenance, OAM) technology is an OAM mechanism applied in Ethernet, mainly through Ethernet in the First Mile (EFM) and Connectivity Fault Management (CFM) ) Perform operation, management and maintenance functions on the network. Among them, Loop Back (LB) and Link Trace (LT) are important functions of CFM. LB can be used to check the connectivity between a maintenance entity group boundary point (MEG End Point, MEP) and a maintenance entity group intermediate point (MEG Intermediate Point, MIP) or equivalent MEP; LT can track the transmission link Message (Link Trace Message, LTM) to view the end-to-end routing path.
在一些情形下中,当使用CFM对中间节点进行故障诊断时,通常需要在中间节点部署MIP,在中间节点部署了MIP的基础上,再执行LB和LT以对中间节点进行故障诊断。即,若要对中间节点进行故障诊断,MIP的创建是必须的,但是,在一些情形下中,MIP的创建只能由人工进行。在网络拓扑比较复杂的情况下,如果每次对中间节点执行LB和LT都需要人工去创建MIP,必然会浪费很多的时间,特别对于开发、测试、工程维护等人员来说,会特别影响效率。In some cases, when using CFM to diagnose the fault of an intermediate node, it is usually necessary to deploy MIP on the intermediate node. After the MIP is deployed on the intermediate node, perform LB and LT to diagnose the fault of the intermediate node. That is, to perform fault diagnosis on the intermediate node, the creation of the MIP is necessary, but in some cases, the creation of the MIP can only be performed manually. In the case of complex network topology, if you need to manually create MIPs every time you execute LB and LT on intermediate nodes, it will inevitably waste a lot of time, especially for development, testing, engineering maintenance, etc. personnel, which will particularly affect efficiency .
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this article. This summary is not intended to limit the scope of protection of the claims.
本发明实施例提供了一种维护实体组中间点创建方法、节点及计算机可读存储介质,能够减少人工创建MIP的负担,从而提高创建MIP的效率。The embodiment of the present invention provides a method for creating an intermediate point of a maintenance entity group, a node, and a computer-readable storage medium, which can reduce the burden of manually creating a MIP, thereby improving the efficiency of creating a MIP.
第一方面,本发明实施例提供了一种维护实体组中间点创建方法,包括:第一节点向第二节点发送携带有用于表示请求创建维护实体组中间点MIP的第一信息的功能触发报文,以使第二节点根据所述第一信息创建MIP。In a first aspect, an embodiment of the present invention provides a method for creating an intermediate point of a maintenance entity group, which includes: a first node sends a function trigger message carrying first information for requesting to create an intermediate point MIP of a maintenance entity group to a second node. Text, so that the second node creates a MIP according to the first information.
第二方面,本发明实施例还提供了一种维护实体组中间点创建方法,包括:第二节点接收由第一节点发送的功能触发报文,所述功能触发报文携带有用于表示请求创建MIP的第一信息;第二节点根据所述第一信息创建MIP。In a second aspect, an embodiment of the present invention also provides a method for creating an intermediate point of a maintenance entity group, which includes: a second node receives a function trigger message sent by a first node, and the function trigger message carries a message for requesting creation. The first information of the MIP; the second node creates the MIP according to the first information.
第三方面,本发明实施例还提供了一种节点,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述第一方面的维护实体组中间点创建方法或者实现如上所述第二方面的维护实体组中间点创建方法。In the third aspect, embodiments of the present invention also provide a node, including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor. The processor executes the computer program as described above. The method for creating an intermediate point of a maintenance entity group in the first aspect or the method for creating an intermediate point of a maintenance entity group in the second aspect is implemented.
第四方面,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上所述的维护实体组中间点创建方法。In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the method for creating an intermediate point of a maintenance entity group as described above.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be described in the following description, and partly become obvious from the description, or understood by implementing the present invention. The purpose and other advantages of the present invention can be realized and obtained through the structures specifically pointed out in the specification, claims and drawings.
附图说明Description of the drawings
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.
图1是本发明一个实施例提供的用于执行维护实体组中间点创建方法的网络拓扑的示意图;FIG. 1 is a schematic diagram of a network topology for executing a method for creating an intermediate point of a maintenance entity group according to an embodiment of the present invention;
图2是本发明一个实施例提供的维护实体组中间点创建方法的流程图;2 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to an embodiment of the present invention;
图3是本发明一个实施例提供的特殊LTM报文的结构示意图;FIG. 3 is a schematic diagram of the structure of a special LTM message provided by an embodiment of the present invention;
图4是本发明另一实施例提供的维护实体组中间点创建方法的流程图;4 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention;
图5是本发明一个实施例提供的特殊LTR报文的结构示意图;FIG. 5 is a schematic diagram of the structure of a special LTR message provided by an embodiment of the present invention;
图6是本发明另一实施例提供的维护实体组中间点创建方法的流程图;6 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention;
图7是本发明另一实施例提供的维护实体组中间点创建方法的流程图;FIG. 7 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention;
图8是本发明另一实施例提供的维护实体组中间点创建方法的流程图;FIG. 8 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention;
图9是本发明另一实施例提供的维护实体组中间点创建方法的流程图;FIG. 9 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention;
图10是本发明一个实施例提供的节点的示意图。Fig. 10 is a schematic diagram of a node provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not used to limit the present invention.
需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, it can be performed in a different order from the module division in the device or in the sequence of the flowchart. Steps shown or described. The terms "first", "second", etc. in the specification and claims and the above-mentioned drawings are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence.
本发明实施例提供了一种维护实体组中间点创建方法、节点及计算机可读存储介质,在执行LT功能或LB功能时,通过利用第一节点向第二节点发送功能触发报文,并且该功能触发报 文携带有用于表示请求创建MIP的第一信息,因此,在第二节点接收到由第一节点发送的功能触发报文的情况下,第二节点可以根据该功能触发报文中的第一信息而自动创建MIP,从而能够减少人工创建MIP的负担,提高创建MIP的效率。The embodiment of the present invention provides a method for creating an intermediate point of a maintenance entity group, a node, and a computer-readable storage medium. When the LT function or the LB function is executed, the first node sends a function trigger message to the second node, and the The function trigger message carries the first information used to indicate that the MIP is requested to be created. Therefore, in the case that the second node receives the function trigger message sent by the first node, the second node can trigger the message according to the function. MIP is automatically created based on the first information, thereby reducing the burden of manually creating MIPs and improving the efficiency of creating MIPs.
下面结合附图,对本发明实施例作进一步阐述。The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
如图1所示,图1是本发明一个实施例提供的用于执行维护实体组中间点创建方法的网络拓扑的示意图。在图1的示例中,该网络拓扑包括第一节点100、第二节点200和第三节点300,其中,第一节点100、第二节点200和第三节点300均能够支持以太网业务。As shown in FIG. 1, FIG. 1 is a schematic diagram of a network topology for executing a method for creating an intermediate point of a maintenance entity group according to an embodiment of the present invention. In the example of FIG. 1, the network topology includes a first node 100, a second node 200, and a third node 300, where the first node 100, the second node 200, and the third node 300 can all support Ethernet services.
第一节点100设置有出端口,第二节点200设置有入端口和出端口,第三节点300设置有入端口,第一节点100的出端口与第二节点200的入端口连接,第二节点200的出端口与第三节点300的入端口连接。The first node 100 is provided with an out port, the second node 200 is provided with an ingress port and an egress port, the third node 300 is provided with an ingress port, the egress port of the first node 100 is connected to the ingress port of the second node 200, and the second node The outgoing port of 200 is connected to the incoming port of the third node 300.
第一节点100和第三节点300之间可以建立一组对等的MEP,当需要执行LT功能或LB功能时,可以在第二节点200中创建MIP,例如,需要分别在第二节点200的入端口和出端口创建MIP。A set of peer-to-peer MEPs can be established between the first node 100 and the third node 300. When the LT function or the LB function needs to be executed, the MIP can be created in the second node 200. Create MIPs for ingress and egress ports.
第一节点100、第二节点200和第三节点300可以分别包括有存储器和处理器,其中,存储器和处理器可以通过总线或者其他方式连接。The first node 100, the second node 200, and the third node 300 may respectively include a memory and a processor, where the memory and the processor may be connected by a bus or in other ways.
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可能包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some implementations, the memory may include a memory remotely provided with respect to the processor, and these remote memories may be connected to the processor through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
本发明实施例描述的网络拓扑以及应用场景是为了更加清楚的说明本发明实施例的技术方案,并不构成对于本发明实施例提供的技术方案的限定,本领域技术人员可知,随着网络拓扑的演变和新应用场景的出现,本发明实施例提供的技术方案对于类似的技术问题,同样适用。The network topology and application scenarios described in the embodiments of the present invention are to illustrate the technical solutions of the embodiments of the present invention more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. Those skilled in the art will know that with the network topology With the evolution of and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present invention are equally applicable to similar technical problems.
本领域技术人员可以理解的是,图1中示出的拓扑结构并不构成对本发明实施例的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the topology shown in FIG. 1 does not constitute a limitation to the embodiment of the present invention, and may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
在图1所示的网络拓扑中,各个节点可以分别调用其储存的维护实体组中间点创建程序,以执行维护实体组中间点创建方法。In the network topology shown in FIG. 1, each node can respectively call its stored maintenance entity group intermediate point creation program to execute the maintenance entity group intermediate point creation method.
基于上述网络拓扑的结构,提出本发明的维护实体组中间点创建方法的各个实施例。Based on the above-mentioned network topology structure, various embodiments of the method for creating an intermediate point of a maintenance entity group of the present invention are proposed.
如图2所示,图2是本发明一个实施例提供的维护实体组中间点创建方法的流程图,该维护实体组中间点创建方法包括但不限于步骤S100。As shown in FIG. 2, FIG. 2 is a flowchart of a method for creating an intermediate point of a maintenance entity group according to an embodiment of the present invention. The method for creating an intermediate point of a maintenance entity group includes but is not limited to step S100.
步骤S100,第一节点向第二节点发送携带有用于表示请求创建MIP的第一信息的功能触发 报文,以使第二节点根据第一信息创建MIP。Step S100: The first node sends to the second node a function trigger message carrying first information for requesting to create a MIP, so that the second node creates a MIP according to the first information.
在一实施例中,功能触发报文可以为适用于执行LT功能的特殊LTM报文,也可以为适用于执行LB功能的特殊环回消息(Loopback Message,LBM)报文。值得注意的是,不论功能触发报文是特殊LTM报文还是特殊LBM报文,都会携带有用于表示请求创建MIP的第一信息。In an embodiment, the function trigger message may be a special LTM message suitable for performing the LT function, or a special loopback message (Loopback Message, LBM) message suitable for performing the LB function. It is worth noting that, regardless of whether the function trigger message is a special LTM message or a special LBM message, it will carry the first information used to indicate a request to create a MIP.
值得注意的是,特殊LTM报文和特殊LBM报文仅在报文格式以及应用场景上有所区别,但两种报文用于触发创建MIP的功能以及实现创建MIP功能所需要用到的字段信息等内容都一致,为了避免说明书内容过于重复冗余,以及为了能够更清楚的说明本实施例的具体内容,下面以在执行LT功能时自动创建MIP的应用场景为例进行解释说明,而在执行LB功能时自动创建MIP的应用场景的相关解释说明,则可以参考在执行LT功能时自动创建MIP的应用场景的解释说明。It is worth noting that the special LTM message and the special LBM message are only different in message format and application scenarios, but the two kinds of messages are used to trigger the function of creating MIP and the fields needed to realize the function of creating MIP The information and other contents are the same. In order to avoid excessive repetition and redundancy of the contents of the manual, and to explain the specific contents of this embodiment more clearly, the following takes the application scenario of automatically creating MIP when the LT function is executed as an example for explanation. For the relevant explanations of the application scenarios of automatically creating MIPs when the LB function is executed, you can refer to the explanations of the application scenarios of automatically creating MIPs when executing the LT function.
在一实施例中,假设第一节点和第三节点之间建立了一组对等的MEP,并且在执行LT功能时,需要在处于第一节点和第三节点之间的第二节点创建MIP,那么,在第二节点接收到由第一节点发送的特殊LTM报文的情况下,由于特殊LTM报文携带有用于表示请求创建MIP的第一信息,因此,第二节点可以在该第一信息的触发下创建MIP,即,第二节点可以根据特殊LTM报文中的第一信息而自动创建MIP,从而能够减少人工创建MIP的负担,提高创建MIP的效率。值得注意的是,第一节点和第二节点可以处于同一个网络设备,也可以分别处于不同的网络设备,本实施例并不作具体限定。In an embodiment, it is assumed that a set of peer MEPs is established between the first node and the third node, and when the LT function is executed, the MIP needs to be created on the second node between the first node and the third node , Then, in the case that the second node receives the special LTM message sent by the first node, since the special LTM message carries the first information used to indicate the request to create the MIP, the second node can The MIP is created under the trigger of information, that is, the second node can automatically create the MIP according to the first information in the special LTM message, thereby reducing the burden of manually creating the MIP and improving the efficiency of creating the MIP. It is worth noting that the first node and the second node may be located in the same network device, or may be located in different network devices, which is not specifically limited in this embodiment.
在一实施例中,由于携带有用于表示请求创建MIP的第一信息的特殊LTM报文为由第一节点创建的,因此,第一节点中可以建立有常规的LTM报文和特殊的LTM报文(即本实施例中的功能触发报文)。第一节点中可以配置有用于请求创建MIP的使能开关,当需要请求第二节点创建MIP时,第一节点可以打开该使能开关,而在该使能开关处于打开状态时,第一节点会向第二节点发送携带有用于表示请求创建MIP的第一信息的特殊LTM报文;而当不需要创建MIP时,该使能开关则会处于关闭状态,此时,第一节点会在执行LT功能的情况下向第二节点发送常规的LTM报文。In an embodiment, since the special LTM message carrying the first information for requesting the creation of the MIP was created by the first node, the first node may have a regular LTM message and a special LTM message. Text (that is, the function trigger message in this embodiment). The first node can be configured with an enable switch for requesting the creation of a MIP. When the second node needs to be requested to create a MIP, the first node can turn on the enable switch, and when the enable switch is on, the first node The second node will send a special LTM message carrying the first information for requesting the creation of a MIP; when there is no need to create a MIP, the enable switch will be turned off. At this time, the first node will execute In the case of the LT function, a regular LTM message is sent to the second node.
本领域技术人员可以理解的是,常规LTM报文是在一些情形下中执行LT功能时所需要使用到的报文,在执行LT功能时,可以通过发送常规LTM报文查看节点间端到端的路由路径。Those skilled in the art can understand that conventional LTM messages are messages that need to be used when performing LT functions in some situations. When performing LT functions, you can send regular LTM messages to view the end-to-end information between nodes. Routing path.
在一实施例中,特殊LTM报文可以为在常规LTM报文的基础上改进得到,例如,可以通过在常规LTM报文中扩展新的字段结构以携带用于表示请求创建MIP的第一信息,也可以通过重新定义常规的LTM报文中的字段结构以携带用于表示请求创建MIP的第一信息,本实施例并不作具体限定。以一个具体示例进行说明,参照图3,图3是一实施例提供的特殊LTM报文的结构示意图,在该特殊LTM报文结构中,包括有以太网报文头和LTM报文内容,其中,该报 文结构的各主要字段的解释如下:In an embodiment, the special LTM message may be improved on the basis of the conventional LTM message. For example, a new field structure may be extended in the conventional LTM message to carry the first information used to indicate a request to create a MIP. It is also possible to redefine the field structure in the conventional LTM message to carry the first information used to indicate the request to create the MIP, which is not specifically limited in this embodiment. To illustrate with a specific example, referring to FIG. 3, FIG. 3 is a schematic diagram of the structure of a special LTM message provided by an embodiment. The structure of the special LTM message includes an Ethernet message header and LTM message content. , The explanation of each main field of the message structure is as follows:
DMAC:用于表示目的地址,封装在以太网报文头中,具体取值与常规LTM报文不同,例如,常规LTM报文的DMAC字段的取值范围为01-80-C2-00-00-38至01-80-C2-00-00-3F,而在本实施例中,特殊LTM报文的DMAC字段的取值为01-80-C2-00-00-40;DMAC: used to indicate the destination address, encapsulated in the Ethernet message header, the specific value is different from the regular LTM message, for example, the value range of the DMAC field of the regular LTM message is 01-80-C2-00-00 -38 to 01-80-C2-00-00-3F, and in this embodiment, the value of the DMAC field of the special LTM message is 01-80-C2-00-00-40;
SMAC:用于表示源地址,封装在以太网报文头中;SMAC: used to indicate the source address, encapsulated in the Ethernet packet header;
Type:用于表示类型;Type: used to indicate the type;
MD level:用于表示维护域的级别;MD level: used to indicate the level of the maintenance domain;
OpCode:用于表示消息编码,当报文为LTM报文时,取值0x05;OpCode: used to indicate the message code, when the message is an LTM message, the value is 0x05;
Original MAC:用于表示进行LT功能的源节点的地址,即本端MEP所在节点的地址;Original MAC: used to indicate the address of the source node performing the LT function, that is, the address of the node where the local MEP is located;
Target MAC:用于表示进行LT功能的目标节点的地址,即对端MEP所在节点的地址;Target MAC: used to indicate the address of the target node performing the LT function, that is, the address of the node where the opposite MEP is located;
Additional LTM TLVs:用于表示附加的TLV字段,可以根据实际情况添加不同的TLV内容。Additional LTM TLVs: used to indicate additional TLV fields, and different TLV contents can be added according to the actual situation.
值得注意的是,该特殊LTM报文结构中其它字段的解释,和常规的LTM报文中所包含的相应字段的解释相同,因此此处不再赘述。It is worth noting that the explanation of other fields in the structure of the special LTM message is the same as the explanation of the corresponding fields included in the conventional LTM message, so it will not be repeated here.
在一实施例中,在上述图3所示的特殊LTM报文结构的情况下,携带于特殊LTM报文之中的用于表示请求创建MIP的第一信息,可以保存在DMAC字段中,并且为特殊的取值,例如取值为01-80-C2-00-00-40,用于表示该LTM报文为特殊的LTM报文,用来指示请求创建MIP。例如,当第二节点获取到由第一节点发送的特殊LTM报文,并且第二节点通过解析该特殊LTM报文而得到的DMAC字段的取值为01-80-C2-00-00-40,则说明第一节点请求创建MIP,此时,如果特殊LTM报文中的Target MAC字段的地址信息并不是第二节点的地址,则说明第二节点是一组对等MEP之间的中间节点,因此,第二节点会根据该第一信息而自动创建MIP,从而能够减少人工创建MIP的负担,提高创建MIP的效率。值得注意的是,用于表示请求创建MIP的第一信息,还可以用TLV的格式保存在Additional LTM TLVs字段中,本实施例并不作具体限定。In an embodiment, in the case of the special LTM message structure shown in FIG. 3, the first information that is carried in the special LTM message and used to indicate a request to create a MIP can be stored in the DMAC field, and It is a special value, for example, the value is 01-80-C2-00-00-40, which is used to indicate that the LTM message is a special LTM message and is used to indicate a request to create a MIP. For example, when the second node obtains a special LTM message sent by the first node, and the DMAC field obtained by the second node by parsing the special LTM message has a value of 01-80-C2-00-00-40 , It means that the first node requests to create a MIP. At this time, if the address information of the Target MAC field in the special LTM message is not the address of the second node, it means that the second node is an intermediate node between a group of peer MEPs Therefore, the second node will automatically create a MIP based on the first information, which can reduce the burden of manually creating a MIP and improve the efficiency of creating a MIP. It is worth noting that the first information used to indicate the request to create the MIP can also be stored in the Additional LTM TLVs field in the format of TLV, which is not specifically limited in this embodiment.
在一实施例中,功能触发报文还至少携带有用于创建MIP的级别参数和虚拟局域网参数等信息。例如,该级别参数可以保存在上述的MD level字段中,而该虚拟局域网参数可以保存在以太网报文头中。当第二节点接收到由第一节点发送的功能触发报文,第二节点可以根据功能触发报文中的级别参数和虚拟局域网参数等信息而自动创建MIP,从而能够减少人工创建MIP的负担,提高创建MIP的效率。In an embodiment, the function trigger message also carries at least information such as level parameters and virtual local area network parameters used to create the MIP. For example, the level parameter can be stored in the above MD level field, and the virtual local area network parameter can be stored in the Ethernet packet header. When the second node receives the function trigger message sent by the first node, the second node can automatically create a MIP based on the level parameter and virtual local area network parameters in the function trigger message, thereby reducing the burden of manually creating MIP. Improve the efficiency of creating MIP.
另外,参照图4,在一实施例中,在步骤S100之后,该维护实体组中间点创建方法还包括有以下步骤:In addition, referring to FIG. 4, in an embodiment, after step S100, the method for creating an intermediate point of the maintenance entity group further includes the following steps:
步骤S200,第一节点在预设时间段内接收到来自第二节点的功能应答报文;Step S200: The first node receives a function response message from the second node within a preset time period;
步骤S300,当功能应答报文携带有用于表示成功创建MIP的第二信息,第一节点缓存第二信息。Step S300: When the function response message carries the second information indicating that the MIP is successfully created, the first node caches the second information.
在一实施例中,功能应答报文可以为适用于执行LT功能的链路跟踪应答(Link Trace Reply,LTR)报文,也可以为适用于执行LB功能的环回应答(Loopback Reply,LBR)报文。值得注意的是,携带有用于表示成功创建MIP的第二信息的功能应答报文,是与常规LTR报文或常规LBR报文相区别的特殊报文,当功能应答报文携带有用于表示成功创建MIP的第二信息时,该功能应答报文可以为特殊LTR报文,也可以为特殊LBR报文。In an embodiment, the function response message may be a Link Trace Reply (LTR) message suitable for performing the LT function, or may be a Loopback Reply (LBR) suitable for performing the LB function. Message. It is worth noting that the function response message that carries the second information to indicate the successful creation of the MIP is a special message that is different from the regular LTR message or the regular LBR message. When the function response message carries the message to indicate success When creating the second message of the MIP, the function response message can be a special LTR message or a special LBR message.
值得注意的是,特殊LTR报文和特殊LBR报文仅在报文格式以及应用场景上有所区别,但两种报文用于触发创建MIP的功能以及实现创建MIP功能所需要用到的字段信息等内容都一致,为了避免说明书内容过于重复冗余,以及为了能够更清楚的说明本实施例的具体内容,下面以在执行LT功能时自动创建MIP的应用场景为例进行解释说明,而在执行LB功能时自动创建MIP的应用场景的相关解释说明,则可以参考在执行LT功能时自动创建MIP的应用场景的解释说明。It is worth noting that the special LTR message and the special LBR message are only different in message format and application scenarios, but the two kinds of messages are used to trigger the function of creating MIP and the fields needed to realize the function of creating MIP The information and other contents are the same. In order to avoid excessive repetition and redundancy of the contents of the manual, and to explain the specific contents of this embodiment more clearly, the following takes the application scenario of automatically creating MIP when the LT function is executed as an example for explanation. For the relevant explanations of the application scenarios of automatically creating MIPs when the LB function is executed, you can refer to the explanations of the application scenarios of automatically creating MIPs when executing the LT function.
在一实施例中,当第一节点向第二节点发送特殊LTM报文,以使得第二节点根据该特殊LTM报文中的第一信息创建MIP后,第二节点会向第一节点回复特殊LTR报文,当特殊LTR报文满足时效条件时,即当第一节点是在预设时间段内接收到该特殊LTR报文时,第一节点可以判断该特殊LTR报文为有效,此时,第一节点会对该特殊LTR报文进行解析,当该特殊LTR报文携带有用于表示成功创建MIP的第二信息,即说明第二节点已经成功创建了MIP,此时,第一节点可以把接收到的特殊LTR报文中的第二信息进行缓存,或者直接把特殊LTR报文中的第二信息上报给网络管理器。在第一节点接收到特殊LTR报文后,第一节点可以先不向网络管理器上报特殊LTR报文中的第二信息,而是等待接收与对端MEP之间的所有中间节点均完成了MIP的创建而发送的特殊LTR报文,当第一节点接收到创建了MIP的全部中间节点所回复的特殊LTR报文后,第一节点再把这些特殊LTR报文中的第二信息上报给网络管理器。另外,第一节点也可以在每接收到一个特殊LTR报文后,即把该特殊LTR报文的第二信息上报给网络管理器,本实施例并不作具体限定。In an embodiment, when the first node sends a special LTM message to the second node so that the second node creates an MIP based on the first information in the special LTM message, the second node will reply to the first node with the special LTR message. When the special LTR message meets the aging condition, that is, when the first node receives the special LTR message within the preset time period, the first node can determine that the special LTR message is valid. , The first node will parse the special LTR message. When the special LTR message carries the second information indicating that the MIP is successfully created, it means that the second node has successfully created the MIP. At this time, the first node can Cache the second information in the received special LTR message, or directly report the second information in the special LTR message to the network manager. After the first node receives the special LTR message, the first node may not report the second information in the special LTR message to the network manager, but wait for all intermediate nodes between the receiving and the opposite MEP to complete Special LTR messages sent for the creation of MIP, when the first node receives the special LTR messages replies from all intermediate nodes that created the MIP, the first node then reports the second information in these special LTR messages to Network manager. In addition, the first node may also report the second information of the special LTR message to the network manager every time it receives a special LTR message, which is not specifically limited in this embodiment.
值得注意的是,预设时间段可以根据实际应用需要而适当选择,本实施例并不作具体限定。当功能应答报文不满足时效条件时,第一节点会判断该功能应答报文为无效,此时,第一节点可以丢弃该功能应答报文,并且等待接收下一个功能应答报文。It is worth noting that the preset time period can be appropriately selected according to actual application needs, and this embodiment does not specifically limit it. When the function response message does not meet the aging condition, the first node will determine that the function response message is invalid. At this time, the first node may discard the function response message and wait to receive the next function response message.
在一实施例中,当功能应答报文携带有用于表示成功创建MIP的第二信息,则在第一节点把功能应答报文中的第二信息上报给网络管理器后,网络管理器中可以保存第二信息中所携带的与创建MIP相关的信息内容,例如创建MIP的节点、创建MIP的节点的地址等。因此,可以 通过网络管理器了解到每个中间节点是否成功创建了MIP,并且还能够获取整个维护域里中间节点的相关信息,从而可以便于网络管理器对整个维护域的管理。In one embodiment, when the function response message carries the second information indicating that the MIP is successfully created, after the first node reports the second information in the function response message to the network manager, the network manager can The information content related to the creation of the MIP carried in the second information is stored, such as the node that created the MIP, the address of the node that created the MIP, and so on. Therefore, the network manager can know whether each intermediate node has successfully created the MIP, and can also obtain the relevant information of the intermediate nodes in the entire maintenance domain, which can facilitate the network manager's management of the entire maintenance domain.
在一实施例中,例如在执行LT功能时,由于携带有用于表示成功创建MIP的第二信息的功能应答报文为由第二节点创建的特殊LTR报文,因此,第二节点中可以建立有常规LTR报文和特殊LTR报文。当第二节点接收到由第一节点发送的常规LTM报文时,第二节点会根据该常规LTM报文回复一个常规LTR报文;而当第二节点接收到由第一节点发送的特殊LTM报文时,第二节点则会根据该特殊LTM报文回复一个特殊LTR报文。In an embodiment, for example, when the LT function is executed, since the function response message carrying the second information indicating that the MIP is successfully created is a special LTR message created by the second node, the second node can establish There are regular LTR messages and special LTR messages. When the second node receives the regular LTM message sent by the first node, the second node will reply with a regular LTR message according to the regular LTM message; and when the second node receives the special LTM message sent by the first node When sending a message, the second node will reply a special LTR message according to the special LTM message.
本领域技术人员可以理解的是,常规LTR报文是在一些情形下中执行LT功能时所需要使用到的报文,在执行LT功能时,可以在接收到用于查看节点间端到端的路由路径的常规LTM报文后,回复一个常规LTR报文。Those skilled in the art can understand that a conventional LTR message is a message that needs to be used when performing the LT function in some situations. When the LT function is performed, it can be used to view the end-to-end routing between nodes when received. After the regular LTM message of the path, a regular LTR message is returned.
在一实施例中,携带有用于表示成功创建MIP的第二信息的功能应答报文,可以在现有的相关报文的格式基础上改进得到,例如特殊LTR报文,可以为在常规LTR报文的基础上改进得到,例如,可以通过在常规LTR报文中扩展新的字段结构以携带用于表示成功创建MIP的第二信息,也可以通过重新定义常规LTR报文中的字段结构以携带用于表示成功创建MIP的第二信息,本实施例并不作具体限定。以一个具体示例进行说明,参照图5,图5是一实施例提供的特殊LTR报文的结构示意图,在该特殊LTR报文结构中,包括有以太网报文头和LTR报文内容,其中,该报文结构的各主要字段的解释如下:In an embodiment, the function response message carrying the second information indicating that the MIP is successfully created can be improved on the basis of the existing related message format. For example, a special LTR message may be a regular LTR message. Improved on the basis of the text, for example, you can extend the new field structure in the regular LTR message to carry the second information used to indicate the successful creation of the MIP, or you can redefine the field structure in the regular LTR message to carry The second information used to indicate the successful creation of the MIP is not specifically limited in this embodiment. To illustrate with a specific example, referring to FIG. 5, FIG. 5 is a schematic diagram of the structure of a special LTR message provided by an embodiment. The structure of the special LTR message includes an Ethernet message header and LTR message content. , The explanation of each main field of the message structure is as follows:
DMAC:用于表示目的地址,封装在以太网报文头中;DMAC: used to indicate the destination address, encapsulated in the Ethernet packet header;
SMAC:用于表示源地址,封装在以太网报文头中,其取值与上述实施例中的特殊LTM报文的DMAC字段的取值相对应;SMAC: used to indicate the source address, encapsulated in the Ethernet packet header, and its value corresponds to the value of the DMAC field of the special LTM packet in the foregoing embodiment;
Type:用于表示类型;Type: used to indicate the type;
MD level:用于表示维护域的级别;MD level: used to indicate the level of the maintenance domain;
OpCode:用于表示消息编码,当报文为LTR报文时,取值0x04;OpCode: used to indicate the message code, when the message is an LTR message, the value is 0x04;
Additional LTM TLVs:表示附加的TLV字段,用于保存与创建MIP相关的第二信息。Additional LTM TLVs: indicates additional TLV fields, which are used to store the second information related to the creation of MIPs.
值得注意的是,该特殊LTR报文结构中其它字段的解释,和在一些情形下中的LTR报文中所包含的相应字段的解释相同,因此此处不再赘述。It is worth noting that the explanation of other fields in the structure of the special LTR message is the same as the explanation of the corresponding fields included in the LTR message in some situations, so it will not be repeated here.
在一实施例中,第一节点可以通过SMAC字段的取值而判断当前LTR报文是否为携带有与创建MIP相关的第二信息的特殊LTR报文,也可以通过识别Additional LTM TLVs字段中的内容是否与创建MIP相关而判断当前LTR报文是否为携带有与创建MIP相关的第二信息的特殊LTR报文,本实施例并不作具体限定。In an embodiment, the first node may determine whether the current LTR message is a special LTR message carrying the second information related to the creation of MIP through the value of the SMAC field, or may identify the value in the Additional LTM TLVs field. Whether the content is related to the creation of the MIP and determining whether the current LTR message is a special LTR message carrying the second information related to the creation of the MIP is not specifically limited in this embodiment.
另外,在一实施例中,该维护实体组中间点创建方法还包括有以下步骤:In addition, in an embodiment, the method for creating an intermediate point of the maintenance entity group further includes the following steps:
步骤S400,当功能应答报文没有携带用于表示成功创建MIP的第二信息,第一节点把已缓存的第二信息上报给网络管理器。Step S400: When the function response message does not carry the second information for indicating that the MIP is successfully created, the first node reports the cached second information to the network manager.
在一实施例中,在第一节点缓存有携带于功能应答报文中的用于表示成功创建MIP的第二信息的情况下,如果第一节点接收到一个没有携带有用于表示成功创建MIP的第二信息的功能应答报文,例如第一节点接收到没有携带第二信息的LTR报文,则说明该LTR报文为常规LTR报文,并且该常规LTR报文来自于第一节点的对端MEP,此时,说明了由第一节点发送的功能触发报文已经转发至对端MEP,而且中间节点均已经完成了MIP的创建,因此,第一节点会把已缓存的第二信息上报给网络管理器,例如把创建MIP的节点、创建MIP的节点的地址等信息上报给网络管理器,从而可以在后续通过网络管理器了解到每个中间节点是否成功创建了MIP,并且还能够通过网络管理器获取整个维护域里中间节点的相关信息,便于网络管理器对整个维护域的管理。In an embodiment, in the case that the first node caches the second information carried in the function response message to indicate the successful creation of the MIP, if the first node receives a message that does not carry the second information used to indicate the successful creation of the MIP A function response message for the second information. For example, if the first node receives an LTR message that does not carry the second information, it means that the LTR message is a regular LTR message, and the regular LTR message comes from the pairing of the first node. The end MEP, at this time, indicates that the function trigger message sent by the first node has been forwarded to the opposite MEP, and the intermediate nodes have completed the creation of the MIP. Therefore, the first node will report the cached second information To the network manager, for example, the information such as the node that created the MIP and the address of the node that created the MIP are reported to the network manager, so that you can learn through the network manager whether each intermediate node has successfully created the MIP, and can also pass The network manager obtains the relevant information of the intermediate nodes in the entire maintenance domain, which is convenient for the network manager to manage the entire maintenance domain.
另外,在一实施例中,第二信息包括有创建MIP的节点的定位信息和用于表示MIP创建成功或失败的标志信息。In addition, in an embodiment, the second information includes location information of the node that created the MIP and flag information used to indicate the success or failure of the MIP creation.
在一实施例中,创建MIP的节点的定位信息和用于表示MIP创建成功或失败的标志信息,均可以被配置在功能应答报文的报文结构中,例如被配置在如图5所示实施例中特殊LTR报文结构的Additional LTM TLVs字段中。其中,创建MIP的节点的定位信息可以包括网元名称、机架号、子架号、槽位号等信息中的至少一个,本实施例并不作具体限定。另外,用于表示MIP创建成功或失败的标志信息,可以为用于表示节点入端口是否成功创建MIP的单个标识信息,也可以为用于表示节点出端口是否成功创建MIP的单个标识信息,还可以包括用于表示节点入端口及出端口是否成功创建MIP的多个标识信息,本实施例并不作具体限定。当第一节点把该定位信息和该标志信息上报给网络管理器,则可以通过网络管理器了解到每个中间节点是否成功创建了MIP,并且还能够通过网络管理器获取整个维护域里中间节点的相关信息,从而可以便于网络管理器对整个维护域的管理。In an embodiment, the location information of the node that created the MIP and the flag information used to indicate the success or failure of the MIP creation can be configured in the message structure of the function response message, for example, as shown in FIG. 5 In the embodiment, in the Additional LTM TLVs field of the special LTR message structure. Wherein, the location information of the node that creates the MIP may include at least one of the network element name, rack number, sub-rack number, slot number, and other information, which is not specifically limited in this embodiment. In addition, the flag information used to indicate the success or failure of the MIP creation can be a single identification information used to indicate whether the node's inbound port successfully created the MIP, or it may be a single identification information used to indicate whether the node's outbound port successfully created the MIP, and It may include multiple pieces of identification information used to indicate whether the ingress port and egress port of the node successfully create the MIP, which is not specifically limited in this embodiment. When the first node reports the positioning information and the flag information to the network manager, the network manager can learn whether each intermediate node has successfully created the MIP, and can also obtain the intermediate nodes in the entire maintenance domain through the network manager , Which can facilitate the management of the entire maintenance domain by the network manager.
另外,本发明的另一个实施例还提供了一种维护实体组中间点创建方法,如图6所示,图6是本发明另一个实施例提供的维护实体组中间点创建方法的流程图,该维护实体组中间点创建方法包括但不限于以下步骤:In addition, another embodiment of the present invention also provides a method for creating an intermediate point of a maintenance entity group, as shown in FIG. 6, which is a flowchart of a method for creating an intermediate point of a maintenance entity group according to another embodiment of the present invention. The method for creating the intermediate point of the maintenance entity group includes but is not limited to the following steps:
步骤S510,第二节点接收由第一节点发送的功能触发报文,功能触发报文携带有用于表示请求创建MIP的第一信息;Step S510: The second node receives a function trigger message sent by the first node, where the function trigger message carries first information used to indicate a request to create a MIP;
步骤S520,第二节点根据第一信息创建MIP。Step S520, the second node creates a MIP according to the first information.
在一实施例中,功能触发报文可以为适用于执行LT功能的特殊LTM报文,也可以为适用于执行LB功能的特殊LBM报文。值得注意的是,不论功能触发报文是特殊LTM报文还是特 殊LBM报文,都会携带有用于表示请求创建MIP的第一信息。In an embodiment, the function trigger message may be a special LTM message suitable for performing the LT function, or a special LBM message suitable for performing the LB function. It is worth noting that, regardless of whether the function trigger message is a special LTM message or a special LBM message, it will carry the first information used to indicate a request to create a MIP.
在一实施例中,假设第一节点和第三节点之间建立了一组对等的MEP,并且在执行LT功能时,需要在处于第一节点和第三节点之间的第二节点创建MIP,那么,在第二节点接收到由第一节点发送的特殊LTM报文的情况下,由于特殊LTM报文携带有用于表示请求创建MIP的第一信息,因此,第二节点可以在该第一信息的触发下创建MIP,即,第二节点可以根据特殊LTM报文中的第一信息而自动创建MIP,从而能够减少人工创建MIP的负担,提高创建MIP的效率。In an embodiment, it is assumed that a set of peer-to-peer MEPs is established between the first node and the third node, and when the LT function is executed, the MIP needs to be created on the second node between the first node and the third node. , Then, in the case that the second node receives the special LTM message sent by the first node, since the special LTM message carries the first information used to indicate the request to create the MIP, the second node can The MIP is created under the trigger of information, that is, the second node can automatically create the MIP according to the first information in the special LTM message, thereby reducing the burden of manually creating the MIP and improving the efficiency of creating the MIP.
在一实施例中,携带有用于表示请求创建MIP的第一信息的功能触发报文,可以在现有的相关报文的格式基础上改进得到,例如特殊LTM报文,可以为在常规LTM报文的基础上改进得到,例如,可以通过在常规LTM报文中扩展新的字段结构以携带用于表示请求创建MIP的第一信息,也可以通过重新定义常规LTM报文中的字段结构以携带用于表示请求创建MIP的第一信息,本实施例并不作具体限定。In an embodiment, the function trigger message that carries the first information for requesting to create a MIP can be improved on the basis of the existing related message format. For example, a special LTM message can be a regular LTM message. Improved on the basis of the text, for example, you can extend a new field structure in a conventional LTM message to carry the first information used to indicate a request to create a MIP, or you can redefine the field structure in a conventional LTM message to carry The first information used to indicate the request to create the MIP is not specifically limited in this embodiment.
值得注意的是,本实施例中的特殊LTM报文的具体结构与具体含义,与如图3所示实施例中的特殊LTM报文的具体结构与具体含义相一致,针对本实施例中的特殊LTM报文的具体结构与具体含义的解释说明,可参照上述图3所示实施例中对特殊LTM报文的具体结构与具体含义的相关解释说明,在此不再赘述。It is worth noting that the specific structure and specific meaning of the special LTM message in this embodiment are consistent with the specific structure and specific meaning of the special LTM message in the embodiment shown in FIG. For the explanation of the specific structure and specific meaning of the special LTM message, please refer to the relevant explanation of the specific structure and specific meaning of the special LTM message in the embodiment shown in FIG. 3, which will not be repeated here.
另外,在一实施例中,该维护实体组中间点创建方法还包括以下步骤:In addition, in an embodiment, the method for creating an intermediate point of the maintenance entity group further includes the following steps:
步骤S530,确定出端口并转发功能触发报文。Step S530: Determine the outgoing port and forward the function trigger message.
在一实施例中,当第二节点接收到由第一节点发送的功能触发报文,第二节点会先判断该功能触发报文中的内容是否携带有第二节点的地址,例如判断特殊LTM报文中的Target MAC字段的内容是否为第二节点的地址,如果Target MAC字段的内容不是第二节点的地址,则说明第二节点为一组对等MEP之间的中间节点,因此,第二节点会根据功能触发报文中所携带的用于表示请求创建MIP的第一信息进行MIP的创建,而当完成MIP的创建后,第二节点还会确定出端口并向下一个节点转发功能触发报文,以使功能触发报文能够流经对等MEP之间的所有中间节点,从而使得所有中间节点都可以根据功能触发报文中的第一信息进行MIP的创建。In an embodiment, when the second node receives the function trigger message sent by the first node, the second node will first determine whether the content of the function trigger message carries the address of the second node, for example, determine a special LTM Whether the content of the Target MAC field in the message is the address of the second node, if the content of the Target MAC field is not the address of the second node, it means that the second node is an intermediate node between a group of peer MEPs. Therefore, the first The second node will create the MIP according to the first information contained in the function trigger message to indicate the request to create the MIP, and when the creation of the MIP is completed, the second node will also determine the port and forward the function to the next node Trigger messages, so that the function trigger messages can flow through all intermediate nodes between peer MEPs, so that all intermediate nodes can create MIPs according to the first information in the function trigger message.
值得注意的是,当第一节点向对端MEP发送功能触发报文的过程中,如果中间节点或者对端MEP接收到该功能触发报文,都会向第一节点回复一个功能应答报文,如果中间节点接收到功能应答报文,则中间节点会确定出端口而转发该功能应答报文,并且不会根据该功能应答报文进行相关处理,即,中间节点透传该功能应答报文。It is worth noting that when the first node sends a function trigger message to the opposite MEP, if the intermediate node or the opposite MEP receives the function trigger message, it will reply to the first node with a function response message, if When the intermediate node receives the function response message, the intermediate node will determine the port and forward the function response message, and will not perform related processing according to the function response message, that is, the intermediate node transparently transmits the function response message.
另外,值得注意的是,如果对端MEP(例如图1所示实施例中的第三节点)接收到了由第一节点发送的功能触发报文,对端MEP会先判断该功能触发报文中的Target MAC字段的内容 是否为当前节点的地址,如果Target MAC字段的内容是当前节点的地址,则对端MEP会先判断相应流点上是否有与该功能触发报文对应的MEP,如果有,则说明当前节点为功能触发报文所需要传输到的目标节点,此时,对端MEP会向第一节点回复一个没有携带与创建MIP相关的第二信息的功能应答报文,并且停止转发该功能触发报文。另外,如果对端MEP判断相应流点上没有与该功能触发报文对应的MEP,则对端MEP会直接丢弃该功能触发报文。In addition, it is worth noting that if the peer MEP (for example, the third node in the embodiment shown in FIG. 1) receives the function trigger message sent by the first node, the peer MEP will first determine that the function trigger message is If the content of the Target MAC field is the address of the current node, if the content of the Target MAC field is the address of the current node, the opposite MEP will first determine whether there is a MEP corresponding to the function trigger message on the corresponding flow point. , It means that the current node is the target node to which the function trigger message needs to be transmitted. At this time, the opposite MEP will reply to the first node a function response message that does not carry the second information related to the creation of the MIP, and stop forwarding This function triggers a message. In addition, if the opposite end MEP determines that there is no MEP corresponding to the function trigger message on the corresponding flow point, the opposite end MEP will directly discard the function trigger message.
在一实施例中,功能触发报文还至少携带有用于创建MIP的级别参数和虚拟局域网参数等信息。例如,该级别参数可以保存在如图3所示实施例的特殊LTM报文结构中的MD level字段中,而该虚拟局域网参数可以保存在如图3所示实施例的特殊LTM报文结构中的以太网报文头中。当第二节点接收到由第一节点发送的功能触发报文,第二节点可以根据功能触发报文中的级别参数和虚拟局域网参数等信息而自动创建MIP,从而能够减少人工创建MIP的负担,提高创建MIP的效率。In an embodiment, the function trigger message also carries at least information such as level parameters and virtual local area network parameters used to create the MIP. For example, the level parameter may be stored in the MD level field in the special LTM message structure of the embodiment shown in FIG. 3, and the virtual local area network parameters may be stored in the special LTM message structure of the embodiment shown in FIG. 3 In the Ethernet packet header. When the second node receives the function trigger message sent by the first node, the second node can automatically create a MIP based on the level parameter and virtual local area network parameters in the function trigger message, thereby reducing the burden of manually creating MIP. Improve the efficiency of creating MIP.
另外,参照图7,在一实施例中,步骤S520包括但不限于以下步骤:In addition, referring to FIG. 7, in an embodiment, step S520 includes but is not limited to the following steps:
步骤S521,第二节点根据第一信息获取功能触发报文中的级别参数和虚拟局域网参数;Step S521, the second node triggers the level parameter and the virtual local area network parameter in the message according to the first information acquisition function;
步骤S522,第二节点根据级别参数和虚拟局域网参数分别在第二节点的入端口和出端口创建MIP。In step S522, the second node creates an MIP on the ingress port and egress port of the second node respectively according to the level parameter and the virtual local area network parameter.
在一实施例中,当第二节点接收到由第一节点发送的功能触发报文后,第二节点会先判断功能触发报文中是否携带有用于表示请求创建MIP的第一信息,如果功能触发报文中携带有第一信息,则第二节点会解析并获取功能触发报文中的级别参数和虚拟局域网参数,并根据级别参数和虚拟局域网参数分别在第二节点的入端口和出端口自动创建MIP。值得注意的是,第二节点中创建MIP的出端口,可以根据第二节点中的媒体存取控制位址(Media Access Control Address,MAC)表等信息而获取到。In an embodiment, after the second node receives the function trigger message sent by the first node, the second node will first determine whether the function trigger message carries the first information used to indicate the request to create a MIP. If the trigger message carries the first information, the second node will parse and obtain the level parameters and virtual local area network parameters in the function trigger message, and according to the level parameters and virtual local area network parameters, the ingress and egress ports of the second node MIP is created automatically. It is worth noting that the outgoing port of the MIP created in the second node can be obtained according to information such as the Media Access Control Address (MAC) table in the second node.
此外,在一实施例中,当第二节点在其入端口和出端口分别创建MIP时,如果相应的MIP已经存在,则第二节点不执行具体的创建操作,并且视为已经创建成功。In addition, in an embodiment, when the second node separately creates MIPs on its ingress port and egress port, if the corresponding MIP already exists, the second node does not perform a specific creation operation and is deemed to have been successfully created.
另外,在一实施例中,该维护实体组中间点创建方法还包括以下步骤:In addition, in an embodiment, the method for creating an intermediate point of the maintenance entity group further includes the following steps:
步骤S540,第二节点向第一节点发送携带有用于表示成功创建MIP的第二信息的功能应答报文,以使第一节点把第二信息进行缓存或者上报给网络管理器。Step S540: The second node sends to the first node a function response message carrying the second information indicating that the MIP is successfully created, so that the first node caches the second information or reports the second information to the network manager.
在一实施例中,功能应答报文可以为适用于执行LT功能的LTR报文,也可以为适用于执行LB功能的LBR报文。值得注意的是,携带有用于表示成功创建MIP的第二信息的功能应答报文,是与常规LTR报文或常规LBR报文相区别的特殊报文,当功能应答报文携带有用于表示成功创建MIP的第二信息时,该功能应答报文可以为特殊LTR报文,也可以为特殊LBR报文。In an embodiment, the function response message may be an LTR message suitable for performing the LT function, or may be an LBR message suitable for performing the LB function. It is worth noting that the function response message that carries the second information to indicate the successful creation of the MIP is a special message that is different from the regular LTR message or the regular LBR message. When the function response message carries the message to indicate success When creating the second message of the MIP, the function response message can be a special LTR message or a special LBR message.
在一实施例中,当第二节点根据由第一节点发送的功能触发报文而创建MIP后,第二节点 会向第一节点回复功能应答报文,当第一节点接收到该功能应答报文后,第一节点会对该功能应答报文进行解析,如果该功能应答报文携带有用于表示成功创建MIP的第二信息,即说明第二节点已经成功创建了MIP,此时,第一节点可以把接收到的功能应答报文中的第二信息进行缓存,或者直接把功能应答报文中的第二信息上报给网络管理器。In one embodiment, after the second node creates the MIP according to the function trigger message sent by the first node, the second node will reply to the first node with a function response message, and when the first node receives the function response message After the text, the first node will parse the function response message. If the function response message carries the second information indicating that the MIP is successfully created, it means that the second node has successfully created the MIP. At this time, the first The node may buffer the second information in the received function response message, or directly report the second information in the function response message to the network manager.
在一实施例中,例如在执行LT功能时,由于携带有用于表示成功创建MIP的第二信息的功能应答报文为由第二节点创建的特殊LTR报文,因此,第二节点中可以建立有常规LTR报文和特殊LTR报文。当第二节点接收到由第一节点发送的常规LTM报文时,第二节点会根据该常规LTM报文回复一个常规LTR报文;而当第二节点接收到由第一节点发送的特殊LTM报文时,第二节点则会根据该特殊LTM报文回复一个特殊LTR报文。In an embodiment, for example, when the LT function is executed, since the function response message carrying the second information indicating that the MIP is successfully created is a special LTR message created by the second node, the second node can establish There are regular LTR messages and special LTR messages. When the second node receives the regular LTM message sent by the first node, the second node will reply with a regular LTR message according to the regular LTM message; and when the second node receives the special LTM message sent by the first node When sending a message, the second node will reply a special LTR message according to the special LTM message.
在一实施例中,携带有用于表示成功创建MIP的第二信息的功能应答报文,可以在现有的相关报文的格式基础上改进得到,例如特殊LTR报文,可以为在常规LTR报文的基础上改进得到,例如,可以通过在常规LTR报文中扩展新的字段结构以携带用于表示成功创建MIP的第二信息,也可以通过重新定义常规LTR报文中的字段结构以携带用于表示成功创建MIP的第二信息,本实施例并不作具体限定。In an embodiment, the function response message carrying the second information indicating that the MIP is successfully created can be improved on the basis of the existing related message format. For example, a special LTR message may be a regular LTR message. Improved on the basis of the text, for example, you can extend the new field structure in the regular LTR message to carry the second information used to indicate the successful creation of the MIP, or you can redefine the field structure in the regular LTR message to carry The second information used to indicate the successful creation of the MIP is not specifically limited in this embodiment.
值得注意的是,本实施例中的特殊LTR报文的具体结构与具体含义,与如图5所示实施例中的特殊LTR报文的具体结构与具体含义相一致,针对本实施例中的特殊LTR报文的具体结构与具体含义的解释说明,可参照上述图5所示实施例中对特殊LTR报文的具体结构与具体含义的相关解释说明,在此不再赘述。It is worth noting that the specific structure and specific meaning of the special LTR message in this embodiment are consistent with the specific structure and specific meaning of the special LTR message in the embodiment shown in FIG. For the explanation of the specific structure and specific meaning of the special LTR message, please refer to the relevant explanation of the specific structure and specific meaning of the special LTR message in the embodiment shown in FIG. 5, which will not be repeated here.
另外,在一实施例中,第二信息包括有创建MIP的节点的定位信息和用于表示MIP创建成功或失败的标志信息。In addition, in an embodiment, the second information includes location information of the node that created the MIP and flag information used to indicate the success or failure of the MIP creation.
在一实施例中,创建MIP的节点的定位信息和用于表示MIP创建成功或失败的标志信息,均可以被配置在功能应答报文的报文结构中,例如被配置在如图5所示实施例中特殊LTR报文结构的Additional LTM TLVs字段中。其中,创建MIP的节点的定位信息可以包括网元名称、机架号、子架号、槽位号等信息中的至少一个,本实施例并不作具体限定。另外,用于表示MIP创建成功或失败的标志信息,可以为用于表示节点入端口是否成功创建MIP的单个标识信息,也可以为用于表示节点出端口是否成功创建MIP的单个标识信息,还可以包括用于表示节点入端口及出端口是否成功创建MIP的多个标识信息,本实施例并不作具体限定。当第一节点把该定位信息和该标志信息上报给网络管理器,则可以通过网络管理器了解到每个中间节点是否成功创建了MIP,并且还能够通过网络管理器获取整个维护域里中间节点的相关信息,从而可以便于网络管理器对整个维护域的管理。In an embodiment, the location information of the node that created the MIP and the flag information used to indicate the success or failure of the MIP creation can be configured in the message structure of the function response message, for example, as shown in FIG. 5 In the embodiment, in the Additional LTM TLVs field of the special LTR message structure. Wherein, the location information of the node that creates the MIP may include at least one of the network element name, rack number, sub-rack number, slot number, and other information, which is not specifically limited in this embodiment. In addition, the flag information used to indicate the success or failure of the MIP creation can be a single identification information used to indicate whether the node's inbound port successfully created the MIP, or it may be a single identification information used to indicate whether the node's outbound port successfully created the MIP, and It may include multiple pieces of identification information used to indicate whether the ingress port and egress port of the node successfully create the MIP, which is not specifically limited in this embodiment. When the first node reports the positioning information and the flag information to the network manager, the network manager can learn whether each intermediate node has successfully created the MIP, and can also obtain the intermediate nodes in the entire maintenance domain through the network manager , Which can facilitate the management of the entire maintenance domain by the network manager.
针对上述各个实施例所提供的维护实体组中间点创建方法,下面以具体的示例进行详细的 描述:Regarding the method for creating the intermediate point of the maintenance entity group provided by the foregoing embodiments, the following is a detailed description with a specific example:
示例一:Example 1:
参照图8,图8为应用于一个网络拓扑的维护实体组中间点创建方法的流程图,该网络拓扑包括有第一节点100、第二节点200、第三节点300和第四节点400,其中,第一节点100、第二节点200、第三节点300和第四节点400均能够支持以太网业务。第一节点100和第四节点400创建了一组对等的MEP,第二节点200和第三节点300均为该组对等MEP之间的中间节点,当需要在第一节点100的维护域内执行LB功能或者LT功能时,需要在第二节点200和第三节点300创建MIP。Referring to FIG. 8, FIG. 8 is a flowchart of a method for creating an intermediate point of a maintenance entity group applied to a network topology. The network topology includes a first node 100, a second node 200, a third node 300, and a fourth node 400, wherein , The first node 100, the second node 200, the third node 300, and the fourth node 400 can all support Ethernet services. The first node 100 and the fourth node 400 create a set of peer MEPs, and the second node 200 and the third node 300 are both intermediate nodes between the set of peer MEPs. When it needs to be in the maintenance domain of the first node 100 When performing the LB function or the LT function, MIPs need to be created on the second node 200 and the third node 300.
当需要执行LT功能时,第一节点100向第四节点400发送一个特殊LTM报文(报文中DMAC字段的内容为01-80-C2-00-40,其他字段的内容和常规LTM报文一样),该特殊LTM报文会先传输到第二节点200,当第二节点200判断该特殊LTM报文符合规则后,即第二节点200判断出该特殊LTM报文的DMAC字段的内容为01-80-C2-00-40,则第二节点200会解析并获取特殊LTM报文中的级别参数和虚拟局域网参数等信息,并在第二节点200的入端口和出端口分别创建一个MIP,当完成MIP的创建后,第二节点200会向第一节点100回复一个特殊LTR报文,该特殊LTR报文携带有网元名称、机架号、子架号、槽位号、用于表示第二节点200的入端口和出端口是否成功创建MIP的标志信息等内容,接着,第二节点200会确定传输特殊LTM报文的出端口,并把该特殊LTM报文通过该出端口转发给第三节点300;当第三节点300接收到由第二节点200转发的特殊LTM报文后,第三节点300执行与第二节点200相同的处理,并向第四节点400转发的该特殊LTM报文;当第四节点400接收到该特殊LTM报文后,第四节点400判断该特殊LTM报文中的Target MAC字段的内容为第四节点400的MAC地址,因此,第四节点400向第一节点100回复一个常规LTR报文,并且停止转发特殊LTM报文。When the LT function needs to be executed, the first node 100 sends a special LTM message to the fourth node 400 (the content of the DMAC field in the message is 01-80-C2-00-40, and the content of other fields is the same as the regular LTM message Same), the special LTM message will be transmitted to the second node 200 first. After the second node 200 determines that the special LTM message conforms to the rule, the second node 200 determines that the content of the DMAC field of the special LTM message is 01-80-C2-00-40, the second node 200 will parse and obtain information such as level parameters and virtual local area network parameters in the special LTM message, and create a MIP on the ingress port and egress port of the second node 200 respectively After the creation of the MIP is completed, the second node 200 will reply to the first node 100 a special LTR message that carries the network element name, rack number, subrack number, slot number, and It indicates whether the ingress port and egress port of the second node 200 have successfully created the MIP flag information, etc. Then, the second node 200 will determine the egress port for transmitting the special LTM message, and forward the special LTM message through the egress port To the third node 300; when the third node 300 receives the special LTM message forwarded by the second node 200, the third node 300 performs the same processing as the second node 200, and forwards the special LTM message to the fourth node 400 LTM message; when the fourth node 400 receives the special LTM message, the fourth node 400 determines that the content of the Target MAC field in the special LTM message is the MAC address of the fourth node 400, so the fourth node 400 Reply a regular LTR message to the first node 100, and stop forwarding the special LTM message.
当第一节点100在预设时间段内分别获取到由第二节点200和第三节点300发送的特殊LTR报文,第一节点100会把携带在特殊LTR报文中的创建MIP的节点的定位信息和用于表示MIP创建成功或失败的标志信息进行缓存,而当第一节点100接收到由第四节点400发送的常规LTR报文,第一节点100会把缓存的所有信息均上报给网络管理器。When the first node 100 obtains the special LTR messages sent by the second node 200 and the third node 300 within the preset time period, the first node 100 will carry the information of the node that created the MIP carried in the special LTR message. The location information and the flag information used to indicate the success or failure of MIP creation are cached, and when the first node 100 receives the regular LTR message sent by the fourth node 400, the first node 100 will report all the cached information to Network manager.
示例二:Example 2:
参照图9,图9为应用于另一个网络拓扑的维护实体组中间点创建方法的流程图,该网络拓扑包括有第一节点100、第二节点200、第三节点300和第四节点400,其中,第一节点100、第二节点200、第三节点300和第四节点400均能够支持以太网业务。第一节点100、第三节点300和第四节点400创建了点对多点的MEP,具体地,第一节点100和第三节点300为一组对等的MEP,第一节点100和第四节点400为另一组对等的MEP,第二节点200为第一节点100 和第三节点300之间的中间节点,当需要在第一节点100和第三节点300所处的维护域内执行LB功能或者LT功能时,需要在第二节点200创建MIP。Referring to FIG. 9, FIG. 9 is a flowchart of a method for creating an intermediate point of a maintenance entity group applied to another network topology, which includes a first node 100, a second node 200, a third node 300, and a fourth node 400, Among them, the first node 100, the second node 200, the third node 300, and the fourth node 400 can all support Ethernet services. The first node 100, the third node 300, and the fourth node 400 create a point-to-multipoint MEP. Specifically, the first node 100 and the third node 300 are a set of peer-to-peer MEPs, and the first node 100 and the fourth node The node 400 is another set of peer-to-peer MEPs, and the second node 200 is an intermediate node between the first node 100 and the third node 300. When it is necessary to perform LB in the maintenance domain where the first node 100 and the third node 300 are located In the case of function or LT function, a MIP needs to be created in the second node 200.
当需要执行LT功能时,第一节点100向第三节点300发送一个特殊LTM报文(报文中DMAC字段的内容为01-80-C2-00-40,其他字段的内容和常规LTM报文一样),该特殊LTM报文会先传输到第二节点200,当第二节点200判断该特殊LTM报文符合规则后,即第二节点200判断出该特殊LTM报文的DMAC字段的内容为01-80-C2-00-40,则第二节点200会解析并获取特殊LTM报文中的级别参数和虚拟局域网参数等信息,并在第二节点200的入端口和出端口分别创建一个MIP,当完成MIP的创建后,第二节点200会向第一节点100回复一个特殊LTR报文,该特殊LTR报文携带有网元名称、机架号、子架号、槽位号、用于表示第二节点200的入端口和出端口是否成功创建MIP的标志信息等内容,接着,第二节点200会确定传输特殊LTM报文的出端口,并把该特殊LTM报文通过该出端口转发给第三节点300;当第三节点300接收到该特殊LTM报文后,第三节点300判断该特殊LTM报文中的Target MAC字段的内容为第三节点300的MAC地址,因此,第三节点300向第一节点100回复一个常规LTR报文,并且停止转发特殊LTM报文。When the LT function needs to be performed, the first node 100 sends a special LTM message to the third node 300 (the content of the DMAC field in the message is 01-80-C2-00-40, and the content of other fields is the same as the regular LTM message Same), the special LTM message will be transmitted to the second node 200 first. When the second node 200 determines that the special LTM message conforms to the rule, the second node 200 determines that the content of the DMAC field of the special LTM message is 01-80-C2-00-40, the second node 200 will parse and obtain information such as level parameters and virtual local area network parameters in the special LTM message, and create a MIP on the ingress port and egress port of the second node 200 respectively After the creation of the MIP is completed, the second node 200 will reply to the first node 100 a special LTR message that carries the network element name, rack number, subrack number, slot number, and It indicates whether the ingress port and egress port of the second node 200 have successfully created the MIP flag information, etc. Then, the second node 200 will determine the egress port for transmitting the special LTM message, and forward the special LTM message through the egress port To the third node 300; when the third node 300 receives the special LTM message, the third node 300 determines that the content of the Target MAC field in the special LTM message is the MAC address of the third node 300, so the third node 300 The node 300 replies a regular LTR message to the first node 100 and stops forwarding the special LTM message.
当第一节点100在预设时间段内获取到由第二节点200发送的特殊LTR报文,第一节点100会把携带在特殊LTR报文中的创建MIP的节点的定位信息和用于表示MIP创建成功或失败的标志信息进行缓存,而当第一节点100接收到由第三节点300发送的常规LTR报文,第一节点100会把缓存的所有信息均上报给网络管理器。When the first node 100 obtains the special LTR message sent by the second node 200 within a preset time period, the first node 100 will carry the location information of the node that created the MIP carried in the special LTR message and use it to indicate The flag information indicating the success or failure of MIP creation is cached, and when the first node 100 receives the regular LTR message sent by the third node 300, the first node 100 will report all the cached information to the network manager.
另外,参照图10,本发明的一个实施例提供了一种节点,该节点包括:存储器501、处理器502及存储在存储器上并可在处理器上运行的计算机程序。In addition, referring to FIG. 10, an embodiment of the present invention provides a node, which includes a memory 501, a processor 502, and a computer program stored in the memory and running on the processor.
处理器和存储器可以通过总线或者其他方式连接。The processor and the memory can be connected by a bus or in other ways.
需要说明的是,本实施例中的节点,可以应用于如图1、图8或图9所示实施例中的节点,本实施例中的节点能够构成图1、图8或图9所示实施例中的网络拓扑的一部分,这些实施例均属于相同的发明构思,因此这些实施例具有相同的实现原理以及技术效果,此处不再详述。It should be noted that the node in this embodiment can be applied to the node in the embodiment shown in Figure 1, Figure 8 or Figure 9. The node in this embodiment can form the one shown in Figure 1, Figure 8 or Figure 9. As part of the network topology in the embodiments, these embodiments belong to the same inventive concept. Therefore, these embodiments have the same implementation principles and technical effects, which will not be described in detail here.
实现上述实施例的维护实体组中间点创建方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例的维护实体组中间点创建方法,例如,执行以上描述的图2中的方法步骤S100、图4中的方法步骤S200至S300、图6中的方法步骤S510至S520或图7中的方法步骤S521至S522。The non-transitory software programs and instructions required to implement the method for creating the intermediate point of the maintenance entity group of the foregoing embodiment are stored in the memory. When executed by the processor, the method for creating the intermediate point of the maintenance entity group of the foregoing embodiment is executed, for example, executing The method step S100 in FIG. 2, the method steps S200 to S300 in FIG. 4, the method steps S510 to S520 in FIG. 6, or the method steps S521 to S522 in FIG. 7 are described above.
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
此外,本发明的一个实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个处理器或控制器执行,例如,被上述节点实施例中的一个处理器执行,可使得上述处理器执行上述实施例中的维护实体组中间点创建方法,例如,执行以上描述的图2中的方法步骤S100、图4中的方法步骤S200至S300、图6中的方法步骤S510至S520或图7中的方法步骤S521至S522。In addition, an embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by a processor or a controller, for example, by the aforementioned The execution of a processor in the node embodiment can make the above-mentioned processor execute the method for creating the intermediate point of the maintenance entity group in the above-mentioned embodiment, for example, execute the method step S100 in FIG. 2 and the method step S200 in FIG. 4 described above. To S300, the method steps S510 to S520 in FIG. 6 or the method steps S521 to S522 in FIG. 7.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。A person of ordinary skill in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on a computer-readable medium, and the computer-readable medium may include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Sexual, removable and non-removable media. Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or Any other medium used to store desired information and that can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .
本发明实施例中,通过利用第一节点向第二节点发送功能触发报文,并且该功能触发报文携带有用于表示请求创建MIP的第一信息,因此,在第二节点接收到由第一节点发送的功能触发报文的情况下,第二节点可以根据该功能触发报文中的第一信息而自动创建MIP,从而能够减少人工创建MIP的负担,提高创建MIP的效率。In the embodiment of the present invention, the first node is used to send a function trigger message to the second node, and the function trigger message carries the first information used to indicate the request to create the MIP. Therefore, the second node receives the message from the first node. In the case of the function trigger message sent by the node, the second node can automatically create the MIP according to the first information in the function trigger message, thereby reducing the burden of manually creating the MIP and improving the efficiency of creating the MIP.
本发明实施例包括:第一节点向第二节点发送携带有用于表示请求创建MIP的第一信息的功能触发报文,以使第二节点根据第一信息创建MIP。根据本发明实施例提供的方案,在执行LT功能或LB功能的情况下,当第二节点接收到由第一节点发送的功能触发报文,由于功能触发报文携带有用于表示请求创建MIP的第一信息,因此,第二节点可以在该第一信息的触发下创建MIP,即,第二节点可以根据功能触发报文中的第一信息而自动创建MIP,从而能够减少人工创建MIP的负担,提高创建MIP的效率。The embodiment of the present invention includes: a first node sends a function trigger message carrying first information for requesting creation of a MIP to a second node, so that the second node creates a MIP according to the first information. According to the solution provided by the embodiment of the present invention, when the LT function or the LB function is executed, when the second node receives the function trigger message sent by the first node, since the function trigger message carries a request to create a MIP The first information, therefore, the second node can create MIPs triggered by the first information, that is, the second node can automatically create MIPs based on the first information in the function trigger message, thereby reducing the burden of manually creating MIPs , Improve the efficiency of creating MIP.
以上是对本发明的一些实施进行了具体说明,但本发明并不局限于上述实施方式,熟悉本领域的技术人员在不违背本发明范围的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本发明权利要求所限定的范围内。The above is a specific description of some implementations of the present invention, but the present invention is not limited to the above-mentioned embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the scope of the present invention. These are equivalent. Variations or replacements of are included within the scope defined by the claims of the present invention.

Claims (13)

  1. 一种维护实体组中间点创建方法,包括:A method for creating intermediate points of maintenance entity groups, including:
    第一节点向第二节点发送携带有用于表示请求创建维护实体组中间点MIP的第一信息的功能触发报文,以使第二节点根据所述第一信息创建MIP。The first node sends to the second node a function trigger message carrying the first information for requesting the creation and maintenance of the intermediate point MIP of the entity group, so that the second node creates the MIP according to the first information.
  2. 根据权利要求1所述的方法,其中,所述功能触发报文还携带有用于创建MIP的级别参数和虚拟局域网参数。The method according to claim 1, wherein the function trigger message also carries level parameters and virtual local area network parameters used to create the MIP.
  3. 根据权利要求1所述的方法,还包括:The method according to claim 1, further comprising:
    第一节点在预设时间段内接收到来自第二节点的功能应答报文;The first node receives a function response message from the second node within a preset time period;
    当所述功能应答报文携带有用于表示成功创建MIP的第二信息,第一节点缓存所述第二信息。When the function response message carries the second information used to indicate that the MIP is successfully created, the first node caches the second information.
  4. 根据权利要求3所述的方法,还包括:The method according to claim 3, further comprising:
    当所述功能应答报文没有携带用于表示成功创建MIP的第二信息,第一节点把已缓存的第二信息上报给网络管理器。When the function response message does not carry the second information used to indicate that the MIP is successfully created, the first node reports the cached second information to the network manager.
  5. 根据权利要求3所述的方法,还包括:The method according to claim 3, further comprising:
    当所述功能应答报文携带有用于表示成功创建MIP的第二信息,第一节点把所述第二信息上报给网络管理器。When the function response message carries the second information used to indicate that the MIP is successfully created, the first node reports the second information to the network manager.
  6. 根据权利要求3至5任意一项所述的方法,其中,所述第二信息包括创建MIP的节点的定位信息和用于表示MIP创建成功或失败的标志信息。The method according to any one of claims 3 to 5, wherein the second information includes location information of the node that created the MIP and flag information used to indicate the success or failure of the MIP creation.
  7. 一种维护实体组中间点创建方法,包括:A method for creating intermediate points of maintenance entity groups, including:
    第二节点接收由第一节点发送的功能触发报文,所述功能触发报文携带有用于表示请求创建MIP的第一信息;The second node receives a function trigger message sent by the first node, where the function trigger message carries first information used to indicate a request to create a MIP;
    第二节点根据所述第一信息创建MIP。The second node creates the MIP according to the first information.
  8. 根据权利要求7所述的方法,其中,所述功能触发报文还携带有用于创建MIP的级别参数和虚拟局域网参数。The method according to claim 7, wherein the function trigger message also carries level parameters and virtual local area network parameters used to create the MIP.
  9. 根据权利要求8所述的方法,其中,所述第二节点根据所述第一信息创建MIP,包括:The method according to claim 8, wherein the second node creating the MIP according to the first information comprises:
    第二节点根据所述第一信息获取所述功能触发报文中的所述级别参数和所述虚拟局域网参数;The second node obtains the level parameter and the virtual local area network parameter in the function trigger message according to the first information;
    第二节点根据所述级别参数和所述虚拟局域网参数分别在第二节点的入端口和出端口创建MIP。The second node creates an MIP at the ingress port and the egress port of the second node respectively according to the level parameter and the virtual local area network parameter.
  10. 根据权利要求7所述的方法,还包括:The method according to claim 7, further comprising:
    第二节点向第一节点发送携带有用于表示成功创建MIP的第二信息的功能应答报文,以使 第一节点把所述第二信息进行缓存或者上报给网络管理器。The second node sends to the first node a function response message carrying the second information indicating that the MIP is successfully created, so that the first node caches or reports the second information to the network manager.
  11. 根据权利要求10所述的方法,其中,所述第二信息包括创建MIP的节点的定位信息和用于表示MIP创建成功或失败的标志信息。The method according to claim 10, wherein the second information includes location information of the node that created the MIP and flag information used to indicate the success or failure of the MIP creation.
  12. 一种节点,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至6中任意一项所述的维护实体组中间点创建方法或者实现如权利要求7至11中任意一项所述的维护实体组中间点创建方法。A node comprising: a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program as described in any one of claims 1 to 6 The method for creating an intermediate point of a maintenance entity group or implements the method for creating an intermediate point of a maintenance entity group according to any one of claims 7 to 11.
  13. 一种计算机可读存储介质,存储有计算机可执行指令,其中,所述计算机可执行指令用于执行权利要求1至6中任意一项所述的维护实体组中间点创建方法或者执行权利要求7至11中任意一项所述的维护实体组中间点创建方法。A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the method for creating an intermediate point of a maintenance entity group according to any one of claims 1 to 6 or execute claim 7 The method for creating an intermediate point of a maintenance entity group described in any one of to 11.
PCT/CN2021/093648 2020-05-20 2021-05-13 Method for creating maintenance entity group intermediate point, node, and readable storage medium WO2021233202A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010428505.3 2020-05-20
CN202010428505.3A CN113709049A (en) 2020-05-20 2020-05-20 Method for creating intermediate point of maintenance entity group, node and readable storage medium

Publications (1)

Publication Number Publication Date
WO2021233202A1 true WO2021233202A1 (en) 2021-11-25

Family

ID=78645438

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/093648 WO2021233202A1 (en) 2020-05-20 2021-05-13 Method for creating maintenance entity group intermediate point, node, and readable storage medium

Country Status (2)

Country Link
CN (1) CN113709049A (en)
WO (1) WO2021233202A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728651A (en) * 2004-07-08 2006-02-01 阿尔卡特公司 Domain configuration in an Ethernet oam network having multiple levels
WO2006069244A2 (en) * 2004-12-22 2006-06-29 Alcatel Lucent Autoconfiguration of ethernet oam points
CN101471813A (en) * 2007-12-29 2009-07-01 华为技术有限公司 Configuration method, system and equipment for implementing domain-striding maintenance management
EP2159956A1 (en) * 2007-07-27 2010-03-03 Huawei Technologies Co., Ltd. A method, system and device for configuring the operations, administrator and maintenance property
CN101897151A (en) * 2007-10-12 2010-11-24 北方电讯网络有限公司 IP network and performance monitoring using Ethernet OAM
CN102215130A (en) * 2011-06-16 2011-10-12 杭州华三通信技术有限公司 CFD (connectivity fault detection) protocol configuration method and device thereof
WO2013185842A1 (en) * 2012-06-15 2013-12-19 Telefonaktiebolaget L M Ericsson (Publ) Self-configuring transport network
CN104579785A (en) * 2015-01-19 2015-04-29 杭州华三通信技术有限公司 Looped network protecting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728651A (en) * 2004-07-08 2006-02-01 阿尔卡特公司 Domain configuration in an Ethernet oam network having multiple levels
WO2006069244A2 (en) * 2004-12-22 2006-06-29 Alcatel Lucent Autoconfiguration of ethernet oam points
EP2159956A1 (en) * 2007-07-27 2010-03-03 Huawei Technologies Co., Ltd. A method, system and device for configuring the operations, administrator and maintenance property
CN101897151A (en) * 2007-10-12 2010-11-24 北方电讯网络有限公司 IP network and performance monitoring using Ethernet OAM
CN101471813A (en) * 2007-12-29 2009-07-01 华为技术有限公司 Configuration method, system and equipment for implementing domain-striding maintenance management
CN102215130A (en) * 2011-06-16 2011-10-12 杭州华三通信技术有限公司 CFD (connectivity fault detection) protocol configuration method and device thereof
WO2013185842A1 (en) * 2012-06-15 2013-12-19 Telefonaktiebolaget L M Ericsson (Publ) Self-configuring transport network
CN104579785A (en) * 2015-01-19 2015-04-29 杭州华三通信技术有限公司 Looped network protecting method and device

Also Published As

Publication number Publication date
CN113709049A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US20200280514A1 (en) Packet forwarding method, apparatus, and system
US20210014158A1 (en) Network Device Management Method and Apparatus, and System
US11902139B2 (en) Diagnosing and resolving issues in a network using probe packets
EP3301861A1 (en) Evpn designated forwarder state propagation to customer edge devices using connectivity fault management
EP2533475A1 (en) Method and system for host route reachability in packet transport network access ring
US9276898B2 (en) Method and device for link fault detecting and recovering based on ARP interaction
CN106936661B (en) Network monitoring method, device and system
US20090037713A1 (en) Operation, administration and maintenance (oam) for chains of services
US10855648B2 (en) Methods and apparatus for operating and managing a constrained device within
US20230067091A1 (en) Method and device for segment routing service processing, routing equipment, and storage medium
EP3806404A1 (en) Communication method, device and system for avoiding loop
WO2019223534A1 (en) Method and device for monitoring forwarding table entry
WO2016192618A1 (en) Method, apparatus and system for collecting access control list
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
CA3137068A1 (en) Efficient message transmission and loop avoidance in an rpl network
WO2018000859A1 (en) Topology determination method, message response method, controller and switch
WO2016044990A1 (en) Method and apparatus for determining network topology, and centralized network state information storage device
CN110380966B (en) Method for discovering forwarding path and related equipment thereof
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
US8861378B2 (en) Method, system and network device for node configuration and path detection
US7945656B1 (en) Method for determining round trip times for devices with ICMP echo disable
WO2021233202A1 (en) Method for creating maintenance entity group intermediate point, node, and readable storage medium
TWI740210B (en) Method for terminal device management and server
WO2015035852A1 (en) Method and device for announcing state between nodes
CN111404816B (en) Method, device, system and storage medium for sending multicast message across 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: 21809631

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 17/04/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21809631

Country of ref document: EP

Kind code of ref document: A1