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

Method and device for controlling number of source MAC learning entries

A technology of the number of entries and the control source, applied in the direction of electrical components, transmission systems, etc., can solve the problem of wrongly forwarding the message

Inactive Publication Date: 2020-11-13
NANJING ZHONGXING SOFTWARE
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a method and device for controlling the number of MAC learning entries of a source. The main technical problem to be solved is: the method for suppressing the number of MAC learning entries in the prior art depends on the suppression flag issued by the control plane, and due to short-term The problem that the packet is wrongly forwarded due to the ineffectiveness

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
  • Method and device for controlling number of source MAC learning entries
  • Method and device for controlling number of source MAC learning entries
  • Method and device for controlling number of source MAC learning entries

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] In order to solve the problem that the existing method for suppressing the number of MAC learning entries depends on the suppression flag sent by the control plane, and the short-term suppression does not take effect, causing the problem that the message is incorrectly forwarded, this embodiment provides a method for controlling the number of MAC learning entries of the source ,See figure 1 , the method includes at least the following steps:

[0027] S101: When the source MAC entry carried in the message received by the forwarding plane does not exist in the source MAC table, obtain the number of first source MAC learning entries according to the preset statistical strategy for the number of source MAC learning entries;

[0028] S102: Obtain the second source MAC learning entry number by adding 1 to the first source MAC learning entry number;

[0029] S103: If the number of the second source MAC learning entries is greater than the configured number of source MAC learn...

Embodiment 2

[0048] The method for controlling the number of source MAC learning entries provided in this embodiment records the number of source MAC learning entries of the current line card through a source MAC learning entry counter configured separately for each line card; the following describes the method in this embodiment in combination with specific application scenarios The method of controlling the number of source MAC learning entries is described in detail:

[0049] Please see attached Figure 4 , the method includes the following steps:

[0050] S401, the forwarding plane receives the message, searches the source MAC table according to the source MAC entry carried by the message, and judges whether the source MAC entry exists in the source MAC table; if it exists, execute S402; if not, execute S403 .

[0051] S402. The source MAC entry is considered as a learned source MAC entry, and the message is normally forwarded.

[0052] S403. The source MAC entry is considered as an...

Embodiment 3

[0061] The difference between this embodiment and the above-mentioned second embodiment is that the number of source MAC learning entries of the current local line card is recorded directly by adding a learning entry statistical value field in the source MAC table. In this way, there is no need to separately configure a source MAC learning entry counter for each line card, which can save limited counter resources. The method for controlling the number of source MAC learning entries in this embodiment is described in detail below in combination with specific application scenarios:

[0062] Please see attached Figure 5 , the method includes the following steps:

[0063] S501. The forwarding plane receives the message, searches the source MAC table according to the source MAC entry carried by the message, and determines whether the source MAC entry exists in the source MAC table; if it exists, execute S502; if not, execute S503 .

[0064] S502. Consider the source MAC entry a...

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 embodiment of the invention provides a method and a device for controlling the number of source MAC learning entries, and the method comprises the steps: obtaining a first source MAC learning entry number through a forwarding plane according to a preset source MAC learning entry number statistical strategy when a source MAC entry carried by a message received by the forwarding plane does not exist in a source MAC table; adding 1 to the first source MAC learning entry number to obtain a second source MAC learning entry number; if the number of the second source MAC learning entries is greater than the number of the configured source MAC learning suppression entries, discarding the message, in other words, the forwarding plane executes the above steps, and when the current MAC learning entry number reaches the configured source MAC learning inhibition entry number, the received unknown message can be inhibited in time, so that the source MAC learning entry number inhibition mechanismtakes effect immediately.

Description

technical field [0001] The embodiments of the present invention relate to but are not limited to the field of data network communication, and in particular, relate to but are not limited to a method and device for controlling the number of source MAC learning entries. Background technique [0002] The MAC (Media Access Control, Media Access Control) learning entry suppression method in related technologies is generally used to control the number of MAC learning entries on the access side or in the instance, so as to prevent the device from being attacked by a large number of malicious packets, causing the underlying MAC The forwarding table is full, which causes the subsequent processing of the device to be abnormal. [0003] The general method of suppressing the number of MAC learning entries currently applied in network equipment is: the forwarding plane receives an unknown unicast packet, searches the MAC forwarding table, finds that the source MAC is unknown, and reports...

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/12H04L29/06
CPCH04L63/20H04L63/1441H04L2101/622
Inventor 陈丹艳周佳朱永庆陈华南
Owner NANJING ZHONGXING SOFTWARE
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More