·您当前的位置:首页 > 技术教程 > FMS教程 >

[海康]视频监控环境中配置组播模式

时间:2015-10-08 08:52酷播
视频监控环境中三层交换机配置组播,在视频监控的环境中,一共有19个海康威视的网络摄像头,作为组播源,所有的摄像头配置在vlan252中

在视频监控的环境中,一共有19个海康威视的网络摄像头,作为组播源,所有的摄像头配置在vlan252中,核心交换机为一台Cisco3560交换机,在交换机上启用组播,监控的客户端采用组播的方式,分别在vlan254vlan301中,采用稀疏模式,实现如下。

3560上启用组播

(config)# ip multicast-routing distributed

在相应的接口上配置pim-sm

(config)#int vlan 252

(config-if)# ip pim sparse-mode

(config-if)#int vlan 254

(config-if)#ip pim sparse-mode

(config-if)#int vlan 301

(config-if)#ip pim sparse-mode

配置静态rp

(config)# ip pim rp-address 192.168.16.65

交换机上的配置完成。

在摄像头上配置各个摄像头的组播地址,每个摄像头作为组播源,组播地址从239.252.0.2~239.252.0.20

在海康威视的客户端软件上配置相应的协议,客户端的软件版本是免费的iVMS-4200

首先在该软件的设备管理中,将每个设备的连接设置中填入各个设备的多播地址;

然后在监控点配置中,选择“网络设置”,将协议类型由默认的“TCP”改为“MCAST”,设置完成。

打开预览,各个摄像头的监控画面都能够正常显示。

3560上查看组播路由表:

#sh ip mroute

IP Multicast Routing Table

Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,

       L - Local, P - Pruned, R - RP-bit set, F - Register flag,

       T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,

       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,

       U - URD, I - Received Source Specific Host Report,

       Z - Multicast Tunnel, z - MDT-data group sender,

       Y - Joined MDT-data group, y - Sending to MDT-data group,

       V - RD & Vector, v - Vector

Outgoing interface flags: H - Hardware switched, A - Assert winner

 Timers: Uptime/Expires

 Interface state: Interface, Next-Hop or VCD, State/Mode

 

(*, 239.252.0.3), 00:20:29/stopped, RP 192.168.16.65, flags: SJC

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:00:09/00:02:50

    Vlan252, Forward/Sparse, 00:00:09/00:02:50

 

(192.168.15.3, 239.252.0.3), 00:20:29/00:02:59, flags: T

  Incoming interface: Vlan252, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:00:09/00:02:50

 

(*, 239.252.0.15), 00:14:37/stopped, RP 192.168.16.65, flags: SJC

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:00:09/00:02:50

    Vlan252, Forward/Sparse, 00:00:09/00:02:50

 

(192.168.15.15, 239.252.0.15), 00:14:37/00:02:59, flags: T

  Incoming interface: Vlan252, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:00:09/00:02:50

 

(*, 239.252.0.14), 00:20:32/stopped, RP 192.168.16.65, flags: SJC

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan252, Forward/Sparse, 00:00:09/00:02:50

    Vlan254, Forward/Sparse, 00:00:09/00:02:50

 

(192.168.15.14, 239.252.0.14), 00:20:32/00:02:59, flags: T

  Incoming interface: Vlan252, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:00:09/00:02:50

 

(*, 239.252.0.13), 00:14:37/stopped, RP 192.168.16.65, flags: SJC

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:00:09/00:02:50

    Vlan252, Forward/Sparse, 00:00:09/00:02:50

 

(192.168.15.13, 239.252.0.13), 00:14:37/00:02:59, flags: T

  Incoming interface: Vlan252, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:00:09/00:02:50

 

(*, 239.252.0.20), 00:19:51/stopped, RP 192.168.16.65, flags: SJC

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan252, Forward/Sparse, 00:04:11/00:02:20

    Vlan254, Forward/Sparse, 00:04:11/00:02:27

 

(192.168.15.20, 239.252.0.20), 00:16:16/00:02:59, flags: T

  Incoming interface: Vlan252, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:04:11/00:02:27

 

(*, 224.0.1.40), 2w4d/00:02:25, RP 192.168.16.65, flags: SJCL

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan252, Forward/Sparse, 2w4d/00:02:25

 

(*, 239.255.255.250), 2w4d/00:02:39, RP 192.168.16.65, flags: SJC

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 18:06:08/00:02:36

    Vlan301, Forward/Sparse, 1d03h/00:02:39

 

(*, 239.252.0.15), 00:19:24/stopped, RP 192.168.16.65, flags: SJC

  Incoming interface: Null, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan252, Forward/Sparse, 00:00:13/00:02:56

    Vlan254, Forward/Sparse, 00:00:13/00:02:46

 

(192.168.15.15, 239.252.0.15), 00:19:24/00:02:59, flags: T

  Incoming interface: Vlan252, RPF nbr 0.0.0.0

  Outgoing interface list:

    Vlan254, Forward/Sparse, 00:00:13/00:02:46

…………省略。

在视频监控中运用组播在三层交换机上的配置完成。

热门文章推荐

请稍候...

保利威视云平台-轻松实现点播直播视频应用

酷播云数据统计分析跨平台播放器