0BT انفینٹی کے لئے وان MTU کی اصلاح

ایک pfsense روٹر سے میری BT SmartHub سے سوئچنگ کے بعد سے میں نے چند معمولی ابتدائی مسائل پڑا ہے. جس میں سے ایک میں ایک خامی کے ساتھ بی بی سی کی ویب سائٹ تک رسائی حاصل نہیں کر سکتے ہیں، جہاں ایک مسئلہ پیدا سکویڈ پراکسی سروس کی گئی ہے. حالت میں آخر میں ایک تھوڑا سا عجیب طریقہ کار کے ذریعے اس کو حل کیا, میں نے اس کی اپنے طور پر فکسنگ کے قابل تھا جس مسئلے کی ایک ممکنہ ذریعہ سامنا کرنا پڑا

When I turned squid off I was imme­di­ately able to access the BBC web­site, but with it turned on I con­sist­ent received an error from squid that there had been a “Zero Sized Reply”. اس سکویڈ لگ رہا تھا بی بی سی کی طرف سے کوئی جواب حاصل کرنے سے قاصر تھا. One pos­sible cause of this could be frag­men­ted pack­ets being dropped, and the cause of frag­ment­a­tion is nor­mally MTU size.

The default MTU for Eth­er­net is 1500 and most mod­ern oper­at­ing sys­tems man­age things on the LAN auto­mat­ic­ally. It is pos­sible to use sizes up to 9000 to increase through­put (تھوڑا سا) LAN کے لئے. کس طرح کبھی, this was of less interest to me than mak­ing sure pack­ets wer­en’t get­ting frag­men­ted mul­tiple times, or being frag­men­ted after leav­ing the router.

pfsense ساتھ وان MTU ڈیفالٹ پر سیٹ (1500) I tried some pinging from win­dows to see what the max­im­um size was without frag­ment­a­tion. The com­mand to use is ping google.com -f -l 1500, chan­ging the last num­ber to find the optim­um. My BT Infin­ity con­nec­tion uses PPPoE which typ­ic­ally has a max­im­um value of 1492 (ہے PPPoE pfsense کرنے کے طور پر میری ختم موڈیم پیش کر سکتے ہیں جس میں یہ حقیقت میں واقعی PPPoA کا استعمال کر سکتے, dif­fer­ent sources say dif­fer­ent things about this), and when using ping it is neces­sary to take into account some over­head which has a value of 28, so I was expect­ing a ping MTU of 1464 سب سے بڑا میں استعمال کر سکتے ہیں بننے کے لئے. To my sur­prise this still res­ul­ted in frag­ment­a­tion and I even­tu­ally found the max­im­um I could use was 1456.

میں نے اس قدر استعمال کیا (کے ساتھ 28 پیٹھ پر شامل کیا) کی ایک MTU قیمت مقرر کرنے 1484 میں وان inter­face set­tings of pfsense. Now the only frag­ment­a­tion should be done by the router to LAN pack­ets, with no risk of any later frag­ment­a­tion from a router some­where between me and any par­tic­u­lar web­site. After clear­ing my browser cache and the squid cache I was then able to load the BBC web­site suc­cess­fully. I sus­pect the issue was caused by a router black­hol­ing issue some­where between my آئی ایس پی and the BBC serv­ers which was drop­ping the frag­men­ted pack­ets. A nice descrip­tion of the phe­nomen­on can be found on RCL کا بلاگ

جواب چھوڑیں