Skip to main content
FortiOSman
New Member
October 24, 2016
Question

Testing IPSEC VPN latency

  • October 24, 2016
  • 1 reply
  • 12530 views

Hello,

 

Are there any good ways to test IPSEC VPN tunnel latency from the FortiGate? I currently just ping one of the endpoints from the CLI but was wondering if anyone does something differently. Ideally I would like this graphed out, but I do not think there is anything native that would do this. 

 

 

Looking forward to your responses.

 

1 reply

Toshi_Esumi
SuperUser
SuperUser
October 24, 2016

That's what I do too.

emnoc
New Member
October 24, 2016

Pinging a vpn remote-gw  end-point is not passing traffic  thru the IPSEC tunnel.  If you goal is to test latency thru the tunnel,  you need to monitor the traffic  that goes thru the  tunnel.

 

If you want a type of advance-latency monitoring and have a local-subnet allowed thru the  tunnel that uses  TCP, you could craft a  simple checker that measures the timestamp of the TCP  SYN and the response of the SYN-ACK. This will give you  an ideal of "actual" RTT. If you want one-way latency you will have to creative and monitor  A-------> B SYN ( CS ) and  then  B------A SYN_ACK ( SC ) to gather  each path one-way measurement. Latency is not always equal in both directions.

 

CS = client2server

SC = server2client

 

 

Ideally I would like this graphed out, but I do not think there is anything native that would do this.

 

These could be monitored,  and graph if required.  Example in nagios you would need to write a custom check apply it.

 

FWIW: the  tunnel-interface has an assigned  SNMP IfIndex and you can graph it just like any physical interface

 

e.g

FGT40DCHIIL (root) $ show system  interface   VPNCHKP1 | grep snmp-index         set snmp-index 124

 

Ken

 

 

 

FortiOSman
New Member
October 24, 2016

Thanks. To clarify, I ping a device on the other side of the tunnel, not the actual remote-gw ip. 

 

FWIW: the  tunnel-interface has an assigned  SNMP IfIndex and you can graph it just like any physical interface

 

What kind of data are you graphing? The only graphs I have in the FortiGate show interface traffic history.