Configuring DPD on IPsec VPN

Hi

I have ipsec vpn between two mikrotik (same firmware). first run everything works fine but after some time (2-3 hours or 1 day) when tunnel is in idle state hosts are unable to communicate. I know there is option for this and any advice how to configure Dead Peer Detection (DPD) for tunnel to live long time when it’s in idle state?

thanks

not enough information…

Check that the date and time are correct on the routers.

Yes it’s same. you think this is not DPD problem?