[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"solution-scenes-menu":3,"tech-detail-2348":4},true,{"id":5,"title":6,"content":7,"picUrl":8,"tagIds":9,"keyWords":10,"htmlDescribe":11,"htmlUrl":12,"gmtCreate":13,"gmtModified":13,"articleInfoId":14},"2348","美畅物联丨GB\u002FT 28181系列之目录订阅&通知","\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002Fde3c71a9-82dc-49b0-a5c0-47b6f1d9af24.jpg\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Cp style=\"text-indent:2em;text-align:left;line-height:2\">经过前面几期内容的介绍，我们已经知晓GB\u002FT 28181标准是公共安全视频监控联网系统信息传输、交换、控制技术方面的一项重要规范。在安防领域，目录订阅与通知机制属于GB\u002FT 28181标准中的关键部分，其作用是实现设备目录信息的实时同步与状态更新。今天，我们就来探讨一下GB\u002FT 28181中的目录订阅与通知机制。\u003C\u002Fp>\u003Ch1 style=\"text-align:left;line-height:2\">\u003Cstrong>一、定义与概述\u003C\u002Fstrong>\u003C\u002Fh1>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002Fdfd6dbed-f575-4f4a-a964-6e9b5e4aec1e.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Cp style=\"text-indent:2em;text-align:left;line-height:2\">目录订阅与通知，是联网系统之间借助SIP协议（具体为RFC3265中所定义的SUBSCRIBE和NOTIFY方法）来进行信息交换以及资源共享的一种机制。这种机制的主要用途在于，向监控中心或者其他相关系统通报监控资源（例如摄像头、报警设备等）的增加、删除或者修改等变动情况，从而确保整个系统的状态同步性与一致性。\u003C\u002Fp>\u003Ch1 style=\"text-align:left;line-height:2\">\u003Cstrong>二、目录订阅\u003C\u002Fstrong>\u003C\u002Fh1>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002F76f4e8e9-478e-44ee-8162-7894c0ca0ce6.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Cp style=\"text-indent:2em;text-align:left;line-height:2\">目录订阅是指上级SIP域（或目录接收者）发送SUBSCRIBE请求，以订阅下级SIP域（或目录拥有者）的目录变化通知。当目录拥有者的设备状态发生改变时，例如设备上线、离线、增加或者删除等情况，目录拥有者将主动向已经订阅其目录变化的其他SIP域发送通知消息。\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">1、在目录拥有者接受目录订阅之后，需向目录订阅者发送请求确认消息。目录订阅采用IETF RFC 3265中所定义的SUBSCRIBE方法。\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">2、目录拥有者可以为联网系统、具备子设备的设备以及代理设备网关等，目录接收者同样可以是联网系统、带有子设备的设备以及代理设备网关等。\u003C\u002Fp>\u003Ch2 style=\"text-align:left;line-height:2\">\u003Cstrong>订阅命令流程\u003C\u002Fstrong>\u003C\u002Fh2>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002Ff8641d14-32bd-4e99-971a-ccebbbfa2c21.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Ch2 style=\"text-align:left;line-height:2\">\u003Cstrong>命令流程描述如下:\u003C\u002Fstrong>\u003C\u002Fh2>\u003Cp style=\"text-align:left;line-height:2\">1、目录接收者向目录拥有者发送SUBSCRIBE请求，该SUBSCRIBE请求的消息体需包含订阅的目录类型、添加设备起始时间等内容。\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">2、目录拥有者应向目录接收者返回订阅成功与否的响应消息，在订阅成功的确认响应消息的消息体中应包含设备信息等内容。\u003C\u002Fp>\u003Ch2 style=\"text-align:left;line-height:2\">\u003Cstrong>消息详细格式如下：\u003C\u002Fstrong>\u003C\u002Fh2>\u003Cp style=\"text-align:left;line-height:2\">服务器请求目标设备\u003C\u002Fp>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002Ff402ecc0-9271-4dff-8c88-e2ff1090faca.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">目标设备返回订阅结果\u003C\u002Fp>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002Fbbe60d0a-cbcc-4313-8ec9-ebf39bba3672.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Ch1 style=\"text-align:left;line-height:2\">\u003Cstrong>三、目录通知\u003C\u002Fstrong>\u003C\u002Fh1>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002F10772311-5d62-47f4-9cef-aaacd7242ee2.jpg\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Cp style=\"text-indent:2em;text-align:left;line-height:2\">目录通知，是指在某个SIP域的目录出现变化时，此SIP域将主动向那些已订阅其目录变化的其他SIP域发送通知消息。这一机制能够保证监控资源信息得到及时更新与同步，从而使相关系统可以获取到最新的监控资源信息。\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">1、在目录拥有者接受目录订阅之后，一旦目录发生变化，就必须立即通知目录接收者，而目录接收者则要向目录拥有者发送已收到目录的确认消息。目录通知采用IETF RFC 3265中所定义的NOTIFY方法。\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">2、目录拥有者可以为联网系统、具备子设备的设备以及代理设备网关等，目录接收者同样可以是联网系统、带有子设备的设备以及代理设备网关等。\u003C\u002Fp>\u003Ch2 style=\"text-align:left;line-height:2\">\u003Cstrong>通知命令流程 \u003C\u002Fstrong>\u003C\u002Fh2>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002F07cb0a73-ad9b-49ad-98d3-3fd3e84078a0.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Ch2 style=\"text-align:left;line-height:2\">\u003Cstrong>命令流程描述如下:\u003C\u002Fstrong>\u003C\u002Fh2>\u003Cp style=\"text-align:left;line-height:2\">1、在目录发生变化之后，目录拥有者向目录接收者发送NOTIFY请求。\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">2、目录接收者应当把有关目录传送成功与否的响应消息返回给该目录拥有者；消息体包含目录接收结果标志等内容。\u003C\u002Fp>\u003Ch2 style=\"text-align:left;line-height:2\">\u003Cstrong>消息详细格式如下：\u003C\u002Fstrong>\u003C\u002Fh2>\u003Cp style=\"text-align:left;line-height:2\">目标设备发送NOTIFY通知\u003C\u002Fp>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002F0bad5f73-c0dd-421e-b044-02a0eb5593ec.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">服务器返回接收结果\u003C\u002Fp>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002Fc4e30fa2-431b-4cfb-bbae-e5c2950ec144.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Ch1 style=\"text-align:left;line-height:2\">\u003Cstrong>四、优势与应用场景\u003C\u002Fstrong>\u003C\u002Fh1>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002F525aa455-ef69-4f26-87a2-b69116ee258f.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Ch2 style=\"text-align:left;line-height:2\">\u003Cstrong>1、优势\u003C\u002Fstrong>\u003C\u002Fh2>\u003Cp style=\"text-indent:2em;text-align:left;line-height:2\">这种目录订阅与通知机制提升了安防系统的自动化水平和信息同步效率，减少了人工干预以及因信息不及时而产生的管理漏洞，强化了整个安防网络的协同性。\u003C\u002Fp>\u003Ch2 style=\"text-align:left;line-height:2\">\u003Cstrong>2、应用场景\u003C\u002Fstrong>\u003C\u002Fh2>\u003Cp style=\"text-indent:2em;text-align:left;line-height:2\">在城市级安防监控体系（例如交通监控网络、公共场所安防系统等）中被广泛应用。不同的子系统借助目录订阅和通知的方式，实现设备与用户信息的实时共享，这保障了安全防范措施的高效施行。同时，其在大型企业园区安防系统里也起到重要作用，推动了内部安全管理资源的有效整合。\u003C\u002Fp>\u003Ch1 style=\"text-align:left;line-height:2\">\u003Cstrong>五、总结\u003C\u002Fstrong>\u003C\u002Fh1>\u003Cp style=\"text-align:center;line-height:2\">\u003Cimg src=\"https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002F121e27a7-0b7f-4a6f-9b6e-30d08b438fd2.png\" alt=\"\" loading=\"lazy\" \u002F>\u003C\u002Fp>\u003Cp style=\"text-indent:2em;text-align:left;line-height:2\">GB\u002FT 28181 的目录订阅和通知机制为视频监控系统的管理、监控和应用提供了强有力的支持。通过实时通知、状态同步、目录同步等功能，该机制确保了监控资源信息的及时更新和同步，提高了系统的响应速度和效率，增强了系统的可扩展性和灵活性，以及提高了系统的可靠性和稳定性。促使安防系统朝着更智能、更高效的方向发展，在保障社会安全与稳定方面有着不可忽视的作用。\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">————————————————\u003C\u002Fp>\u003Cp style=\"text-align:left;line-height:2\">\u003Cspan style=\"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-size:16px\">关注\u003C\u002Fspan>\u003Cspan style=\"color:rgb(66, 144, 247);background-color:rgb(255, 255, 255);font-size:16px\">\u003Cstrong>“美畅物联”\u003C\u002Fstrong>\u003C\u002Fspan>\u003Cspan style=\"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-size:16px\">，了解更多视频汇聚及AIoT底座解决方案。\u003C\u002Fspan>\u003C\u002Fp>","https:\u002F\u002Fqu-link.oss-cn-hangzhou.aliyuncs.com\u002F2024\u002F11\u002F18\u002Fa5e29f6a-d92d-448a-a55c-c366c1657d37.jpg","9","美畅，美畅物联，畅联，畅联云平台，视频监控云平台，云视频监控，视频云平台，视频开放平台，视频感知云，视频接入网关，AIoT综合接入网关，视频中台，物联网中台，无插件播放，H265播放，Ehome，ISUP， GB28181，GB35114，gat1400，JT808，JT1078","原创技术分享\u002F美畅物联向工","http:\u002F\u002Fwww.24hlink.cn\u002Fweb-index\u002FUFQT3DF.html","2024-11-18 15:28:25","788"]