docs(README) add packet header diagram

This commit is contained in:
Datong Sun 2022-04-10 03:25:32 -07:00
parent 21eabe8b82
commit 8d315ea4e7
2 changed files with 3 additions and 1 deletions

View File

@ -234,6 +234,8 @@ Phantun's additional overhead: 12 bytes. I other words, when using Phantun, the
UDP packet is reduced by 12 bytes. This is the minimum overhead possible when doing such kind UDP packet is reduced by 12 bytes. This is the minimum overhead possible when doing such kind
of obfuscation. of obfuscation.
![Packet header diagram](images/packet-headers.png)
[Back to TOC](#table-of-contents) [Back to TOC](#table-of-contents)
## MTU calculation for WireGuard ## MTU calculation for WireGuard
@ -307,7 +309,7 @@ Here is a quick overview of comparison between those two to help you choose:
| UDP over UDP obfuscation | ❌ | ✅ | | UDP over UDP obfuscation | ❌ | ✅ |
| Multi-threaded | ✅ | ❌ | | Multi-threaded | ✅ | ❌ |
| Throughput | Better | Good | | Throughput | Better | Good |
| Raw IP mode | TUN interface | Raw sockets + BPF | | L4 IP mode | TUN interface | Raw sockets + BPF |
| Tunneling MTU overhead | 12 bytes | 44 bytes | | Tunneling MTU overhead | 12 bytes | 44 bytes |
| Seprate TCP connections for each UDP connection | Client/Server | Server only | | Seprate TCP connections for each UDP connection | Client/Server | Server only |
| Anti-replay, encryption | ❌ | ✅ | | Anti-replay, encryption | ❌ | ✅ |

BIN
images/packet-headers.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB