知道为什么一次提取会快速提取文件(本例中为大图)而另一次提取会缓慢提取同一文件吗?在家里没有看到这个问题。通过映射到 192.xx.xx.xx 的 IP 地址没有看到这个问题。只有当 IP 是公共 IP 但仍通过公司内部网络时才会看到这个问题。任何想法都会有所帮助。
Resolving undisclosed_site... --17:59:05-- http://undisclosed_site.com/LinkOne/195000.jpg
=> `195000.jpg'
Resolving undisclosed_site.com... public_ip
Connecting to undisclosed_site[public_ip]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,154,765 [image/jpeg]
0K .......... .......... .......... .......... .......... 2% 96.90 KB/s
50K .......... .......... .......... .......... .......... 4% 246.31 KB/s
100K .......... .......... .......... .......... .......... 7% 641.03 KB/s
150K .......... .......... .......... .......... .......... 9% 641.03 KB/s
200K .......... .......... .......... .......... .......... 11% 318.47 KB/s
250K .......... .......... .......... .......... .......... 14% 641.03 KB/s
300K .......... .......... .......... .......... .......... 16% 641.03 KB/s
350K .......... .......... .......... .......... .......... 19% 458.72 KB/s
400K .......... .......... .......... .......... .......... 21% 641.03 KB/s
450K .......... .......... .......... .......... .......... 23% 1.53 MB/s
500K .......... .......... .......... .......... .......... 26% 641.03 KB/s
550K .......... .......... .......... .......... .......... 28% 806.45 KB/s
600K .......... .......... .......... .......... .......... 30% 400.00 KB/s
650K .......... .......... .......... .......... .......... 33% 1.04 MB/s
700K .......... .......... .......... .......... .......... 35% 793.65 KB/s
750K .......... .......... .......... .......... .......... 38% 458.72 KB/s
800K .......... .......... .......... .......... .......... 40% 641.03 KB/s
850K .......... .......... .......... .......... .......... 42% 641.03 KB/s
900K .......... .......... .......... .......... .......... 45% 3.05 MB/s
950K .......... .......... .......... .......... .......... 47% 531.91 KB/s
1000K .......... .......... .......... .......... .......... 49% 357.14 KB/s
1050K .......... .......... .......... .......... .......... 52% 641.03 KB/s
1100K .......... .......... .......... .......... .......... 54% 793.65 KB/s
1150K .......... .......... .......... .......... .......... 57% 806.45 KB/s
1200K .......... .......... .......... .......... .......... 59% 641.03 KB/s
1250K .......... .......... .......... .......... .......... 61% 632.91 KB/s
1300K .......... .......... .......... .......... .......... 64% 641.03 KB/s
1350K .......... .......... .......... .......... .......... 66% 1.58 MB/s
1400K .......... .......... .......... .......... .......... 68% 531.91 KB/s
1450K .......... .......... .......... .......... .......... 71% 641.03 KB/s
1500K .......... .......... .......... .......... .......... 73% 357.14 KB/s
1550K .......... .......... .......... .......... .......... 76% 531.91 KB/s
1600K .......... .......... .......... .......... .......... 78% 3.05 MB/s
1650K .......... .......... .......... .......... .......... 80% 531.91 KB/s
1700K .......... .......... .......... .......... .......... 83% 641.03 KB/s
1750K .......... .......... .......... .......... .......... 85% 537.63 KB/s
1800K .......... .......... .......... .......... .......... 87% 632.91 KB/s
1850K .......... .......... .......... .......... .......... 90% 357.14 KB/s
1900K .......... .......... .......... .......... .......... 92% 793.65 KB/s
1950K .......... .......... .......... .......... .......... 95% 641.03 KB/s
2000K .......... .......... .......... .......... .......... 97% 641.03 KB/s
2050K .......... .......... .......... .......... .......... 99% 3.05 MB/s
2100K .... 100% 4.16 MB/s
17:59:09 (538.59 KB/s) - `195000.jpg' saved [2154765/2154765]
--17:59:20-- http://undisclosed_site.com/LinkOne/195000.jpg
=> `195000.jpg.1'
Resolving undisclosed_site.com... public_ip
Connecting to undisclosed_site[public_ip]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,154,765 [image/jpeg]
0K .......... .......... .......... .......... .......... 2% 5.74 KB/s
50K .......... .......... .......... .......... .......... 4% 1.62 KB/s
100K .......... .......... .......... .......... .......... 7% 8.14 KB/s
150K .......... .......... .......... .......... .......... 9% 14.10 KB/s
200K .......... .......... .......... .......... .......... 11% 5.10 KB/s
250K .......... .......... .......... .......... .......... 14% 11.07 KB/s
300K .......... .......... .......... .......... .......... 16% 2.68 KB/s
350K .......... .......... .......... .......... .......... 19% 15.38 KB/s
400K .......... .......... .......... .......... .......... 21% 8.38 KB/s
450K .......... .......... .......... .......... .......... 23% 17.98 KB/s
500K .......... .......... .......... .......... .......... 26% 1007.93 B/s
550K .......... .......... .......... .......... .......... 28% 3.18 KB/s
600K .......... .......... .......... .......... .......... 30% 12.90 KB/s
650K .......... .......... .......... .......... .......... 33% 12.85 KB/s
700K .......... .......... .......... .......... .......... 35% 15.76 KB/s
750K .......... .......... .......... .......... .......... 38% 16.93 KB/s
800K .......... .......... .......... .......... .......... 40% 1.39 KB/s
850K .......... .......... .......... .......... .......... 42% 5.72 KB/s
900K .......... .......... .......... .......... .......... 45% 5.21 KB/s
950K .......... .......... .......... .......... .......... 47% 13.73 KB/s
1000K .......... .......... .......... .......... .......... 49% 11.60 KB/s
1050K .......... .......... .......... .......... .......... 52% 11.90 KB/s
1100K .......... .......... .......... .......... .......... 54% 69.54 KB/s
1150K .......... .......... .......... .......... .......... 57% 17.58 KB/s
1200K .......... .......... .......... .......... .......... 59% 5.98 KB/s
1250K .......... .......... .......... .......... .......... 61% 10.29 KB/s
1300K .......... .......... .......... .......... .......... 64% 1.19 KB/s
1350K .......... .......... .......... .......... .......... 66% 5.50 KB/s
1400K .......... .......... .......... .......... .......... 68% 13.68 KB/s
1450K .......... .......... .......... .......... .......... 71% 769.74 B/s
1500K .......... .......... .......... .......... .......... 73% 4.69 KB/s
1550K .......... .......... .......... .......... .......... 76% 1.64 KB/s
1600K .......... .......... .......... .......... .......... 78% 7.26 KB/s
1650K .......... .......... .......... .......... .......... 80% 9.79 KB/s
1700K .......... .......... .......... .......... ...
答案1
任何想法都会有帮助。
您的公司内部网络与其他人共享,他们的活动可能会偶尔造成拥塞。如果有网络管理员,她可能能够找出问题的原因。
答案2
如果我正确理解了您的问题,您是说当您使用服务器的内部地址(例如 192.168.8.69)时,wget 运行得很快。但是当您使用服务器的公共可路由 IP 地址(例如 75.34.275.123)时,wget 的运行速度会慢得多。如果这是您问的问题,则取决于您如何设置路由。这里我们配置了网关路由器,如果它看到有请求发往我们的某个服务器地址,它会立即将其转回来并发送到内部地址。如果您的路由器没有这样设置,那么对公共可路由地址的请求就会发送到互联网并返回到服务器,从而导致 wget 时间的差异。或者,如果您使用服务器的网址,则取决于 DNS。如果您没有在网络内部运行 DNS,那么请求必须发送到 DNS 进行解析然后返回。