Git Product home page Git Product logo

httpdns_accuracy's Introduction

HTTPDNS调度精确性检测

实现机制

调度精确性检测包含如下模块:

config.py

待对比测试的域名及其权威DNS信息 待对比测试的终端IP样本及其对应的运营商,地域信息

evaluator.py

检测脚本,针对所有的待检测域名,分别采用EDNS权威,HTTPDNS,DNSPOD D+三种方式,携带终端IP样本进行解析,对比HTTPDNS、DNSPOD D+与权威EDNS解析的差异,并给出有差异的解析数据及最终的差异统计信息。

运行方式

1. 安装依赖

sudo pip2.7 install -r requirements.txt

2. 启动测试脚本,注意运行一次大约需要20~30分钟

python2.7 evaluator.py

3. 查看输出

  1. Terminal会输出大多数概述性的信息
  2. httpdns_accuracy_detail.csv: 详细的数据表报告
  3. httpdns_accuracy.run_log:运行日志,包含错误输出及最终结果

FAQ

1. ## RETRY 1/5, [The DNS operation timed out.]

如果出现本提示,是指某次DNS查询超时了,正在重试,由于评估过程中会发送大量UDP包,所以较为常见

2. 机器负载较高

请调节THREAD_POOL = ThreadPoolExecutor(max_workers=20) 中的并发数量

httpdns_accuracy's People

Contributors

boyxuper avatar

Watchers

James Cloos avatar 光光 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.