g****n 发帖数: 18 | 1 I am simulating a webserver using Java. I am using Internet Explorer as a
client connecting, say http://localhost:8080 and then a webpage pop up.
Now it is required to compute round-trip time from the client to the server
and back to the client. For example, the client can send a 100-byte package to
the server and the server returns the package to the client, then it is
considered the RTT.
Now my question is, how do I do it since I am using a web browser as the
client?
Any suggestions?
Thanks!!! | g*****g 发帖数: 34805 | 2 Well, simulate a web browser is even easier than the
server. Just send a http request, and wait for the
response. You certainly can time it.
【在 g****n 的大作中提到】 : I am simulating a webserver using Java. I am using Internet Explorer as a : client connecting, say http://localhost:8080 and then a webpage pop up. : Now it is required to compute round-trip time from the client to the server : and back to the client. For example, the client can send a 100-byte package to : the server and the server returns the package to the client, then it is : considered the RTT. : Now my question is, how do I do it since I am using a web browser as the : client? : Any suggestions? : Thanks!!!
| g****n 发帖数: 18 | 3 Thanks, but can you be a little more specific about simulating a web browser?
Do you know where I can find similar code and pseudo-code? I am new to Java
and do not know it very well.
Thanks a lot!
server
package to
【在 g*****g 的大作中提到】 : Well, simulate a web browser is even easier than the : server. Just send a http request, and wait for the : response. You certainly can time it.
| m******t 发帖数: 2416 | 4
JMeter could be helpful for you.
http://jakarta.apache.org
【在 g****n 的大作中提到】 : Thanks, but can you be a little more specific about simulating a web browser? : Do you know where I can find similar code and pseudo-code? I am new to Java : and do not know it very well. : Thanks a lot! : : server : package to
|
|