{"id":180137,"date":"2020-10-30T05:10:38","date_gmt":"2020-10-29T21:10:38","guid":{"rendered":"http:\/\/4563.org\/?p=180137"},"modified":"2020-10-30T05:10:38","modified_gmt":"2020-10-29T21:10:38","slug":"mtu-%e8%ae%be%e7%bd%ae%e4%b8%8d%e5%90%88%e7%90%86%ef%bc%8c%e9%83%a8%e5%88%86-https-%e7%bd%91%e7%ab%99%e6%89%93%e4%b8%8d%e5%bc%80","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=180137","title":{"rendered":"MTU \u8bbe\u7f6e\u4e0d\u5408\u7406\uff0c\u90e8\u5206 https \u7f51\u7ad9\u6253\u4e0d\u5f00"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  MTU \u8bbe\u7f6e\u4e0d\u5408\u7406\uff0c\u90e8\u5206 https \u7f51\u7ad9\u6253\u4e0d\u5f00               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : doveyoung <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u88c5\u5b8c\u865a\u62df\u673a\uff08 win \uff09\u4e4b\u540e\u53d1\u73b0\u65e0\u6cd5\u6253\u5f00\u90e8\u5206\u7f51\u7ad9\uff0c\u4ee5\u767e\u5ea6\u4e3a\u4f8b <code>www.baidu.com<\/code>\u53ef\u4ee5\u770b\u5230 302 \u6d88\u606f\uff0c\u8df3\u8f6c\u540e<code>https:\/\/www.baidu.com<\/code>\u5c31\u8d85\u65f6\u4e86\uff0c\u800c\u53e6\u5916\u4e00\u90e8\u5206\u7f51\u7ad9\u662f\u6b63\u5e38\u7684\u3002<\/p>\n<p>\u4f7f\u7528<code>curl -v<\/code>\u53ef\u4ee5\u770b\u5230\u5728\u6536\u5230\u670d\u52a1\u5668\u53d1\u6765\u7684 hello \u540e\u5361\u4f4f\u4e0d\u54cd\u5e94\u3002<\/p>\n<p>wireshark \u6293\u5305\u53d1\u73b0\u767e\u5ea6\u56de\u590d\u4e86\u51e0\u4e2a\u5305\uff0c\u5176\u4e2d\u6709\u4e00\u6761\u8b66\u544a\u662f<code>Ignored Unknown Record<\/code> \uff0c\u731c\u6d4b\u662f\u5305\u88ab\u62c6\u5206\u540e\u51fa\u73b0\u4e86\u70b9\u95ee\u9898\u6240\u4ee5\u4e0d\u8ba4\u8bc6\u3002\u641c\u7d22\u8fd9\u4e2a\u8b66\u544a\u4fe1\u606f\u786e\u5b9e\u6709\u7c7b\u4f3c\u7684\u6848\u4f8b HTTPS Websites Not Reachable<\/p>\n<p>\u4fee\u6539 MTU \u540e\u95ee\u9898\u89e3\u51b3\uff0c\u540c\u6837\u7684\uff0c\u5728\u5176\u4ed6\u67d0\u4e9b\u865a\u62df\u673a\u4e0a\u5982\u679c\u6709\u4e0d\u5408\u9002\u7684 MTU \u4e5f\u4f1a\u6253\u4e0d\u5f00\u767e\u5ea6\u3002<\/p>\n<p>\u6211\u7406\u89e3\u7684 MTU \u4e0d\u662f\u53ea\u4f1a\u5f71\u54cd\u6027\u80fd\u901f\u5ea6\u5417\uff0c\u600e\u4e48\u8fd9\u90fd\u5f71\u54cd\u5230\u529f\u80fd\u4e86\uff0c\u6709\u6ca1\u6709\u5927\u4f6c\u89e3\u60d1<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>14<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3942498\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tankren <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             MTU \u8c8c\u4f3c\u4f1a\u5f71\u54cd\u5f88\u591a\u7684 \u6bd4\u5982\u76d2\u5b50\u770b\u89c6\u9891\u5361\u4ec0\u4e48\u7684 \u4e00\u822c\u662f 1492                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942499\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : barathrum <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             MTU \u4e0d\u5408\u9002\u4f1a\u76f4\u63a5\u4e22\u6389\u5305\uff0c\u4e0d\u53ea\u662f\u5f71\u54cd\u901f\u5ea6\u3002<br \/>\u4e0d\u8fc7\u6211\u89c1\u8fc7\u7684\u4e00\u822c\u662f\u4e22\u6389\u7b2c\u4e00\u4e2a\u5305\uff0c\u6536\u5230\u4e00\u6761 ICMP \u6d88\u606f\u540e\u91cd\u65b0\u534f\u5546\u3002<br \/>\u4f60\u7ed9\u7684\u94fe\u63a5\u4f3c\u4e4e\u662f\u7528\u4e86\u4ed6\u5bb6\u7684\u4ea7\u54c1\u624d\u4f1a\u6709\u8fd9\u6837\u7684\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942500\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : doveyoung <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @barathrum \u5bf9\uff0c\u6211\u662f\u770b\u5230\u6709\u7c7b\u4f3c\u7684\u6848\u4f8b\uff0c\u6240\u4ee5\u6539\u4e86 MTU \u8bd5\u4e86\u4e00\u4e0b\uff0c\u6ca1\u60f3\u5230\u641e\u5b9a\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942501\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bclerdx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @doveyoung \u4f60\u5728\u54ea\u91cc\u6539\u7684 MTU \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942502\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : geekvcn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bb6\u7528\u6240\u6709\u8bbe\u5907\u8bbe\u7f6e 1480 \u4fdd\u6301 MTU \u5bf9\u9f50\u5c31\u884c\u4e86\uff0c1492 \u6ca1\u5fc5\u8981\u63d0\u5347\u4e0d\u4e86\u4ec0\u4e48\u7f51\u901f\uff0c\u5176\u5b9e\u66f4\u5e0c\u671b\u8fd0\u8425\u5546\u628a\u5c40\u7aef\u548c\u5149\u732b\u4e4b\u95f4\u7684 MTU \u6539\u4e3a 1528\uff0c\u8fd9\u6837\u76f4\u63a5 MTU1500+8pppoe \u5934\uff0c\u6700\u6807\u51c6\u7684 MTU \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942503\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fovecifer <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u78b0\u5230\u8fc7\u56e0\u4e3a MTU \u95ee\u9898\u5bfc\u81f4 https \u5730\u5740\u4e0d\u80fd\u8bbf\u95ee\u7684\u95ee\u9898 <\/p>\n<p>\u5927\u81f4\u7684\u95ee\u9898\u662f\u4e2d\u95f4\u94fe\u8def\u4e0a\u67d0\u4e2a\u8bbe\u5907\u4e0d\u652f\u6301\u8fd9\u4e48\u5927\u7684 MTU \u7684\u65f6\u5019\uff0c\u4f1a\u7ed9\u6e90\u5730\u5740\u53d1\u4e00\u4e2a icmp \u534f\u8bae\u7684\u5305\uff0c<br \/>\u8ba9\u6e90\u62c6\u6210\u5c0f\u5305\u4e4b\u540e\u518d\u53d1\uff0c\u4f46\u662f\u5f88\u591a\u8bbe\u5907\u5bf9\u8fd9\u4e2a icmp \u7684\u62a5\u6587\u652f\u6301\u7684\u5e76\u4e0d\u597d<br \/>\u4ece\u6293\u5305\u4e0a\u770b\u5230\u4e00\u76f4\u91cd\u4f20\uff0c\u8d85\u8fc7\u6b21\u6570\u4e4b\u540e\u5c31\u653e\u5f03\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942504\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : doveyoung <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @bclerdx #4 \u6539\u7684\u865a\u62df\u673a\u81ea\u5df1\u7684 MTU<br \/>@fovecifer #6 \u53ef\u80fd\u5c31\u662f\u8fd9\u4e2a\u539f\u56e0<br \/>@geekvcn #5 \u4e3b\u8981\u662f MTU \u6ca1\u6709\u6807\u51c6\u4e00\u8bf4\uff0c\u90fd\u662f\u6839\u636e\u4ee5\u5f80\u7684\u7ecf\u9a8c\u53bb\u5b9a\u7684\u3002\u6211\u9047\u89c1\u7684\u662f\u65b0\u521b\u5efa\u7684\u8fd9\u4e2a\u865a\u62df\u673a\u6709\u95ee\u9898\uff0c\u521a\u597d MTU \u53c8\u8ddf\u5176\u4ed6\u865a\u62df\u673a\u53c8\u4e0d\u4e00\u6837\u3002\u6d4b\u4e86\u4e00\u4e0b\u6539\u6210\u5408\u9002\u7684\u4e86\u3002\u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u865a\u62df\u673a\u7684 MTU \u8ddf\u5176\u4ed6\u7684\u4e0d\u4e00\u6837\uff0c\u6211\u5f97\u518d\u53bb\u770b\u770b\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942505\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sinoricky <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5317\u4eac\u8054\u901a\u73af\u5883\uff0c\u524d\u6bb5\u65f6\u95f4\u6298\u817e Ubnt ER-X \u53d1\u73b0 IPv4 \u548c IPv6 \u7684 MTU\/MSS \u662f\u4e0d\u540c\u7684\u3002<br \/>\u6211\u9047\u5230\u7684\u6545\u969c\u8868\u73b0\u5c31\u662f WiFi \u73af\u5883\u4e0b\uff0c\u65e0\u6cd5\u6253\u5f00\u67d0\u4e9b\u5fae\u4fe1\u7684\u516c\u4f17\u53f7\u7684\u7f51\u9875\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942506\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tankren <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @sinoricky #8 https:\/\/www.v2ex.com\/t\/710855#reply16                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942507\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : joshu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u9047\u5230\u7684\u4e00\u822c\u662f\u53bb\u5411\u8def\u7531\u7684 mtu \u9ad8\u4e8e\u56de\u5411\u8def\u7531 mtu\uff0c\u5bfc\u81f4 tcp \u5305\u88ab\u4e22\u5f03\u6216\u4e0d\u5b8c\u6574\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942508\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : marsteel <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             MTU \u534f\u8c03\u5931\u8d25\u4f1a\u5bfc\u81f4 SSL \u534f\u5546\u6545\u969c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942509\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bclerdx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @sinoricky \u90a3\u4e48\u4f60\u5317\u4eac\u8054\u901a\u73af\u5883\u4e0b\uff0cIPv4 \u548c IPv6 \u7684 MTU \u548c MSS \u914d\u7f6e\u7684\u6570\u503c\u662f\u591a\u5c11\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942510\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : brMu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @bclerdx \u6839\u636e\u7231\u5feb\u7684\u9ed8\u8ba4\u914d\u7f6e\uff0c1400 \u7684 mss \u5e94\u8be5\u9002\u5408\u7edd\u5927\u591a\u6570\u73af\u5883\uff0c\u6b64\u65f6 mtu \u662f 1440                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3942511\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : maybeonly <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53cc\u6808\uff1f<br \/>\u5982\u679c\u662f ipv6 \u7684\u8bdd\u53ef\u80fd\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898<br \/>\u56e0\u4e3a ipv6 \u5728\u8d85\u51fa mtu \u4ee5\u540e\u4e0d\u4f1a\u50cf ipv4 \u4e00\u6837\u62c6\u5305\u91cd\u4f20\uff0c\u800c\u662f\u56de\u4e00\u4e2a toobig \u7ed9\u53d1\u9001\u65b9<br \/>\u5982\u679c\u53d1\u9001\u65b9\uff08\u7f51\u7ad9\uff09\u914d\u7f6e\u4e0d\u5408\u7406\uff08\u7279\u522b\u662f\u8d1f\u8f7d\u5747\u8861\u914d\u7f6e\u4e0d\u5408\u7406\uff09\u4e0d\u80fd\u6b63\u786e\u8f6c\u53d1 \/\u5904\u7406 toobig<br \/>\u540c\u65f6\u4f60\u7684\u8fd0\u8425\u5546\u6ca1\u6709\u505a mssfix\uff0c\u5c31\u53ef\u80fd\u51fa\u73b0\u8fd9\u4e2a\u95ee\u9898<br \/>\u53bb\u5e74\u8ba9\u6211\u4eec\u516c\u53f8\u6539\u4e86\uff0c\u4e13\u95e8\u7ed9\u963f\u91cc\u4e91\u53cd\u9988\uff0c\u90a3\u8fb9\u4e5f\u6539\u4e86\uff0c\u770b\u6765\u767e\u5ea6\u8fd8\u6ca1\u6539\uff0c\u6216\u8005\u53c8\u5f04\u574f\u4e86\u3002<\/p>\n<p>========<\/p>\n<p>\uff08\u53bb\u5e74\uff09\u67d0\u5929\u65e9\u4e0a\u53d1\u73b0\u6211\u5bb6\u5bbd\u5e26\u6ca1\u7ed9\u6211\u7684\u5bbd\u5e26\u4e0a v6 \u8bbe\u7f6e mss<br \/>\u8fd9\u6837\u6211\u51fa\u53bb\u7684 mss=1440 \uff08 MTU=1500 \uff09<br \/>\u6309\u7406\u8bf4 PPPoE \u7684\u8bdd mss=1432 \uff08 MTU=1492 \uff09\u624d\u662f\u5bf9\u7684<\/p>\n<p>\u7ed3\u679c\u5c31\u662f\uff0c\u53d1\u9001\u5230\u670d\u52a1\u7aef\u7684 SYN \u4e0a MSS=1440\uff0c\u7136\u540e LVS \u8f6c\u7ed9 realserver<br \/>rs \u6309\u7167 MSS=1440 \u56de\u5305\uff0c\u4f46\u662f\u5230\u4e86 PPPoE \u7684\u5c40\u7aef\u8bbe\u5907\u592a\u80a5\u4e86\u8fc7\u4e0d\u53bb<br \/>\u53d1\u9001 ICMPv6 TOO BIG \uff08 Type=2 \uff09\u7ed9 lvs<br \/>\u4f46\u662f lvs \u6ca1\u6709\u7406\u4f1a\u8fd9\u4e2a\u4e1c\u897f<br \/>\u6240\u4ee5 rs \u662f\u4e0d\u77e5\u60c5\u7684\uff0c\u7ee7\u7eed\u6309\u7167 MSS=1440 \u53d1\uff0c\u88ab\u4e22\u5f03<\/p>\n<p>\u5982\u679c IPv6 \u6ca1\u901a\uff0c\u6ca1\u6536\u5230 SYN\/ACK\uff0c\u662f\u65e0\u6240\u8c13\u7684\uff0c\u5f88\u591a\u5ba2\u6237\u7aef\u5305\u62ec\u6d4f\u89c8\u5668\u4f1a\u81ea\u52a8\u5c1d\u8bd5 IPv4\uff0c\u4f46\u662f\u8fd9\u91cc [email&#160;protected] \u786e\u5b9e\u604b\u4e0a\u4e86\uff0c\u90a3\u4e48\u6700\u7ec8\u7ed3\u679c\u5c31<br \/>\u53ea\u80fd\u662f\uff0c\u5c4a\u4e0d\u5230\uff0c\u5c4a\u4e0d\u5230\uff0c\u65e0\u6cd5\u4f20\u8fbe\u7684\u6570\u636e\u5305                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>MTU \u8bbe\u7f6e\u4e0d\u5408\u7406\uff0c\u90e8\u5206 http&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/180137"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=180137"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/180137\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=180137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=180137"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=180137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}