CN109547417B - Code stream transmission method and device - Google Patents

Code stream transmission method and device Download PDF

Info

Publication number
CN109547417B
CN109547417B CN201811280772.XA CN201811280772A CN109547417B CN 109547417 B CN109547417 B CN 109547417B CN 201811280772 A CN201811280772 A CN 201811280772A CN 109547417 B CN109547417 B CN 109547417B
Authority
CN
China
Prior art keywords
monitoring
tcp
server
protocol
code stream
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
CN201811280772.XA
Other languages
Chinese (zh)
Other versions
CN109547417A (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

Images

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 invention provides a code stream transmission method and a code stream transmission device, which are applied to a video network. The method comprises the following steps: the monitoring protocol conversion server receives a first stream adjusting request which is sent by a terminal through a video networking server and is based on a video networking protocol; judging whether the pushed monitoring code stream is a third-party monitoring platform pushed in a TCP mode or not according to the first flow adjusting request; if the TCP connection is judged to be the connection, a TCP connection with a third-party monitoring platform is established; receiving a monitoring code stream which is pushed by a third-party monitoring platform and is based on a TCP (transmission control protocol); and converting the monitoring code stream based on the TCP protocol into a monitoring code stream based on a video networking protocol, and sending the monitoring code stream to the terminal through the video networking server. According to the embodiment of the invention, the monitoring video of the third-party monitoring platform can be shared in the video network through protocol conversion, the type of the third-party monitoring platform is increased, the limitation of the pushing mode of the third-party monitoring platform is reduced, and the application is wider.

Description

Code stream transmission method and device
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a code stream transmission method and a code stream transmission apparatus.
Background
Video surveillance is an important component of security systems. Video monitoring is widely applied to many occasions due to intuition, accuracy, timeliness and rich information content. In recent years, with the rapid development of computers, networks, image processing and transmission technologies, video monitoring technologies have been developed. The traditional monitoring system comprises front-end monitoring equipment, a transmission cable and a video monitoring platform. The front-end monitoring equipment transmits the collected monitoring video to the video monitoring platform, and a user can check the monitoring video on the video monitoring platform.
However, in the prior art, a video monitoring platform only supports pushing a monitoring video in a UDP (User Datagram Protocol) mode. Therefore, the prior art has large limitation, so that the video monitoring platform cannot push the monitoring video in a non-UDP mode.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a code stream transmission method and a corresponding code stream transmission apparatus that overcome or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a code stream transmission method, which is applied to a video network, wherein the video network includes a terminal, a video network server and a monitoring protocol server, the internet includes a third party monitoring platform, and the method includes:
the monitoring protocol conversion server receives a first stream adjusting request based on a video networking protocol, which is sent by the terminal through the video networking server;
the monitoring coordination conversion server judges whether the monitoring code stream pushed by the monitoring coordination conversion server is a third-party monitoring platform pushed in a TCP mode or not according to the first stream adjustment request;
if the monitoring protocol conversion server judges that the monitoring protocol conversion server is yes, establishing TCP connection with the third-party monitoring platform;
the monitoring co-transformation server receives a monitoring code stream which is pushed by the third-party monitoring platform and is based on a TCP (transmission control protocol);
and the monitoring protocol conversion server converts the monitoring code stream based on the TCP protocol into a monitoring code stream based on a video networking protocol, and sends the monitoring code stream based on the video networking protocol to the terminal through the video networking server.
Preferably, the step of establishing a TCP connection with the third party monitoring platform includes: and the monitoring protocol conversion server creates a TCP client and establishes connection between the TCP client and a TCP server preset in the third-party monitoring platform.
Preferably, the step of the monitoring protocol conversion server creating a TCP client and establishing a connection between the TCP client and a TCP server preset in the third party monitoring platform includes: the monitoring co-transformation server acquires an IP address and port information of a TCP server preset in the third-party monitoring platform; the monitoring protocol conversion server creates a TCP client, and takes the IP address and port information of the code stream received by the monitoring protocol conversion server as the IP address and port information of the TCP client; and the monitoring protocol conversion server establishes connection between the TCP client and the TCP server by utilizing the IP address and the port information of the TCP client and the IP address and the port information of the TCP server.
Preferably, the step of acquiring the IP address and the port information of the TCP server preset in the third party monitoring platform by the monitoring co-transformation server includes: the monitoring coordination and transformation server converts the first flow adjustment request into a second flow adjustment request based on an SIP protocol and sends the second flow adjustment request to the third-party monitoring platform; the second flow regulation request comprises that the transmission protocol of the monitoring protocol conversion server is a TCP protocol, and the transmission mode is a TCP active mode; the monitoring protocol conversion server receives a response message returned by the third-party monitoring platform aiming at the second flow regulation request based on the fact that the transmission protocol is a TCP protocol and the transmission mode is a TCP active mode; the response message includes the IP address and port information of the TCP server.
Preferably, the step of receiving, by the monitoring co-transformation server, the monitoring code stream based on the TCP protocol and pushed by the third-party monitoring platform includes: and the monitoring protocol conversion server receives a monitoring code stream which is pushed by the third-party monitoring platform through the TCP server and is based on a TCP protocol through the TCP client.
Preferably, the monitoring protocol conversion server is connected to a plurality of monitoring resources, the third party monitoring platform is connected to a plurality of monitoring resources, the first stream adjustment request includes a target monitoring resource identifier, and the monitoring protocol conversion server determines whether the monitoring code stream is pushed by the TCP method according to the first stream adjustment request, including: the monitoring protocol conversion server judges whether a target monitoring resource corresponding to the target monitoring resource identifier is connected with a third-party monitoring platform pushed in a TCP mode; and if the monitoring protocol conversion server judges that the monitoring code stream is pushed by the monitoring protocol conversion server, determining that the monitoring code stream is pushed by a third-party monitoring platform in a TCP mode.
On the other hand, the embodiment of the invention also discloses a code stream transmission device, the device is applied to the video network, the video network comprises a terminal, a video network server and a monitoring transfer server, the internet comprises a third-party monitoring platform, and the monitoring transfer server comprises:
the first receiving module is used for receiving a first stream adjusting request which is sent by the terminal through the video networking server and is based on a video networking protocol;
the judging module is used for judging whether the pushed monitoring code stream is a third-party monitoring platform pushed in a TCP mode or not according to the first flow adjusting request;
the establishing module is used for establishing TCP connection with the third-party monitoring platform if the judging module judges that the TCP connection is positive;
the second receiving module is used for receiving the monitoring code stream which is pushed by the third-party monitoring platform and is based on the TCP;
and the sending module is used for converting the monitoring code stream based on the TCP protocol into a monitoring code stream based on a video networking protocol and sending the monitoring code stream to the terminal through the video networking server.
Preferably, the establishing module is specifically configured to establish a TCP client, and establish a connection between the TCP client and a TCP server preset in the third-party monitoring platform.
Preferably, the establishing module comprises: the obtaining submodule is used for obtaining the IP address and the port information of a TCP server preset in the third-party monitoring platform; the creating submodule is used for creating a TCP client, and using the IP address and the port information of the code stream received by the TCP client as the IP address and the port information of the TCP client; and the connection submodule is used for establishing the connection between the TCP client and the TCP server by utilizing the IP address and the port information of the TCP client and the IP address and the port information of the TCP server.
Preferably, the acquisition sub-module includes: the protocol conversion subunit is used for converting the first flow adjustment request into a second flow adjustment request based on an SIP protocol and sending the second flow adjustment request to the third-party monitoring platform; the second flow regulation request comprises that the transmission protocol of the monitoring protocol conversion server is a TCP protocol, and the transmission mode is a TCP active mode; the response receiving subunit is configured to receive a response message, which is returned by the third-party monitoring platform based on that the transmission protocol is a TCP protocol and the transmission mode is a TCP active mode, and is addressed to the second flow adjustment request; the response message includes the IP address and port information of the TCP server.
In the embodiment of the invention, a monitoring protocol conversion server receives a first stream adjusting request which is sent by a terminal through a video networking server and is based on a video networking protocol; the monitoring co-transformation server judges whether the monitoring code stream pushed by the monitoring co-transformation server is a third-party monitoring platform pushed in a TCP mode or not according to the first stream adjustment request; if the monitoring protocol conversion server judges that the monitoring protocol conversion server is yes, establishing TCP connection with a third-party monitoring platform; the monitoring protocol conversion server receives a monitoring code stream based on a TCP protocol and pushed by a third-party monitoring platform; and the monitoring protocol conversion server converts the monitoring code stream based on the TCP protocol into a monitoring code stream based on a video networking protocol, and sends the monitoring code stream to the terminal through the video networking server. Therefore, in the embodiment of the invention, the monitoring video of the third-party monitoring platform can be shared to the video network through protocol conversion; and the monitoring Protocol conversion server can also support a third-party monitoring platform to push a monitoring video in a TCP (Transmission Control Protocol) mode, so that the types of the third-party monitoring platform are increased, the limitation of the pushing mode of the third-party monitoring platform is reduced, and the application is wider.
Drawings
FIG. 1 is a schematic networking diagram of a video network of the present invention;
FIG. 2 is a schematic diagram of a hardware architecture of a node server according to the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention;
fig. 5 is a flow chart illustrating steps of a method for transmitting a code stream according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a bitstream transmission process according to an embodiment of the present invention;
fig. 7 is a block diagram of a code stream transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
1. Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the network interface module 201, the CPU module 203, and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 based on the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
Access intersectionChanging a machine:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the data packet coming from the CPU module 204 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 208 is configured by the CPU module 204, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol conversion gateway
As shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deletion module 410 subtracts MAC DA, MAC SA, length or frame type (2byte) and enters the corresponding receiving buffer, otherwise, discards it;
the downlink network interface module 401 detects the sending buffer of the port, and if there is a packet, obtains the ethernet MAC DA of the corresponding terminal according to the video networking destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MAC SA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of data packets, and is 64 bytes if the data packet is a variety of protocol packets, and is 32+1024 or 1056 bytes if the data packet is a unicast data packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
Based on the characteristics of the video network, the code stream transmission scheme provided by the embodiment of the invention follows the protocol of the video network, can realize the sharing of the monitoring video of the third party monitoring platform into the video network through protocol conversion, reduces the limitation of the pushing mode of the third party monitoring platform, and has wider application.
The code stream transmission method of the embodiment of the invention can be applied to video networking. The video network can comprise a terminal, a video network server and a monitoring transfer server, the internet can comprise a third-party monitoring platform, and the monitoring transfer server can be respectively connected with the video network server and the third-party monitoring platform. The monitoring coordination and transformation server can be connected with a plurality of monitoring resources, the third-party monitoring platform can be connected with a plurality of monitoring resources, and one or more third-party monitoring platforms can be provided. The monitoring protocol server may be understood as a gateway, which is responsible for accessing external monitoring resources (e.g., on the internet) (which may also be described as monitoring devices) into the internet of view. For example, the monitoring resource may transmit the collected monitoring code stream to the monitoring protocol conversion server based on the corresponding internet protocol code, and the monitoring protocol conversion server may convert the monitoring code stream based on the internet protocol into the monitoring code stream based on the video networking protocol and transmit the monitoring code stream to the video networking, thereby implementing browsing and controlling the monitoring resource on the internet in the video networking.
In the embodiment of the invention, the terminal can be a video networking terminal. The video network terminal is a video network service landing device, an actual participant or a server of the video network service, and can be various conference set-top boxes, video telephone set-top boxes, operation teaching set-top boxes, streaming media gateways, storage gateways, media synthesizers and the like. The terminal of the video network needs to be registered on the video network server to carry out normal service. The terminal can also be a mobile terminal such as a mobile phone and a tablet personal computer registered on the video network server, or a software terminal such as an application program and a plug-in, etc. The video network server may be the node server described above. The third-party monitoring platform may be a public security system monitoring platform, a medical system monitoring platform, or the like, such as a monitoring docking server conforming to the GB28181 standard.
Referring to fig. 5, a flowchart illustrating steps of a method for transmitting a code stream according to an embodiment of the present invention is shown.
The code stream transmission method of the embodiment of the invention can comprise the following steps:
step 501, the monitoring protocol conversion server receives a first stream adjusting request based on a video networking protocol, which is sent by the terminal through the video networking server.
When a user wants to watch the monitoring video collected by a certain monitoring resource or certain monitoring resources, corresponding operation can be executed on the terminal so as to trigger the first stream adjusting request. For example, the identifiers of the monitoring resources may be displayed on the terminal, and the user may select one or more target monitoring resource identifiers from the identifiers and click a view button, which may trigger the terminal to generate the first traffic adjustment request.
The terminal can send the first stream adjustment request to the monitoring coordination and transformation server through the video network server. In specific implementation, the terminal and the video networking server can perform bidirectional interaction based on a video networking protocol, and the video networking server and the monitoring protocol conversion server can perform bidirectional interaction based on the video networking protocol. Therefore, the terminal can package the first stream adjusting request based on the video networking protocol and send the first stream adjusting request based on the video networking protocol to the video networking server through the video networking; and then the video network server sends the first stream adjusting request based on the video network protocol to the monitoring protocol conversion server through the video network.
Step 502, the monitoring coordination conversion server judges whether the monitoring code stream pushed by the monitoring coordination conversion server is a third-party monitoring platform pushed by a TCP (transmission control protocol) mode according to the first stream adjustment request.
The monitoring co-transformation server and the third-party monitoring platform can be connected with a plurality of monitoring resources, so that the monitoring resources which the user wants to check can be the monitoring resources connected with the monitoring co-transformation server or the monitoring resources connected with the third-party monitoring platform.
After receiving the first stream adjustment request, the monitoring protocol conversion server may determine, according to the first stream adjustment request, whether the monitoring code stream to be subsequently pushed is the monitoring protocol conversion server or a third-party monitoring platform. Moreover, if the third-party monitoring platform is used, the third-party monitoring platform may push the monitoring code stream in a TCP manner or may push the monitoring code stream in a UDP manner, so that the manner in which the third-party monitoring platform pushes the monitoring code stream may be further determined.
In a preferred embodiment, step 502 may include: the monitoring protocol conversion server judges whether a target monitoring resource corresponding to the target monitoring resource identifier is connected with a third-party monitoring platform pushed in a TCP mode; and if the monitoring protocol conversion server judges that the monitoring code stream is pushed by the third-party monitoring platform in a TCP mode, the monitoring protocol conversion server determines that the monitoring code stream is pushed by the third-party monitoring platform in the TCP mode.
In the embodiment of the present invention, the first traffic adjustment request may include information such as a target monitoring resource identifier, a terminal identifier, and a terminal user number. The monitoring co-transformation server may pre-store a corresponding relationship between the monitoring resource identifier and the monitoring resource connection device, for example, the connection device may be the monitoring co-transformation server or a third-party monitoring platform. For the third-party monitoring platform, a mode of pushing the code stream by the third-party monitoring platform may also be pre-stored, for example, the mode may be a TCP mode or a UDP mode. After receiving the first stream adjustment request, the monitoring protocol conversion server may determine a connection device of the target monitoring resource corresponding to the target monitoring resource identifier according to the pre-stored correspondence, and if the connection device is a third-party monitoring platform, further check a pre-stored mode of pushing the code stream by the third-party monitoring platform.
And 503, if the monitoring protocol conversion server judges that the third party monitoring platform is the TCP connection, the monitoring protocol conversion server establishes a TCP connection with the third party monitoring platform.
If the monitoring protocol conversion server judges that the monitoring code stream is pushed by the monitoring protocol conversion server, namely the connecting device of the target monitoring resource corresponding to the target monitoring resource identifier is the monitoring protocol conversion server, the monitoring protocol conversion server does not need to carry out special processing, can encapsulate the monitoring code stream of the target monitoring resource based on the video networking protocol, sends the monitoring code stream based on the video networking protocol to the video networking server, and then sends the monitoring code stream to the terminal sending the first stream adjusting request through the video networking server, and a user can check the corresponding monitoring video on the terminal.
If the monitoring co-rotation server judges that the monitoring code stream pushed by the third party monitoring platform in the UDP mode is pushed, and the monitoring co-rotation server in the embodiment of the invention can receive the monitoring code stream pushed by the third party monitoring platform in the UDP mode by default. Therefore, the monitoring protocol conversion server does not need to perform special processing, can receive a monitoring code stream based on UDP (user Datagram protocol) encapsulation and pushed by a third-party monitoring platform in a default mode, can convert the monitoring code stream based on the UDP into a monitoring code stream based on a video networking protocol, sends the monitoring code stream based on the video networking protocol to the video networking server, and then sends the monitoring code stream to the terminal sending the first stream adjusting request through the video networking server, and a user can check a corresponding monitoring video on the terminal.
If the monitoring protocol conversion server judges that the monitoring code stream is pushed by a third-party monitoring platform in a TCP mode, the monitoring protocol conversion server can establish TCP connection with the third-party monitoring platform.
In a preferred embodiment, step 503 may include: and the monitoring protocol conversion server creates a TCP client and establishes connection between the TCP client and a TCP server preset in a third-party monitoring platform. The method specifically comprises the following steps:
a1, the monitoring protocol conversion server obtains the IP address and the port information of the TCP server preset in the third party monitoring platform.
If the third-party monitoring platform pushes the monitoring code stream in a TCP mode, a TCP server can be preset in the third-party monitoring platform, and the monitoring code stream is pushed through the TCP server. The monitoring Protocol conversion server may obtain an IP (Internet Protocol) address and port information of the TCP server from the third party monitoring platform, where the port information may include a port number, a port name, and the like.
In a specific implementation, the step a1 may include:
a11, the monitoring coordination server converts the first flow regulation request into a second flow regulation request based on SIP (Session Initiation Protocol), and sends the second flow regulation request to the third party monitoring platform.
A12, the monitoring protocol conversion server receives a response message returned by the third party monitoring platform aiming at the second flow regulation request based on the transmission protocol being a TCP protocol and the transmission mode being a TCP active mode.
On the monitoring protocol conversion server, if a monitoring code stream based on a TCP protocol is received, the transmission mode may be divided into a TCP active mode (active) and a TCP passive mode (passive). If the monitoring protocol conversion server judges that the monitoring code stream is pushed by a third-party monitoring platform in a TCP mode, the transmission protocol can be configured to be a TCP protocol, and the transmission mode is a TCP active mode. The monitoring protocol conversion server converts the first flow regulation request into a second flow regulation request based on SIP protocol encapsulation, such as an INVITE flow regulation request, and sends the second flow regulation request based on the SIP protocol to the third-party monitoring platform. The parameters attached to the second tuning request may include an IP address and port information of a received code stream of the monitoring protocol conversion server, a transmission protocol of the monitoring protocol conversion server is a TCP protocol, and a transmission mode is a TCP active mode, and the like.
After receiving the second flow adjustment request, the third-party monitoring platform acquires that the transmission protocol of the monitoring protocol conversion server included in the second flow adjustment request is a TCP protocol, and the transmission mode is a TCP active mode, may acquire the IP address and the port information of the TCP server included in the second flow adjustment request, and returns a response message based on the SIP protocol, such as a 200ok response message, to the monitoring protocol conversion server. The parameters accompanying the response message may include the IP address and port information of the TCP server, and the like.
A2, the monitoring protocol conversion server creates a TCP client, and takes the IP address and port information of the code stream received by the monitoring protocol conversion server as the IP address and port information of the TCP client.
After receiving the response message returned by the third-party monitoring platform, the monitoring protocol conversion server can use the IP address and the port information of the self-received code stream to create a TCP client, and the TCP client is used as the IP address and the port information of the TCP client.
A3, the monitoring protocol conversion server uses the IP address and the port information of the TCP client and the IP address and the port information of the TCP server to establish the connection between the TCP client and the TCP server.
After the monitoring protocol conversion server connects the established TCP client to a preset TCP server in the third party monitoring platform, an acknowledgement message based on the SIP protocol, such as an ACK acknowledgement message, may also be sent to the third party monitoring platform. And then, the monitoring co-transformation server can receive the monitoring code stream pushed by the third-party monitoring platform in a TCP mode in a TCP active mode.
And 504, the monitoring protocol conversion server receives the monitoring code stream which is pushed by the third-party monitoring platform and is based on the TCP protocol.
After receiving the confirmation message based on the SIP protocol sent by the monitoring co-rotating server, the third-party monitoring platform can acquire a monitoring code stream from the target monitoring resource, encapsulate the monitoring code stream based on the TCP protocol, and push the monitoring code stream based on the TCP protocol to the monitoring co-rotating server.
The monitoring protocol conversion server establishes connection between the TCP client and the TCP server of the third-party monitoring platform, so that the connection formed between the TCP client and the TCP server is a transmission channel of the monitoring code stream based on the TCP protocol. Therefore, the monitoring protocol conversion server can receive the monitoring code stream based on the TCP protocol, which is pushed by the third-party monitoring platform through the TCP server, through the TCP client. That is, the third-party monitoring platform may send the monitoring code stream based on the TCP protocol to the IP interface and the port of the TCP client of the monitoring co-transformation server through the IP interface and the port of the TCP server.
And 505, the monitoring protocol conversion server converts the monitoring code stream based on the TCP protocol into a monitoring code stream based on a video networking protocol, and sends the monitoring code stream based on the video networking protocol to the terminal through the video networking server.
And after receiving the monitoring code stream based on the TCP protocol returned by the third-party monitoring platform, the monitoring protocol conversion server returns the monitoring code stream to the terminal through the video networking server.
Therefore, the monitoring protocol conversion server converts the monitoring code stream based on the TCP protocol into the monitoring code stream based on the video networking protocol, and specifically, the monitoring protocol conversion server decodes the monitoring code stream based on the TCP protocol and then packages the monitoring code stream based on the video networking protocol to obtain the monitoring code stream based on the video networking protocol. The monitoring protocol conversion server sends the monitoring code stream based on the video networking protocol to the video networking server through the video networking, and then the video networking server sends the monitoring code stream based on the video networking protocol to the terminal through the video networking. And after receiving the monitoring code stream, the terminal decodes and plays the monitoring code stream, so that a user can check the monitoring video to be acquired of the target monitoring resource.
In a preferred embodiment, the video networking server may send the monitoring code stream based on the video networking protocol to the terminal according to a downlink communication link configured for the terminal.
In practical applications, the video network is a network with a centralized control function, and includes a master control server and a lower level network device, where the lower level network device includes a terminal, and one of the core concepts of the video network is to configure a table for a downlink communication link of a current service by notifying a switching device by the master control server, and then transmit a data packet based on the configured table.
Namely, the communication method in the video network includes:
and the master control server configures the downlink communication link of the current service.
And transmitting the data packet of the current service sent by the source terminal to the target terminal according to the downlink communication link.
In the embodiment of the present invention, configuring the downlink communication link of the current service includes: and informing the switching equipment related to the downlink communication link of the current service to allocate the table.
Further, transmitting according to the downlink communication link includes: the configured table is consulted, and the switching equipment transmits the received data packet through the corresponding port.
In particular implementations, the services include unicast communication services and multicast communication services. Namely, whether multicast communication or unicast communication, the core concept of the table matching-table can be adopted to realize communication in the video network.
As mentioned above, the video network includes an access network portion, in which the master server is a node server and the lower-level network devices include an access switch and a terminal.
For the unicast communication service in the access network, the step of configuring the downlink communication link of the current service by the master server may include the following steps:
and a substep S11, the main control server obtains the downlink communication link information of the current service according to the service request protocol packet initiated by the source terminal, wherein the downlink communication link information includes the downlink communication port information of the main control server and the access switch participating in the current service.
In the substep S12, the main control server sets a downlink port to which a packet of the current service is directed in a packet address table inside the main control server according to the downlink communication port information of the main control server; and sending a port configuration command to the corresponding access switch according to the downlink communication port information of the access switch.
In sub-step S13, the access switch sets the downstream port to which the packet of the current service is directed in its internal packet address table according to the port configuration command.
For a multicast communication service (e.g., video conference) in the access network, the step of the master server obtaining downlink information of the current service may include the following sub-steps:
in sub-step S21, the main control server obtains a service request protocol packet initiated by the target terminal and applying for the multicast communication service, where the service request protocol packet includes service type information, service content information, and an access network address of the target terminal.
Wherein, the service content information includes a service number.
And a substep S22, the main control server extracts the access network address of the source terminal in a preset content-address mapping table according to the service number.
In the substep of S23, the main control server obtains the multicast address corresponding to the source terminal and distributes the multicast address to the target terminal; and acquiring the communication link information of the current multicast service according to the service type information and the access network addresses of the source terminal and the target terminal.
In the embodiment of the invention, the monitoring video of the third-party monitoring platform can be shared in the video network through protocol conversion; and the monitoring co-transformation server can also support a third-party monitoring platform to push a monitoring video in a TCP mode, so that the types of the third-party monitoring platform are increased, the limitation of the pushing mode of the third-party monitoring platform is reduced, and the application is wider.
In summary, the embodiment of the present invention provides a scheme in which a monitoring protocol conversion server receives a code stream in a TCP active mode, calls a monitoring code stream to a lower-level third-party monitoring platform, processes the monitoring code stream, and sends the processed monitoring code stream to a video networking server through a video networking protocol.
Referring to fig. 6, a schematic diagram of a code stream transmission process according to a second embodiment of the present invention is shown. As can be seen from fig. 6, the code stream transmission process in the embodiment of the present invention may include: the terminal (the flow adjusting party) sends the flow adjusting request to the video network server through the video network protocol, and then the video network server initiates the flow adjusting request to the monitoring protocol conversion server. The monitoring protocol conversion server receives a stream adjusting request from the video network server, defines to receive a monitoring code stream in a TCP active mode, and sends an INVITE stream adjusting request to a third-party monitoring platform by using an SIP protocol. After receiving the INVITE stream adjustment request, the third-party monitoring platform acquires that the monitoring protocol conversion server receives the monitoring code stream and the IP address and the port information of the monitoring protocol conversion server in a TCP active mode, and replies a 200ok response message by using an SIP protocol after corresponding processing. And after receiving the 200ok response message, the monitoring co-transformation server sends an ACK (acknowledgement) message to the third-party monitoring platform by using an SIP (session initiation protocol). And the third-party monitoring platform starts to push the monitoring code stream to a receiving IP and a port of the monitoring co-transformation server by using a TCP protocol. And after the monitoring protocol conversion server performs protocol conversion on the received code stream, the monitoring code stream is sent to the video networking server by using a video networking protocol, and then the video networking server sends the monitoring code stream to the terminal.
Because the TCP protocol is a reliable protocol, it can provide more reliable stream transmission, and some monitoring and docking service providers push monitoring streams using the TCP protocol. If the monitoring co-rotation server only supports accessing a third-party monitoring platform which pushes the monitoring code stream in a UDP mode, the monitoring co-rotation server cannot access the third-party monitoring platform which pushes the monitoring code stream in a TCP mode when encountering the third-party monitoring platform which pushes the monitoring code stream in the TCP mode, so that the supported range is narrow. In the embodiment of the invention, a mode of supporting receiving the monitoring code stream in a TCP active mode is additionally arranged on the monitoring co-rotating server, and the monitoring co-rotating server is accessed to a third-party monitoring platform based on the TCP protocol transmission code stream, so that the technical problem that the monitoring co-rotating server only supports the connection of the UDP protocol transmission code stream to the third-party monitoring platform is solved, the range of the supporting connection platform of the monitoring co-rotating server is enlarged, and the compatibility is better.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 7, a block diagram of a code stream transmission apparatus according to an embodiment of the present invention is shown. The code stream transmission device of the embodiment of the invention can be applied to the video network, the video network can comprise a terminal, a video network server and a monitoring protocol conversion server, and the internet can comprise a third party monitoring platform.
The code stream transmission device of the embodiment of the invention can comprise the following modules in the monitoring cooperative transmission server:
the monitoring co-rotation server comprises:
a first receiving module 701, configured to receive a first streaming adjustment request based on a video networking protocol, sent by the terminal through the video networking server;
a determining module 702, configured to determine, according to the first stream adjustment request, whether the pushed monitoring code stream is a third-party monitoring platform that is pushed in a TCP manner;
an establishing module 703, configured to establish a TCP connection with the third-party monitoring platform if the determining module determines that the TCP connection is established;
a second receiving module 704, configured to receive a monitoring code stream pushed by the third-party monitoring platform and based on a TCP protocol;
a sending module 705, configured to convert the monitoring code stream based on the TCP protocol into a monitoring code stream based on a video networking protocol, and send the monitoring code stream to the terminal via the video networking server.
In a preferred embodiment, the establishing module is specifically configured to create a TCP client, and establish a connection between the TCP client and a TCP server preset in the third party monitoring platform.
In a preferred embodiment, the establishing module comprises: the obtaining submodule is used for obtaining the IP address and the port information of a TCP server preset in the third-party monitoring platform; the creating submodule is used for creating a TCP client, and using the IP address and the port information of the code stream received by the TCP client as the IP address and the port information of the TCP client; and the connection submodule is used for establishing the connection between the TCP client and the TCP server by utilizing the IP address and the port information of the TCP client and the IP address and the port information of the TCP server.
In a preferred embodiment, the acquisition sub-module includes: the protocol conversion subunit is used for converting the first flow adjustment request into a second flow adjustment request based on an SIP protocol and sending the second flow adjustment request to the third-party monitoring platform; the second flow regulation request comprises that the transmission protocol of the monitoring protocol conversion server is a TCP protocol, and the transmission mode is a TCP active mode; the response receiving subunit is configured to receive a response message, which is returned by the third-party monitoring platform based on that the transmission protocol is a TCP protocol and the transmission mode is a TCP active mode, and is addressed to the second flow adjustment request; the response message includes the IP address and port information of the TCP server.
In a preferred embodiment, the second receiving module is specifically configured to receive, by the TCP client, a monitoring code stream based on a TCP protocol, which is pushed by the third-party monitoring platform through the TCP server.
In a preferred embodiment, the monitoring coordination server is connected to a plurality of monitoring resources, the third-party monitoring platform is connected to a plurality of monitoring resources, and the first traffic adjustment request includes a target monitoring resource identifier. The judging module comprises: the identification judgment submodule is used for judging whether the target monitoring resource corresponding to the target monitoring resource identification is connected with a third-party monitoring platform pushed in a TCP mode; and the determining submodule is used for determining that the monitoring code stream is pushed by a third-party monitoring platform in a TCP mode if the identification judging submodule judges that the monitoring code stream is pushed by the third-party monitoring platform.
In the embodiment of the invention, the monitoring video of the third-party monitoring platform can be shared in the video network through protocol conversion; and the monitoring co-transformation server can also support a third-party monitoring platform to push a monitoring video in a TCP mode, so that the types of the third-party monitoring platform are increased, the limitation of the pushing mode of the third-party monitoring platform is reduced, and the application is wider.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above provides a code stream transmission method and a code stream transmission apparatus, which are introduced in detail, and the specific examples are applied herein to explain the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A code stream transmission method is characterized in that the method is applied to a video network, the video network comprises a terminal, a video network server and a monitoring protocol conversion server, the internet comprises a third-party monitoring platform, the monitoring protocol conversion server is connected with a plurality of monitoring resources, and the third-party monitoring platform is connected with the plurality of monitoring resources; the method comprises the following steps:
the monitoring protocol conversion server receives a first stream adjusting request based on a video networking protocol, which is sent by the terminal through the video networking server;
the monitoring coordination conversion server judges whether the monitoring code stream pushed by the monitoring coordination conversion server is a third-party monitoring platform pushed in a TCP mode or not according to the first stream adjustment request;
if the monitoring protocol conversion server judges that the monitoring protocol conversion server is yes, establishing TCP connection with the third-party monitoring platform;
the monitoring co-transformation server receives a monitoring code stream which is pushed by the third-party monitoring platform and is based on a TCP (transmission control protocol);
and the monitoring protocol conversion server converts the monitoring code stream based on the TCP protocol into a monitoring code stream based on a video networking protocol, and sends the monitoring code stream based on the video networking protocol to the terminal through the video networking server so as to browse and control monitoring resources on the Internet in the video networking.
2. The method of claim 1, wherein the step of establishing a TCP connection with the third party monitoring platform comprises:
and the monitoring protocol conversion server creates a TCP client and establishes connection between the TCP client and a TCP server preset in the third-party monitoring platform.
3. The method according to claim 2, wherein the step of the monitoring protocol conversion server creating a TCP client and establishing a connection between the TCP client and a TCP server preset in the third party monitoring platform comprises:
the monitoring co-transformation server acquires an IP address and port information of a TCP server preset in the third-party monitoring platform;
the monitoring protocol conversion server creates a TCP client, and takes the IP address and port information of the code stream received by the monitoring protocol conversion server as the IP address and port information of the TCP client;
and the monitoring protocol conversion server establishes connection between the TCP client and the TCP server by utilizing the IP address and the port information of the TCP client and the IP address and the port information of the TCP server.
4. The method according to claim 3, wherein the step of acquiring the IP address and port information of the TCP server preset in the third party monitoring platform by the monitoring co-transformation server comprises:
the monitoring coordination and transformation server converts the first flow adjustment request into a second flow adjustment request based on an SIP protocol and sends the second flow adjustment request to the third-party monitoring platform; the second flow regulation request comprises that the transmission protocol of the monitoring protocol conversion server is a TCP protocol, and the transmission mode is a TCP active mode;
the monitoring protocol conversion server receives a response message returned by the third-party monitoring platform aiming at the second flow regulation request based on the fact that the transmission protocol is a TCP protocol and the transmission mode is a TCP active mode; the response message includes the IP address and port information of the TCP server.
5. The method according to claim 2, wherein the step of receiving, by the monitoring co-transformation server, the TCP protocol-based monitoring code stream pushed by the third-party monitoring platform includes:
and the monitoring protocol conversion server receives a monitoring code stream which is pushed by the third-party monitoring platform through the TCP server and is based on a TCP protocol through the TCP client.
6. The method of claim 1, wherein the first throttling request comprises a target monitoring resource identification,
the monitoring protocol conversion server judges whether the monitoring code stream is pushed by a TCP mode or not according to the first stream adjusting request, and the step comprises the following steps:
the monitoring protocol conversion server judges whether a target monitoring resource corresponding to the target monitoring resource identifier is connected with a third-party monitoring platform pushed in a TCP mode;
and if the monitoring protocol conversion server judges that the monitoring code stream is pushed by the monitoring protocol conversion server, determining that the monitoring code stream is pushed by a third-party monitoring platform in a TCP mode.
7. The code stream transmission device is applied to a video network, wherein the video network comprises a terminal, a video network server and a monitoring transfer server, the internet comprises a third-party monitoring platform, the monitoring transfer server is connected with a plurality of monitoring resources, and the third-party monitoring platform is connected with the plurality of monitoring resources; the monitoring co-rotation server comprises:
the first receiving module is used for receiving a first stream adjusting request which is sent by the terminal through the video networking server and is based on a video networking protocol;
the judging module is used for judging whether the pushed monitoring code stream is a third-party monitoring platform pushed in a TCP mode or not according to the first flow adjusting request;
the establishing module is used for establishing TCP connection with the third-party monitoring platform if the judging module judges that the TCP connection is positive;
the second receiving module is used for receiving the monitoring code stream which is pushed by the third-party monitoring platform and is based on the TCP;
and the sending module is used for converting the monitoring code stream based on the TCP protocol into a monitoring code stream based on a video networking protocol and sending the monitoring code stream to the terminal through the video networking server so as to browse and control monitoring resources on the Internet in the video networking.
8. The apparatus according to claim 7, wherein the establishing module is specifically configured to create a TCP client, and establish a connection between the TCP client and a TCP server preset in the third party monitoring platform.
9. The apparatus of claim 8, wherein the establishing module comprises:
the obtaining submodule is used for obtaining the IP address and the port information of a TCP server preset in the third-party monitoring platform;
the creating submodule is used for creating a TCP client, and using the IP address and the port information of the code stream received by the TCP client as the IP address and the port information of the TCP client;
and the connection submodule is used for establishing the connection between the TCP client and the TCP server by utilizing the IP address and the port information of the TCP client and the IP address and the port information of the TCP server.
10. The apparatus of claim 9, wherein the acquisition submodule comprises:
the protocol conversion subunit is used for converting the first flow adjustment request into a second flow adjustment request based on an SIP protocol and sending the second flow adjustment request to the third-party monitoring platform; the second flow regulation request comprises that the transmission protocol of the monitoring protocol conversion server is a TCP protocol, and the transmission mode is a TCP active mode;
the response receiving subunit is configured to receive a response message, which is returned by the third-party monitoring platform based on that the transmission protocol is a TCP protocol and the transmission mode is a TCP active mode, and is addressed to the second flow adjustment request; the response message includes the IP address and port information of the TCP server.
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 CN109547417A (en) 2019-03-29
CN109547417B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166740B (en) * 2019-04-10 2021-06-29 视联动力信息技术股份有限公司 Method and device for monitoring resource processing
CN110213531B (en) * 2019-05-06 2022-02-15 视联动力信息技术股份有限公司 Monitoring video processing method and 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
CN110519009B (en) * 2019-08-05 2022-01-11 视联动力信息技术股份有限公司 Data packet transmission method and device
CN110581846A (en) * 2019-08-22 2019-12-17 视联动力信息技术股份有限公司 Monitoring video processing and system
CN111314659B (en) * 2020-02-17 2022-11-15 视联动力信息技术股份有限公司 Monitoring code stream pushing method, device, system, electronic equipment and medium
CN111683268B (en) * 2020-04-28 2023-11-21 视联动力信息技术股份有限公司 Monitoring data display method, device, equipment and medium

Citations (3)

* 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
CN106341563A (en) * 2015-07-06 2017-01-18 北京视联动力国际信息技术有限公司 Terminal communication based echo suppression method and device
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161335B (en) * 2015-03-25 2019-02-22 视联动力信息技术股份有限公司 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
CN108012106B (en) * 2016-11-01 2019-03-01 视联动力信息技术股份有限公司 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

Patent Citations (3)

* 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
CN106341563A (en) * 2015-07-06 2017-01-18 北京视联动力国际信息技术有限公司 Terminal communication based echo suppression method and device
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

Also Published As

Publication number Publication date
CN109547417A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109547417B (en) Code stream transmission method and device
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN109167960B (en) Method and system for processing video stream data
CN109525854B (en) Live broadcast processing method and device
CN110087102B (en) State query method, device and storage medium
CN110035005B (en) Data processing method and device
CN109547163B (en) Method and device for controlling data transmission rate
CN110049341B (en) Video processing method and device
CN110557612B (en) Control method of monitoring equipment and video networking system
CN110113564B (en) Data acquisition method and video networking system
CN110049280B (en) Method and device for processing monitoring data
CN109347844B (en) Method and device for accessing equipment to Internet
CN109842630B (en) Video processing method and device
CN110519331B (en) Method and device for processing resources of video network
CN110072154B (en) Video networking-based clustering method and transfer server
CN109889516B (en) Method and device for establishing session channel
CN109889755B (en) Communication connection method and video networking terminal
CN110087147B (en) Audio and video stream transmission method and device
CN110198384B (en) Communication method based on video networking and transfer server
CN109769012B (en) Web server access method and device
CN109640194B (en) Method and device for acquiring terminal permission through two-dimensional code based on video network
CN110099025B (en) Call method and device based on video networking
CN108881148B (en) Data acquisition method and device
CN110233872B (en) Data transmission method based on video network and video network terminal
CN110401807B (en) Communication method and device of video telephone system

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