流视频时如何模拟网络丢包? [英] How to simulate network packet loss when streaming video?

查看:90
本文介绍了流视频时如何模拟网络丢包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我解决这个棘手的问题,让我痛苦了将近一周.

Please help me solve this tricky problem, making me suffering for almost one week.

如何让流媒体视频丢包?

How to make streaming video suffering packet loss?

开关:Pica8 3290电脑:酷睿i7 2600,8GB链接:100Mps流媒体视频:RTP (1080P、4K)

Switch: Pica8 3290 Computer: core i7 2600, 8GB Link: 100Mps Streaming video : RTP (1080P、4K)

我已经尝试过iperf"、iperf3"和Packeth"来生成UDP数据包.但是,这3个软件似乎都是先测量链路的剩余容量,然后再发送符合容量的数据包数量.

I've already tried "iperf", "iperf3" and "Packeth" to generate UDP packets. However, these 3 sofwares seem to measure the residual capacity of the link first and then send the amount of the packets fit the capacity.

例如:

(无视频流)iperf 发送近 100Mps

(No Video streaming) iperf send almost 100Mps

(使用视频流)iperf 仅发送近 70Mbps

(With video streaming) iperf only send almost 70Mbps

因此,这些数据包生成器不会帮助我使流媒体视频遭受严重损失.(我想要的是巨大的流量,让流媒体遭受可怕的损失和延迟)

Thus, these packet generator won't help me to make the streaming video suffering serious loss. (What I want is make huge traffic and make the streaming suffering terrible loss and delay)

那么,如何创建拥塞"并使视频流数据包丢失?

So, how can I create "congestion" and make the video streaming packets loss ?

非常感谢您的帮助!!

推荐答案

最近 Facebook 发布了一个很有前途的工具,称为 ATC(模拟网络条件的工具).

Recently Facebook has released a promising tool called ATC (A tool to simulate network conditions).

它允许您控制网络中的带宽、延迟、数据包丢失和数据包损坏率.

It allows you to controlled bandwith, latency, packet loss and packet corruption rates in your network.

但是该工具仅支持 Linux 平台和 Python 2.7.

Hovewer the tool supports only Linux platforms and Python 2.7.

您可以在此处找到有关 ATC 的一般信息.ATCs github 存储库位于此处.

You can find general information about ATC here. ATCs github repo is here.

这篇关于流视频时如何模拟网络丢包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆