Network communication method and apparatus
Abstract
This application provides a communication method and a communications apparatus. The method can include performing extension based on an existing operation, administration, and maintenance (OAM) packet after an intermediate node in a path of a segment routing traffic engineering (SR-TE) tunnel senses a bit error fault, to support a bit error switching function. That is, the method can include adding, to the OAM packet, identification information used to identify that signal degradation occurs in the SR-TE tunnel. As a result, it is ensured that the SR-TE tunnel supports the bit error switching function of the intermediate node, and a customer service can be effectively prevented from being damaged.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. An intermediate node, comprising:
a memory comprising instructions; and
a processor coupled with the memory, the instructions when executed by the processor cause the intermediate node to:
receive, using a segment routing traffic engineering (SR-TE) working tunnel, a first operation, administration and maintenance (OAM) packet from a first provider edge (PE) node;
encapsulate identification information in the first OAM packet to obtain a second OAM packet, wherein the identification information identifies that signal degradation (SD) occurs in the working SR-TE tunnel, wherein the second OAM packet is a continuity check message (CCM), wherein the intermediate node is between the first PE node and a second PE node on the working SR-TE tunnel, and the first PE node is an ingress node of the working SR-TE tunnel, the second PE node is an egress node of the working SR-TE tunnel; and
send the second OAM packet to the second PE node using the working SR-TE tunnel.
2. The intermediate node according to claim 1 , wherein the identification information is carried in a flag field in the CCM.
3. The intermediate node according to claim 1 , wherein the identification information is carried in a reserved field in the CCM.
4. The intermediate node according to claim 1 , wherein the instructions when executed by the processor further cause the intermediate node to:
before obtaining the second OAM packet, determine that a port bit error fault occurs on the intermediate node.
5. A communications system, comprising:
a first provider edge (PE) node;
an intermediate node; and
a second PE node, wherein the first PE node is connected to the second PE node by using a working segment routing traffic engineering (SR-TE) tunnel, and a path of the working SR-TE tunnel comprises the first PE node, the intermediate node, and the second PE node, wherein
the first PE node is configured to:
send a first operation, administration, and maintenance OAM packet (OAM) packet using the working SR-TE tunnel;
the intermediate node is configured to:
receive, using the working SR-TE tunnel, the first OAM packet sent by the first PE node,
encapsulate identification information in the first OAM packet to obtain a second OAM packet, wherein the identification information identifies that signal degradation (SD) occurs in the working SR-TE tunnel, wherein the second OAM packet is a continuity check message (CCM); and
the second PE node is configured to:
receive, using the working SR-TE tunnel, the second OAM packet,
determine, based on the identification information, that the SD occurs in the working SR-TE tunnel.
6. The system according to claim 5 , wherein the identification information is carried in a flag field in the CCM.
7. The system according to claim 5 , wherein the identification information is carried in a reserved field in the CCM.
8. The system according to claim 5 , wherein the second PE node is connected to first PE node by using a protection SR-TE tunnel, the second PE node is further configure to:
on determining the SD occurs in the working SR-TE tunnel, switch from the working SR-TE tunnel to the protection SR-TE tunnel.
9. The system according to claim 8 , wherein the second PE is further configured to:
send, by using the protection SR-TE tunnel, an automatic protection switching (APS) packet to the first PE node after the second PE node switching to the protection SR-TE tunnel, wherein the APS packet instructs the first PE node to switch to the protection SR-TE tunnel.
10. The system according to claim 9 , wherein the first PE node is further configured to:
switch from the working SR-TE tunnel to the protection SR-TE tunnel.
11. A communication method, implemented by an intermediate node, comprising:
receiving, using a segment routing traffic engineering (SR-TE) working tunnel, a first operation, administration and maintenance (OAM) packet from a first provider edge (PE) node;
encapsulating identification information in the first OAM packet to obtain a second OAM packet, wherein the identification information identifies that signal degradation (SD) occurs in the working SR-TE tunnel, wherein the second OAM packet is a continuity check message (CCM), wherein the intermediate node is between the first PE node and a second PE node on the working SR-TE tunnel, and the first PE node is an ingress node of the working SR-TE tunnel, the second PE node is an egress node of the working SR-TE tunnel; and
sending the second OAM packet to the second PE node using the working SR-TE tunnel.
12. The method according to claim 11 , wherein the identification information is carried in a flag field in the CCM.
13. The method according to claim 11 , the identification information is carried in a reserved field in the CCM.
14. The method according to claim 11 , wherein the method further comprises:
before obtaining the second OAM packet, determining that a port bit error fault occurs on the intermediate node.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.