Maintain a queue of received packets, so that lost packets need not result in retransmission of the entire TCP window. Increase the TCP window to 8kB, in order that we can potentially transmit enough duplicate ACKs to trigger Fast Retransmission at the sender. Using a 10MB HTTP download in qemu-kvm with an artificial drop rate of 1 in 64 packets, this reduces the download time from around 26s to around 4s. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
287 |
|
287 |
|
288 |
|
288 |
|
289 |
|
289 |
|
290 |
|
|
|
|
290 |
|
|
291 |
|
291 |
|
292 |
|
292 |
|
293 |
|
293 |
|
|
|
||
313 |
|
313 |
|
314 |
|
314 |
|
315 |
|
315 |
|
|
316 |
|
|
|
317 |
|
|
|
318 |
|
|
|
319 |
|
|
|
320 |
|
|
|
321 |
|
|
|
322 |
|
|
|
323 |
|
|
|
324 |
|
|
|
325 |
|
|
|
326 |
|
|
|
327 |
|
|
|
328 |
|
|
|
329 |
|
|
|
330 |
|
|
|
331 |
|
|
|
332 |
|
|
|
333 |
|
|
|
334 |
|
|
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
|
338 |
|
|
|
339 |
|
|
|
340 |
|
|
|
341 |
|
|
|
342 |
|
|
|
343 |
|
|
|
344 |
|
|
316 |
|
345 |
|
317 |
|
346 |
|
318 |
|
347 |
|
|
|
||
80 |
|
80 |
|
81 |
|
81 |
|
82 |
|
82 |
|
83 |
|
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
84 |
|
86 |
|
85 |
|
87 |
|
86 |
|
88 |
|
|
|
||
97 |
|
99 |
|
98 |
|
100 |
|
99 |
|
101 |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
100 |
|
125 |
|
101 |
|
126 |
|
102 |
|
127 |
|
|
|
||
246 |
|
271 |
|
247 |
|
272 |
|
248 |
|
273 |
|
249 |
|
|
|
|
274 |
|
|
|
275 |
|
|
250 |
|
276 |
|
251 |
|
277 |
|
252 |
|
278 |
|
|
|
||
296 |
|
322 |
|
297 |
|
323 |
|
298 |
|
324 |
|
|
325 |
|
|
|
326 |
|
|
|
327 |
|
|
|
328 |
|
|
|
329 |
|
|
|
330 |
|
|
299 |
|
331 |
|
300 |
|
|
|
|
332 |
|
|
301 |
|
333 |
|
302 |
|
334 |
|
303 |
|
335 |
|
|
|
||
318 |
|
350 |
|
319 |
|
351 |
|
320 |
|
352 |
|
321 |
|
|
|
|
353 |
|
|
322 |
|
354 |
|
323 |
|
355 |
|
324 |
|
356 |
|
|
|
||
366 |
|
398 |
|
367 |
|
399 |
|
368 |
|
400 |
|
369 |
|
|
|
370 |
|
|
|
|
401 |
|
|
|
402 |
|
|
371 |
|
403 |
|
372 |
|
404 |
|
373 |
|
405 |
|
374 |
|
406 |
|
375 |
|
407 |
|
376 |
|
|
|
|
408 |
|
|
377 |
|
409 |
|
378 |
|
410 |
|
379 |
|
411 |
|
|
|
||
426 |
|
458 |
|
427 |
|
459 |
|
428 |
|
460 |
|
429 |
|
|
|
430 |
|
|
|
|
461 |
|
|
|
462 |
|
|
431 |
|
463 |
|
432 |
|
464 |
|
433 |
|
465 |
|
|
|
||
461 |
|
493 |
|
462 |
|
494 |
|
463 |
|
495 |
|
464 |
|
|
|
|
496 |
|
|
465 |
|
497 |
|
466 |
|
498 |
|
467 |
|
499 |
|
|
|
||
735 |
|
767 |
|
736 |
|
768 |
|
737 |
|
769 |
|
738 |
|
|
|
|
770 |
|
|
739 |
|
771 |
|
740 |
|
772 |
|
741 |
|
773 |
|
|
|
||
806 |
|
838 |
|
807 |
|
839 |
|
808 |
|
840 |
|
809 |
|
|
|
|
841 |
|
|
810 |
|
842 |
|
811 |
|
843 |
|
812 |
|
844 |
|
813 |
|
845 |
|
814 |
|
846 |
|
815 |
|
847 |
|
816 |
|
|
|
|
848 |
|
|
817 |
|
849 |
|
818 |
|
850 |
|
819 |
|
851 |
|
|
|
||
868 |
|
900 |
|
869 |
|
901 |
|
870 |
|
902 |
|
871 |
|
|
|
|
903 |
|
|
872 |
|
904 |
|
873 |
|
905 |
|
874 |
|
906 |
|
|
|
||
898 |
|
930 |
|
899 |
|
931 |
|
900 |
|
932 |
|
901 |
|
|
|
|
933 |
|
|
902 |
|
934 |
|
903 |
|
935 |
|
904 |
|
936 |
|
|
|
||
914 |
|
946 |
|
915 |
|
947 |
|
916 |
|
948 |
|
|
949 |
|
|
|
950 |
|
|
|
951 |
|
|
|
952 |
|
|
|
953 |
|
|
|
954 |
|
|
|
955 |
|
|
|
956 |
|
|
|
957 |
|
|
|
958 |
|
|
|
959 |
|
|
|
960 |
|
|
|
961 |
|
|
|
962 |
|
|
|
963 |
|
|
|
964 |
|
|
|
965 |
|
|
|
966 |
|
|
|
967 |
|
|
|
968 |
|
|
|
969 |
|
|
|
970 |
|
|
|
971 |
|
|
|
972 |
|
|
|
973 |
|
|
|
974 |
|
|
|
975 |
|
|
|
976 |
|
|
|
977 |
|
|
|
978 |
|
|
|
979 |
|
|
|
980 |
|
|
|
981 |
|
|
|
982 |
|
|
|
983 |
|
|
|
984 |
|
|
|
985 |
|
|
|
986 |
|
|
|
987 |
|
|
|
988 |
|
|
|
989 |
|
|
|
990 |
|
|
|
991 |
|
|
|
992 |
|
|
|
993 |
|
|
|
994 |
|
|
|
995 |
|
|
|
996 |
|
|
|
997 |
|
|
|
998 |
|
|
|
999 |
|
|
|
1000 |
|
|
|
1001 |
|
|
|
1002 |
|
|
|
1003 |
|
|
|
1004 |
|
|
|
1005 |
|
|
|
1006 |
|
|
|
1007 |
|
|
|
1008 |
|
|
|
1009 |
|
|
|
1010 |
|
|
|
1011 |
|
|
|
1012 |
|
|
|
1013 |
|
|
|
1014 |
|
|
|
1015 |
|
|
|
1016 |
|
|
|
1017 |
|
|
|
1018 |
|
|
|
1019 |
|
|
|
1020 |
|
|
|
1021 |
|
|
|
1022 |
|
|
|
1023 |
|
|
|
1024 |
|
|
|
1025 |
|
|
|
1026 |
|
|
|
1027 |
|
|
|
1028 |
|
|
|
1029 |
|
|
|
1030 |
|
|
|
1031 |
|
|
|
1032 |
|
|
|
1033 |
|
|
|
1034 |
|
|
|
1035 |
|
|
|
1036 |
|
|
|
1037 |
|
|
917 |
|
1038 |
|
918 |
|
1039 |
|
919 |
|
1040 |
|
|
|
||
935 |
|
1056 |
|
936 |
|
1057 |
|
937 |
|
1058 |
|
938 |
|
|
|
939 |
|
1059 |
|
940 |
|
1060 |
|
|
1061 |
|
|
941 |
|
1062 |
|
942 |
|
1063 |
|
943 |
|
1064 |
|
|
|
||
977 |
|
1098 |
|
978 |
|
1099 |
|
979 |
|
1100 |
|
980 |
|
|
|
981 |
|
|
|
982 |
|
1101 |
|
983 |
|
1102 |
|
|
1103 |
|
|
|
1104 |
|
|
984 |
|
1105 |
|
985 |
|
1106 |
|
986 |
|
1107 |
|
987 |
|
1108 |
|
988 |
|
1109 |
|
989 |
|
|
|
990 |
|
|
|
|
1110 |
|
|
991 |
|
1111 |
|
992 |
|
1112 |
|
993 |
|
1113 |
|
|
|
||
998 |
|
1118 |
|
999 |
|
1119 |
|
1000 |
|
1120 |
|
|
1121 |
|
|
|
1122 |
|
|
|
1123 |
|
|
|
1124 |
|
|
1001 |
|
1125 |
|
1002 |
|
1126 |
|
1003 |
|
1127 |
|
|
|
||
1024 |
|
1148 |
|
1025 |
|
1149 |
|
1026 |
|
1150 |
|
1027 |
|
|
|
1028 |
|
|
|
1029 |
|
|
|
|
1151 |
|
|
|
1152 |
|
|
1030 |
|
1153 |
|
1031 |
|
|
|
1032 |
|
|
|
1033 |
|
|
|
1034 |
|
|
|
1035 |
|
|
|
1036 |
|
|
|
1037 |
|
|
|
1038 |
|
|
|
1039 |
|
|
|
|
1154 |
|
|
|
1155 |
|
|
1040 |
|
1156 |
|
1041 |
|
1157 |
|
1042 |
|
1158 |
|
|
|
||
1101 |
|
1217 |
|
1102 |
|
1218 |
|
1103 |
|
1219 |
|
1104 |
|
|
|
|
1220 |
|
|
1105 |
|
1221 |
|
1106 |
|
1222 |
|
1107 |
|
1223 |
|
|
|
||
1121 |
|
1237 |
|
1122 |
|
1238 |
|
1123 |
|
1239 |
|
1124 |
|
|
|
|
1240 |
|
|
1125 |
|
1241 |
|
1126 |
|
1242 |
|
1127 |
|
1243 |
|