Does anyone have a filter built or know how to build a filter for unicast traffic.I have a switchport on a cisco 6500 that has very little traffic,but the unicast counters contiue to increase.
Simple. Do a binary pattern match for the last bit in the first byte of the Destination Address (the first byte in the packet). If the bit is a 0 the packet is a unicast, if it is a 1, it is either a broadcast or multicast.
More detail than you wanted to know: Ethernet transmits the bits onto the wire in reverse bit order so the last bit in the byte is really the first received. So, if the bit is a 1 and you don't support multicast, the first 0 you see, you know the address is multicast and you don't have to copy it into your buffer (all 1s would be broadcast). A quick way to tell if an address is uni, multi or broad is to look at the first byte. If it is odd, it is a multicast. If it is even, it is a unicast. If it is FF (all binary 1s), then it is a broadcast.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.