Switcher MAC address aging method

A MAC address and MAC address table technology, applied in the field of switch MAC address aging, can solve the problems of unreasonable forwarding decision, MAC address table overdue, and reduce the effective utilization rate of MAC address table, so as to improve the effective utilization rate and accurate forwarding behavior , the effect of reducing the error

Inactive Publication Date: 2016-09-21
SHENZHEN FORWARD IND CO LTD
View PDF4 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Excessive aging time will cause the MAC address table in the switch to expire, causing the switch to make

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
  • Switcher MAC address aging method
  • Switcher MAC address aging method
  • Switcher MAC address aging method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. For simplicity, some technical features known to those skilled in the art are omitted from the following description.

[0021] According to an embodiment of the present invention, a kind of switch MAC address aging method is provided, such as figure 1 shown, including the following steps:

[0022] S1. Configure the aging period and aging period granularity of the MAC address. The range of the aging period is 10-1000000s; the aging period granularity is the time interval for the MAC address aging process to scan the MAC address table once. The aging period granularity is greater than or equal to 10s and less than or equal to Equal to the aging period; both the aging period and the aging period granularity are user-configurable and can ...

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 switcher MAC address aging method, and the method comprises the following steps: S1, configuring the aging period and granularity of an MAC address; S2, taking the source MAC address and VLAN ID of a message as key values, making a Hash index, and judging whether there is already a corresponding item or not; S3, updating the current time as an updated time stamp of a table item if the corresponding table item is in an MAC address list, or else, adding one table item, and updating the current time as the updated time stamp of the table item; S4, scanning the MAC address list in an aging process when the aging period granularity arrives, calculating the time difference between the current time and the updated time stamp, and judging whether the time difference is greater than an aging period or not; S5, repeatedly carrying out the step S4 if the time difference is less than the aging period; S6, deleting the table item if the time difference is greater than the aging period. The method reduces the error of aging time, enables the forwarding behavior of a switcher to be more accurate, and improves the effective utilization rate of the MAC address list.

Description

technical field [0001] The invention belongs to the field of switches, and in particular relates to a method for aging MAC addresses of switches. Background technique [0002] The switch implements Layer 2 data forwarding based on the MAC address table, which stores the mapping relationship between MAC addresses, VLAN IDs, and port numbers. The switch allows automatic learning of the MAC address after the port receives the packet, and adds the source MAC address, VLAN ID and port number of the packet to the MAC address table. Because the MAC address table space is limited, it is impossible to learn addresses without limit, so the mechanism of aging time is introduced. The switch regularly clears unused items in the MAC address table through the mechanism of aging time, which provides space for new address learning and ensures the normal forwarding of the switch. [0003] The current common practice is to create two processes in the switch, one address learning process and ...

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): H04L29/12
CPCH04L2101/622
Inventor 冯雪峰詹晋川杨清夏超杨鑫
Owner SHENZHEN FORWARD IND 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