当前位置:网站首页>GB28181的NAT穿透
GB28181的NAT穿透
2022-07-01 18:45:00 【lcyw】
一、 国标gb28181内网穿透
参考 :
RFC3581——SIP中的rport机制
VIA头域
eXosip获取IP和端口
国标gb28181跨网(跨路由器)的情况分析:
下级平台在内网交换机后面, 上级平台在公网,因为内网的摄像头在发送信息到公网上会经过一个网关,网关会使用nat协议转换内网的端口,有内网穿透的情况,内网映射到外网的端口会发生改变,所以要有一套机制来做穿透,因为国标是基于sip协议的,sip下做内网穿透的使用rport机制,如果发送的请求不带rport标识就是不启用这套机制,
当设备注册进来时,我们需要记录下设备的IP和端口,以便后续与其进行通信。
如果是支持rport机制的服务器,它需要在接收到的请求中检查Via头是否包含一个没有值的rport参数。如果有,它需要在回应中带上rport的值,这与received的处理类似。
实例
下面举一个发送REGISTER信息的实例,在请求信息的Via头中包含了没有值的rport参数,如下所示:
边栏推荐
- Les canaux de culture intensive s'efforcent de développer Fu Xin et Wei Shi jiajie pour organiser une conférence de formation sur les nouveaux produits
- 寶,運維100+服務器很頭疼怎麼辦?用行雲管家!
- The difference between indexof and includes
- 【To .NET】C#集合类源码解析
- 下载(导出)pdf模板文件(比如:审批单),报错:Invalid nested tag *** found, expected closing tag ***
- indexof和includes的区别
- 实现一个Prometheus exporter
- [info() method in org.slf4j.logger]
- Junit单元测试框架详解
- 测试自学人必看:软件测试如何找测试项目?
猜你喜欢

nacos启动失败问题解决与总结

XML语法、约束

Lumiprobe free radical analysis h2dcfda instructions

混沌工程平台 ChaosBlade-Box 新版重磅发布

求各种极限的方法

Solidity - contract structure - error - ^0.8.4 NEW

Bao, que se passe - t - il si le serveur 100 + O & M a mal à la tête? Utilisez le majordome xingyun!

uni-app商品分类

Lake Shore - crx-em-hf low temperature probe station

The intelligent epidemic prevention system provides safety guarantee for the resumption of work and production at the construction site
随机推荐
[English grammar] Unit1 articles, nouns, pronouns and numerals
Is PMP cancelled??
Instagram 为何从内容共享平台变成营销工具?独立站卖家如何利用该工具?
Detailed explanation of JUnit unit test framework
学习笔记【gumbel softmax】
Lake Shore M91快速霍尔测量仪
Chinese and English instructions human soluble advanced glycation end products receptor (sRAGE) ELISA Kit
The difference between indexof and includes
Witness the times! "The future of Renji collaboration has come" 2022 Hongji ecological partnership conference opens live broadcast reservation
数字化转型企业成功的关键,用数据创造价值
How to redraw the header of CListCtrl in MFC
Reading the paper [learning to discretely compose reasoning module networks for video captioning]
【英语语法】Unit1 冠词、名词、代词和数词
线程的并行、并发、生命周期
Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0
Write it down once Net travel management background CPU Explosion Analysis
【org.slf4j.Logger中info()方法】
Lumiprobe phosphide hexaethylene phosphide specification
Junit单元测试框架详解
Lake Shore continuous flow cryostat transmission line