how to fix collision reset problem in ethernet mac table

OP (Company: Kocaeli Universty) #7213271
Rate this post
• ▲ useful
▼ not useful
In a project I'm working on an FPGA, I'm converting a 48-bit MAC address 
to 16-bit using the Hash algorithm. RAM size is 2^16 bits and I have 8 
ETHERNET ports. I am using the resulting hash as ramin address port. 
Each ethernet port has multiple source addresses. The questions start 
here.
1) example: A packet with source address A was received from ethernet 
port 8. After passing the 48-bit A source mac address through the hash 
algorithm, the 16-bit X ram address is formed. When going to the B ram 
address, the 1st port information -> "10000000" is written.
 A packet with source address B arrived from Ethernet port 1. After 
passing the 48-bit B source mac address through the hash algorithm, the 
16-bit X ram address is formed. Going to B ram address, 1st port 
information -> "10000001" is written.
Currently, if a destination MAC address with the same X ram hash address 
comes in, it will be forwarded to both port 8 and port 1.
Is this operation correct or how can it be done with another operation?

2) Since there is no RAM reset process in FPGA, how can I periodically 
delete the MAC Table addresses I wrote to the RAM?
Attached files:

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.