Re: Embedded Ethernet and Corporate LAN
- From: "Richard H." <rh86@xxxxxxx>
- Date: Thu, 26 May 2005 20:14:52 -0700
TECH_NEWS wrote:
We get massive buffer overflows on a typical LAN network. What did you do to reduce "House Keeping" signals (DHCP OFFERS, ARP REQUESTS, DNS, NETBIOS BROADCASTS)?
* It'd possible that the environment is to blame, but it'd have to be really bad. A "normal" corporate LAN would only see ~10 broadcast packets per second. OTOH, the system should be able to do 10pps in its sleep, so maybe it's a combination of environment and code.
* Have you set the broadcast receive flags in the controller? You should have promiscuous mode turned off, along with all types of multicasts. This will cause the controller to pre-filter all the incoming packets.
* Is your MAC address loaded into the controller (it becomes the unicast address filter)?
* You will need to have broadcasts enabled because some of the broadcast protocols (all F's MAC) are critical (e.g., ARP)
* What sequence are you using to validate the received packets for processing? Because many of the broadcast packets will not be useful to your application, you need a very streamlined way to discard them. An excellent tip is to do the filtering steps (address, frame type, protocol, port) before validating the checksum, since it's very CPU intensive.
* Is the driver interrupt-triggered, or does it poll? If polled, do you check for the next packet right after you're finished with the last one? If it's interrupt triggered, is it possible your interrupts aren't working as expected under a moderate load? For example, look at how interrupts and flags are being reset - how promptly, possible race conditions, etc.
Richard .
- Follow-Ups:
- Re: Embedded Ethernet and Corporate LAN
- From: EFH77
- Re: Embedded Ethernet and Corporate LAN
- From: EFH77
- Re: Embedded Ethernet and Corporate LAN
- References:
- Embedded Ethernet and Corporate LAN
- From: TECH_NEWS
- Embedded Ethernet and Corporate LAN
- Prev by Date: Embedded Ethernet and Corporate LAN
- Next by Date: Re: Embedded Ethernet and Corporate LAN
- Previous by thread: Embedded Ethernet and Corporate LAN
- Next by thread: Re: Embedded Ethernet and Corporate LAN
- Index(es):
Relevant Pages
|
|