MAC address table entry access method and equipment

A MAC address table, MAC address technology, applied in the field of media access control (MAC) address table entry access, can solve the problems of 2-level hash collision, long time, low search efficiency, etc.

Active Publication Date: 2014-07-09
XINHUASAN INFORMATION TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0029] It can be seen from the above analysis that when using the existing two-level hash method to store MAC address entries, the offset stored in the lookup table is used to indicate that the found empty MAC address table starts with the first-level hash value. If the offset value is too small, it will easily lead to level 2 hash conflicts; if the offset value is too large, it will take a long time to search for an empty MAC address table, which will lead to search efficiency low

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
  • MAC address table entry access method and equipment
  • MAC address table entry access method and equipment
  • MAC address table entry access method and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] In order to solve the technical problems proposed by the present invention, the specific realization of the scheme of the present invention includes:

[0073] Store the storage locations of the MAC address tables that have not saved the MAC address table entries in the stack in turn; when the MAC address table entry is to be saved, it is judged that the MAC address table is not saved in the MAC address table according to the hash value of the MAC address table entry entry, and there is an unused unit in the lookup table, save the MAC address entry in the storage location corresponding to the stack pop-up in the MAC address table, and store the level 2 hash value of the MAC address entry and the stack pop-up The storage location is respectively written into the level 2 hash value and offset of the unused unit in the lookup table; when looking for the MAC address entry, it is judged that there is the same 2 in the lookup table according to the hash value of the MAC address...

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 present invention provides a method and device for accessing MAC address entries: storing the storage locations of MAC address tables that have not saved MAC address entries in the stack in sequence; when the hash value of the MAC address entry to be saved is determined When there is no such MAC address entry and there is an unused unit in the lookup table, save the MAC address entry in the pop-up storage location of the MAC address table stack, and write its level 2 hash value and pop-up storage location respectively Enter the level 2 hash value and offset of the unused unit in the lookup table; when it is judged that there is the same level 2 hash value in the lookup table according to the hash value of the MAC address entry to be searched, the level 2 hash value The offset of the unit where the value is located is used as an index to search the MAC address table. When the MAC address entry at the offset position is consistent with the searched MAC address entry, it is determined that the search is successful. The application of the method and device of the present invention can effectively reduce the hash conflicts caused when the MAC address entry is stored in the hash mode without reducing the search efficiency of the MAC address table.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a method and device for accessing media access control (MAC) address entries. Background technique [0002] In order to improve the access rate of MAC address entries, the MAC address entries are usually stored and searched through the method of secondary hash access. figure 1 It is a working flow chart of accessing MAC address entries by adopting the existing two-level hash access method. like figure 1 As shown, steps 101-108 describe the process of storing MAC address entries, and steps 109-114 describe the process of searching MAC address entries. The two processes are described below respectively. [0003] Step 101: Perform hash calculation on the source MAC address entry of the received message or on a combination of the source MAC address entry and information related to the source MAC address entry to obtain a hash value. [0004] In this step, the hash v...

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 Patents(China)
IPC IPC(8): H04L29/12H04L12/743H04L47/43
Inventor 杨碧辉
Owner XINHUASAN 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