Advertising route
AssigneeNew H3C Technologies Co., Ltd.
InventorsQingyan Yu, Zhi Tan, Yan Chen
Life of this patent
Estimating the term…
Abstract
In an example, when a network device receives a route advertised by a Border Gateway Protocol (BGP) neighbor, the network device distributes the route to hardware thereof, records the route into a linked list of routes to be advertised, and determines a BGP state of the device. If the BGP state indicates waiting to advertise a route, the network device updates the BGP state to advertising a route after a set time length and advertises a route in the linked list of routes to be advertised. If the BGP state indicates advertising a route, the network device advertises a route in the linked list of routes to be advertised.
Claims12
A method of advertising a route, comprising:
- receiving, by a network device, a route advertised by a Border Gateway Protocol (BGP) neighbor;
- distributing, by the network device, the route to hardware of the network device;
- recording, by the network device, the route into a linked list of routes to be advertised;
- determining, by the network device, a BGP state of the network device;
- when the BGP state indicates waiting to advertise the route,
- updating, by the network device, the BGP state to advertising the route after a set time length and
- advertising, by the network device, the route in the linked list of routes to be advertised;
- and
- when the BGP state indicates advertising the route,
- advertising, by the network device, the route in the linked list of routes to be advertised;
- wherein distributing the route to the hardware of the network device, comprising:
- comparing, by the network device, a number L of routes distributed to the hardware within a current routing period with a maximum number X of routes allowed to be distributed to the hardware when the route advertised by the BGP neighbor is received;
- when L is less than X,
- distributing, by the network device, the received route to the hardware and adding 1 to the number L of routes distributed to the hardware within the current routing period;
- and
- when L is equal to X,
- awaiting, by the network device, the current routing period to end and distributing the received route to the hardware in a next routing period.
A network device, comprising:
- a processor;
- and
- a non-transitory machine-readable storage medium storing machine-executable instructions, wherein by executing the machine-executable instructions, the processor is caused to:
- receive a route advertised by a Border Gateway Protocol (BGP) neighbor;
- distribute the route to hardware of the network device;
- record the route into a linked list of routes to be advertised;
- determine a BGP state of the network device;
- when the BGP state indicates waiting to advertise the route,
- update the BGP state to advertising the route after a set time length and
- advertise the route in the linked list of routes to be advertised;
- and
- when the BGP state indicates advertising the route,
- advertise the route in the linked list of routes to be advertised;
- wherein when distributing the route to the hardware of the network device, the processor is further caused by the machine-executable instructions to:
- compare a number L of routes distributed to the hardware within a current routing period with a maximum number X of routes allowed to be distributed to the hardware when the route advertised by the BGP neighbor is received;
- when L is less than X,
- distribute the received route to the hardware and add 1 to the number L of routes distributed to the hardware within the current routing period;
- and
- when L is equal to X,
- await the current routing period to end and distribute the received route to the hardware in a next routing period.
Dependencies are inferred from the claim text.