CN109218302A - A kind of method and apparatus sending view networking data packet - Google Patents
A kind of method and apparatus sending view networking data packet Download PDFInfo
- Publication number
- CN109218302A CN109218302A CN201811046298.4A CN201811046298A CN109218302A CN 109218302 A CN109218302 A CN 109218302A CN 201811046298 A CN201811046298 A CN 201811046298A CN 109218302 A CN109218302 A CN 109218302A
- Authority
- CN
- China
- Prior art keywords
- data packet
- server
- view networking
- association
- view
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
- H04L67/108—Resource delivery mechanisms characterised by resources being split in blocks or fragments
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a kind of method and apparatus for sending view networking data packet, belong to view networking technology field;The method is applied to view networking, it is described that association turns server depending on including in networking, and, turn web camera that server communication connect with the association and regards networked terminals, wherein, the association turns server support physics security protection interoperability alliance PSIA agreement and view networking protocol;Based on above-mentioned agreement, present invention optimizes the modes that view networked terminals are sent to depending on networking data packet, allow and is uniformly sent depending on networking data packet, this ensure that no matter network it is good with it is bad, the data being sent in unit time depending on networked terminals are fixed, the stability that can be guaranteed video as far as possible with this is avoided video data loss or Caton phenomenon occurs, user experience can be improved.
Description
Technical field
The present invention relates to view networking technology fields, more particularly to a kind of method and apparatus for sending view networking data packet.
Background technique
With the development of science and technology, video communication is widely used, such as video conference, Video chat, to life
Living, work brings great convenience.
And be the important milestone of network Development depending on networking, it is the more advanced form of internet, is a real-time network, energy
It enough realizes the whole network HD video real-time Transmission that current internet cannot achieve, pushes numerous Internet applications to HD video
Change, high definition is face-to-face.
In the prior art, in view networked video conference process, often need to watch the picture of some web camera, but by
It is unstable in network environment, it is easy Caton depending on the received video of networked terminals, influences user experience.
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 method of transmission view networking data packet to solve the above problems and a kind of corresponding device for sending view networking data packet.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of method for sending view networking data packet, the sides
Method is applied to view networking, in the view networking includes that association turns server, and, turn the network that server communication connect with described assist
Video camera and view networked terminals, wherein the association turns server and physics security protection interoperability alliance PSIA agreement and view is supported to join
FidonetFido, which comprises
The association turns the internet data packet that server receives PSIA agreement described in the support of the web camera acquisition;
The association turns server and is converted into the internet data packet to support the view networking data of the view networking protocol
Packet;
The association turns the data volume that server records the view networking data packet, according to the data volume, by view connection
The packets such as network data packet are divided into N number of sub- view networking data packet, wherein N is the integer greater than 1;
The association turns server and determines that sending two neighboring sub- view networking data packet regards stopping between networked terminals to described
It sleeps the time;
The association turns dormancy time described in server interval and successively sends N number of sub- view networking data packet to network to the view
Terminal.
Meanwhile the embodiment of the invention discloses a kind of device for sending view networking data packet, described device is applied to view connection
Net, described association turns server depending on including in networking, and, turn web camera that server communication connect with the association and regards connection
Network termination, wherein the association turns server and supports physics security protection interoperability alliance PSIA agreement and view networking protocol, the association
Turning server includes:
Receiving module, for receiving the internet data packet of PSIA agreement described in the support of the web camera acquisition;
Conversion module supports the view networking data of the view networking protocol for the internet data packet to be converted into
Packet;
Processing module, the data volume for recording the view networking data packet network the view according to the data volume
The packets such as data packet are divided into N number of sub- view networking data packet, wherein N is the integer greater than 1;And adjacent two are sent for determining
Height regards networking data packet to the dormancy time between the view networked terminals;
Sending module, the dormancy time for being spaced described successively send N number of sub- view networking data packet and network to the view
Terminal.
The embodiment of the present invention includes following advantages:
The characteristic of application view networking of the embodiment of the present invention, turns clothes to communication connection web camera and the association for regarding networked terminals
Business device transmission is improved depending on the method and apparatus of networking data packet, which turns server while supporting physics security protection interoperability
Alliance's PSIA agreement and view networking protocol, are based on above-mentioned agreement, optimize the side for being sent to view networked terminals depending on networking data packet
Formula allows and uniformly sends depending on networking data packet, this ensure that no matter network it is good with it is bad, view is sent in the unit time
The data of networked terminals are fixed;The embodiment of the present invention can guarantee the stability of video with this as far as possible, avoid video
There is Caton phenomenon in loss of data, and user experience can be improved.
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 the networking schematic diagram of inventive network video camera and view networked terminals communication;
Fig. 6 is a kind of step flow chart for the embodiment of the method for sending view networking data packet of the present invention;
Fig. 7 is a kind of structural block diagram for the Installation practice for sending view networking data packet 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 (NetworkSecurity 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.
Classify depending on networked devices
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 packet spatial cache device 206;If packet spatial cache device 206
Queue is then abandoned close to completely;All packet spatial cache device queues of 202 poll of switching engine mould, if meeting the following conditions progress
Forwarding: 1) it is less than to send spatial cache for the port;2) the queue package counting facility is greater than zero.Disk array module 204 is mainly realized
Control to hard disk is operated including initialization, the read-write etc. to hard disk;CPU module 203 is mainly responsible for and access switch, end
The protocol processes between (not shown) are held, to address table 205 (including descending protocol packet address table, uplink agreement packet 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 packet spatial cache device 307;If the queue of the packet spatial cache device 307
Close to completely, then abandon;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface,
Then according to the navigation information of packet, which is stored in the queue of corresponding packet spatial cache device 307;If the packet spatial cache
The queue of device 307 is then abandoned close to completely.
All packet spatial cache device 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 spatial cache;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 spatial cache 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 packet spatial cache device 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
Deposit space device 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 mesh way 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 reception spatial cache, otherwise abandon;
Downstream network interface module 401 detects the transmission spatial cache of the port, if there is Bao Ze networks according to the view of packet
Mesh way address DA knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet association turns gateway
MAC 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 datagrams, 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.
In the prior art in the method for the communication access view connected network communication based on PSIA, depending on networked terminals and web camera
There is the unstable problem of data often in video communication system, such as in some view networked video conference process, needs to watch certain
The picture of a web camera, but since network environment is unstable, the video cardton be easy to causeing influences user experience.
As shown in figure 5, directly turning to service by association after internet only receives video data from web camera at present
Device conversion is sent to view networked terminals, this there is following problems: if current internet network environment is bad, it may occur that a large amount of
Data jamming is in Internet;After Internet improving situation, association turns the data that server receives may be suddenly
Become more.If will appear a certain moment in depending on networking without processing (network condition is restored to normal situation from bad)
There is a large amount of video data to be sent to view networked terminals, cause to handle not in time depending on networked terminals, or processing does not come,
Phenomena such as data or video cardton are lost in appearance.
According to prior art problem, based on the above-mentioned characteristic of view networking, propose the embodiment of the present invention core idea it
One, as shown in fig. 6, showing a kind of method of transmission view networking data packet of the embodiment of the present invention, the method is applied to view
Networking, it is described view networking in include association turn server, and, with it is described assist turn the web camera and view that server communication is connect
Networked terminals, wherein the association turns server and supports physics security protection interoperability alliance PSIA agreement and view networking protocol, described
Method includes:
Step S1, the association turn the internet that server receives PSIA agreement described in the support of the web camera acquisition
Data packet;
Step S2, the association turn server and are converted into the internet data packet view of the view networking protocol is supported to join
Network data packet;
Step S3, the association turns the data volume that server records the view networking data packet, according to the data volume, by institute
It states and is divided into N number of sub- view networking data packet depending on packets such as networking data packets, wherein N is the integer greater than 1;
Step S4, the association turn server determine send two neighboring sub- view networking data packet to the view networked terminals it
Between dormancy time;
Step S5, the association turn dormancy time described in server interval and successively send N number of sub- view networking data packet to institute
State view networked terminals.
The characteristic of present invention application view networking turns server hair to communication connection web camera and depending on the association of networked terminals
It send and is improved depending on the method and apparatus of networking data packet, which turns server while supporting physics security protection interoperability alliance
PSIA agreement and view networking protocol, are based on above-mentioned agreement, optimize the mode for being sent to view networked terminals depending on networking data packet, make
Can must uniformly be sent depending on networking data packet, this ensure that no matter network it is good with it is bad, be sent in the unit time view networking
The data of terminal are fixed, and can be guaranteed the stability of video as far as possible with this, be avoided video data loss or appearance
User experience can be improved in Caton phenomenon.
Since view networked terminals are based on view networking protocol, web camera is based on ICP/IP protocol, if it is desired to mutually communicate
Letter needs association to turn server for internet ip data conversion into the data containing view networking packet header.
In the examples described above, portion of techniques applied by the present invention is as described below:
PSIA: full name in English: Physical Security Interoperability Alliance.
Chinese is explained: physics security protection interoperability alliance.It is made of 65 or more security protection manufacturers and system integrator
Global alliance is dedicated to pushing the safety equipment of the entire security protection ecosystem and later IP function and the interoperability of system
Property, it is found in August, 2008.The target of the alliance is to found a kind of standardization for the Platform of hardware of entity security system
Interface.The alliance efforts be made so that the different security systems of IP based network have compatibility.
PSIA agreement belongs to application layer in ICP/IP protocol system, and on http protocol, is assisted based on HTTP
Applying again for view, has IP network layer and network interface layer.
This may include 2000 agreements, 2001 agreements etc. depending on networking protocol, and specific protocol contents belong to prior art content,
It does not repeat them here.
As an example, association, which turns server, can turn gateway for association, and UAS (User Agent may be implemented
Server, subscriber proxy server) function, acted on behalf of to depending on networked terminals, internet terminal can pass through video communication
Platform connects UAS, and UAS can be connect with depending on networked terminals.
In practical applications, internet terminal (web camera) can pass through interchanger, router, modem etc.
Equipment is connected to association and turns server, association turn server can with interchanger by view networked terminals, with realize internet terminal with
Depending on the video communication of networked terminals.
Specifically, one embodiment of the invention may comprise steps of:
Step S1, the association turn the internet that server receives PSIA agreement described in the support of the web camera acquisition
Data packet:
In this embodiment, the association turns to be provided with the first spatial cache in server, the method further include:
Sub-step 101, the association turn server and the first spatial cache are written in the internet data packet;
Sub-step 102, the association turn server and are converted into the internet data packet to support the view networking protocol
Depending on networking data packet, comprising:
The association turns server and reads the interconnection netting index that the first spatial cache is first written from first spatial cache
According to packet, and read internet data packet is converted into support the view networking data packet of the view networking protocol.
Above-mentioned first spatial cache is exclusively used in caching internet data packet, is provided with multiple, can subtract for multichannel audio-video frequency
Few web camera and association turn the congestion on the internal communication links between server, are a kind of push-up storage.
The embodiment can with the following steps are included:
Sub-step 103, the association turn the code rate that server obtains the web camera;
Sub-step 104, the association turn the amount of storage that server determines first spatial cache according to the code rate.
In the above-described embodiments, the code rate of web camera belongs to the essential attribute of its own, so according to essential attribute,
It is assured that the amount of storage of the first spatial cache, it can storing data size.
As an example, the association turns the amount of storage that server determines first spatial cache according to the code rate
Specific steps include:
The association turns the data volume that server records the code rate;
The association turns server according to the data volume, using 1/2 data volume depositing as first spatial cache
Reserves.
In this example, as assisted the video data for turning server and receiving by internet web camera, code rate is 2M/
S, association turn server before receiving video data, can first get the code rate of web camera, then open up phase according to code rate
The video data received, is then put into caching by the spatial cache 1M answered, then takes out from spatial cache again corresponding
Data are handled.
Step S2, the association turn server and are converted into the internet data packet view of the view networking protocol is supported to join
Network data packet:
In this embodiment, specifically includes the following steps:
Sub-step 201, the association turn server and remove the internet packet header of the internet data packet, and extract described mutual
Multi-medium data in networking data packet;
Sub-step 202, the association turn server and add view networking packet header to the multi-medium data, are converted into the view connection
Network data packet.
Each internet packet header includes version, header length, service type, mark, generates time, agreement, source IP address
With the information such as purpose IP address.
The internet packet header how server removes the internet data packet is turned for above-mentioned association, how to add view networking
Packet header is converted into the view networking data packet, belongs to state of the art, do not repeat herein.
Step S3, the association turns the data volume that server records the view networking data packet, according to the data volume, by institute
It states and is divided into N number of sub- view networking data packet depending on packets such as networking data packets, wherein N is the integer greater than 1:
In this embodiment, the association turns to be provided with the second spatial cache in server, the method further include:
Sub-step 301, the association turn server and the second spatial cache are written in the view networking data packet;
Sub-step 302, the association turn the data volume that server records the view networking data packet, comprising:
The association turns server and reads the view networking number that the second spatial cache is first written from second spatial cache
According to packet, and record the data volume of read view networking data packet.
Above-mentioned second spatial cache be exclusively used in caching view networking data packet, be provided with for multichannel audio-video frequency it is multiple, be one
Kind push-up storage.
Step S4, the association turn server determine send two neighboring sub- view networking data packet to the view networked terminals it
Between dormancy time:
In this embodiment, the association turns N/mono- that server determines the dormancy time as the unit time.
Step S5, the association turn dormancy time described in server interval and successively send N number of sub- view networking data packet to institute
State view networked terminals.
In conjunction with step S3, S4, S5, as an example, in this example, video data is sent in the form wrapped, and is assisted first
Turn that server is read to be surrounded by 3, respectively 2M/s, 1M/s, 1M/s depending on networking data, i.e., the data of transmission per second are 4M/
S is 1024 bytes depending on the every packet of video data in networking, according to this to guarantee that this 4M data is uniformly sent, and according to professional standard
A little numerical value can calculate and uniformly send required dormancy time within interval time depending on networking data packet after caching.
Calculation formula: dormancy time=1/ (4*1000*1000/1024*8)
Association in this way turns that server is every to be sent a son and be just delayed above-mentioned dormancy time depending on networking data packet, is then further continued for
Send next height view networking data packet.
In the prior art, it is all to receive how many internet data are converted to how much regard connection that association, which turns server at a time,
Network data, and all of the moment are sent to view networked terminals depending on networking data packet.And in video technique, each multimedia
Data packet contains I frame and P frame, and the data volume that I frame is included is far longer than the data volume that P frame is included.This allows for certain for the moment
It carves, larger depending on the received packet of networked terminals institute, the time of decoding I frame will be longer, this will lead to have little time depending on networked terminals
It decodes and packet loss;And a certain moment, smaller depending on the received packet of networked terminals institute, the time of decoding I frame will be shorter, and under reception
The time interval of one packet is longer, this will lead to not have video playing source depending on networked terminals and the problem of Caton occur.
But the present invention is come by way of the Bao Junfa such as interval with the dormancy time that is delayed for view networked terminals decoding
Data packet provides the time, and the mode for waiting packets parcel to send, and shortens and decodes each packet view networking data packet depending on networked terminals
Time, with this no matter network it is good with it is bad, packet is sent to depending on networked terminals data in the card unit time are fixed, with this
To overcome the problems, such as packet loss and Caton.
As shown in fig. 7, showing a kind of device for sending view networking data packet of the embodiment of the present invention, described device is applied to
Depending on networking, it is described view networking in include association turn server 70, and, with it is described association turn server 70 communicate to connect network shooting
Machine and view networked terminals, wherein the association turns server 70 and physics security protection interoperability alliance PSIA agreement and view is supported to network
Agreement, the association turn server 70 and include:
Receiving module 71, for receiving the internet data of PSIA agreement described in the support of the web camera acquisition
Packet;
Conversion module 72 supports the view networking data of the view networking protocol for the internet data packet to be converted into
Packet;
Processing module 73, the data volume for recording the view networking data packet join the view according to the data volume
The packets such as network data packet are divided into N number of sub- view networking data packet, wherein N is the integer greater than 1;And for determining that transmission is adjacent
Two son view networking data packets are to the dormancy time between the view networked terminals;
Sending module 74, the dormancy time for being spaced described successively send N number of sub- view networking data packet and join to the view
Network termination.
In a kind of preferred embodiment of the present invention, conversion module 72 of the present invention includes:
Unit is cut off, for removing the internet packet header of the internet data packet;
Extraction unit, for extracting the multi-medium data in the internet data packet;
Adding unit, for adding view networking packet header to the multi-medium data;
Encapsulation unit, for being packaged into the view networking data packet by the multi-medium data and depending on networking packet header.
In a specific embodiment of the present invention, the association turns server further include:
First spatial cache 75, for being written or reading internet data packet;
Second spatial cache 76, for being written or reading view networking data packet.
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.
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 method for sending view networking data packet provided by the present invention and a kind of electron focusing of camera
Device is described in detail, and used herein a specific example illustrates the principle and implementation of the invention, with
The explanation of upper embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the general of this field
Technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion
The contents of this specification are not to be construed as limiting the invention.
Claims (10)
1. a kind of method for sending view networking data packet, which is characterized in that the method is applied to view and networks, in the view networking
Turn server including association, and, turn the web camera and view networked terminals that server communication is connect with the association, wherein institute
It states association and turns server support physics security protection interoperability alliance PSIA agreement and view networking protocol, which comprises
The association turns the internet data packet that server receives PSIA agreement described in the support of the web camera acquisition;
The association turns server and is converted into the internet data packet to support the view networking data packet of the view networking protocol;
The association turns the data volume that server records the view networking data packet, according to the data volume, by view networking number
N number of sub- view networking data packet is divided into according to packets such as packets, wherein N is the integer greater than 1;
When the association turns the determining two neighboring sub- view networking data packet of transmission of server to the suspend mode regarded between networked terminals
Between;
The association turns dormancy time described in server interval and successively sends N number of sub- view networking data packet to view networking end
End.
2. the method according to claim 1, wherein it is described association turn to be provided with the first spatial cache in server,
The method further include:
The association turns server and the first spatial cache is written in the internet data packet;
The association turns server and is converted into the internet data packet to support the view networking data packet of the view networking protocol, packet
It includes:
The association turns server and reads the internet data packet that the first spatial cache is first written from first spatial cache,
And read internet data packet is converted into support the view networking data packet of the view networking protocol.
3. according to the method described in claim 2, it is characterized by further comprising:
The association turns the code rate that server obtains the web camera;
The association turns the amount of storage that server determines first spatial cache according to the code rate.
4. according to the method described in claim 3, it is characterized in that, the association, which turns server, determines described the according to the code rate
The amount of storage of one spatial cache, comprising:
The association turns the data volume that server records the code rate;
The association turns server according to the data volume, using 1/2 data volume as the amount of storage of first spatial cache.
5. the method according to claim 1, wherein the association turns server and converts the internet data packet
At the view networking data packet for supporting the view networking protocol, comprising:
The association turns server and removes the internet packet header of the internet data packet, and extracts in the internet data packet
Multi-medium data;
The association turns server and adds view networking packet header to the multi-medium data, is converted into the view networking data packet.
6. the method according to claim 1, wherein it is described association turn to be provided with the second spatial cache in server,
The method further include:
The association turns server and the second spatial cache is written in the view networking data packet;
The association turns the data volume that server records the view networking data packet, comprising:
The association turns server and reads the view networking data packet that the second spatial cache is first written from second spatial cache,
And record the data volume of read view networking data packet.
7. the method according to claim 1, wherein the association, which turns server, determines that the dormancy time is unit
N/mono- of time.
8. a kind of device for sending view networking data packet, which is characterized in that described device is applied to view and networks, in the view networking
Turn server including association, and, turn the web camera and view networked terminals that server communication is connect with the association, wherein institute
It states association and turns server support physics security protection interoperability alliance PSIA agreement and view networking protocol, the association turns server and includes:
Receiving module, for receiving the internet data packet of PSIA agreement described in the support of the web camera acquisition;
Conversion module supports the view networking data packet of the view networking protocol for the internet data packet to be converted into;
Processing module, for recording the data volume of the view networking data packet, according to the data volume, by the view networking data
The packets such as packet are divided into N number of sub- view networking data packet, wherein N is the integer greater than 1;And two neighboring son is sent for determining
Depending on networking data packet to the dormancy time between the view networked terminals;
Sending module, the dormancy time for being spaced described successively send N number of sub- view networking data packet to the view networked terminals.
9. device according to claim 8, which is characterized in that the conversion module includes:
Unit is cut off, for removing the internet packet header of the internet data packet;
Extraction unit, for extracting the multi-medium data in the internet data packet;
Adding unit, for adding view networking packet header to the multi-medium data;
Encapsulation unit, for being packaged into the view networking data packet by the multi-medium data and depending on networking packet header.
10. device according to claim 8, which is characterized in that the association turns server further include:
First spatial cache, for being written or reading internet data packet;
Second spatial cache, for being written or reading view networking data packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811046298.4A CN109218302A (en) | 2018-09-07 | 2018-09-07 | A kind of method and apparatus sending view networking data packet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811046298.4A CN109218302A (en) | 2018-09-07 | 2018-09-07 | A kind of method and apparatus sending view networking data packet |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109218302A true CN109218302A (en) | 2019-01-15 |
Family
ID=64986755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811046298.4A Pending CN109218302A (en) | 2018-09-07 | 2018-09-07 | A kind of method and apparatus sending view networking data packet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109218302A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109672572A (en) * | 2019-01-23 | 2019-04-23 | 视联动力信息技术股份有限公司 | Data transmission method and device |
CN109994217A (en) * | 2019-03-08 | 2019-07-09 | 视联动力信息技术股份有限公司 | A kind of method and apparatus for checking pathology file |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101572911A (en) * | 2002-09-24 | 2009-11-04 | 富士通株式会社 | Data packet transmission/sending method and mobile communication system |
CN102497578A (en) * | 2011-11-25 | 2012-06-13 | 武汉大学 | Mobile audio and video real-time communication method in 3G network environment |
CN104135741A (en) * | 2014-07-08 | 2014-11-05 | 福建联迪商用设备有限公司 | Method of Bluetooth low energy communication, Bluetooth devices and system |
CN104717189A (en) * | 2013-12-16 | 2015-06-17 | 中兴通讯股份有限公司 | Network data package sending method and device |
CN108063741A (en) * | 2016-11-07 | 2018-05-22 | 北京视联动力国际信息技术有限公司 | A kind of transport protocol conversion method and apparatus |
-
2018
- 2018-09-07 CN CN201811046298.4A patent/CN109218302A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101572911A (en) * | 2002-09-24 | 2009-11-04 | 富士通株式会社 | Data packet transmission/sending method and mobile communication system |
CN102497578A (en) * | 2011-11-25 | 2012-06-13 | 武汉大学 | Mobile audio and video real-time communication method in 3G network environment |
CN104717189A (en) * | 2013-12-16 | 2015-06-17 | 中兴通讯股份有限公司 | Network data package sending method and device |
CN104135741A (en) * | 2014-07-08 | 2014-11-05 | 福建联迪商用设备有限公司 | Method of Bluetooth low energy communication, Bluetooth devices and system |
CN108063741A (en) * | 2016-11-07 | 2018-05-22 | 北京视联动力国际信息技术有限公司 | A kind of transport protocol conversion method and apparatus |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109672572A (en) * | 2019-01-23 | 2019-04-23 | 视联动力信息技术股份有限公司 | Data transmission method and device |
CN109672572B (en) * | 2019-01-23 | 2022-01-04 | 视联动力信息技术股份有限公司 | Data transmission method and device |
CN109994217A (en) * | 2019-03-08 | 2019-07-09 | 视联动力信息技术股份有限公司 | A kind of method and apparatus for checking pathology file |
CN109994217B (en) * | 2019-03-08 | 2021-08-06 | 视联动力信息技术股份有限公司 | Method and device for checking pathological file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108173804B (en) | A kind of networked by view accesses the method and view connection cat client of internet | |
CN107979563A (en) | A kind of information processing method and device based on regarding networking | |
CN108322809A (en) | The method and system that control video file plays under depending on networking under a kind of internet | |
CN109617956A (en) | A kind of data processing method and device | |
CN108989078A (en) | A kind of view networking interior joint equipment fault detection method and device | |
CN108307212B (en) | A kind of file order method and device | |
CN108234178B (en) | A kind of method and apparatus being managed collectively menu file | |
CN109151610A (en) | A kind for the treatment of method and apparatus receiving web camera picture | |
CN109284265A (en) | A kind of date storage method and system | |
CN110048903A (en) | A kind of association turns gateway status monitoring method and device | |
CN109491783A (en) | A kind of acquisition methods and system of memory usage | |
CN109729184A (en) | A kind of method and apparatus of view networking service processing | |
CN110113555A (en) | A kind of video conference processing method and system based on view networking | |
CN108881940A (en) | A kind of data processing method and view networked server | |
CN109218302A (en) | A kind of method and apparatus sending view networking data packet | |
CN110086773A (en) | A kind of processing method and system of audio, video data | |
CN110278244A (en) | A kind of method of network entry and view networked terminals based on view networking | |
CN110022500A (en) | A kind of loss treating method and device | |
CN109525635A (en) | A kind of acquisition methods and system of memory usage | |
CN107920098B (en) | A kind of method and system that web player icon is shown | |
CN109698859A (en) | A kind of date storage method and device based on view networking | |
CN109698790A (en) | A kind of storage method and system regarding networking data | |
CN108881148A (en) | A kind of data capture method and device | |
CN110049069A (en) | A kind of data capture method and device | |
CN108881140A (en) | A kind of document down loading method and device based on view networking |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190115 |
|
RJ01 | Rejection of invention patent application after publication |