Comcast 网络问题模拟工具开源项目

我要开发同款
匿名用户2019年05月06日
176阅读

技术信息

开源地址
https://github.com/tylertreat/comcast
授权协议
Apache

作品详情

Comcast是一个用来模拟各种常用的网络问题的工具,例如延迟、带宽限制以及丢包等等问题。

Comcast使用可移植的方式封装了各种系统工具,例如ipfw和pfctl来注入网络通信失败问题。

安装$gogetgithub.com/tylertreat/comcast使用

在Liux中 Comcast支持很多选项,包括设备、延迟、目标、默认带宽、丢包、协议和端口等。

$comcast--device=eth0--latecy=250--target-bw=1000--default-bw=1000000--packet-loss=10%--target-addr=8.8.8.8,10.0.0.0/24--target-proto=tcp,udp,icmp--target-port=80,22,1000:2000

OOSX,Comcastwillcheckfor pfctl support(asofYosemite),whichsupportsthesameoptiosasabove.If pfctl isotavailable,itwilluse ipfw istead,whichsupportsdevice,latecy,targetbadwidth,adpacket-lossoptios.

OBSD(with ipfw),Comcastcurretlysupportsoly:device,latecy,targetbadwidth,adpacketloss.

$comcast--device=eth0--latecy=250--target-bw=1000--packet-loss=10%

Thiswilladd250msoflatecy,limitbadwidthto1Mbps,addrop10%ofpacketstothetargetted(oLiux)destiatioaddressesusigthespecifiedprotocolsothespecifiedportumbers(slowlae).Thedefaultbadwidthspecifiedwillapplytoallegresstraffic(fastlae).Toturthisoff,ruthefollowig:

$comcast--stop

Bydefault,comcastwilldetermiethesystemcommadstoexecute,logthemtostdout,adexecutethem.The --dry-ru flagwillskipexecutio.

功能介绍

Comcast 是一个用来模拟各种常用的网络问题的工具,例如延迟、带宽限制以及丢包等等问题。 Comcast 使用可移植的方式封装了各种系统工具,例如 ipfw 和 pfctl 来注入网络通信失...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论