CN107547364B - Route issuing method, device and network equipment - Google Patents
Route issuing method, device and network equipment Download PDFInfo
- Publication number
- CN107547364B CN107547364B CN201710700296.1A CN201710700296A CN107547364B CN 107547364 B CN107547364 B CN 107547364B CN 201710700296 A CN201710700296 A CN 201710700296A CN 107547364 B CN107547364 B CN 107547364B
- Authority
- CN
- China
- Prior art keywords
- routing information
- routing
- route
- switching
- table entry
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The disclosure provides a route issuing method, a device and network equipment, and belongs to the technical field of internet. The route issuing method is applied to network equipment, a processor of the network equipment is connected with a plurality of switching chips, and the switching chips belong to an MDC (media data center) equipment, and the method comprises the following steps: when the processor has routing information to be issued, selecting a target switching chip from a plurality of switching chips; sending the routing information to a target exchange chip; receiving the table entry position of the routing information in the routing table determined by the target exchange chip; and issuing the table entry position and the routing information to a plurality of switching chips. According to the route issuing method, the route issuing device and the network equipment, the route information is issued to all the switching chips according to the table entry position determined by one switching chip, and each switching chip is not required to perform calculation, so that the calculation time consumed by route issuing is shortened, and the route issuing efficiency is improved.
Description
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for issuing a route, and a network device.
Background
The routing table is used for storing routing information pointing to the network device, and when the switch forwards the data message, the switch needs to obtain a next hop network address and information such as a physical outgoing interface for forwarding the data message by querying the routing table, and forwards the data message to the next hop network device through the found outgoing interface. When a user changes networking configuration or a link changes, the switch needs to send new routing information to a routing table of the switch chip. Because the number of network devices in the network is large and the change is frequent, the switch needs to issue a large amount of routing information. Currently, the routing specification on a switch can reach the order of mega, depending on the specification of the hardware routing table.
Because the service board of the switch generally includes one or more switching chips, when a route in the routing table is added, deleted or modified, the route needs to be issued once per switching chip according to an interface provided by a chip manufacturer.
For a switch supporting MDC (multi tenant Device Context) configuration, the switch may be divided into multiple MDC devices through virtualization technology. Because different exchange chips on the single board can be divided into the same MDC equipment, the route issuing under the MDC environment is also issued according to the chip, and each exchange chip is issued once.
Because the routing table is generally a tree-structured soft table, and each switching chip has its own routing table, when the service board CPU issues a new route to the switching chip, each interaction chip needs to calculate the position of the new route in the routing table through software first, and then the CPU issues the route to the corresponding position. The larger the number of switching chips, the longer it takes to issue routes. Similarly, for the MDC environment, the more chips that are divided into the same MDC on the same board, the lower the corresponding route delivery efficiency.
For the switch with a large number of routes, if a user changes the networking configuration or a link changes, the routes on the switch are added, deleted or modified, so that if the routing issuing efficiency of the switch is low, the message sent by the user cannot reach the destination device for a long time, and even serious packet loss occurs when the routes are changed.
Disclosure of Invention
In view of this, the present disclosure aims to provide a method, an apparatus and a network device for routing delivery, which can improve the delivery efficiency of routing.
In order to achieve the above purpose, the technical scheme adopted by the disclosure is as follows:
in a first aspect, the present disclosure provides a method for issuing a route, where the method is applied to a network device, a processor of the network device is connected with multiple switch chips, and the multiple switch chips belong to one MDC device; the method comprises the following steps:
if the processor has routing information to be issued, selecting a target switching chip from the plurality of switching chips;
sending the routing information to the target exchange chip;
receiving the table entry position of the routing information in the routing table determined by the target switching chip;
and issuing the table entry position and the routing information to a plurality of switching chips.
In a second aspect, the present disclosure provides a route issuing device, where the route issuing device is applied to a network device, a processor of the network device is connected with multiple switch chips, and the multiple switch chips belong to one MDC device; the device comprises:
the target switching chip determining module is used for selecting one target switching chip from the plurality of switching chips if the processor has routing information to be issued;
the routing position determining module is used for issuing the routing information to the target exchange chip; receiving the table entry position of the routing information in the routing table determined by the target switching chip;
and the route issuing module is used for issuing the table entry position and the route information to the plurality of switching chips.
In a third aspect, the disclosed embodiments provide a network device, including a processor, a plurality of switch chips connected to the processor, and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor executing the machine-executable instructions to implement the above-mentioned method.
In a fourth aspect, the disclosed embodiments provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method described above.
According to the route issuing method, the route issuing device, the network equipment and the machine-readable storage medium, when the route information is issued for a plurality of switching chips belonging to one MDC equipment, only one switching chip can be selected to determine the table entry position of the route information in the route table, and the route information is issued to all the switching chips according to the table entry position without calculating by each switching chip, so that the calculation time which is long in route issuing time is shortened, and the route issuing efficiency is improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a first route issuing method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a second route issuing method according to the embodiment of the present disclosure;
fig. 3 is a flow chart of adding a route by using the route issuing method provided by the embodiment of the present disclosure;
fig. 4 is a flowchart of deleting a route by using the route issuing method provided by the embodiment of the present disclosure;
fig. 5 is a block diagram of a first route issuing device according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a second route issuing device according to the embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a network device for implementing route delivery according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present disclosure, but not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The embodiment of the disclosure provides a route issuing method, a device, a network device and a machine readable storage medium, aiming at the problem that the existing route issuing method has low route issuing efficiency in a multi-chip environment. The technology can be universally applied to network equipment such as a switch, a user gateway or a router, and the network equipment can comprise a main control board and a service board. The main control board is generally only responsible for the calculation of various network protocols, does not participate in the forwarding of service messages, and generally requires high CPU performance and a relatively large memory. The service board is mainly responsible for forwarding service messages, one or more switching chips connected with the service board CPU are arranged on the service board, and a routing table containing a large amount of routing information is stored in each switching chip. The types of the plurality of switching chips can be the same or different, but the routing tables of each switching chip are globally consistent, wherein the global consistency comprises that the storage modes of the routing tables of the switching chips are the same, and the table entry positions of the same routing information in the routing tables are the same.
The network device may also support MDC configuration, where the MDC configuration may divide a network device into multiple logical devices through a virtualization technology, and each logical device is referred to as an MDC device. Each MDC device has own exclusive software and hardware resources, operates independently, forwards independently and provides services independently. If one MDC device is created, started, restarted and deleted, the operation of other MDC devices is not influenced. Each MDC device is a separate physical device for the user. The MDC devices are isolated from each other, cannot communicate directly, and have high security. For the manager, when a new branch office is added, the expense for purchasing new network equipment and upgrading the network equipment hardware can be saved by dividing the MDC, and the utilization rate of the existing network resources is improved. Meanwhile, a plurality of MDC devices are integrated on one physical device, so that the management and maintenance cost can be effectively reduced.
The following describes in detail a route issuing method, an apparatus, a network device, and a machine-readable storage medium according to the present disclosure by using specific embodiments.
The first embodiment is as follows:
this embodiment provides a route issuing method, which is applied to the above network device, where the network device includes at least a processor and multiple switch chips connected to the processor, and the multiple switch chips belong to one MDC device, so that routing tables in the multiple switch chips can be globally consistent. The service boards of multiple switching chips can be regarded as belonging to the same MDC device.
As shown in fig. 1, the flow chart of the route issuing method includes the following steps:
step S101, if the processor has routing information to be issued, selecting a target switching chip from a plurality of switching chips.
When applied to different network environments, the processor may be a service board CPU or a processor of an MDC device, and will be described in two cases.
One situation is: a plurality of switching chips belong to the same service board, and each switching chip is connected with a service board CPU. If the service board CPU receives a remote-end route operation request or learns a new remote-end route, one switching chip can be arbitrarily selected from a plurality of switching chips to be used as a target switching chip; the first exchange chip of the service board or the default exchange chip of the system can also be used as the target exchange chip, and the mode can avoid that the target exchange chip is determined again when the route is issued every time, thereby saving the program.
The other situation is as follows: for a network device supporting MDC configuration, multiple switching chips belong to the same MDC device. When the MDC is created, the main control board CPU and the service board CPU create corresponding task processes in the processor of the MDC device, and each time an MDC device is created, a related task process is created, and the task processes between different MDC devices are independent from each other. If a routing Protocol such as Open Shortest Path First (OSPF), Border Gateway Protocol (BGP), etc. is enabled on a port of a certain MDC device, when a new remote route is learned, a forwarding task corresponding to a main control board CPU synchronizes a routing message to a forwarding task corresponding to a service board CPU. The forwarding task corresponding to the service board CPU sends the current routing message to the driving module, and the driving module analyzes the routing message to obtain a KEY (keyword) of the route: DIP (destination IP address) and the result of the lookup, next hop, etc.
After the routing information is obtained through analysis, the processor of the MDC device needs to issue the routing information to the routing table of each switching chip for storage. At this time, the processor of the MDC device may arbitrarily select one switching chip from the plurality of switching chips as a target switching chip; the first switching chip of the MDC device or the system default switching chip may also be used as the target switching chip.
And step S102, sending the routing information to a target exchange chip.
Specifically, the processor of the service board CPU or the MDC device issues the routing information to the target switching chip, so that the target switching chip calculates the entry position of the routing information in the routing table according to a set algorithm. The set algorithm may adopt a conventional calculation method. For example, the branch to which the routing information belongs in the routing table is calculated from the prefix of the DIP.
Step S103, receiving the table entry position of the routing information in the routing table determined by the target exchange chip.
Step S104, the table position and the routing information are sent to a plurality of exchange chips.
After receiving the table entry position of the routing information in the routing table returned by the target switching chip, the service board CPU or the processor of the MDC device issues the table entry position and the routing information to the plurality of switching chips in a broadcast manner.
The routing issuing method provided by the embodiment of the disclosure can select only one switching chip to determine the table entry position of the routing information in the routing table when issuing the routing information for a plurality of switching chips belonging to the same MDC device, and issues the routing information to all the switching chips according to the calculation result of the switching chip without calculating each switching chip, thereby reducing the calculation time consuming longer in routing issuing, improving the issuing efficiency of the routing, and effectively reducing the packet loss phenomenon occurring when the routing changes.
Example two:
the present embodiment provides a more preferable route issuing method, which is also applied to a network device including a plurality of switch chips, where the plurality of switch chips are connected to a processor of the network device, and the routing tables in the switch chips are globally consistent. The network device supports a DMA (Direct Memory Access) issuing mode of the route, that is, all the switch chips of the network device support the DMA issuing mode of the route. Referring to the flowchart of the route issuing method shown in fig. 2, the method includes the following steps:
step S201, if the processor has routing information to be issued, a target switching chip is selected from the plurality of switching chips. Similar to the first embodiment, in different network environments, the processor may also be a processor of a service board CPU or an MDC device, and details are not described herein.
Step S202, the routing information is sent to the target exchange chip.
Step S203, receiving the table entry position of the routing information in the routing table determined by the target switch chip.
The processor receives the table entry position of the routing information in the routing table returned by the target switching chip, and stores the table entry position and the routing information into a DMA cache area of the storage chip. Alternatively, the target switch chip stores the entry location and routing information in the DMA cache.
Step S204, judging whether the number of the routing information of the current determined table entry position reaches a preset threshold value; if yes, go to step S205; if not, return to step S201.
Step S205, issue each routing information and the corresponding table entry position to multiple switch chips.
If the table entry positions and the routing information stored in the DMA cache region reach a certain amount, the table entry positions and the routing information stored in the DMA cache region can be directly sent to the routing table of each switching chip in a data broadcasting mode at one time.
As another implementation manner of this embodiment, the processor may first store the routing information to be issued to the DMA buffer of the memory chip or the DMA buffer of the target switch chip. After the routing information in the DMA cache reaches a certain number, the table entry position of each routing information in the routing table is calculated through the target switching chip, and then each routing information and the corresponding table entry position are issued to a plurality of switching chips.
In addition, the step S205 is triggered by counting that the number of the routing information items at the determined table entry positions reaches the preset threshold, as another implementation manner, a time factor may also be introduced, and the step S205 is executed when one of the number of the routing information items at the determined table entry positions meets the preset threshold, and the time factor is monitored whether the time length from the occurrence of the first routing information to the current time reaches the set time length, and whether the number of the routing information items at the determined table entry positions reaches the preset threshold, so as to ensure the timeliness of routing delivery.
Compared with the existing way of issuing the route by using the DMA, the route issuing method provided by the embodiment of the present disclosure may be implemented by storing the route information and the table entry position to be issued in the DMA buffer area by the processor, and writing the route information stored in the buffer area into the route table once after reaching a certain number, so as to improve the route issuing efficiency of a single chip service board supporting the DMA issue. Therefore, under the multi-chip environment, the calculation amount of software is reduced, the calculation speed is improved, the frequency of frequently accessing hardware is reduced, the message forwarding rate of the user terminal is further improved, and the user internet experience is improved.
It should be noted that the two method embodiments are described in a progressive manner, each embodiment focuses on the differences from the other embodiments, and the same and similar parts between the embodiments are referred to each other.
Example three:
considering that the application scenario of the route delivery includes route addition, route deletion, route update, and the like, the present embodiment refines the step of delivering the table entry position and the route information to the plurality of switch chips, and includes:
if the routing information is the routing information of the route to be added, respectively writing the routing information into the table entry positions of the routing tables of the plurality of switching chips;
if the routing information is the routing information of the route to be cancelled, respectively searching the table entry positions of the routing tables of the plurality of switching chips, and deleting the routing information in the searched table entry positions;
if the routing information is the routing information of the route to be updated, the table entry positions of the routing tables of the plurality of switching chips are respectively searched, and the routing information is used for replacing the routing information in the searched table entry positions.
Based on this, the present embodiment provides a route issuing method, which takes the example of adding a route to a network device supporting MDC configuration as an example. Referring to the flow chart shown in fig. 3, the method includes the steps of:
step S301, when a new far-end route is learned, the far-end route message is analyzed through the driving module, and route information is obtained.
When the MDC device is created, the main control board CPU and the service board CPU create corresponding task processes in the processor of the MDC device, and each time an MDC device is created, a related task process is created, and task processes between different MDC devices are independent from each other. If a routing protocol such as OSPF, BGP, etc. is enabled on a port of a certain MDC device, when a new remote route is learned through the port, the forwarding task corresponding to the main control board CPU synchronizes the remote route message to the forwarding task corresponding to the service board CPU. The forwarding task corresponding to the service board CPU sends the current far-end routing message to the driving module, and the driving module analyzes the far-end routing message to obtain the KEY of the route: DIP and the result of the search, next hop and other routing information.
Step S302, a switching chip is selected as a target switching chip through the MDC module.
When the MDC device is created, the MDC module records the corresponding relationship between the port and the switch chip in the MDC device according to the information configured by the user. When a new far-end route is learned on a port of a certain MDC device according to a routing protocol, a forwarding module corresponding to a processor or a service board CPU of the MDC device acquires an exchange chip of the MDC device which belongs to the current device recorded by software through an MDC module according to the MDC device which belongs to the current device, and the exchange chip is used as a target exchange chip.
Step S303, the routing information is sent to the target switching chip, so that the target switching chip calculates the table entry position of the routing information in the routing table.
Step S304, the table entry position and the routing information are sent to a plurality of switching chips in a broadcast mode, so that each switching chip adds new routing information to the corresponding table entry position in the routing table.
When the route is issued, all the switching chips contained in the current MDC equipment can be determined through the MDC module, all the switching chips contained in the current MDC equipment are polled, and the route information is broadcasted and issued to the routing tables of all the switching chips in the current MDC equipment according to the table entry position calculated by the target switching chip.
Fig. 3 illustrates a route adding process as an example, and for a similar implementation manner of deleting a route, refer to a flowchart of a route issuing method shown in fig. 4, where the method includes the following steps:
step S401, when the remote route revocation is sensed, the remote route revocation message is analyzed through the driving module, and the route information is obtained.
When a certain port of the MDC device senses the remote route revocation, the forwarding task corresponding to the main control board CPU synchronizes the remote route revocation message to the forwarding task corresponding to the service board CPU. The forwarding task corresponding to the service board CPU sends the current far-end route revocation message to the driving module, and the driving module analyzes the far-end route revocation message to obtain the KEY of the route: DIP and the result of the search, next hop and other routing information.
Step S402, selecting a switch chip as a target switch chip through the MDC module.
When the MDC device is created, the MDC module records the corresponding relationship between the port and the switch chip in the MDC device according to the information configured by the user. Therefore, one switching chip of the MDC device to which the software record currently belongs can be acquired by the MDC module as the target switching chip.
Step S403, sending the routing information to the target switching chip, so that the target switching chip searches for the table entry position of the routing information in the routing table.
Step S404, the table entry position and the routing information are sent to a plurality of switching chips in a broadcasting mode, so that each switching chip deletes the routing information in the routing table.
After receiving the table entry position of the routing information returned by the target switching chip in the routing table, determining all switching chips contained in the current MDC equipment through an MDC module, polling all switching chips contained in the current MDC equipment, and sending the table entry position and the routing information found by the target switching chip to all switching chips in the current MDC equipment in a broadcasting manner, so that each switching chip deletes the routing information in the corresponding table entry position in the routing table.
The implementation mode of updating the route is similar to the implementation mode of deleting the route, and when the change of the far-end route is sensed, the far-end route change message is analyzed through the driving module to obtain the route information needing to be updated. The target exchange chip determines the table entry position of the route in the route table according to the route information required to be updated, and then sends the table entry position and the route information to a plurality of exchange chips in a broadcasting mode, so that each exchange chip can replace the route information of the corresponding table entry position in the route table with new route information.
The route is added, deleted or updated by adopting the route issuing method, and for a plurality of switching chips belonging to the same MDC equipment, when the route information is issued, only one switching chip can be selected to determine the table entry position of the route information in the route table, and the route information is issued to all the switching chips according to the calculation result of the switching chip without calculating each switching chip, so that the calculation time which is long in time consumption in the route issuing is reduced, the route issuing efficiency is improved, the packet loss phenomenon which occurs when the route is changed is effectively reduced, the message forwarding rate of a user terminal is improved, and the user internet experience degree is improved.
Example four:
the present embodiment provides a routing issuing apparatus corresponding to the foregoing method embodiment, where the apparatus is applied to a network device, a processor of the network device is connected with multiple switch chips, and the multiple switch chips belong to one MDC device, so that routing tables in the multiple switch chips are globally consistent. As shown in fig. 5, the apparatus includes:
a target switching chip determining module 51, configured to select a target switching chip from the multiple switching chips if the processor has routing information to be issued; or, a first exchange chip in a plurality of exchange chips of the MDC equipment is taken as a target exchange chip;
a routing location determining module 52, configured to send routing information to the target switch chip; receiving the table entry position of the routing information in the routing table determined by the target exchange chip;
and the route issuing module 53 is configured to issue the table entry position and the route information to a plurality of switch chips.
The route issuing module 53 may further be configured to:
if the routing information is the routing information of the route to be added, respectively writing the routing information into the table entry positions of the routing tables of the plurality of switching chips;
if the routing information is the routing information of the route to be cancelled, searching the table entry positions of the routing tables of the plurality of switching chips respectively, and deleting the routing information in the searched table entry positions;
if the routing information is the routing information of the route to be updated, the table entry positions of the routing tables of the plurality of switching chips are searched respectively, and the routing information in the searched table entry positions is replaced by the routing information respectively.
As shown in fig. 6, in a preferred embodiment, if the network device supports a DMA delivery mode of routing, the routing delivery module 53 may include:
a route number monitoring unit 531, configured to determine whether the number of pieces of route information of the currently determined table entry position reaches a preset threshold;
the multi-route issuing unit 532 is configured to issue each piece of routing information and the corresponding table entry position to the plurality of switch chips if the number of pieces of routing information reaches the preset threshold.
The routing issuing device provided by the embodiment of the disclosure can select only one switching chip to determine the table entry position of the routing information in the routing table when issuing the routing information for a plurality of switching chips belonging to one MDC device, and issue the routing information to all the switching chips according to the table entry position without calculating by each switching chip, thereby reducing the calculation time consuming in routing issuing and improving the issuing efficiency of routing.
Example five:
the embodiment provides a network device corresponding to the method embodiment. Fig. 7 is a schematic structural diagram of the network device, and as shown in fig. 7, the network device includes a processor 701 and a memory 702; the memory 702 is used for storing one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the route issuing method.
Further, the network device shown in fig. 7 further includes a bus 703 and a plurality of switch chips 704, and the processor 701, the switch chips 704, and the memory 702 are connected by the bus 703.
The Memory 702 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Bus 703 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The switch chip 704 is used for connecting with at least one user terminal and other network units through a network interface, and is responsible for sending the encapsulated service packet to the user terminal through the network interface.
The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device 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. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
Further, an embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-mentioned route issuing method.
The implementation principle and the generated technical effect of the route issuing device and the network device provided by the embodiment of the invention are the same as those of the method embodiment, and for brief description, no part of the embodiment of the device is mentioned, and reference may be made to the corresponding content in the method embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/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.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (10)
1. A route issuing method is characterized in that the method is applied to network equipment, a processor of the network equipment is connected with a plurality of switching chips, the switching chips belong to an MDC (media data center) equipment, and a routing table of each switching chip is globally consistent, wherein the global consistency comprises the same storage mode of the routing table of each switching chip and the same table entry position of routing information in the routing table; the method comprises the following steps:
if the processor has routing information to be issued, selecting a target switching chip from the plurality of switching chips;
sending the routing information to the target exchange chip;
receiving the table entry position of the routing information in a routing table determined by the target switching chip;
and issuing the table entry position and the routing information to a plurality of switching chips.
2. The method of claim 1, wherein if the network device supports a DMA delivery mode of routing, the step of delivering the entry location and the routing information to the plurality of switch chips comprises:
judging whether the number of the routing information of the current determined table entry position reaches a preset threshold value or not;
if yes, each routing information and the corresponding table entry position are sent to a plurality of switching chips.
3. The method of claim 1, wherein said step of selecting a target switch chip from a plurality of said switch chips comprises:
and taking a first exchange chip in a plurality of exchange chips of the MDC equipment as a target exchange chip.
4. The method of claim 1, wherein the step of sending the entry location and the routing information to the plurality of switch chips comprises:
if the routing information is the routing information of the route to be added, respectively writing the routing information into the table entry positions of the routing tables of the plurality of switching chips;
if the routing information is the routing information of the route to be cancelled, searching the table entry positions of the routing tables of the plurality of switching chips respectively, and deleting the routing information in the searched table entry positions;
if the routing information is the routing information of the route to be updated, the table entry positions of the routing tables of the plurality of switching chips are searched respectively, and the routing information in the searched table entry positions is replaced by the routing information.
5. A route issuing device is characterized in that the device is applied to network equipment, a processor of the network equipment is connected with a plurality of switching chips, the switching chips belong to an MDC (media data center) device, and a routing table of each switching chip is globally consistent, wherein the global consistency comprises the same storage mode of the routing table of each switching chip and the same table entry position of routing information in the routing table; the device comprises:
the target switching chip determining module is used for selecting one target switching chip from the plurality of switching chips if the processor has routing information to be issued;
the routing position determining module is used for issuing the routing information to the target exchange chip; receiving the table entry position of the routing information in a routing table determined by the target switching chip;
and the route issuing module is used for issuing the table entry position and the route information to the plurality of switching chips.
6. The apparatus of claim 5, wherein if the network device supports DMA delivery mode of the route, the route delivery module comprises:
the routing number monitoring unit is used for judging whether the number of the routing information of the current determined table entry position reaches a preset threshold value;
and the multi-route issuing unit is used for issuing each piece of routing information and the corresponding table entry position to the plurality of switching chips if the number of the pieces of routing information reaches a preset threshold value.
7. The apparatus of claim 5, wherein the target switch chip determination module is further configured to:
and taking a first exchange chip in a plurality of exchange chips of the MDC equipment as a target exchange chip.
8. The apparatus of claim 5, wherein the route issuing module is further configured to:
if the routing information is the routing information of the route to be added, respectively writing the routing information into the table entry positions of the routing tables of the plurality of switching chips;
if the routing information is the routing information of the route to be cancelled, searching the table entry positions of the routing tables of the plurality of switching chips respectively, and deleting the routing information in the searched table entry positions;
if the routing information is the routing information of the route to be updated, the table entry positions of the routing tables of the plurality of switching chips are searched respectively, and the routing information in the searched table entry positions is replaced by the routing information respectively.
9. A network device comprising a processor, a plurality of switch chips coupled to the processor, and a machine-readable storage medium storing machine-executable instructions executable by the processor to perform the method of any of claims 1 to 4.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710700296.1A CN107547364B (en) | 2017-08-15 | 2017-08-15 | Route issuing method, device and network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710700296.1A CN107547364B (en) | 2017-08-15 | 2017-08-15 | Route issuing method, device and network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107547364A CN107547364A (en) | 2018-01-05 |
CN107547364B true CN107547364B (en) | 2021-08-06 |
Family
ID=60971498
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710700296.1A Active CN107547364B (en) | 2017-08-15 | 2017-08-15 | Route issuing method, device and network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107547364B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026324B (en) | 2018-10-09 | 2021-11-19 | 华为技术有限公司 | Updating method and device of forwarding table entry |
CN109981478B (en) * | 2019-02-18 | 2022-07-22 | 新华三信息安全技术有限公司 | Message processing method and device |
CN111064815B (en) * | 2019-11-06 | 2022-02-18 | 深圳震有科技股份有限公司 | Method and device for sharing one IP by multiple single boards, computer equipment and medium |
CN110891031B (en) * | 2019-11-29 | 2021-01-01 | 新华三半导体技术有限公司 | Synchronous information parallel writing method and network equipment |
CN111131051A (en) * | 2019-12-30 | 2020-05-08 | 杭州迪普科技股份有限公司 | Route issuing method and device |
WO2021179254A1 (en) * | 2020-03-12 | 2021-09-16 | 华为技术有限公司 | Data update method, apparatus and device |
CN113472701B (en) * | 2020-03-31 | 2023-10-10 | 深圳市中兴微电子技术有限公司 | Processing method, device, equipment and storage medium of route information |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6496510B1 (en) * | 1997-11-14 | 2002-12-17 | Hitachi, Ltd. | Scalable cluster-type router device and configuring method thereof |
CN101562573B (en) * | 2009-04-22 | 2011-07-13 | 中兴通讯股份有限公司 | Method and system for aggregating route items |
CN102752199B (en) * | 2012-06-21 | 2014-12-24 | 中国科学院计算技术研究所 | Method and system for constructing data forwarding plane of virtual router |
CN102710529A (en) * | 2012-06-21 | 2012-10-03 | 杭州华三通信技术有限公司 | Message forward method and equipment based on virtual device |
CN103973560B (en) * | 2013-02-04 | 2018-01-12 | 新华三技术有限公司 | A kind of method and apparatus that link failure processing is stacked in IRF systems |
CN105391629B (en) * | 2014-09-05 | 2019-01-22 | 杭州迪普科技股份有限公司 | A kind of method and device of resource backup |
CN105743792A (en) * | 2014-12-12 | 2016-07-06 | 中兴通讯股份有限公司 | Flow table updating method and apparatus |
CN105939397B (en) * | 2015-08-13 | 2018-10-26 | 杭州迪普科技股份有限公司 | A kind of transmission method and device of message |
CN106330553A (en) * | 2016-08-30 | 2017-01-11 | 杭州迪普科技有限公司 | Message forwarding method and device |
CN107864094B (en) * | 2017-11-15 | 2020-08-18 | 新华三技术有限公司 | Traffic routing method, traffic routing device and machine-readable storage medium |
-
2017
- 2017-08-15 CN CN201710700296.1A patent/CN107547364B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107547364A (en) | 2018-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107547364B (en) | Route issuing method, device and network equipment | |
CN108259347B (en) | Message transmission method and device | |
US11212216B2 (en) | Border gateway protocol (BGP) security measures along autonomous system (AS) paths | |
CN108848034B (en) | Network equipment and table entry learning method | |
US9019815B2 (en) | Source alive route injection | |
US8320371B2 (en) | Statistics based forwarding information base repopulation | |
CN107786450B (en) | Data message transmission method and device and machine-readable storage medium | |
CN107547391B (en) | Message transmission method and device | |
US10616175B2 (en) | Forwarding information to forward data to proxy devices | |
KR20160099473A (en) | Technologies for modular forwarding table scalability | |
JP2015130697A (en) | Packet processing method, device and system | |
CN108390954B (en) | Message transmission method and device | |
US10333790B2 (en) | Method and system for selective route download in network devices | |
CN112887229B (en) | Session information synchronization method and device | |
CN113438329B (en) | MAC address sending method, device and system | |
US10404598B1 (en) | Managing next hop groups in routers | |
CN108234422B (en) | Resource scheduling method and device | |
CN108540386B (en) | Method and device for preventing service flow interruption | |
CN108566344B (en) | Message processing method and device | |
US10536368B2 (en) | Network-aware routing in information centric networking | |
CN107547400B (en) | Virtual machine migration method and device | |
CN110391919B (en) | Multicast traffic forwarding method and device, and electronic device | |
CN109039908B (en) | Recursive routing switching method, router, switch and electronic equipment | |
CN109831378B (en) | Message timeout response method and device | |
CN108111420B (en) | Flow table entry management method and device, electronic equipment and storage 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |