开发者

measuring response time through packets?

开发者 https://www.devze.com 2022-12-20 15:02 出处:网络
good day! im developing an app in c++ and winpcap that will list all the URL accessed in the browser with its corresponding response time..

good day! im developing an app in c++ and winpcap that will list all the URL accessed in the browser with its corresponding response time.. currently, i can now track or monitor all accessed url through capturing and analyzing packets.. is there any way of measuring the response开发者_C百科 time of a web page to load, from the request made to the server's response?.. any easy way?

thanks..


You will have to keep track of the individual TCP connections between the browser and the server - that's just keeping track of the source/destination IP and port numbes in the packets you capture.

Then you'll have to parse the HTTP in the captured packets and correlate HTTP requests with its response and take the time difference(which you'll get from the timestamps from pcap).

This is non-trivial in the cases the HTTP request/responses spans several packets, and certainly non-trivial if you also want to account for lost packets and retransmission.

0

精彩评论

暂无评论...
验证码 换一张
取 消