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:
Embodiments of the present disclosure provide a method and a device for storing and sending a MAC address entry, and a system. The method includes: sending, by a PE, a first packet to an RR, so that the RR determines a MAC address entry required by the PE according to the first packet, where the RR pre-stores a MAC address table, and the MAC address table includes the required MAC address entry; and receiving, by the PE, a packet which includes the required MAC address entry and is sent by the RR, and storing the required MAC address entry.
Abstract:
Embodiments of the present disclosure provide a method and a device for storing and sending a MAC address entry, and a system. The method includes: sending, by a PE, a first packet to an RR, so that the RR determines a MAC address entry required by the PE according to the first packet, where the RR pre-stores a MAC address table, and the MAC address table includes the required MAC address entry; and receiving, by the PE, a packet which includes the required MAC address entry and is sent by the RR, and storing the required MAC address entry. Through the embodiments of the present disclosure, it may be implemented that the PE stores the MAC address entry according to need.
Abstract:
This application provides a method for implementing a Layer 3 virtual private network (L3VPN) and an apparatus. The method includes receiving, by a first PE, an attachment notification packet sent by a first terminal device, a first site attaches to an L3VPN by using the first PE; a second site attaches to the L3VPN by using a second PE, and a first terminal device attaches to a second site before attaching to the first site. The method also includes obtaining, by the first PE, an IP address of a second terminal device, and the second terminal device attaches to the second Site; and sending, by the first PE, a binding update notification packet to the first terminal device, where the binding update notification packet carries a MAC address of the first PE and the IP address of the second terminal device.
Abstract:
This application discloses a packet processing method and an LSR. The method includes: receiving, by an Ingress LSR of a first MPLS tunnel, a first notification packet that is based on an IGP, where the first notification packet includes an ELC flag, which is used to indicate that the first Egress LSR has ELC; after learning from the first notification packet that the first Egress LSR has ELC, inserting a label into a first packet, to generate a second packet, where the label forms an MPLS label stack, which includes, from bottom to top, a first EL, a first ELI, and a first TL; and sending the second packet to the first Egress LSR through the first MPLS tunnel.
Abstract:
Embodiments of the present disclosure provide a method and a device for storing and sending a MAC address entry, and a system. The method includes: sending, by a PE, a first packet to an RR, so that the RR determines a MAC address entry required by the PE according to the first packet, where the RR pre-stores a MAC address table, and the MAC address table includes the required MAC address entry; and receiving, by the PE, a packet which includes the required MAC address entry and is sent by the RR, and storing the required MAC address entry.
Abstract:
This application discloses a packet processing method and an LSR. The method includes: receiving, by an Ingress LSR of a first MPLS tunnel, a first notification packet that is based on an IGP, where the first notification packet includes an ELC flag, which is used to indicate that the first Egress LSR has ELC; after learning from the first notification packet that the first Egress LSR has ELC, inserting a label into a first packet, to generate a second packet, where the label forms an MPLS label stack, which includes, from bottom to top, a first EL, a first ELI, and a first TL; and sending the second packet to the first Egress LSR through the first MPLS tunnel.
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 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.