CN116095000B - Route issuing method, device, equipment and readable storage medium - Google Patents

Route issuing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN116095000B
CN116095000B CN202310105784.3A CN202310105784A CN116095000B CN 116095000 B CN116095000 B CN 116095000B CN 202310105784 A CN202310105784 A CN 202310105784A CN 116095000 B CN116095000 B CN 116095000B
Authority
CN
China
Prior art keywords
route
routing
prefix
igp
olt
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.)
Active
Application number
CN202310105784.3A
Other languages
Chinese (zh)
Other versions
CN116095000A (en
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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202310105784.3A priority Critical patent/CN116095000B/en
Publication of CN116095000A publication Critical patent/CN116095000A/en
Application granted granted Critical
Publication of CN116095000B publication Critical patent/CN116095000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a route release method, a device, equipment and a readable storage medium, wherein the route release method comprises the following steps: the method comprises the steps of obtaining a Reply message issued by a DHCPv6PD server, and analyzing the Reply message to obtain a PD routing prefix, a prefix mask and a next-hop IPv6 address; determining a VPN instance and an IGP routing protocol instance according to an uplink VLANIF interface of the OLT; according to the PD route prefix, the prefix mask, the next hop IPv6 address and the VPN example, constructing and obtaining a PD route table; carrying out route aggregation on the PD route table to obtain a PD route aggregation table; and issuing the PD route convergence table to an upper-layer switching network through the IGP route protocol instance. The invention combines the different VPN network nodes of the OLT, automatically associates the IGP routing protocol instance and completes the convergence and release of the PD routing, thereby realizing the rapid automatic access of the IPv6 service.

Description

Route issuing method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of IPv6 technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for route publishing.
Background
When an OLT (Optical LINE TERMINAL, optical line terminal device) is used for a pure two-layer device in a network, the OLT only needs to complete interworking in a VLAN (Virtual LocalAreaNetwork ), and the routing function is completed by an aggregation switch at an upper layer, but in some operator networks, the OLT needs to bear more routing aggregation functions, at this time, the OLT needs to complete normal routing exchange, route learning in a VRF (Virtual Routing Forwarding, virtual route forwarding), and processing of MPLS (Multi-Protocol Label Switching ) labels, the OLT needs to complete capability improvement of a control layer and a forwarding layer in terms of three-layer IP forwarding, and as the capability improvement of three-layer IP service processing capability, the capability of the OLT that other services rely on IP software and hardware forwarding is also expanded, including applications such as SNMP, TELNET, SSH, FTP, and influences on services include IGP routing protocol, DHCPv4, DHCPv6, OSPFv3, and the like.
In the IPv6 access service networking, when acting as a DHCPv6 (DHCP (Dynamic Host ConfigurationProtocol, dynamic host configuration protocol) forIPV) relay device, the OLT needs to manage and control learning and release of PD (Prefix Delegation, prefix authentication) routes to ensure that downstream services can normally reach an ONU (OpticalNetworkUnit, an optical network unit) and a PC (Personal Computer, a personal computer) and the like, and meanwhile, needs to release excessive PD routes to a backbone network to bring excessive route burden to the backbone network, and needs to release the PD routes to an upper-layer switching network through an IGP routing protocol after converging.
However, the PD route is dynamically learned and generated in the interaction process with the DHCPv6 server according to the DHCPv6 relay protocol, and is generated according to specific addresses taken by the PD network segment and the client terminal when the reply message of the DHCPv6 server and the client is intercepted, and when the actual service is networked, the OLT is often in different VPN (Virtual Private Network ) networks as CE (customer edge router), so that it is difficult for network operators to monitor the latest change condition of the PD routing table in real time, and further complete route aggregation and issue to the corresponding upper network, thereby bringing considerable difficulty to network operation and maintenance, and leading to failure of fast access of the IPv6 service.
Disclosure of Invention
The invention mainly aims to provide a route release method, a device, equipment and a readable storage medium, which aim to solve the technical problems that due to the complexity of IPv6 service networking and the dynamic change of PD routes, network operators are difficult to monitor the latest change condition of a PD route table in real time, and further complete route aggregation and release to a corresponding upper network, thereby bringing great difficulty to network operation and maintenance and leading IPv6 service to be unable to be accessed quickly.
In a first aspect, the present invention provides a route publishing method, including:
the method comprises the steps of obtaining a Reply message issued by a DHCPv6 PD server, and analyzing the Reply message to obtain a PD routing prefix, a prefix mask and a next-hop IPv6 address;
Determining a VPN instance and an IGP routing protocol instance according to an uplink VLANIF interface of the OLT;
According to the PD route prefix, the prefix mask, the next hop IPv6 address and the VPN example, constructing and obtaining a PD route table;
Carrying out route aggregation on the PD route table to obtain a PD route aggregation table;
And issuing the PD route convergence table to an upper-layer switching network through the IGP route protocol instance.
Optionally, before the Reply message sent by the DHCPv6 PD server is obtained, resolving the Reply message to obtain a PD routing prefix, a prefix mask, and a next-hop IPv6 address, the method includes:
When the OLT is used as the relay device of the DHCPv6, the uplink VLANIF interface of the OLT and the VPN instance are bound, and an IGP routing protocol instance corresponding to the VPN instance is created.
Optionally, before the Reply message sent by the DHCPv6 PD server is obtained, analyzing the Reply message to obtain a PD routing prefix, a prefix mask, and a next-hop IPv6 address, the method further includes:
the OLT starts an IPv4 and IPv6 dual stack mode, and starts a DHCPv6 PD relay mode under different VLANIF interfaces;
and the OLT sends a Solicit message to the DHCPv6 PD server, and requests the DHCPv6 PD server to allocate an IPv6 address and a PD routing prefix.
Optionally, before the constructing the PD routing table according to the PD routing prefix, the prefix mask, the next-hop IPv6 address, and the VPN instance, the method includes:
and forwarding the Reply message to the client through a downlink VLANIF interface of the OLT according to the next-hop IPv6 address, and performing neighbor learning between the OLT and the client until the next-hop IPv6 address takes effect.
Optionally, before the publishing the PD route convergence table to the upper layer switching network by the IGP routing protocol instance, the method includes:
constructing a PD route convergence table and an association table of an IGP route protocol instance;
And storing the PD route convergence table, the association table of the IGP route protocol instance, the PD route table and the PD route convergence table for recovering the service when the OLT is restarted.
Optionally, the PD route aggregation table includes one or more PD route aggregation sub-tables, where each VPN instance is stored using one PD route aggregation sub-table, and the issuing, by an IGP route protocol instance, the PD route aggregation table to the upper layer switching network includes:
determining IGP routing protocol examples corresponding to each PD routing convergence sub-table according to the VPN examples in each PD routing convergence sub-table;
Issuing each PD route convergence sub-table to an upper layer switching network through an IGP route protocol instance corresponding to each PD route convergence sub-table;
Optionally, after route aggregation is performed on the PD route table to obtain the PD route aggregation table, the method includes:
And when detecting that the PD route prefix changes, updating the PD route table and the PD route convergence table.
In a second aspect, the present invention also provides a route issuing device, including:
The acquisition module is used for acquiring the Reply message issued by the DHCPv6 PD server, analyzing the Reply message and obtaining the PD routing prefix, the prefix mask and the next hop IPv6 address;
the determining module is used for determining a VPN instance and an IGP routing protocol instance according to the uplink VLANIF interface of the OLT;
The construction module is used for constructing and obtaining a PD routing table according to the PD routing prefix, the prefix mask, the next hop IPv6 address and the VPN example;
the aggregation module is used for carrying out route aggregation on the PD routing table to obtain a PD routing aggregation table;
and the issuing module is used for issuing the PD route convergence table to the upper-layer switching network through the IGP route protocol instance.
In a third aspect, the present invention also provides a route distribution device, the route distribution device including a processor, a memory, and a route distribution program stored on the memory and executable by the processor, wherein the route distribution program, when executed by the processor, implements the steps of the route distribution method as described above.
In a fourth aspect, the present invention further provides a readable storage medium, on which a route distribution program is stored, wherein the route distribution program, when executed by a processor, implements the steps of the route distribution method as described above.
In the invention, a Reply message issued by a DHCPv6 PD server is obtained, and the Reply message is analyzed to obtain a PD routing prefix, a prefix mask and a next hop IPv6 address; determining a VPN instance and an IGP routing protocol instance according to an uplink VLANIF interface of the OLT; according to the PD route prefix, the prefix mask, the next hop IPv6 address and the VPN example, constructing and obtaining a PD route table; carrying out route aggregation on the PD route table to obtain a PD route aggregation table; and issuing the PD route convergence table to an upper-layer switching network through the IGP route protocol instance. The invention distributes the PD route convergence table to the upper layer switching network through the IGP route protocol instance corresponding to the VPN instance, thereby realizing the combination of different VPN network nodes where the OLT is positioned, automatically associating the IGP route protocol instance and completing the convergence distribution of the PD route, and further realizing the rapid automatic access of the IPv6 service.
Drawings
FIG. 1 is a flow chart of an embodiment of a route distribution method according to the present invention;
FIG. 2 is a schematic diagram of a network architecture according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a route request flow according to an embodiment of the route issuing method of the present invention;
FIG. 4 is a schematic diagram of a route storage flow according to an embodiment of the route distribution method of the present invention;
FIG. 5 is a schematic diagram of a refinement flow chart of step S50 in FIG. 1;
FIG. 6 is a schematic diagram of a route update procedure according to an embodiment of the route distribution method of the present invention;
FIG. 7 is a schematic diagram of a functional module of an embodiment of a route issuing device according to the present invention;
Fig. 8 is a schematic hardware structure of an embodiment of the route issuing device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In a first aspect, an embodiment of the present invention provides a route publishing method.
In order to more clearly show the route publishing method provided by the embodiment of the present application, an application scenario of the route publishing method provided by the embodiment of the present application is first introduced.
When the routing release method provided by the embodiment of the application is applied to the IPv6 access service networking of the OLT and used for the relay equipment of the DHCPv6, the downlink service can normally reach the ONU, the PC and the like, the learning and release of PD routes are required to be managed and controlled, meanwhile, in order to avoid the release of excessive PD routes to a backbone network and bring excessive routing burden to the backbone network, the OLT also needs to carry out aggregation on the PD routes and then release the PD routes to an upper-layer switching network through an IGP routing protocol, but due to the complexity of the IPv6 service networking and the dynamic change of the PD routes, network operation staff are difficult to monitor the latest change condition of a PD routing table in real time, and therefore, the aggregation release of the PD routes is required to be completed quickly by combining different VPN network nodes where the OLT is positioned and automatically associating with the IGP routing protocol examples so as to reduce the pressure of network operation and realize the quick automatic access of the IPv6 service.
In an embodiment, referring to fig. 1, fig. 1 is a flow chart of an embodiment of a route publishing method according to the present invention, as shown in fig. 1, the route publishing method includes:
And S10, obtaining a Reply message issued by the DHCPv6 PD server, and analyzing the Reply message to obtain a PD routing prefix, a prefix mask and a next-hop IPv6 address.
In this embodiment, the OLT intercepts the Reply packet issued by the DHCPv6 PD server, and parses the ia_pd Prefix Option carried in the Reply packet, so as to obtain the PD routing Prefix, the Prefix mask, and the next-hop IPv6 address.
And step S20, determining a VPN instance and an IGP routing protocol instance according to the uplink VLANIF interface of the OLT.
In this embodiment, the VLANIF interface is a VLAN-based three-layer logic interface, a VPN instance and an IGP routing protocol instance are determined according to an uplink VLANIF interface of the OLT, the VPN instance corresponds to a VPN network where the DHCPv6 PD server is located, a VPNID may be used for unique identification, the VPNID corresponding to the VPN instance is used for building a PD routing table and a PD routing convergence table, and the PD routing convergence table is published through the IGP routing protocol instance.
And step S30, constructing and obtaining a PD routing table according to the PD routing prefix, the prefix mask, the next-hop IPv6 address and the VPN example.
In this embodiment, the constructed PD routing table mainly includes a PD routing prefix, a prefix mask, a next-hop IPv6 address, and a VPN instance, and in the actual application process, the PD routing table may be added according to specific requirements and include more fields of information content.
And S40, carrying out route aggregation on the PD route table to obtain a PD route aggregation table.
In this embodiment, the purpose of route aggregation is to aggregate a group of routes into a single route unicast or multicast, and the final result and obvious benefit are that the size of the routing table is reduced, and when the DHCPv6 PD server performs PD route prefix partitioning on a region, the DHCPv6 PD server will be uniformly planned into the same mask length, for example, the PD prefix configured by the DHCPv6 PD server is 2803:6604:9400:100::56, 2803:6604:9400:200: and (3) in the step of (56) and (2803) in the step of 6604 in the step of 9400 in the step of 300 in the step of (56), assuming that three pieces of PD route prefix information corresponding to the above are stored in the PD route table, one converged route of 2803 in the step of 6604 in the step of 9400 in the step of/40 or 2803 in the step of 6604 in the step of 9400 in the step of/48 can be formed after route convergence, and the former is adopted in general.
Step S50, the PD route convergence table is issued to the upper layer switching network through the IGP route protocol instance.
In this embodiment, the upper layer switching network mainly refers to an upper layer MPLS backbone network, and the PD route aggregation table is issued to the upper layer switching network through an IGP route protocol instance, so that access of the user IPv6 service can be achieved.
In this embodiment, referring to fig. 2, fig. 2 is a schematic diagram of a network architecture of an embodiment of the route distribution method of the present invention, as shown in fig. 2, the OLT performs the role of a relay device that is a DHCPv6 Server, in order to ensure that downstream services can normally reach an ONU (which is a DHCPv6 Client in this embodiment) and a PC, that is, PD routes from different VPN forwarding domains (which are received through an uplink VLANIF1 interface and a VLANIF2 interface of the OLT) need to be processed, learning and distribution of PD routes are managed and controlled, and processing of MPLS labels, etc., in order to avoid excessive PD routes from being distributed to a backbone network, excessive route burden is brought to the backbone network, the routing table is thinned by performing route aggregation on a PD routing table including a VPN instance, and an IGP routing protocol instance (which is specifically an OSPFv3 VRF instance 1 and an ospf instance 2 in fig. 2, an ospf (Open Shortest path 3, priority) is implemented by combining the VPN routing table with an opened VPN instance), the automatic connection is achieved, and the route distribution of the VPN is not automatically completed by associating the routing table with the VPN node.
Further, in an embodiment, before step S10, the method includes:
When the OLT is used as the relay device of the DHCPv6, the uplink VLANIF interface of the OLT and the VPN instance are bound, and an IGP routing protocol instance corresponding to the VPN instance is created.
In this embodiment, an uplink VLANIF interface of the OLT is turned on, different uplink VLANIF interfaces of the OLT and VPN instances are bound, IGP routing protocol instances corresponding to the VPN instances are created, and DHCPv6 PD server addresses are set to learn routes from a traffic server (such as a server of data and voice) and a DHCPv6 PD server.
Further, in an embodiment, referring to fig. 3, fig. 3 is a schematic flow chart of a route request according to an embodiment of the route issuing method of the present invention, as shown in fig. 3, before step S10, the method further includes:
Step S01, the OLT starts an IPv4 and IPv6 dual stack mode, and starts a DHCPv6 PD relay mode under different VLANIF interfaces;
in step S02, the OLT sends a Solicit message to the DHCPv6 PD server requesting the DHCPv6 PD server to allocate an IPv6 address and a PD routing prefix.
In this embodiment, the OLT has multiple VLANIF interfaces, and opens DHCPv6PD relay modes under different VLANIF interfaces, and it should be noted that, when the OLT opens DHCPv6PD relay modes in the VPN area, the OLT binds the uplink and downlink VLANIF interfaces in the same VPN instance, so as to avoid that the PD route learning and interaction process cannot be completed.
Further, in an embodiment, before step S30, the method includes:
and forwarding the Reply message to the client through a downlink VLANIF interface of the OLT according to the next-hop IPv6 address, and performing neighbor learning between the OLT and the client until the next-hop IPv6 address takes effect.
In this embodiment, the Reply message is forwarded to the client through the downstream VLANIF interface of the OLT, neighbor learning is performed between the OLT and the client, and after the NDP entry is included in the NDP (Neighbor Discovery Protocol ) entry of the client is requested, the next-hop information of the PD route is calculated to be actually effective, and the IPv6 service can be actually routed to the specific downstream client.
Further, in an embodiment, referring to fig. 4, fig. 4 is a schematic route storage flow chart of an embodiment of a route publishing method according to the present invention, as shown in fig. 4, before step S50, including:
Step S03, constructing a PD route convergence table and an association table of an IGP route protocol instance;
And step S04, storing the PD route convergence table, the association table of the IGP route protocol instance, the PD route table and the PD route convergence table for recovering the service when the OLT is restarted.
In this embodiment, the association tables of the PD route aggregation table and the IGP route protocol instance mainly store the aggregated route information (i.e., the information in the PD route aggregation table) and the information of the corresponding IGP route protocol instance, and the association tables of the PD route aggregation table and the IGP route protocol instance, the PD route table (mainly including a PD route prefix, a prefix mask, a next hop IPv6 address, and a VPN instance) and the PD route aggregation table (the route aggregation table is obtained after route aggregation according to the routes in the PD route table) are stored.
Further, in an embodiment, the PD route aggregation table includes one or more PD route aggregation sub-tables, where each VPN instance is stored using one PD route aggregation sub-table, referring to fig. 5, fig. 5 is a detailed flowchart of step S50 in fig. 1, and as shown in fig. 5, step S50 includes:
Step S501, determining IGP routing protocol examples corresponding to each PD routing convergence sub-table according to VPN examples in each PD routing convergence sub-table;
Step S502, issuing each PD route convergence sub-table to an upper layer switching network through an IGP route protocol instance corresponding to each PD route convergence sub-table.
In this embodiment, in the previous step, the uplink VLANIF interface of the OLT and the VPN instance are bound, and an IGP routing protocol instance corresponding to the VPN instance is created, that is, the one-to-one binding of the information including the VPN instance and the IGP routing protocol instance in the PD routing table is implemented, and each PD route in the PD routing table includes VPN instance information, that is, represents a different VPN domain from which the PD route comes, and the IGP routing protocol instance can only issue a converged route of the same VPN forwarding domain. And the routing convergence table obtained after the routing convergence is carried out by the PD routing table comprises one or more PD routing convergence sub-tables, wherein each VPN instance is stored by using one PD routing convergence sub-table, according to VPN instance information in each PD routing convergence sub-table, the corresponding IGP routing protocol instance of each PD routing convergence sub-table can be determined, and then each PD routing convergence sub-table is issued to an upper-layer switching network through the corresponding IGP routing protocol instance of each PD routing convergence sub-table.
Further, in an embodiment, after the route aggregation is performed on the PD route table to obtain the PD route aggregation table, the method includes:
And when detecting that the PD route prefix changes, updating the PD route table and the PD route convergence table.
In this embodiment, referring to fig. 6, fig. 6 is a schematic route update flow chart of an embodiment of the route issuing method of the present invention, as shown in fig. 6, by using an uplink or downlink VLANIF interface of the OLT, whether a PD route prefix changes is detected, when a situation that a PD prefix is increased, aging and clearing is detected, management of the PD prefix is performed, a PD route table (in fig. 6, "vpnid+pd prefix" is information in the PD route table, where VPNID is a unique identifier of a VPN instance) is updated, further, PD prefix aggregation is triggered, PD aggregation management is performed, a PD route aggregation table is updated, information of an IGP route protocol instance is associated on the basis of the updated PD route aggregation table, an association table of the updated PD route aggregation table and an IGP route protocol instance (i.e., "vpnid+ IGP INSTANCE aggregation route" in fig. 6 is information contained in the updated PD route aggregation table) is constructed, association of the route aggregation table and the IGP route aggregation table, and the updated PD route is stored in a fast-restore mode when the service is restored.
In a second aspect, the embodiment of the invention further provides a route issuing device.
Referring to fig. 7, fig. 7 is a schematic diagram of a functional module of an embodiment of a route issuing device according to the present invention.
In this embodiment, the route issuing device includes:
The acquisition module 10 is configured to acquire a Reply message sent by the DHCPv6 PD server, and parse the Reply message to obtain a PD routing prefix, a prefix mask, and a next-hop IPv6 address;
A determining module 20, configured to determine a VPN instance and an IGP routing protocol instance according to an uplink VLANIF interface of the OLT;
A construction module 30, configured to construct a PD routing table according to the PD routing prefix, the prefix mask, the next-hop IPv6 address, and the VPN instance;
the aggregation module 40 is configured to perform route aggregation on the PD routing table to obtain a PD routing aggregation table;
And the issuing module 50 is configured to issue the PD route aggregation table to the upper layer switching network through the IGP route protocol instance.
Further, in an embodiment, the route issuing device further includes a binding module, configured to:
When the OLT is used as the relay device of the DHCPv6, the uplink VLANIF interface of the OLT and the VPN instance are bound, and an IGP routing protocol instance corresponding to the VPN instance is created.
Further, in an embodiment, the route issuing device further includes a request module, configured to:
the OLT starts an IPv4 and IPv6 dual stack mode, and starts a DHCPv6 PD relay mode under different VLANIF interfaces;
and the OLT sends a Solicit message to the DHCPv6 PD server, and requests the DHCPv6 PD server to allocate an IPv6 address and a PD routing prefix.
Further, in an embodiment, the route issuing device further includes a forwarding module, configured to:
and forwarding the Reply message to the client through a downlink VLANIF interface of the OLT according to the next-hop IPv6 address, and performing neighbor learning between the OLT and the client until the next-hop IPv6 address takes effect.
Further, in an embodiment, the route issuing device further includes a storage module, configured to:
constructing a PD route convergence table and an association table of an IGP route protocol instance;
And storing the PD route convergence table, the association table of the IGP route protocol instance, the PD route table and the PD route convergence table for recovering the service when the OLT is restarted.
Further, in an embodiment, the PD route aggregation table includes one or more PD route aggregation sub-tables, where each VPN instance is stored using one PD route aggregation sub-table, and the publishing module 50 is configured to:
determining IGP routing protocol examples corresponding to each PD routing convergence sub-table according to the VPN examples in each PD routing convergence sub-table;
and respectively issuing each PD route convergence sub-table to an upper layer switching network through an IGP route protocol instance corresponding to each PD route convergence sub-table.
Further, in an embodiment, the route issuing device further includes an update module, configured to:
And when detecting that the PD route prefix changes, updating the PD route table and the PD route convergence table.
The function implementation of each module in the route issuing device corresponds to each step in the route issuing method embodiment, and the function and implementation process of each module are not described in detail herein.
In a third aspect, an embodiment of the present invention provides a route publishing device.
Referring to fig. 8, fig. 8 is a schematic hardware structure of an embodiment of a route issuing device according to the present invention. In an embodiment of the present invention, the route distribution device may include a processor 1001 (e.g., a central processing unit Central Processing Unit, a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., wireless FIdelity WIreless-FICAT interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM) or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may alternatively be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 8 is not limiting of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to fig. 8, an operating system, a network communication module, a user interface module, and a route distribution program may be included in the memory 1005 of fig. 8, which is a type of computer storage medium. The processor 1001 may call a route distribution program stored in the memory 1005, and execute the route distribution method provided by the embodiment of the present invention.
In a fourth aspect, embodiments of the present invention also provide a readable storage medium.
The readable storage medium of the present invention stores a route distribution program, wherein the route distribution program, when executed by a processor, implements the steps of the route distribution method described above.
The method implemented when the route distribution program is executed may refer to various embodiments of the route distribution method of the present invention, and will not be described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The route issuing method is characterized by comprising the following steps of:
the method comprises the steps of obtaining a Reply message issued by a DHCPv6 PD server, and analyzing the Reply message to obtain a PD routing prefix, a prefix mask and a next-hop IPv6 address;
Determining a VPN instance and an IGP routing protocol instance according to an uplink VLANIF interface of the OLT;
According to the PD route prefix, the prefix mask, the next hop IPv6 address and the VPN example, constructing and obtaining a PD route table;
Carrying out route aggregation on the PD route table to obtain a PD route aggregation table;
And issuing the PD route convergence table to an upper-layer switching network through the IGP route protocol instance.
2. The route publishing method of claim 1, wherein before the Reply message sent by the DHCPv6PD server is obtained, resolving the Reply message to obtain a PD route prefix, a prefix mask, and a next-hop IPv6 address, comprising:
When the OLT is used as the relay device of the DHCPv6, the uplink VLANIF interface of the OLT and the VPN instance are bound, and an IGP routing protocol instance corresponding to the VPN instance is created.
3. The route publishing method of claim 1, wherein before the Reply message sent by the DHCPv6PD server is obtained, resolving the Reply message to obtain a PD route prefix, a prefix mask, and a next-hop IPv6 address, further comprising:
the OLT starts an IPv4 and IPv6 dual stack mode, and starts a DHCPv6 PD relay mode under different VLANIF interfaces;
and the OLT sends a Solicit message to the DHCPv6 PD server, and requests the DHCPv6 PD server to allocate an IPv6 address and a PD routing prefix.
4. The route distribution method according to claim 1, wherein before constructing the PD routing table according to the PD routing prefix, the prefix mask, the next-hop IPv6 address, and the VPN instance, the method includes:
and forwarding the Reply message to the client through a downlink VLANIF interface of the OLT according to the next-hop IPv6 address, and performing neighbor learning between the OLT and the client until the next-hop IPv6 address takes effect.
5. The route distribution method according to claim 1, comprising, before said distributing the PD route convergence table to the upper layer switching network via the IGP routing protocol instance:
constructing a PD route convergence table and an association table of an IGP route protocol instance;
And storing the PD route convergence table, the association table of the IGP route protocol instance, the PD route table and the PD route convergence table for recovering the service when the OLT is restarted.
6. The route distribution method according to claim 2, wherein the PD route aggregation table includes one or more PD route aggregation sub-tables, wherein each VPN instance is stored using one PD route aggregation sub-table, and the distributing the PD route aggregation table to the upper layer switching network through IGP route protocol instances includes:
determining IGP routing protocol examples corresponding to each PD routing convergence sub-table according to the VPN examples in each PD routing convergence sub-table;
and respectively issuing each PD route convergence sub-table to an upper layer switching network through an IGP route protocol instance corresponding to each PD route convergence sub-table.
7. The route distribution method according to claim 1, wherein after the route aggregation is performed on the PD route table, the method further comprises:
And when detecting that the PD route prefix changes, updating the PD route table and the PD route convergence table.
8. A route distribution device, characterized in that the route distribution device comprises:
The acquisition module is used for acquiring the Reply message issued by the DHCPv6 PD server, analyzing the Reply message and obtaining the PD routing prefix, the prefix mask and the next hop IPv6 address;
the determining module is used for determining a VPN instance and an IGP routing protocol instance according to the uplink VLANIF interface of the OLT;
The construction module is used for constructing and obtaining a PD routing table according to the PD routing prefix, the prefix mask, the next hop IPv6 address and the VPN example;
the aggregation module is used for carrying out route aggregation on the PD routing table to obtain a PD routing aggregation table;
and the issuing module is used for issuing the PD route convergence table to the upper-layer switching network through the IGP route protocol instance.
9. A route distribution device comprising a processor, a memory, and a route distribution program stored on the memory and executable by the processor, wherein the route distribution program, when executed by the processor, implements the steps of the route distribution method according to any one of claims 1 to 7.
10. A readable storage medium, wherein a route distribution program is stored on the readable storage medium, wherein the route distribution program, when executed by a processor, implements the steps of the route distribution method according to any one of claims 1 to 7.
CN202310105784.3A 2023-02-13 2023-02-13 Route issuing method, device, equipment and readable storage medium Active CN116095000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310105784.3A CN116095000B (en) 2023-02-13 2023-02-13 Route issuing method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310105784.3A CN116095000B (en) 2023-02-13 2023-02-13 Route issuing method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN116095000A CN116095000A (en) 2023-05-09
CN116095000B true CN116095000B (en) 2024-05-10

Family

ID=86200654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310105784.3A Active CN116095000B (en) 2023-02-13 2023-02-13 Route issuing method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116095000B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143050A (en) * 2010-09-29 2011-08-03 华为终端有限公司 Network connection processing method and device for internet protocol version 6 (IPv6) network
CN102413033A (en) * 2010-09-26 2012-04-11 华为技术有限公司 Method, device and system for realizing route aggregation
CN102439918A (en) * 2011-10-11 2012-05-02 华为技术有限公司 Method, device and system for transmittig message
US9654331B1 (en) * 2011-07-27 2017-05-16 Cisco Technology, Inc. System and method for recovery of customer premise equipment information on an access concentrator
CN111954102A (en) * 2020-07-16 2020-11-17 烽火通信科技股份有限公司 Routing control method and device in DHCPV6 PD scene
CN112584393A (en) * 2019-09-27 2021-03-30 上海华为技术有限公司 Base station configuration method, device, equipment and medium
CN113872843A (en) * 2020-06-30 2021-12-31 华为技术有限公司 Route generation method, route processing method and device
WO2023274083A1 (en) * 2021-06-29 2023-01-05 华为技术有限公司 Route publishing method and apparatus, packet forwarding method and apparatus, device, and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8121032B2 (en) * 2008-05-30 2012-02-21 Cisco Technology, Inc. Efficient convergence of grouped VPN prefixes
US11516112B2 (en) * 2020-10-20 2022-11-29 Ciena Corporation Optimized layer 3 VPN control plane using segment routing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413033A (en) * 2010-09-26 2012-04-11 华为技术有限公司 Method, device and system for realizing route aggregation
CN102143050A (en) * 2010-09-29 2011-08-03 华为终端有限公司 Network connection processing method and device for internet protocol version 6 (IPv6) network
US9654331B1 (en) * 2011-07-27 2017-05-16 Cisco Technology, Inc. System and method for recovery of customer premise equipment information on an access concentrator
CN102439918A (en) * 2011-10-11 2012-05-02 华为技术有限公司 Method, device and system for transmittig message
CN112584393A (en) * 2019-09-27 2021-03-30 上海华为技术有限公司 Base station configuration method, device, equipment and medium
CN113872843A (en) * 2020-06-30 2021-12-31 华为技术有限公司 Route generation method, route processing method and device
CN111954102A (en) * 2020-07-16 2020-11-17 烽火通信科技股份有限公司 Routing control method and device in DHCPV6 PD scene
WO2023274083A1 (en) * 2021-06-29 2023-01-05 华为技术有限公司 Route publishing method and apparatus, packet forwarding method and apparatus, device, and storage medium

Also Published As

Publication number Publication date
CN116095000A (en) 2023-05-09

Similar Documents

Publication Publication Date Title
US7260648B2 (en) Extension of address resolution protocol (ARP) for internet protocol (IP) virtual networks
US20160065503A1 (en) Methods, systems, and computer readable media for virtual fabric routing
US8750288B2 (en) Physical path determination for virtual network packet flows
US8488491B2 (en) Compressed virtual routing and forwarding in a communications network
US8208463B2 (en) Subnet scoped multicast / broadcast packet distribution mechanism over a routed network
US7283529B2 (en) Method and system for supporting a dedicated label switched path for a virtual private network over a label switched communication network
EP3488564B1 (en) Method for fast convergence in layer 2 overlay network and non-transitory computer readable storage medium
US10320666B2 (en) Method and device for processing routing status and/or policy information
EP1811728B1 (en) Method, system and device of traffic management in a multi-protocol label switching network
CN106878288B (en) message forwarding method and device
EP3420687B1 (en) Addressing for customer premises lan expansion
US8988985B2 (en) Internetworking and IP address management in unified MPLS and IP networks
US10749797B2 (en) Service label routing in a network
CN112671650A (en) End-to-end SR control method, system and readable storage medium under SD-WAN scene
US10887227B2 (en) Methods and apparatuses for routing data packets in a network topology
CN116095000B (en) Route issuing method, device, equipment and readable storage medium
CN110620715B (en) Virtual extended local area network communication method, tunnel endpoint and controller
US20220094626A1 (en) Method and Apparatus for Implementing Multicast
US10091106B2 (en) Method for implementing layer 3 virtual private network and device
Cisco alias through copy
Cisco alias through copy
Cisco alias through copy
US20100329258A1 (en) Dynamically enabling mpls stations and ports using an arp database
US10812446B1 (en) Dynamic host configuration across multiple sites in software defined access networks
US11706185B2 (en) Address resolution protocol (ARP) response to ARP requests

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
GR01 Patent grant
GR01 Patent grant