05-15-2015 02:30 AM - edited 03-08-2019 12:01 AM
Hi All
I need some help trying to figure out the IPsec overhead in ESP Tunnel mode.
Scanning the internet makes me believe the overhead must be between 51 - 58 bytes
When testing this in Wireshark makes my head spin.
R1 --- R2 --- R3-- R4 (IPsec tunnel between R2 and R3)
Capture before and after IPsec tunnel
Total = 1414 bytes
- Ethernet Header 14 bytes
- IP header 20 bytes
- ICMP header 8 bytes
- payload 1372
Capture tunnel data (between R2 & R3)
Total = 1478 bytes
- Ethernet header 14 bytes
- IP header 20 bytes
- ESP ??? (encapulate ip.h & icmp.h)
The difference between the packets is now 1478 - 1414 = 64 bytes
ESP is creating an extra IP header of 20 bytes
64 bytes - 20 bytes (extra IP header) = makes the IPSec overhead 44 bytes
What am i missing here, why is the overhead not between 51 and 58 byte.
Thanks
Solved! Go to Solution.
05-15-2015 04:35 AM
Theres a tool on Cisco website may help as well
https://cway.cisco.com/tools/ipsec-overhead-calc/ipsec-overhead-calc.html
05-15-2015 04:29 AM
Your increase of 64 Bytes look perfectly fine:
05-15-2015 04:47 AM
Thanks for the quick answer
So when using IPSec in tunnel mode and you don't want to calculate the exact overhead it is save to adjust the MTU with the max possible IPSec header of 73 bytes. and for IPSec in transport mode 53 bytes.
05-15-2015 04:51 AM
Typically you don't adjust the MTU but the MSS is reduced for example by 80 Bytes to 1380. Also be aware that there could be other overhead as well like the 8 Bytes on DSL-connections.
05-15-2015 04:35 AM
Theres a tool on Cisco website may help as well
https://cway.cisco.com/tools/ipsec-overhead-calc/ipsec-overhead-calc.html
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide