Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for updating MAC (Media Access Control) address table

A MAC address table and MAC address technology, applied in the field of media access control address table update method and device, can solve the problems of increased cost, longer aging time of MAC table items, and artificial control of aging time

Active Publication Date: 2010-09-22
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF2 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] But the defect of this scheme is: because the IP session time is usually all long (such as the aging time of the stable state of the TCP session is usually 1 hour), the aging time of the MAC entry is restricted by the length of the IP session time and cannot be artificially controlled. The aging time of the MAC entry will also be longer, which will affect the aging process of the entry.
[0008] But the defect of this scheme is that: TCAM is a kind of hardware device, which is expensive, so it increases the cost

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 apparatus for updating MAC (Media Access Control) address table
  • Method and apparatus for updating MAC (Media Access Control) address table
  • Method and apparatus for updating MAC (Media Access Control) address table

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0030] An embodiment of the present invention provides a method for updating a MAC address table. The method includes: after receiving an Ethernet frame, searching for a corresponding entry in the MAC address table according to the source MAC address of the Ethernet frame; if the search is successful, calculating The difference between the system ...

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 provides a method and an apparatus for updating an MAC (Media Access Control) address table. The method comprises the following steps of: searching corresponding table items from the MAC address table according to a source MAC address of the Ethernet frame after an Ethernet frame is received; computing a difference value between a system time stamp of the received Ethernet frame and an table item time stamp recorded in the searched entry if the searching is successful; and updating the table item time stamp with the system time stamp when the difference value is greater than a preset value. In the invention, only when the difference value is greater than the preset value, the table item time stamp of the link list can be updated with the system time stamp, and each received Ethernet frame is unnecessarily subjected to write operation, thereby reducing times of carrying out the write operation on the MAC address table, improving the concurrent processing capacity of a multi-core processor to the Ethernet frame and improving the forwarding performance of the Ethernet frame.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of Ethernet frame forwarding at the data link layer, and in particular to a method and device for updating a Media Access Control (Media Access Control, MAC) address table. Background technique [0002] In the existing data link layer forwarding technology, when the network device uses a multi-core processor to operate the Ethernet frame, in order to avoid the operation conflict of the entry of the shared resource, the prior art adopts setting a spin lock or reading and writing In the way of locking, if a spin lock is used, only one holder can acquire the lock at any time, that is to say, at most one processor core can acquire the spin lock at any time. If the spin lock has been held by other processor cores, the processor core will always circulate there until the holder of the spin lock has released the lock, and the word "spin" is thus named; it can also be used Read-write lock mech...

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
IPC IPC(8): H04L12/56H04L12/28H04L12/24H04L29/12
Inventor 任东华
Owner BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products