Network cutover method, device, network equipment and computer readable storage medium

文档序号:230101 发布日期:2021-11-09 浏览:21次 中文

阅读说明:本技术 网络割接方法、装置、网络设备及计算机可读存储介质 (Network cutover method, device, network equipment and computer readable storage medium ) 是由 颜恒 于 2021-08-02 设计创作,主要内容包括:本申请提供一种网络割接方法、装置、网络设备及计算机可读存储介质。方法包括:从第二网络设备获取第二网络设备的动态ARP表的数据库文件;基于预设规则将数据库文件恢复成表征临界状态的ARP表,处于临界状态的ARP表的表项不老化删除;当接收到待转发数据时,根据临界状态的ARP表转发待转发数据,以使第一网络设备替换第二网络设备以进行数据转发。在本方案的网络割接过程中,当待转发数据切入到第一网络设备时,可以利用得到的处于临界状态的ARP表转发该待转发数据,第一网络设备无需再去学习ARP表,无需中断数据的转发,加速割接后的网络收敛,有利于提高数据转发效率。(The application provides a network cutover method, a network cutover device, network equipment and a computer readable storage medium. The method comprises the following steps: acquiring a database file of a dynamic ARP table of second network equipment from the second network equipment; restoring the database file into an ARP table representing a critical state based on a preset rule, wherein the table entry of the ARP table in the critical state is not aged and deleted; and when receiving the data to be forwarded, forwarding the data to be forwarded according to the ARP table in the critical state so that the first network equipment replaces the second network equipment for data forwarding. In the network cutover process of the scheme, when the data to be forwarded is cut into the first network equipment, the data to be forwarded can be forwarded by using the obtained ARP table in the critical state, the first network equipment does not need to learn the ARP table any more, does not need to interrupt the forwarding of the data, accelerates the network convergence after the cutover, and is favorable for improving the data forwarding efficiency.)

1. A network cutover method is applied to a first network device, and comprises the following steps:

acquiring a database file corresponding to a dynamic ARP table of second network equipment from the second network equipment;

restoring the database file to an ARP table in a critical state based on a preset rule, wherein the table entry of the ARP table in the critical state is not aged and deleted;

and when receiving data to be forwarded, forwarding the data to be forwarded according to the ARP table in the critical state so that the first network equipment replaces the second network equipment for data forwarding.

2. The method of claim 1, further comprising:

broadcasting an ARP request detection message based on the ARP table in the critical state;

and when a response message based on the ARP request detection message is received, converting the ARP table in the critical state into a dynamic ARP table of the first network equipment.

3. The method of claim 2, further comprising:

and when receiving new data to be forwarded, forwarding the new data to be forwarded according to the dynamic ARP table of the first network equipment.

4. The method according to any one of claims 1 to 3, wherein the obtaining, from the second network device, the database file corresponding to the dynamic ARP table of the second network device comprises:

acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a management port of the first network equipment based on a file transfer protocol; or

And acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a CLI command.

5. The method according to claim 1, wherein the database file is a key-value-pair-database-based file, and the restoring the database file to the ARP table of the critical state based on a preset rule comprises:

and restoring the database file into an ARP table representing the critical state based on the corresponding relation between the key value pairs in the database file and the ARP table.

6. A network cutover apparatus, applied to a first network device, the apparatus comprising:

the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a database file corresponding to a dynamic ARP table of second network equipment from the second network equipment;

the recovery unit is used for recovering the database file into an ARP table in a critical state based on a preset rule, and the table entries in the ARP table in the critical state are not aged and deleted;

and the forwarding unit is used for forwarding the data to be forwarded according to the ARP table in the critical state when the data to be forwarded is received, so that the first network equipment replaces the second network equipment for data forwarding.

7. The apparatus of claim 6, further comprising:

the detection unit is used for broadcasting an ARP request detection message based on the ARP table in the critical state;

and the conversion unit is used for converting the ARP table in the critical state into a dynamic ARP table of the first network equipment when a response message based on the ARP request detection message is received.

8. The apparatus according to claim 6 or 7, wherein the obtaining unit is further configured to:

acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a management port of the first network equipment based on a file transfer protocol; or

And acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a CLI command.

9. A network device, characterized in that the network device comprises a processor and a memory coupled to each other, in which memory a computer program is stored which, when executed by the processor, causes the network device to carry out the method according to any one of claims 1-5.

10. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method according to any one of claims 1-5.

Technical Field

The present application relates to the field of data communications, and in particular, to a network cutover method, an apparatus, a network device, and a computer-readable storage medium.

Background

ARP (Address Resolution Protocol) is an Address Resolution Protocol for acquiring a physical Address (usually, an ethernet MAC Address) from an IP (Internet Protocol) Address. The ARP table in the network equipment contains the mapping relation between the IP address and the physical address. When the three-layer equipment needs to send a message to the next-hop neighbor equipment, the ARP table is inquired according to the next-hop neighbor IP to obtain the MAC address, and the MAC address is filled in the target MAC of the Ethernet head of the message, so that the message forwarding is realized. The ARP tables of network devices are generally of two types: 1) a static ARP table configured manually by a user via CLI commands; can not be updated by the dynamic message; detection and aging deletion cannot be performed; 2) the dynamic ARP table is automatically learned and updated by the network equipment according to the network message, and can be periodically detected, aged and deleted.

The learning process of the dynamic ARP table in the prior art is as follows: when receiving ARP message sent by neighbor device or user host, learning and updating dynamic ARP table; when receiving an IP packet to be forwarded, the device needs to forward the packet to a next-hop IP address (which may be a neighbor device or a user host). If the ARP table of the next hop IP address does not exist on the equipment, triggering the equipment to send an ARP request message, and learning the ARP table of the next hop IP address after receiving an ARP response message; when the ARP table corresponding to the next hop IP address does not exist on the equipment, the IP message to be forwarded is discarded until the dynamic ARP table is successfully learned.

In the process of network cutover, the updated new device is usually used to replace the old device in the original network, and the dynamic ARP table learned by the old device is lost on the new device. The new device can only relearn the dynamic ARP table and forward traffic is interrupted before the learning is complete. Since a new device is just accessed, a large number of user hosts may need to learn and is limited by the ARP table learning rate of the device, which causes long interruption time and slow convergence of network traffic in the network cutover process and affects data forwarding.

Disclosure of Invention

An object of the embodiments of the present application is to provide a network cutover method, an apparatus, a network device, and a computer-readable storage medium, which can solve the problems that the flow interruption time is long, the convergence is slow, and the data forwarding is affected in the network cutover process.

In order to achieve the above object, embodiments of the present application are implemented as follows:

in a first aspect, an embodiment of the present application provides a network cutover method, which is applied to a first network device, and the method includes: acquiring a database file corresponding to a dynamic ARP table of second network equipment from the second network equipment; restoring the database file to an ARP table in a critical state based on a preset rule, wherein the table entry of the ARP table in the critical state is not aged and deleted; and when receiving data to be forwarded, forwarding the data to be forwarded according to the ARP table in the critical state so that the first network equipment replaces the second network equipment for data forwarding.

In the foregoing embodiment, when the first network device is used to perform network cutover, the first network device may first obtain the dynamic ARP table of the second network device from the second network device, and then convert the obtained dynamic ARP table into the ARP table of the first network device in the critical state. Therefore, in the network cutting process, the second network equipment can continuously maintain the forwarding of the network flow before the flow is cut into the first network equipment, and the first network equipment can immediately forward the data after the flow is cut into the first network equipment without interrupting the forwarding of the data, so that the network convergence after cutting is accelerated, and the data forwarding efficiency is improved.

With reference to the first aspect, in some optional embodiments, the method further comprises:

broadcasting an ARP request detection message based on the ARP table in the critical state;

and when a response message based on the ARP request detection message is received, converting the ARP table in the critical state into a dynamic ARP table of the first network equipment.

In the above embodiment, the ARP table in the critical state is converted into the dynamic ARP table, which is beneficial to the first network device to learn and update the dynamic ARP table after accessing the data traffic, so as to improve the timeliness of the ARP table.

With reference to the first aspect, in some optional embodiments, the method further comprises:

and when receiving new data to be forwarded, forwarding the new data to be forwarded according to the dynamic ARP table of the first network equipment.

In the above embodiment, the dynamic ARP table is used for data forwarding, which is beneficial to learning and updating the ARP table during data forwarding.

With reference to the first aspect, in some optional embodiments, acquiring, from a second network device, a database file corresponding to a dynamic ARP table of the second network device includes:

and acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through the management port of the first network equipment based on a file transfer protocol.

In the foregoing embodiment, the first network device may quickly acquire, through a file transfer protocol, the database file of the dynamic ARP table of the second network device from the second network device, so as to implement automatic acquisition of the database file.

With reference to the first aspect, in some optional embodiments, acquiring, from a second network device, a database file corresponding to a dynamic ARP table of the second network device includes:

and acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a CLI command.

In the foregoing embodiment, the first network device may ensure that the database file of the dynamic ARP table of the second network device can be acquired from the second network device by the CLI command.

With reference to the first aspect, in some optional embodiments, the database file is a key-value-pair-based database file, and the recovering the database file to the ARP table in the critical state based on a preset rule includes:

and restoring the database file into an ARP table representing the critical state based on the corresponding relation between the key value pairs in the database file and the ARP table.

In the foregoing embodiment, based on the correspondence between the key value pair in the database and the ARP table, the database file can be quickly restored to the ARP table in the critical state, so that the first network device performs corresponding forwarding processing according to the ARP table in the critical state.

In a second aspect, the present application further provides a network cutover apparatus, applied to a first network device, the apparatus including:

the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a database file corresponding to a dynamic ARP table of second network equipment from the second network equipment;

the recovery unit is used for recovering the database file into an ARP table in a critical state based on a preset rule, and the table entries in the ARP table in the critical state are not aged and deleted;

and the forwarding unit is used for forwarding the data to be forwarded according to the ARP table in the critical state when the data to be forwarded is received, so that the first network equipment replaces the second network equipment for data forwarding.

In combination with the second aspect, in some optional embodiments, the apparatus further comprises:

the detection unit is used for broadcasting an ARP request detection message based on the ARP table in the critical state;

and the conversion unit is used for converting the ARP table in the critical state into a dynamic ARP table of the first network equipment when a response message based on the ARP request detection message is received.

With reference to the second aspect, in some optional embodiments, the obtaining unit is further configured to:

acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a management port of the first network equipment based on a file transfer protocol; or

And acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a CLI command.

In a third aspect, the present application further provides a network device, which includes a processor and a memory coupled to each other, and the memory stores a computer program, and when the computer program is executed by the processor, the network device is caused to perform the method described above.

In a fourth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when run on a computer, causes the computer to perform the method described above.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.

Fig. 1 is a schematic diagram of communication connection of a network system according to an embodiment of the present application.

Fig. 2 is a schematic structure of a network device according to an embodiment of the present application.

Fig. 3 is a schematic flow chart of a network cutover method according to an embodiment of the present disclosure.

Fig. 4 is a block diagram of a network cutover apparatus according to an embodiment of the present disclosure.

Icon: 10-a network system; 20-a first network device; 30-a second network device; 40-a terminal device; 50-a network device; 51-a processing module; 52-a storage module; 53-a communication module; 200-network cutover means; 210-an obtaining unit; 220-a recovery unit; 230-forwarding unit.

Detailed Description

The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It should be noted that the terms "first," "second," and the like are used merely to distinguish one description from another, and are not intended to indicate or imply relative importance. The embodiments described below and the features of the embodiments can be combined with each other without conflict.

Referring to fig. 1, a network system 10 may include a first network device 20, a second network device 30 and a terminal device 40. The first network device 20 and the second network device 30 can establish a communication connection through a data line or a network line to perform data interaction. In addition, the terminal device 40 may establish a communication connection with the first network device 20 and the second network device 30 through the network to log in to the first network device 20 or the second network device 30 for a management operation. It should be noted that the network system 10 may further include more network devices, and the number of the network devices included in the network system 10 is not particularly limited.

In this embodiment, the first network device 20 is used as a new device to replace the second network device 30, and the second network device 30 is a network device that needs to be replaced in the network system 10. The network device may be, but is not limited to, a router, a switch, etc. The terminal device 40 is a terminal device having a login display function, and may be a management terminal of the first network device 20 and the second network device 30, and the terminal device 40 may display a configuration and a file in the network device by logging in the first network device 20 and the second network device 30.

Illustratively, if the first network device 20 is an upgraded new router, the second network device 30 is an old router. In the network system 10, when performing the cutover operation, it is necessary to replace the old router (the second network device 30) in the original network with the new router (the first network device 20) without affecting the operation of the original network as much as possible.

Referring to fig. 1 and fig. 2 in combination, the present application further provides a network device 50, where the network device 50 can be used as the first network device 20 described above to replace other network devices existing in the network system 10, for example, to replace the second network device 30. Network device 50 may include a processing module 51 and a storage module 52. The storage module 52 stores therein a computer program that, when executed by the processing module 51, enables the network device 50 to perform the steps of the network cutover method described below.

It should be noted that the network device 50 may also include other modules, such as a communication module 53. The processing module 51, the storage module 52 and the communication module 53 are electrically connected directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.

Referring to fig. 3, the present application further provides a network cutover method, which can be applied to the first network device 20 (or the network device 50) and executed or implemented by the first network device 20. The method may comprise the steps of:

step S110, obtaining a database file corresponding to a dynamic ARP table of a second network device from the second network device;

step S120, restoring the database file to an ARP table in a critical state based on a preset rule, wherein the table entry of the ARP table in the critical state is not aged and deleted;

step S130, when receiving the data to be forwarded, forwarding the data to be forwarded according to the ARP table in the critical state, so that the first network device replaces the second network device for data forwarding.

In the foregoing embodiment, when the first network device performs network cutover on the second network device, the first network device may first obtain the dynamic ARP table of the second network device from the second network device, and then convert the obtained dynamic ARP table into the ARP table of the first network device in the critical state. When the data to be forwarded is switched into the first network equipment, the data to be forwarded can be forwarded by using the ARP table in the critical state, and the first network equipment does not need to learn the dynamic ARP table any more. Therefore, in the network cut-over process, the second network device continues to maintain the forwarding of the network traffic before the traffic is cut into the first network device, and the first network device immediately forwards the data after the traffic is cut into the first network device, so that the forwarding of the data is not required to be interrupted, the network convergence after cut-over is accelerated, and the data forwarding efficiency is improved.

The individual steps of the process are explained in detail below, as follows:

before step S110, the management port of the first network device has already accessed the network system, at this time, the forwarding port of the first network device is not opened, that is, the first network device cannot receive the service traffic sent by other devices, and the first network device can only perform data interaction through the management port. For example, a first network device may be connected to a second network device through a management port.

In step S110, the first network device may obtain, through its own management port, a database file corresponding to the dynamic ARP table of the current second network device from the second network device.

Understandably, the second network device may store the current dynamic ARP table in a database file manner in a designated file of the second network device, where the designated file may be determined according to an actual situation. The database file may be updated as the dynamic ARP table is updated. For example, after the dynamic ARP table in the second network device learns a new entry, the dynamic ARP table needs to be updated, and after the dynamic ARP table is updated, the second network device generates a new database file based on the updated dynamic ARP table to replace the previous database file.

In this embodiment, the manner in which the first network device acquires the database file of the dynamic ARP table of the second network device may be flexibly determined according to an actual situation.

As an alternative implementation, step S110 may include:

and acquiring the database File corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a management port of the first network equipment based on a File Transfer Protocol (FTP).

Understandably, in the network cutover process, when the first network device is connected with the second network device through the management port, the first network device can obtain the database file stored in the second network device through the file transfer protocol from the management port of the first network device.

As an alternative implementation, step S110 may include:

and acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a Command Line Interface (CLI) Command.

In this embodiment, the database file includes text content corresponding to the dynamic ARP table, and the second network device may output the text content in the database file of its own dynamic ARP table to the terminal device through the CLI command. Then, the first network device copies the database file of the dynamic ARP table representing the second network device, which is displayed in the terminal device, through the CLI command.

In step S120, a preset policy is used to restore the database file to the ARP table, which can be flexibly determined according to actual situations.

As an alternative embodiment, the database file is a file based on a Key-Value pair (K-V) database, and step S120 may include:

and restoring the database file into an ARP table representing the critical state based on the corresponding relation between Key (Key) pairs and Value (Value) pairs in the database file and the ARP table.

Understandably, the second network device generates the dynamic ARP table into a database file. In the process of recovering the ARP table, the first network device may recover the key value pair in the database file into the ARP table that characterizes the critical state based on a correspondence relationship when the database file is generated (i.e., a correspondence relationship between the key value pair in the database and the ARP table).

There are two types of entries in the dynamic ARP table on the old device (second network device): the dynamic ARP list item of the route interface and the dynamic ARP list item of the Vlan interface. The dynamic ARP entry of the Vlan interface type needs to learn the port information at the same time. Exemplarily, it is assumed that there are four entries in the dynamic ARP table of the second Network device, an IP (Internet Protocol) address and a VRF (Virtual Routing Forwarding) are keywords, which respectively represent four typical combinations of a default VRF and a Routing interface, a non-default VRF and a Routing interface, a default VRF and a VLAN (Virtual Local Area Network) interface, a non-default VRF and a VLAN interface, and the four dynamic ARP entries are as follows:

on the second network device, the 4 entries of the dynamic ARP table are saved as a database file, that is, the four dynamic ARP entries are generated into the following database file through the key-value pair database, and the content format of the database file may be as follows:

after the first network device acquires the database file from the second network device, the database file may be restored to the ARP table based on a correspondence between a Key (Key) Value pair and the ARP table.

Illustratively, the recovery of the database file may be as follows:

in one content of the database file, for example, the second "ARP VRF VRF22.0.0.10002.001.0001 temporary" in the above database file table, the first network device may regard "IP address" and "VRF" as keys, and when the VRF field does not exist, it is considered as a global VRF; when the VLAN field does not exist, the VLAN field is regarded as a routing interface ARP, and port information is not needed; interface information is not needed during dynamic ARP synchronization, because the first network device can inquire a corresponding interface (a routing interface or a VLAN interface) through IP address routing, each content of a database file can be converted into an item of an ARP table representing a critical state, and the ARP table of the critical state is obtained.

In step S130, the first network device already obtains the ARP table in the critical state, and when the traffic is switched into the first network device, it indicates that the forwarding port of the first network device is opened, and the traffic (to-be-forwarded data) sent by other devices (such as a host, a switch, a router, and the like) can be received, at this time, the first network device can forward the traffic with the ARP table in the critical state, thereby implementing fast forwarding of the traffic data.

In this embodiment, the ARP table in the critical state is different from the existing static ARP table and dynamic ARP table in functional characteristics.

The characteristics of the static ARP table are: the MAC address and the port can not be updated by the ARP message without detection and aging deletion, and can be manually maintained and configured.

The characteristics of the dynamic ARP table are: the method can detect, keep alive and age and delete the MAC address and the port regularly, the MAC address and the port can be updated by the ARP message, and the MAC address and the port can be maintained autonomously without manual participation.

The characteristics of the ARP table for critical states are: can be sent to a switching chip, and can directly guide the flow to carry out three-layer forwarding; the ARP request detection message can be sent by broadcasting regularly, and the aging and deletion can be avoided before the cut-in of the first network equipment is finished; after the first network device cuts in the line, it can receive the response message sent by other devices based on the ARP request detection message, so as to convert the ARP table in the critical state into a dynamic ARP table.

As an optional implementation, the method may further include:

broadcasting an ARP request detection message based on the ARP table in the critical state;

and when a response message based on the ARP request detection message is received, converting the ARP table in the critical state into a dynamic ARP table of the first network equipment.

Understandably, according to the characteristic of the ARP table in the critical state, the first network device broadcasts the ARP request detection message in a preset period through the ARP table in the critical state, so as to determine whether the cutover line of the first network device is cut into the network system. The preset period can be flexibly determined according to actual conditions, and is not particularly limited herein. If the first network device does not receive the response message based on the ARP request detection message, the first network device indicates that the cutover line of the first network device is not cut in or is not stably cut in the network system. If the first network device receives the response message based on the ARP request detection message, the first network device indicates that the cut-over line of the first network device is stably cut into the network system and the forwarding process is stable, at this time, the ARP table in the critical state can be converted into a dynamic ARP table, and the dynamic ARP table is a common dynamic ARP table and can be dynamically learned and updated.

As an optional implementation, the method may further include: and when receiving new data to be forwarded, forwarding the new data to be forwarded according to the dynamic ARP table of the first network equipment.

Understandably, after the first network device converts the ARP table in the critical state into the dynamic ARP table, when the data to be forwarded is subsequently received, the data forwarding processing is performed according to the dynamic ARP table.

Based on the design, the dynamic ARP table in the second network equipment can be smoothly and reliably migrated to the first network equipment. When the first network equipment is stably forwarded, the ARP table in the critical state is converted into the dynamic ARP table, so that the autonomous management and maintenance of the ARP table after network cutover can be realized, and the manual participation process is less. In addition, in the network cutover process, the network flow does not need to be interrupted, and the forwarding of data is still maintained in the network cutover process.

Referring to fig. 4, an embodiment of the present application further provides a network cutover device 200, which can be applied to the network device described above and is used for executing the steps in the method. The network cutting device 200 includes at least one software function module which can be stored in a storage module in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of a network device. The processing module is used for executing executable modules stored in the storage module, such as software functional modules and computer programs included in the network cutover device 200.

The network cutover device 200 may include an obtaining unit 210, a recovering unit 220, and a forwarding unit 230, and may perform the following operation steps:

an obtaining unit 210, configured to obtain, from a second network device, a database file corresponding to a dynamic ARP table of the second network device;

a restoring unit 220, configured to restore the database file to an ARP table in a critical state based on a preset rule, where an entry in the ARP table in the critical state is not aged and deleted;

and a forwarding unit 230, configured to forward, when receiving data to be forwarded, the data to be forwarded according to the ARP table in the critical state, so that the first network device replaces the second network device for data forwarding.

Optionally, the network cutover device 200 may further include a detection unit and a conversion unit. After the recovering unit 220 executes step S120, a detecting unit, configured to broadcast an ARP request detection packet based on the ARP table of the critical state; and the conversion unit is used for converting the ARP table in the critical state into a dynamic ARP table of the first network equipment when a response message based on the ARP request detection message is received.

Optionally, the forwarding unit 230 may further be configured to: and when receiving new data to be forwarded, forwarding the new data to be forwarded according to the dynamic ARP table of the first network equipment.

Optionally, the obtaining unit 210 may be further configured to: acquiring the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a management port of the first network equipment based on a file transfer protocol; or obtaining the database file corresponding to the dynamic ARP table of the second network equipment from the second network equipment through a CLI command.

Optionally, the recovery unit 220 may be further configured to: and restoring the database file into an ARP table representing the critical state based on the corresponding relation between the key value pairs in the database file and the ARP table.

In this embodiment, the processing module may be an integrated circuit chip having signal processing capability. The processing module may be a general purpose processor. For example, the processor may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application.

The memory module may be, but is not limited to, a random access memory, a read only memory, a programmable read only memory, an erasable programmable read only memory, an electrically erasable programmable read only memory, and the like. In this embodiment, the storage module may be configured to store a database file, a preset policy, and the like. Of course, the storage module may also be used to store a program, and the processing module executes the program after receiving the execution instruction.

The communication module is used for establishing communication connection between the network equipment and other equipment through a network and receiving and transmitting data through the network.

It is understood that the configuration shown in fig. 2 is only a schematic configuration of a network device, and the network device may further include more components than those shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.

It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working process of the network device described above may refer to the corresponding process of each step in the foregoing method, and will not be described in detail herein.

The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium has stored therein a computer program which, when run on a computer, causes the computer to execute the network cutover method as described in the above embodiments.

From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by hardware, or by software plus a necessary general hardware platform, and based on such understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments of the present application.

In summary, in the present solution, when the data to be forwarded is switched into the first network device, the obtained ARP table in the critical state may be used to forward the data to be forwarded, and the first network device does not need to learn the ARP table any more, so that, in the network cutover process, before the traffic is switched into the first network device, the second network device continues to maintain forwarding of the network traffic, and after the traffic is switched into the first network device, the first network device immediately forwards the data without interrupting forwarding of the data, thereby accelerating network convergence after the cutover, which is beneficial to improving data forwarding efficiency.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus, system, and method may be implemented in other ways. The apparatus, system, and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. 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 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, functional modules in the embodiments of the present application 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 above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:多标识网络体系中基于软件定义的分发式流表匹配方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!