简体   繁体   English

最大 rtsp(通过 tcp)数据包大小是多少?

[英]What is the max rtsp(over tcp) packet size?

I didn't see about it anything in Real Time Streaming Protocol (RTSP) , but when I sniffing, I saw the max rtsp packet size is 1440.我在实时流协议 (RTSP)中没有看到任何内容,但是当我嗅探时,我看到最大 rtsp 数据包大小为 1440。

And like you can see here RTSP - RTP over TCP就像你在这里看到的那样RTSP - RTP over TCP

RTP Data RTP 数据

After the setup, RTP data will be sent through the TCP socket that is used for RTSP commands.设置完成后,RTP 数据将通过用于 RTSP 命令的 TCP 套接字发送。 The RTP data will be encapsulate in the following format RTP 数据将被封装成以下格式

| | magic number |魔术数字 | channel number |频道号 | embedded data length |嵌入数据长度 | data |数据 |

magic number - 1 byte value of hex 0x24 channel number - 1 byte value to denote the channel embedded data length - 2 bytes to denote the embedded data length data - data packet, ie RTP packet, with the total length of the embedded data length幻数 - 十六进制的 1 字节值 0x24 通道号 - 1 字节值表示通道嵌入数据长度 - 2 字节表示嵌入数据长度 data - 数据包,即 RTP 包,与嵌入数据长度的总长度

I can see the 0x24 magic in each 1440 bytes.我可以在每 1440 个字节中看到 0x24 魔法。

Is that true?真的吗? 1440 is the max rtsp packet size? 1440 是最大 rtsp 数据包大小吗?

Please check the MTU size/Network MTU of the network connection.请检查网络连接的 MTU 大小/网络 MTU。 The size of the packet will be based on the MTU size only ( < less than the MTU size).数据包的大小将仅基于 MTU 大小(< 小于 MTU 大小)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM