摘要:
Embodiments of the present invention disclose a packet processing method, including: obtaining, by a first network node, a format of a segment identifier of a second network node, where the format is used to describe a location and a length of each field in the segment identifier of the second network node, and the segment identifier of the second network node includes a first field; determining, by the first network node, a value of the first field in the segment identifier of the second network node based on a segment routing policy and the format of the segment identifier of the second network node, and adding the determined value of the first field to a second packet sent to the second network node, where the determined value of the first field is used to indicate the second network node to process the second packet. In the embodiments of the present invention, a prior-art problem that a programming capability of a network node is affected because an obtained format of a segment identifier of the network node cannot be displayed can be resolved.
摘要:
Embodiments of this application provide a bit-forwarding ingress router, a bit-forwarding router, and an OAM test method, and pertain to the field of multicast networks. A first BFR receives an OAM request packet from a BFIR; the first BFR determines, according to the OAM request packet, that a destination BFR corresponding to the OAM request packet is the first BFR; and the first BFR obtains a first OAM response packet according to an ID of the BFIR, and sends the first OAM response packet to the BFIR. According to the method and the apparatus that are provided in the embodiments of this application, a problem that a BFIR cannot diagnose or handle a transmission fault when the fault occurs during transmission of a multicast packet can be resolved, which helps implement connectivity testing by using an OAM packet and enables testing of multiple BFERs.
摘要:
Embodiments of the present invention disclose a method for forwarding a packet, and a network device. The method includes: receiving, by a first network device, a first packet, where the first packet includes first indication information, payload data, and a packet sequence number of the first packet in a data flow corresponding to the first packet; when the first network device determines that the first packet includes the first indication information, generating, by the first network device, a plurality of second packets based on the first packet, where each of the plurality of second packets includes the payload data, the packet sequence number, and second indication information; and separately forwarding, by the first network device, the plurality of second packets to a second network device over different forwarding paths in a plurality of forwarding paths, where the second indication information is used to instruct the second network device to discard a packet in the plurality of second packets except a packet that first reaches the second network device. According to the embodiments of the present invention, reliability of packet forwarding can be improved.
摘要:
This application provides a route generation method, applied to an SRv6 network and including: receiving, by a first network device, a first notification packet from a second network device; where the first notification packet includes a network slice identifier, the first notification packet indicates an association relationship between information of the network slice identifier and an IPv6 address prefix of the second network device, and the network slice identifier is used to identify one network slice; and generating, by the first network device, a route forwarding entry for the IPv6 address prefix of the second network device based on an association relationship between the network slice identifier and the IPv6 address prefix of the second network device. This helps implement a network slice and resource isolation in the SRv6.
摘要:
This application provides a multicast data packet processing method and a forwarding device. The method includes: establishing, by a first forwarding device, a segment routing header SRH-based tunnel with a third forwarding device, where the SRH-based tunnel passes through a second forwarding device that does not support bit index explicit replication BIER; generating, by the first forwarding device, a first multicast data packet based on a multicast data packet from a multicast source and the SRH-based tunnel, where the first multicast data packet includes a first packet header, a second packet header, and the multicast data packet from the multicast source, the first packet header includes an SRH header, and a destination address included in the second packet header is an address of the second forwarding device; and sending, by the first forwarding device, the first multicast data packet to the second forwarding device through the SRH-based tunnel.
摘要:
This application provides a method and an apparatus for transmitting a service flow based on flexible Ethernet FlexE. The flexible Ethernet includes a first network device and a second network device, and the first network device and the second network device transmit the service flow by using a first FlexE group. The method includes: sending, by the first network device, a first FlexE overhead frame to the second network device, where the first FlexE overhead frame includes FlexE group adjustment identification information and PHY information of a physical layer PHY included in a second FlexE group; receiving, by the first network device, a second FlexE overhead frame sent by the second network device, where the second FlexE overhead frame includes FlexE group adjustment acknowledgment identification information; adjusting, by the first network device, the first FlexE group to the second FlexE group; and sending, by the first network device, the service flow to the second network device based on the second FlexE group, to dynamically adjust a FlexE group.
摘要:
Embodiments of the present invention disclose a method for forwarding a packet, and a network device. The method includes: receiving, by a first network device, a first packet, where the first packet includes first indication information, payload data, and a packet sequence number of the first packet in a data flow corresponding to the first packet; when the first network device determines that the first packet includes the first indication information, generating, by the first network device, a plurality of second packets based on the first packet, where each of the plurality of second packets includes the payload data, the packet sequence number, and second indication information; and separately forwarding, by the first network device, the plurality of second packets to a second network device over different forwarding paths in a plurality of forwarding paths, where the second indication information is used to instruct the second network device to discard a packet in the plurality of second packets except a packet that first reaches the second network device. According to the embodiments of the present invention, reliability of packet forwarding can be improved.
摘要:
Embodiments of this application provide a bit-forwarding ingress router, a bit-forwarding router, and an OAM test method, and pertain to the field of multicast networks. A first BFR receives an OAM request packet from a BFIR; the first BFR determines, according to the OAM request packet, that a destination BFR corresponding to the OAM request packet is the first BFR; and the first BFR obtains a first OAM response packet according to an ID of the BFIR, and sends the first OAM response packet to the BFIR. According to the method and the apparatus that are provided in the embodiments of this application, a problem that a BFIR cannot diagnose or handle a transmission fault when the fault occurs during transmission of a multicast packet can be resolved, which helps implement connectivity testing by using an OAM packet and enables testing of multiple BFERs.