Abstract:
The present application provides a packet sending method and a network device. The packet sending method includes: receiving, by a network device, a first data packet; and if a MAC entry matching a destination MAC address of the first data packet is not found in a media access control MAC address table of the network device, sending, by the network device, the first data packet according to a forwarding behavior in a MAC default entry of the MAC address table. When the MAC entry matching the destination MAC address of the first data packet is not found, the network device does not need to flood the first data packet on all interfaces, but directly sends the first data packet according to the MAC default entry in the own MAC address table, thereby reducing a need for MAC address capacity in the network device, and not increasing unnecessary network traffic.
Abstract:
Embodiments of this application provide a method for obtaining path information and an apparatus, relate to the communications field, and can accurately obtain a forwarding path for detecting a service packet. A service packet is obtained, where the service packet is a target service packet or an updated target service packet, the target service packet is a service packet that matches a flow rule, and the flow rules used to obtain the service packet that matches the flow rule; an ingress interface information field and/or an egress interface information field is/are generated according to a path detection tag on an ingress interface and/or an egress interface through which the service packet passes. The method is used to obtain path information of the service packet.
Abstract:
The present disclosure discloses a method for processing a host route in a virtual subnet, a related device and a communications system. The method includes: receiving, by a first provider edge device, a packet for address resolution, where a virtual subnet site in which the first provider edge device is located further includes at least one second provider edge device; determining, by the first provider edge device, whether a source MAC address carried in the packet is a virtual MAC address; and when it is determined that the source MAC address is a virtual MAC address, skipping performing at least one of the following operations: saving a local CE host routing table entry corresponding to a source IP address carried in the packet, or distributing, in the virtual subnet based on a routing protocol of a layer 3 VPN, a local CE host route corresponding to the IP address.
Abstract:
A method and an apparatus for forwarding an MPLS data packet are provided, which are used in an environment of hybrid networking of an SR network and a non-SR network. The method includes: when obtaining a to-be-sent MPLS data packet, a first SR router in an SR network determines whether a next-hop router supports an SR characteristic; the first SR router encapsulates the MPLS data packet into an IP tunnel when determining that the next-hop router does not support the SR characteristic, and sends an encapsulated MPLS data packet to the next-hop router to enable the encapsulated MPLS data packet to be forwarded, based on an IP routing table, to a second SR router. According to the application, correct forwarding of an MPLS data packet is completed in an environment of hybrid networking of an SR router and a non-SR router.
Abstract:
The present application discloses a service data packet encapsulation method and apparatus. The method includes at least: obtaining, by a source communications device, a mobility support parameter of a current service, where the mobility support parameter is used to indicate whether a corresponding service requires mobility support, and the source communications device includes at least an ID identifier layer and a locator layer; determining, by the source communications device based on the mobility support parameter of the current service, whether the current service requires mobility support; and obtaining, by the source communications device, a source locator of the source communications device and a destination locator of a destination communications device when determining that the current service does not require mobility support, and performing, by using the source locator and the destination locator, locator layer encapsulation on a data packet that needs to be sent by the current service.
Abstract:
The application discloses a method and an apparatus for forwarding an MPLS data packet, which are used in an environment of hybrid networking of an SR network and a non-SR network. The method is as follows: when obtaining a to-be-sent MPLS data packet, a first SR router in an SR network determines whether a next-hop router supports an SR characteristic; the first SR router encapsulates the MPLS data packet into an IP tunnel when determining that the next-hop router does not support the SR characteristic, and sends an encapsulated MPLS data packet to the next-hop router to enable the encapsulated MPLS data packet to be forwarded, based on an IP routing table, to a second SR router. In this way, correct forwarding of an MPLS data packet is completed in an environment of hybrid networking of an SR router and a non-SR router.
Abstract:
The present invention provides a packet sending method and a network device. The packet sending method includes: receiving, by a network device, a first data packet; and if a MAC entry matching a destination MAC address of the first data packet is not found in a media access control MAC address table of the network device, sending, by the network device, the first data packet according to a forwarding behavior in a MAC default entry of the MAC address table. When the MAC entry matching the destination MAC address of the first data packet is not found, the network device does not need to flood the first data packet on all interfaces, but directly sends the first data packet according to the MAC default entry in the own MAC address table, thereby reducing a need for MAC address capacity in the network device, and not increasing unnecessary network traffic.
Abstract:
Embodiments of the present disclosure disclose a handover method and an apparatus, so as to reduce a handover delay in a process of handing over an MN from a previous access network to a new access network. The method includes: sending, by the MN, first instruction information to a NAR by using a PAR, where the first instruction information is used to instruct the NAR to construct a care-of test initialization message and send the care-of test initialization message to a CN, and the care-of test initialization message includes an NCoA of the MN and is used to request a care-of keygen token from the CN based on the NCoA; handing over the MN from the PAR to the NAR; receiving, by the MN, the care-of keygen token sent by the NAR from the CN; and binding the MN with the CN based on the care-of keygen token.
Abstract:
The application discloses a method and an apparatus for forwarding an MPLS data packet, which are used in an environment of hybrid networking of an SR network and a non-SR network. The method is as follows: when obtaining a to-be-sent MPLS data packet, a first SR router in an SR network determines whether a next-hop router supports an SR characteristic; the first SR router encapsulates the MPLS data packet into an IP tunnel when determining that the next-hop router does not support the SR characteristic, and sends an encapsulated MPLS data packet to the next-hop router to enable the encapsulated MPLS data packet to be forwarded, based on an IP routing table, to a second SR router. In this way, correct forwarding of an MPLS data packet is completed in an environment of hybrid networking of an SR router and a non-SR router.
Abstract:
Embodiments of this application provide a method for obtaining path information and an apparatus, relate to the communications field, and can accurately obtain a forwarding path for detecting a service packet. A service packet is obtained, where the service packet is a target service packet or an updated target service packet, the target service packet is a service packet that matches a flow rule, and the flow rules used to obtain the service packet that matches the flow rule; an ingress interface information field and/or an egress interface information field is/are generated according to a path detection tag on an ingress interface and/or an egress interface through which the service packet passes. The method is used to obtain path information of the service packet.