Community discussions

MikroTik App
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

10 Minute Leases

Sat Oct 04, 2014 5:02 pm

I see that in 6.20 the leases are changed from 3 days to 10 minutes. Could this cause devices to lose their ip address and temporarily lose connection? Im' a little confused how this works.
 
Shiro
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Wed Sep 25, 2013 6:44 pm

Re: 10 Minute Leases

Sat Oct 04, 2014 5:23 pm

 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: 10 Minute Leases

Sat Oct 04, 2014 5:28 pm

can you point me to the area I need to focus on in the article? It's really long!
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: 10 Minute Leases

Sat Oct 04, 2014 5:41 pm

The change in lease time should not be a problem. As long as the client device thinks it has a lease, even tho it is longer than the lease time on the dhcp server, it should not lose the connection.

The dhcp server (last I checked) will check to see if an IP is being used before issuing that IP from the dhcp pool. It pings that IP before assigning it to a device. If it gets a ping response on that IP, it marks that IP as "busy" in the lease list, and gets another IP from the pool.

You can check this if you wish.
/ip dhcp-server lease
print detail
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: 10 Minute Leases

Sat Oct 04, 2014 5:51 pm

got it. But by shortening the lease time to 10 minutes, doesn't this tax the router and add network traffic? I wonder how it affects performance?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: 10 Minute Leases

Sat Oct 04, 2014 5:56 pm

got it. But by shortening the lease time to 10 minutes, doesn't this tax the router and add network traffic? I wonder how it affects performance?
Yes, it affects the performance of the network, but that would be relational to the number of clients on the network. If there are only a few clients, the performance loss would be minimal.

You can change the lease time to any length you want. You can change it back to 3 days if you feel like it.
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: 10 Minute Leases

Sat Oct 04, 2014 5:59 pm

Thanks tim. On the same note, if I am running a script to ping all static ip addresses every 5 minutes, will this also tax the network, or is ping so minimal it doesn't matter?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: 10 Minute Leases

Sat Oct 04, 2014 6:05 pm

Thanks tim. On the same note, if I am running a script to ping all static ip addresses every 5 minutes, will this also tax the network, or is ping so minimal it doesn't matter?
It shouldn't tax the network too much, but again, it depends on the number of static IP clients you have on the localnet. If just a few, you will normally not notice the performance loss.
 
User avatar
CyberTod
Long time Member
Long time Member
Posts: 510
Joined: Wed Jan 25, 2012 10:23 am

Re: 10 Minute Leases

Sat Oct 04, 2014 6:10 pm

When renewing a dhcp lease there are only a few packets exchanged in the network. The client sends DHCPREQUEST for the ip it already has and the server replies with DHCPACK, that's it.
It is so minimal that really is nothing to worry about. But this is just a default value for someone that installs a router without knowing much about settings.
Any network administrator can and should change the value to a setting that he thinks is best for his network.
 
tabate47
Long time Member
Long time Member
Topic Author
Posts: 510
Joined: Wed Mar 13, 2013 5:23 am
Location: Los Angeles

Re: 10 Minute Leases

Sat Oct 04, 2014 7:39 pm

I agree, the network admin should set it to what works best for the environment.

Tim, I usually don't have many more than 20-30 static ips.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: 10 Minute Leases

Sat Oct 04, 2014 7:43 pm

That will cause no noticeable effect. Ping is one packet from src to dst, and one packet back. Hardly a network killer, even if done 30 times every 5 minutes.

Who is online

Users browsing this forum: dawdler and 138 guests