CN106161274B - Frame information physical copy method and system in Ethernet switching chip - Google Patents
Frame information physical copy method and system in Ethernet switching chip Download PDFInfo
- Publication number
- CN106161274B CN106161274B CN201610565545.6A CN201610565545A CN106161274B CN 106161274 B CN106161274 B CN 106161274B CN 201610565545 A CN201610565545 A CN 201610565545A CN 106161274 B CN106161274 B CN 106161274B
- Authority
- CN
- China
- Prior art keywords
- frame information
- ethernet
- copy
- ethernet frame
- frame
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/23—Bit dropping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/252—Store and forward routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/35—Switches specially adapted for specific applications
- H04L49/351—Switches specially adapted for specific applications for local area network [LAN], e.g. Ethernet switches
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/35—Switches specially adapted for specific applications
- H04L49/356—Switches specially adapted for specific applications for storage area networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention provides frame information physical copy method and system in a kind of Ethernet switching chip, receive and store ethernet frame information, record storage address, the control field carried according to ethernet frame information, judge whether to abandon ethernet frame information, when not abandoning, according to control field, count number of copy times, when abandoning, default first value is write into copy counter storage table, generate multiple frame Copy Infos, when often sending single frame Copy Info, duplication count value is subtracted into default second value, when duplication count value reaches default three value, the space release that corresponding ethernet frame information is taken.In whole process, the reproduction process of ethernet frame information is controlled by its control field carried, replication actions can reach the speed of each one frame information of clock cycle, process bandwidth clock frequency in too net exchange chip is determined, do not limited by bandwidth bottleneck, the memory space in addition also taking completed ethernet frame information discharges.
Description
Technical field
The present invention relates to Ethernet Exchanger Technology field, frame information physics is answered more particularly in Ethernet switching chip
Method and system processed.
Background technology
In the design of chips of Ethernet exchange, the frame transmission mode of multicast and broadcast mode is prerequisite basic
Function.Source frame information is replicated in the design, and its destination interface information is contained in the frame information after replicating to going out
The transmission of mouth (egress) direction, is a kind of physical copy mode of reasonable.
In the physical copy stage, it is necessary to control replication processes bandwidth.Because egress processors can have certain bandwidth
The upper limit, therefore, the problem of frame information physical copy mode can be limited by bandwidth bottleneck in general too net exchange chip cause
Frame information physical copy efficiency is low.
The content of the invention
Based on this, it is necessary to for the problem of frame information physical copy mode duplicating efficiency is low in Ethernet switching chip,
Frame information physical copy method and system in a kind of Ethernet switching chip of efficiency high is provided.
A kind of frame information physical copy method in Ethernet switching chip, including step:
Ethernet frame information is received, ethernet frame information memory cell is stored into Ethernet switching chip, and record
Storage address;
The control field carried according to ethernet frame information, judges whether to abandon ethernet frame information;
When not abandoning ethernet frame information, according to control field, number of copy times is counted, duplication count value is obtained, will be multiple
Copy counter storage table in count value write-in Ethernet switching chip processed;
When abandoning ethernet frame information, by default first value write-in copy counter storage table;
Multiple frame Copy Infos are generated according to ethernet frame information, multiple frame Copy Infos are sent, and often send single frame
During Copy Info, the corresponding duplication count value of ethernet frame information is subtracted into default second value;
When corresponding to a certain storage address in memory cell in copy counter storage table duplication count value reach it is pre-
If during the 3rd value, the ethernet frame information corresponding to the storage address is discharged in the space that memory cell takes.
Frame information physical copy system in a kind of Ethernet switching chip, including:
Stored record module, for receiving ethernet frame information, ethernet frame information is stored to Ethernet switching chip
Middle memory cell, and record storage address;
Judge module, for the control field carried according to ethernet frame information, judges whether to abandon ethernet frame information;
First processing module, for when not abandoning ethernet frame information, according to control field, counts number of copy times, obtains
Duplication count value is obtained, duplication count value is write into copy counter storage table in Ethernet switching chip;
Second processing module, for when abandoning ethernet frame information, by default first value write-in copy counter storage
Table;
Counting module, for generating multiple frame Copy Infos according to ethernet frame information, sends multiple frame Copy Infos, and
When often sending single frame Copy Info, the corresponding duplication count value of ethernet frame information is subtracted into default second value;
Space release module, for when corresponding to a certain storage address in memory cell in copy counter storage table
When duplication count value reaches default three value, the sky that the ethernet frame information corresponding to the storage address is taken in memory cell
Between discharge.
Frame information physical copy method and system in Ethernet switching chip of the present invention, receives and stores ethernet frame letter
Breath, record storage address, the control field carried according to ethernet frame information judges whether to abandon ethernet frame information, when not
During discarding, according to control field, number of copy times is counted, duplication count value is write into copy counter storage table, will when abandoning
Default first value write-in copy counter storage table, generates multiple frame Copy Infos, will be multiple when often sending single frame Copy Info
Count value processed subtracts default second value, and when the corresponding duplication count value of a certain storage address reaches default three value, this is deposited
The space release that ethernet frame information corresponding to storage address takes in memory cell.In whole process, ethernet frame information
Reproduction process is controlled by its control field carried, and replication actions can reach the speed of each one frame information of clock cycle,
Clock frequency is determined process bandwidth in too net exchange chip, is not limited by bandwidth bottleneck, in addition also by completed Ethernet
The memory space release that frame information takes, improves ethernet frame information physical duplicating efficiency.
Brief description of the drawings
Fig. 1 is the flow signal of frame information physical copy method one embodiment in Ethernet switching chip of the present invention
Figure;
Fig. 2 is the flow signal of second embodiment of frame information physical copy method in Ethernet switching chip of the present invention
Figure;
Fig. 3 is ingress frame information field schematic diagram in Ethernet switching chip;
Fig. 4 is memory cell storage mode schematic diagram in Ethernet switching chip;
Fig. 5 is the structural representation of frame information physical copy system one embodiment in Ethernet switching chip of the present invention
Figure;
Fig. 6 is the structural representation of frame information physical copy second embodiment of system in Ethernet switching chip of the present invention
Figure.
Embodiment
As shown in figure 1, a kind of frame information physical copy method in Ethernet switching chip, including step:
S100:Ethernet frame information is received, ethernet frame information is stored into Ethernet switching chip memory cell, and
Record storage address.
Ethernet switching chip receives the ethernet frame information from interchanger entrance (ingress) processor, will receive
To ethernet frame information temporarily store into the memory cell of Ethernet switching chip, record now storage address.Storage
Address is used to characterize storage location of the ethernet frame information in memory cell, can be read in the memory unit based on storage address
Ethernet frame information.It is stored in additionally, due to different ethernet frame information in diverse location, so storage address may be used also
With the unique identities identification code as ethernet frame information.Assuming that ethernet frame information storage addresses are ABCDF, storage address
ABCDF forms unique and rigorous corresponding relation with ethernet frame information.
S200:The control field carried according to ethernet frame information, judges whether to abandon ethernet frame information.
Control field is carried in ethernet frame information, the control field is assisted according to Ethernet switch industry standard
View mode is previously written in ethernet frame information, based on industry guideline, and each ethernet frame information can carry this part
Information, can decide whether to abandon ethernet frame information according to control field.
It is non-essential, also include before step S200:Judge ethernet frame information storage FIFO (First Input
First Output, First Input First Output) default storage upper threshold whether is reached, when reached, abandon ethernet frame information;
When not up to, into step S200.In the present embodiment, ethernet frame information is entered using FIFO modes in Ethernet chip
Row storage is with reading, when the storage FIFO specially delineated in Ethernet chip reaches higher limit, it is impossible to ethernet frame information
FIFO storages are carried out, i.e., directly abandon ethernet frame information, when not up to, FIFO storages can be carried out to ethernet frame information
With reading, i.e., into step S200.
S300:When not abandoning ethernet frame information, according to control field, number of copy times is counted, duplication count value is obtained,
Duplication count value is write into copy counter storage table in Ethernet switching chip.
If ethernet frame information is not dropped, the control field in ethernet frame information calculates number of copy times, and
This numerical value is write in duplication count storage table.Specifically, here it is the frame duplication control field portion in control field
Divide to calculate number of copy times.Copy counter storage can be write into Ethernet switching chip by calculating obtained duplication count value
Table.
S400:When abandoning ethernet frame information, by default first value write-in copy counter storage table.
Default first value is value set in advance, in general, for " when abandoning ethernet frame information " this applied field
Jing Shi, it is 0 to preset the first value, and ethernet frame information has been dropped without replicating.
S500:Multiple frame Copy Infos are generated according to ethernet frame information, multiple frame Copy Infos are sent, and often send list
During individual frame Copy Info, the corresponding duplication count value of ethernet frame information is subtracted into default second value.
Multiple frame Copy Infos are generated for ethernet frame information, the frame Copy Info of generation is sent, list is often being sent
During individual frame Copy Info, duplication count value corresponding with ethernet frame information in copy counter storage table is subtracted default second
Value.Specifically, default second value is set in advance, such as could be arranged to 1 or 2.In general second value is preset to set
It is set to 1.Assuming that being 5 in the duplication count value that step S300 calculating obtains ethernet frame information, work as in this step S500 and send one
Secondary frame Copy Info, i.e., by duplication count value from 5-1=4, i.e. duplication count value is changed into 4.
S600:When duplication count value reaches in copy counter storage table corresponding to a certain storage address in memory cell
During to default 3rd value, the ethernet frame information corresponding to the storage address is discharged in the space that memory cell takes.
Default 3rd value is value set in advance, and in general it could be arranged to 0.For different ethernet frame information
After step S100 to step S500 operations are performed, corresponding storage address and duplication count value are had.For example there are M Ethernets
Frame information is performed after step S100 to step S500 operations, and its storage address is ABCDE, and its duplication count value is 3;There is N ether
Net frame information is performed after step S100 to step S500 operations, and its storage address is ABCDF, and its duplication count value is 1;Have PN with
Too net frame information is performed after step S100 to step S500 operations, and its storage address is ABCDG, and its duplication count value is 0.Due to
The corresponding duplication count value of P ethernet frame information is 0, i.e. from above-mentioned tri- ethernet frame information of M, N and P in step S600
In identify P ethernet frame information, the space that P ethernet frames information is taken in memory cell discharges.In actual applications, when
In memory cell corresponding to a certain storage address when duplication count value reaches 0 in copy counter storage table, by the address
The head pointer of corresponding ethernet frame information in the memory unit returns to interchanger arrival end frame memory cell with tail pointer
Controller, for discharging the memory space shared by the ethernet frame information.
Frame information physical copy method in Ethernet switching chip of the present invention, receives and stores ethernet frame information, record
Storage address, the control field carried according to ethernet frame information judges whether to abandon ethernet frame information, when not abandoning,
According to control field, number of copy times is counted, duplication count value is write into copy counter storage table, will default the when abandoning
One value write-in copy counter storage table, generates multiple frame Copy Infos, when often sending single frame Copy Info, by duplication count
Value subtracts default second value, when the corresponding duplication count value of a certain storage address reaches default three value, by the storage address
The space release that corresponding ethernet frame information takes in memory cell.In whole process, ethernet frame information it is copied
The control field control that Cheng Youqi is carried, replication actions can reach the speed of each one frame information of clock cycle, handle band
Wide clock frequency is determined in too net exchange chip, is not limited by bandwidth bottleneck, in addition also by completed ethernet frame information
The memory space release of occupancy, improves ethernet frame information physical duplicating efficiency.
In one of the embodiments, duplication count value is write into copy counter storage table in Ethernet switching chip
Step includes:Using storage address as writing address, duplication count value is write into copy counter in Ethernet switching chip and stored
Table.
The step of default first value is write into copy counter storage table includes:, will be pre- using storage address as writing address
If the first value write-in copy counter storage table.
In the present embodiment, duplication count value writes copy counter storage table by writing address of storage address, presets
First value also writes copy counter storage table by writing address of storage address.The duplication count value of ethernet frame information is multiple
Storage address of the address of counter storage table processed with ethernet frame information in the memory unit is consistent, ensure that and exists exactly
Duplication discharges memory space after terminating.
As shown in Fig. 2 in one of the embodiments, also including before step S100:
S120:Ethernet switching chip is initialized, copy counter storage table is reset.
In order to ensure in Ethernet switching chip frame information physical replication process accurately with efficiently, every time to new ether
Net frame information is needed to initialize Ethernet switching chip before performing operation, and the copy counter in Ethernet switching chip is deposited
Table is stored up to reset.
In one of the embodiments, multiple frame Copy Infos are generated according to ethernet frame information, sends multiple frames and replicate
Information, and when often sending single frame Copy Info, the corresponding duplication count value of ethernet frame information is subtracted into default second value
Step includes:
Step one:Ethernet frame information is read using FIFO modes, word is replicated according to the frame carried in ethernet frame information
Section and the field related to frame copy field, the frame Copy Info of generation correspondence number.
Step 2:The frame Copy Info of correspondence number is sent to the port of export of Ethernet chip.
Step 3:The frame processing information that the port of export is returned is received, frame processing information carries completed ethernet frame information
Storage address in the memory unit.
Step 4:Inquire about and replicating meter corresponding to the storage address of completed ethernet frame information in the memory unit
Duplication count value in number device storage table, and the duplication count value inquired is subtracted into default second value.
Read the frame information in Ethernet chip arrival end FIFO, frame copy field and other phases in frame information
Field is closed, the frame Copy Info of correspondence number is produced and sends to port of export frame memory cell controller, received with form of FIFO
The frame processing information that port of export frame memory cell controller is returned.The information represents that the once complete processing of the frame is complete
Into.According to the frame storage address field wherein included, the count value in frame duplication count memory cell is read, and this numerical value is subtracted
1, when the count stored when a certain address of frame copy counter memory cell is to 0, by corresponding to the address with
Too the head pointer of net frame information in the memory unit returns to arrival end frame memory cell controller with tail pointer, for discharging this
Memory space shared by frame.
In order to further explain in detail the technical side of frame information physical copy method in Ethernet switching chip of the present invention
Case and the effect brought, will be described in detail using a concrete application example below.
Step one:Ethernet switching chip is initialized, duplication count storage table is reset.
Step 2:As shown in figure 3, shown in entrance (ingress) frame information field schematic diagram, designing received frame information
In must reflect the storage information of the frame and the Copy Info of the frame in the field that mainly includes.Pass through related Copy Info word
What section was allowed for goes out number of copy times and destination interface information.
Step 3:As shown in Fig. 4 memory cell storage mode schematic diagrames, frame is in the memory unit in chained list mode by the frame
Concatenated in the way of caching (BUFFER) one by one.FrameMem (framework) framework distribution information stores the frame each BUFFER
Payload (payload);MemLink (link) links allocation information table is used to store the frame in FrameMem
BUFFER sequential storage address.Pointer end to end in the frame information of the frame, memory cell controller can intactly exist
Finally all memory spaces in FrameMem list items corresponding to the chained list are discharged.
Step 4:The frame information at ingress ends is received, is stored in entrance FIFO, reading is responsible for by state machine controller
The frame information in FIFO is taken, replicates and sends to outlet (egress) end processor one by one by frame information field contents.egress
The frame processing result information that end memory cell controller is returned is received and used to the content of more new frame duplication count storage table.When
After the corresponding all duplication operations of one source frame are fully completed, the information comprising the pointer end to end of frame in the memory unit is sent extremely
Ingress ends frame memory cell controller is used to discharge memory space.The reproduction process of each frame is obstruction mode, that is, only
Have after the physical copy of a frame is fully completed, can just carry out the physical replication process of next frame.
As shown in figure 5, frame information physical copy system in a kind of Ethernet switching chip, including:
Stored record module 100, for receiving ethernet frame information, ethernet frame information is stored to Ethernet exchanging core
Memory cell in piece, and record storage address.
Judge module 200, for the control field carried according to ethernet frame information, judges whether to abandon ethernet frame letter
Breath.
First processing module 300, for when not abandoning ethernet frame information, according to control field, counts number of copy times,
Duplication count value is obtained, duplication count value is write into copy counter storage table in Ethernet switching chip.
Second processing module 400, for when abandoning ethernet frame information, default first value write-in copy counter to be deposited
Store up table.
Counting module 500, for generating multiple frame Copy Infos according to ethernet frame information, sends multiple frames and replicates letter
Breath, and when often sending single frame Copy Info, the corresponding duplication count value of ethernet frame information is subtracted into default second value.
Space release module 600, for when corresponding to a certain storage address in memory cell copy counter store
When duplication count value reaches default three value in table, the ethernet frame information corresponding to the storage address is taken in memory cell
Space release.
Frame information physical copy system in Ethernet switching chip of the present invention, stored record module 100 receive and store with
Too net frame information, record storage address, the control field that judge module 200 is carried according to ethernet frame information, judge whether to lose
Ethernet frame information is abandoned, when not abandoning, first processing module 300 counts number of copy times, by duplication count according to control field
Value write-in copy counter storage table, when abandoning, Second processing module 400 will default first value write-in copy counter storage
Table, counting module 500 generates multiple frame Copy Infos, when often sending single frame Copy Info, duplication count value is subtracted default
Second value, when the corresponding duplication count value of a certain storage address reaches default three value, space release module 600 stores this
The space release that ethernet frame information corresponding to address takes in memory cell.In whole process, ethernet frame information is answered
Process processed is controlled by its control field carried, and replication actions can reach the speed of each one frame information of clock cycle, locate
Managing bandwidth, clock frequency is determined in too net exchange chip, is not limited by bandwidth bottleneck, in addition also by completed ethernet frame
The memory space release that information takes, improves ethernet frame information physical duplicating efficiency.
In one of the embodiments, first processing module 300 writes duplication count value using storage address as writing address
Enter copy counter storage table in Ethernet switching chip.Second processing module 400, will be default using storage address as writing address
First value write-in copy counter storage table.
In one of the embodiments, frame information physical copy system also includes in Ethernet switching chip:
3rd processing module, for when ethernet frame information storage FIFO reaches default storage upper threshold, abandon with
Too net frame information.
As shown in fig. 6, in one of the embodiments, frame information physical copy system is also wrapped in Ethernet switching chip
Include:
Initial module 120, for initializing Ethernet switching chip, copy counter storage table is reset.
In one of the embodiments, counting module 500 includes:
Frame Copy Info generation unit, for reading ethernet frame information using FIFO modes, according to ethernet frame information
The frame copy field and the field related to frame copy field of middle carrying, the frame Copy Info of generation correspondence number.
Transmitting element, for sending the frame Copy Info of correspondence number to the port of export of Ethernet chip.
Receiving unit, the frame processing information for receiving port of export return, frame processing information carries completed Ethernet
The storage address of frame information in the memory unit.
Query unit, for inquire about corresponding to the storage address of completed ethernet frame information in the memory unit
Duplication count value in copy counter storage table, and the duplication count value inquired is subtracted into default second value.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (8)
1. a kind of frame information physical copy method in Ethernet switching chip, it is characterised in that including step:
Ethernet frame information is received, the ethernet frame information memory cell is stored into Ethernet switching chip, and record
Storage address, storage address is used to characterize storage location of the ethernet frame information in memory cell;
The control field carried according to the ethernet frame information, judges whether to abandon the ethernet frame information;
When not abandoning the ethernet frame information, according to the control field, number of copy times is counted, duplication count value is obtained,
The duplication count value is write into copy counter storage table in the Ethernet switching chip;
When abandoning the ethernet frame information, default first value is write into the copy counter storage table;
Multiple frame Copy Infos are generated according to the ethernet frame information, the multiple frame Copy Info are sent, and often send list
During the individual frame Copy Info, the corresponding duplication count value of the ethernet frame information is subtracted into default second value;
When duplication count value reaches in the copy counter storage table corresponding to a certain storage address in the memory cell
During to default 3rd value, the ethernet frame information corresponding to the storage address is discharged in the space that the memory cell takes;
It is described that multiple frame Copy Infos are generated according to the ethernet frame information, the multiple frame Copy Info is sent, and often send out
When going out the single frame Copy Info, the corresponding duplication count value of the ethernet frame information is subtracted into default second value
Step includes:
The ethernet frame information is read using FIFO modes, according to the frame copy field carried in the ethernet frame information with
And the field related to the frame copy field, the frame Copy Info of generation correspondence number;
The frame Copy Info of the correspondence number is sent to the port of export of the Ethernet chip;
The frame processing information that the port of export is returned is received, the frame processing information carries completed ethernet frame information in institute
State the storage address in memory cell;
Inquire about being replicated described corresponding to storage address of the completed ethernet frame information in the memory cell
Duplication count value in counter storage table, and the duplication count value inquired is subtracted into default second value.
2. frame information physical copy method in Ethernet switching chip according to claim 1, it is characterised in that described to incite somebody to action
The step of duplication count value writes copy counter storage table in the Ethernet switching chip includes:
Using the storage address as writing address, the duplication count value is write into duplication count in the Ethernet switching chip
Device storage table;
The step of write-in copy counter storage table by default first value, includes:
Using the storage address as writing address, default first value is write into the copy counter storage table.
3. frame information physical copy method in Ethernet switching chip according to claim 1, it is characterised in that described
Also wrapped before the control field carried according to the ethernet frame information, the step of judging whether to abandon the ethernet frame information
Include:
When ethernet frame information storage FIFO reaches default storage upper threshold, the ethernet frame information is abandoned.
4. frame information physical copy method in Ethernet switching chip according to claim 1, it is characterised in that described to connect
Ethernet frame information is received, the ethernet frame information is stored into Ethernet switching chip memory cell, and record storage
Also include before location:
The Ethernet switching chip is initialized, the copy counter storage table is reset.
5. frame information physical copy system in a kind of Ethernet switching chip, it is characterised in that including:
Stored record module, for receiving ethernet frame information, the ethernet frame information is stored to Ethernet switching chip
Middle memory cell, and record storage address, storage address are used to characterize storage location of the ethernet frame information in memory cell;
Judge module, for the control field carried according to the ethernet frame information, judges whether to abandon the ethernet frame
Information;
First processing module, for when not abandoning the ethernet frame information, according to the control field, counts and replicates secondary
Number, obtains duplication count value, and the duplication count value is write into copy counter storage table in the Ethernet switching chip;
Second processing module, for when abandoning the ethernet frame information, default first value to be write into the copy counter
Storage table;
Counting module, for generating multiple frame Copy Infos according to the ethernet frame information, sends the multiple frame and replicates letter
Breath, and when often sending the single frame Copy Info, the corresponding duplication count value of the ethernet frame information is subtracted pre-
If second value;
Space release module, for when corresponding to a certain storage address in the memory cell the copy counter store
When duplication count value reaches default three value in table, by the ethernet frame information corresponding to the storage address in the memory cell
The space release of occupancy;
The counting module includes:
Frame Copy Info generation unit, for reading the ethernet frame information using FIFO modes, according to the ethernet frame
The frame copy field carried in information and the field related to the frame copy field, the frame of generation correspondence number replicate letter
Breath;
Transmitting element, for sending the frame Copy Info of the correspondence number to the port of export of the Ethernet chip;
Receiving unit, for receiving the frame processing information that the port of export is returned, the frame processing information carry it is completed with
Too storage address of the net frame information in the memory cell;
Query unit, for inquiring about corresponding to storage address of the completed ethernet frame information in the memory cell
The duplication count value in the copy counter storage table, and the duplication count value inquired is subtracted into default second value.
6. frame information physical copy system in Ethernet switching chip according to claim 5, it is characterised in that;
The first processing module writes the Ethernet using the storage address as writing address, by the duplication count value and handed over
Change copy counter storage table in chip;
The Second processing module writes the copy counter using the storage address as writing address, by default first value and deposited
Store up table.
7. frame information physical copy system in Ethernet switching chip according to claim 5, it is characterised in that also wrap
Include:
3rd processing module, for when ethernet frame information storage FIFO reaches default storage upper threshold, abandoning institute
State ethernet frame information.
8. frame information physical copy system in Ethernet switching chip according to claim 5, it is characterised in that also wrap
Include:
Initial module, for initializing the Ethernet switching chip, the copy counter storage table is reset.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610565545.6A CN106161274B (en) | 2016-07-18 | 2016-07-18 | Frame information physical copy method and system in Ethernet switching chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610565545.6A CN106161274B (en) | 2016-07-18 | 2016-07-18 | Frame information physical copy method and system in Ethernet switching chip |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106161274A CN106161274A (en) | 2016-11-23 |
CN106161274B true CN106161274B (en) | 2017-09-01 |
Family
ID=58059582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610565545.6A Active CN106161274B (en) | 2016-07-18 | 2016-07-18 | Frame information physical copy method and system in Ethernet switching chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106161274B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7403521B2 (en) * | 2001-12-03 | 2008-07-22 | Intel Corporation | Multicast and broadcast operations in ethernet switches |
CN1184777C (en) * | 2002-04-17 | 2005-01-12 | 华为技术有限公司 | Method for managing and allocating buffer storage during Ethernet interchange chip transmission of data |
CN1146192C (en) * | 2002-04-17 | 2004-04-14 | 华为技术有限公司 | Ethernet exchange chip output queue management and dispatching method and device |
CN101753580B (en) * | 2010-01-08 | 2012-07-25 | 烽火通信科技股份有限公司 | Packet processing chip and data storage and forwarding method thereof |
-
2016
- 2016-07-18 CN CN201610565545.6A patent/CN106161274B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106161274A (en) | 2016-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5561807A (en) | Method and device of multicasting data in a communications system | |
CN100571195C (en) | Multiport Ethernet switch and data transmission method | |
US9088520B2 (en) | Network impairment unit for concurrent delay and packet queue impairments | |
CA2015514C (en) | Packet switching system having bus matrix switch | |
EP1045558B1 (en) | Very wide memory TDM switching system | |
CN102549552A (en) | Method for processing data packets in flow-aware network nodes | |
JPH08214000A (en) | Method and equipment for multicasting in atm network | |
US5784357A (en) | Packet switching system | |
US7110405B2 (en) | Multicast cell buffer for network switch | |
US20080253371A1 (en) | Multicast and broadcast operations in ethernet switches | |
CN1965548B (en) | Method and apparatus for forwarding bursty data | |
CN106161274B (en) | Frame information physical copy method and system in Ethernet switching chip | |
US20030005344A1 (en) | Synchronizing data with a capture pulse and synchronizer | |
EP1267269A2 (en) | Apparatus and method for distribution of signals from a high level data link controller to multiple digital signal processor cores | |
CN101258477B (en) | Statistics engine | |
KR100358178B1 (en) | Multicasting apparatus and method in shared memory switch | |
US7730276B1 (en) | Striping of data into memory of a network data switch to prevent read and write collisions | |
US6769055B1 (en) | Two-part memory address generator | |
US20030110305A1 (en) | Systematic memory location selection in ethernet switches | |
CN111052682B (en) | Master device for a bus system | |
CN107222435B (en) | Method and device for eliminating exchange head resistance of message | |
CN105164983B (en) | The related management method of the output queue of the output queue and stage construction network equipment of stage construction network equipment | |
JPH0630017A (en) | Atm cell flow converter | |
US6741611B1 (en) | Packet memory management (PACMAN) scheme | |
JP2003298601A (en) | Packet sorting apparatus, overflow processing method, program and recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 412200, Liling City, Hunan Province ceramic science and Technology Industrial Park B District Applicant after: Hunan Hengmao tech Limited by Share Ltd Address before: 412200, Liling City, Hunan Province ceramic science and Technology Industrial Park B District Applicant before: Liling Hengmao Electronics Technology Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |