Unlock instant, AI-driven research and patent intelligence for your innovation.

MAC address writing method, device and computer readable storage medium

A MAC address and MAC address table technology, which is 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: 2019-01-15
ZTE CORP
View PDF10 Cites 6 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 clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

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

[0045] 101. Start.

[0046] Generally, the MAC address writing process will not start until the device sends the MAC address to the chip; in actual implementation, the device may need to send a MAC address, such as a multicast MAC address, or statically configure the MAC address. In addition, the device may learn a MAC address, such as a VRRP MAC address; the device needs to report the learned MAC address and de...

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 MAC address writing method, a device and a computer readable storage medium. The method includes: determining whether a MAC address issued to a chip is successfully written into a MAC address table of the chip; if not, determining whether the MAC address is a preset important MAC address; if so, calculating the location of a Hash bucket of the MAC address of the chip corresponding to the MAC address; and replacing the first dynamic MAC address in the Hash bucket with the MAC address. The method can ensure the robustness of a network and the maintainability of the device, and avoids abnormal important network forwarding traffic due to MAC address Hash collision.

Description

technical field [0001] The invention relates to the field of distributed switch products, in particular to a method, device and computer-readable storage medium for writing a MAC address. Background technique [0002] MAC (Media Access Control or Medium Access Control) address, translated as media access control, or called physical address, hardware address, is used to define the location of network devices. In general, the MAC address of the switch is stored in a hash table, so in theory, when the MAC address reaches a certain level, there will be a MAC address hash conflict, and once a hash conflict occurs, it may cause Some MAC addresses cannot be learned correctly on the device, which causes 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, it will calculate according to the value of the M...

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
CPCH04L61/5046H04L2101/622
Inventor 林宁
Owner ZTE CORP