我该怎么办了UDP协议的拥塞控制? [英] How can I do congestion control for a UDP protocol?

查看:1244
本文介绍了我该怎么办了UDP协议的拥塞控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个发件人/接收器设计,左右派尽可能快的大文件自定义的UDP协议。它是基于客户机/服务器。

I have a custom UDP protocol with multiple senders/receivers designed to send large files around as fast as possible. It is client/server based.

我如何可以检测LAN上的拥堵减缓发送UDP数据包的速度?

How can I detect congestion on the LAN to slow the rate of UDP packets being sent?

编辑:请在使用UDP没有评论是否是合适与否。该协议使用UDP,但是,当他们到达的数据包重新组合成整体的文件。

please, no comments on the use of UDP whether it's suitable or not. This protocol uses UDP but reassembles packets into whole files when they arrive.

要另一种方式的问题:如何做到的拥塞控制算法的工作,拥堵如何检测

To rephrase the question: How do congestion control algorithms work and how is congestion detected?

推荐答案

这是假设你使用UDP(TCP将是preferred)。

This is assuming you have to use UDP (TCP would be preferred).

从应用程序中,网络拥塞的唯一标志是IP数据包的丢失。这取决于你如何有你的协议,你可能要像做一些每个数据报出去,如果接收器发现它缺少一些(或让他们乱序),发送邮件(或多个)给发送者以表明有IP分组的丢失和减速。

From within the application, the only indication of network congestion is the loss of IP packets. Depending on how you have your protocol, you may want to do something like number each datagram going out, and if a receiver sees that it is missing some (or getting them out of order), send a message (or multiple) to the sender to indicate that there was loss of IP packets and to slow down.

有一个名为 RTP (实时传输协议)协议,用于实时流媒体应用。

There is a protocol called RTP (Real-time Transport Protocol) that is used in real time streaming applications.

RTP运行在UDP和RTCP(实时传输控制协议),RTP的QoS(服务质量),如丢包,时延,抖动等规定的措施,所以它知道汇报给发件人时降低工作关闭或改变codeCS。

RTP runs over UDP and RTCP(Real-time Transport Control Protocol) working with RTP provides measures for QoS(Quality of Service) like packet loss, delay, jitter, etc to report back to the sender so it knows when to slow down or change codecs.

不是说你可以使用RTP,但它可能有助于看看,看看它是如何工作的。

Not saying you can use RTP, but it may be helpful to look at to see how it works.

这篇关于我该怎么办了UDP协议的拥塞控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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