Abstract:
A method and network device for distributing Multi-Protocol Label Switching (MPLS) labels are provided by the present invention. The method for distributing the MPLS labels includes: a first device receives a Border Gateway Protocol (BGP) protocol message transmitted from a second device, wherein the BGP protocol message carries a service identifier of the second device; the first device establishes, according to the service identifier of the first device and the service identifier of the second device, a corresponding relationship between the first device and the second device; the first device distributes a MPLS label for the corresponding relationship. The present invention realizes that the MPLS labels are distributed for some type of the specific logical relationship between the two nodes in the BGP protocol, so that the network devices running the BGP protocol can efficiently obtain the MPLS label corresponding to the specific logical relationship.
Abstract:
A route advertisement method, where a second communication apparatus sends a BGP message to a third communication apparatus. The BGP message includes a first routing prefix, a first next-hop address, and a first color attribute. An address segment of the first routing prefix is a first address segment of the second communication apparatus, and the first color attribute indicates a first service intent. The second communication apparatus may further advertise a first SRv6 service route to a first communication apparatus. The first SRv6 service route includes a first SRv6 SID which is an address in the first address segment. The second communication apparatus and the first communication apparatus belong to different domains.
Abstract:
Methods, apparatuses, and computer-readable storage media are provided. An example method includes obtaining, by a first network device, a segment routing (SR) policy, where the SR policy comprises identification information, and the identification information indicates a type of at least one of the SR policy, a candidate path in the SR policy, or a segment list in the candidate path, and determining, by the first network device based on the identification information, a processing behavior corresponding to at least one of the SR policy, the candidate path in the SR policy, or the segment list in the candidate path.
Abstract:
A Segment Routing over Internet Protocol version 6 (SRv6)-based data processing method includes a first network device generating a slice locator, where the slice locator includes a target argument. The slice locator is used to identify an addressable destination address prefix in a slice supported by the first network device, and the target argument is used to indicate that the slice locator is associated with at least two slices supported by the first network device. The first network device sends the slice locator to a second network device, so that the second network device generates, based on the slice locator, at least two target slice locators corresponding to the at least two slices.
Abstract:
This application describes a data transmission method, a network node, and a storage medium for communications technologies. In this application, an underlay segment identifier corresponding to an underlay path is designed, and the underlay segment identifier is advertised, so that a node on a segment routing network can sense the underlay path by using the underlay segment identifier. In this way, when a data packet is transmitted, the data packet can be sent based on an underlay segment identifier carried in the data packet and through an underlay path corresponding to the underlay segment identifier. Therefore, an underlay path through which a data packet is to be transmitted may be specified based on a service requirement, so that different data packets can be transmitted through different underlay paths, thereby improving flexibility and facilitating traffic planning.
Abstract:
A packet transmission method includes: A first network device receives a first data packet; and the first network device updates the first data packet to obtain a second data packet, where the second data packet includes a global identifier; the first network device sends the second data packet to a second network device, where the global identifier is used by the second network device to verify the second data packet based on a correspondence, and the correspondence is a correspondence between the global identifier and an egress port through which the second network device transmits the second data packet.
Abstract:
A packet transmission method, implemented by a first network device includes determining a first master logical interface, where the first master logical interface is associated with a first virtual network identifier and a first sub-logical interface, and the first sub-logical interface is associated with a second virtual network identifier, and receiving an advertisement packet from a second network device through the first master logical interface, where the advertisement packet includes the first virtual network identifier, first internet protocol (IP) information associated with the first virtual network identifier, the second virtual network identifier, and second IP information associated with the second virtual network identifier.
Abstract:
A method for synchronizing topology information in a service function chain (SFC) network, where the SFC network includes at least one classifier (CF) and at least one service function forwarder (SFF). The method includes that a first network element in the at least two routing network elements establishes a Border Gateway Protocol (BGP) connection to at least one second network element other than the first network element in the at least two routing network elements, where the first network element is any one of the at least two routing network elements, and the first network element sends a first BGP update message to the at least one second network element, where the first BGP update message includes topology information of the first network element such that the at least one second network element obtains the topology information of the first network element.
Abstract:
A first network device receives location information sent by a second network device. The location information includes a location identifier used to identify a location of the second network device in a network and a plurality of associated flexible algorithms corresponding to the location identifier. The first network device generates, based on a first flexible algorithm of the plurality of associated flexible algorithms, first routing information to the second network device. The first flexible algorithm corresponds to a first network topology, the first network topology is a network topology in which the first network device is located, and the first routing information is used to send a packet to the second network device in the first network topology. One location identifier corresponds to a plurality of associated flexible algorithms, and routing information in different network topologies is generated based on different associated flexible algorithms.
Abstract:
A forwarding table generation method is provided. The method includes: determining, by a forwarding device, a first timeslot set, where the first timeslot set includes multiple timeslots during which the forwarding device sends, to a first device by using a first flexible Ethernet group, multiple encoded data blocks generated by a physical coding sublayer; determining, by the forwarding device, a second timeslot set, where the second timeslot set includes multiple timeslots during which the forwarding device receives, by using a second FlexE group, the multiple encoded data blocks sent by a second device; and generating, by the forwarding device, a forwarding table, where the forwarding table includes a mapping relationship between the second FlexE group and the multiple timeslots included in the second timeslot set, and between the first FlexE group and the multiple timeslots included in the first timeslot set.