CN109246115B - Wireless network monitoring method of SIP protocol under GB28181 - Google Patents

Wireless network monitoring method of SIP protocol under GB28181 Download PDF

Info

Publication number
CN109246115B
CN109246115B CN201811122507.9A CN201811122507A CN109246115B CN 109246115 B CN109246115 B CN 109246115B CN 201811122507 A CN201811122507 A CN 201811122507A CN 109246115 B CN109246115 B CN 109246115B
Authority
CN
China
Prior art keywords
sip
svr
ipc
server
sends
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811122507.9A
Other languages
Chinese (zh)
Other versions
CN109246115A (en
Inventor
穆可松
佘永涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Arcvideo Technology Co ltd
Original Assignee
Hangzhou Arcvideo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Arcvideo Technology Co ltd filed Critical Hangzhou Arcvideo Technology Co ltd
Priority to CN201811122507.9A priority Critical patent/CN109246115B/en
Publication of CN109246115A publication Critical patent/CN109246115A/en
Application granted granted Critical
Publication of CN109246115B publication Critical patent/CN109246115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Abstract

The invention discloses a wireless network monitoring method of an SIP protocol under GB 28181. The RTP data packet transmission method based on the cloud multimedia server is characterized in that the SIP protocol is accessed to a corresponding sip server of the cloud, the sip server controls interaction, the corresponding RTP data packet is pushed to the cloud multimedia server, transcoding is performed through a decoding module, and the RTP data packet is monitored by a plurality of external network clients in an rtmp mode. The invention has the beneficial effects that: through a 4G dialing mode and a sip protocol, the equipment in different physical positions is controlled in a centralized mode and played in a real-time streaming mode, so that a manager can control the equipment in time and can schedule the equipment in real time according to an emergency scene.

Description

Wireless network monitoring method of SIP protocol under GB28181
Technical Field
The invention relates to the related technical field of security videos, in particular to a wireless network monitoring method of an SIP protocol under GB 28181.
Background
GB28181 "information transmission, exchange and control technical requirements of safety and protection video monitoring networking system" is a national standard proposed by the Ministry of public Security science and technology informatization, which is drafted jointly by multiple units such as the national safety and protection alarm system standardization technical committee (SAC/TC100) returning to the mouth and the Ministry of public Security.
The standard specifies the interconnection structure, communication protocol structure, basic requirements and safety requirements of transmission, exchange and control, technical requirements of control, transmission flow, protocol interface and the like in the urban monitoring alarm networking system. The standard is suitable for scheme design, system detection and acceptance of a safety precaution monitoring alarm networking system and equipment research, development and production related to the safety precaution monitoring alarm networking system, and other information systems can be adopted by reference.
The standard is officially released and implemented in 6 months and 1 days in 2012, and is widely popularized and applied in the construction of safe city projects nationwide.
In the application scenario of the existing GB28181 protocol, the public security platform cannot monitor network equipment outside the public security platform at any time in an external network mode, and therefore timely emergency scheduling cannot be performed according to real-time images.
Disclosure of Invention
The invention provides a wireless network monitoring method under GB28181 by using SIP protocol for monitoring at any time through an external network, aiming at overcoming the defects in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a wireless network monitoring method of an SIP protocol under GB28181 specifically comprises the following steps:
(1) the IPC starts the GB28181 module to register with the SIP _ SVR central server;
(2) after the SIP _ SVR central server is started, monitoring configured IP and ports, and judging whether an authentication head is empty or not when an SIP registration packet is received; if the request is empty, returning the random number to the requested equipment and entering the next step; if not, verifying whether the user name and the password are correct; if the authentication is correct, the step (4) is entered, and if the authentication fails, the authentication failure is returned 401;
(3) the IPC receives 401 the error of authentication failure, then obtains whether authentication head information exists, if so, reads the random number and the algorithm mode, and then combines the user name and the password to resend the authentication according to the random number and the algorithm mode; if 200OK is received, entering the next step;
(4) the SIP _ SVR registers the authenticated registered equipment information and sends 200OK information;
(5) the SIP _ SVR receives a stream fetching instruction of an upper service layer, the instruction comprises an IP and a port of a multimedia receiving server, and the SIP server sends the IP and the port group of the multimedia receiving server to the IPC equipment through an invite instruction of an SIP protocol;
(6) after the SIP _ SVR sends an invite instruction, the SIP _ SVR waits for IPC to return, and if a response message packet is received, an SDP file is generated to be used by a transcoding module of the multimedia server for analysis rtp; if the response or the 400bad request cannot be received, the invite stream fetching instruction is not supported;
(7) after the service layer acquires the SDP file, the service layer sends a stream fetching instruction again, the SIP _ SVR sends an ack instruction to the IPC again after receiving the instruction, the IPC sends RTP audio and video data to a corresponding multimedia server, and the transcoding module converts a corresponding data stream into RTMP after receiving an RTP data packet;
(8) and the service layer performs preview playing according to the corresponding RTMP address.
Through a 4G dialing mode and a sip protocol, the equipment in different physical positions is controlled in a centralized mode and played in a real-time streaming mode, so that a manager can control the equipment in time and can schedule the equipment in real time according to an emergency scene. The method can be applied to the GB28181-2016 protocol in the security field and the version application above; the main security protection equipment that corresponds inserts through the mode of extranet at wireless 4G or wifi module. The client-side RTP data transmission method comprises the steps of accessing to an sip server corresponding to a cloud side through an sip protocol, controlling interaction by the sip server, pushing a corresponding RTP data packet to a cloud side multimedia server, transcoding through a decoding module, and monitoring by a plurality of external network client-sides in an rtmp mode.
Preferably, in step (1), the IPC starts the GB28181 module, combines the SIP _ SVR, the device id, and the port number into an SIP registration packet, and registers the packet in the SIP _ SVR center server.
Preferably, in step (4), the device information includes an IP address and port, a device id, a user name and password, and registration maintenance cycle information.
Preferably, in step (5), IPC will resend 101 or send 200OK if supported according to its own capabilities; if not, 400bad request is returned to SIP _ SVR.
Preferably, in step (6), the SDP file is generated for use by the transform module of the multimedia server to parse rtp, and simultaneously, the corresponding resource information is recorded for use by the subsequent stop of playing stream.
The invention has the beneficial effects that: through a 4G dialing mode and a sip protocol, the equipment in different physical positions is controlled in a centralized mode and played in a real-time streaming mode, so that a manager can control the equipment in time and can schedule the equipment in real time according to an emergency scene.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The invention is further described with reference to the following figures and detailed description.
In the embodiment shown in fig. 1, the method for monitoring the wireless network by the SIP protocol under GB28181 specifically includes the following steps:
(1) the IPC starts a GB28181 module, and the SIP _ SVR module, the device id and the port number are combined into an SIP registration packet and then registered to an SIP _ SVR central server;
(2) after the SIP _ SVR central server is started, monitoring configured IP and ports, and judging whether an authentication head is empty or not when an SIP registration packet is received; if the request is empty, returning the random number to the requested equipment and entering the next step; if not, verifying whether the user name and the password are correct; if the authentication is correct, the step (4) is entered, and if the authentication fails, the authentication failure is returned 401;
(3) the IPC receives 401 the error of authentication failure, then obtains whether authentication head information exists, if so, reads the random number and the algorithm mode, and then combines the user name and the password to resend the authentication according to the random number and the algorithm mode; if 200OK is received, entering the next step;
(4) the SIP _ SVR registers authenticated registered equipment information, wherein the equipment information comprises an IP address, a port, a device id, a user name, a password and registration maintenance period information, and sends 200OK information;
(5) the SIP _ SVR receives a stream fetching instruction of an upper service layer, the instruction comprises an IP and a port of a multimedia receiving server, and the SIP server sends the IP and the port group of the multimedia receiving server to the IPC equipment through an invite instruction of an SIP protocol; the IPC will resend 101 or send 200OK if supported according to the capability of the IPC; if not, returning 400bad request to SIP _ SVR;
(6) after the SIP _ SVR sends an invite instruction, the SIP _ SVR waits for the return of IPC, if a response message packet is received, an SDP file is generated to be used by a transcoding module of a multimedia server for analyzing rtp, and simultaneously, corresponding resource information is recorded to be used for subsequently stopping playing stream; if the response or the 400bad request cannot be received, the invite stream fetching instruction is not supported;
(7) after the service layer acquires the SDP file, the service layer sends a stream fetching instruction again, the SIP _ SVR sends an ack instruction to the IPC again after receiving the instruction, the IPC sends RTP audio and video data to a corresponding multimedia server, and the transcoding module converts a corresponding data stream into RTMP after receiving an RTP data packet;
(8) and the service layer performs preview playing according to the corresponding RTMP address.
The present application includes three parts: 1) registration and management between the Sip server and the IPC equipment; 2) the stream fetching instruction interaction between the SIP server and the IPC equipment; 3) RTP to RTMP method between multimedia module and IPC and multimedia. Through a 4G dialing mode and a sip protocol, the equipment in different physical positions is controlled in a centralized mode and played in a real-time streaming mode, so that a manager can control the equipment in time and can schedule the equipment in real time according to an emergency scene. The method can be applied to the GB28181-2016 protocol in the security field and the version application above; the main security protection equipment that corresponds inserts through the mode of extranet at wireless 4G or wifi module. The client-side RTP data transmission method comprises the steps of accessing to an sip server corresponding to a cloud side through an sip protocol, controlling interaction by the sip server, pushing a corresponding RTP data packet to a cloud side multimedia server, transcoding through a decoding module, and monitoring by a plurality of external network client-sides in an rtmp mode. Compared with the application scene of the existing GB28181 protocol, the public security platform can monitor network equipment outside the public security platform at any time in an external network mode, and timely emergency scheduling is carried out according to real-time images.

Claims (4)

  1. A wireless network monitoring method of an SIP protocol under GB28181 is characterized by comprising the following steps:
    (1) the IPC starts the GB28181 module to register with the SIP _ SVR central server;
    (2) after the SIP _ SVR central server is started, monitoring configured IP and ports, and judging whether an authentication head is empty or not when an SIP registration packet is received; if the request is empty, returning the random number to the requested equipment and entering the next step; if not, verifying whether the user name and the password are correct; if the authentication is correct, the step (4) is entered, and if the authentication fails, the authentication failure is returned 401;
    (3) the IPC receives 401 the error of authentication failure, then obtains whether authentication head information exists, if so, reads the random number and the algorithm mode, and then combines the user name and the password to resend the authentication according to the random number and the algorithm mode; if 200OK is received, entering the next step;
    (4) the SIP _ SVR registers the authenticated registered equipment information and sends 200OK information;
    (5) the SIP _ SVR receives a stream fetching instruction of an upper service layer, the instruction comprises an IP and a port of a multimedia receiving server, and the SIP server sends the IP and the port group of the multimedia receiving server to the IPC equipment through an invite instruction of an SIP protocol;
    (6) after the SIP _ SVR sends an invite instruction, the SIP _ SVR waits for IPC to return, and if a response message packet is received, an SDP file is generated to be used by a transcoding module of the multimedia server for analysis rtp; if the response or the 400bad request cannot be received, the invite stream fetching instruction is not supported; generating an SDP file for a transcoding module of a multimedia server to analyze rtp and use, and recording corresponding resource information for subsequent stop of playing stream;
    (7) after the service layer acquires the SDP file, the service layer sends a stream fetching instruction again, the SIP _ SVR sends an ack instruction to the IPC again after receiving the instruction, the IPC sends RTP audio and video data to a corresponding multimedia server, and the transcoding module converts a corresponding data stream into RTMP after receiving an RTP data packet;
    (8) and the service layer performs preview playing according to the corresponding RTMP address.
  2. 2. The method for monitoring the wireless network under GB28181 according to the SIP protocol of claim 1, wherein in step (1), the IPC starts a GB28181 module, and according to the set SIP _ SVR, device id and port number, the SIP _ SVR is combined into a SIP registration packet and then registered with the SIP _ SVR central server.
  3. 3. A method for monitoring a wireless network under GB28181 according to the SIP protocol of claim 1 or 2, wherein in step (4), the device information includes IP address and port, device id, username and password, and registration maintenance period information.
  4. 4. A method for monitoring a wireless network under GB28181 according to SIP protocol of claim 1 or 2, wherein in step (5), IPC resends 101 or sends 200OK if supported according to its own capability; if not, 400bad request is returned to SIP _ SVR.
CN201811122507.9A 2018-09-26 2018-09-26 Wireless network monitoring method of SIP protocol under GB28181 Active CN109246115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811122507.9A CN109246115B (en) 2018-09-26 2018-09-26 Wireless network monitoring method of SIP protocol under GB28181

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811122507.9A CN109246115B (en) 2018-09-26 2018-09-26 Wireless network monitoring method of SIP protocol under GB28181

Publications (2)

Publication Number Publication Date
CN109246115A CN109246115A (en) 2019-01-18
CN109246115B true CN109246115B (en) 2021-05-25

Family

ID=65057453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811122507.9A Active CN109246115B (en) 2018-09-26 2018-09-26 Wireless network monitoring method of SIP protocol under GB28181

Country Status (1)

Country Link
CN (1) CN109246115B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913533A (en) * 2006-09-05 2007-02-14 北京天地互连信息技术有限公司 Remote video monitoring system based on session initialize protocol and its implementing method
CN101159628A (en) * 2007-11-07 2008-04-09 中兴通讯股份有限公司 Method for video monitoring front end to cross over network address conversion module
CN104685894A (en) * 2012-10-26 2015-06-03 英特尔公司 Multimedia adaptation based on video orientation
WO2015131922A1 (en) * 2014-03-03 2015-09-11 Telefonaktiebolaget L M Ericsson (Publ) Streaming media content to a user equipment in an internet protocol multimedia subsystem
CN104954764A (en) * 2015-07-21 2015-09-30 上海远哲电子技术有限公司 Video monitoring system based on video resource safety gateway
CN105872453A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Web camera monitoring method and system as well as server
CN106506506A (en) * 2016-11-15 2017-03-15 江西憶源多媒体科技有限公司 A kind of method of outgoing telecommunication
CN108206833A (en) * 2018-01-11 2018-06-26 福建星网锐捷通讯股份有限公司 Audio/video data transmission method and its system
CN108337527A (en) * 2017-12-18 2018-07-27 武汉烽火众智智慧之星科技有限公司 A kind of access gateway and a kind of cut-in method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913533A (en) * 2006-09-05 2007-02-14 北京天地互连信息技术有限公司 Remote video monitoring system based on session initialize protocol and its implementing method
CN101159628A (en) * 2007-11-07 2008-04-09 中兴通讯股份有限公司 Method for video monitoring front end to cross over network address conversion module
CN104685894A (en) * 2012-10-26 2015-06-03 英特尔公司 Multimedia adaptation based on video orientation
WO2015131922A1 (en) * 2014-03-03 2015-09-11 Telefonaktiebolaget L M Ericsson (Publ) Streaming media content to a user equipment in an internet protocol multimedia subsystem
CN104954764A (en) * 2015-07-21 2015-09-30 上海远哲电子技术有限公司 Video monitoring system based on video resource safety gateway
CN105872453A (en) * 2015-12-15 2016-08-17 乐视致新电子科技(天津)有限公司 Web camera monitoring method and system as well as server
CN106506506A (en) * 2016-11-15 2017-03-15 江西憶源多媒体科技有限公司 A kind of method of outgoing telecommunication
CN108337527A (en) * 2017-12-18 2018-07-27 武汉烽火众智智慧之星科技有限公司 A kind of access gateway and a kind of cut-in method
CN108206833A (en) * 2018-01-11 2018-06-26 福建星网锐捷通讯股份有限公司 Audio/video data transmission method and its system

Also Published As

Publication number Publication date
CN109246115A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN108881814B (en) Method and device for communication between video network terminal and network camera and interaction system
CN108964963B (en) Alarm system based on video network and method for realizing alarm
CN108574818B (en) Information display method and device and server
CN109194697B (en) Internet monitoring method under GB28181 by SIP protocol
CN108881815B (en) Video data transmission method and device
CN110087040B (en) Monitoring video calling method and system
CN105450994A (en) Video commanding and dispatching system and method based on RTSP
CN110769310B (en) Video processing method and device based on video network
CN109150905B (en) Video network resource release method and video network sharing platform server
CN108023858B (en) A kind of view networking network management safety certifying method and its system
CN108965227B (en) Data processing method and video networking conference server
CN112532946A (en) Multi-protocol-based stream media system design method
CN109246486B (en) Method and device for framing
CN110191304B (en) Data processing method, device and storage medium
CN110113566B (en) Method and device for calling video stream
CN110049273B (en) Video networking-based conference recording method and transfer server
CN110572433A (en) Video scheduling method, system and device
CN111147789B (en) Method, device and equipment for recording audio and video stream and storage medium
CN108965220B (en) Method and system for synchronizing conference control right
CN108965782B (en) Conference processing method and device
CN110460469B (en) System upgrading method and device and storage medium
CN110113558B (en) Data processing method, device, system and computer readable storage medium
CN109347844B (en) Method and device for accessing equipment to Internet
CN110536178B (en) Live broadcast control method and system
CN109246115B (en) Wireless network monitoring method of SIP protocol under GB28181

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant