Check if you are behind a transparent proxy
来源:互联网 发布:知乎匿名的回答在哪里 编辑:程序博客网 时间:2024/05/22 07:44
文章出处:http://www.sajalkayan.com/check-if-you-are-behind-a-transparent-proxy.html
Many Asian ISPs do not provide clean internet. They route all HTTP sessions thru atransparent proxy.Here is a simple way to check if you are behind one.
sajal@sajal-laptop:~$ ping -c 4 www.cdnplanet.comPING www.cdnplanet.com (107.20.181.99) 56(84) bytes of data.64 bytes from ec2-107-20-181-99.compute-1.amazonaws.com (107.20.181.99): icmp_req=1 ttl=42 time=314 ms64 bytes from ec2-107-20-181-99.compute-1.amazonaws.com (107.20.181.99): icmp_req=2 ttl=42 time=313 ms64 bytes from ec2-107-20-181-99.compute-1.amazonaws.com (107.20.181.99): icmp_req=3 ttl=42 time=312 ms64 bytes from ec2-107-20-181-99.compute-1.amazonaws.com (107.20.181.99): icmp_req=4 ttl=42 time=312 ms--- www.cdnplanet.com ping statistics ---4 packets transmitted, 4 received, 0% packet loss, time 3004msrtt min/avg/max/mdev = 312.195/313.229/314.137/0.889 ms
sajal@sajal-laptop:~$ ab http://www.cdnplanet.com/This is ApacheBench, Version 2.3 <$Revision: 655654 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking www.cdnplanet.com (be patient).....doneServer Software: ApacheServer Hostname: www.cdnplanet.comServer Port: 80Document Path: /Document Length: 13084 bytesConcurrency Level: 1Time taken for tests: 0.944 secondsComplete requests: 1Failed requests: 0Write errors: 0Total transferred: 13296 bytesHTML transferred: 13084 bytesRequests per second: 1.06 [#/sec] (mean)Time per request: 943.539 [ms] (mean)Time per request: 943.539 [ms] (mean, across all concurrent requests)Transfer rate: 13.76 [Kbytes/sec] receivedConnection Times (ms) min mean[+/-sd] median maxConnect: 21 21 0.0 21 21Processing: 922 922 0.0 922 922Waiting: 611 611 0.0 611 611Total: 944 944 0.0 944 944sajal@sajal-laptop:~$
My ping time to CDN Planet is 312ms, but the connection was established in just 21ms !!!!11!!1Reasons for doing so involve : Censorship, big brother snooping, caching,hijacking users sessions , and probably more ...
上面内容为转载,以下通过实际的抓包来分析一下ab输出结果中最后一部分的含义:
测试中ab的实际输出为:
Connection Times (ms) min mean[+/-sd] median maxConnect: 279 279 0.0 279 279Processing: 730 730 0.0 730 730Waiting: 259 259 0.0 259 259Total: 1009 1009 0.0 1009 1009
部分抓包截图如下:
。。。
分析可知,
Connect 279 ------ 三次握手的建立时间
Processing 730 ------ 从发送GET请求到接收完成的时间
Waiting 259 ------- 从发送GET请求到接收到第一个应答数据段的间隔
Total 1009 ------ Connect时间加上Processing时间
- Check if you are behind a transparent proxy
- Home页提示“If you are behind a proxy, set the proxy_url parameter correctly”
- Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings
- android stuido 报 If you are behind an HTTP proxy, please configure the proxy set
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy...
- If you are behind an HTTP proxy, please configure the proxy set
- Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please....
- 解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please
- AS Error:Connection timed out: connect. If you are behind an HTTP proxy
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please....
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please....
- 编译报错Error:Connection timed out: connect. If you are behind an HTTP proxy, please
- AndroidStudio解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please configu
- 解决:Error:Connection timed out: connect. If you are behind an HTTP proxy, please
- Gradle升级,Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure
- Error:Connection timed out: connect. If you are behind an HTTP proxy ...
- Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy set
- Shortcut的创建
- S5PV210开发系列六_Fatfs的移植
- AppStore:四步教你申请iOS公司开发者账号
- Django模型修改及数据迁移
- jquery 自定义事件
- Check if you are behind a transparent proxy
- WCF回调中的死锁
- A20平台增加camera
- [LeetCode][Java] Decode Ways
- 【Android】使用 SwipeRefreshLayout 实现下拉刷新
- 前言
- 杭电 HDU 1247 ACMHat’s Words(trie树 或着STL)
- 使用testng listener实现测试用例失败重跑功能
- 什么是事务的传播特性?