CN117376251A - Route storage capacity expansion method and device, storage medium and electronic device - Google Patents

Route storage capacity expansion method and device, storage medium and electronic device Download PDF

Info

Publication number
CN117376251A
CN117376251A CN202210765067.9A CN202210765067A CN117376251A CN 117376251 A CN117376251 A CN 117376251A CN 202210765067 A CN202210765067 A CN 202210765067A CN 117376251 A CN117376251 A CN 117376251A
Authority
CN
China
Prior art keywords
memory
address
bus
capacity expansion
searching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210765067.9A
Other languages
Chinese (zh)
Inventor
冯桥
陈建成
鲁啸
陈爱宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Original Assignee
Sanechips Technology 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 Sanechips Technology Co Ltd filed Critical Sanechips Technology Co Ltd
Priority to CN202210765067.9A priority Critical patent/CN117376251A/en
Publication of CN117376251A publication Critical patent/CN117376251A/en
Pending legal-status Critical Current

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
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1491Countermeasures against malicious traffic using deception as countermeasure, e.g. honeypots, honeynets, decoys or entrapment
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for expanding routing storage capacity, a storage medium and an electronic device, and relates to the field of communication networks. The route storage capacity expansion method comprises the following steps: receiving a first IP address request through a first lookup bus when unicast reverse path checking is performed, and sending the first IP address request to a second lookup bus; searching a first IP address item corresponding to the first IP address request in a second memory through the second search bus, wherein the first search bus is connected with the first memory, and the second memory is connected with the second search bus; and returning the searched first IP address entry to the first search bus. The invention solves the problem of limited IP address storage capacity in the URPF scene in the related technology, thereby achieving the effect of improving the IP address storage capacity.

Description

Route storage capacity expansion method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication networks, in particular to a method and a device for expanding routing storage capacity, a storage medium and an electronic device.
Background
The network technology developed at high speed makes substances and cultural lives of people more and more abundant, but brings a series of problems at the same time. The source IP address spoofing, namely an attacker adopts a method of changing the source IP address to achieve the aim of attacking other equipment, and the hardware resource tension caused by IP address storage is two related and prominent problems.
The unicast reverse path checking (URPF, unicast Reverse Path Forwarding) technology for source IP address spoofing requires checking both source IP and destination IP in the user message, and can ensure normal forwarding of the user message when both IP address entries exist in the hardware resource. Therefore, the IP address storage scheme in the URPF scenario generally provides two identical and symmetrical hardware storage resources ram_ A, ram _b and two lookup buses bus_ A, bus _b, where bus_a is connected to ram_a for searching for destination IP and bus_b is connected to ram_b for searching for source IP. The IP address entries in Ram A, ram B need to be the same, that is to say the IP addresses of the same entries need to be stored in symmetric resources.
How to increase the storage capacity of IP addresses in a URPF scenario is a constant concern in the industry in situations where hardware resources are limited.
Disclosure of Invention
The embodiment of the invention provides a method and a device for expanding routing storage capacity, a storage medium and an electronic device, which at least solve the problem of limited IP address storage capacity in a URPF scene in the related technology.
According to an embodiment of the present invention, there is provided a route storage capacity expansion method, including: receiving a first IP address request through a first lookup bus when unicast reverse path checking is performed, and sending the first IP address request to a second lookup bus;
searching a first IP address item corresponding to the first IP address request in a second memory through the second search bus, wherein the first search bus is connected with the first memory, and the second memory is connected with the second search bus;
and returning the searched first IP address entry to the first search bus.
In an exemplary embodiment, before the first IP address request is sent to the second lookup bus, the method further includes: judging the state of the capacity expansion switch; and sending the first IP address request to the second lookup bus when the capacity expansion switch is in a capacity expansion mode.
In an exemplary embodiment, the above method further comprises: receiving a second IP address request through the second lookup bus; searching a second IP address item corresponding to the second IP address request in the second memory through the second searching bus.
In an exemplary embodiment, before receiving the first IP address request over the first lookup bus, the method further includes: deploying a routing protocol; and adding IP address entries to the first memory and/or the second memory.
In an exemplary embodiment, adding an IP address entry to the first memory and/or the second memory includes: determining the state of the capacity expansion switch; adding the IP address entry to the first memory and the second memory when the capacity expansion switch is in a non-capacity expansion mode, wherein the first memory and the second memory store the same IP address entry; and adding the IP address entry to the first memory or the second memory when the capacity expansion switch is in a capacity expansion mode, wherein the first memory and the second memory store different IP address entries.
In an exemplary embodiment, when the capacity expansion switch is adjusted from the non-capacity expansion mode to the capacity expansion mode, the IP address entry stored in the first memory or the second memory is cleared to combine the storage spaces of the second memory and the first memory; and storing the IP address entry to be stored into the first memory or the second memory.
In an exemplary embodiment, the second lookup Bus is a bus_a Bus, the first lookup Bus is a bus_b Bus, the second memory is a ram_a memory, the first memory is a ram_b memory, the first IP address is a source IP address, and the second IP address is a destination IP address.
According to another embodiment of the present invention, there is provided a route storage capacity expansion device including: the receiving module is used for receiving a first IP address request through a first searching bus when unicast reverse path checking is carried out, and sending the first IP address request to a second searching bus; the searching module is used for searching a first IP address item corresponding to the first IP address request in a second memory through the second searching bus, wherein the first searching bus is connected with the first memory, and the second memory is connected with the second searching bus; and the return module is used for returning the searched first IP address entry to the first search bus.
According to a further embodiment of the invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the invention, when unicast reverse path inspection is carried out, the first IP address request received by the first searching bus is sent to the second searching bus, so that the first searching bus searches for the first IP address item in the second memory through the second searching bus, and the first IP address item is returned to the first searching bus. Therefore, when the unicast reverse path is checked, the second search bus can be used for searching IP address entries and returning results in the first memory and the second memory, so that the routing storage is realized by utilizing independent storage of the first memory and the second memory when the unicast reverse path is checked, the problem of limited IP address storage capacity caused by symmetric storage of the two memories is solved, and the effect of improving the IP address storage capacity is achieved.
Drawings
FIG. 1 is a block diagram of a hardware architecture of a method for expanding a routing storage according to an embodiment of the present invention;
FIG. 2 is a flow chart of a routing storage expansion according to an embodiment of the present invention;
FIG. 3 is a flow chart of a routing storage expansion according to an embodiment of the present invention;
FIG. 4 is a flow chart of a routing storage expansion according to an embodiment of the present invention;
fig. 5 is a block diagram of a routing storage capacity expansion device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the operation on the mobile terminal as an example, fig. 1 is a block diagram of the hardware structure of the mobile terminal of the route storage capacity expansion method according to the embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor (Central Processing Unit, MCU) or a processing device such as a programmable logic device (Field Programmable Gate Array, FPGA)) and a memory 104 for storing data, where the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store computer programs, such as software programs and modules of application software, such as computer programs corresponding to the method of expansion in routing storage according to the embodiments of the present invention, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, i.e., implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for expanding a route storage operating on the mobile terminal is provided, and fig. 2 is a flowchart of the route storage expansion according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, receiving a first IP address request through a first search bus and sending the first IP address request to a second search bus when unicast reverse path inspection is performed;
step S204, searching a first IP address item corresponding to the first IP address request in a second memory through a second searching bus, wherein the first searching bus is connected with the first memory, and the second memory is connected with the second searching bus;
step S206, the searched first IP address entry is returned to the first search bus.
In unicast reverse path checking (URPF, unicast Reverse Path Forwarding), the source IP address and destination IP address in a received user message need to be checked to determine whether to forward the user message. And the source IP address and destination IP address are not limited to being stored in the memory of the device as a set of IP address entries. The second lookup bus can replace the first lookup bus to perform the first IP address lookup, so that the second lookup bus can have the capacity of accessing the first memory and the second memory at the same time, and the symmetrical route storage is adjusted to the asymmetrical route storage. On the basis of fixed storage space of the equipment, the capacity expansion of route storage is realized.
As an alternative implementation manner, the second lookup Bus is a bus_a Bus, the first lookup Bus is a bus_b Bus, the second memory is a ram_a memory, the first memory is a ram_b memory, the first IP address is a source IP address, and the second IP address is a destination IP address.
The foregoing is merely an example, and the first lookup Bus may be a bus_a Bus, the second lookup Bus may be a bus_b Bus, the first memory may be a ram_a memory, the second memory may be a ram_b memory, the first IP address may be a source IP address, and the second IP address may be a destination IP address.
As an alternative embodiment, before sending the first IP address request to the second lookup bus, the method further comprises: judging the state of the capacity expansion switch; and sending the first IP address request to the second lookup bus when the capacity expansion switch is in the capacity expansion mode.
The capacity expansion switch is not limited to a logic switch for controlling the storage mode and the searching mode of the IP address entries in the terminal, the storage mode of the IP address entries is adjusted by adding the capacity expansion switch, and the searching mode corresponding to the storage mode is set at the same time so as to realize the searching of the IP address entries in different storage modes.
In an embodiment, when the capacity expansion switch is in an on state, the capacity expansion switch is determined to be in a capacity expansion mode, and at this time, the first lookup bus and the second lookup bus can access the capabilities of the first memory and the second memory at the same time, taking the second lookup bus as a main operation bus as an example, and in the capacity expansion mode of the capacity expansion switch, the corresponding storage mode is to store an IP address entry in the first memory or the second memory, and the corresponding lookup mode is to sequentially find a destination IP address and a source IP address through the second lookup bus.
In an embodiment, when the expansion switch is in the off state, it is determined that the expansion switch is in the non-expansion mode, and the first lookup bus may only access the first memory, and the second lookup bus may only access the second memory. When the capacity expansion light is in a non-capacity expansion mode, the corresponding storage mode is to store IP address entries in the first memory and the second memory respectively, and the corresponding search mode is to search a source IP address in the first memory through the first search bus and search a destination IP address in the second memory through the second search bus. The correspondence between the first lookup bus and the second lookup bus and the source IP address and the destination IP address is merely an example and not a limitation.
As an alternative embodiment, a second IP address request is received over a second lookup bus; and searching a second IP address entry corresponding to the second IP address request in a second memory through a second searching bus.
The second lookup bus is not limited to receiving the second IP address request while the first lookup bus receives the first IP address lookup request, and the second lookup bus searches the first memory or the second memory for the first IP address entry by receiving the first IP address request sent by the first lookup bus after the second lookup bus searches the first memory or the second memory for the second IP address entry.
As an alternative embodiment, before receiving the first IP address request via the first lookup bus, the method further comprises: deploying a routing protocol; an IP address entry is added to the first memory and/or the second memory.
As an alternative embodiment, adding an IP address entry to the first memory and/or the second memory comprises: determining the state of a capacity expansion switch; adding IP address entries to a first memory and a second memory when the capacity expansion switch is in a non-capacity expansion mode, wherein the first memory and the second memory store the same IP address entries; and adding the IP address entry to the first memory or the second memory when the capacity expansion switch is in the capacity expansion mode, wherein the first memory and the second memory store different IP address entries.
In one embodiment, when storing the IP address entry, the state of the flash switch is not limited to be determined, and the symmetric storage mode is used when the flash switch is in the non-flash mode: the same IP address entries are stored in the first memory and the second memory, respectively. In the capacity expansion mode of the capacity expansion switch, an asymmetric storage mode is used: the current storage location of the first memory or the second memory stores an IP address entry. And in the capacity expansion mode of the capacity expansion switch, different IP address entries are stored in the first memory and the second memory. The IP address entries to be stored are not limited to being sequentially stored in the first memory or the second memory.
As an optional implementation manner, when the capacity expansion switch is adjusted from the non-capacity expansion mode to the capacity expansion mode, the IP address entry stored in the first memory or the second memory is cleared, so as to combine the storage spaces of the second memory and the first memory; and storing the IP address entry to be stored into the first memory or the second memory.
In an embodiment, the capacity expansion switch is not limited to be in a non-capacity expansion mode by default, and is automatically adjusted to be in a capacity expansion mode when the remaining storage space in the first memory or the second memory is smaller than a preset threshold, or is adjusted to be in a capacity expansion mode due to the non-capacity expansion mode by responding to an adjustment instruction of the capacity expansion switch.
In an embodiment, when the capacity expansion switch is adjusted to the capacity expansion mode due to the non-capacity expansion mode, the method is not limited to clearing the IP address entries symmetrically stored in the first memory or the second memory, but only reserving the stored IP address entries in the second memory or the first memory, that is, clearing the same IP address entries stored in the second memory as the first memory in the symmetrical mode, and taking the space of the second memory as the storage space for continuously storing the newly written IP address entries, thereby increasing the remaining storage spaces in the first memory and the second memory to realize the capacity expansion of the routing storage. Thereby increasing the IP address storage capacity on the basis of limited hardware resources.
The storage spaces of the first memory and the second memory are not limited to be the same. For example, two random access memories (RAM, random Access Memory) having the same memory size: ram_ A, RAM _b is used for storing the destination IP address and the source IP address having a corresponding relationship, respectively. In the symmetric storage scheme, the number and contents of IP addresses stored in the two memories are the same.
In an embodiment, when the state of the capacity expansion switch is on, that is, the capacity expansion switch is in the capacity expansion mode, the storage mode is an asymmetric storage mode, and the storage space of the two memories is not limited to be regarded as the same, and the destination IP address and the source IP address with the corresponding relationship are stored in the first memory or the second memory only.
In an embodiment, when the capacity expansion switch is in the capacity expansion mode, the storage space of the second memory is integrated into the first memory, so that only the current storage position is required to be determined, and the IP address entry required to be stored is required to be stored in the current storage position, and symmetrical storage in the two memories is not required.
In an embodiment, when the capacity expansion switch is in a non-capacity expansion mode, searching a destination IP address indicated by the message in the first memory through the first search bus, and searching a source IP address indicated by the message in the second memory through the second search bus at the same time, and searching the destination IP address and the source IP address in the first memory and the second memory through the first search bus and the second search bus respectively by adopting a parallel query mode.
In an embodiment, when the capacity expansion switch is in the symmetrical mode, the destination IP address indicated by the message is searched in the first memory and/or the second memory through the first search bus, and then the search request of the second search bus is switched to the first search bus, and the source IP address is searched in the first memory and/or the second memory through the first search bus. And switching the source IP address searching request of the second searching bus to the first searching bus by adopting a serial searching mode, so that the serial searching of the source IP address and the destination IP address through the first searching bus is realized.
Searching the destination IP address and the source IP address of the message in the first memory and/or the second memory through the first searching bus comprises the following steps: searching a destination IP address indicated by the first searching bus and a source IP address indicated by the second searching bus in the first memory and/or the second memory; under the condition that the destination IP address and the source IP address are found, determining that the destination IP address and the source IP address are found in the first memory and/or the second memory; or searching the destination IP address indicated by the first searching bus and the source IP address indicated by the second searching bus in the first memory and/or the second memory; and under the condition that the destination IP address and the source IP address are found and the access port of the message is the same as the designated port stored in the first memory and/or the second memory, the destination IP address and the source IP address are found in the first memory and/or the second memory.
In an embodiment, determining whether the destination IP address and the source IP address are found is not limited to being classified into a strict mode and a loose mode. The strict mode refers to that the destination IP address and the source IP address are searched, and the access port of the message is the same as a pre-stored designated port. The loose mode is that the destination IP address and the source IP address are found, and whether the access port of the message is the same as the preset designated port is not limited. Both modes can be used for the on or off state of the capacity expansion switch and do not do binding restriction.
Optionally, after returning the found first IP address entry to the first lookup bus, the method further includes: forwarding the data message under the condition that the first IP address item and the second IP address item are found in the first memory and/or the second memory; and discarding the data message under the condition that the first IP address entry and the second IP address entry are not found in the first memory and/or the second memory.
And under the condition that the source IP address and the destination IP address indicated in the message are found in the memory for storing the IP address entry, forwarding the message, otherwise, discarding the message. The IP address entries stored in the memory are not limited to source IP addresses and destination IP addresses having a correspondence relationship.
According to the invention, when unicast reverse path inspection is carried out, the first IP address request received by the first searching bus is sent to the second searching bus, so that the first searching bus searches for the first IP address item in the second memory through the second searching bus, and the first IP address item is returned to the first searching bus. Therefore, when the unicast reverse path is checked, the second search bus can be used for searching IP address entries and returning results in the first memory and the second memory, so that the routing storage is realized by utilizing independent storage of the first memory and the second memory when the unicast reverse path is checked, the problem of limited IP address storage capacity caused by symmetric storage of the two memories is solved, and the effect of improving the IP address storage capacity is achieved.
Adding IP address entries in the memory is not limited to routing protocol interactions through the network protocol layer, so that IP address entries including the source IP address and the destination IP address are added to the memory.
Specifically, taking two memories ram_ A, RAM _b with identical storage space sizes and corresponding bus_a Bus and bus_b Bus as examples, it is assumed that the capacity expansion switch X is in a non-capacity expansion mode when x=0, is in a capacity expansion mode when x=1, a symmetrical storage mode in the non-capacity expansion mode is a Copy mode, and an asymmetrical storage mode in the capacity expansion mode is a un Copy mode. In the non-dilatation mode of the dilatation switch, the storing and searching of the IP address entries is not limited to that shown in fig. 3. By x=0, it is determined to store the IP address entry using Copy mode. The routing protocol is deployed, IP address entries are added to RAM_A and RAM_B, and the contents of the entries in RAM_A and RAM_B are the same. And under the condition of receiving the message, analyzing the message to acquire the source IP and the destination IP. And judging that X=07 again, if yes, namely, when the capacity expansion switch is still in a non-capacity expansion mode, the bus_A inputs the destination IP to search the RAM_A, and meanwhile, the bus_B inputs the source IP to search the RAM_B, and the destination IP and the source IP are searched in the RAM_A and the RAM_B respectively in a parallel query mode. And forwarding the message when the source IP hits and the destination IP hits, and discarding the message when the source IP does not hit or the destination IP does not hit.
In the case where the capacity expansion switch is in the capacity expansion mode, the storage and searching of the IP address entry is not limited to that shown in fig. 4. By x=1, it is determined to store the IP address entry using the un copy manner. The routing protocol is deployed, IP address entries are added to RAM_A and RAM_B, and the contents of the entries in RAM_A and RAM_B are different. And under the condition of receiving the message, analyzing the message to acquire the source IP and the destination IP. Again determine x=1? If yes, that is, the capacity expansion switch is still in the non-capacity expansion mode, the bus_A inputs the destination IP to search the RAM_ A, RAM _B, and then the bus_B inputs the source IP to the bus_A to search the RAM_ A, RAM _B. The method comprises the steps of searching a target IP in a RAM (random access memory) A, RAM _B through a bus_A by adopting a serial query mode, cutting the searching of a source IP from the bus_B to the bus_A, and searching the source IP in the RAM (random access memory) A, RAM _B. And forwarding the message when the source IP hits and the destination IP hits, and discarding the message when the source IP does not hit or the destination IP does not hit.
Similarly, it can be known that if the state of the expansion switch determined by the X value changes after the source IP and the destination IP are obtained by parsing the message, the IP address entry is searched by using the current corresponding state of the expansion switch. For example, when the capacity expansion switch is adjusted from the non-capacity expansion mode to the capacity expansion mode, that is, when x=1 is determined after the source IP and the destination IP are obtained by parsing the message, the source IP and the destination IP are searched according to the searching flow shown in fig. 4.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also 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. Read-Only Memory/Random Access Memory, ROM/RAM), magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a device for expanding the routing storage, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a routing storage capacity expansion device according to an embodiment of the present invention, and as shown in fig. 5, the routing storage capacity expansion device includes:
a receiving module 52, configured to receive the first IP address request through the first lookup bus and send the first IP address request to the second lookup bus when performing unicast reverse path inspection;
the searching module 54 is configured to search, through a second searching bus, a first IP address entry corresponding to the first IP address request in a second memory, where the first searching bus is connected to the first memory, and the second memory is connected to the second searching bus;
a return module 56, configured to return the found first IP address entry to the first lookup bus.
Optionally, the routing storage capacity expansion device further includes a judging module, configured to judge a state of the capacity expansion switch before sending the first IP address request to the second lookup bus; and sending the first IP address request to the second lookup bus when the capacity expansion switch is in the capacity expansion mode.
Optionally, the routing storage capacity expansion device further includes a second lookup module, configured to receive a second IP address request through a second lookup bus; and searching a second IP address entry corresponding to the second IP address request in a second memory through a second searching bus.
Optionally, the routing storage capacity expansion device further includes a deployment module, configured to, before receiving the first IP address request through the first lookup bus, further include: deploying a routing protocol; an IP address entry is added to the first memory and/or the second memory.
Optionally, the deployment module is further configured to determine a state of the capacity expansion switch; adding IP address entries to a first memory and a second memory when the capacity expansion switch is in a non-capacity expansion mode, wherein the first memory and the second memory store the same IP address entries; and adding the IP address entry to the first memory or the second memory when the capacity expansion switch is in the capacity expansion mode, wherein the first memory and the second memory store different IP address entries.
Optionally, the routing storage capacity expansion device further includes an adjustment module, configured to clear an IP address entry stored in the first memory or the second memory when the capacity expansion switch is adjusted from the non-capacity expansion mode to the capacity expansion mode, so as to combine the storage spaces of the second memory and the first memory; and storing the IP address entry to be stored in the first memory or the second memory.
Optionally, the routing storage capacity expansion device further includes a second lookup Bus being a bus_a Bus, the first lookup Bus being a bus_b Bus, the second memory being a ram_a memory, the first memory being a ram_b memory, the first IP address being a source IP address, the second IP address being a destination IP address.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
In order to facilitate understanding of the technical solutions provided by the present invention, the following details will be described in connection with embodiments of specific scenarios.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for expanding a route storage, comprising:
receiving a first IP address request through a first lookup bus when unicast reverse path checking is performed, and sending the first IP address request to a second lookup bus;
searching a first IP address item corresponding to the first IP address request in a second memory through the second search bus, wherein the first search bus is connected with the first memory, and the second memory is connected with the second search bus;
and returning the searched first IP address entry to the first search bus.
2. The method of claim 1, further comprising, prior to sending the first IP address request to a second lookup bus:
judging the state of the capacity expansion switch;
and sending the first IP address request to the second lookup bus when the capacity expansion switch is in a capacity expansion mode.
3. The method according to claim 1, wherein the method further comprises:
receiving a second IP address request over the second lookup bus;
and searching a second IP address entry corresponding to the second IP address request in the second memory through the second searching bus.
4. The method of claim 2, wherein prior to receiving the first IP address request over the first lookup bus, the method further comprises:
deploying a routing protocol;
an IP address entry is added to the first memory and/or the second memory.
5. The method of claim 4, wherein adding an IP address entry to the first memory and/or the second memory comprises:
determining the state of the capacity expansion switch;
adding the IP address entry to the first memory and the second memory when the capacity expansion switch is in a non-capacity expansion mode, wherein the first memory and the second memory store the same IP address entry;
and adding the IP address entry to the first memory or the second memory when the capacity expansion switch is in a capacity expansion mode, wherein the first memory and the second memory store different IP address entries.
6. The method as recited in claim 5, further comprising:
the capacity expansion switch is adjusted from a non-capacity expansion mode to a capacity expansion mode, and IP address entries stored in the first memory or the second memory are cleared to combine the storage spaces of the second memory and the first memory;
and storing the IP address entry to be stored into the first memory or the second memory.
7. The method of any of claims 1 to 6, wherein the second lookup Bus is a bus_a Bus, the first lookup Bus is a bus_b Bus, the second memory is a ram_a memory, the first memory is a ram_b memory, the first IP address is a source IP address, and the second IP address is a destination IP address.
8. A route storage capacity expansion device, comprising:
the receiving module is used for receiving a first IP address request through a first searching bus when unicast reverse path checking is carried out, and sending the first IP address request to a second searching bus;
the searching module is used for searching a first IP address item corresponding to the first IP address request in a second memory through the second searching bus, wherein the first searching bus is connected with the first memory, and the second memory is connected with the second searching bus;
and the return module is used for returning the searched first IP address entry to the first search bus.
9. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 7 when the computer program is executed.
CN202210765067.9A 2022-06-30 2022-06-30 Route storage capacity expansion method and device, storage medium and electronic device Pending CN117376251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210765067.9A CN117376251A (en) 2022-06-30 2022-06-30 Route storage capacity expansion method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210765067.9A CN117376251A (en) 2022-06-30 2022-06-30 Route storage capacity expansion method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117376251A true CN117376251A (en) 2024-01-09

Family

ID=89395124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210765067.9A Pending CN117376251A (en) 2022-06-30 2022-06-30 Route storage capacity expansion method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117376251A (en)

Similar Documents

Publication Publication Date Title
US11539626B2 (en) Method, apparatus, and system for load balancing of service chain
US9871781B2 (en) Systems and methods for path maximum transmission unit discovery
US10461958B2 (en) Packet transmission method and apparatus
US20150304212A1 (en) Method and apparatus for matching flow table, and switch
CN106549793B (en) Flow control method and device
CN112087390B (en) Network routing method and device
CN112887229B (en) Session information synchronization method and device
CN106533973B (en) Method, equipment and system for distributing service message
CN103795644A (en) Strategy table entry collocation method, device and system
CN103281257A (en) Method and device for processing protocol message
CN108259348B (en) Message transmission method and device
CN113839862B (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
US20240022501A1 (en) Data Packet Sending Method and Device
US9923794B2 (en) Method, apparatus, and system for identifying abnormal IP data stream
CN111464443B (en) Message forwarding method, device, equipment and storage medium based on service function chain
CN112187635B (en) Message forwarding method and device
CN106209634B (en) Learning method and device of address mapping relation
CN117376251A (en) Route storage capacity expansion method and device, storage medium and electronic device
CN109995678B (en) Message transmission method and device
CN107046503B (en) Message transmission method, system and device
CN111404705B (en) SDN optimization method and device and computer readable storage medium
CN113037647A (en) Message processing method, device, equipment and computer readable storage medium
CN107483334B (en) Message forwarding method and device
CN113132504A (en) Identification method and device of network address translation equipment and computer equipment
CN107113244B (en) Data forwarding method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication