RTP && RTCP

35 阅读1分钟

WireShark抓包

左下角

image.pg

过滤器

显示过滤器

过滤出需要查看的包 image.png

捕获过滤器

过滤出需要哪些包要抓

ARP

询问目标的MAC地址 image.png

大小端序

network to host (host 既可以是ip地址也可以是域名)

ntohs() 16位 ntohl() 32位 htons() 16位 htonl() 32位

RTP协议需要在wireshark中设置解析才能成功显示正确的数据包

image.png image.png

PT 为 G.711 μ-law 时间戳每个数据包增加160 = 8000 * 0.02 8k = 采样率 0.02 = 20ms image.png