Packet transmission method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorsXiangfeng Ding, Haibo Wang, Lei Li, Lili Wang
Life of this patent
Estimating the term…
Abstract
A packet transmission method includes, obtaining one or more control items, a first network device determines, based on a fact that a device identifier included in a first packet to which each control item belongs is a device identifier of a second network device, a target control item to be sent to the second network device. The first network device sends at least one second packet comprising the target control item to the second network device, where the target control item is located in the at least one second packet, and the second packet includes the device identifier of the second network device.
Claims14
A method implemented by a first network device which is a first route reflection device, the method comprising:
- obtaining at least one first control item from at least one first packet, wherein the at least one first packet each comprises a first device identifier indicating an intended recipient of the at least one first control item, wherein the at least one first control item is a flow specification flowspec), a segment routing (SR) policy, or a route policy distribution (RPD);
- determining that the first device identifier matches a second device identifier of a second network device, wherein the second device identifier is a router identifier (Router-ID);
- determining, in response to the first device identifier matching the second device identifier, at least one target control item to be sent to the second network device, wherein the at least one target control item is one or more of the at least one first control item;
- and
- sending, to the second network device, at least one Border Gateway Protocol (BGP) packet comprising the at least one target control item and the second device identifier.
A first route reflection device comprising:
- a memory configured to store instructions;
- and
- a processor coupled to the memory and configured to execute the instructions to cause the first route reflection device to:
- obtain at least one first control item from at least one first packet, wherein the at least one first packet each comprises a first device identifier indicating an intended recipient of the at least one first control item, wherein the at least one first control item is a flow specification (flowspec), a segment routing (SR) policy, or a route policy distribution (RPD);
- determine that the first device identifier matches a second device identifier of a second network device, wherein the second device identifier is a router identifier (Router-ID);
- determine, in response to the first device identifier matching the second device identifier, at least one target control item to be sent to the second network device, wherein the at least one target control item is one or more of the at least one first control item;
- and
- send, to the second network device, at least one Border Gateway Protocol (BGP) packet comprising the target control item and the second device identifier.
A computer-readable storage medium, comprising instructions or a computer program, wherein when the instructions or the computer program is run on a route reflection device, the route reflection device is configured to:
- obtain at least one control item from at least one first packet, wherein the at least one first packet each comprises a first device identifier indicating an intended recipient of the at least one control item, wherein the at least one control item is a flow specification (flowspec), a segment routing (SR) policy, or a route policy distribution (RPD);
- determine that the first device identifier matches a second device identifier of a second network device, wherein the second device identifier is a router identifier (Router-ID);
- determine, in response to the first device identifier matching the second device identifier, at least one target control item to be sent to the second network device, wherein the at least one target control item is one or more of the at least one control item;
- and
- send, to the second network device, at least one Border Gateway Protocol (BGP) packet comprising the at least one target control item and the second device identifier.
Dependencies are inferred from the claim text.