DHCP module and external DHCP relay

Eugene Grosbein fr at grosbein.net
Fri Apr 4 11:46:11 CEST 2014


Hi!

We use FreeRADIUS 2.2.0 as DHCP server with rlm_perl
to connect to external database to run stored procedure there
that returns IP/mask/DNS etc for option82-enabled requests.

The database is pretty fast and serves hundreds of parallel requests
in 1 second or less.

FreeRADIUS receives all DHCP requests from external high loaded DHCP relay
and threats them all as coming from single DHCP client.

Our perl script does extensive logging through direct syslog connection
and I see that there is great delay between the moment of DHCP request arrival
as shown by tcpdump  and the moment when post_auth perl function is invoked by FreeRADIUS.

This delay is about 6 seconds and some DHCP clients do not wait for so long.

Is it possible to eliminate these delays? Here are lines from radiusd log:

Request 14280134 has been waiting in the processing queue for 6 seconds.  Check that all databases are running properly!
Discarding duplicate request from client dhcp port 67 - ID: 1381353109 due to unfinished request 14280311

Again, our database processes most request in less than 1 second and very seldom in 2 seconds
but mentioned problem is persistent.

Eugene Grosbein


More information about the Freeradius-Users mailing list