HttpInfo

AndroidNetwork diagnostic tool


Making portal

Table of Contents

  • Rely on
  • Call way
  • The network information
    • The Index information
    • Net information
    • Ping information
    • The Http message
    • The Host information
    • MtuScan information
    • PortScan information
    • TraceRoute information
    • NsLookup information
  • Matters needing attention

Rely on

implementation 'fairy.easy:httpmodel:{latest-version}'

Copy the code

Call way

  HttpModelHelper.getInstance()
                .init(getApplicationContext())
                .setChina(false)
                .setModelLoader(new HttpNormalUrlLoader())
                .setFactory()
                .addAll()
                .build()
                .startAsync(httpListener);

Copy the code

The network information

The Index information

Domain name and request time

Chinese key

    "Index": {"Speed address":"http://www.baidu.com"."Request time":"The 2019-08-13 11:04:26"
    }

Copy the code

Key in English

    "Index": {"address":"http://www.baidu.com"."time":"The 2019-08-13 11:17:46"
    }

Copy the code

Net information

Mobile network information

Chinese key

    "Net": {"Network State":true."Network Type":"WIFI"."Network system":"4G_LTE"."WIFI state":true."WIFI Signal Strength": -55."WIFI Signal Level":4."WIFI Signal Evaluation":"Signal excellence"."Local IP":"192.168.1.199"."Export IP":"219.139.215.219"."Destination of export IP address":Wuhan Telecom, Hubei Province."Local DNS":"192.168.1.201"."Export DNS":"112.90.73.100"."Egress DNS home":Shenzhen Unicom, Guangdong Province."Roaming state":false."Cell phone signal level value":75."Cell phone signal strength": -65."Cell phone Signal Level":4."Mobile phone Signal assessment":"Signal excellence"."Total elapsed time":"1119ms"
    }

Copy the code

Key in English

    "Net": {"isNetworkAvailable":true."netWorkType":"WIFI"."mobileType":"4G_LTE"."isWifiOpen":true."wifiRssi": -56."wifiLevel":3."wifiLevelValue":"Good signal"."ip":"192.168.1.199"."outputIp":"219.139.215.219"."outputIpCountry":Wuhan Telecom, Hubei Province."dns":"192.168.1.201"."outputDns":"220.249.245.92"."outputDnsCountry":Shenzhen Unicom, Guangdong Province."isRoaming":false."mobAsu":74."mobDbm": -66."mobLevel":4."mobLevelValue":"Signal excellence"."totalTime":"1062ms"
    }

Copy the code

Ping information

Related ping information

Chinese key

    "Ping": {"Url":"http://www.baidu.com"."Execution Result":200."IP address":"180.97.33.108"."Survival time":55."Send packet":10."Receive packet":10."Packet loss rate":"0.0%"."Minimum RTT":"14.808 ms"."The average RTT":"19.819 ms"."The biggest RTT." ":"22.741 ms"."Arithmetic mean deviation RTT":"2.683 ms"."Total elapsed time":"13121ms"
    }

Copy the code

Key in English

    "Ping": {"address":"http://www.baidu.com"."status":200."ip":"180.97.33.107"."ttl":55."transmitted":10."receive":10."lossRate":"0.0%"."rttMin":"14.848 ms"."rttAvg":"17.8 ms"."rttMax":"23.528 ms"."rttMDev":"2.421 ms"."allTime":"9017ms"
    }

Copy the code

The Http message

HTTP Request information

Chinese key

   "Http": {"Execution Result":200."Url":"http://www.baidu.com"."Unavailable":"667ms"."Total elapsed time":"1058ms"."Speed":"112kbps"."Request status":200."Download size":"2.9 KB"."Server":"apache"."Verify server":"Bfe / 1.0.8.18"."Jump":true."Return to the header":[
            {
                "Server":"apache"."Connection":"Keep-Alive"."P3p":"CP=" OTI DSP COR IVA OUR IND COM ""."X-Android-Received-Millis":"1565665481199"."Date":"Tue, 13 Aug 2019 03:04:41 GMT"."X-Android-Selected-Protocol":"HTTP / 1.1"."null":"HTTP / 1.1 302 Found"."Cache-Control":"no-cache"."Tracecode":"02812831040685689354081311, 02812609600843499786081311"."X-Android-Response-Source":"NETWORK 302"}}]Copy the code

Key in English

    "Http": {"status":200."address":"http://www.baidu.com"."time":"586ms"."totalTime":"1374ms"."speed":"128kbps"."responseCode":200."size":"2.9 KB"."headerServer":"apache"."checkHeaderServer":"Bfe / 1.0.8.18"."isJump":true."header":[
            {
                "Server":"apache"."Connection":"Keep-Alive"."P3p":"CP=" OTI DSP COR IVA OUR IND COM ""."X-Android-Received-Millis":"1565666277021"."Date":"Tue, 13 Aug 2019 03:17:57 GMT"."X-Android-Selected-Protocol":"HTTP / 1.1"."null":"HTTP / 1.1 302 Found"."Cache-Control":"no-cache"."Tracecode":"10770919360300337674081311, 10770855150396544522081311"."X-Android-Response-Source":"NETWORK 302"}}]Copy the code

The Host information

Local Host Information

Chinese key

    "Host": {"Execution Result":200."Details": ["127.0.0.1 localhost." "."::1 ip6-localhost"]."Total elapsed time":"3ms"
    }

Copy the code

Key in English

    "Host": {"status":200."param": ["127.0.0.1 localhost." "."::1 ip6-localhost"]."totalTime":"3ms"
    }

Copy the code

MtuScan information

Calculation of transmission units

Chinese key

    "MtuScan": {"Execution Result":200."Transmission unit":"1492bytes"."Total elapsed time":"4461ms"
    }

Copy the code

Key in English

    "MtuScan": {"status":200."mtu":"1492bytes"."totalTime":"5437ms"
    }

Copy the code

PortScan information

Port scanning

Chinese key

    "PortScan": {"Url":"http://www.baidu.com"."Execution Result":200."Total elapsed time":"30179ms"."Specific Information":[
            {
                "Scan time":"19ms"."Open or not open":true."Port number":80
            },
            {
                "Scan time":"26ms"."Open or not open":true."Port number":443}}]Copy the code

Key in English

    "PortScan": {"address":"http://www.baidu.com"."status":200."totalTime":"30205ms"."portNet":[
            {
                "delay":"22ms"."isConnected":true."port":80
            },
            {
                "delay":"52ms"."isConnected":true."port":443}}]Copy the code

TraceRoute information

TraceRoute service

Chinese key

    "TraceRoute": {"Execution Result":200."Total elapsed time":"66389ms"."Scan results":[
            {
                "Survival time":1."IP address":"192.168.1.1"."Scan time":"1.22 ms"."IP address":"Private Address"}}]Copy the code

Key in English

    "TraceRoute": {"status":200."totalTime":"81892ms"."traceRoute":[
            {
                "ttl":1."ip":"192.168.1.1"."time":"3.17 ms"."address":"Private Address"}}]Copy the code

NsLookup information

Service NsLookup

Chinese key

    "NsLookup": {"Total elapsed time":"14024ms"."Execution Result":200."Local DNS server":[
            {
                "The specific IP":"192.168.1.201"."Place of attribution":"Private Address"
            },
            {
                "The specific IP":"192.168.1.1"."Place of attribution":"Private Address"}]."Parsing strategy":[
            {
                "Policy content":"Default Policy"."Domain name":"www.baidu.com"."The results":200."Unavailable":"5489ms"."IP address":[
                    {
                        "The specific IP":"180.97.33.108"."Place of attribution":China Telecom Jiangsu Province, China
                    },
                    {
                        "The specific IP":"180.97.33.107"."Place of attribution":"Unknown"}]}, {"Policy content":"Designated DNS192.168.1.201"."Domain name":"www.baidu.com"."The results":200."Unavailable":"2760ms"."IP address":[
                    {
                        "The specific IP":"180.97.33.107"."Place of attribution":China Telecom Jiangsu Province, China
                    },
                    {
                        "The specific IP":"180.97.33.108"."Place of attribution":China Telecom Jiangsu Province, China}]}, {"Policy content":"Designated DNS192.168.1.1"."Domain name":"www.baidu.com"."The results":200."Unavailable":"5530ms"."IP address":[
                    {
                        "The specific IP":"180.97.33.108"."Place of attribution":China Telecom Jiangsu Province, China
                    },
                    {
                        "The specific IP":"180.97.33.107"."Place of attribution":"Unknown"}]}]}Copy the code

Key in English

    "NsLookup": {"totalTime":"14007ms"."status":200."localDns":[
            {
                "ip":"192.168.1.201"."param":"Private Address"
            },
            {
                "ip":"192.168.1.1"."param":"Private Address"}]."strategy":[
            {
                "strategyParam":"Default Policy"."strategyAddress":"www.baidu.com"."strategyStatus":200."strategyTime":"2605ms"."strategyIp":[
                    {
                        "ip":"180.97.33.107"."param":China Telecom Jiangsu Province, China
                    },
                    {
                        "ip":"180.97.33.108"."param":China Telecom Jiangsu Province, China}]}, {"strategyParam":"Designated DNS192.168.1.201"."strategyAddress":"www.baidu.com"."strategyStatus":200."strategyTime":"5171ms"."strategyIp":[
                    {
                        "ip":"180.97.33.108"."param":China Telecom Jiangsu Province, China
                    },
                    {
                        "ip":"180.97.33.107"."param":"Unknown"}]}, {"strategyParam":"Designated DNS192.168.1.1"."strategyAddress":"www.baidu.com"."strategyStatus":200."strategyTime":"6004ms"."strategyIp":[
                    {
                        "ip":"180.97.33.107"."param":China Telecom Jiangsu Province, China
                    },
                    {
                        "ip":"180.97.33.108"."param":"Unknown"}]}]}Copy the code

Matters needing attention

If you want to use a third-party network library or your own wrapper library, you can inherit ModelLoader to achieve this. The OkHttp library OkHttpUrlLoader has been written in demo. You can use it directly by setModelLoader(new OkHttpUrlLoader()).

Download experience. There is qr code download under SRC file, and app experience under APP /release.

Complete JSON data format is available in the SRC file for easy viewing.