iperf 3.21:具有多个 IP 别名的 UDP 服务器可能会从意想不到的地址发送回复
$ sudo tcpdump -ni veth0 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on veth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes 00:48:23.057082 IP 172.16.0.1.45366 > 172.16.0.102.5201: Flags [S], seq 4141894149, win 64240, options [mss 1460,sackOK,TS val 3389603211 ecr 0,nop,wscale 10], length 0 00:48:23.057136 IP 172.16.0.102.5201 > 172.16.0.1.45366: Flags [S.], seq 1522049059, ack 4141894150, win 65160, options [mss 1460,sackOK,TS val 947939836 ecr 3389603211,nop,wscale 10], length 0 00:48:23.057161 IP 172.16.0.1.45366 > 172.16.0.102.5201: Flags [.], ack 1, win 63, options [nop,nop,TS val 3389603211 ecr 947939836], length 0 00:48:23.057215 IP 172.16.0.1.45366 > 172.16.0.102.5201: Flags [P.], seq 1:38, ack 1, win 63, options [nop,nop,TS val 3389603211 ecr 947939836], length 37 00:48:23.057229 IP 172.16.0.102.5201 > 172.16.0.1.45366: Flags [.], ack 38, win 64, options [nop,nop,TS val 947939836 ecr 3389603211], length 0 00:48:23.057367 IP 172.16.0.102.5201 > 172.16.0.1.45366: Flags [P.], seq 1:2, ack 38, win 64, options [nop,nop,TS val 947939836 ecr 3389603211], length 1 00:48:23.057391 IP 172.16.0.1.45366 > 172.16.0.102.5201: Flags [.], ack 2, win 63, options [nop,nop,TS val 3389603211 ecr 947939836], length 0 00:48:23.057503 IP 172.16.0.1.45366 > 172.16.0.102.5201: Flags [P.], seq 38:42, ack 2, win 63, options [nop,nop,TS val 3389603211 ecr 947939836], length 4 00:48:23.057537 IP 172.16.0.1.45366 > 172.16.0.102.5201: Flags [P.], seq 42:256, ack 2, win 63, options [nop,nop,TS val 3389603211 ecr 947939836], length 214 00:48:23.057623 IP 172.16.0.102.5201 > 172.16.0.1.45366: Flags [.], ack 256, win 64, options [nop,nop,TS val 947939836 ecr
内容来源: esnet/iperf