CN114301833A - Route notification method, route notification device, equipment and storage medium - Google Patents

Route notification method, route notification device, equipment and storage medium Download PDF

Info

Publication number
CN114301833A
CN114301833A CN202111647075.5A CN202111647075A CN114301833A CN 114301833 A CN114301833 A CN 114301833A CN 202111647075 A CN202111647075 A CN 202111647075A CN 114301833 A CN114301833 A CN 114301833A
Authority
CN
China
Prior art keywords
network element
plane network
forwarding plane
routing information
gateway device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111647075.5A
Other languages
Chinese (zh)
Inventor
袁世章
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111647075.5A priority Critical patent/CN114301833A/en
Publication of CN114301833A publication Critical patent/CN114301833A/en
Pending legal-status Critical Current

Links

Images

Abstract

An embodiment of the application discloses a route advertisement method, a route advertisement device, an electronic device and a computer readable storage medium, including: distributing a corresponding loopback address for the first forwarding plane network element; establishing an adjacency relation with the gateway equipment, wherein the adjacency relation follows a border gateway protocol; and sending first routing information to the gateway equipment based on the adjacency relation, wherein the first routing information comprises information representing that the next hop of the gateway equipment is a loopback address corresponding to the first forwarding plane network element.

Description

Route notification method, route notification device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a route advertisement method, a route advertisement device, a device, and a storage medium.
Background
Under the condition that the switching control separation vBRAS (virtual Broadband Remote Access Server) is used as a network access device, the switching control separation vBRAS comprises a Control Plane (CP) and a special hardware forwarding plane (pUP), and a virtualization forwarding plane (vUP), and for improving the bearing efficiency of users, CP cloud centralized deployment is adopted, the control plane can manage a plurality of forwarding planes, users among the forwarding planes, flow and resource scheduling are carried out, and the utilization rate and reliability of the device can be greatly improved compared with a single machine. Currently, in a pool backup scenario (backup scenario of vbars), route advertisement is mainly performed based on a forwarding plane UP, and the route advertisement time is too long, which is inefficient.
Disclosure of Invention
In order to solve the foregoing technical problem, embodiments of the present application provide a route advertisement method, a route advertisement device, an electronic device, and a computer-readable storage medium, which can improve the efficiency of route advertisement and reduce the possibility of a user-side service terminal.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided a route advertisement method, including: distributing a corresponding loopback address for the first forwarding plane network element; establishing an adjacency relation with the gateway equipment, wherein the adjacency relation follows a border gateway protocol; and sending first routing information to the gateway equipment based on the adjacency relation, wherein the first routing information comprises information which represents that the next hop of the gateway equipment is a loopback address corresponding to the first forwarding plane network element.
In an exemplary embodiment, allocating a corresponding loopback address to the first forwarding plane network element includes: receiving an access message sent by a terminal device through a first forwarding plane network element; and distributing a corresponding loopback address for the first forwarding plane network element based on the access message, and issuing the loopback address to the first forwarding plane network element.
In an exemplary embodiment, after sending the first routing information to the gateway device based on the adjacency, the method further includes: judging whether the first forwarding plane network element has a fault; if the judgment result is yes, distributing a corresponding loopback address for the second forwarding plane network element; and sending second routing information to the gateway equipment based on the adjacency relation, wherein the second routing information comprises information which represents that the next hop of the gateway equipment is a loopback address corresponding to the second forwarding plane network element.
In an exemplary embodiment, after sending the second routing information to the gateway device based on the adjacency, the method further includes: the step of sending the first routing information to the gateway device based on the adjacency is cancelled.
In an exemplary embodiment, determining whether the first forwarding plane network element fails comprises: and if the fault notification information sent by the first forwarding plane network element is received, determining that the first forwarding plane network element has a fault.
In an exemplary embodiment, determining whether the first forwarding plane network element fails comprises: sending a heartbeat packet to a first forwarding plane network element; and if the heartbeat response packet returned by the first forwarding plane network element is not received within a preset time period after the heartbeat packet is sent to the first forwarding plane network element, determining that the first forwarding plane network element fails.
In an exemplary embodiment, after sending the second routing information to the gateway device based on the adjacency, the method further includes: and sending revocation information to the gateway equipment based on the adjacency relation so as to enable the gateway equipment to revoke the first routing information.
According to an aspect of an embodiment of the present application, there is provided a route advertisement device, including: the distribution module is used for distributing a corresponding loopback address for the first forwarding plane network element; the establishing module is used for establishing an adjacency relation with the gateway equipment, and the adjacency relation follows a border gateway protocol; and the sending module is used for sending first routing information to the gateway equipment based on the adjacency relation, wherein the first routing information comprises information which represents that the next hop of the gateway equipment is a loopback address corresponding to the first forwarding plane network element.
According to an aspect of the embodiments of the present application, there is provided an electronic device, including a processor and a memory, where the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, implement the route advertisement method as above.
According to an aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon computer-readable instructions which, when executed by a processor of a computer, cause the computer to perform the route advertisement method as provided above.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the route advertisement method provided in the various alternative embodiments described above.
The route notification method provided by the embodiment of the application is applied to a control plane network element, specifically, an adjacency relation is established between the control plane network element and gateway equipment, and then first route information is sent to the gateway equipment based on the adjacency relation.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a diagram illustrating a prior art UP-based route advertisement path in accordance with an exemplary embodiment;
fig. 2 is a diagram illustrating a CP-based route advertisement path in accordance with an exemplary embodiment of the present application;
FIG. 3 is a flow chart of a route advertisement method shown in an exemplary embodiment of the present application;
FIG. 4 is a flowchart of step S101 in the embodiment shown in FIG. 3 in an exemplary embodiment;
FIG. 5 is a diagram illustrating a prior art UP-based route advertisement path in accordance with an exemplary embodiment
Fig. 6 is a diagram illustrating a CP-based route advertisement path in accordance with an exemplary embodiment of the present application;
fig. 7 is a flow chart of an exemplary route advertisement method based on the embodiment shown in fig. 1;
FIG. 8 is a flowchart of step S301 in the embodiment shown in FIG. 7 in an exemplary embodiment;
FIG. 9 is a block diagram illustrating a method of route advertisement according to an exemplary embodiment of the present application;
fig. 10 is a block diagram of a route advertisement device shown in an exemplary embodiment of the present application;
FIG. 11 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It should also be noted that: reference to "a plurality" in this application means two or more. "and/or" describe the association relationship of the associated objects, meaning that there may be three relationships, e.g., A and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
It should be noted that, the network element referred to in the embodiments of the present application may also be referred to as a function or a functional entity, and the present application is not limited thereto. For example, the access and mobility management function network element may also be referred to as an access and mobility management function or an access and mobility management function entity, and the session management function network element may be referred to as a session management function or a session management function entity, etc. The names of the network elements are not limited in this application, and those skilled in the art can replace the names of the network elements with other names to perform the same functions, all of which belong to the protection scope of this application.
It is to be understood that the network element or the functional entity referred to in this embodiment may be a network element in a hardware device, a software function running on dedicated hardware, or a virtualization function instantiated on a platform (e.g., a cloud platform), and the present application is not limited thereto.
The control transfer separation vBRAS refers to a vBRAS system which takes the technical ideas of SDN and NFV as reference, combines the technical advantages of CT and IT, fully considers the real scene requirements of operators, and realizes the coexistence of forwarding and control separation, control surface virtualization centralization and forwarding surface virtuality and reality. The control-transfer separation vBRAS system comprises a control plane CP, a forwarding plane UP and a standardized interface between the CP and the UP, so the control plane CP, the forwarding plane UP and the standardized interface between the CP and the UP are also called as a CU separation VBRAS system.
Referring to fig. 1, fig. 1 is a schematic diagram of a notification path based on a UP route in the prior art shown in an exemplary embodiment, as shown in fig. 1, a CP uses a dynamic address pool or a local address pool to allocate a user address segment to a UP, a user (IP is 10.10.1.1) comes online, the CP allocates a subnet segment to the UP, the CP issues the subnet segment to the UP through a Sci entry, then the UP generates a network segment route of the user, the UP establishes a BGP adjacent relationship with a gateway device to issue the network segment route of the user, that is, the UP first issues the network segment route of the user to the UP, then the UP establishes a BGP adjacent relationship with the gateway device, and finally issues the network segment route of the user to the gateway device through the UP.
In order to solve at least the above problems in the prior art, embodiments of the present application respectively provide an exception handling method for a network element, an exception handling apparatus for a network element, an electronic device, and a computer-readable storage medium, which are described in detail below.
As shown in fig. 2, fig. 2 is a schematic diagram of a CP-based route advertisement path according to an exemplary embodiment of the present application, as shown in fig. 2, a CP adopts a dynamic address pool or a local address pool to allocate a user address segment to a UP, a user (IP is 10.10.1.1) comes online, the CP allocates a subnet segment to the UP, the CP sends a network segment route of the user to a gateway device according to a BGP temporary connection relationship established in advance with the gateway device, and simultaneously the CP sends the subnet segment to the UP through a Sci entry, so as to complete a route advertisement process, after allocating the subnet segment to the UP, the CP routes the subnet segment to the UP, and advertises the network segment route of the user to the gateway device, the two processes of routing the subnet segment route to the UP and advertising the network segment route of the user to the gateway device can be performed in parallel without routing the subnet segment to the UP first, then the UP establishes a BGP temporary connection relationship with the gateway device and sends the network segment route of the user to the gateway device, therefore, the time of the whole route advertisement can be solved, the efficiency of route announcement is improved, and the interruption of user service caused by overlong route announcement time can be avoided.
Referring to fig. 3, fig. 3 is a flowchart of a route advertisement method shown in an exemplary embodiment of the present application, where the route advertisement method provided in this embodiment is applied to a control plane network element, and the route advertisement method provided in this embodiment is applicable to a route advertisement path shown in fig. 2, as shown in fig. 3, the route advertisement method provided in this embodiment includes steps S101 to S103, and reference is made to the following detailed description:
step S101: and distributing the corresponding loopback address for the first forwarding plane network element.
The loopback address is used for creating a loopback interface for each router for the convenience of management, and an IP address is separately designated on the interface as a management address, and an administrator can remotely log in the router by using the IP address, and the IP address actually plays a role like a device name. The loopback address does not change with changes in network conditions, and represents the local virtual interface of the device, so the default is considered as an interface that is never down.
In this embodiment, a corresponding loopback address is allocated to the first forwarding plane network element, so that the first routing information is generated based on the loopback address corresponding to the first forwarding plane network element and sent to the gateway device.
Step S102: an adjacency is established with the gateway device, the adjacency conforming to the border gateway protocol.
Border Gateway Protocol (BGP) is an autonomous system routing Protocol running over TCP. BGP is the only protocol used to handle networks as large as the internet and is the only protocol that can properly handle multiple connections between unrelated routing domains. BGP builds on the experience of EGP. The main function of the BGP system is to exchange network reachability information with other BGP systems. The network reachability information includes information for listed Autonomous Systems (AS). This information effectively constructs a topology map of the AS interconnect and thus clears the routing loops, while policy decisions may be enforced at the AS level.
In this embodiment, the gateway device may be a Spine-Leaf network device, the Spine-Leaf network device is an entity device connected to a network that includes multiple virtual machines, and the forwarding plane network element may access the metropolitan area network through the Spine-Leaf network.
In this embodiment, after the adjacency relation with the gateway device is established, the route advertisement may be directly performed on the gateway device through the control plane network element.
Exemplarily, in this step, it may further be detected whether the first forwarding plane network element has already established a BGP temporary relationship with the gateway device, and if it is detected that the first forwarding plane network element has established the BGP temporary relationship with the gateway device, the BGP temporary relationship between the first forwarding plane network element and the gateway device is cut off, and the first forwarding plane network element is prevented from establishing the BGP temporary relationship with the gateway device in real time, so as to avoid that the first forwarding plane network element repeatedly notifies the gateway device of the network segment route of the user, which causes resource waste.
Step S103: and sending the first routing information to the gateway equipment based on the adjacency relation.
In this embodiment, the first routing information includes information that characterizes that a next hop of the gateway device is a loopback address corresponding to the first forwarding plane network element.
The route notification method provided by the embodiment is applied to a control plane network element, specifically, an adjacency relation is established between the control plane network element and a gateway device, and then first route information is sent to the gateway device based on the adjacency relation.
After the route advertisement is performed by the route advertisement method provided in this embodiment, in an actual internet access process of the terminal device, a data stream sequentially flows through a control plane network element, a gateway device, a first forwarding plane network element, and the terminal device.
Referring to fig. 4, fig. 4 is a flowchart of step S101 in the embodiment shown in fig. 3 in an exemplary embodiment, and as shown in fig. 4, step S101 includes steps S201 to S202, which are described in detail as follows:
step S201: and receiving an access message sent by the terminal equipment through the first forwarding plane network element.
In this embodiment, the terminal device first sends the access packet to the first forwarding plane network element, and the first forwarding plane network element sends the received access packet to the control plane network element. Illustratively, the access packet is a Point to Point Protocol Over Ethernet (PPPoE) access packet. The PPPoE access message is expanded to carry line information of the terminal equipment, such as a vendor ID, a circuit ID and the like. The PPPoE access packet is a technology for transmitting PPP (Point to Point Protocol) frame information over an ethernet. The PPPoE protocol is a mainstream Broadband access technology at present, and is widely applied to a BRAS (Broadband remote access Server). The BRAS is a novel access gateway located at the edge of the backbone network and used for completing data access of the user broadband network.
Step S202: and distributing a corresponding loopback address for the first forwarding plane network element based on the access message, and issuing the loopback address to the first forwarding plane network element.
The control plane network element receives the access message sent by the first forwarding plane network element, and indicates that the terminal device is online on the first forwarding plane network element, so that the control plane network element allocates a corresponding loopback address for the first forwarding plane network element and sends the loopback address to the first forwarding plane network element.
That is, in this embodiment, a corresponding loopback address is configured for a forwarding plane network element currently connected to a terminal device requesting to go online, and this way can distinguish the forwarding plane network element connected to the terminal device when the system includes multiple forwarding plane network elements, and further allocate a corresponding loopback address to the forwarding plane network element connected to the terminal device.
The inventor of the present application finds, through long-term research, that referring to fig. 5, fig. 5 is a schematic diagram of an advertisement path based on an UP route in the prior art, shown in fig. 5, a CP uses a dynamic address pool or a local address pool to allocate a user address segment to an UP, a user (IP is 10.10.1.1) goes online, the CP allocates a sub-network segment to an UP1, the CP issues the sub-network segment to an UP1 through a Sci entry, then the UP1 generates a network segment route of the user, the UP1 establishes a BGP1 adjacent relationship with a gateway device to issue the network segment route of the user, when an UP1 user-side interface fails, the CP notifies a UP2 that is upgraded to a main port to issue the network segment route of the user of the interface, and notifies a UP1 that is upgraded to a standby port to withdraw the network segment route of the corresponding user. And the gateway equipment learns the network segment route of the user again and finishes the route updating of the user. Compared with the situation that the whole system has only one UP, when the main UP fails, the UP main-standby switching needs to be completed firstly before the route notification is completed, so the whole route process has longer time consumption, the route notification efficiency is extremely low, and the user service interruption during the switching is easily caused.
Based on this, the present invention provides a route notification method, which is used to solve the problems that when the main UP fails, the route notification efficiency is extremely low and the user service is easily interrupted during switching.
As shown in fig. 6, fig. 6 is a schematic diagram of a CP-based route advertisement path according to an exemplary embodiment of the present application, as shown in fig. 6, a CP adopts a dynamic address pool or a local address pool to allocate a user address segment to a UP, a user (IP is 10.10.1.1) comes online, the CP allocates a sub-network segment to the UP, the CP sends a network segment route of the user to a gateway device according to a BGP temporary connection relationship established with the gateway device in advance, the next hop of the advertisement route is a loopback address of UP1, and simultaneously the CP issues the sub-network segment to UP1 through a Sci entry, so that a route advertisement process is completed, that is, after the CP allocates a sub-network segment to UP1 for UP1, the sub-network segment is routed to UP1, and the network segment route of the user is advertised to the gateway device, the two processes of UP, the UP and UP are performed in parallel without routing the sub-network segment to BGP1, and then 1 establishes a temporary connection relationship with the gateway device to send the network segment route of the user to the gateway device, therefore, the time of the whole route notification can be solved, the route notification efficiency is improved, and the interruption of user service caused by overlong route notification time can be avoided. In addition, when the user side interface of the UP1 fails, the CP notifies the gateway device that the next hop is the Loopback address of the UP2 which is raised to the active port, and notifies the gateway device that the next hop is withdrawn and lowered to the Loopback address of the standby UP 2.
Referring to fig. 7, fig. 7 is a flowchart of an exemplary route advertisement method proposed on the basis of the embodiment shown in fig. 1, as shown in fig. 7, after step S103, the route advertisement method provided in this embodiment may further include steps S301 to S303, which are described in detail as follows:
step S301: and judging whether the first forwarding plane network element has a fault.
In this embodiment, if the first forwarding plane network element fails, the terminal device connected to the first forwarding plane network element cannot communicate with the control plane network element through the first forwarding plane network element.
Exemplarily, if the failure notification information sent by the first forwarding plane network element is received, it is determined that the first forwarding plane network element fails. Illustratively, the first forwarding plane sends the failure notification information to the control plane network element when the user-side port fails. For example, the present embodiment may log in the first forwarding plane network element through the loopback address to determine whether the first forwarding plane network element fails in real time.
Referring to fig. 8, fig. 8 is a flowchart of step S301 in the embodiment shown in fig. 7 in an exemplary embodiment, and as shown in fig. 8, step S301 includes steps S401 to S402, which are described in detail as follows:
step S401: and sending the heartbeat packet to a first forwarding plane network element.
In this embodiment, the heartbeat packet is periodically sent to the first forwarding plane network element to detect the fault condition of the first forwarding plane network element in real time.
Step S402: and if the heartbeat response packet returned by the first forwarding plane network element is not received within a preset time period after the heartbeat packet is sent to the first forwarding plane network element, determining that the first forwarding plane network element fails.
In this embodiment, if the first forwarding plane network element fails, when receiving the heartbeat packet sent by the control plane network element, the first forwarding plane network element sends a heartbeat response packet to the control plane network element. In this embodiment, the size of the preset time period may be determined according to an actual application scenario, and is not specifically limited herein.
Step S302: if the judgment result is yes, the corresponding loopback address is distributed to the second forwarding surface network element.
In this embodiment, the second forwarding plane network element is a forwarding plane network element that is determined by the control plane network element from the multiple standby forwarding plane network elements and that does not currently have a fault. And after the second forwarding plane network element is determined, taking the second forwarding plane network element as a main forwarding plane network element, taking the first forwarding plane network element as a standby forwarding plane network element, and allocating a corresponding loopback address to the second forwarding plane network element.
Illustratively, the second forwarding plane network element issues an Address Resolution Protocol (ARP), and directs the traffic of the terminal device to enter, that is, directs the terminal device connected to the first forwarding plane network element to connect to the second forwarding plane network element. The ARP protocol resolves IP addresses into media access control addresses used by the LAN hardware. IP packets are often sent over ethernet, but ethernet devices do not recognize a 32-bit IP address, and they transmit ethernet packets with a 48-bit ethernet address. Therefore, the IP destination address must be translated to the ethernet destination address. In ethernet, one host must know the MAC address of the target host to communicate directly with another host. It is obtained by the address resolution protocol. The ARP protocol is used to resolve an IP address in a network into a target hardware address (MAC address) to ensure smooth communication.
Step S303: and sending the second routing information to the gateway equipment based on the adjacency relation.
In this embodiment, the second routing information includes information that characterizes a next hop of the gateway device as a loopback address corresponding to the second forwarding plane network element. The gateway device relearns the routing information about the terminal device upon receiving the second routing information.
Illustratively, because the first forwarding plane network element is reduced to the standby forwarding plane network element, the first routing information is no longer sent to the gateway device based on the adjacency relation, so as to avoid that the first routing information occupies resources such as excessive bandwidth, and in addition, confusion caused by receiving multiple routing information by the gateway device can also be avoided.
Illustratively, revocation information is sent to the gateway device based on the adjacency to cause the gateway device to revoke the first routing information.
Since the gateway device receives and stores the first routing information before receiving the second routing information, the gateway device sends revocation information to the gateway device based on the adjacency relation, so that the gateway device revokes the first routing information, that is, deletes the first routing information from the gateway device, thereby improving the accuracy of the route advertisement.
In the route advertisement method provided in this embodiment, a BGP adjacency is established between a control plane network element and a gateway device, and a network segment route of a user of a forwarding plane network element is advertised, specifically, a next hop of the advertised gateway device route is a loopback address of the forwarding plane network element currently connected to a terminal device. When the user is on line and the control plane network element allocates the network segment to the forwarding plane network element, the BGP temporary relationship is established between the control plane network element and the gateway device without establishing the BGP temporary relationship between the forwarding plane network element and the gateway device, the BGP temporary relationship is directly notified to the external device, and the next hop is the loopback address corresponding to the forwarding plane network element. When the user side interface of the forwarding plane network element fails, the control plane network element informs the gateway device that the next hop is the Loopback address of the forwarding plane network element which is upgraded to the main port, and informs the gateway device that the Loopback address of the forwarding plane network element which is upgraded to the standby forwarding plane network element is undone. By the method, when the forwarding plane network element connected with the terminal equipment fails, the route notification aiming at the network segment route of the user can be quickly executed, the route notification efficiency is improved, and the phenomenon that the user service is interrupted due to the fact that the route notification time is too long because the forwarding plane network element executes the network segment route notification of the user is avoided.
In a specific application scenario, referring to fig. 9, fig. 9 is a block diagram of a route advertisement method according to an exemplary embodiment of the present application, as shown in fig. 9, a forwarding plane network element UP1 sends notification information indicating that a user terminal CPE successfully comes on line at a forwarding plane network element UP1 to a control plane network element CP, when a user side of UP1 breaks down, a port fault information is sent to the CP, the CP updates state information of a master/backup UP, that is, the CP advertises that UP2 becomes a master CP and advertises that UP is a backup UP, and UP2 sends an ARP packet to introduce a user side traffic.
Referring to fig. 10, fig. 10 is a block diagram of a route advertisement device according to an exemplary embodiment of the present application, and as shown in fig. 10, the route advertisement device 500 includes a first distribution module 501, an establishment module 502, and a first sending module 503.
The first allocating module 501 is configured to allocate a corresponding loopback address to a first forwarding plane network element; the establishing module 502 is configured to establish an adjacency relation with a gateway device, where the adjacency relation follows a border gateway protocol; the first sending module 503 is configured to send first routing information to the gateway device based on the adjacency relationship, where the first routing information includes information that characterizes that a next hop of the gateway device is a loopback address corresponding to the first forwarding plane network element.
In another exemplary embodiment, the first allocating module 501 includes a receiving unit and an allocating unit, where the receiving unit is configured to receive an access packet sent by a terminal device through a first forwarding plane network element; the allocation unit is used for allocating the corresponding loopback address for the first forwarding plane network element based on the access message and issuing the loopback address to the first forwarding plane network element.
In another exemplary embodiment, the route advertisement device 500 further includes a determining module, a second allocating module, and a second sending module, where the determining module is configured to determine whether the first forwarding plane network element fails; the second allocating module is used for allocating a corresponding loopback address for the second forwarding plane network element if the judging result is yes; the second sending module is configured to send second routing information to the gateway device based on the adjacency relationship, where the second routing information includes information that characterizes a next hop of the gateway device as a loopback address corresponding to the second forwarding plane network element.
In another exemplary embodiment, the route advertisement apparatus 500 further includes a cancellation module, and a third sending module, wherein the cancellation module is configured to cancel the step of sending the first routing information to the gateway device based on the adjacency, and the third sending module is configured to send the revocation information to the gateway device based on the adjacency, so that the gateway device revokes the first routing information.
In another exemplary embodiment, the determining module is further configured to determine that the first forwarding plane network element fails if the failure notification information sent by the first forwarding plane network element is received.
In another exemplary embodiment, the determining module includes a sending unit and a determining unit, where the sending unit is configured to send a heartbeat packet to the first forwarding plane network element; the determining unit is configured to determine that the first forwarding plane network element fails if the heartbeat response packet returned by the first forwarding plane network element is not received within a preset time period after the heartbeat packet is sent to the first forwarding plane network element.
It should be noted that the apparatus provided in the foregoing embodiment and the method provided in the foregoing embodiment belong to the same concept, and the specific manner in which each module and unit execute operations has been described in detail in the method embodiment, and is not described again here.
In another exemplary embodiment, the present application provides an electronic device comprising a processor and a memory, wherein the memory has stored thereon computer readable instructions, which when executed by the processor, implement the method for hosting a user premises equipment as before.
FIG. 11 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system 1000 of the electronic device shown in fig. 11 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 11, the computer system 1000 includes a Central Processing Unit (CPU)1001 that can perform various appropriate actions and processes, such as performing the information recommendation method in the above-described embodiment, according to a program stored in a Read-Only Memory (ROM) 1002 or a program loaded from a storage portion 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for system operation are also stored. The CPU 1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An Input/Output (I/O) interface 1005 is also connected to the bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output section 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. When the computer program is executed by a Central Processing Unit (CPU)1001, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer readable storage medium having computer readable instructions stored thereon, which when executed by a processor implement the method for hosting a user-premises equipment as in any of the previous embodiments.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for hosting the user premises equipment provided in the above embodiments.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
The above description is only a preferred exemplary embodiment of the present application, and is not intended to limit the embodiments of the present application, and those skilled in the art can easily make various changes and modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for route advertisement, wherein the method is applied to a control plane network element, and comprises the following steps:
distributing a corresponding loopback address for the first forwarding plane network element;
establishing an adjacency relation with a gateway device, wherein the adjacency relation follows a border gateway protocol;
and sending first routing information to the gateway device based on the adjacency relation, wherein the first routing information comprises information representing that the next hop of the gateway device is a loopback address corresponding to the first forwarding plane network element.
2. The method of claim 1, wherein the allocating the corresponding loopback address for the first forwarding plane network element comprises:
receiving an access message sent by the terminal equipment through the first forwarding plane network element;
and distributing a corresponding loopback address for the first forwarding plane network element based on the access message, and issuing the loopback address to the first forwarding plane network element.
3. The method of claim 1, wherein after the sending the first routing information to the gateway device based on the adjacency, the method further comprises:
judging whether the first forwarding plane network element fails or not;
if the judgment result is yes, distributing a corresponding loopback address for the second forwarding plane network element;
and sending second routing information to the gateway equipment based on the adjacency relation, wherein the second routing information comprises information for representing that the next hop of the gateway equipment is a loopback address corresponding to the second forwarding plane network element.
4. The method of claim 3, wherein after the sending the second routing information to the gateway device based on the adjacency, the method further comprises:
canceling the step of sending the first routing information to the gateway device based on the adjacency.
5. The method of claim 3, wherein the determining whether the first forwarding plane network element fails comprises:
and if the fault notification information sent by the first forwarding plane network element is received, determining that the first forwarding plane network element has a fault.
6. The method of claim 3, wherein the determining whether the first forwarding plane network element fails comprises:
sending a heartbeat packet to the first forwarding plane network element;
and if the heartbeat response packet returned by the first forwarding plane network element is not received within a preset time period after the heartbeat packet is sent to the first forwarding plane network element, determining that the first forwarding plane network element fails.
7. The method of claim 3, wherein after sending the second routing information to the gateway device based on the adjacency, the method further comprises:
and sending revocation information to the gateway equipment based on the adjacency relation so as to enable the gateway equipment to revoke the first routing information.
8. A route advertisement device, comprising:
the distribution module is used for distributing a corresponding loopback address for the first forwarding plane network element;
the establishing module is used for establishing an adjacency relation with the gateway equipment, and the adjacency relation follows a border gateway protocol;
a sending module, configured to send first routing information to the gateway device based on the adjacency relation, where the first routing information includes information that characterizes that a next hop of the gateway device is a loopback address corresponding to the first forwarding plane network element.
9. An electronic device, comprising:
a memory storing computer readable instructions;
a processor to read computer readable instructions stored by the memory to perform the method of any of claims 1-7.
10. A computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor of a computer, cause the computer to perform the method of any one of claims 1-7.
CN202111647075.5A 2021-12-29 2021-12-29 Route notification method, route notification device, equipment and storage medium Pending CN114301833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111647075.5A CN114301833A (en) 2021-12-29 2021-12-29 Route notification method, route notification device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111647075.5A CN114301833A (en) 2021-12-29 2021-12-29 Route notification method, route notification device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114301833A true CN114301833A (en) 2022-04-08

Family

ID=80972312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111647075.5A Pending CN114301833A (en) 2021-12-29 2021-12-29 Route notification method, route notification device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114301833A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200628A (en) * 2018-11-16 2020-05-26 瞻博网络公司 Network controller sub-cluster for distributed computing deployment
CN111431807A (en) * 2019-01-09 2020-07-17 中国移动通信有限公司研究院 Path updating method, device, equipment and storage medium
CN111464454A (en) * 2020-03-02 2020-07-28 烽火通信科技股份有限公司 Load sharing method and system for virtual BRAS (broadband remote Access Server) equipment in data center
CN111835635A (en) * 2019-04-18 2020-10-27 华为技术有限公司 Method, equipment and system for publishing route in BGP network
CN112615914A (en) * 2020-12-10 2021-04-06 中通服咨询设计研究院有限公司 Method for transmitting multicast hot standby table entries by using border gateway protocol
US20210144084A1 (en) * 2019-11-13 2021-05-13 Vmware, Inc. Tunnel-based routing calculation in software-defined networking (sdn) environments

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200628A (en) * 2018-11-16 2020-05-26 瞻博网络公司 Network controller sub-cluster for distributed computing deployment
CN111431807A (en) * 2019-01-09 2020-07-17 中国移动通信有限公司研究院 Path updating method, device, equipment and storage medium
CN111835635A (en) * 2019-04-18 2020-10-27 华为技术有限公司 Method, equipment and system for publishing route in BGP network
US20210144084A1 (en) * 2019-11-13 2021-05-13 Vmware, Inc. Tunnel-based routing calculation in software-defined networking (sdn) environments
CN111464454A (en) * 2020-03-02 2020-07-28 烽火通信科技股份有限公司 Load sharing method and system for virtual BRAS (broadband remote Access Server) equipment in data center
CN112615914A (en) * 2020-12-10 2021-04-06 中通服咨询设计研究院有限公司 Method for transmitting multicast hot standby table entries by using border gateway protocol

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
夏炜炜;: "vBRAS CUPS双机互备研究实践", 通讯世界, no. 04 *

Similar Documents

Publication Publication Date Title
US11398956B2 (en) Multi-Edge EtherChannel (MEEC) creation and management
US10404773B2 (en) Distributed cluster processing system and packet processing method thereof
CN106254203B (en) Message forwarding method and device
US11153194B2 (en) Control plane isolation for software defined network routing services
CN104584491A (en) System and method providing distributed virtual routing and switching (DVRS)
US20130308646A1 (en) Enabling media access control address mobility in an ethernet virtual private network
CN106453025A (en) Tunnel creating method and device
EP3420687B1 (en) Addressing for customer premises lan expansion
CN111756566B (en) Software upgrade deployment in a hybrid network with and without ISSU devices
WO2018019299A1 (en) Virtual broadband access method, controller, and system
US11711317B1 (en) Remote port for network connectivity for non-colocated customers of a cloud exchange
US20230345273A1 (en) Fault processing method, control plane network element, steering decision-making network element, and related device
EP4214911A1 (en) Systems and methods for zero-touch provisioning of a switch in intermediate distribution frames and main distribution frames
CN112385194B (en) State packet transmission between remote networks
US11929851B2 (en) Gateway selection method, device, and system
CN113254148A (en) Virtual machine migration method and cloud management platform
CN112671811B (en) Network access method and equipment
EP4199596A1 (en) Routing information transmission method and apparatus
US11576072B2 (en) Methods, systems, and computer-readable media for distributing S1 connections to mobility management entities (MMEs) and N2 connections to access and mobility management functions (AMFs)
CN114301833A (en) Route notification method, route notification device, equipment and storage medium
CN112751766A (en) Message forwarding method and device and computer storage medium
CN115118544B (en) Communication method, device and system
WO2023088411A1 (en) Method and apparatus for sending instruction, and method and apparatus for sending information
CN113556694A (en) Information sending method, device, system, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination