CN107317755A - A kind of hardware forwarding table error correction method, device and computer-readable recording medium - Google Patents
A kind of hardware forwarding table error correction method, device and computer-readable recording medium Download PDFInfo
- Publication number
- CN107317755A CN107317755A CN201710730929.3A CN201710730929A CN107317755A CN 107317755 A CN107317755 A CN 107317755A CN 201710730929 A CN201710730929 A CN 201710730929A CN 107317755 A CN107317755 A CN 107317755A
- Authority
- CN
- China
- Prior art keywords
- hardware
- forwarding
- item
- error
- detection
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/742—Route cache; Operation thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
Abstract
The present invention relates to network communication field there is provided a kind of hardware forwarding table error correction method, device and computer-readable recording medium, to repair hardware forwarding table mistake automatically, shorten the time of service disconnection as far as possible.Methods described includes:Hardware forwarding table is generated, the hardware forwarding table includes hardware route and forwards relevant information;Cache the hardware route forwarding relevant information;Relevant information is forwarded to detect hardware forwarding table according to the hardware route of the caching;According to the result of the detection, the error hardware forwarding-table item detected is repaired.The technical scheme that the present invention is provided is handed off can repair the mistake of hardware forwarding table automatically, it is to avoid the interruption of business or the time for shortening service disconnection to greatest extent.
Description
Technical field
The invention belongs to network communication field, more particularly to a kind of hardware forwarding table error correction method, device and computer
Readable storage medium storing program for executing.
Background technology
In order to reach the surface speed forwarding and offloading the CPU of data, existing three-layer switching equipment is mainly based upon
Hardware forwarding table is forwarded to IP messages.This forwarding mechanism is main by software forward list item and hardware forwarding table Xiang Wei
Shield, wherein, software forward list item includes forwarding information list item (Forward Information Base, FIB) and address resolution
Agreement (Address Resolution Protocol, ARP) list item, hardware forwarding table includes route table items, MAC Address and turned
Send out data table items (Forward Data Base, FDB), next-hop (nexthop) list item and three layer interface list items.
The existing literary process of three-layer switching equipment processing IP datagram includes:When receiving IP datagram text, search hard
Part forwarding-table item, and content modification and forwarding IP datagram text according to hardware forwarding table.If hardware forwarding table does not have
There is correct routing iinformation, IP datagram text may be sent to CPU processing due to lacking forwarding-table item, pass through software learning to phase
The route table items answered, and hardware forwarding chip is issued to, the IP datagram text for being subsequently sent to identical mesh ground can be by hardware
Forwarded, so as to reach surface speed forwarding.If hardware forwarding table is without correct routing iinformation, another processing IP data
The mode of message is probably directly to be discarded rather than being sent to CPU processing.
Although above-mentioned existing method is when hardware forwarding table item is not present, but touched by the way that IP datagram text is sent into CPU
Software learning routing iinformation is sent out, so as to solve the problems, such as the surface speed forwarding of IP datagram text.However, when hardware forwarding table is deposited
, but some contents it is incorrect when, IP datagram text then may be simply discarded or be forwarded to mistake port.Due to message
CPU is not sent to, software can not be triggered and go to correct or relearn route table items, causes network to occur abnormal.In order to by net
Network repairs normal, otherwise restart three-layer switching equipment, or after by keeper, the related network interface of service disconnection is closed
Restart, however, either which kind of processing mode, is required for manual intervention, inevitably result in the interruption of business
Urgently industry is solved above-mentioned technical problem.
The content of the invention
The present invention provides a kind of hardware forwarding table error correction method, device and computer-readable recording medium, to repair automatically
Multiple hardware forwarding table mistake, shortens the time of service disconnection as far as possible.
First aspect present invention provides a kind of hardware forwarding table error correction method, and methods described includes:
Hardware forwarding table is generated, the hardware forwarding table includes hardware route and forwards relevant information;
Cache the hardware route forwarding relevant information;
Relevant information is forwarded to detect hardware forwarding table according to the hardware route of the caching;
According to the result of the detection, the error hardware forwarding-table item detected is repaired.
Second aspect of the present invention provides a kind of hardware forwarding table error correction device, and described device includes:
Route learning module, for generating hardware forwarding table, the hardware forwarding table includes hardware route and forwards phase
Close information;
Cache module, for caching the hardware route forwarding relevant information;
Detection module, for forwarding relevant information to examine hardware forwarding table according to the hardware route of the caching
Survey;
Repair module, for the result according to the detection, is repaired to the error hardware forwarding-table item detected.
Third aspect present invention provides a kind of terminal device, including memory, processor and storage are in memory
And the computer program that can be run on a processor, realize following steps during computing device computer program:
Hardware forwarding table is generated, the hardware forwarding table includes hardware route and forwards relevant information;
Cache the hardware route forwarding relevant information;
Relevant information is forwarded to detect hardware forwarding table according to the hardware route of the caching;
According to the result of the detection, the error hardware forwarding-table item detected is repaired.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, computer-readable recording medium
Be stored with computer program, and following steps are realized when computer program is executed by processor:
Hardware forwarding table is generated, the hardware forwarding table includes hardware route and forwards relevant information;
Cache the hardware route forwarding relevant information;
Relevant information is forwarded to detect hardware forwarding table according to the hardware route of the caching;
According to the result of the detection, the error hardware forwarding-table item detected is repaired.
It was found from the technical scheme that the invention described above is provided, relevant information is forwarded by caching hardware route, according to caching
Hardware route forwarding relevant information hardware forwarding table is detected, the error hardware forwarding-table item detected is repaiied
Multiple, compared with prior art, the technical scheme that the present invention is provided, which is handed off, can repair hardware forwarding table automatically
Mistake, it is to avoid the interruption of business or the time for greatest extent shortening service disconnection.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention
Embodiment, for those of ordinary skill in the art, can also be according to these accompanying drawings under the premise of creative work is not paid
Obtain other accompanying drawings.
Fig. 1 is the implementation process schematic diagram of hardware forwarding table error correction method provided in an embodiment of the present invention;
Fig. 2 is the structural representation of hardware forwarding table error correction device provided in an embodiment of the present invention;
Fig. 3 is the structural representation for the hardware forwarding table error correction device that another embodiment of the present invention is provided;
Fig. 4 is the structural representation for the hardware forwarding table error correction device that another embodiment of the present invention is provided;
Fig. 5 is the structural representation for the hardware forwarding table error correction device that another embodiment of the present invention is provided;
Fig. 6 is the structural representation of terminal device provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc
Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity
Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to illustrate technical scheme, illustrated below by specific embodiment.
Accompanying drawing 1 is the implementation process schematic diagram of hardware forwarding table error correction method provided in an embodiment of the present invention, main bag
Following steps S101 to S104 is included, is described in detail as follows:
S101, generation hardware forwarding table.
In embodiments of the present invention, route learning module gets route by fib table, ARP and FDB list items and turned
Send out after relevant information, routing forwarding relevant information is issued to hardware view, generation hardware forwarding table, and from hardware forwarding table
Item obtains hardware route forwarding relevant information.
S102, caching hardware route forwarding relevant information.
S103, forwards relevant information to detect hardware forwarding table according to the hardware route of caching.
As one embodiment of the invention, relevant information is forwarded to carry out hardware forwarding table according to the hardware route of caching
Detection S1031 and S0132 can be realized as follows:
S1031, periodically traversal caching hardware route forwarding relevant information, the rope of hardware table item needed for obtaining forwarding
Draw.
In embodiments of the present invention, wherein, hardware route forwarding relevant information include forwarding needed for hardware table item index
(index), three-layer routing list item includes purpose IP address and mask etc., the MAC Address of three layer interface list items, next-hop list item
Relevant field is next-hop ip address, the MAC Address of two layers of FDB list items and port etc..
S1032, according to forwarding needed for hardware table item index, successively to three-layer routing list item, three layer interface list items, two layers
Forwarding data table items and next-hop list item are detected, and send the information of mistake to correct after detection finds mistake.
Specifically, step S1032 realization S1 to S5 can be realized as follows:
S1, reads three-layer routing list item corresponding with index.
Three-layer routing list item mainly includes the information such as purpose IP address and mask, can according to the index of three-layer routing list item,
Three-layer routing list item corresponding with the index is read from hardware forwarding table.
Whether S2, detection three-layer routing list item is correct.
In embodiments of the present invention, whether detection three-layer routing list item is correctly mainly testing goal IP address and mask etc.
Whether information is correct.
S3, if three-layer routing entry error, sends the information of three-layer routing list item detection mistake to correct.
If three-layer routing entry error, the information that three-layer routing list item detects mistake is sent to repair module, for repairing
Multiple module corrects the mistake.
S4, if three-layer routing list item is correct, continues whether just to detect three layer interface list items and two layers of forwarding data table items
Really.
If three-layer routing list item is correct, can by the correct three-layer routing list item, get three layer interface list items and
Two layers of forwarding data table items, so as to detect three layer interface list items (the mainly MAC Address of three layer interface list items) and two layers of forwarding
Whether data table items (MAC Address of mainly two layers forwarding data table items) are correct.
S5, if three layer interface list items and two layers of forwarding data table items mistake, send three layer interface list items and two layers of forwarding
The information of data table items detection mistake is for correction.
If being detected through S4, three layer interface list items and two layers of forwarding data table items mistake then send three layers to repair module and connect
The information of oral thermometer and two layers of forwarding data table items detection mistake, so that repair module corrects these mistakes.
S104, according to the result detected through step S103, is repaired to the error hardware forwarding-table item detected.
Specifically, according to the result detected through step S103, carrying out reparation to the error hardware forwarding-table item detected can
S1041 to S1044 is realized as follows:
S1041, according to the property of mistake, the result of detection is classified.
S1042, if error hardware forwarding-table item, which belongs to, can repair error hardware forwarding-table item, mistake can be repaired by directly repairing
Miss route table items.
In embodiments of the present invention, three layers of simple error hardware forwarding-table item, for example, two layers of forwarding data table items "
Flag, next-hop mac address etc., which belong to, can repair error hardware forwarding-table item, and such mistake can be repaired directly.
S1043, if error hardware forwarding-table item belongs to unrepairable error hardware forwarding-table item, deletes address resolution association
Discuss list item.
S1044, notifies route learning module to relearn route related information.
If for example, the detection through step S1041, error hardware forwarding-table item belongs to the IP address of three-layer routing list item, covered
The unrepairable error hardware forwarding-table items such as code, then delete items of address analyzing protocol table, notifies route learning module to relearn
Route related information.
It was found from the hardware forwarding table error correction method of the above-mentioned example of accompanying drawing 1, by caching the related letter of hardware route forwarding
Breath, forwards relevant information to detect hardware forwarding table according to the hardware route of caching, and the error hardware detected is turned
Forwarding list item is repaired, compared with prior art, and the technical scheme that the present invention is provided, which is handed off, can repair hard automatically
The mistake of part forwarding-table item, it is to avoid the interruption of business or the time for greatest extent shortening service disconnection.
Accompanying drawing 2 is the schematic diagram of hardware forwarding table error correction device provided in an embodiment of the present invention, and the main route that includes is learned
Module 201, cache module 202, detection module 203 and repair module 204 are practised, is described in detail as follows:
Route learning module 201, for generating hardware forwarding table, the hardware forwarding table includes hardware route forwarding
Relevant information, hardware route forwarding relevant information includes route table items, MAC Address forwarding data table items (Forward Data
Base, FDB), next-hop (nexthop) list item and three layer interface list items;
Cache module 202, relevant information is forwarded for the hardware route that cache routing study module 201 is generated;
Detection module 203, for being forwarded in the hardware route forwarding relevant information cached according to cache module 202 to hardware
List item is detected;
Repair module 204, for the result detected according to detection module 203, to the error hardware forwarding-table item detected
Repaired.
It should be noted that device provided in an embodiment of the present invention, due to being based on same structure with the inventive method embodiment
Think, its technique effect brought is identical with the inventive method embodiment, and particular content can be found in the inventive method embodiment
Narration, here is omitted.
The detection module 203 of the example of accompanying drawing 2 can include acquiring unit 301 and error detection units 302, and such as accompanying drawing 3 shows
The hardware forwarding table error correction device of example, wherein:
Acquiring unit 301, the hardware route for periodically traveling through the caching of cache module 202 forwards relevant information, obtains
The index of hardware table item needed for forwarding;
Error detection units 302, for the index of the hardware table item according to needed for forwarding, successively to three-layer routing list item, three
Layer interface list item, two layers of forwarding data table items and next-hop list item are detected, and send mistake after detection finds mistake
Information is for correction.
The error detection units 302 of the example of accompanying drawing 3 can include reading unit 401, the first detection unit 402, first and send out
Unit 403, the second detection unit 404 and the second transmitting element 405 are sent, such as the hardware forwarding table of the example of accompanying drawing 4 error correction device,
Wherein:
Reading unit 401, for reading three-layer routing list item corresponding with indexing;
First detection unit 402, for detecting whether three-layer routing list item is correct;
First transmitting element 403, if for three-layer routing entry error, sending the letter of three-layer routing list item detection mistake
Breath is for correction;
Second detection unit 404, if correct for three-layer routing list item, continues to detect three layer interface list items and two layers turns
Whether correct send out data table items;
Second transmitting element 405, if for three layer interface list items and two layers of forwarding data table items mistake, sending three layers and connecing
Oral thermometer and two layers of forwarding data table items detect the information of mistake to correct.
The repair module 204 of the example of accompanying drawing 2 can include taxon 501, directly repair unit 502, delete unit 503
With notification unit 504, the hardware forwarding table error correction device of such as example of accompanying drawing 5, wherein:
Taxon 501, for the property according to mistake, the result of detection is classified;
Unit 502 is directly repaired, if error hardware forwarding-table item can be repaired by belonging to for error hardware forwarding-table item, directly
Error hardware forwarding-table item can be repaired described in reparation by connecing;
Unit 503 is deleted, if belonging to unrepairable error hardware forwarding-table item for wrong route table items, address is deleted
Analytic protocol table entry;
Notification unit 504, for notifying route learning module to relearn route related information.
Fig. 6 is the structural representation for the terminal device that one embodiment of the invention is provided.As shown in fig. 6, the end of the embodiment
End equipment 6 includes:Processor 60, memory 61 and it is stored in the computer that can be run in memory 61 and on processor 60
The program of program 62, such as hardware forwarding table an error correction method.Processor 60 realizes above-mentioned hardware when performing computer program 62
Step in forwarding-table item error correction method embodiment, such as the step S101 to S104 shown in Fig. 1.Or, processor 60 is performed
The function of each module/unit in above-mentioned each device embodiment, such as route learning module shown in Fig. 2 are realized during computer program 62
201st, the function of cache module 202, detection module 203 and repair module 204.
Exemplary, the computer program 62 of hardware forwarding table error correction method mainly includes:Hardware forwarding table is generated,
Critical field information and route entry needed for the hardware forwarding table includes forwarding;Cache the hardware forwarding table;Setting
During for receiving IP datagram text, route table items are detected according to the hardware forwarding table of the caching;According to the detection
Result, the wrong route table items detected are repaired.Computer program 62 can be divided into one or more modules/
Unit, one or more module/unit is stored in memory 61, and is performed by processor 60, to complete the present invention.One
Individual or multiple module/units can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used for
Implementation procedure of the computer program 62 in computing device 6 is described.For example, computer program 62 can be divided into route learning
Module 201, cache module 202, the function of detection module 203 and repair module 204 (module in virtual bench), each module tool
Body function is as follows:Route learning module 201, for generating hardware forwarding table, the hardware forwarding table includes hardware route
Forward relevant information;Cache module 202, for caching the hardware route forwarding relevant information;Detection module 203, for root
The hardware route forwarding relevant information cached according to the cache module 202 is detected to hardware forwarding table;Repair module
204, for the result detected according to the detection module 203, the error hardware forwarding-table item detected is repaired.
Terminal device 6 may include but be not limited only to processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6
Only the example of terminal device 6, does not constitute the restriction to terminal device 6, can include than illustrating more or less portions
Part, either combines some parts or different parts, and such as terminal device can also include input-output equipment, network and connect
Enter equipment, bus etc..
Alleged processor 60 can be CPU (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
Memory 61 can be the internal storage unit of terminal device 6, the hard disk or internal memory of such as terminal device 6.Storage
Device 61 can also be the External memory equipment of terminal device 6, such as the plug-in type hard disk being equipped with terminal device 6, intelligent storage
Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..
Further, memory 61 can also both include the internal storage unit of terminal device 6 or including External memory equipment.Memory
61 are used to store other programs and data needed for computer program and terminal device.Memory 61 can be also used for temporarily
Store the data that has exported or will export.
It is apparent to those skilled in the art that, for convenience of description and succinctly, only with above-mentioned each work(
Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions by different
Functional unit, module are completed, i.e., the internal structure of device is divided into different functional unit or module, to complete above description
All or part of function.Each functional unit, module in embodiment can be integrated in a processing unit or
Unit is individually physically present, can also two or more units it is integrated in a unit, above-mentioned integrated unit
Both it can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each functional unit, mould
The specific name of block is also only to facilitate mutually differentiation, is not limited to the protection domain of the application.It is single in said system
Member, the specific work process of module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment
The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
, can be with embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method
Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, mould
The division of block or unit, only a kind of division of logic function can have other dividing mode when actually realizing, such as multiple
Unit or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another
Point, shown or discussed coupling or direct-coupling or communication connection each other can be by some interfaces, device or
The INDIRECT COUPLING of unit or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit
Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks
On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If integrated module/unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-described embodiment side
All or part of flow in method, can also instruct the hardware of correlation to complete by computer program, hardware forwarding table
The computer program of error correction method can be stored in a computer-readable recording medium, and the computer program is being executed by processor
When, the step of each above-mentioned embodiment of the method can be achieved, i.e. generation hardware forwarding table, the hardware forwarding table includes hard
Part routing forwarding relevant information;Cache the hardware route forwarding relevant information;Phase is forwarded according to the hardware route of the caching
Information is closed to detect hardware forwarding table;According to the result of the detection, the error hardware forwarding-table item detected is entered
Row is repaired.Wherein, computer program includes computer program code, and computer program code can be source code form, object
Code form, executable file or some intermediate forms etc..Computer-readable medium can include:Computer program can be carried
Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, the read-only storage of code
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, electricity
Believe signal and software distribution medium etc..It should be noted that the content that computer-readable medium is included can be according to administration of justice pipe
Local legislation and the requirement of patent practice carry out appropriate increase and decrease, such as in some jurisdictions, according to legislation and patent
Practice, computer-readable medium does not include electric carrier signal and telecommunication signal.Skill of the above example only to illustrate the present invention
Art scheme, rather than its limitations;Although the present invention is described in detail with reference to the foregoing embodiments, the common skill of this area
Art personnel should be understood:It can still modify to the technical scheme described in foregoing embodiments, or to its middle part
Technical characteristic is divided to carry out equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from the present invention
The spirit and scope of each embodiment technical scheme, should be included in the scope of the protection.
Claims (10)
1. a kind of hardware forwarding table error correction method, it is characterised in that methods described includes:
Hardware forwarding table is generated, the hardware forwarding table includes hardware route and forwards relevant information;
Cache the hardware route forwarding relevant information;
Relevant information is forwarded to detect hardware forwarding table according to the hardware route of the caching;
According to the result of the detection, the error hardware forwarding-table item detected is repaired.
2. hardware forwarding table error correction method as claimed in claim 1, it is characterised in that the hardware road according to the caching
Hardware forwarding table is detected by forwarding relevant information, including:
Periodically travel through the hardware route forwarding relevant information of the caching, the index of hardware table item needed for obtaining forwarding;
The index of hardware table item according to needed for the forwarding, successively to three-layer routing list item, three layer interface list items, two layers of forwarding number
Detected according to list item and next-hop list item, and send the information of mistake to correct after detection finds mistake.
3. hardware forwarding table error correction method as claimed in claim 2, it is characterised in that the hardware according to needed for the forwarding
The index of list item, is examined to three-layer routing list item, three layer interface list items, two layers of forwarding data table items and next-hop list item successively
Survey, and send the information of detection mistake to correct after detection finds mistake, including:
Read three-layer routing list item corresponding with the index;
Detect whether the three-layer routing list item is correct;
If the three-layer routing entry error, send the information of three-layer routing list item detection mistake to correct;
If the three-layer routing list item is correct, continue to detect whether three layer interface list items and two layers of forwarding data table items are correct;
If the three layer interfaces list item and two layers of forwarding data table items mistake, send three layer interface list items and two layers of forwarding data
The information of list item detection mistake is for correction.
4. hardware forwarding table error correction method as claimed in claim 1, it is characterised in that the result according to the detection,
The error hardware forwarding-table item detected is repaired, including:
According to the property of mistake, the result of the detection is classified;
If the error hardware forwarding-table item, which belongs to, can repair error hardware forwarding-table item, mistake directly can be repaired described in reparation
Hardware forwarding table;
If the error hardware forwarding-table item belongs to unrepairable error hardware forwarding-table item, address analysis protocol table is deleted
;
Route learning module is notified to relearn route related information.
5. a kind of hardware forwarding table error correction device, it is characterised in that described device includes:
Route learning module, for generating hardware forwarding table, the hardware forwarding table includes the related letter of hardware route forwarding
Breath;
Cache module, for caching the hardware route forwarding relevant information;
Detection module, for forwarding relevant information to detect hardware forwarding table according to the hardware route of the caching;
Repair module, for the result according to the detection, is repaired to the error hardware forwarding-table item detected.
6. hardware forwarding table error correction device as claimed in claim 5, it is characterised in that the detection module includes:
Acquiring unit, the hardware route for periodically traveling through the caching forwards relevant information, obtains hardware list needed for forwarding
The index of item;
Error detection units, for the index of hardware table item needed for the forwarding, successively to three-layer routing list item, three layer interface tables
, two layers of forwarding data table items and next-hop list item detected, and send after detection finds mistake wrong information for
Correct.
7. hardware forwarding table error correction device as claimed in claim 6, it is characterised in that the error detection units include:
Reading unit, for reading three-layer routing list item corresponding with the index;
First detection unit, for detecting whether the three-layer routing list item is correct;
First transmitting element, if for the three-layer routing entry error, sending the information of three-layer routing list item detection mistake
For correcting;
Second detection unit, if correct for the three-layer routing list item, continues to detect three layer interface list items and two layers of forwarding
Whether data table items are correct;
Second transmitting element, if for the three layer interfaces list item and two layers of forwarding data table items mistake, sending three layer interfaces
The information of list item and two layers of forwarding data table items detection mistake is for correction.
8. hardware forwarding table error correction device as claimed in claim 5, it is characterised in that the repair module includes:
Taxon, for the property according to mistake, the result of the detection is classified;
Unit is directly repaired, if error hardware forwarding-table item can be repaired by belonging to for the error hardware forwarding-table item, directly
Error hardware forwarding-table item can be repaired described in repairing;
Unit is deleted, if belonging to unrepairable error hardware forwarding-table item for the error hardware forwarding-table item, deletes ground
Location analytic protocol table entry;
Notification unit, for notifying route learning module to relearn route related information.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor
The computer program of operation, it is characterised in that realize such as Claims 1-4 described in the computing device during computer program
The step of any one methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists
In the step of realizing such as Claims 1-4 any one methods described when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710730929.3A CN107317755B (en) | 2017-08-23 | 2017-08-23 | Hardware forwarding table entry error correction method and device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710730929.3A CN107317755B (en) | 2017-08-23 | 2017-08-23 | Hardware forwarding table entry error correction method and device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107317755A true CN107317755A (en) | 2017-11-03 |
CN107317755B CN107317755B (en) | 2020-07-31 |
Family
ID=60176512
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710730929.3A Active CN107317755B (en) | 2017-08-23 | 2017-08-23 | Hardware forwarding table entry error correction method and device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107317755B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365599A (en) * | 2019-07-12 | 2019-10-22 | 中国电信集团工会上海市委员会 | A kind of Openflow interchanger forwarding channel quickly updates system and method |
CN111683309A (en) * | 2020-05-29 | 2020-09-18 | 烽火通信科技股份有限公司 | OLT equipment dual-uplink service main and standby protection method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1402487A (en) * | 2002-10-14 | 2003-03-12 | 北京港湾网络有限公司 | Method for optimazed configuration of third layer exchange chip of network exchange apparatus |
CN1878121A (en) * | 2006-07-18 | 2006-12-13 | 杭州华为三康技术有限公司 | Multicast group maintaining method |
US20090304008A1 (en) * | 2008-06-04 | 2009-12-10 | Alaxala Networks Corporation | Network relay device and network relay method |
CN101610266A (en) * | 2009-07-28 | 2009-12-23 | 杭州华三通信技术有限公司 | A kind of method and device that detects ARP message validity |
CN102904685A (en) * | 2012-09-29 | 2013-01-30 | 杭州华三通信技术有限公司 | Method and device for processing hardware table entry checking error |
CN103560968A (en) * | 2013-10-30 | 2014-02-05 | 神州数码网络(北京)有限公司 | Switch hardware host routing table updating method and device and switch |
CN106776107A (en) * | 2016-11-30 | 2017-05-31 | 迈普通信技术股份有限公司 | A kind of parity error correction method and the network equipment |
-
2017
- 2017-08-23 CN CN201710730929.3A patent/CN107317755B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1402487A (en) * | 2002-10-14 | 2003-03-12 | 北京港湾网络有限公司 | Method for optimazed configuration of third layer exchange chip of network exchange apparatus |
CN1878121A (en) * | 2006-07-18 | 2006-12-13 | 杭州华为三康技术有限公司 | Multicast group maintaining method |
US20090304008A1 (en) * | 2008-06-04 | 2009-12-10 | Alaxala Networks Corporation | Network relay device and network relay method |
CN101610266A (en) * | 2009-07-28 | 2009-12-23 | 杭州华三通信技术有限公司 | A kind of method and device that detects ARP message validity |
CN102904685A (en) * | 2012-09-29 | 2013-01-30 | 杭州华三通信技术有限公司 | Method and device for processing hardware table entry checking error |
CN103560968A (en) * | 2013-10-30 | 2014-02-05 | 神州数码网络(北京)有限公司 | Switch hardware host routing table updating method and device and switch |
CN106776107A (en) * | 2016-11-30 | 2017-05-31 | 迈普通信技术股份有限公司 | A kind of parity error correction method and the network equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365599A (en) * | 2019-07-12 | 2019-10-22 | 中国电信集团工会上海市委员会 | A kind of Openflow interchanger forwarding channel quickly updates system and method |
CN111683309A (en) * | 2020-05-29 | 2020-09-18 | 烽火通信科技股份有限公司 | OLT equipment dual-uplink service main and standby protection method and system |
CN111683309B (en) * | 2020-05-29 | 2021-12-21 | 烽火通信科技股份有限公司 | OLT equipment dual-uplink service main and standby protection method and system |
Also Published As
Publication number | Publication date |
---|---|
CN107317755B (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105745870B (en) | Extend operation from for detecting the serial multistage filter flowed greatly removal nose filter to remove stream to realize | |
CN104301184B (en) | The health examination method and device of link | |
CN100542129C (en) | Packet forwarding device | |
CN107749091A (en) | Power distribution patrol method and terminal device | |
CN101917434B (en) | Method for verifying intra-domain Internet protocol (IP) source address | |
CN112532501B (en) | Host physical address processing method and device and computer readable storage medium | |
CN107317755A (en) | A kind of hardware forwarding table error correction method, device and computer-readable recording medium | |
CN110430116A (en) | Data forwarding method and device, edge device and readable storage medium storing program for executing | |
CN109190776A (en) | Reinspection method, apparatus, terminal device and the storage medium of vehicle failure | |
CN109525683B (en) | Vacant address diving method and device for IPV4 address of metropolitan area network | |
CN105210335B (en) | Network for data distribution route modification | |
CN104486226B (en) | A kind of message processing method and device | |
CN106453088A (en) | Static routing configuration method and terminal | |
US9471713B2 (en) | Handling complex regex patterns storage-efficiently using the local result processor | |
US9515918B2 (en) | Computing forwarding tables for link failures | |
CN107895064A (en) | Component polarity detection method, system, computer-readable recording medium and equipment | |
CN107633462A (en) | Power marketing checking method and terminal device | |
CN105338127A (en) | Media access control MAC address table updating method, switch and system | |
CN110450189A (en) | Abnormality eliminating method and device for robot | |
CN103428085A (en) | Method and device for rapidly switching RIP (routing information protocol) routings | |
CN110430140A (en) | Path processing method, device, equipment and storage medium | |
CN102457430B (en) | Network package processing method and routing equipment | |
CN109587061A (en) | A kind of method, device and equipment of route processing | |
CN104506331B (en) | A kind of multicast message transmission method and multi-core network device | |
CN105634944A (en) | Routing loop determination method and equipment |
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 |