找出 RTP 最大大小 [英] Find out RTP maximum size

查看:84
本文介绍了找出 RTP 最大大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已阅读 RTP 数据包最大大小?最大 rtsp(over tcp) 数据包大小是多少? 但这并没有回答我的问题问题.

I have read RTP Packet maximum size? and What is the max rtsp(over tcp) packet size? but that didn't answer on my problem.

我如何知道 rtp/rtsp 的最大大小是多少?那只取决于 MTU 吗?rtp/rtsp 不会比 MTU 大吗?

How can I find out what is the max size of rtp/rtsp? is that depend only on MTU ? there is no way that rtp/rtsp will be bigger than MTU ?

我已经用 ifconfig eth1 mtu 1000 up 更改了 MTU,但我仍然得到了长度为 1440 的 RTSP 数据包

I have change the MTU with ifconfig eth1 mtu 1000 up but still I got RTSP packet with 1440 length

推荐答案

我如何知道 rtp/rtsp 的最大大小是多少?那取决于仅在 MTU 上?rtp/rtsp 不会比 MTU 大吗?

How can I find out what is the max size of rtp/rtsp? is that depend only on MTU ? there is no way that rtp/rtsp will be bigger than MTU ?

在实践中,1400 字节的 RTP 在 99.9% 的时间内是一个很好的大小.没有真正的限制,因为您可以使用 IP 级分段和/或以太网巨型帧.总之,RTP 的最大大小不取决于 MTU,而是取决于使用的编解码器/帧.

In practice a RTP of 1400 bytes is a good size in 99.9% of time. There is no real limit as you may use IP level fragmentation and/or Ethernet Jumbo-frame. In summary, the max size of RTP is not dependent on MTU but on the codec/framing in use.

我已经使用 ifconfig eth1 mtu 1000 up 更改了 MTU,但我仍然得到长度为 1440 的 RTSP 数据包

I have change the MTU with ifconfig eth1 mtu 1000 up but still I got RTSP packet with 1440 length

ifconfig eth1 mtu 1000 在 eth1 接口上设置一个 1000 MTU.

ifconfig eth1 mtu 1000 set a 1000 MTU on the eth1 interface.

  • 发送大于 1000 的数据报是不可能的,
  • 但 eth1 仍然能够接收更大的数据报.

仔细想想,interface-MTU 与两台主机之间的实际 path-MTU 大不相同.

If you think about it interface-MTU is rather different of actual path-MTU between two hosts.

如果您有这样的特定需求,您应该寻求实施MTU 路径发现.

If you have such a specific need, you should be looking to implement MTU path discovery.

这篇关于找出 RTP 最大大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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