当前位置:网站首页>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参数,如下所示:
边栏推荐
- How to redraw the header of CListCtrl in MFC
- 【To .NET】C#集合类源码解析
- Methods of finding various limits
- Case sharing: basic networking configuration of QinQ
- Dlib+Opencv库实现疲劳检测
- Solution of digital supply chain centralized purchase platform in mechanical equipment industry: optimize resource allocation and realize cost reduction and efficiency increase
- The use of subplot function in MATLAB
- 宝,运维100+服务器很头疼怎么办?用行云管家!
- Task: denial of service DOS
- 见证时代!“人玑协同 未来已来”2022弘玑生态伙伴大会开启直播预约
猜你喜欢

Chaos engineering platform chaosblade box new heavy release

The market value evaporated by 74billion yuan, and the big man turned and entered the prefabricated vegetables

新版国标GB28181视频平台EasyGBS如何配置WebRTC视频流格式播放?
![Reading the paper [learning to discretely compose reasoning module networks for video captioning]](/img/a2/acdaebeb67ec4bcb01c8ff4bbd1d1e.png)
Reading the paper [learning to discretely compose reasoning module networks for video captioning]

Specification of lumiprobe reactive dye indocyanine green
![Extensive reading of the paper [film: visual reasoning with a general condition layer]](/img/69/f4ba37a7eae34a7e698127c31b0161.png)
Extensive reading of the paper [film: visual reasoning with a general condition layer]

Lake Shore continuous flow cryostat transmission line

Getting started with kubernetes command (namespaces, pods)

Is PMP cancelled??

Supervarimag superconducting magnet system SVM series
随机推荐
案例分享:QinQ基本组网配置
[go ~ 0 to 1] day 4 June 30 defer, structure, method
ffmpeg 音频相关命令
Learn MySQL from scratch - database and data table operations
ES6中的代理proxy
[pytorch record] distributed training dataparallel and distributeddataparallel of the model
Werewolf killing strategy: do you think I'm easy to cheat? Who do we believe!
Love business in Little Red Book
The use of subplot function in MATLAB
Superoptimag superconducting magnet system - SOM, Som2 series
ddr4测试-2
研究了11种实时聊天软件,我发现都具备这些功能…
白盒加密技术浅理解
Lake shore M91 fast hall measuring instrument
EasyGBS网络不稳定情况下重复请求视频拉流问题的优化
Supervarimag superconducting magnet system SVM series
MFC中如何重绘CListCtrl的表头
Solution and summary of Nacos startup failure
为什么一定要从DevOps走向BizDevOps?
Lake Shore—CRX-EM-HF 型低温探针台