Redian新闻
>
How to compute round-trip time to webser
avatar
How to compute round-trip time to webser# Java - 爪哇娇娃
g*n
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!!!
avatar
g*g
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!!!

avatar
g*n
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.

avatar
m*t
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。