Information processing method and device
By using the benchmark IGP process to collect routing topology information and generate FIB tables on the physical interface of network devices, the problem of repeated collection of information by IGP processes is solved, saving device resources and improving resource utilization.
Patent Information
- Application Number
- CN202211476809.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-11-23
AI Technical Summary
In networks using network slicing technology, since IGP processes need to collect the same routing topology information separately, the device resource consumption is too much.
The benchmark IGP process is used to collect routing topology information on each physical interface of the network device, and generate FIB tables for the VRF instances corresponding to each sub-interface, reducing the number of IGP processes and forwarding only when receiving data packets.
This greatly saves equipment resources, reduces the number of IGP processes running, improves resource utilization, and updates the FIB table when necessary to deal with interface changes.
Smart Images

Figure CN115865774B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an information processing method and device. Background Art
[0002] Virtual Routing and Forwarding (VRF) technology is a new virtualization technology that virtualizes a physical device into multiple logical devices.
[0003] As business needs and application scenarios become increasingly diversified, the industry has proposed the concept of network slicing in order to meet the differentiated needs of different businesses in the same network. Network slicing technology provides a guarantee for the differentiation of multiple services under limited network resources. In a network using network slicing technology, multiple sub-interfaces (also called slice interfaces) are created on each physical interface connected to other network devices on each network device in the network. For each physical interface on each network device, each sub-interface included in the physical interface is bound to a VRF instance, and different sub-interfaces are bound to different VRF instances. The IP addresses of these sub-interfaces are the same, and an Interior Gateway Protocol (IGP) process is run for each VRF instance, which is responsible for collecting relevant routing topology information, calculating routes, and other operations. The number of sub-interfaces included in each physical interface on these network devices and the VRF instances corresponding to the sub-interfaces are the same, and each VRF instance forms a network slice.
[0004] For example, Figure 1 As shown, a network device 1 in a certain network is schematically shown, and a physical interface 1 ( Figure 1 ) are created on the physical interface 2 ( Figure 1 3 sub-interfaces are created on the VRF instance 1, sub-interface 2 is bound to VRF instance 2, and sub-interface 3 is bound to VRF instance 3; sub-interface 4 is bound to VRF instance 1, sub-interface 5 is bound to VRF instance 2, and sub-interface 6 is bound to VRF instance 3. That is, the network includes 3 network slices.
[0005] In actual applications, since the routing topology information collected by these IGP processes is often the same, these IGP processes still need to be run separately to collect the information, which results in the consumption of more device resources. Summary of the invention
[0006] In order to overcome the problems existing in the related art, the present application provides an information processing method and device.
[0007] According to a first aspect of an embodiment of the present application, there is provided an information processing method, the method being applied to a network device, the method comprising:
[0008] For each physical interface on itself, collecting first routing topology information through a benchmark IGP process, wherein the physical interface includes a plurality of sub-interfaces;
[0009] Generate a corresponding forwarding information base (FIB) table for each VRF instance corresponding to each sub-interface in the physical interface according to the collected first routing topology information through the benchmark IGP process, wherein different sub-interfaces in the physical interface correspond to different VRF instances, and all sub-interfaces have the same IP address;
[0010] When a data message is received through any sub-interface of the physical interface, the data message is forwarded based on the FIB table corresponding to the VRF instance corresponding to the sub-interface.
[0011] According to a second aspect of an embodiment of the present application, there is provided an information processing apparatus, the apparatus being applied to a network device, the apparatus comprising:
[0012] A collection module, configured to collect first routing topology information through a reference IGP process for each physical interface on the module, wherein the physical interface includes a plurality of sub-interfaces;
[0013] A generation module, configured to generate a corresponding FIB table for each VRF instance corresponding to each sub-interface in the physical interface according to the collected first routing topology information through the benchmark IGP process, wherein different sub-interfaces in the physical interface correspond to different VRF instances, and all sub-interfaces have the same IP address;
[0014] The processing module is used to forward the data message based on the FIB table corresponding to the VRF instance corresponding to the sub-interface when the data message is received through any sub-interface in the physical interface.
[0015] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0016] In an embodiment of the present application, the network device no longer runs an IGP process for the VRF instance corresponding to each sub-interface in each physical interface on itself to collect the same routing topology information respectively, but runs a baseline IGP process for these VRF instances. The baseline IGP process collects relevant routing topology information and generates a FIB table for these VRF instances, which greatly saves device resources.
[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
[0019] Figure 1 A schematic diagram of the structure of a network device 1 in a certain network provided in an embodiment of the present application;
[0020] Figure 2 A flowchart of an information processing method provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0024] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0025] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".
[0026] Next, the embodiments of the present application are described in detail.
[0027] The present application embodiment provides an information processing method, which is applied to a network device, such as Figure 2 As shown, the method may include the following steps:
[0028] S21. For each physical interface on itself, collect first routing topology information through a reference IGP process.
[0029] In this step, each physical interface includes multiple sub-interfaces.
[0030] S22. Generate a corresponding FIB table for each VRF instance corresponding to each sub-interface in the physical interface according to the collected first routing topology information through the benchmark IGP process.
[0031] In this step, different sub-interfaces in the physical interface correspond to different VRF instances, and all sub-interfaces have the same IP address.
[0032] S23. When a data packet is received through any sub-interface in the physical interface, forwarding processing is performed on the data packet based on the FIB table corresponding to the VRF instance corresponding to the sub-interface.
[0033] It should be noted that in the above step S22, for the network device, when a corresponding FIB table is generated for the VRF instance corresponding to each sub-interface in the physical interface according to the collected first routing topology information through the baseline IGP process, the specific generation process is similar to the generation process of the corresponding FIB table for the corresponding VRF by the network device in the prior art through any IGP process running, and will not be described in detail here.
[0034] Here, the above-mentioned reference IGP process may be an IGP process running for a specified VRF embodiment, and the routing topology information corresponding to the specified VRF embodiment does not change frequently.
[0035] Furthermore, in the above step S23, when the network device forwards the data message based on the FIB table corresponding to the VRF instance corresponding to the sub-interface, the specific processing process is the existing technology and will not be described in detail here.
[0036] By executing the above steps S21 to S23, the network device can save the number of IGP processes running in the network device, thereby saving device resources.
[0037] In addition, in the embodiment of the present application, the network device also performs keep-alive interaction with neighboring network devices through the benchmark IGP process, thereby further saving device resources.
[0038] Furthermore, in the embodiment of the present application, the network device may also perform the following operations:
[0039] When a disconnection (Down) event / connection (Up) event occurs on the physical interface through the benchmark IGP process, the second routing topology information is collected again through the benchmark IGP process;
[0040] The FIB table corresponding to the VRF instance corresponding to each sub-interface in the physical interface is updated respectively according to the re-collected second routing topology information through the benchmark IGP process.
[0041] By performing the above operations, the network device can timely update the FIB table corresponding to the VRF instance corresponding to each sub-interface in the physical interface.
[0042] Furthermore, in the embodiment of the present application, the network device may also perform the following operations:
[0043] When it is detected through the reference IGP process that there is a first target sub-interface with changed IGP configuration information among all the sub-interfaces in the physical interface, collecting third routing topology information through the standby IGP process;
[0044] The FIB table corresponding to the VRF instance corresponding to the target sub-interface is updated according to the collected third routing topology information through the standby IGP process;
[0045] Among them, the standby IGP process is created after the network device collects the first routing topology information through the benchmark IGP process, or is created after the network device monitors through the benchmark IGP process the last time that there is a second target sub-interface in all sub-interfaces in the physical interface whose IGP configuration information has changed, and collects the fourth routing topology information through the last created standby IGP process.
[0046] That is, once the reference IGP process detects that there is a sub-interface with changed IGP configuration information among all the sub-interfaces in the physical interface, the network device no longer uses the reference IGP process, but uses the relevant standby IGP process to collect relevant routing topology information.
[0047] Here, the number of sub-interfaces whose IGP configuration information is changed may be one or more, and the IGP configuration information may specifically be a cost (COST) value of a corresponding sub-interface or IGP enabling information, and the like.
[0048] In addition, in the embodiment of the present application, in order to save device resources, the network device may also perform the following operations:
[0049] When it is detected that the calculation value obtained by setting the fifth routing topology information newly collected by the standby IGP process through the standby IGP process is the same as the calculation value obtained by setting the sixth routing topology information newly collected by the benchmark IGP process through the benchmark IGP process, the standby IGP process is deregistered.
[0050] In this operation flow, the above-mentioned setting operation is MD5 operation. Of course, it can also be the operation of other algorithms, which will not be listed here one by one.
[0051] It can be seen from the above technical solution that in the embodiment of the present application, the network device no longer runs an IGP process for the VRF instance corresponding to each sub-interface in each physical interface on itself, but runs a baseline IGP process for these VRF instances. The baseline IGP process collects relevant routing topology information and generates a FIB table for these VRF instances, which greatly saves device resources.
[0052] Based on the same inventive concept, the present application also provides an information processing device, the structural diagram of which is shown in FIG. Figure 3 As shown, specifically including:
[0053] A collecting module 31 is used to collect first routing topology information for each physical interface on itself through a reference internal gateway protocol IGP process, wherein the physical interface includes a plurality of sub-interfaces;
[0054] A generating module 32 is used to generate a corresponding forwarding information base FIB table for each virtual routing forwarding VRF instance corresponding to each sub-interface in the physical interface according to the collected first routing topology information through the benchmark IGP process, wherein different sub-interfaces in the physical interface correspond to different VRF instances, and the IP addresses of all sub-interfaces are the same;
[0055] The processing module 33 is used to forward the data message based on the FIB table corresponding to the VRF instance corresponding to the sub-interface when receiving the data message through any sub-interface in the physical interface.
[0056] Preferably, the device further comprises:
[0057] First collection update module ( Figure 3 ), for re-collecting the second routing topology information through the reference IGP process when a Down event / Up event occurs on the physical interface monitored through the reference IGP process; and
[0058] The FIB table corresponding to the VRF instance corresponding to each sub-interface in the physical interface is updated respectively according to the re-collected second routing topology information through the benchmark IGP process.
[0059] Preferably, the device further comprises:
[0060] The second collection update module ( Figure 3 ), for collecting third routing topology information through a standby IGP process when a first target sub-interface with a changed IGP configuration information is detected among all sub-interfaces in the physical interface through the reference IGP process; and
[0061] Updating, by the standby IGP process, a FIB table corresponding to the VRF instance corresponding to the target sub-interface according to the collected third routing topology information;
[0062] Among them, the backup IGP process is created by the network device after collecting the first routing topology information through the benchmark IGP process, or is created by the network device after monitoring through the benchmark IGP process the last time that there is a second target sub-interface in all sub-interfaces in the physical interface whose IGP configuration information has changed, and collecting the fourth routing topology information through the last created backup IGP process.
[0063] Preferably, the device further comprises:
[0064] Logout module( Figure 3 ), is used to deregister the standby IGP process when it detects that the calculation value obtained by performing the setting operation on the fifth routing topology information newly collected by the standby IGP process through the standby IGP process is the same as the calculation value obtained by performing the setting operation on the sixth routing topology information newly collected by the benchmark IGP process through the benchmark IGP process.
[0065] Preferably, the setting operation is an MD5 operation.
[0066] It can be seen from the above technical solution that in the embodiment of the present application, the network device no longer runs an IGP process for the VRF instance corresponding to each sub-interface in each physical interface on itself, but runs a baseline IGP process for these VRF instances. The baseline IGP process collects relevant routing topology information and generates a FIB table for these VRF instances, which greatly saves device resources.
[0067] The present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 41 and a machine-readable storage medium 42, wherein the machine-readable storage medium 42 stores machine-executable instructions that can be executed by the processor 41, and the processor 41 is prompted by the machine-executable instructions to implement the steps of the above-mentioned information processing method.
[0068] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.
[0069] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0070] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned information processing method are implemented.
[0071] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. An information processing method, characterized in that: The method is applied to a network device, and the method comprises: For each physical interface on itself, collecting first routing topology information through a reference internal gateway protocol IGP process, wherein the physical interface includes a plurality of sub-interfaces; Generate a corresponding forwarding information base FIB table for each virtual routing forwarding VRF instance corresponding to each sub-interface in the physical interface according to the collected first routing topology information through the benchmark IGP process, wherein different sub-interfaces in the physical interface correspond to different VRF instances, and all sub-interfaces have the same IP address; When a data message is received through any sub-interface of the physical interface, the data message is forwarded based on the FIB table corresponding to the VRF instance corresponding to the sub-interface.
2. The method according to claim 1, characterized in that The method further comprises: When a Down event / Up event occurs on the physical interface monitored by the benchmark IGP process, re-collecting the second routing topology information by the benchmark IGP process; The FIB table corresponding to the VRF instance corresponding to each sub-interface in the physical interface is updated respectively according to the re-collected second routing topology information through the benchmark IGP process.
3. The method according to claim 1, characterized in that: The method further comprises: When it is detected through the reference IGP process that there is a first target sub-interface in which the IGP configuration information of all the sub-interfaces in the physical interface has changed, collecting third routing topology information through the standby IGP process; Updating, by the standby IGP process, a FIB table corresponding to the VRF instance corresponding to the target sub-interface according to the collected third routing topology information; Among them, the backup IGP process is created by the network device after collecting the first routing topology information through the benchmark IGP process, or is created by the network device after monitoring through the benchmark IGP process the last time that there is a second target sub-interface in all sub-interfaces in the physical interface whose IGP configuration information has changed, and collecting the fourth routing topology information through the last created backup IGP process.
4. The method according to claim 3, characterized in that The method further comprises: When it is monitored that the calculation value obtained by performing the setting operation on the fifth routing topology information newly collected by the standby IGP process through the standby IGP process is the same as the calculation value obtained by performing the setting operation on the sixth routing topology information newly collected by the benchmark IGP process through the benchmark IGP process, the standby IGP process is deregistered.
5. The method according to claim 4, characterized in that The setting operation is an MD5 operation.
6. An information processing device, characterized in that: The device is applied to a network device, and the device comprises: A collecting module, configured to collect first routing topology information for each physical interface on the module through a reference internal gateway protocol IGP process, wherein the physical interface includes a plurality of sub-interfaces; A generation module, configured to generate a corresponding forwarding information base FIB table for a virtual routing forwarding VRF instance corresponding to each sub-interface in the physical interface according to the collected first routing topology information through the benchmark IGP process, wherein different sub-interfaces in the physical interface correspond to different VRF instances, and all sub-interfaces have the same IP address; The processing module is used to forward the data message based on the FIB table corresponding to the VRF instance corresponding to the sub-interface when the data message is received through any sub-interface in the physical interface.
7. The device according to claim 6, characterized in that The device also includes: A first collection and update module is used to re-collect the second routing topology information through the reference IGP process when a Down event / Up event occurs on the physical interface monitored through the reference IGP process; and The FIB table corresponding to the VRF instance corresponding to each sub-interface in the physical interface is updated respectively according to the re-collected second routing topology information through the benchmark IGP process.
8. The device according to claim 6, characterized in that The device also includes: A second collection and update module is configured to collect third routing topology information through a standby IGP process when a first target sub-interface with changed IGP configuration information is detected among all sub-interfaces in the physical interface through the reference IGP process; and Updating, by the standby IGP process, a FIB table corresponding to the VRF instance corresponding to the target sub-interface according to the collected third routing topology information; Among them, the backup IGP process is created by the network device after collecting the first routing topology information through the benchmark IGP process, or is created by the network device after monitoring through the benchmark IGP process the last time that there is a second target sub-interface in all sub-interfaces in the physical interface whose IGP configuration information has changed, and collecting the fourth routing topology information through the last created backup IGP process.
9. The device according to claim 8, characterized in that The device also includes: A deregistration module is used to deregister the standby IGP process when it is detected that the calculation value obtained by performing a setting operation on the fifth routing topology information newly collected by the standby IGP process through the standby IGP process is the same as the calculation value obtained by performing the setting operation on the sixth routing topology information newly collected by the benchmark IGP process through the benchmark IGP process.
10. The device according to claim 9, characterized in that The setting operation is an MD5 operation.
