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

Mac address writing method, device and computer-readable storage medium

A technology of MAC address and MAC address table, applied in the field of distributed switch products, can solve problems such as table writing failure and network service failure, and achieve the effect of improving stability and maintainability

Active Publication Date: 2022-05-27
NANJING ZHONGXING SOFTWARE
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the object of the present invention is to provide a method, device, and computer-readable storage medium for writing a MAC address, so as to solve the problem of serious failure of network services due to table writing failure in the case of MAC address hash conflicts. The problem

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 writing method, device and computer-readable storage medium
  • Mac address writing method, device and computer-readable storage medium
  • Mac address writing method, device and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and more comprehensible, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0044] Please refer to figure 1 , a method for writing a MAC address provided by the first embodiment of the present invention includes:

[0045] 101. Start.

[0046] Generally, the MAC address writing process is entered only after the device sends the MAC address to the chip; during specific implementation, the device may need to send a MAC address, such as a multicast MAC address, or a statically configured MAC address. In addition, the device may learn a MAC address, such as VRRP MAC address; the device needs to report this MAC addr...

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 device for writing a MAC address, and a computer-readable storage medium; the method includes: judging whether the MAC address sent to the chip is successfully written into the MAC address table of the chip; if not, judging Whether the MAC address is a preset important MAC address; if so, calculate the position of the hash bucket of the MAC address of the chip corresponding to the MAC address; put the first dynamic MAC address in the hash bucket Replace with the said MAC address. The invention can ensure the robustness of the network and the ease of maintenance of the equipment. This prevents important network forwarding traffic from being abnormal due to MAC address hash collisions.

Description

technical field [0001] The present invention relates to the field of distributed switch products, and in particular, to a method, device and computer-readable storage medium for writing a MAC address. Background technique [0002] The MAC (Media Access Control or Medium Access Control) address, paraphrased as media access control, or physical address, hardware address, is used to define the location of network devices. In general, the MAC address of the switch is stored in the hash table. Therefore, theoretically, when the MAC address reaches a certain level, there will be a MAC address hash conflict. Once a hash conflict occurs, it may lead to Some MAC addresses cannot be correctly learned to the device, causing some problems. [0003] At present, when a common device learns and issues a MAC address, it first learns the MAC address, and then writes the MAC address into the chip MAC address table. Wherein, when writing the MAC address table, the value of the MAC address en...

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): H04L61/5046H04L101/622
CPCH04L61/5046H04L2101/622
Inventor 林宁
Owner NANJING ZHONGXING SOFTWARE
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