Method and system for brushing MAC address forwarding table entry

A technology of MAC addresses and forwarding entries, applied in the field of brushing MAC address forwarding entries, can solve the problems of blocking MAC address forwarding entries, memory exhaustion, blocking, etc., to avoid memory exhaustion and improve stability.

Inactive Publication Date: 2018-01-26
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when there are a large number of MAC address forwarding entries, blockage will inevitably occur when the kernel is downloaded. When the kernel is blocked, a large number of MAC address forwarding entries will be accumulated in the chain, especially the non-stop When adding or deleting the same MAC address forwarding entry, it will happen that the same MAC address forwarding entry is blocked in the add chain and delete chain, that is, the same MAC address forwarding entry has accumulated two copies in the downlink list, so Repeatedly adding and deleting MAC address forwarding table entries, the MAC address forwarding table entries accumulated in the linked list will accumulate more and more, which will eventually lead to memory exhaustion

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for brushing MAC address forwarding table entry

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0028] The present invention provides a method for swiping MAC address forwarding entries, such as figure 1 shown, including the following steps:

[0029] S101. Determine whether the first MAC address forwarding entry to be downlinked is the same as the second MAC address forwarding entry blocked in the downlinked list;

[0030] If yes, execute step S102; if not, execute step S103;

[0031] S102. According to the operation mode of the first MAC...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and system for brushing an MAC address forwarding table entry. The method comprises the following steps: judging whether a to-be-brushed first MAC address forwarding table entry is the same as a second MAC address forwarding table entry blocked in a brushing chain table; if so, judging whether the first MAC address forwarding table entry performs counteraction operation, updating operation or coverage operation on the second MAC address forwarding table entry according to an operation mode of the first MAC address forwarding table entry and the second MAC address forwarding table entry, and performing corresponding operations according to a judgment result; and otherwise, caching the first MAC address forwarding table entry in the brushing chain table. In the case of blockage of the brushing MAC address forwarding, by adoption of the method and system, the number of accumulative MAC in the brushing chain table can be maximally reduced, and it is ensuredthat no repeated MAC address forwarding table entry exists in the brushing chain table, and only one MAC address forwarding table entry exists, the situation of memory use up is avoided, and thus thestability of network performance is improved.

Description

technical field [0001] The invention relates to the technical field of communications, in particular to a method and system for swiping MAC address forwarding entries. Background technique [0002] The Media Access Control (MAC) address forwarding table of the switch is the most important function in the switch network system. The MAC address forwarding table in the network system is generally formed by running the upper layer protocol to form the MAC address forwarding table entry, and then the user mode The process establishes socket communication with the kernel, brushes the MAC address forwarding table items to the kernel, and then forms the final MAC address forwarding table. [0003] The existing user-mode process establishes socket communication with the kernel, and generally flashes to the kernel in a synchronous blocking manner. Specifically, the user mode process first caches the MAC address forwarding entry in the downlink list, and the downlink list includes add...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12H04L12/935H04L49/111
Inventor 徐继浩
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products