WO2024000139A1 - 报文转发 - Google Patents

报文转发 Download PDF

Info

Publication number
WO2024000139A1
WO2024000139A1 PCT/CN2022/101724 CN2022101724W WO2024000139A1 WO 2024000139 A1 WO2024000139 A1 WO 2024000139A1 CN 2022101724 W CN2022101724 W CN 2022101724W WO 2024000139 A1 WO2024000139 A1 WO 2024000139A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
srh
indication information
network device
sid
Prior art date
Application number
PCT/CN2022/101724
Other languages
English (en)
French (fr)
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 新华三技术有限公司
Priority to PCT/CN2022/101724 priority Critical patent/WO2024000139A1/zh
Priority to EP22948262.5A priority patent/EP4425851A1/en
Priority to CN202280001943.9A priority patent/CN117643020A/zh
Publication of WO2024000139A1 publication Critical patent/WO2024000139A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Definitions

  • This application relates to the field of communication technology, and in particular to message forwarding.
  • Segment Routing Header In the Internet Protocol Version 6 Segment Routing (SRv6) network, after receiving the service message, the head node can encapsulate the SRH header, Segment Routing Header (Segment Routing Header) in the outer layer of the head node.
  • SRH includes a segment list (Segment List).
  • the segment list includes the forwarding path of the service message in the SRv6 network, and nodes in the SRv6 network can forward the service message based on this forwarding path.
  • the SRv6 network can be combined with the service chain function.
  • the endpoint node in the SRv6 network can be connected to the service function node. After the endpoint node receives the traffic, it forwards the received traffic to the server based on the segment list.
  • the service function node is used to process value-added services. After the service function node completes processing, it forwards the traffic back to the endpoint node so that the traffic continues to be transmitted in the SRv6 network.
  • the service function node may be a node used to provide functions such as accounting functions or firewalls.
  • the head node can switch traffic to the backup path.
  • the head node can generate a Bidirectional Forwarding Detection (BFD) message based on the segment list, so that the BFD message is forwarded according to the path indicated by the segment list, thereby detecting whether the currently used forwarding path occurs based on the BFD message. Fault.
  • BFD Bidirectional Forwarding Detection
  • the service function node since the service function node is used to process business packets, and BFD packets are not native business packets, after the BFD packet is forwarded to the service function node according to the segment list, the service function node may not be able to recognize and process the BFD packet. packets, causing BFD packets to be discarded, further causing the head node to mistakenly believe that the currently used path is faulty, triggering an erroneous switch between the active and backup paths.
  • BFD Bidirectional Forwarding Detection
  • the purpose of the embodiments of this application is to forward packets to avoid the problem of incorrect path switching by the head node.
  • the specific technical solutions are as follows:
  • embodiments of the present application provide a message forwarding method, which method is applied to a network device.
  • the method includes:
  • the first message includes the destination address and the first routing header SRH, the first SRH includes a SID list, and the SID list indicates the forwarding path;
  • the destination address is a locally configured SID and the first SRH includes indication information
  • the first message is sent on the forwarding path, and the indication information is used to indicate that the first message is a probe. message.
  • the network device is connected to a service function node
  • the method further includes:
  • the link status is reachable, the first message is sent on the forwarding path.
  • the obtaining the link status of the link between the network device and the service function node specifically includes:
  • the link status is unreachable
  • the link status is reachable.
  • the first SRH includes a flags field, and 1 bit in the flags field carries the indication information.
  • sending the first message on the forwarding path specifically includes:
  • the destination address is a locally configured proxy SID and the first SRH includes the indication information, forward the first message to the network device indicated by the next SID in the SID list; or,
  • a second SRH including the indication information is encapsulated in the outer layer of the first message.
  • the first message including the second SRH is sent on the forwarding path indicated by the SID list included in the second SRH.
  • embodiments of the present application provide a message forwarding method, the method is applied to the head node, and the method includes:
  • the first message includes a destination address and a first routing header SRH, the first SRH includes a SID list and indication information, the SID list indicates a forwarding path, and the indication information is used to indicate
  • the first message is a detection message;
  • the first message is sent on the forwarding path.
  • the method further includes:
  • the first SRH includes a flags field, and 1 bit in the flags field carries the indication information.
  • embodiments of the present application provide a message forwarding device, the device is applied to network equipment, and the device includes:
  • a receiving module configured to receive a first message, the first message including a destination address and a first routing header SRH, the first SRH including a SID list, the SID list indicating the forwarding path;
  • a sending module configured to send the first message on the forwarding path if the destination address is a locally configured SID and the first SRH includes indication information, and the indication information is used to indicate the third One message is a detection message.
  • the network device is connected to a service function node; the device further includes: an acquisition module and a discarding module;
  • the acquisition module is used to acquire the link status of the link between the network device and the service function node;
  • the discarding module is configured to discard the first message if the link status obtained by the obtaining module is unreachable
  • the sending module is specifically configured to send the first message on the forwarding path if the link status obtained by the obtaining module is reachable.
  • the acquisition module is specifically used to:
  • the link status is unreachable
  • the link status is reachable.
  • the first SRH includes a flags field, and 1 bit in the flags field carries the indication information.
  • the sending module is specifically used to:
  • the destination address is a locally configured proxy SID and the first SRH includes the indication information, forward the first message to the network device indicated by the next SID in the SID list; or,
  • a second SRH including the indication information is encapsulated in the outer layer of the first message.
  • the first message including the second SRH is sent on the forwarding path indicated by the SID list included in the second SRH.
  • embodiments of the present application provide a message forwarding device, the device is applied to a head node, and the device includes:
  • Generating module configured to generate a first message.
  • the first message includes a destination address and a first routing header SRH.
  • the first SRH includes a SID list and indication information.
  • the SID list indicates a forwarding path.
  • the indication information is used to indicate that the first message is a detection message;
  • a sending module configured to send the first message on the forwarding path.
  • the device further includes: a switching module
  • the switching module is configured to switch to a backup forwarding path if the response message of the first message is not received within a preset time period.
  • the first SRH includes a flags field, and 1 bit in the flags field carries the indication information.
  • embodiments of the present application provide a network device, where the network device includes:
  • a machine-readable storage medium that stores machine-executable instructions that can be executed by the processor; the machine-executable instructions cause the processor to perform the following steps:
  • the first message includes a destination address and a first routing header SRH, the first SRH includes a SID list, and the SID list indicates a forwarding path;
  • the first message is sent through the transceiver on the forwarding path, and the indication information is used to indicate the third One message is a detection message.
  • the network device is connected to a service function node
  • the machine-executable instructions also cause the processor to perform the following steps:
  • the link status is reachable, the first message is sent on the forwarding path.
  • machine-executable instructions also cause the processor to perform the following steps:
  • the link status is unreachable
  • the link status is reachable.
  • the first SRH includes a flags field, and 1 bit in the flags field carries the indication information.
  • machine-executable instructions also cause the processor to perform the following steps:
  • the destination address is a locally configured proxy SID and the first SRH includes the indication information, forward the first message through the transceiver to the network device indicated by the next SID in the SID list; or,
  • a second SRH including the indication information is encapsulated in the outer layer of the first message.
  • the first message including the second SRH is sent through the transceiver.
  • embodiments of the present application provide a head node, where the head node includes:
  • a machine-readable storage medium that stores machine-executable instructions that can be executed by the processor; the machine-executable instructions cause the processor to perform the following steps:
  • the first message includes a destination address and a first routing header SRH, the first SRH includes a SID list and indication information, the SID list indicates a forwarding path, and the indication information is used to indicate
  • the first message is a detection message;
  • the first message is sent on the forwarding path through the transceiver.
  • machine-executable instructions also cause the processor to perform the following steps:
  • the first SRH includes a flags field, and 1 bit in the flags field carries the indication information.
  • embodiments of the present application provide a machine-readable storage medium that stores machine-executable instructions. When called and executed by a processor, the machine-executable instructions prompt the processor to: implement the first step above.
  • An eighth aspect is a computer program product, the computer program product causes the processor to: implement the method steps described in any one of the first aspect or the second aspect.
  • the network device can learn the first message.
  • the message is a detection message, and the network device sends the first message on the forwarding path indicated by the SID list without forwarding the first message to the service function node.
  • the service function node can avoid discarding the first message, thereby avoiding the problem of the head node erroneously switching paths due to the service function node discarding the detection message used to detect the path.
  • Figure 1 is a schematic diagram of a scenario where a service chain function is combined with SRv6 provided by an embodiment of the present application;
  • FIG. 2 is a schematic diagram of the active and backup paths provided by the embodiment of this application.
  • Figure 3 is a schematic flow chart of a message forwarding method provided by an embodiment of the present application.
  • Figure 4a is a schematic diagram of the first SRH provided by the embodiment of the present application.
  • Figure 4b is an exemplary schematic diagram of the Flags field provided by the embodiment of the present application.
  • Figure 5 is a schematic flow chart of another message forwarding method provided by an embodiment of the present application.
  • Figure 6 is an exemplary schematic diagram of the first message cross-domain forwarding scenario provided by the embodiment of the present application.
  • Figure 7 is a schematic flow chart of another message forwarding method provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a message forwarding device provided by an embodiment of the present application.
  • Figure 9 is a schematic structural diagram of another message forwarding device provided by an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of a network device provided by an embodiment of the present application.
  • Figure 11 is a schematic structural diagram of a head node provided by an embodiment of the present application.
  • SRv6 is a source routing technology.
  • the head node of the SRv6 network can add SRH encapsulation to the traffic and guide the traffic to be forwarded according to the prescribed path through the Segment List in the SRH header.
  • the service chain function means that in the process of traffic forwarding, the Service Function Forwarder (SFF) node sends the traffic to the Service Function (SF) node in the planned order, so that the SF node processes the traffic, SF
  • SFF Service Function Forwarder
  • SF Service Function
  • nodes can implement accounting functions, firewall functions, etc.
  • the service chain function can be combined with SRv6, that is, the service chain function can be implemented in the SRv6 network and the service chain can be orchestrated through the Segment List of SRv6.
  • the head node i.e., the classifier in the service chain function scenario
  • receives the original packet (Original Packet)
  • IPv6 Internet Protocol Version 6
  • the source address of the IPv6 header is the source address of the original service packet, and the destination address is SFF1.
  • the Segment List included in SRH is SFF1::SF1, SFF2::SF2, SFF3.
  • SFF1::SF1 is the segment ID (SID) of SFF1.
  • the type can be End.AD, End.AS or End.AM, which is used to guide SF1 to send the message to SF1.
  • SFF2::SF2 is the SID of SFF2.
  • the type can be End.AD, End.AS or End.AM. It is used to instruct SFF2 to send the message to SF2.
  • SFF3 is the SID of SFF3, and the type can be a common End type.
  • the head node can forward the packet encapsulated with IPv6 header and SRH to SFF1. If the type of SFF1 is End.AD or End.AS, then SFF1 can forward the original data packet to SF1. After SF1 processes the original data packet, it sends the processed original data packet to SFF1, and then SFF1 becomes the processed original data packet again.
  • the data packet is encapsulated with IPv6 header and SRH and sent to SFF2.
  • SFF2 processes packets similarly to SFF1 and will not be described again here.
  • the above End.AD is an SRv6 SID, which is used to indicate that the node to which End.AD belongs serves as an SR proxy (Segment Routing Proxy).
  • SR proxy Segment Routing Proxy
  • the IPv6 header and SRH of the message are temporarily deleted. , and then forwarded to the SF node.
  • the node to which End.AD belongs can be used as a dynamic proxy node and maintain a dynamic cache for each service chain in the dynamic cache.
  • End.AS is another SRv6 SID, used to represent the node to which End.AS belongs as an SR proxy (SR Proxy), which can implement message processing functions similar to End.AD.
  • SR Proxy SR proxy
  • the difference from End.AD is that End.
  • the node to which the AS belongs re-encapsulates IPv6 headers and SRH for packets through static configuration information, and does not need to maintain a dynamic cache.
  • End.AM is another SRv6 SID, used to indicate that the SFF node to which End.AM belongs serves as an SR Proxy and can connect to SF nodes with the ability to identify SRH.
  • Figure 2 takes the deployment of two service function chains as an example.
  • the main path is: ⁇ SFF1::SF1,SFF2: SF2,SFF3>
  • the backup path is ⁇ SFF4::SF1',SFF5::SF2',SFF6>.
  • SF1’, SF2’ in the backup path and SF1, SF2 in the main path can achieve the same service. If the main path fails, the head node can switch to the backup path to ensure normal business operations.
  • the head node In order to detect the path status, the head node will generate a BFD message for detecting the main path based on the segment list of the main path. Since SF1 and SF2 are used to process service messages, BFD messages are not native service messages. , so SF1 and SF2 may not be able to identify and process the BFD packet, causing the BFD packet to be discarded, further causing the head node to mistakenly believe that the currently used path is faulty, triggering an erroneous switch between the active and backup paths.
  • embodiments of the present application provide a message forwarding method, which is applied to network equipment, as shown in Figure 3. Methods include:
  • the S301 Receive a first message.
  • the first message includes a destination address and a first SRH.
  • the first SRH includes a SID list.
  • the SID list indicates the forwarding path.
  • the destination address of the first message is the destination address in the IPv6 header of the first message.
  • the destination address of the first message is the SID of SFF4, and the forwarding path indicated by the SID list is SFF4-SFF5-SFF6.
  • the destination address is a locally configured SID and the first SRH includes indication information, send the first message on the forwarding path.
  • the indication information is used to indicate that the first packet is a detection packet.
  • the detection packet can be a BFD packet, an SBFD packet, a two-way active measurement protocol (TWAMP) packet or a lightweight TWAMP (TWAMP light) packet.
  • TWAMP two-way active measurement protocol
  • TWAMP light lightweight TWAMP
  • the network device If the network device recognizes that the first SRH of the first message includes indication information, it determines that the first message is an active detection message, and then the network device will not forward the first message to the service function node. The network device can forward the first message to the service function node. The first message is sent on the forwarding path indicated by the SID list.
  • SFF4 after SFF4 receives the first message sent by the head node, if the destination address of the first message is the locally configured SID and the first SRH includes indication information, it will not send the first message to SF1'. message, but updates the destination address of the first message to the SID of SFF5 according to the SID list, and forwards the first message to SFF5.
  • SFF5 After SFF5 receives the first message, it determines that the destination address of the first message is the locally configured SID and the first SRH includes indication information, then updates the destination address of the first message to the destination address of SFF6, and forwards it to SFF6 First message. It can be seen that the first message is not forwarded to the SF node, but is forwarded along the forwarding path (SFF4-SFF5-SFF6) indicated by the SID list.
  • the network device After the network device receives the first message, if the destination address of the first message is the locally configured SID, and the first SRH of the first message includes indication information, then the network device It can be learned that the first message is a detection message, and then the network device sends the first message on the forwarding path indicated by the SID list without forwarding the first message to the service function node. In this way, the service function node can avoid discarding the first message, thereby avoiding the problem of the head node erroneously switching paths due to the service function node discarding the detection message used to detect the path.
  • the first SRH includes a flags field, and 1 bit in the flags field carries indication information.
  • the structure of the first SRH is shown in Figure 4a.
  • the first SRH includes the following fields:
  • Next Header (Next Header), 8 bits in length, is used to identify the type of the next header.
  • SRH length (Hdr Ext Len) the length is 8 bits, indicating the length of the SRH header in 8 bytes, excluding the first 8 bytes.
  • Routing Type the length is 8 bits, and the value is 4, which means it carries SRH.
  • Segment index (Segments Left, SL), with a length of 8 bits, is the number of the next segment list to be processed.
  • Last Entry the length is 8 bits, and the value is the number of the first SID of the actual forwarding path of the packet in the SRH header.
  • Flags 8 bits in length, are flag information.
  • Tag 16 bits in length, is used to mark a group of packets with the same characteristics.
  • Segment List is a SID list, arranged in order from far to near nodes on the message forwarding path, that is, Segment List[0] represents the last SID of the path, and Segment List[1] represents the penultimate SID of the path. Two SIDs, and so on. Each SID can be a 128-bit IPv6 address.
  • Figure 4a shows the complete uncompressed SID.
  • the Segment List can also carry the compressed SID.
  • 1 bit of the Flags field of the first SRH can be used to carry indication information.
  • Figure 4b is an exemplary schematic diagram of the Flags field in Figure 4a.
  • This embodiment of the present application can occupy Flags
  • the third bit of the field carries indication information.
  • the indication information may be an active detection flag (Active Detection Flag, AD Flag).
  • the AD Flag identifies the first message as an active detection message.
  • AD Flag set, that is, the value of AD Flag is 1, it means that the first SRH carries indication information; if AD is not set, that is, the value of AD Flag is 0, it means that the first SRH No instructions are carried.
  • the network device is connected to the service function node, that is to say, the network device is an SFF node.
  • the method includes the following steps:
  • the S501 Receive a first message.
  • the first message includes a destination address and a first SRH.
  • the first SRH includes a SID list.
  • the SID list indicates the forwarding path.
  • S501 is the same as S301. Please refer to the description in S301, which will not be described again here.
  • the destination address is a locally configured SID and the first SRH includes indication information, obtain the link status of the link between the network device and the service function node.
  • the network device can monitor the link status with the service function node in real time and record the link status on the data plane. In this way, the network device can obtain the link status between the network device and the service function node from the data plane. The link status of the link.
  • the link status is unreachable
  • the link status is reachable.
  • the network device can determine whether there is a fault in the link between the network device and the service function node through the interface status of the local interface connected to the service function node. When the interface status is abnormal, it is determined that the link between the network device and the service function node is faulty; when the interface status is normal, it is determined that the link between the network device and the service function node is not faulty.
  • the network device may also determine the link status with the service function node through other methods in related technologies, which is not limited by the embodiments of the present application.
  • the forwarding switch between the network device and the service function node is set to off; if the service function node If the node is not faulty and the link between the network device and the service function node is not faulty, set the forwarding switch between the network device and the service function node to open.
  • the network device determines that the forwarding switch is in an open state, it determines that the link status is reachable; if it determines that the forwarding switch is in a closed state, it determines that the link status is unreachable.
  • the sending of the first message on the forwarding path in this step is the same as the sending of the first message on the forwarding path in S302. Please refer to the relevant description in S302, which will not be described again here.
  • the network device when the network device is connected to the service function node, the network device obtains the link status of the link with the service function node. If the link status is unreachable, the first message is discarded. In this way, If the link between the network device and the service function node is unreachable, the head node can detect the link failure in time and switch to other forwarding paths, which can improve the reliability of the service chain function.
  • the network device is an SFF node.
  • the destination address is a locally configured SID and the first SRH includes indication information
  • the first message is sent on the forwarding path. Specifically, it can be implemented as:
  • the first message is forwarded to the network device indicated by the next SID in the SID list.
  • the proxy SID can be End.AS SID, End.AD SID or End.AM SID.
  • the destination address is a locally configured proxy SID, it means that the network device is an SFF node.
  • the network device determines that the first SRH includes indication information, and can determine that the first message is a probe message, and then does not forward the first message to the SF node.
  • the first message may be forwarded to the network device indicated by the next SID in the SID list.
  • the next SID may be a common endpoint node or an SFF node, which is not limited in the embodiment of the present application.
  • the SID list of the first SRH may include the BSID.
  • the destination address is a locally configured SID and the first SRH includes indication information, the first message is sent on the forwarding path. Specifically, Implemented as:
  • the second SRH including the indication information is encapsulated in the outer layer of the first message, and on the forwarding path indicated by the SID list included in the second SRH, the packet containing The first message of the second SRH.
  • the network device will encapsulate the first packet with an IPv6 header and a second SRH.
  • the second SRH also includes a SID list, and the subsequent first packet will be in the second SRH. Include a list of SIDs to forward on.
  • the location of the indication information in the second SRH is the same as the location of the indication information in the first SRH, and will not be described again here.
  • the indication information is also encapsulated in the second SRH, and the network device on the forwarding path indicated by the SID list included in the second SRH can also identify that the first packet including the second SRH is a probe packet based on the indication information. message, thus avoiding the problem that the network device sends the first message including the second SRH to the service function node, causing the head node to incorrectly switch paths, and realizes the reliability protection of the primary and backup paths of the SRv6 service chain.
  • Figure 6 is an exemplary schematic diagram of the first message cross-domain forwarding scenario.
  • the forwarding path spans the first autonomous system (Autonomous System, AS) and the second AS.
  • AS Autonomous System
  • the first AS includes P1 and P2
  • the second AS includes P3, P4, P5 and PE2, and P4 is connected to SF1.
  • the head node may generate the first message, and the SID list included in the first SRH of the first message is: P1.SID, P2.SID, P3.SID, PE2.SID, where P3.SID is the BSID.
  • P3 After P3 receives the first message, it determines that the destination address of the first message is P3.SID, which is the locally configured BSID, and the first SRH of the first message includes indication information, then P3 is outside the first message.
  • the second SRH layer encapsulates the second SRH and IPv6 header.
  • the SID list in the second SRH is: P4.SID, P5.SID.
  • the second SRH includes indication information.
  • P3 may send the first message to P4 based on the SID list in the second SRH.
  • P4 After P4 receives the first message, and recognizes that the destination address of the first message is the locally configured proxy SID, and the second SRH includes indication information, it may not send the first message to SF1, but continue to send it to P5. Forward the first message to avoid the problem of incorrect path switching by the head node due to the inability of SF1 to process the first message.
  • embodiments of the present application also provide a message sending method, which is applied to the head node. As shown in Figure 7, the method includes:
  • the first message includes the destination address and the first routing header SRH.
  • the first SRH includes a SID list and indication information.
  • the SID list indicates the forwarding path.
  • the indication information is used to indicate that the first message is a probe. message.
  • the destination address of the first message is the destination address in the IPv6 header of the first message.
  • the head node If the head node does not receive the response message of the first message within the preset time period, it switches to the backup forwarding path, and subsequently forwards the message through the backup forwarding path.
  • the response message of the first message may be a BFD echo message.
  • the second network device uses the embodiment of the present application to generate a first message and sends the first message on the forwarding path.
  • the first message includes indication information, and the indication information is used to indicate that the first message is a detection message.
  • the network device can determine that the first message is a detection message based on the indication information, and thus will not forward the first message to the service function node.
  • the service function node can avoid discarding the first message, thereby avoiding the problem of the head node erroneously switching paths due to the service function node discarding the message used to detect the path.
  • the first SRH includes a flags field, and 1 bit in the flags field carries indication information.
  • 1 bit in the flags field carries indication information.
  • embodiments of the present application also provide a message forwarding device, which is applied to network equipment.
  • the device includes:
  • the receiving module 801 is used to receive the first message.
  • the first message includes the destination address and the first routing header SRH.
  • the first SRH includes a SID list, and the SID list indicates the forwarding path;
  • the sending module 802 is configured to send the first message on the forwarding path if the destination address is a locally configured SID and the first SRH includes indication information, and the indication information is used to indicate that the first message is a probe message.
  • the network device is connected to the service function node; the device also includes: an acquisition module and a discarding module;
  • the acquisition module is used to obtain the link status of the link between the network device and the service function node;
  • the discard module is used to discard the first message if the link status obtained by the acquisition module is unreachable;
  • the sending module 802 is specifically configured to send the first message on the forwarding path if the link status obtained by the obtaining module is reachable.
  • the link status is unreachable
  • the link status is reachable.
  • the first SRH includes a flags field, and 1 bit in the flags field carries indication information.
  • sending module 802 specifically used for:
  • the destination address is a locally configured proxy SID and the first SRH includes indication information, forward the first message to the network device indicated by the next SID in the SID list; or,
  • the second SRH including the indication information is encapsulated in the outer layer of the first message, and the forwarding path indicated by the SID list included in the second SRH on, sending the first message including the second SRH.
  • the embodiment of the present application also provides a message forwarding device, which is applied to the head node.
  • the device includes:
  • Generating module 901 configured to generate a first message.
  • the first message includes a destination address and a first routing header SRH.
  • the first SRH includes a SID list and indication information.
  • the SID list indicates the forwarding path.
  • the indication information is used to indicate the first segment.
  • the message is a detection message;
  • the sending module 902 is used to send the first message on the forwarding path.
  • the device also includes: a switching module
  • the switching module is used to switch to the backup forwarding path if the response message of the first message is not received within a preset time period.
  • the first SRH includes a flags field, and 1 bit in the flags field carries indication information.
  • the network device includes:
  • Machine-readable storage medium 1002 stores machine-executable instructions that can be executed by the processor 1001; the machine-executable instructions cause the processor 1001 to perform the following steps:
  • the first message is received through the transceiver 1004.
  • the first message includes the destination address and the first routing header SRH.
  • the first SRH includes a SID list, and the SID list indicates the forwarding path;
  • the first packet is sent through the transceiver 1004 on the forwarding path, and the indication information is used to indicate that the first packet is a probe packet.
  • the network device is connected to the service function node
  • the machine-executable instructions also cause processor 1001 to perform the following steps:
  • the link status is unreachable, the first packet is discarded;
  • the link status is reachable, the first message is sent on the forwarding path.
  • machine executable instructions also cause the processor 1001 to perform the following steps:
  • the link status is unreachable
  • the link status is reachable.
  • the first SRH includes a flags field, and 1 bit in the flags field carries indication information.
  • machine executable instructions also cause the processor 1001 to perform the following steps:
  • the first message is forwarded through the transceiver 1004 to the network device indicated by the next SID in the SID list; or,
  • the second SRH including the indication information is encapsulated in the outer layer of the first message, and the forwarding path indicated by the SID list included in the second SRH on, the first message including the second SRH is sent through the transceiver 1004.
  • the network device may also include a communication bus 1003.
  • the processor 1001, the machine-readable storage medium 1002 and the transceiver 1004 complete mutual communication through the communication bus 1003.
  • the communication bus 1003 can be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard structure. (Extended Industry Standard Architecture, EISA) bus, etc.
  • PCI peripheral component interconnect standard
  • EISA Extended Industry Standard Architecture
  • the communication bus 1003 can be divided into an address bus, a data bus, a control bus, etc.
  • the transceiver 1004 may be a wireless communication module. Under the control of the processor 1001, the transceiver 1004 performs data interaction with other devices.
  • the machine-readable storage medium 1002 may include random access memory (Random Access Memory, RAM) or non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the machine-readable storage medium 1002 may also be at least one storage device located remotely from the aforementioned processor.
  • the processor 1001 can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP) or an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the embodiment of the present application also provides a head node, as shown in Figure 11, the head node includes:
  • transceiver 1104
  • Machine-readable storage medium 1102. stores machine-executable instructions that can be executed by the processor 1101; the machine-executable instructions cause the processor 1101 to perform the following steps:
  • the first message includes the destination address and the first routing header SRH.
  • the first SRH includes a SID list and indication information.
  • the SID list indicates the forwarding path.
  • the indication information is used to indicate that the first message is a probe message. ;
  • the first message is sent on the forwarding path through transceiver 1104.
  • machine executable instructions also cause the processor 1101 to perform the following steps:
  • the system switches to the backup forwarding path.
  • the first SRH includes a flags field, and 1 bit in the flags field carries indication information.
  • the head node may also include a communication bus 1103.
  • the processor 1101, the machine-readable storage medium 1102 and the transceiver 1104 complete mutual communication through the communication bus 1103.
  • the communication bus 1103 can be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard structure. (Extended Industry Standard Architecture, EISA) bus, etc.
  • PCI peripheral component interconnect standard
  • EISA Extended Industry Standard Architecture
  • the communication bus 1103 can be divided into an address bus, a data bus, a control bus, etc.
  • the transceiver 1104 may be a wireless communication module. Under the control of the processor 1101, the transceiver 1104 performs data interaction with other devices.
  • the machine-readable storage medium 1102 may include random access memory (Random Access Memory, RAM) or non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the machine-readable storage medium 1102 may also be at least one storage device located remotely from the aforementioned processor.
  • the processor 1101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP) or an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU central processing unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the embodiments of the present application also provide a machine-readable storage medium.
  • the machine-readable storage medium stores machine-executable information that can be executed by the processor. instruction.
  • the processor is caused by machine-executable instructions to implement the steps of any of the above message forwarding methods.
  • a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform the steps of any of the message forwarding methods in the above embodiments.

Landscapes

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

Abstract

提供一种报文转发方法,涉及通信技术领域,方法包括:接收第一报文,第一报文包括目的地址以及第一段路由头SRH,第一SRH包括SID列表,SID列表指示转发路径(S301);若目的地址为本地配置的SID且第一SRH包括指示信息,则在转发路径上发送第一报文(S302),指示信息用于指示第一报文为探测报文,可以避免头节点错误切换路径的问题。

Description

报文转发 技术领域
本申请涉及通信技术领域,尤其涉及报文转发。
背景技术
在互联网协议第6版段路由(Segment Routing Internet Protocol Version 6,SRv6)网络中,头节点在接收到业务报文后,可在头节点的外层封装SRH头,段路由头(Segment Routing Header,SRH)中包括段列表(Segment List),段列表中包括该业务报文在SRv6网络中的转发路径,进而SRv6网络中的节点可以基于该转发路径转发业务报文。
目前SRv6网络可以与服务链功能结合,可根据实际的服务需求,将SRv6网络中的端点(endpoint)节点与服务功能节点连接,endpoint节点接收到流量后,基于段列表将接收到的流量转发给用于处理增值服务的服务功能节点,服务功能节点完成处理后,再将流量转发回endpoint节点,使得流量继续在SRv6网络中传输。服务功能节点可以是用于提供计费功能或者防火墙等功能的节点。
在实际部署中,可以部署至少两条转发路径,当一条路径故障时,头节点可将流量切换到备份路径。头节点可以基于段列表生成双反转发检测(Bidirectional Forwarding Detection,BFD)报文,使得BFD报文被按照段列表指示的路径进行转发,从而根据该BFD报文检测当前使用的转发路径是否发生故障。然而,由于服务功能节点用于对业务报文进行处理,而BFD报文不是原生的业务报文,BFD报文按照段列表被转发至服务功能节点后,服务功能节点可能无法识别并处理该BFD报文,导致BFD报文被丢弃,进一步导致头节点误认为当前使用的路径故障,触发主备路径之间的错误切换。
发明内容
本申请实施例的目的在于报文转发,以避免头节点错误切换路径的问题。具体技术方案如下:
第一方面,本申请实施例提供了一种报文转发方法,所述方法应用于网络设备,所述方法包括:
接收第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表,所述SID列表指示转发路径;
若所述目的地址为本地配置的SID且所述第一SRH包括指示信息,则在所述转发路径上发送所述第一报文,所述指示信息用于指示所述第一报文为探测报文。
在一种可能的实现方式中,所述网络设备与服务功能节点连接;
在所述转发路径上发送所述第一报文之前,所述方法还包括:
获取所述网络设备与所述服务功能节点之间链路的链路状态;
若所述链路状态为不可达,则丢弃所述第一报文;
若所述链路状态为可达,则在所述转发路径上发送所述第一报文。
在一种可能的实现方式中,所述获取所述网络设备与所述服务功能节点之间链路的链路状态,具体包括:
从数据平面获取所述网络设备与所述服务功能节点之间链路的链路状态;
其中,若所述服务功能节点故障和/或所述网络设备与所述服务功能节点之间链路存在故障,则所述链路状态为不可达;
若所述服务功能节点未故障,且所述网络设备与所述服务功能节点之间链路未故障,则所述链路状态为可达。
在一种可能的实现方式中,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
在一种可能的实现方式中,若所述目的地址为本地配置的SID且所述第一SRH包括指示信息,则在所述转发路径上发送所述第一报文,具体包括:
若所述目的地址为本地配置的代理SID且所述第一SRH包括所述指示信息,则向所述SID列表中下一个SID指示的网络设备转发所述第一报文;或者,
若所述目的地址为本地配置的绑定段标识BSID且所述第一SRH包括所述指示信息,则在所述第一报文的外层封装包括所述指示信息的第二SRH,在所述第二SRH包括的SID列表指示的转发路径上,发送包括所述第二SRH的第一报文。
第二方面,本申请实施例提供了一种报文转发方法,所述方法应用于头节点,所述方法包括:
生成第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表和指示信息,所述SID列表指示转发路径,所述指示信息用于指示所述第一报文为探测报文;
在所述转发路径上发送所述第一报文。
在一种可能的实现方式中,所述在所述转发路径上发送所述第一报文之后,所述方法还包括:
若在预设时长内未接收到所述第一报文的响应报文,则切换至备份转发路径。
在一种可能的实现方式中,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
第三方面,本申请实施例提供了一种报文转发装置,所述装置应用于网络设备,所述装置包括:
接收模块,用于接收第一报文,所述第一报文包括目的地址以及第一段 路由头SRH,所述第一SRH包括SID列表,所述SID列表指示转发路径;
发送模块,用于若所述目的地址为本地配置的SID且所述第一SRH包括指示信息,则在所述转发路径上发送所述第一报文,所述指示信息用于指示所述第一报文为探测报文。
在一种可能的实现方式中,所述网络设备与服务功能节点连接;所述装置还包括:获取模块和丢弃模块;
所述获取模块,用于获取所述网络设备与所述服务功能节点之间链路的链路状态;
所述丢弃模块,用于若所述获取模块获取到的所述链路状态为不可达,则丢弃所述第一报文;
所述发送模块,具体用于若所述获取模块获取到的所述链路状态为可达,则在所述转发路径上发送所述第一报文。
在一种可能的实现方式中,所述获取模块,具体用于:
从数据平面获取所述网络设备与所述服务功能节点之间链路的链路状态;
其中,若所述服务功能节点故障和/或所述网络设备与所述服务功能节点之间链路存在故障,则所述链路状态为不可达;
若所述服务功能节点未故障,且所述网络设备与所述服务功能节点之间链路未故障,则所述链路状态为可达。
在一种可能的实现方式中,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
在一种可能的实现方式中,所述发送模块,具体用于:
若所述目的地址为本地配置的代理SID且所述第一SRH包括所述指示信息,则向所述SID列表中下一个SID指示的网络设备转发所述第一报文;或者,
若所述目的地址为本地配置的绑定段标识BSID且所述第一SRH包括所述指示信息,则在所述第一报文的外层封装包括所述指示信息的第二SRH,在所述第二SRH包括的SID列表指示的转发路径上,发送包括所述第二SRH的第一报文。
第四方面,本申请实施例提供了一种报文转发装置,所述装置应用于头节点,所述装置包括:
生成模块,用于生成第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表和指示信息,所述SID列表指示转发路径,所述指示信息用于指示所述第一报文为探测报文;
发送模块,用于在所述转发路径上发送所述第一报文。
在一种可能的实现方式中,所述装置还包括:切换模块;
所述切换模块,用于若在预设时长内未接收到所述第一报文的响应报文,则切换至备份转发路径。
在一种可能的实现方式中,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
第五方面,本申请实施例提供了一种网络设备,所述网络设备包括:
处理器;
收发器;
机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;所述机器可执行指令促使所述处理器执行以下步骤:
通过所述收发器接收第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表,所述SID列表指示转发路径;
若所述目的地址为本地配置的SID且所述第一SRH包括指示信息,则在所述转发路径上通过所述收发器发送所述第一报文,所述指示信息用于指示所述第一报文为探测报文。
在一种可能的实现方式中,所述网络设备与服务功能节点连接;
所述机器可执行指令还促使所述处理器执行以下步骤:
获取所述网络设备与所述服务功能节点之间链路的链路状态;
若所述链路状态为不可达,则丢弃所述第一报文;
若所述链路状态为可达,则在所述转发路径上发送所述第一报文。
在一种可能的实现方式中,所述机器可执行指令还促使所述处理器执行以下步骤:
从数据平面获取所述网络设备与所述服务功能节点之间链路的链路状态;
其中,若所述服务功能节点故障和/或所述网络设备与所述服务功能节点之间链路存在故障,则所述链路状态为不可达;
若所述服务功能节点未故障,且所述网络设备与所述服务功能节点之间链路未故障,则所述链路状态为可达。
在一种可能的实现方式中,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
在一种可能的实现方式中,所述机器可执行指令还促使所述处理器执行以下步骤:
若所述目的地址为本地配置的代理SID且所述第一SRH包括所述指示信息,则通过所述收发器向所述SID列表中下一个SID指示的网络设备转发所述第一报文;或者,
若所述目的地址为本地配置的绑定段标识BSID且所述第一SRH包括所述指示信息,则在所述第一报文的外层封装包括所述指示信息的第二SRH,在所述第二SRH包括的SID列表指示的转发路径上,通过所述收发器发送包括所述第二SRH的第一报文。
第六方面,本申请实施例提供了一种头节点,所述头节点包括:
处理器;
收发器;
机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;所述机器可执行指令促使所述处理器执行以下步骤:
生成第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表和指示信息,所述SID列表指示转发路径,所述指示信息用于指示所述第一报文为探测报文;
通过所述收发器在所述转发路径上发送所述第一报文。
在一种可能的实现方式中,所述机器可执行指令还促使所述处理器执行以下步骤:
若在预设时长内未接收到所述第一报文的响应报文,则切换至备份转发路径。
在一种可能的实现方式中,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
第七方面,本申请实施例提供了一种机器可读存储介质,存储有机器可执行指令,在被处理器调用和执行时,所述机器可执行指令促使所述处理器:实现上述第一方面或第二方面任一所述的方法步骤。
第八方面,一种计算机程序产品,所述计算机程序产品促使所述处理器:实现上述第一方面或第二方面任一所述的方法步骤。
采用上述技术方案,网络设备接收第一报文后,如果第一报文的目的地址为本地配置的SID,且第一报文的第一SRH包括指示信息,则网络设备可以获知该第一报文是探测报文,进而网络设备在SID列表指示的转发路径上发送第一报文,而不会将该第一报文转发给服务功能节点。如此就可以避免服务功能节点将第一报文丢弃,从而避免因服务功能节点丢弃用于探测路径的探测报文而导致头节点错误切换路径的问题。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。
图1为本申请实施例提供的一种服务链功能与SRv6结合场景的示意图;
图2为本申请实施例提供的主备路径示意图;
图3为本申请实施例提供的一种报文转发方法的流程示意图;
图4a为本申请实施例提供的第一SRH的示意图;
图4b为本申请实施例提供的Flags字段的示例性示意图;
图5为本申请实施例提供的另一种报文转发方法的流程示意图;
图6为本申请实施例提供的第一报文跨域转发场景的示例性示意图;
图7为本申请实施例提供的另一种报文转发方法的流程示意图;
图8为本申请实施例提供的一种报文转发装置的结构示意图;
图9为本申请实施例提供的另一种报文转发装置的结构示意图;
图10为本申请实施例提供的一种网络设备的结构示意图;
图11为本申请实施例提供的一种头节点的结构示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
为便于理解,首先对本申请实施例涉及到的相关概念进行解释说明。
SRv6是一种源路由技术,SRv6网络的头节点可以为流量增加SRH封装,通过SRH头中的Segment List引导流量按照规定的路径转发。
服务链功能是指在流量转发的过程中,使得服务功能转发代理(Service Function Forwarder,SFF)节点按照规划的顺序将流量发送给服务功能(Service Function,SF)节点,使得SF节点处理流量,SF节点具体可以实现计费功能、防火墙功能等。
目前,服务链功能可以与SRv6结合,即可以在SRv6网络中实现服务链功能,通过SRv6的Segment List编排服务链。如图1所示,头节点(即服务链功能场景下的分类器Classifier)接收到原始数据包(Original Packet)后,在原始数据包的外层封装互联网协议第6版(Internet Protocol Version 6,IPv6)头和SRH。
该IPv6头的源地址为原始业务报文的源地址,目的地址为SFF1。
SRH中包括的Segment List为SFF1::SF1,SFF2::SF2,SFF3。
其中,SFF1::SF1为SFF1的段标识(Segment ID,SID),类型可以为End.AD、End.AS或End.AM,用于指导SF1将报文发送给SF1。
SFF2::SF2为SFF2的SID,类型可以为End.AD、End.AS或End.AM,用于指导SFF2将报文发送给SF2。
SFF3为SFF3的SID,类型可以为普通的End类型。
头节点可以将封装IPv6头和SRH的报文转发给SFF1。若SFF1的类型为End.AD或End.AS,则SFF1可以将原始数据包转发给SF1,SF1处理该原始数据包后,向SFF1发送处理后的原始数据包,进而SFF1重新为处理后的原始数据包封装IPv6头和SRH,并向SFF2发送。SFF2对报文的处理与SFF1类似,此处不再赘述。
上述End.AD为一种SRv6 SID,用于表示End.AD所属的节点作为SR代理(Segment Routing Proxy),在把报文转发给SF节点处理之前,将报文的IPv6 头和SRH暂时删除后,再转发给SF节点。在接收到SF节点处理后的报文后,基于动态缓存中缓存的IPv6头和SRH的信息,重新为报文封装IPv6头和SRH。也就是说,End.AD所属的节点可以作为动态代理节点,在动态缓存中为每条服务链维护一个动态缓存。
End.AS为另一种SRv6 SID,用于表示End.AS所属的节点作为SR代理(SR Proxy),可以实现类似End.AD类似的报文处理功能,与End.AD区别之处在于End.AS所属的节点通过静态配置信息重新为报文封装IPv6头和SRH,不需要维护动态缓存。
End.AM为又一种SRv6 SID,用于表示End.AM所属的SFF节点作为SR代理(SR Proxy),可以连接具有识别SRH能力的SF节点。End.AM所属的SFF节点在将报文转发给SF节点之前,会将报文的目的地址更新为SL=0的segment(段),即报文最终的目的地址,进而SF节点处理该报文之后,会基于目的地址再将处理后的报文返回给该SFF节点,进而SFF节点将报文的目的地址更新为SRH中当前SL指示的segment,使得报文被继续沿Segment List指示的路径转发。
在实际部署中,一些关键业务的会被部署多条服务功能链,如图2所示,图2以部署两条服务功能链为例进行说明,主路径为:<SFF1::SF1,SFF2:SF2,SFF3>,备路径为<SFF4::SF1’,SFF5::SF2’,SFF6>。备路径中的SF1’、SF2’和主路径中的SF1、SF2能够实现相同的服务,头节点在主路径故障的情况下可以切换到备用路径,保证业务正常进行。
为了对路径状态进行检测,头节点会基于主路径的段列表生成用于检测主路径的BFD报文,由于SF1和SF2用于对业务报文进行处理,而BFD报文不是原生的业务报文,所以SF1和SF2可能无法识别并处理该BFD报文,导致BFD报文被丢弃,进一步导致头节点误认为当前使用的路径故障,触发主备路径之间的错误切换。
为避免因服务节点丢弃用于探测路径的报文而导致头节点错误切换路径的问题,本申请实施例提供了一种报文转发方法,该方法应用于网络设备,如图3所示,该方法包括:
S301、接收第一报文,第一报文包括目的地址以及第一SRH,第一SRH包括SID列表,SID列表指示转发路径。
第一报文的目的地址为第一报文的IPv6头中的目的地址。
以图2为例,若SFF4接收到头节点发送的第一报文,则第一报文的目的地址为SFF4的SID,SID列表指示的转发路径为SFF4-SFF5-SFF6。
S302、若目的地址为本地配置的SID且第一SRH包括指示信息,则在转发路径上发送第一报文。
其中,指示信息用于指示第一报文为探测报文。
可选的,探测报文可以为BFD报文、SBFD报文或者双向主动测量协议 (two-way active measurement protocol,TWAMP)报文或者轻量级的TWAMP(TWAMP light)报文。
网络设备若识别出第一报文的第一SRH中包括指示信息,则确定第一报文为主动探测报文,进而网络设备不会向服务功能节点转发第一报文,网络设备可以在向SID列表指示的转发路径上发送第一报文。
例如,以图2为例,SFF4接收到头节点发送的第一报文后,若第一报文的目的地址为本地配置的SID且第一SRH包括指示信息,则不向SF1’发送该第一报文,而是根据SID列表将第一报文的目的地址更新为SFF5的SID,并向SFF5转发第一报文。
SFF5接收到第一报文后,确定第一报文的目的地址为本地配置的SID且第一SRH包括指示信息,则将第一报文的目的地址更新为SFF6的目的地址,并向SFF6转发第一报文。可见,第一报文并未被转发至SF节点,而是被沿着SID列表指示的转发路径(SFF4-SFF5-SFF6)转发。
本申请实施例提供的报文转发方法,网络设备接收第一报文后,如果第一报文的目的地址为本地配置的SID,且第一报文的第一SRH包括指示信息,则网络设备可以获知该第一报文是探测报文,进而网络设备在SID列表指示的转发路径上发送第一报文,而不会将该第一报文转发给服务功能节点。如此就可以避免服务功能节点将第一报文丢弃,从而避免因服务功能节点丢弃用于探测路径的探测报文而导致头节点错误切换路径的问题。
本申请实施例中,第一SRH包括标记位flags字段,flags字段内的1个比特位承载指示信息。
第一SRH的结构如图4a所示,第一SRH包括以下字段:
下一个报头(Next Header),长度为8bits,用于标识下一个报文头的类型。
SRH长度(Hdr Ext Len),长度为8bits,表示以8个字节为单位的SRH头的长度,不包括第一个8个字节。
路由类型(Routing Type),长度为8bits,取值为4,表示携带的是SRH。
段索引(Segments Left,SL),长度为8bits,为下一个要处理的段列表的编号。
最后一跳(Last Entry),长度为8bits,取值为SRH头中报文实际转发路径的第一个SID的编号。
标志位(Flags),长度为8bits,为标志位信息。
标签(Tag),长度为16bits,用于标记具有相同特性的一组报文。
段列表(Segment List),为SID列表,按照报文转发路径上节点从远到近的顺序进行排列,即Segment List[0]表示路径的最后一个SID,Segment List[1]表示路径的倒数第二个SID,以此类推。每个SID均可以为一个128bit的IPv6地址。
Optional Type Length Value objects()variable,可选类型长度值对象变量。
图4a示出的是未压缩的完整的SID,本申请实施例中,Segment List也可以携带压缩后的SID。
本申请实施例中,可以利用第一SRH的Flags字段的1个比特承载指示信息,例如,如图4b所示,图4b为图4a中Flags字段的示例性示意图,本申请实施例可以占用Flags字段的第3个比特位承载指示信息,该指示信息具体可以为主动检测标志(Active Detection Flag,AD Flag),AD Flag标识第一报文为主动探测报文。
可选的,若AD Flag被置位,即AD Flag的取值为1,则表示第一SRH携带指示信息;若AD未被置位,即AD Flag的取值为0,则表示第一SRH未携带指示信息。
在本申请另一实施例中,网络设备与服务功能节点连接,也就是说,网络设备为SFF节点,如图5所示,该方法包括以下步骤:
S501、接收第一报文,第一报文包括目的地址以及第一SRH,第一SRH包括SID列表,SID列表指示转发路径。
其中,S501与S301相同,可参考S301中的描述,此处不赘述。
S502、若目的地址为本地配置的SID且第一SRH包括指示信息,则获取网络设备与服务功能节点之间链路的链路状态。
在一种实现方式中,网络设备可以实时监测与服务功能节点的之间的链路状态,并在数据平面记录链路状态,如此,网络设备可以从数据平面获取网络设备与服务功能节点之间链路的链路状态。
其中,若服务功能节点故障和/或网络设备与服务功能节点之间链路存在故障,则链路状态为不可达;
若服务功能节点未故障,且网络设备与服务功能节点之间链路未故障,则链路状态为可达。
网络设备可以通过本地与服务功能节点连接的接口的接口状态,确定网络设备与服务功能节点之间链路是否存在故障。当接口状态异常时,确定网络设备与服务功能节点之间链路存在故障;当接口状态正常时,确定网络设备与服务功能节点之间链路未故障。网络设备还可以通过相关技术的其他方法确定与服务功能节点之间的链路状态,对此本申请实施例不作限定。
另一种实现方式中,若网络设备确定服务功能节点故障和/或网络设备与服务功能节点之间链路故障,则将网络设备与服务功能节点之间的转发开关设置为关闭;若服务功能节点未故障,且网络设备与服务功能节点之间链路未故障,则将网络设备与服务功能节点之间的转发开关设置为打开。
进而,若网络设备确定转发开关为打开的状态,则确定链路状态为可达;若确定转发开关为关闭的状态,则确定链路状态不可达。
S503、若链路状态为不可达,则丢弃第一报文。
可以理解的是,在第一报文被丢弃的情况下,头节点无法接收到第一报 文的响应报文,则可以在探测超时时,确定第一报文的转发路径存在故障,并将转发路径切换到备用路径。
S504、若链路状态为可达,则在转发路径上发送第一报文。
其中,本步骤中的在转发路径上发送第一报文,与S302中在转发路径上发送第一报文相同,可参考S302中的相关描述,此处不赘述。
采用本申请实施例,在网络设备与服务功能节点连接的情况下,网络设备获取与服务功能节点之间链路的链路状态,若链路状态不可达,则丢弃第一报文,如此,如果网络设备与服务功能节点之间的链路不可达,头节点可以及时发现链路故障并切换到其他转发路径,可以提高服务链功能的可靠性。
在一种场景中,网络设备为SFF节点,上述S302、若目的地址为本地配置的SID且第一SRH包括指示信息,则在转发路径上发送第一报文,具体可以实现为:
若目的地址为本地配置的代理SID且第一SRH包括指示信息,则向SID列表中下一个SID指示的网络设备转发第一报文。
其中,代理SID可以为End.AS SID、End.AD SID或者End.AM SID。
若目的地址为本地配置的代理SID,则说明网络设备为SFF节点,网络设备确定第一SRH包括指示信息,可确定第一报文为探测报文,进而不向SF节点转发第一报文,可向SID列表中下一个SID指示的网络设备转发第一报文。其中,下一个SID可以为普通的endpoint节点,也可以为SFF节点,本申请实施例对此不作限定。
在另一种场景中,第一SRH的SID列表中可能包括BSID,上述S302、若目的地址为本地配置的SID且第一SRH包括指示信息,则在转发路径上发送第一报文,具体可以实现为:
若目的地址为本地配置的BSID且第一SRH包括指示信息,则在第一报文的外层封装包括指示信息的第二SRH,在第二SRH包括的SID列表指示的转发路径上,发送包括第二SRH的第一报文。
其中,若目的地址为本地配置的BSID,则网络设备会为第一报文再封装一层IPv6头和第二SRH,第二SRH也包括一个SID列表,后续第一报文将在第二SRH包括的SID列表上转发。第二SRH中指示信息的位置与第一SRH指示信息的位置相同,此处不再赘述。
本申请实施例在第二SRH中也封装指示信息,进而第二SRH包括的SID列表指示的转发路径上的网络设备也可以基于该指示信息识别出包括第二SRH的第一报文为探测报文,从而避免网络设备将包括第二SRH的第一报文发送到服务功能节点,而导致头节点错误切换路径的问题,实现了SRv6服务链主备路径的可靠性保护。
以下结合具体例子进行说明,图6为第一报文跨域转发场景的示例性示意图,如图6所示,转发路径跨越了第一自治系统(Autonomous System,AS) 和第二AS。其中,第一AS中包括P1和P2,第二AS中包括P3、P4、P5和PE2,P4与SF1连接。
头节点可以生成第一报文,第一报文的第一SRH包括的SID列表为:P1.SID,P2.SID,P3.SID,PE2.SID,其中,P3.SID为BSID。
P3接收到第一报文后,确定第一报文的目的地址为P3.SID,是本地配置的BSID,且第一报文的第一SRH包括指示信息,则P3在第一报文的外层封装第二SRH和IPv6头,第二SRH中的SID列表为:P4.SID,P5.SID,第二SRH中包括指示信息。之后,P3可以基于第二SRH中的SID列表向P4发送第一报文。
P4接收到第一报文后,识别到第一报文的目的地址为本地配置的代理SID,且第二SRH中包括指示信息,则可不向SF1发送该第一报文,而是继续向P5转发第一报文,从而避免因SF1无法处理第一报文导致头节点错误切换路径的问题。
基于相同的发明构思,本申请实施例还提供了一种报文发送方法,该方法应用于头节点,如图7示,该方法包括:
S701、生成第一报文,第一报文包括目的地址以及第一段路由头SRH,第一SRH包括SID列表和指示信息,SID列表指示转发路径,指示信息用于指示第一报文为探测报文。
第一报文的目的地址为第一报文的IPv6头中的目的地址。
S702、在转发路径上发送第一报文。
若头节点在预设时长内未接收到第一报文的响应报文,则切换至备份转发路径,后续通过备份转发路径转发报文。
其中,在第一报文为BFD的情况下,第一报文的响应报文可以为BFD回声报文。
采用本申请实施例,第二网络设备通过生成第一报文,并在转发路径上发送第一报文,第一报文包括指示信息,该指示信息用于指示第一报文为探测报文,使得网络设备接收到第一报文后,可以基于指示信息确定第一报文为探测报文,进而不会将第一报文转发到服务功能节点。如此就可以避免服务功能节点将第一报文丢弃,从而避免因服务功能节点丢弃用于探测路径的报文而导致头节点错误切换路径的问题。
本申请实施例中,第一SRH包括flags字段,flags字段内的1个比特位承载指示信息,第一SRH的结构可参考上述实施例中的相关描述,此处不再赘述。
基于相同的发明构思,本申请实施例还提供了一种报文转发装置,该装置应用于网络设备,如图8所示,该装置包括:
接收模块801,用于接收第一报文,第一报文包括目的地址以及第一段路由头SRH,第一SRH包括SID列表,SID列表指示转发路径;
发送模块802,用于若目的地址为本地配置的SID且第一SRH包括指示信息,则在转发路径上发送第一报文,指示信息用于指示第一报文为探测报文。
可选的,网络设备与服务功能节点连接;该装置还包括:获取模块和丢弃模块;
获取模块,用于获取网络设备与服务功能节点之间链路的链路状态;
丢弃模块,用于若获取模块获取到的链路状态为不可达,则丢弃第一报文;
发送模块802,具体用于若获取模块获取到的链路状态为可达,则在转发路径上发送第一报文。
可选的,获取模块,具体用于:
从数据平面获取网络设备与服务功能节点之间链路的链路状态;
其中,若服务功能节点故障和/或网络设备与服务功能节点之间链路存在故障,则链路状态为不可达;
若服务功能节点未故障,且网络设备与服务功能节点之间链路未故障,则链路状态为可达。
可选的,第一SRH包括标记位flags字段,flags字段内的1个比特位承载指示信息。
可选的,发送模块802,具体用于:
若目的地址为本地配置的代理SID且第一SRH包括指示信息,则向SID列表中下一个SID指示的网络设备转发第一报文;或者,
若目的地址为本地配置的绑定段标识BSID且第一SRH包括指示信息,则在第一报文的外层封装包括指示信息的第二SRH,在第二SRH包括的SID列表指示的转发路径上,发送包括第二SRH的第一报文。
本申请实施例还提供了一种报文转发装置,该装置应用于头节点,如图9所示,该装置包括:
生成模块901,用于生成第一报文,第一报文包括目的地址以及第一段路由头SRH,第一SRH包括SID列表和指示信息,SID列表指示转发路径,指示信息用于指示第一报文为探测报文;
发送模块902,用于在转发路径上发送第一报文。
可选的,该装置还包括:切换模块;
切换模块,用于若在预设时长内未接收到第一报文的响应报文,则切换至备份转发路径。
可选的,第一SRH包括标记位flags字段,flags字段内的1个比特位承载指示信息。
本申请实施例还提供了一种网络设备,如图10所示,该网络设备包括:
处理器1001;
收发器1004;
机器可读存储介质1002,机器可读存储介质1002存储有能够被处理器1001执行的机器可执行指令;机器可执行指令促使处理器1001执行以下步骤:
通过收发器1004接收第一报文,第一报文包括目的地址以及第一段路由头SRH,第一SRH包括SID列表,SID列表指示转发路径;
若目的地址为本地配置的SID且第一SRH包括指示信息,则在转发路径上通过收发器1004发送第一报文,指示信息用于指示第一报文为探测报文。
可选的,网络设备与服务功能节点连接;
机器可执行指令还促使处理器1001执行以下步骤:
获取网络设备与服务功能节点之间链路的链路状态;
若链路状态为不可达,则丢弃第一报文;
若链路状态为可达,则在转发路径上发送第一报文。
可选的,机器可执行指令还促使处理器1001执行以下步骤:
从数据平面获取网络设备与服务功能节点之间链路的链路状态;
其中,若服务功能节点故障和/或网络设备与服务功能节点之间链路存在故障,则链路状态为不可达;
若服务功能节点未故障,且网络设备与服务功能节点之间链路未故障,则链路状态为可达。
可选的,第一SRH包括标记位flags字段,flags字段内的1个比特位承载指示信息。
可选的,机器可执行指令还促使处理器1001执行以下步骤:
若目的地址为本地配置的代理SID且第一SRH包括指示信息,则通过收发器1004向SID列表中下一个SID指示的网络设备转发第一报文;或者,
若目的地址为本地配置的绑定段标识BSID且第一SRH包括指示信息,则在第一报文的外层封装包括指示信息的第二SRH,在第二SRH包括的SID列表指示的转发路径上,通过收发器1004发送包括第二SRH的第一报文。
如图10所示,网络设备还可以包括通信总线1003。处理器1001、机器可读存储介质1002及收发器1004之间通过通信总线1003完成相互间的通信,通信总线1003可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线1003可以分为地址总线、数据总线、控制总线等。
收发器1004可以为无线通信模块,收发器1004在处理器1001的控制下,与其他设备进行数据交互。
机器可读存储介质1002可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。另外,机器可读存储介质1002还可以是至少一个位于远离前述处理器的存储装置。
处理器1001可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
本申请实施例还提供了一种头节点,如图11所示,该头节点包括:
处理器1101;
收发器1104;
机器可读存储介质1102,机器可读存储介质1102存储有能够被处理器1101执行的机器可执行指令;机器可执行指令促使处理器1101执行以下步骤:
生成第一报文,第一报文包括目的地址以及第一段路由头SRH,第一SRH包括SID列表和指示信息,SID列表指示转发路径,指示信息用于指示第一报文为探测报文;
通过收发器1104在转发路径上发送第一报文。
可选的,机器可执行指令还促使处理器1101执行以下步骤:
若在预设时长内未接收到第一报文的响应报文,则切换至备份转发路径。
可选的,第一SRH包括标记位flags字段,flags字段内的1个比特位承载指示信息。
如图11所示,头节点还可以包括通信总线1103。处理器1101、机器可读存储介质1102及收发器1104之间通过通信总线1103完成相互间的通信,通信总线1103可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线1103可以分为地址总线、数据总线、控制总线等。
收发器1104可以为无线通信模块,收发器1104在处理器1101的控制下,与其他设备进行数据交互。
机器可读存储介质1102可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。另外,机器可读存储介质1102还可以是至少一个位于远离前述处理器的存储装置。
处理器1101可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
基于同一种发明构思,根据上述本申请实施例提供的报文转发方法,本申请实施例还提供了一种机器可读存储介质,机器可读存储介质存储有能够被处理器执行的机器可执行指令。处理器被机器可执行指令促使实现上述任 一报文转发方法的步骤。
在本申请提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任报文转发方法的步骤。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (26)

  1. 一种报文转发方法,其特征在于,所述方法应用于网络设备,所述方法包括:
    接收第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括段标识SID列表,所述SID列表指示转发路径;
    若所述目的地址为本地配置的SID且所述第一SRH包括指示信息,则在所述转发路径上发送所述第一报文,所述指示信息用于指示所述第一报文为探测报文。
  2. 根据权利要求1所述的方法,其特征在于,所述网络设备与服务功能节点连接;
    在所述转发路径上发送所述第一报文之前,所述方法还包括:
    获取所述网络设备与所述服务功能节点之间链路的链路状态;
    若所述链路状态为不可达,则丢弃所述第一报文;
    若所述链路状态为可达,则在所述转发路径上发送所述第一报文。
  3. 根据权利要求2所述的方法,其特征在于,所述获取所述网络设备与所述服务功能节点之间链路的链路状态,具体包括:
    从数据平面获取所述网络设备与所述服务功能节点之间链路的链路状态;
    其中,若所述服务功能节点故障和/或所述网络设备与所述服务功能节点之间链路存在故障,则所述链路状态为不可达;
    若所述服务功能节点未故障,且所述网络设备与所述服务功能节点之间链路未故障,则所述链路状态为可达。
  4. 根据权利要求1所述的方法,其特征在于,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,若所述目的地址为本地配置的SID且所述第一SRH包括指示信息,则在所述转发路径上发送所述第一报文,具体包括:
    若所述目的地址为本地配置的代理SID且所述第一SRH包括所述指示信息,则向所述SID列表中下一个SID指示的网络设备转发所述第一报文;或者,
    若所述目的地址为本地配置的绑定段标识BSID且所述第一SRH包括所述指示信息,则在所述第一报文的外层封装包括所述指示信息的第二SRH,在所述第二SRH包括的SID列表指示的转发路径上,发送包括所述第二SRH的第一报文。
  6. 一种报文转发方法,其特征在于,所述方法应用于头节点,所述方法包括:
    生成第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表和指示信息,所述SID列表指示转发路径,所述指 示信息用于指示所述第一报文为探测报文;
    在所述转发路径上发送所述第一报文。
  7. 根据权利要求6所述的方法,其特征在于,所述在所述转发路径上发送所述第一报文之后,所述方法还包括:
    若在预设时长内未接收到所述第一报文的响应报文,则切换至备份转发路径。
  8. 根据权利要求6所述的方法,其特征在于,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
  9. 一种报文转发装置,其特征在于,所述装置应用于网络设备,所述装置包括:
    接收模块,用于接收第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表,所述SID列表指示转发路径;
    发送模块,用于若所述目的地址为本地配置的SID且所述第一SRH包括指示信息,则在所述转发路径上发送所述第一报文,所述指示信息用于指示所述第一报文为探测报文。
  10. 根据权利要求9所述的装置,其特征在于,所述网络设备与服务功能节点连接;所述装置还包括:获取模块和丢弃模块;
    所述获取模块,用于获取所述网络设备与所述服务功能节点之间链路的链路状态;
    所述丢弃模块,用于若所述获取模块获取到的所述链路状态为不可达,则丢弃所述第一报文;
    所述发送模块,具体用于若所述获取模块获取到的所述链路状态为可达,则在所述转发路径上发送所述第一报文。
  11. 根据权利要求10所述的装置,其特征在于,所述获取模块,具体用于:
    从数据平面获取所述网络设备与所述服务功能节点之间链路的链路状态;
    其中,若所述服务功能节点故障和/或所述网络设备与所述服务功能节点之间链路存在故障,则所述链路状态为不可达;
    若所述服务功能节点未故障,且所述网络设备与所述服务功能节点之间链路未故障,则所述链路状态为可达。
  12. 根据权利要求9所述的装置,其特征在于,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
  13. 根据权利要求9-12任一项所述的装置,其特征在于,所述发送模块,具体用于:
    若所述目的地址为本地配置的代理SID且所述第一SRH包括所述指示信息,则向所述SID列表中下一个SID指示的网络设备转发所述第一报文;或者,
    若所述目的地址为本地配置的绑定段标识BSID且所述第一SRH包括所述指示信息,则在所述第一报文的外层封装包括所述指示信息的第二SRH,在所述第二SRH包括的SID列表指示的转发路径上,发送包括所述第二SRH的第一报文。
  14. 一种报文转发装置,其特征在于,所述装置应用于头节点,所述装置包括:
    生成模块,用于生成第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表和指示信息,所述SID列表指示转发路径,所述指示信息用于指示所述第一报文为探测报文;
    发送模块,用于在所述转发路径上发送所述第一报文。
  15. 根据权利要求14所述的装置,其特征在于,所述装置还包括:切换模块;
    所述切换模块,用于若在预设时长内未接收到所述第一报文的响应报文,则切换至备份转发路径。
  16. 根据权利要求14所述的装置,其特征在于,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
  17. 一种网络设备,其特征在于,所述网络设备包括:
    处理器;
    收发器;
    机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;所述机器可执行指令促使所述处理器执行以下步骤:
    通过所述收发器接收第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表,所述SID列表指示转发路径;
    若所述目的地址为本地配置的SID且所述第一SRH包括指示信息,则在所述转发路径上通过所述收发器发送所述第一报文,所述指示信息用于指示所述第一报文为探测报文。
  18. 根据权利要求17所述的网络设备,其特征在于,所述网络设备与服务功能节点连接;
    所述机器可执行指令还促使所述处理器执行以下步骤:
    获取所述网络设备与所述服务功能节点之间链路的链路状态;
    若所述链路状态为不可达,则丢弃所述第一报文;
    若所述链路状态为可达,则在所述转发路径上发送所述第一报文。
  19. 根据权利要求18所述的网络设备,其特征在于,所述机器可执行指令还促使所述处理器执行以下步骤:
    从数据平面获取所述网络设备与所述服务功能节点之间链路的链路状态;
    其中,若所述服务功能节点故障和/或所述网络设备与所述服务功能节点之间链路存在故障,则所述链路状态为不可达;
    若所述服务功能节点未故障,且所述网络设备与所述服务功能节点之间链路未故障,则所述链路状态为可达。
  20. 根据权利要求17所述的网络设备,其特征在于,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
  21. 根据权利要求17-20任一项所述的网络设备,其特征在于,所述机器可执行指令还促使所述处理器执行以下步骤:
    若所述目的地址为本地配置的代理SID且所述第一SRH包括所述指示信息,则通过所述收发器向所述SID列表中下一个SID指示的网络设备转发所述第一报文;或者,
    若所述目的地址为本地配置的绑定段标识BSID且所述第一SRH包括所述指示信息,则在所述第一报文的外层封装包括所述指示信息的第二SRH,在所述第二SRH包括的SID列表指示的转发路径上,通过所述收发器发送包括所述第二SRH的第一报文。
  22. 一种头节点,其特征在于,所述头节点包括:
    处理器;
    收发器;
    机器可读存储介质,所述机器可读存储介质存储有能够被所述处理器执行的机器可执行指令;所述机器可执行指令促使所述处理器执行以下步骤:
    生成第一报文,所述第一报文包括目的地址以及第一段路由头SRH,所述第一SRH包括SID列表和指示信息,所述SID列表指示转发路径,所述指示信息用于指示所述第一报文为探测报文;
    通过所述收发器在所述转发路径上发送所述第一报文。
  23. 根据权利要求22所述的头节点,其特征在于,所述机器可执行指令还促使所述处理器执行以下步骤:
    若在预设时长内未接收到所述第一报文的响应报文,则切换至备份转发路径。
  24. 根据权利要求22所述的头节点,其特征在于,所述第一SRH包括标记位flags字段,所述flags字段内的1个比特位承载所述指示信息。
  25. 一种机器可读存储介质,其特征在于,存储有机器可执行指令,在被处理器调用和执行时,所述机器可执行指令促使所述处理器:实现权利要求1-5或6-8任一所述的方法步骤。
  26. 一种计算机程序产品,其特征在于,所述计算机程序产品促使所述处理器:实现权利要求1-5或6-8任一所述的方法步骤。
PCT/CN2022/101724 2022-06-28 2022-06-28 报文转发 WO2024000139A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/CN2022/101724 WO2024000139A1 (zh) 2022-06-28 2022-06-28 报文转发
EP22948262.5A EP4425851A1 (en) 2022-06-28 2022-06-28 Packet forwarding
CN202280001943.9A CN117643020A (zh) 2022-06-28 2022-06-28 报文转发

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/101724 WO2024000139A1 (zh) 2022-06-28 2022-06-28 报文转发

Publications (1)

Publication Number Publication Date
WO2024000139A1 true WO2024000139A1 (zh) 2024-01-04

Family

ID=89383694

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/101724 WO2024000139A1 (zh) 2022-06-28 2022-06-28 报文转发

Country Status (3)

Country Link
EP (1) EP4425851A1 (zh)
CN (1) CN117643020A (zh)
WO (1) WO2024000139A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768788A (zh) * 2018-06-26 2018-11-06 新华三技术有限公司合肥分公司 路径故障检测方法及装置
CN110971433A (zh) * 2018-09-29 2020-04-07 华为技术有限公司 获取SRv6隧道信息的方法、设备和系统
CN113595897A (zh) * 2021-08-13 2021-11-02 新华三信息安全技术有限公司 一种路径探测方法及装置
CN114257494A (zh) * 2020-09-21 2022-03-29 华为技术有限公司 一种实现业务路径检测的方法、设备和系统
WO2022119749A1 (en) * 2020-12-01 2022-06-09 Cisco Technology, Inc. Telemetry data optimization for path tracing and delay measurement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768788A (zh) * 2018-06-26 2018-11-06 新华三技术有限公司合肥分公司 路径故障检测方法及装置
CN110971433A (zh) * 2018-09-29 2020-04-07 华为技术有限公司 获取SRv6隧道信息的方法、设备和系统
CN114257494A (zh) * 2020-09-21 2022-03-29 华为技术有限公司 一种实现业务路径检测的方法、设备和系统
WO2022119749A1 (en) * 2020-12-01 2022-06-09 Cisco Technology, Inc. Telemetry data optimization for path tracing and delay measurement
CN113595897A (zh) * 2021-08-13 2021-11-02 新华三信息安全技术有限公司 一种路径探测方法及装置

Also Published As

Publication number Publication date
CN117643020A (zh) 2024-03-01
EP4425851A1 (en) 2024-09-04

Similar Documents

Publication Publication Date Title
US11979322B2 (en) Method and apparatus for providing service for traffic flow
US10862793B2 (en) Centralized error telemetry using segment routing header tunneling
JP5345942B2 (ja) Pbtネットワークの中間ノードにおけるイーサネットoam
JP4640128B2 (ja) 応答通信機器及びarp応答通信機器
CN109787878B (zh) 一种隧道链路检测方法及相关设备
JP7252265B2 (ja) ネットワーク通信方法及び装置
US10972381B2 (en) Network operations reactive to operations data included in seamless bidirectional forwarding detection (S-BFD) packets
CN113950811B (zh) 扩展bgp保护以用于sr路径入口保护
CN115037675B (zh) 一种报文转发方法及装置
US20070115838A1 (en) Method and system for loop-back and continue in packet-based network
JPWO2011052729A1 (ja) パケット中継装置、パケット中継方法およびプログラム
WO2021027420A1 (zh) 用于数据传输的方法和装置
CN113810288A (zh) 一种报文回程方法及装置
WO2024000137A1 (zh) 报文处理
WO2024000140A1 (zh) 报文发送
WO2024000139A1 (zh) 报文转发
CN116057911A (zh) 使用多协议标签交换的服务功能链中的负载均衡和oam
CN112737889B (zh) 流量处理方法、流量监控方法、装置、系统及存储介质
EP4425840A1 (en) Node protection method and apparatus, electrical device, and medium
WO2022135321A1 (zh) 报文传输方法、设备及系统
WO2023030202A1 (zh) 路径故障检测方法、装置、系统、网络设备及存储介质
US20240223496A1 (en) Packet transmission method, apparatus, and system, network device, and storage medium
EP4145797A1 (en) Fault detection method and apparatus, and pe device
CN117643037A (zh) 报文发送
CN111614564A (zh) 互联网协议操作和管理选项

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022948262

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022948262

Country of ref document: EP

Effective date: 20240530