Score:0

อะไรทำให้ twitterbot ใช้เวลา 6 วินาทีในการดาวน์โหลดเนื้อหารูปภาพขนาดเล็ก

ธง cn

หลายครั้ง (ส่วนใหญ่) ที่ twitter ส่งคำขอ http สำหรับภาพบางภาพ เวลาตอบสนอง (ตามที่บันทึกโดย nginx ในบันทึก) ใช้เวลา 6 วินาที ไซต์อื่นๆ (เช่น facebook) และบางครั้ง twitter มักได้รับการตอบกลับภายใน 0.2 วินาทีหรือน้อยกว่า

ไม่ใช่ว่าเวลาตอบสนอง "แค่ช้า" แต่เป็นเวลาที่ตอบสนองค่อนข้างมาก เสมอ เกือบ 6 วินาที เช่นนั้นจะเป็นเวลาตอบสนองของโมดอล

ทวิตเตอร์กล่าวว่า อาจเป็นปัญหาการกำหนดเส้นทางและฉันควรลองโฮสต์รูปภาพบนโดเมนอื่น (สันนิษฐานว่าหมายถึงที่ IP อื่น) แต่ฉันไม่มั่นใจ

มีบางอย่างเกี่ยวกับเวลาที่ทำให้ฉันคิดว่ามีบางอย่างเกิดขึ้น

ฉันได้ตรวจสอบ robots.txt แล้ว (ซึ่งไม่ควรส่งผลต่อเวลาตอบสนอง); ฉันไม่ได้ใช้การจำกัดอัตราใด ๆ ใน nginx; และไม่ใช่ว่า twitterbot กำลังทุบเว็บไซต์จริง ๆ โดยปกติแล้วจะมีคำขอสองสามนาทีระหว่างคำขอ!

สิ่งที่แปลกเพียงอย่างเดียวที่ฉันสังเกตเห็นคือบางครั้ง twitter จะทำการร้องขอพร้อมกันสองครั้งสำหรับทรัพยากรเดียวกัน เช่น.

{"rsTime":"2022-01-05T23:07:49+00:00","rsStatus":"200","rqIp":"x.x.x.x","rq":"GET /sites/default/files/ share-images/node-3211-202112151443.jpg HTTP/1.1","rqUser":"","rqRef":"","rqUA":"Twitterbot/1.0","rsB":"196275","rsTook ":"6.604","phpTook":""}

{"rsTime":"2022-01-05T23:07:49+00:00","rsStatus":"200","rqIp":"x.x.x.x","rq":"GET /sites/default/files/ share-images/node-3211-202112151443.jpg HTTP/1.1","rqUser":"","rqRef":"","rqUA":"Twitterbot/1.0","rsB":"196275","rsTook ":"6.605","phpTook":""}

ในกรณีที่มีประโยชน์ นี่คือส่วนหัวของคำขอ:

HTTP/1.1 200 ตกลง
ยอมรับช่วง: ไบต์
การควบคุมแคช: max-age=2592000
การเชื่อมต่อ: มีชีวิตอยู่
ความยาวเนื้อหา: 343376
ประเภทเนื้อหา: รูปภาพ/jpeg
วันที่: พฤ. 06 ม.ค. 2565 17:45:21 GMT
ETag: "619d2951-53d50"
หมดอายุ: วันเสาร์ที่ 05 กุมภาพันธ์ 2022 17:45:21 GMT
Keep-Alive: หมดเวลา = 10
Last-Modified: อ. 23 พ.ย. 2021 17:48:01 GMT.
เซิร์ฟเวอร์: nginx

และฉันเชื่อว่านี่เป็นส่วนที่เกี่ยวข้องของการกำหนดค่า nginx:

ส่งไฟล์บน;             
tcp_nopush บน;           
tcp_nodelay บน;          
types_hash_max_size 2048;
ปิด server_tokens;
client_body_timeout 60;                                
client_header_timeout 60;                   
keepalive_timeout 10 10;                               
send_timeout 60;                                       
เปิด reset_timedout_connection;                          
หมดอายุ 30d;
open_file_cache สูงสุด = 3000 ไม่ใช้งาน = 120s;                           
open_file_cache_valid 45s;
open_file_cache_min_uses 2;
ปิด open_file_cache_errors;

แก้ไข: ข้อมูล tcpdump ตามที่แนะนำในความคิดเห็น

ฉันใช้ tcpdump เพื่อดัมพ์ข้อมูล https ระหว่างไซต์ของฉันและไซต์ของ twitter ขณะที่ฉันโพสต์ลิงก์บน twitter Twitter สร้างคำขอ http 2 รายการ: หนึ่งรายการสำหรับเพจ (0.18 วินาที) และอีกรายการสำหรับรูปภาพ (6.67 วินาที)

ฉันยังใหม่กับ tcpdump เลยไม่แน่ใจว่าฉันกำลังมองหาอะไรอยู่

07.301756 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [SEW], seq 350223635, win 65535, ตัวเลือก [mss 1460,sackOK,TS val 3744650926 ecr 0,nop,wscale 8], ความยาว 0
07.301814 IP mysite.https > theirsite.36652: ค่าสถานะ [S.E], seq 3699217149, ack 350223636, win 65160, options [mss 1460,sackOK,TS val 3624184444 ecr 3744650926,nop,wscale 7], ความยาว 0
07.400999 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.], ack 1, ชนะ 256, ตัวเลือก [nop,nop,TS val 3744651026 ecr 3624184444], ความยาว 0
07.401067 IP theirsite.36652 > mysite.https: ค่าสถานะ [P.], seq 1:153, ack 1, win 256, options [nop,nop,TS val 3744651026 ecr 3624184444], ความยาว 152
07.401084 IP mysite.https > theirsite.36652: ค่าสถานะ [.E], ack 153, win 508, ตัวเลือก [nop,nop,TS val 3624184543 ecr 3744651026], ความยาว 0
07.401638 IP mysite.https > theirsite.36652: ค่าสถานะ [.E], seq 1:2897, ack 153, ชนะ 508, ตัวเลือก [nop,nop,TS val 3624184543 ecr 3744651026], ความยาว 2896
07.401676 IP mysite.https > theirsite.36652: ค่าสถานะ [P.E], seq 2897:4097, ack 153, win 508, options [nop,nop,TS val 3624184543 ecr 3744651026], ความยาว 1200
07.403373 IP mysite.https > theirsite.36652: ค่าสถานะ [P.E], seq 4097:4433, ack 153, win 508, options [nop,nop,TS val 3624184545 ecr 3744651026], ความยาว 336
07.500676 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 4097, win 288, ตัวเลือก [nop,nop,TS val 3744651125 ecr 3624184543], ความยาว 0
07.502402 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 4433, ชนะ 300, ตัวเลือก [nop,nop,TS val 3744651127 ecr 3624184545], ความยาว 0
07.503493 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [P.EW], seq 153:246, ack 4433, ชนะ 300, ตัวเลือก [nop,nop,TS val 3744651128 ecr 3624184545], ความยาว 93
07.503519 IP mysite.https > theirsite.36652: ค่าสถานะ [.E], ack 246, win 508, ตัวเลือก [nop,nop,TS val 3624184645 ecr 3744651128], ความยาว 0
07.503926 IP mysite.https > theirsite.36652: ค่าสถานะ [P.EW], seq 4433:4691, ack 246, win 508, options [nop,nop,TS val 3624184646 ecr 3744651128], ความยาว 258
07.603028 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 4691, win 311, ตัวเลือก [nop,nop,TS val 3744651228 ecr 3624184646], ความยาว 0
07.603159 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [P.EW], seq 246:595, ack 4691, win 311, options [nop,nop,TS val 3744651228 ecr 3624184646], ความยาว 349
07.603188 IP mysite.https > theirsite.36652: ค่าสถานะ [.E], ack 595, win 506, ตัวเลือก [nop,nop,TS val 3624184745 ecr 3744651228], ความยาว 0
07.792960 IP mysite.https > theirsite.36652: ค่าสถานะ [.EW], seq 4691:6139, ack 595, win 506, options [nop,nop,TS val 3624184935 ecr 3744651228], ความยาว 1448
07.892024 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 6139, win 322, ตัวเลือก [nop,nop,TS val 3744651517 ecr 3624184935], ความยาว 0
07.892047 IP mysite.https > theirsite.36652: ค่าสถานะ [.EW], seq 6139:7587, ack 595, win 506, options [nop,nop,TS val 3624185034 ecr 3744651517], ความยาว 1448
07.990993 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 7587, win 334, ตัวเลือก [nop,nop,TS val 3744651616 ecr 3624185034], ความยาว 0
07.991014 IP mysite.https > theirsite.36652: ค่าสถานะ [.EW], seq 7587:9035, ack 595, win 506, options [nop,nop,TS val 3624185133 ecr 3744651616], ความยาว 1448
08.090023 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 9035, win 345, ตัวเลือก [nop,nop,TS val 3744651715 ecr 3624185133], ความยาว 0
08.090053 IP mysite.https > theirsite.36652: ค่าสถานะ [.EW], seq 9035:10483, ack 595, win 506, options [nop,nop,TS val 3624185232 ecr 3744651715], ความยาว 1448
08.189127 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 10483, win 356, ตัวเลือก [nop,nop,TS val 3744651814 ecr 3624185232], ความยาว 0
08.189150 IP mysite.https > theirsite.36652: ค่าสถานะ [.EW], seq 10483:11931, ack 595, win 506, options [nop,nop,TS val 3624185331 ecr 3744651814], ความยาว 1448
08.288177 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 11931, win 368, ตัวเลือก [nop,nop,TS val 3744651913 ecr 3624185331], ความยาว 0
08.288219 IP mysite.https > theirsite.36652: ค่าสถานะ [.EW], seq 11931:13379, ack 595, win 506, options [nop,nop,TS val 3624185430 ecr 3744651913], ความยาว 1448
08.387287 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 13379, win 379, ตัวเลือก [nop,nop,TS val 3744652012 ecr 3624185430], ความยาว 0
08.387316 IP mysite.https > theirsite.36652: ค่าสถานะ [.EW], seq 13379:14827, ack 595, win 506, options [nop,nop,TS val 3624185529 ecr 3744652012], ความยาว 1448
08.486350 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 14827, ชนะ 390, ตัวเลือก [nop,nop,TS val 3744652111 ecr 3624185529], ความยาว 0
08.486372 IP mysite.https > theirsite.36652: ค่าสถานะ [P.EW], seq 14827:16256, ack 595, win 506, options [nop,nop,TS val 3624185628 ecr 3744652111], ความยาว 1429
08.585430 IP ของพวกเขาsite.36652 > mysite.https: ค่าสถานะ [.E], ack 16256, win 402, ตัวเลือก [nop,nop,TS val 3744652210 ecr 3624185628], ความยาว 0
11.555117 IP ของพวกเขาsite.37999 > mysite.https: ตั้งค่าสถานะ [SEW], seq 1059140554, ชนะ 65535, ตัวเลือก [mss 1460,sackOK,TS val 2940663245 ecr 0,nop,wscale 8], ความยาว 0
11.555147 IP mysite.https > theirsite.37999: ค่าสถานะ [S.E], seq 4137859394, ack 1059140555, win 65160, options [mss 1460,sackOK,TS val 3624188697 ecr 2940663245,nop,wscale 7], ความยาว 0
11.654266 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.], ack 1, ชนะ 256, ตัวเลือก [nop,nop,TS val 2940663345 ecr 3624188697], ความยาว 0
11.654320 IP theirsite.37999 > mysite.https: ค่าสถานะ [P.], seq 1:153, ack 1, win 256, options [nop,nop,TS val 2940663345 ecr 3624188697], ความยาว 152
11.654336 IP mysite.https > theirsite.37999: ค่าสถานะ [.E], ack 153, win 508, ตัวเลือก [nop,nop,TS val 3624188796 ecr 2940663345], ความยาว 0
11.654658 IP mysite.https > theirsite.37999: ค่าสถานะ [.E], seq 1:2897, ack 153, ชนะ 508, ตัวเลือก [nop,nop,TS val 3624188796 ecr 2940663345], ความยาว 2896
11.654676 IP mysite.https > theirsite.37999: ค่าสถานะ [P.E], seq 2897:4097, ack 153, win 508, options [nop,nop,TS val 3624188796 ecr 2940663345], ความยาว 1200
11.656243 IP mysite.https > theirsite.37999: ค่าสถานะ [P.E], seq 4097:4433, ack 153, win 508, options [nop,nop,TS val 3624188798 ecr 2940663345], ความยาว 336
11.753727 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 4097, win 288, ตัวเลือก [nop,nop,TS val 2940663444 ecr 3624188796], ความยาว 0
11.755266 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 4433, ชนะ 300, ตัวเลือก [nop,nop,TS val 2940663446 ecr 3624188798], ความยาว 0
11.756355 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [P.EW], seq 153:246, ack 4433, ชนะ 300, ตัวเลือก [nop,nop,TS val 2940663447 ecr 3624188798], ความยาว 93
11.756399 IP mysite.https > theirsite.37999: ค่าสถานะ [.E], ack 246, win 508, ตัวเลือก [nop,nop,TS val 3624188898 ecr 2940663447], ความยาว 0
11.756842 IP mysite.https > theirsite.37999: ค่าสถานะ [P.EW], seq 4433:4691, ack 246, win 508, options [nop,nop,TS val 3624188899 ecr 2940663447], ความยาว 258
11.855874 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 4691, win 311, ตัวเลือก [nop,nop,TS val 2940663546 ecr 3624188899], ความยาว 0
11.856034 IP theirsite.37999 > mysite.https: ค่าสถานะ [P.EW], seq 246:627, ack 4691, win 311, options [nop,nop,TS val 2940663546 ecr 3624188899], ความยาว 381
11.856057 IP mysite.https > theirsite.37999: ค่าสถานะ [.E], ack 627, win 506, ตัวเลือก [nop,nop,TS val 3624188998 ecr 2940663546], ความยาว 0
11.856303 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 4691:6139, ack 627, win 506, options [nop,nop,TS val 3624188998 ecr 2940663546], ความยาว 1448
11.955431 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 6139, win 322, ตัวเลือก [nop,nop,TS val 2940663646 ecr 3624188998], ความยาว 0
11.955505 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 6139:7587, ack 627, win 506, options [nop,nop,TS val 3624189097 ecr 2940663646], ความยาว 1448
12.054716 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 7587, win 334, ตัวเลือก [nop,nop,TS val 2940663745 ecr 3624189097], ความยาว 0
12.054805 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 7587:9035, ack 627, win 506, options [nop,nop,TS val 3624189197 ecr 2940663745], ความยาว 1448
12.153874 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 9035, win 345, ตัวเลือก [nop,nop,TS val 2940663844 ecr 3624189197], ความยาว 0
12.153924 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 9035:10483, ack 627, win 506, options [nop,nop,TS val 3624189296 ecr 2940663844], ความยาว 1448
12.253082 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 10483, win 356, ตัวเลือก [nop,nop,TS val 2940663943 ecr 3624189296], ความยาว 0
12.253134 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 10483:11931, ack 627, win 506, options [nop,nop,TS val 3624189395 ecr 2940663943], ความยาว 1448
12.352340 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 11931, win 368, ตัวเลือก [nop,nop,TS val 2940664043 ecr 3624189395], ความยาว 0
12.352409 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 11931:13379, ack 627, win 506, options [nop,nop,TS val 3624189494 ecr 2940664043], ความยาว 1448
12.451567 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 13379, win 379, ตัวเลือก [nop,nop,TS val 2940664142 ecr 3624189494], ความยาว 0
12.451615 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 13379:14827, ack 627, win 506, options [nop,nop,TS val 3624189593 ecr 2940664142], ความยาว 1448
12.550697 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 14827, ชนะ 390, ตัวเลือก [nop,nop,TS val 2940664241 ecr 3624189593], ความยาว 0
12.550736 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 14827:16275, ack 627, win 506, options [nop,nop,TS val 3624189693 ecr 2940664241], ความยาว 1448
12.649774 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 16275, win 402, ตัวเลือก [nop,nop,TS val 2940664340 ecr 3624189693], ความยาว 0
12.649810 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 16275:17723, ack 627, win 506, options [nop,nop,TS val 3624189792 ecr 2940664340], ความยาว 1448
12.748972 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 17723, win 413, ตัวเลือก [nop,nop,TS val 2940664439 ecr 3624189792], ความยาว 0
12.749025 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 17723:19171, ack 627, win 506, options [nop,nop,TS val 3624189891 ecr 2940664439], ความยาว 1448
12.848133 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 19171, win 424, ตัวเลือก [nop,nop,TS val 2940664538 ecr 3624189891], ความยาว 0
12.848171 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 19171:20619, ack 627, win 506, options [nop,nop,TS val 3624189990 ecr 2940664538], ความยาว 1448
12.947232 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 20619, ชนะ 436, ตัวเลือก [nop,nop,TS val 2940664637 ecr 3624189990], ความยาว 0
12.947273 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 20619:22067, ack 627, win 506, options [nop,nop,TS val 3624190089 ecr 2940664637], ความยาว 1448
13.046357 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 22067, win 447, ตัวเลือก [nop,nop,TS val 2940664737 ecr 3624190089], ความยาว 0
13.046386 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 22067:23515, ack 627, win 506, options [nop,nop,TS val 3624190188 ecr 2940664737], ความยาว 1448
13.145398 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 23515, win 458, ตัวเลือก [nop,nop,TS val 2940664836 ecr 3624190188], ความยาว 0
13.145426 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 23515:24963, ack 627, win 506, options [nop,nop,TS val 3624190287 ecr 2940664836], ความยาว 1448
13.244504 ​​IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 24963, win 469, ตัวเลือก [nop,nop,TS val 2940664935 ecr 3624190287], ความยาว 0
13.244532 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 24963:26411, ack 627, win 506, options [nop,nop,TS val 3624190386 ecr 2940664935], ความยาว 1448
13.343650 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 26411, win 481, ตัวเลือก [nop,nop,TS val 2940665034 ecr 3624190386], ความยาว 0
13.343716 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 26411:27859, ack 627, win 506, options [nop,nop,TS val 3624190486 ecr 2940665034], ความยาว 1448
13.442769 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 27859, ชนะ 492, ตัวเลือก [nop,nop,TS val 2940665133 ecr 3624190486], ความยาว 0
13.442795 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 27859:29307, ack 627, win 506, options [nop,nop,TS val 3624190585 ecr 2940665133], ความยาว 1448
13.541819 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 29307, win 503, ตัวเลือก [nop,nop,TS val 2940665232 ecr 3624190585], ความยาว 0
13.541880 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 29307:30755, ack 627, win 506, options [nop,nop,TS val 3624190684 ecr 2940665232], ความยาว 1448
13.640911 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 30755, win 515, ตัวเลือก [nop,nop,TS val 2940665331 ecr 3624190684], ความยาว 0
13.640976 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 30755:32203, ack 627, win 506, options [nop,nop,TS val 3624190783 ecr 2940665331], ความยาว 1448
13.740069 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 32203, win 526, ตัวเลือก [nop,nop,TS val 2940665430 ecr 3624190783], ความยาว 0
13.740153 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 32203:33651, ack 627, win 506, options [nop,nop,TS val 3624190882 ecr 2940665430], ความยาว 1448
13.839252 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 33651, win 537, ตัวเลือก [nop,nop,TS val 2940665530 ecr 3624190882], ความยาว 0
13.839316 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 33651:35099, ack 627, win 506, options [nop,nop,TS val 3624190981 ecr 2940665530], ความยาว 1448
13.938391 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 35099, ชนะ 549, ตัวเลือก [nop,nop,TS val 2940665629 ecr 3624190981], ความยาว 0
13.938444 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 35099:36547, ack 627, win 506, options [nop,nop,TS val 3624191080 ecr 2940665629], ความยาว 1448
14.037553 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 36547, win 560, ตัวเลือก [nop,nop,TS val 2940665728 ecr 3624191080], ความยาว 0
14.037618 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 36547:37995, ack 627, win 506, options [nop,nop,TS val 3624191179 ecr 2940665728], ความยาว 1448
14.137132 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 37995, win 571, ตัวเลือก [nop,nop,TS val 2940665827 ecr 3624191179], ความยาว 0
14.137200 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 37995:39443, ack 627, win 506, options [nop,nop,TS val 3624191279 ecr 2940665827], ความยาว 1448
14.236282 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 39443, win 583, ตัวเลือก [nop,nop,TS val 2940665927 ecr 3624191279], ความยาว 0
14.236354 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 39443:40891, ack 627, win 506, options [nop,nop,TS val 3624191378 ecr 2940665927], ความยาว 1448
14.335398 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 40891, win 594, ตัวเลือก [nop,nop,TS val 2940666026 ecr 3624191378], ความยาว 0
14.335459 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 40891:42339, ack 627, win 506, options [nop,nop,TS val 3624191477 ecr 2940666026], ความยาว 1448
14.434551 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 42339, win 605, ตัวเลือก [nop,nop,TS val 2940666125 ecr 3624191477], ความยาว 0
14.434616 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 42339:43787, ack 627, win 506, options [nop,nop,TS val 3624191576 ecr 2940666125], ความยาว 1448
14.533722 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 43787, win 617, ตัวเลือก [nop,nop,TS val 2940666224 ecr 3624191576], ความยาว 0
14.533789 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 43787:45235, ack 627, win 506, options [nop,nop,TS val 3624191676 ecr 2940666224], ความยาว 1448
14.632926 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 45235, win 628, ตัวเลือก [nop,nop,TS val 2940666323 ecr 3624191676], ความยาว 0
14.632993 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 45235:46683, ack 627, win 506, options [nop,nop,TS val 3624191775 ecr 2940666323], ความยาว 1448
14.732801 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 46683, win 639, ตัวเลือก [nop,nop,TS val 2940666422 ecr 3624191775], ความยาว 0
14.732857 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 46683:48131, ack 627, win 506, options [nop,nop,TS val 3624191875 ecr 2940666422], ความยาว 1448
14.831963 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 48131, win 650, ตัวเลือก [nop,nop,TS val 2940666522 ecr 3624191875], ความยาว 0
14.832026 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 48131:49579, ack 627, win 506, options [nop,nop,TS val 3624191974 ecr 2940666522], ความยาว 1448
14.931211 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 49579, win 662, ตัวเลือก [nop,nop,TS val 2940666621 ecr 3624191974], ความยาว 0
14.931297 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 49579:51027, ack 627, win 506, options [nop,nop,TS val 3624192073 ecr 2940666621], ความยาว 1448
15.030409 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 51027, win 673, ตัวเลือก [nop,nop,TS val 2940666721 ecr 3624192073], ความยาว 0
15.030478 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 51027:52475, ack 627, win 506, options [nop,nop,TS val 3624192172 ecr 2940666721], ความยาว 1448
15.129575 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 52475, win 684, ตัวเลือก [nop,nop,TS val 2940666820 ecr 3624192172], ความยาว 0
15.129632 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 52475:53923, ack 627, win 506, options [nop,nop,TS val 3624192271 ecr 2940666820], ความยาว 1448
15.228699 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 53923, win 696, ตัวเลือก [nop,nop,TS val 2940666919 ecr 3624192271], ความยาว 0
15.228766 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 53923:55371, ack 627, win 506, options [nop,nop,TS val 3624192371 ecr 2940666919], ความยาว 1448
15.327877 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 55371, win 707, ตัวเลือก [nop,nop,TS val 2940667018 ecr 3624192371], ความยาว 0
15.327942 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 55371:56819, ack 627, win 506, options [nop,nop,TS val 3624192470 ecr 2940667018], ความยาว 1448
15.427060 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 56819, win 718, ตัวเลือก [nop,nop,TS val 2940667117 ecr 3624192470], ความยาว 0
15.427128 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 56819:58267, ack 627, win 506, options [nop,nop,TS val 3624192569 ecr 2940667117], ความยาว 1448
15.526297 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 58267, win 730, ตัวเลือก [nop,nop,TS val 2940667217 ecr 3624192569], ความยาว 0
15.526368 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 58267:59715, ack 627, win 506, options [nop,nop,TS val 3624192668 ecr 2940667217], ความยาว 1448
15.625481 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 59715, win 741, ตัวเลือก [nop,nop,TS val 2940667316 ecr 3624192668], ความยาว 0
15.625552 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 59715:61163, ack 627, win 506, options [nop,nop,TS val 3624192767 ecr 2940667316], ความยาว 1448
15.724607 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 61163, win 752, ตัวเลือก [nop,nop,TS val 2940667415 ecr 3624192767], ความยาว 0
15.724650 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 61163:62611, ack 627, win 506, options [nop,nop,TS val 3624192866 ecr 2940667415], ความยาว 1448
15.823665 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 62611, win 764, ตัวเลือก [nop,nop,TS val 2940667514 ecr 3624192866], ความยาว 0
15.823717 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 62611:64059, ack 627, win 506, options [nop,nop,TS val 3624192966 ecr 2940667514], ความยาว 1448
15.922871 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 64059, win 775, ตัวเลือก [nop,nop,TS val 2940667613 ecr 3624192966], ความยาว 0
15.922946 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 64059:65507, ack 627, win 506, options [nop,nop,TS val 3624193065 ecr 2940667613], ความยาว 1448
16.022042 IP theirsite.37999 > mysite.https: ค่าสถานะ [.E], ack 65507, win 786, ตัวเลือก [nop,nop,TS val 2940667712 ecr 3624193065], ความยาว 0
16.022113 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 65507:66955, ack 627, win 506, options [nop,nop,TS val 3624193164 ecr 2940667712], ความยาว 1448
16.121191 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 66955, win 798, ตัวเลือก [nop,nop,TS val 2940667811 ecr 3624193164], ความยาว 0
16.121223 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 66955:68403, ack 627, win 506, options [nop,nop,TS val 3624193263 ecr 2940667811], ความยาว 1448
16.220324 IP ของพวกเขาsite.37999 > mysite.https: ค่าสถานะ [.E], ack 68403, win 809, ตัวเลือก [nop,nop,TS val 2940667911 ecr 3624193263], ความยาว 0
16.220371 IP mysite.https > theirsite.37999: ค่าสถานะ [.EW], seq 68403:69851, ack 627, win 506, options [nop,nop,TS val 3624193362 ecr 2940667911], ความยาว 1448
jp flag
คำขอบันทึกด้วย `tcpdump` ตรวจสอบการประทับเวลาของแพ็กเก็ตแต่ละรายการ
cn flag
ตกลง ฉันเชื่อว่าฉันมีข้อมูล tcpdump สำหรับคำขอตัวอย่างโดย twitter สำหรับเพจและ 'แชร์รูปภาพ' แต่ฉันไม่รู้จะตีความอย่างไร
Score:1
ธง jp

ธง [E] และ [ว] ใน tcpdump ผลลัพธ์คือ การแจ้งเตือนความแออัดอย่างชัดเจน.

เมื่อคุณเห็น theirsite.36652 > mysite.https: ค่าสถานะ [.E] หมายความว่าผู้รับตรวจพบความแออัดของลิงก์และขอให้ผู้ส่ง (ไซต์ของคุณ) ทำงานช้าลง และผู้ส่งตอบกลับด้วย ค่าสถานะ [.EW] แสดงว่ารับทราบคำขอและลดหน้าต่าง TCP

คุณสามารถปิดการใช้งาน ECN ได้ดังนี้: sysctl -w net.ipv4.tcp_ecn=0

cn flag
ดังนั้น... Twitter บอกว่ามีความแออัดบนเส้นทางจาก mysite â พวกเขาขอให้ mysite ช้าลง ดังนั้น Twitter จึง *ขอ* ให้ทำงานช้าลง หากนั่นคือปัญหา ฉันคงไม่สามารถแก้ไขได้ (ยกเว้นการย้ายโฮสต์ ซึ่งไม่ใช่สิ่งที่ฉันอยากทำ)
cn flag
ขอบคุณ การปิดใช้งาน ECN แก้ไขปัญหาได้!

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา