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

MAC address learning method, gateway device and storage medium

A MAC address and learning method technology, which is applied in the field of gateway equipment and storage media, and MAC address learning methods, can solve the problems of unfavorable switch research and development costs, expensive switching chips, and limited switching chips with MAC learning capabilities.

Active Publication Date: 2021-02-09
南京易科腾信息技术有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The MAC learning ability of the device is usually limited by the MAC capacity of the switch chip, and the switch chip with a larger MAC capacity is also more expensive, which is not conducive to controlling the R&D cost of the switch

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 learning method, gateway device and storage medium
  • MAC address learning method, gateway device and storage medium
  • MAC address learning method, gateway device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.

[0064] see figure 1 , figure 1 It is a schematic flow chart of the MAC address learning method provided in the embodiment of the present application. The MAC address learning method is applied to a gateway device, and the gateway device includes a central processing unit CPU. The MAC address learning method may include steps 101 to 105:

[0065] 101. The CPU determines the MAC learning quantity corresponding to the VLAN, the MAC learning quantity corresponding to the port, and the global MAC l...

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 an MAC address learning method, a gateway device and a storage medium. The method comprises the steps of enabling a CPU to determine the MAC learning number according to learning requirements; after a first message is received, detecting whether a first source MAC address in the first message needs to be learned or not according to a preset MAC forwarding table; if the first source MAC address needs to be learned, detecting whether the number of messages in a preset MAC learning message queue reaches the MAC learning number or not; if the MAC learning quantity is not reached, generating a first MAC learning message containing the first source MAC address, and adding the first MAC learning message into the MAC learning message queue; and carrying out source MAC address learning on the MAC learning messages in the MAC learning message queue, so that MAC address learning is carried out by utilizing a CPU, the learning is more flexible, and the reliability is higher.

Description

technical field [0001] The present application relates to the technical field of communication, and in particular to a method for learning a MAC address, a gateway device and a storage medium. Background technique [0002] With the rapid development of computers and their interconnection technologies, Ethernet has become the short-distance layer-2 computer network with the highest penetration rate so far. The core component of Ethernet is the Ethernet switch. Switches work on the second layer of the OSI reference model, the data link layer. When the switch receives a frame, it first checks whether there is a source MAC address in the frame in the MAC address table it maintains. If there is no source MAC address, put the source MAC address, VLAN, and port into this table; if there is a source MAC address, look up the destination MAC address in this table, and if there is a match, proceed according to the port number in the table entry Forward; if not, forward to all other ...

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/741H04L29/12H04L45/74
CPCH04L45/745H04L2101/622
Inventor 陈伟
Owner 南京易科腾信息技术有限公司
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