1 Ethernet MinSize = 512bit = 64 Byte |
2 | Ethernet MaxSize = 1518 Byte |
3 | so Ethernet IP MTU = 1518 - 18 ( 6 SRCMAC+ 6 DSTMAC+ 2 TYPE+ 4 CRC) = 1500 B |
4 | so Ethernet IP TCP MSS = 1500 - 40 ( 20 IP_HEADER + 20 TCP_HEADER) = 1460 B |
5 | so Ethernet IP UDP MTU/MRU = 1500 - 28 ( 20 IP_HEADER + 8 UDP_HEADER ) = 1472 B |
6 | so PPPoE MTU/MRU = 1500 - 8 ( 6 PPPoE_SESSION + 2 PPP_HEADER ) = 1492 B |
7 | so TCP over PPPoE MSS = 1492 ( PPPoE MTU/MRU ) - 40 ( 20 IP_HEADER + 20 TCP_HEADER) = 1452 |
8 | so PPTP MTU/MRU = 1500 - 56 ( 20 IP_HEADER + 20 TCP_HEADER + 12 GRE_HEADER + 4 PPP_HEADER ) = 1444 B |
9 | so TCP over PPTP MSS = 1444 ( PPTP MTU/MRU ) - 40 ( 20 IP_HEADER + 20 TCP_HEADER) = 1404 |
10 | so L2TP MTU/MRU = 1500 - 40 ( 20 IP_HEADER +8 UDP_HEADER + 8 L2TP_HEADER + 4 PPP_HEADER ) = 1460 B |
11 | so TCP over L2TP MSS = 1460 ( L2TP MTU/MRU ) - 40 ( 20 IP_HEADER + 20 TCP_HEADER) = 1420 B |
12 | so PPTP over PPPoE MTU/MRU = 1492 ( PPPoE MTU/MRU ) - 56 ( 20 IP_HEADER + 20 TCP_HEADER + 12 GRE_HEADER + 4 PPP_HEADER ) = 1436 B |
13 | so PPTP over PPTP MTU/MRU = 1444 ( PPTP MTU/MRU ) - 56 ( 20 IP_HEADER + 20 TCP_HEADER + 12 GRE_HEADER + 4 PPP_HEADER ) = 1388 B |
14 | so PPTP over L2TP MTU/MRU = 1460 ( L2TP MTU/MRU ) - 56 ( 20 IP_HEADER + 20 TCP_HEADER + 12 GRE_HEADER + 4 PPP_HEADER ) = 1404 B |
15 | so L2TP over PPPoE MTU/MRU = 1492 ( PPPoE MTU/MRU ) - 40 ( 20 IP_HEADER +8 UDP_HEADER + 8 L2TP_HEADER + 4 PPP_HEADER ) = 1452 B |
16 | so L2TP over PPTP MTU/MRU = 1444 ( PPTP MTU/MRU ) - 40 ( 20 IP_HEADER +8 UDP_HEADER + 8 L2TP_HEADER + 4 PPP_HEADER ) = 1404 B |
17 | so L2TP over L2TP MTU/MRU = 1460 ( L2TP MTU/MRU ) - 40 ( 20 IP_HEADER +8 UDP_HEADER + 8 L2TP_HEADER + 4 PPP_HEADER ) = 1420 B |
故而,PPTP over PPPoE的準確MTU值是 1436,L2TP over PPPoE的準確MTU是1452。
別人說的 1400 偏保守了點。
如果你用 ADSL 上網,然後用 PPTP 來翻Wall,那麼,你實際上是 PPP 協議跑在 TCP 協議上再跑在 IP 協議上再跑在 PPP 協議上再跑在 IP 協議上再跑在以太網協議上。1518 字節的最大以太網 frame,扣來扣去,就剩下 1436。同理L2TP跑在PPP鏈路上,扣來扣去也就只剩1452B了,難怪筆者之前VPN上不去網,原來是全把數據包丟掉了。
如果讀者看明白了上面的解釋,那麼考慮你用 pptp 連公司的 vpn,公司又 pppoe(adsl撥號),然後你再 pptp 來翻功夫網,那麼,你的 MTU 只能設為 1518-18-8-56-56=1380 字節。很簡單吧?
20 Comments
keto diet plan
July 9, 2021 at 8:44 pmwhat is a keto diet?
keto baking
July 8, 2021 at 10:59 pmketo hamburger recipes
keto pumpkin pie
July 8, 2021 at 8:04 amketo ground beef recipes
seattle free dating sites
June 25, 2021 at 9:16 pmfree disability dating sites
single dating sites free
June 25, 2021 at 5:29 pmfree online dating software open source
free single dating
June 24, 2021 at 4:22 pmfree single online dating
tally free dating sites
June 24, 2021 at 12:02 amfree unlimited messaging dating sites
Usescedge
June 15, 2021 at 5:28 pmfurosemide mexico
Usescedge
June 14, 2021 at 2:44 pmpriligy 90mg canada[/url]
top best free dating sites
June 2, 2021 at 9:59 amtop free dating websites
free dating sites that don't require a credit card
June 2, 2021 at 9:17 amindonesian dating free
free dating sites for 50
June 2, 2021 at 1:56 amfree dating singles site
free dating sites alabama
June 2, 2021 at 1:35 amfree download dating games
free online dating and chatting site
May 21, 2021 at 2:04 am100 free christian dating
server free dating
May 20, 2021 at 8:59 pmfree dating video chats
free dating with herpes
May 20, 2021 at 6:33 pmdating sites for free for kids
free old people dating sites
May 20, 2021 at 1:19 amdating ariane free
china free dating sites
May 19, 2021 at 5:56 pmchina free dating sites
best opening line on tinder
May 16, 2021 at 5:13 pmbest opening line on tinder
PPTP/L2TP over PPPoE的準確MTU/MRU值 – rock funs
funny bios for tinder
May 15, 2021 at 10:30 amfunny bios for tinder
PPTP/L2TP over PPPoE的準確MTU/MRU值 – rock funs