CN109547417A - Code stream transmission method and device - Google Patents

Code stream transmission method and device Download PDF

Info

Publication number
CN109547417A
CN109547417A CN201811280772.XA CN201811280772A CN109547417A CN 109547417 A CN109547417 A CN 109547417A CN 201811280772 A CN201811280772 A CN 201811280772A CN 109547417 A CN109547417 A CN 109547417A
Authority
CN
China
Prior art keywords
server
monitoring
tcp
party
monitor supervision
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.)
Granted
Application number
CN201811280772.XA
Other languages
Chinese (zh)
Other versions
CN109547417B (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201811280772.XA priority Critical patent/CN109547417B/en
Publication of CN109547417A publication Critical patent/CN109547417A/en
Application granted granted Critical
Publication of CN109547417B publication Critical patent/CN109547417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • 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/75Media network packet handling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of code stream transmission method and devices, are applied in view networking.Wherein method include: monitoring association turn server receiving terminal via view networked server sends, based on view networking protocol first adjust stream request;Stream request is adjusted according to first, whether judge push monitoring code stream is the third party's monitor supervision platform pushed in a manner of TCP;If being judged as YES, the TCP connection between third party's monitor supervision platform is established;Receive the push of third party's monitor supervision platform, the monitoring code stream based on Transmission Control Protocol;Monitoring code stream based on Transmission Control Protocol is converted into the monitoring code stream based on view networking protocol, and is sent to terminal via depending on networked server.It can realize by protocol conversion in the embodiment of the present invention and share the monitor video of third party's monitor supervision platform into view networking, and increase the type of third party's monitor supervision platform, reduce the limitation of third party's monitor supervision platform push mode, be more widely applied.

Description

Code stream transmission method and device
Technical field
The present invention relates to view networking technology fields, fill more particularly to a kind of code stream transmission method and a kind of bit stream It sets.
Background technique
Video monitoring is the important component of safety and protection system.Video monitoring is intuitive with it, accurate, in time and information It is abundant in content and be widely used in many occasions.In recent years, with computer, network and image procossing, transmission technology fly Speed development, there has also been significant progresses for Video Supervision Technique.Traditional monitoring system include front end surveillance device, transmission cable, Video monitoring platform.The monitor video of acquisition is transmitted to video monitoring platform by front end surveillance device, and user can supervise in video Control platform checking monitoring video.
But video monitoring platform is only supported through UDP (User Datagram Protocol, user in the prior art Datagram protocol) mode pushes monitor video.Therefore, prior art limitation is larger, causes video monitoring platform that can not pass through Non- UDP mode pushes monitor video.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind A kind of code stream transmission method and a kind of corresponding bit stream device to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of code stream transmission method, the method is applied to view In networking, turn server including terminal, depending on networked server and monitoring association in depending on networking, includes that third party supervises in internet Control platform, which comprises
The monitoring association turns server and receives the terminal, sends via the view networked server, based on view networking The first of agreement adjusts stream request;
The monitoring association turns server and adjusts stream request according to described first, and whether judge push monitoring code stream is with TCP Third party's monitor supervision platform that mode pushes;
If the monitoring association turns server and is judged as YES, the TCP connection between third party's monitor supervision platform is established;
The monitoring association turns server and receives third party's monitor supervision platform push, the monitoring code stream based on Transmission Control Protocol;
The monitoring association turns server and the monitoring code stream based on Transmission Control Protocol is converted to the prison based on view networking protocol Control code stream, and the terminal is sent to depending on networked server via described.
Preferably, the step of TCP connection established between third party's monitor supervision platform, comprising: the monitoring Association turns server creation TCP Client, and establishes preset TCP in the TCP Client and third party's monitor supervision platform and take Connection between business device.
Preferably, the monitoring association turns server creation TCP Client, and establishes the TCP Client and the third The step of connection in square monitor supervision platform between preset TCP server, comprising: the monitoring association turns server and obtains described the The IP address and port information of preset TCP server in tripartite's monitor supervision platform;The monitoring association turns server creation TCP client Itself is received the IP address and port information of code stream, IP address and port information as the TCP Client by end;It is described Monitoring association turn the IP address of TCP Client described in server by utilizing and the IP address of port information and the TCP server and Port information establishes the connection between the TCP Client and the TCP server.
Preferably, the monitoring association turns the IP that server obtains preset TCP server in third party's monitor supervision platform The step of address and port information, comprising: the monitoring association turns server and adjusts stream request to be converted to based on SIP association for described first The second of view adjusts stream request, and adjusts stream request to be sent to third party's monitor supervision platform for described second;The second tune stream is asked Seeking the transport protocol for turning server including the monitoring association is Transmission Control Protocol, and transmission mode is TCP aggressive mode;The monitoring association Turn server to receive third party's monitor supervision platform to be based on the transport protocol to be Transmission Control Protocol, transmission mode is TCP active mould Formula, the response message for adjusting stream request to return for described second;The response message include the TCP server IP address and Port information.
Preferably, the monitoring association turns server and receives third party's monitor supervision platform push, the prison based on Transmission Control Protocol The step of control code stream, comprising: the monitoring association turns server by the TCP Client, receives third party's monitor supervision platform It is pushed by the TCP server, the monitoring code stream based on Transmission Control Protocol.
Preferably, the monitoring association turns the multiple monitoring resources of server connection, and third party's monitor supervision platform connection is multiple Resource is monitored, described first adjusts stream request to include target monitoring resource identification, and the monitoring association turns server according to described first The step of tune stream request, whether judge push monitoring code stream is the third party's monitor supervision platform pushed in a manner of TCP, comprising: institute It states monitoring association to turn server and judge the corresponding target monitoring resource of the target monitoring resource identification, if connect in a manner of TCP Third party's monitor supervision platform of push;If the monitoring association turns server and is judged as YES, it is determined that push monitoring code stream is with TCP Third party's monitor supervision platform that mode pushes.
On the other hand, the embodiment of the invention also discloses a kind of bit stream device, described device is applied in view networking, Turn server including terminal, depending on networked server and monitoring association in depending on networking, include third party's monitor supervision platform in internet, The monitoring association turns server and includes:
First receiving module is sent for receiving the terminal via the view networked server, based on view networking association The first of view adjusts stream request;
Judgment module, for adjusting stream request according to described first, whether judge push monitoring code stream is to be pushed away in a manner of TCP The third party's monitor supervision platform sent;
Module is established, if being judged as YES for the judgment module, is established between third party's monitor supervision platform TCP connection;
Second receiving module, for receiving third party's monitor supervision platform push, the monitoring code stream based on Transmission Control Protocol;
Sending module, for the monitoring code stream based on Transmission Control Protocol to be converted to the monitoring code based on view networking protocol Stream, and the terminal is sent to depending on networked server via described.
Preferably, described to establish module, it is specifically used for creation TCP Client, and establish the TCP Client and described the Connection in tripartite's monitor supervision platform between preset TCP server.
Preferably, the module of establishing includes: acquisition submodule, preset in third party's monitor supervision platform for obtaining The IP address and port information of TCP server;Submodule is created, for creating TCP Client, with itself will receiving the IP of code stream Location and port information, IP address and port information as the TCP Client;Submodule is connected, for utilizing the TCP visitor The IP address and port information at family end and the IP address and port information of the TCP server, establish the TCP Client With the connection between the TCP server.
Preferably, the acquisition submodule includes: protocol conversion subelement, for adjusting stream request to be converted to for described first Second based on Session Initiation Protocol adjusts stream request, and adjusts stream request to be sent to third party's monitor supervision platform for described second;Described Two transport protocols for adjusting stream request to turn server including the monitoring association are Transmission Control Protocol, and transmission mode is TCP aggressive mode;It rings Receiving subelement is answered, is Transmission Control Protocol for receiving third party's monitor supervision platform to be based on the transport protocol, transmission mode is TCP aggressive mode, the response message for adjusting stream request to return for described second;The response message includes the TCP server IP address and port information.
In the embodiment of the present invention, monitoring association turns what server receiving terminal was sent via view networked server, based on view connection The first of fidonetFido adjusts stream request;Monitoring association turns server according to first adjust stream request, judge push monitoring code stream whether be The third party's monitor supervision platform pushed in a manner of TCP;If monitoring association turns server and is judged as YES, establish and third party's monitor supervision platform Between TCP connection;Monitoring association turns the monitoring code stream based on Transmission Control Protocol that server receives the push of third party's monitor supervision platform;Prison Control association turns server and the monitoring code stream based on Transmission Control Protocol is converted to the monitoring code stream based on view networking protocol, and joins via view Network server is sent to terminal.It follows that can realize to monitor third party and put down by protocol conversion in the embodiment of the present invention The monitor video of platform is shared into view networking;And monitoring association and turning server can also support third party's monitor supervision platform to pass through TCP (Transmission Control Protocol, transmission control protocol) mode pushes monitor video, to increase third party The type of monitor supervision platform reduces the limitation of third party's monitor supervision platform push mode, is more widely applied.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of step flow chart of code stream transmission method of the embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of bit stream process of the embodiment of the present invention;
Fig. 7 is a kind of structural block diagram of bit stream device of the embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
1, view networked devices classification
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking destination address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze is according to the view of packet networking purpose Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different data packets, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, the bit stream scheme of the embodiment of the present invention is proposed, it then follows regard the association of networking View can be realized by protocol conversion and share the monitor video of third party's monitor supervision platform into view networking, and reduce third The limitation of square monitor supervision platform push mode, is more widely applied.
The code stream transmission method of the embodiment of the present invention can be applied in view networking.Depending on networking in may include terminal, Turn server depending on networked server and monitoring association, may include third party's monitor supervision platform in internet, monitoring association turns server It can be connect respectively with depending on networked server and third party's monitor supervision platform.Wherein, monitoring association, which turns server, can connect multiple prisons Resource is controlled, third party's monitor supervision platform can connect multiple monitoring resources, and third party's monitor supervision platform there can be one or more.Monitoring Association turns server and can be understood as gateway, and external (such as on internet) monitoring resource is responsible for (also to can be described as monitoring to set It is standby) it is linked into view networking.Such as after the monitoring code stream of acquisition can be based on corresponding Internet protocol coding by monitoring resource It is sent to monitoring association and turns server, monitoring association, which turns server, can be converted to the monitoring code stream of internet protocol-based based on view It is sent to and is regarded in networking after the monitoring code stream of networking protocol, to realize the monitoring in view networking in browsing and control internet Resource.
In the embodiment of the present invention, terminal can be view networked terminals.It is view connection operational line landing equipment depending on networked terminals, Depending on the actual participation person or server of networking service, regard networked terminals can as various meeting set-top boxes, videophone set-top box, Operation pilot teaching set-top box, Streaming Media gateway, storage gateway, media synthesizer, etc..View networking is registered to depending on networked terminals needs Regular traffic can be carried out on server.Terminal may be that mobile phone, the tablet computer etc. being registered on view networked server move Dynamic software terminals such as terminal or application program, plug-in unit, etc..Regarding networked server can be above-mentioned node server.The Tripartite's monitor supervision platform can be public security system monitor supervision platform, medical system monitor supervision platform, etc., for example be specifically as follows and follow Server is docked in the monitoring of GB28181 standard.
Referring to Fig. 5, a kind of step flow chart of code stream transmission method of the embodiment of the present invention is shown.
The code stream transmission method of the embodiment of the present invention may comprise steps of:
Step 501, monitoring association turns the server reception terminal, sends via the view networked server, based on view The first of networking protocol adjusts stream request.
When user wants to watch some or certain monitor videos for monitoring collection of resources, phase can be executed at the terminal It should operate, to trigger the request of the first tune stream.For example, can show the mark of each monitoring resource at the terminal, user can be with From wherein selecting one or more target monitoring resource identifications, and click and check button, can triggering terminal generate first and adjust stream Request.
Terminal can adjust stream request for first, turn server via monitoring association is sent to depending on networked server.Specific real In existing, terminal and view can carry out two-way interactive based on view networking protocol between networked server, view networked server with monitor Association turns that two-way interactive can be carried out based on view networking protocol between server.Therefore, terminal can be based on view networking protocol encapsulation First adjusts stream request, and by adjusting stream request to be sent to view networked server based on first depending on networking protocol this depending on networking; Again by view networked server by view networking, turn service for adjusting stream request to be sent to monitoring association based on first depending on networking protocol Device.
Step 502, monitoring association turn server according to it is described first adjust stream request, judge push monitoring code stream whether be with Third party's monitor supervision platform that TCP mode pushes.
Monitoring association turns server and third party's monitor supervision platform can connect multiple monitoring resources, therefore user wants to check Monitoring resource may be monitoring association turn server connection monitoring resource, it is also possible to third party's monitor supervision platform connection monitoring Resource.
Monitoring association turn server receive the first tune stream request after, can according to this first adjust stream request judge it is subsequent will Push monitoring code stream is that monitoring association turns server or third party's monitor supervision platform.Also, if it is third party's monitor supervision platform, So third party's monitor supervision platform may be that monitoring code stream is pushed in a manner of TCP, it is also possible to monitoring code stream is pushed in a manner of UDP, It therefore can be in a manner of further judging third party's monitor supervision platform push monitoring code stream.
In a preferred embodiment, step 502 may include: that monitoring association turns server and judges target monitoring resource mark Know corresponding target monitoring resource, if third party's monitor supervision platform that connection is pushed in a manner of TCP;If monitoring association turns server and sentences It is yes for breaking, it is determined that push monitoring code stream is the third party's monitor supervision platform pushed in a manner of TCP.
In the embodiment of the present invention, first adjusts stream to request to may include target monitoring resource identification, terminal iidentification, terminal user The information such as number.Monitoring association turns the corresponding pass that monitoring resource identification with monitoring resource connection equipment can be pre-saved in server System, such as connection equipment may turn server for monitoring association, it is also possible to be third party's monitor supervision platform.For third party's monitor supervision platform The mode of third party's monitor supervision platform push code stream can also be pre-saved, for example mode may be TCP mode, it is also possible to be UDP mode.Monitoring association turn server receive the first tune stream request after, target can be determined according to the corresponding relationship pre-saved The connection equipment of the corresponding target monitoring resource of resource identification is monitored, if connection equipment is third party's monitor supervision platform, into one Step checks the mode of the third party's monitor supervision platform push code stream pre-saved.
Step 503, if monitoring association turns server and is judged as YES, the TCP between third party's monitor supervision platform is established Connection.
If monitoring association, which turns server, judges that push monitoring code stream is that monitoring association turns server itself namely target prison The connection equipment of the corresponding target monitoring resource of control resource identification is that monitoring association turns server, then monitor association turn server be not necessarily into Row specially treated can be based on view networking protocol based on the monitoring code stream of view networking protocol encapsulation target monitoring resource, and by this Monitoring code stream be sent to view networked server, then adjust stream request by sending it to above-mentioned transmission first depending on networked server Terminal, user can check corresponding monitor video at the terminal.
Judge that push monitoring code stream is that the third party's monitoring pushed in a manner of UDP is put down if monitoring association and turning server Platform, and monitoring association turns Server Default and can receive what third party's monitor supervision platform was pushed in a manner of UDP in the embodiment of the present invention Monitor code stream.Therefore, monitoring association turns server without carrying out specially treated, and it is flat third party's monitoring can be received according to default behavior The monitoring code stream based on udp protocol encapsulation of platform push, and the monitoring code stream based on udp protocol can be converted to based on view The monitoring code stream of networking protocol will be sent to view networked server based on the monitoring code stream depending on networking protocol, then be networked by view Server sends it to the terminal that stream request is adjusted in above-mentioned transmission first, and user can check corresponding monitoring view at the terminal Frequently.
Judge that push monitoring code stream is that the third party's monitoring pushed in a manner of TCP is put down if monitoring association and turning server Platform, then monitoring association and turning server can establish TCP connection between third party's monitor supervision platform.
In a preferred embodiment, step 503 may include: that monitoring association turns server creation TCP Client, and builds Connection in vertical TCP Client and third party's monitor supervision platform between preset TCP server.It can specifically include following steps:
A1, monitoring association turn server and obtain the IP address of preset TCP server and end in third party's monitor supervision platform Message breath.
It, can be preparatory in third party's monitor supervision platform if third party's monitor supervision platform pushes monitoring code stream in a manner of TCP TCP server is set, push monitoring code stream is carried out by the TCP server.Monitoring association turns server can monitor from third party (Internet Protocol, the network protocol) address IP and the port information of wherein TCP server, port letter are obtained in platform Breath may include port numbers, port name etc..
In the concrete realization, step A1 may include:
A11, monitoring association turn server and adjust stream request to be converted to based on SIP (Session Initiation for described first Protocol, session initiation protocol) second adjust stream request, and adjust stream request to be sent to the third party for described second and monitor Platform.
A12, monitoring association turn server to receive third party's monitor supervision platform to be based on the transport protocol to be Transmission Control Protocol, pass Defeated mode is TCP aggressive mode, the response message for adjusting stream request to return for described second.
In monitoring, association turns on server, if receiving the monitoring code stream based on Transmission Control Protocol, transmission mode can be divided into TCP aggressive mode (active) and TCP Passive Mode (passive).If monitoring association, which turns server, judges push monitoring code Stream is the third party's monitor supervision platform pushed in a manner of TCP, then can configure transport protocol is Transmission Control Protocol, transmission mode TCP Aggressive mode.Monitoring association turns server and adjusts flow request to be converted to based on Session Initiation Protocol encapsulation second stream is adjusted to request by first, such as The request of INVITE tune stream, and adjust stream request to be sent to third party's monitor supervision platform second based on Session Initiation Protocol.Second adjusts stream request Subsidiary parameter may include the IP address and port information that monitoring association turns the reception code stream of server, and monitoring association turns server Transport protocol is Transmission Control Protocol, and transmission mode is TCP aggressive mode, etc..
After third party's monitor supervision platform receives the request of the second tune stream, get including monitoring association turn the transmission of server Agreement is Transmission Control Protocol, and transmission mode is TCP aggressive mode, then the IP address of available TCP server therein and port letter Breath, and turn server to monitoring association and return to the response message based on Session Initiation Protocol, such as 200ok response message.Response message is subsidiary Parameter may include IP address and port information of TCP server, etc..
A2, monitoring association turn server creation TCP Client, itself are received to the IP address and port information of code stream, as The IP address and port information of the TCP Client.
Monitoring association turns server after the response message for receiving the return of third party's monitor supervision platform, can be used and uses itself The IP address and port information for receiving code stream create a TCP Client, IP address and port as the TCP Client Information.
The IP address for turning TCP Client described in server by utilizing and port information and TCP service are assisted in A3, monitoring The IP address and port information of device, establish the connection between the TCP Client and the TCP server.
Monitoring association turns server and the TCP Client of foundation is connected to preset TCP server in third party's monitor supervision platform Afterwards, the confirmation message based on Session Initiation Protocol, such as ACK confirmation message can also be sent to third party's monitor supervision platform.Hereafter, it monitors Association turn server can TCP aggressive mode, receive the monitoring code stream that pushes by TCP mode of third party's monitor supervision platform.
Step 504, monitoring association turns server and receives third party's monitor supervision platform push, the monitoring based on Transmission Control Protocol Code stream.
It, can be with after third party's monitor supervision platform receives the confirmation message based on Session Initiation Protocol that monitoring association turns server transmission Monitoring code stream is obtained from target monitoring resource, and based on Transmission Control Protocol encapsulation monitoring code stream, by the monitoring code based on Transmission Control Protocol Stream pushes to monitoring association and turns server.
Due to monitoring association turn server establish itself TCP Client and third party's monitor supervision platform TCP server it Between connection, therefore be formed by between TCP Client and TCP server, as the transmission of the monitoring code stream based on Transmission Control Protocol Channel.Therefore, monitoring association, which turns server, can receive third party's monitor supervision platform described in by the TCP Client TCP server push, the monitoring code stream based on Transmission Control Protocol.That is, third party's monitor supervision platform can pass through TCP server IP interface and port turn the IP interface of the TCP Client of server to monitoring association and port send the monitoring code based on Transmission Control Protocol Stream.
Step 505, monitoring association turn server by the monitoring code stream based on Transmission Control Protocol be converted to based on view networking protocol Monitoring code stream, and be sent to the terminal depending on networked server via described.
It, will after monitoring association turns the monitoring code stream based on Transmission Control Protocol that server receives the return of third party's monitor supervision platform It monitors code stream and is back to terminal via depending on networked server.
Therefore, monitoring association turn server by the monitoring code stream based on Transmission Control Protocol be converted to based on regard networking protocol monitoring Code stream, specifically, monitoring association turn server and are first decoded the monitoring code stream based on Transmission Control Protocol, then again based on view connection FidonetFido is packaged it, obtains the monitoring code stream based on view networking protocol.Monitoring association turns server by view networking, by base It is sent to view networked server in the monitoring code stream depending on networking protocol, then by view networked server by view networking, it will be based on view The monitoring code stream of networking protocol is sent to terminal.After terminal receives monitoring code stream, it is decoded, the operation such as broadcasting, with Just user can check the monitor video by acquisition of target monitoring resource.
In a preferred embodiment, can be according to the downstream communications link configured to terminal depending on networked server, it will Terminal is sent to based on the monitoring code stream depending on networking protocol.
In practical applications, networking is regarded as the network with centralized control functions, including main control server and undernet Equipment, which includes terminal, and one of the core idea depending on networking is, by notifying to exchange by main control server Equipment is directed to when time downstream communications link of service matches table, and the table for being then based on the configuration carries out the transmission of data packet.
That is, including: depending on the communication means in networking
Main control server configuration is when time downstream communications link of service.
Work as time data packet of service for what source terminal was sent, is sent to target terminal according to the downstream communications link.
In embodiments of the present invention, it includes: notice when the downlink of secondary service is logical that time downstream communications link of service is worked as in configuration Believe that switching equipment involved in link matches table.
It furthermore, include: the configured table of inquiry according to downstream communications link transmission, switching equipment is received to institute Data packet is transmitted by corresponding port.
In the concrete realization, service includes unicast communication service and Multicast Communication Service.I.e. either cast communication is still Unicast communication can realize the communication in view networking using the above-mentioned core idea with table-table.
As previously mentioned, view networking includes access mesh portions, in access net, which is node server, under The grade network equipment includes access switch and terminal.
For the unicast communication service in access net, the main control server configuration is when time downlink communication chain of service The step of road, may comprise steps of:
Sub-step S11, the service request protocol package that main control server is initiated according to source terminal are obtained when time downlink of service Communication link information, downstream communications link information include participating in when time downlink of the main control server of service and access switch Communication port information.
Sub-step S12, downstream communication ports information of the main control server according to main control server, data packet inside it The downlink port that setting is oriented to when time data packet of service in address table;And believe according to the downstream communication ports of access switch Breath, to corresponding access switch sending port configuration order.
Sub-step S13, access switch according in port configuration command data packet addressed table inside it, setting when time The downlink port that the data packet of service is oriented to.
For the Multicast Communication Service (such as video conference) in access net, main control server is obtained when under time service The step of row communication link information may include following sub-step:
Sub-step S21, main control server obtain the service request agreement for the application Multicast Communication Service that target terminal is initiated It wraps, includes the access net address of service type information, service content information and target terminal in service request protocol package.
It wherein, include service number in service content information.
Sub-step S22, main control server according to the service number in preset content-address mapping table, extraction source The access net address of terminal.
Sub-step S23, main control server obtains the corresponding multicast address of source terminal, and distributes to target terminal;And according to According to the access net address of service type information, source terminal and target terminal, the communication link information when time multicast services is obtained.
It can realize by protocol conversion in the embodiment of the present invention and share the monitor video of third party's monitor supervision platform to view In networking;And monitoring association and turning server can also support third party's monitor supervision platform to push monitor video by TCP mode, thus The type for increasing third party's monitor supervision platform reduces the limitation of third party's monitor supervision platform push mode, is more widely applied.
In summary, the embodiment of the present invention, which proposes a kind of monitoring association and turns server, receives code stream using TCP aggressive mode Mode transfers monitoring code stream to junior's third party's monitor supervision platform, after monitoring code stream is handled, is sent by view networking protocol To a kind of scheme of view networked server.
Referring to Fig. 6, a kind of schematic diagram of bit stream process of the embodiment of the present invention two is shown.It will be appreciated from fig. 6 that this hair The bit stream process of bright embodiment may include: terminal (adjusting stream side) by stream request will be adjusted to be sent to view connection depending on networking protocol Network server, then initiate to adjust stream request from turning server to monitoring association depending on networked server.Monitoring association turns server and receives to come from Tune stream depending on networked server is requested, and definition receives monitoring code stream with TCP aggressive mode, is monitored using Session Initiation Protocol to third party Platform sends the request of INVITE tune stream.After third party's monitor supervision platform receives the request of INVITE tune stream, gets monitoring association and turn service Device is to receive monitoring code stream with TCP aggressive mode and monitor IP address and port information that association turns server, after handling accordingly, 200ok response message is replied using Session Initiation Protocol.Monitoring association turns after server receives 200ok response message, using Session Initiation Protocol to Third party's monitor supervision platform sends ACK confirmation message.Third party's monitor supervision platform starts push monitoring code stream to monitoring using Transmission Control Protocol Association turns reception IP and the port of server.After monitoring association turns server to code stream progress protocol conversion is received, view is used to network Agreement will monitor code stream and be sent to view networked server, then by being sent to terminal for code stream is monitored depending on networked server.
Because Transmission Control Protocol is reliable protocol, more reliable bit stream can be provided, some monitoring docking service provider makes Monitoring code stream is pushed with Transmission Control Protocol.Access is only supported to push the third of monitoring code stream in a manner of UDP if monitoring association turns server Square monitor supervision platform can not access such flat then encountering when pushing third party's monitor supervision platform of monitoring code stream using TCP mode Platform, therefore the range supported is narrow.In the embodiment of the present invention, turns to increase newly on server in monitoring association and support with TCP active mould Formula receives the mode of monitoring code stream, monitors the access of monitor supervision platform, to the third party based on Transmission Control Protocol transmission code stream to solve to supervise Control association turns server and only supports the technical issues of docking third party's monitor supervision platform with udp protocol transmission code stream, to promote monitoring Association turns the support docking platform range of server, and compatibility is more preferable.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 7, a kind of structural block diagram of bit stream device of the embodiment of the present invention is shown.The embodiment of the present invention Bit stream device can be applied in view networking, may include that terminal, view networked server and monitoring association turn in depending on networking Server may include third party's monitor supervision platform in internet.
The bit stream device of the embodiment of the present invention may include the following module for being located at and monitoring and assisting and turn in server:
The monitoring association turns server and includes:
First receiving module 701 is sent, based on view connection for receiving the terminal via the view networked server The first of fidonetFido adjusts stream request;
Judgment module 702, for adjusting stream request according to described first, whether judge push monitoring code stream is with the side TCP Third party's monitor supervision platform of formula push;
Module 703 is established, if being judged as YES for the judgment module, is established between third party's monitor supervision platform TCP connection;
Second receiving module 704, for receiving third party's monitor supervision platform push, the monitoring code based on Transmission Control Protocol Stream;
Sending module 705, for the monitoring code stream based on Transmission Control Protocol to be converted to the monitoring based on view networking protocol Code stream, and the terminal is sent to depending on networked server via described.
In a preferred embodiment, described to establish module, it is specifically used for creation TCP Client, and establish the TCP Connection in client and third party's monitor supervision platform between preset TCP server.
In a preferred embodiment, the module of establishing includes: acquisition submodule, for obtaining third party's prison Control the IP address and port information of preset TCP server in platform;Submodule is created, for creating TCP Client, by itself Receive the IP address and port information of code stream, IP address and port information as the TCP Client;Submodule is connected, is used In the IP address and port information of IP address and port information and the TCP server using the TCP Client, build Stand the connection between the TCP Client and the TCP server.
In a preferred embodiment, the acquisition submodule includes: protocol conversion subelement, is used for described first It adjusts stream request to be converted to the second tune stream request based on Session Initiation Protocol, and adjusts stream to request to be sent to the third party for described second Monitor supervision platform;Described second adjusts stream to request to turn the transport protocol of server including the monitoring association to be Transmission Control Protocol, and transmission mode is TCP aggressive mode;Receiving subelement is responded, is based on the transport protocol for receiving third party's monitor supervision platform as TCP association View, transmission mode are TCP aggressive mode, the response message for adjusting stream request to return for described second;The response message includes The IP address and port information of the TCP server.
In a preferred embodiment, second receiving module is specifically used for receiving by the TCP Client What third party's monitor supervision platform was pushed by the TCP server, the monitoring code stream based on Transmission Control Protocol.
In a preferred embodiment, the monitoring association turns the multiple monitoring resources of server connection, third party's prison It controls platform and connects multiple monitoring resources, the first tune stream request includes target monitoring resource identification.The judgment module includes: Judging submodule is identified, for judging the corresponding target monitoring resource of the target monitoring resource identification, if connection is with the side TCP Third party's monitor supervision platform of formula push;Submodule is determined, if being judged as YES for the mark judging submodule, it is determined that push Monitoring code stream is the third party's monitor supervision platform pushed in a manner of TCP.
It can realize by protocol conversion in the embodiment of the present invention and share the monitor video of third party's monitor supervision platform to view In networking;And monitoring association and turning server can also support third party's monitor supervision platform to push monitor video by TCP mode, thus The type for increasing third party's monitor supervision platform reduces the limitation of third party's monitor supervision platform push mode, is more widely applied.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of code stream transmission method provided by the present invention and a kind of bit stream device, detailed Jie has been carried out It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (10)

1. a kind of code stream transmission method, which is characterized in that the method be applied to view networking in, view networking in include terminal, Turn server depending on networked server and monitoring association, include third party's monitor supervision platform in internet, which comprises
The monitoring association turns server and receives the terminal, sends via the view networked server, based on view networking protocol First adjust stream request;
The monitoring association turns server and adjusts stream request according to described first, and whether judge push monitoring code stream is in a manner of TCP Third party's monitor supervision platform of push;
If the monitoring association turns server and is judged as YES, the TCP connection between third party's monitor supervision platform is established;
The monitoring association turns server and receives third party's monitor supervision platform push, the monitoring code stream based on Transmission Control Protocol;
The monitoring association turns server and the monitoring code stream based on Transmission Control Protocol is converted to the monitoring code based on view networking protocol Stream, and the terminal is sent to depending on networked server via described.
2. the method according to claim 1, wherein between the foundation and third party's monitor supervision platform The step of TCP connection, comprising:
The monitoring association turns server creation TCP Client, and establishes in the TCP Client and third party's monitor supervision platform Connection between preset TCP server.
3. according to the method described in claim 2, and building it is characterized in that, monitoring association turns server creation TCP Client The step of standing the connection in the TCP Client and third party's monitor supervision platform between preset TCP server, comprising:
The monitoring association turns server and obtains the IP address of preset TCP server and port letter in third party's monitor supervision platform Breath;
The monitoring association turns server creation TCP Client, itself is received to the IP address and port information of code stream, as described The IP address and port information of TCP Client;
The monitoring association turns the IP address and port information and the TCP server of TCP Client described in server by utilizing IP address and port information establish the connection between the TCP Client and the TCP server.
4. according to the method described in claim 3, it is characterized in that, monitoring association, which turns server, obtains third party's monitoring In platform the step of the IP address and port information of preset TCP server, comprising:
The monitoring association turns server is converted to the first tune stream request based on Session Initiation Protocol second and stream is adjusted to request, and will Described second adjusts stream request to be sent to third party's monitor supervision platform;Described second adjusts stream request to turn service including monitoring association The transport protocol of device is Transmission Control Protocol, and transmission mode is TCP aggressive mode;
The monitoring association turns server to receive third party's monitor supervision platform to be based on the transport protocol to be Transmission Control Protocol, transmits mould Formula is TCP aggressive mode, the response message for adjusting stream request to return for described second;The response message includes the TCP clothes The IP address and port information of business device.
5. according to the method described in claim 2, it is characterized in that, monitoring association, which turns server, receives third party's monitoring Platform push, the step of monitoring code stream based on Transmission Control Protocol, comprising:
The monitoring association turns server by the TCP Client, receives third party's monitor supervision platform and is serviced by the TCP Device push, the monitoring code stream based on Transmission Control Protocol.
6. the method according to claim 1, wherein monitoring association, which turns server, connects multiple monitoring resources, Third party's monitor supervision platform connects multiple monitoring resources, and described first adjusts stream request to include target monitoring resource identification,
The monitoring association turns server and adjusts stream request according to described first, and whether judge push monitoring code stream is in a manner of TCP The step of third party's monitor supervision platform of push, comprising:
The monitoring association turns server and judges the corresponding target monitoring resource of target monitoring resource identification, if connection is with the side TCP Third party's monitor supervision platform of formula push;
If the monitoring association turns server and is judged as YES, it is determined that push monitoring code stream is the third party pushed in a manner of TCP Monitor supervision platform.
7. a kind of bit stream device, which is characterized in that described device be applied to view networking in, view networking in include terminal, Turn server depending on networked server and monitoring association, include third party's monitor supervision platform in internet, the monitoring association turns server Include:
First receiving module is sent, based on view networking protocol for receiving the terminal via the view networked server First adjusts stream request;
Whether pushing in a manner of TCP for push monitoring code stream judged for adjusting stream request according to described first for judgment module Third party's monitor supervision platform;
Module is established, if being judged as YES for the judgment module, the TCP established between third party's monitor supervision platform connects It connects;
Second receiving module, for receiving third party's monitor supervision platform push, the monitoring code stream based on Transmission Control Protocol;
Sending module, for the monitoring code stream based on Transmission Control Protocol to be converted to the monitoring code stream based on view networking protocol, and The terminal is sent to depending on networked server via described.
8. device according to claim 7, which is characterized in that it is described to establish module, it is specifically used for creation TCP Client, And establish the connection in the TCP Client and third party's monitor supervision platform between preset TCP server.
9. device according to claim 8, which is characterized in that the module of establishing includes:
Acquisition submodule, for obtaining the IP address and port information of preset TCP server in third party's monitor supervision platform;
Submodule is created, for creating TCP Client, itself is received to the IP address and port information of code stream, as the TCP The IP address and port information of client;
Submodule is connected, the IP for IP address and port information and the TCP server using the TCP Client Address and port information establish the connection between the TCP Client and the TCP server.
10. device according to claim 9, which is characterized in that the acquisition submodule includes:
Protocol conversion subelement, for adjusting stream request to be converted to the second tune stream request based on Session Initiation Protocol for described first, and will Described second adjusts stream request to be sent to third party's monitor supervision platform;Described second adjusts stream request to turn service including monitoring association The transport protocol of device is Transmission Control Protocol, and transmission mode is TCP aggressive mode;
Receiving subelement is responded, is Transmission Control Protocol for receiving third party's monitor supervision platform to be based on the transport protocol, transmits mould Formula is TCP aggressive mode, the response message for adjusting stream request to return for described second;The response message includes the TCP clothes The IP address and port information of business device.
CN201811280772.XA 2018-10-30 2018-10-30 Code stream transmission method and device Active CN109547417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811280772.XA CN109547417B (en) 2018-10-30 2018-10-30 Code stream transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811280772.XA CN109547417B (en) 2018-10-30 2018-10-30 Code stream transmission method and device

Publications (2)

Publication Number Publication Date
CN109547417A true CN109547417A (en) 2019-03-29
CN109547417B CN109547417B (en) 2021-06-11

Family

ID=65845614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811280772.XA Active CN109547417B (en) 2018-10-30 2018-10-30 Code stream transmission method and device

Country Status (1)

Country Link
CN (1) CN109547417B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110139074A (en) * 2019-05-10 2019-08-16 视联动力信息技术股份有限公司 A kind of apparatus control method and system based on view networking
CN110166740A (en) * 2019-04-10 2019-08-23 视联动力信息技术股份有限公司 A kind of method and apparatus of monitoring resource processing
CN110198345A (en) * 2019-05-06 2019-09-03 视联动力信息技术股份有限公司 A kind of data request method, system and device and storage medium
CN110213531A (en) * 2019-05-06 2019-09-06 视联动力信息技术股份有限公司 Monitoring video processing method and processing device
CN110445761A (en) * 2019-07-10 2019-11-12 视联动力信息技术股份有限公司 A kind of video drawing stream method and device
CN110519009A (en) * 2019-08-05 2019-11-29 视联动力信息技术股份有限公司 A kind of data pack transmission method and device
CN110581846A (en) * 2019-08-22 2019-12-17 视联动力信息技术股份有限公司 Monitoring video processing and system
CN111314659A (en) * 2020-02-17 2020-06-19 视联动力信息技术股份有限公司 Monitoring code stream pushing method, device, system, electronic equipment and medium
CN111683268A (en) * 2020-04-28 2020-09-18 视联动力信息技术股份有限公司 Monitoring data display method, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686072A (en) * 2013-11-15 2014-03-26 北京视联动力国际信息技术有限公司 Video internet video monitoring method and system, protocol conversion server, and video internet server
CN106161335A (en) * 2015-03-25 2016-11-23 北京视联动力国际信息技术有限公司 A kind for the treatment of method and apparatus of network packet
CN106303359A (en) * 2015-05-14 2017-01-04 北京视联动力国际信息技术有限公司 The processing method of a kind of network conversion and equipment
CN106341563A (en) * 2015-07-06 2017-01-18 北京视联动力国际信息技术有限公司 Terminal communication based echo suppression method and device
CN108012106A (en) * 2016-11-01 2018-05-08 北京视联动力国际信息技术有限公司 A kind of method and system regarding networking monitoring source synchronous
CN108063741A (en) * 2016-11-07 2018-05-22 北京视联动力国际信息技术有限公司 A kind of transport protocol conversion method and apparatus
CN108173804A (en) * 2016-12-07 2018-06-15 北京视联动力国际信息技术有限公司 It is a kind of to access the method for internet and regarding connection cat client by regarding networking

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686072A (en) * 2013-11-15 2014-03-26 北京视联动力国际信息技术有限公司 Video internet video monitoring method and system, protocol conversion server, and video internet server
CN106161335A (en) * 2015-03-25 2016-11-23 北京视联动力国际信息技术有限公司 A kind for the treatment of method and apparatus of network packet
CN106303359A (en) * 2015-05-14 2017-01-04 北京视联动力国际信息技术有限公司 The processing method of a kind of network conversion and equipment
CN106341563A (en) * 2015-07-06 2017-01-18 北京视联动力国际信息技术有限公司 Terminal communication based echo suppression method and device
CN108012106A (en) * 2016-11-01 2018-05-08 北京视联动力国际信息技术有限公司 A kind of method and system regarding networking monitoring source synchronous
CN108063741A (en) * 2016-11-07 2018-05-22 北京视联动力国际信息技术有限公司 A kind of transport protocol conversion method and apparatus
CN108173804A (en) * 2016-12-07 2018-06-15 北京视联动力国际信息技术有限公司 It is a kind of to access the method for internet and regarding connection cat client by regarding networking

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166740A (en) * 2019-04-10 2019-08-23 视联动力信息技术股份有限公司 A kind of method and apparatus of monitoring resource processing
CN110198345A (en) * 2019-05-06 2019-09-03 视联动力信息技术股份有限公司 A kind of data request method, system and device and storage medium
CN110213531A (en) * 2019-05-06 2019-09-06 视联动力信息技术股份有限公司 Monitoring video processing method and processing device
CN110198345B (en) * 2019-05-06 2021-07-20 视联动力信息技术股份有限公司 Data request method, system and device and storage medium
CN110139074A (en) * 2019-05-10 2019-08-16 视联动力信息技术股份有限公司 A kind of apparatus control method and system based on view networking
CN110445761A (en) * 2019-07-10 2019-11-12 视联动力信息技术股份有限公司 A kind of video drawing stream method and device
CN110519009A (en) * 2019-08-05 2019-11-29 视联动力信息技术股份有限公司 A kind of data pack transmission method and device
CN110581846A (en) * 2019-08-22 2019-12-17 视联动力信息技术股份有限公司 Monitoring video processing and system
CN111314659A (en) * 2020-02-17 2020-06-19 视联动力信息技术股份有限公司 Monitoring code stream pushing method, device, system, electronic equipment and medium
CN111314659B (en) * 2020-02-17 2022-11-15 视联动力信息技术股份有限公司 Monitoring code stream pushing method, device, system, electronic equipment and medium
CN111683268A (en) * 2020-04-28 2020-09-18 视联动力信息技术股份有限公司 Monitoring data display method, device, equipment and medium
CN111683268B (en) * 2020-04-28 2023-11-21 视联动力信息技术股份有限公司 Monitoring data display method, device, equipment and medium

Also Published As

Publication number Publication date
CN109547417B (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN108121588B (en) A kind of method and its view networking access server of access external resource
CN108881133B (en) A kind of communication means and device of media data
CN109547417A (en) Code stream transmission method and device
CN108012106B (en) A kind of method and system regarding networking monitoring source synchronous
CN109120946A (en) The method and apparatus for watching live streaming
CN108810456A (en) A kind of monitoring video flow transfers method and system
CN109743595A (en) Terminal data synchronous method and device
CN108322809A (en) The method and system that control video file plays under depending on networking under a kind of internet
CN109525854A (en) Treating method and apparatus is broadcast live
CN109889780A (en) Method of data synchronization and device
CN110087102A (en) Method for inquiring status, device and storage medium
CN109167962A (en) It is a kind of to turn server depending on networked resources method for releasing and monitoring association
CN109068086A (en) A kind of processing method and system of visual telephone service
CN109547731A (en) A kind of methods of exhibiting and system of video conference
CN109743536A (en) A kind of method and apparatus of video data access
CN109379254A (en) A kind of detection method and system of the network connection based on video conference
CN110049341A (en) Method for processing video frequency and device
CN109788369A (en) Terminal control method and device
CN110233982A (en) A kind of monitoring method and device based on view networking
CN109802952A (en) Monitoring data synchronous method and device
CN108989850A (en) A kind of video playing control method and control system
CN108881791B (en) A kind of conference control method and Conference control device based on view networking
CN108880830B (en) A kind of data back up method and device based on video conference
CN109889516A (en) A kind of method for building up and device of session channel
CN109842630A (en) Method for processing video frequency and device

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