Media access control ageing method and network processor

A media access control and network processor technology, applied in the field of communication, can solve the problem of occupying CPU resources and achieve the effect of preventing loss

Active Publication Date: 2013-04-03
ZTE CORP
View PDF7 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In view of the above analysis, the present invention aims to provide a media access control aging method and a network processor to solve the problem of occupying CPU resources when the CPU performs MAC address aging in the prior art

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
  • Media access control ageing method and network processor
  • Media access control ageing method and network processor
  • Media access control ageing method and network processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] An embodiment of the present invention provides a media access control aging method, see figure 1 , where the Media Access Control (MAC) address is an identifier used to identify a LAN node and is globally unique.

[0036] The MAC aging method in the embodiment of the present invention includes:

[0037] S101. The network processor learns to generate a MAC entry according to the MAC address;

[0038] S102. The network processor updates or ages out the MAC entry according to the initialization message sent by the packet generator according to the aging period.

[0039] According to a media access control aging method provided by an embodiment of the present invention, the packet generator sends an initialization message to the network processor according to the aging cycle, and the network processor updates or ages the MAC entry according to the initialization message, effectively solving the problem of The problem in the prior art that CPU resources are occupied when ...

Embodiment 2

[0041] An embodiment of the present invention provides a media access control aging method, see figure 2 , the method includes:

[0042] S201. The network processor learns to generate a MAC entry according to the MAC address;

[0043] S202. The network processor receives the initialization message sent by the packet generator according to the aging period;

[0044] S203. Find a corresponding MAC entry according to the initialization message;

[0045] S204. Judging to update or age according to the AGE bit in the MAC entry;

[0046] Wherein, the AGE bit is specifically an age bit, by setting the value of the AGE bit, and according to the change of the value, it is determined whether the MAC entry should be aged or updated.

[0047] S205. When it is determined that an update is required, update the MAC entry;

[0048] S206. When it is determined that it needs to be aged, further determine whether the MAC address learning is learned by the network processor or sent by other ...

Embodiment 3

[0059] An embodiment of the present invention provides a network processor, see image 3 ,include:

[0060] A learning unit 31, configured to learn and generate a media access control entry according to a media access control address;

[0061] The sending unit 32 is configured to send an initialization message to the processing unit according to the aging period;

[0062] The processing unit 33 is configured to receive the initialization message sent by the sending unit according to the aging period, and update or age the corresponding media access control entry according to the initialization message.

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 media access control ageing method and a network processor. The ageing method comprises the following steps: the network processor learns and generates media access control items according to media access control addresses; the corresponding media access control items are updated or aged according to initiation messages which are transmitted through a package generator according to an ageing period; and the network processor comprises a learning unit for learning and generating the media access control items according to the media access control addresses, a sending unit for sending the initiation messages to a processing unit by the ageing period, and the processing unit for receiving the initiation messages which are transmitted through the sending unit according to the ageing period and updating or ageing the corresponding media access control items according to the initiation messages. The method and the network processor effectively solve the problem that the processing of other services in a CPU (Central Processing Unit) is influenced by occupying CPU resources when MAC (Multi-Access Computer) addresses are aged through the CPU in the prior art.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a medium access control aging method and a network processor. Background technique [0002] The aging of the existing Media Access Control (MAC) address mainly adopts CPU aging, but in this method, the CPU needs to start an aging thread, and the MAC entry in the memory of the network processor is DMA (Direct Memory Access, directly memory access) to the CPU memory, and then the aging thread scans the entries. This method will occupy CPU resources. When the MAC capacity is large, an aging may cause the CPU to be busy and affect the processing of other services. Contents of the invention [0003] In view of the above analysis, the present invention aims to provide a media access control aging method and a network processor to solve the problem of occupying CPU resources when the CPU performs MAC address aging in the prior art. [0004] The purpose of the present inventio...

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 Applications(China)
IPC IPC(8): G06F9/50
CPCH04L2101/622H04L61/00
Inventor 谢密
Owner ZTE CORP
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