Forum Discussion
nitass
Jul 12, 2012Employee
1 - I can not tell the difference between connection and request.for example, in http, one tcp connection can carry multiple http request.
on client, run ab with 2 requests 2 tcp connections (1 request 1 tcp connection)
[root@centos251 ~] ab -n 2 http://172.28.19.79/
on bigip, run tcpdump and you will see there are 2 three-ways handshake (1 & 2 and 3 & 4)
[root@ve10:Active] config tcpdump -nni 0.0 host 172.28.19.79 and port 80 and 'tcp[13] & 2!=0'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on 0.0, link-type EN10MB (Ethernet), capture size 108 bytes
(1) 18:20:11.342713 IP 172.28.19.251.37137 > 172.28.19.79.80: S 3760482909:3760482909(0) win 5840
(2) 18:20:11.342762 IP 172.28.19.79.80 > 172.28.19.251.37137: S 107883453:107883453(0) ack 3760482910 win 4380
(3) 18:20:11.347914 IP 172.28.19.251.37138 > 172.28.19.79.80: S 1009116291:1009116291(0) win 5840
(4) 18:20:11.347940 IP 172.28.19.79.80 > 172.28.19.251.37138: S 1706974275:1706974275(0) ack 1009116292 win 4380
on client, run ab with 2 requests but 1 tcp connection
[root@centos251 ~] ab -n 2 -k http://172.28.19.79/
on bigip, run tcpdump and you will see there is only 1 three-ways handshake
[root@ve10:Active] config tcpdump -nni 0.0 host 172.28.19.79 and port 80 and 'tcp[13] & 2!=0'
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on 0.0, link-type EN10MB (Ethernet), capture size 108 bytes
18:21:53.837651 IP 172.28.19.251.37139 > 172.28.19.79.80: S 1857021813:1857021813(0) win 5840
18:21:53.837704 IP 172.28.19.79.80 > 172.28.19.251.37139: S 653173557:653173557(0) ack 1857021814 win 4380