CN109996127A - Data transmission method and device based on view networking - Google Patents

Data transmission method and device based on view networking Download PDF

Info

Publication number
CN109996127A
CN109996127A CN201910214334.1A CN201910214334A CN109996127A CN 109996127 A CN109996127 A CN 109996127A CN 201910214334 A CN201910214334 A CN 201910214334A CN 109996127 A CN109996127 A CN 109996127A
Authority
CN
China
Prior art keywords
data
data packet
terminal
packet
module
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
Application number
CN201910214334.1A
Other languages
Chinese (zh)
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 CN201910214334.1A priority Critical patent/CN109996127A/en
Publication of CN109996127A publication Critical patent/CN109996127A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64784Data processing by the network
    • H04N21/64792Controlling the complexity of the content stream, e.g. by dropping packets

Landscapes

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

Abstract

This application provides a kind of data transmission method and device based on view networking, it is applied to regard in networking, includes sending terminal and receiving terminal in the view networking, which comprises send data synchronization request to terminal is sent;It receives and sends the first data packet that terminal is sent;First data packet is to send terminal in response to data synchronization request, data to be synchronized progress subpackage is handled to obtain, the first data packet includes the number that data to be synchronized carry out the subpackage data packet sum handled and the first data packet;Whether quantity and the data packet sum for detecting the first data packet received are consistent;If it is not, and the second data packet is not received in the preset duration after the first data packet receiving, then abandon first data packet.Technical scheme detects incomplete data by the way of time-out detection, prevents during handling deficiency of data, and mistake occurs for upper-layer service logic.

Description

Data transmission method and device based on view networking
Technical field
This application involves view networking technology fields, more particularly to a kind of data transmission method and one kind based on view networking Data transmission device based on view networking.
Background technique
With the widespread development of view networking service in China, connection interaction technique is regarded in every profession and trade depending on networking high definition Play very important effect.
Depending on networking using the state-of-the-art real-time high-definition video switching technology in the whole world, realize what current internet cannot achieve The whole network HD video real-time Transmission refers to HD video meeting, video monitoring, remote training, Intellectualized monitoring analysis, emergency It waves, visual telephone, live broadcast, TV Mail, tens of kinds of videos, voice, picture, text, communication, the data etc. such as information publication Service is all incorporated into a system platform, realizes that high-definition quality video communication is interconnected in real time by multiple terminal equipment.
But depending on the controlling mechanism of networking protocol transport layer tcp agreement not as internet, so view networking association View it cannot be guaranteed that data transmission reliability, i.e., may there is a phenomenon where packet losses in data transmission procedure, that is to say, that receive Terminal is possible to receive incomplete data, when reception terminal has received deficiency of data, is carrying out at data It may cause upper-layer service logic during reason and mistake occur.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present application and overcomes the above problem or at least partly in order to provide one kind A kind of data transmission method and a kind of corresponding data transmission dress based on view networking based on view networking to solve the above problems It sets.
To solve the above-mentioned problems, the embodiment of the present application discloses a kind of data transmission method based on view networking, described Method is applied in view networking, including sending terminal and receiving terminal in the view networking, which comprises
Data synchronization request is sent to the transmission terminal;
Receive the first data packet that the transmission terminal is sent;First data packet is the transmission terminal in response to institute Data synchronization request is stated, data to be synchronized progress subpackage is handled to obtain, first data packet includes that data to be synchronized carry out The number of the data packet sum that subpackage is handled and first data packet;
Whether quantity and the data packet sum for detecting first data packet received are consistent;
If it is not, and do not receive the second data packet receiving in the preset duration after first data packet, then lose Abandon first data packet.
Optionally, after discarding first data packet, the method also includes:
Again the data synchronization request is sent to the transmission terminal.
Optionally, the preset duration is greater than or equal to 5s, and is less than or equal to 15s.
Optionally, the data volume of first data packet is less than or equal to 1024 bytes.
Optionally, the method also includes:
If so, being ranked up according to the number of first data packet to all first data packets received.
To solve the above-mentioned problems, the embodiment of the present application also discloses a kind of data transmission device based on view networking, institute It states device to be applied in view networking, includes sending terminal and receiving terminal in the view networking, described device includes:
First sending module is configured as sending data synchronization request to the transmission terminal;
Receiving module is configured as receiving the first data packet that the transmission terminal is sent;First data packet is institute It states and sends terminal in response to the data synchronization request, data to be synchronized progress subpackage is handled to obtain, first data packet The number of the subpackage data packet sum handled and first data packet is carried out including data to be synchronized;
Whether detection module is configured as the quantity of first data packet that detection receives and the data packet sum Unanimously;
Discard module is configured as if it is not, and not receiving receiving in the preset duration after first data packet To the second data packet, then first data packet is abandoned.
Optionally, described device further include:
Second sending module is configured as sending the data synchronization request to the transmission terminal again.
Optionally, the preset duration is greater than or equal to 5s, and is less than or equal to 15s.
Optionally, the data volume of first data packet is less than or equal to 1024 bytes.
Optionally, described device further include:
Sorting module is configured as if so, according to the number of first data packet, to all described received One data packet is ranked up.
Compared with prior art, the present invention includes the following advantages:
A kind of data transmission method and device based on view networking is provided in the embodiment of the present application, wherein based on view connection The data transmission method and device of net are applied in view networking, include sending terminal and receiving terminal in the view networking, described Method includes: to send data synchronization request to transmission terminal;It receives and sends the first data packet that terminal is sent;First data packet is Terminal is sent in response to data synchronization request, data to be synchronized progress subpackage is handled to obtain, the first data packet includes to be synchronized Data carry out the number of the subpackage data packet sum handled and the first data packet;Detect the first data packet received Whether quantity is consistent with data packet sum;If it is not, and is not received in the preset duration after the first data packet receiving Two data packets then abandon first data packet.Technical scheme starts to be surpassed when completing the reception of the first data packet When detect, if not receiving the second data packet in preset duration, the first data packet received is abandoned, to prevent During handling deficiency of data, mistake occurs for upper-layer service logic.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the application;
Fig. 2 is a kind of hardware structural diagram of node server of the application;
Fig. 3 is a kind of hardware structural diagram of access switch of the application;
Fig. 4 is that a kind of Ethernet association of the application turns the hardware structural diagram of gateway;
Fig. 5 is a kind of step flow chart of data transmission method based on view networking provided by the embodiments of the present application;
Fig. 6 is a kind of schematic diagram of overtime detection method provided by the embodiments of the present application;
Fig. 7 is a kind of application scenarios schematic diagram of data transmission method provided by the embodiments of the present application;
Fig. 8 is a kind of structural block diagram of data transmission device based on view networking provided by the embodiments of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Applying mode, the present application will be further described in 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.
To make those skilled in the art more fully understand the embodiment of the present application, it is introduced below to depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
1, view networked devices classification
1.1 the embodiment of the present application can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in the embodiment of the present application:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking destination address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze is according to the view of packet networking purpose Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different data packets, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in the embodiment of the present application: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, the data transmission scheme of the embodiment of the present application is proposed, by transmitting in data Overtime detection is carried out in the process, can find incomplete data in time.
Referring to Fig. 5, the step of a kind of data transmission method based on view networking of one embodiment of the application offer is provided Flow chart.This can be applied in view networking based on the data transmission method depending on networking, this is depending on may include sending eventually in networking End and reception terminal.
Wherein, it is that one kind is based on ethernet hardware big bandwidth transmission network in real time depending on networking, is regarded for high-speed transfer high definition The dedicated network of frequency and specialized protocol.
Sending terminal and receiving terminal can include but is not limited to mobile phone, computer and set-top box (SetTopBox, STB) Deng.Wherein, set-top box is also referred to as box on set-top box or machine, is the equipment of connection a television set and outside source, it can be with The digital signal of compression is changed into television content, and is shown on a television set.In general, set-top box can connect camera shooting Head and microphone also can connect television set, for playing view for acquiring the multi-medium datas such as video data and audio data The multi-medium datas such as frequency evidence and audio data.
Data transmission method provided in this embodiment based on depending on networking may comprise steps of:
Step 501, data synchronization request is sent to transmission terminal.
Step 502, it receives and sends the first data packet that terminal is sent;First data packet is that transmission terminal is same in response to data Data to be synchronized progress subpackage is handled to obtain by step request, and the first data packet includes that data progress subpackage to be synchronized handles to obtain Data packet sum and the first data packet number.
Since the minimum unit, that is, each data packet data volume size transmitted depending on networking protocol does not exceed 1024 words Section, so needing will be to be sent when sending terminal data (data to be synchronized) to be sent greater than 1024 bytes Data carry out subpackage transmission, obtain one or more data packets after subpackage, include in each data packet a serial number (number) and The data packet sum that subpackage obtains, wherein serial number is incremented by according to the generation order of data packet.
The data packet obtained after subpackage includes the first data packet and the second not sent data packet for sending terminal and having sent, The data volume of first data packet and the second data packet is respectively less than or is equal to 1024 bytes.
Step 503, whether quantity and the data packet sum for detecting the first data packet received are consistent.
By this step, detection receives the reception whether terminal is completed data to be synchronized.
Specifically, the have been received first number can be judged after receiving terminal and often receiving first data packet It is whether equal with the data packet sum recorded in each first data packet according to the total quantity of packet, it, can be automatic if equal Off Timer completes the process of data transmission.
Step 504, if it is not, and the second data packet is not received in the preset duration after the first data packet receiving, Then abandon the first data packet.
Wherein, preset duration can be greater than or equal to 5s, and be less than or equal to 15s, such as preset duration can be set to 10s。
If the data packet sum recorded in the total quantity for the first data packet having been received and each first data packet It is unequal, then data packet (the second data packet) can be continued within preset duration by receiving terminal, if preset duration Within do not receive the second data packet yet, illustrate the data-bag lost for having some serial numbers in data packet, that is, pass through time-out detection Method detect to receive the data that receive of terminal imperfect, receiving terminal in this case can not be to the data received The data packet discarding for being handled, and being received, when to prevent from having handled incomplete data, upper-layer service logic occurs Mistake.
After step 504, data transmission method provided in this embodiment can also include:
Step 505: sending data synchronization request to transmission terminal again.
Data transmission method provided in this embodiment is illustrated below with reference to a specific example.
Terminal is received to after sending terminal transmission data synchronization request, sends the data that terminal needs to send 5000 bytes (data to be synchronized) to receiving terminal, can data subpackage by transmission terminal to 5000 bytes, 5000 bytes point, 5 data Packet is sent, i.e., data packet sum is 5.1024 byte of first four data package size, the last one 904 byte, five data packets The sum of data volume is 1024*4+904=5000 byte.
First data packet serial number (number) is 1, and includes a data packet sum 5;Second data packet serial number (is compiled Number) it is 2, and include a data packet sum 5;Third data packet serial number (number) is 3, and includes that a data packet is total Number 5;Fourth data packet serial number (number) is 4, and includes a data packet sum 5;5th data packet serial number (number) It is 5, and includes a data packet sum 5.
This five data packets can successively be sent in numerical order by sending terminal, i.e., first send data packet 1, retransmit data Packet 2, retransmits data packet 3, retransmits data packet 4, retransmit data packet 5.Five data packets are transferred to reception in depending on networking Terminal, but due to network environment problem, it is more likely that five data packets do not arrive sequentially at or some data packets occur It loses, such as: it receives terminal and first has received data packet 1, then received data packet 2, then have received data packet 4, data packet 3 is then had received, data packet 5 has then been received, data packet is not lost in this case, 5 data packets It is all received terminal successful reception, but random ordering has occurred in the sequence of data packet, can receive 5 by reception terminal at this time After data packet, resequence in memory to this 5 data packets, i.e., after 12435 sequence being resequenced according to 12345, then Carry out the processing of data.
For another example, it receives terminal and has received data packet 1,3,4,5, be but not received by data packet 2 always, receive terminal not The arrival of data packet 2 can be waited always, when reception terminal is not received by data packet 2 within the time (preset duration) of setting, Received data packet 1,3,4,5 can actively be abandoned by receiving terminal, i.e., will not handle the data packet received.
Receiving the overtime detection of terminal progress, detailed process is as follows:
Terminal is sent first, data to be synchronized are subjected to subpackage processing, obtain data packet sum data packet, such as above Example in data packet sum be 5, send terminal in each data packet increase data packet sum mark by way of, will count It is sent to reception terminal according to packet sum, reception terminal in this way is after receiving each data packet, it is only necessary to detect oneself and receive To data packet quantity whether with recorded in each data packet data packet sum it is consistent.
If it is inconsistent to receive the data packet sum recorded in the quantity and each data packet for the data packet that terminal receives, connect Receiving terminal can be set time-out time (preset duration), such as 10 seconds, receive in this way terminal receive first data packet it After start timer, if having received second data packet within 10 seconds, if not receiving second data packet within 10 seconds, It receives terminal then to think to have timed, out, the data packet having been received can be abandoned automatically, data will not be handled.If It is consistent to receive the data packet sum recorded in the quantity and each data packet for the data packet that terminal receives, receiving terminal can close Timer, and reprocessed after resequencing to the data packet received according to number.
This overtime detection method combination previous examples are illustrated below.When receive terminal have received data packet 1, 3,4,5, when being but not received by data packet 2 always, terminal is received after receiving data packet 1, starts timer, between overtime Every (preset duration) 10 seconds, then data packet 3 reached after 1 second after starting the timer, at this moment receives terminal and judges to be less than for 1 second Timeout interval 10 seconds, therefore there is no time-out;Timer, timeout interval 10 will be restarted after receiving data packet 3 Second, it then reaches within data packet 41 second after restarting timer, at this moment receives terminal and judge 1 second less than timeout interval 10 seconds, therefore there is no time-out;Timer will be restarted after receiving data packet 4, timeout interval 10 seconds, then be counted It is reached within 1 second after restarting timer according to packet 5, at this time reception terminal judges 1 second and is less than timeout interval 10 seconds, because There is no time-out for this;Timer will be restarted after receiving data packet 5, timeout interval 10 seconds, then receive terminal It is not received by data packet 2 in timeout interval, causes timer that time-out occurs after 10 seconds, then receives terminal and think to have sent out Raw time-out, then abandon the data packet received, i.e., abandons the data packet 1,3,4,5 received, and final plant closure is fixed When device, wait data grouping next time arrival.
It should be noted that receiving terminal after often receiving a data packet, the data having been received can be all judged Whether the quantity of packet is equal with the data packet sum that records in each packet, if equal, automatic closing timing device would not In restarting timer, so discovery has received that 1,3,4,5 four when reception terminal receives data packet 5 A data packet (the first data packet), but the quantity 4 of the data packet received and be not equal to data packet sum 5, so receive eventually End will start timer, continue waiting for the arrival of data packet 2 (the second data packet), in this way when data packet 2 never has arrival When, time-out will occur for timer, then receive terminal can actively abandon the data packet 1,3,4,5 having received, not into The processing operation of row data.
Referring to Fig. 2, sends terminal and send data packet 1,2,3 in order to terminal is received, receive terminal and receive data packet 1 Afterwards, start timer, be spaced 10 seconds, then receive data packet 3 after 1 second, then receive terminal and restart timer, interval 10 Second, in 10 seconds later, data packet 2 is never received, then time-out, Off Timer, packet discard 1,3 occurs.
Technical solution provided in this embodiment starts to carry out overtime detection, if pre- when completing the reception of the first data packet If not receiving the second data packet in duration, then the first data packet received is abandoned, it is imperfect in processing to prevent During data, mistake occurs for upper-layer service logic.
In a kind of implementation, referring to Fig. 5, data transmission method provided in this embodiment can also include:
Step 506: if so, being ranked up according to the number of the first data packet to all first data packets received.
Specifically, after reception terminal has received all data packets, that is, the quantity and data packet of the first data packet received When sum is consistent, it is believed that data have finished receiving, and the serial number that can then proceed in data packet is resequenced.Work as All data packets, the i.e. data-bag lost there is no certain some serial number are had received, then receiving can logarithm after terminal is reset According to being handled.
A kind of application schematic diagram of the data transmission method provided in this embodiment in scene is shown referring to Fig. 3.Depending on connection Net Monitor-Networking management scheduling system (receiving terminal) is same to view networking monitoring access service system (sending terminal) initiation resource Step request (data synchronization request), depending on networking monitoring access service system after receiving source synchronous request, by monitoring access clothes Monitoring resource information (data to be synchronized) subpackage accessed in business system is sent to view networking monitoring network management scheduling system, when When data packet is lost in transmission process, depending on networking monitoring network management scheduling system using the method detection of time-out detection Data-bag lost out when that is, data are incomplete, can abandon the data packet having received, and again to view networking monitoring access Service system initiates source synchronous request (data synchronization request).
Using the data transmission method provided in this embodiment based on view networking, view networking monitoring network management tune is overcome Degree system can not detect the incomplete problem of data, and then lead to regard networking monitoring network management scheduling system in reception data It goes wrong when packet, program traffic logic is caused to go wrong, using the data provided in this embodiment based on view networking Transmission method can be improved the stability of view networking monitoring network management scheduling system, guarantee when data are lost, can weight It is new to initiate source synchronous request, solve the problems, such as that data can not synchronize.
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, the embodiment of the present application is not limited by the described action sequence, because according to According to the embodiment of the present application, 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 related movement not necessarily the application is implemented Necessary to example.
What another embodiment of the application provided can be applied in view networking based on the data transmission device depending on networking, and regard It include sending terminal and reception terminal in networking.
Wherein, it is that one kind is based on ethernet hardware big bandwidth transmission network in real time depending on networking, is regarded for high-speed transfer high definition The dedicated network of frequency and specialized protocol.
Sending terminal and receiving terminal can include but is not limited to mobile phone, computer and set-top box (SetTopBox, STB) Deng.Wherein, set-top box is also referred to as box on set-top box or machine, is the equipment of connection a television set and outside source, it can be with The digital signal of compression is changed into television content, and is shown on a television set.In general, set-top box can connect camera shooting Head and microphone also can connect television set, for playing view for acquiring the multi-medium datas such as video data and audio data The multi-medium datas such as frequency evidence and audio data.
A kind of structural frames of data transmission device based on view networking provided by the embodiments of the present application are shown referring to Fig. 8 Figure.The embodiment of the present application may include with lower module based on the data transmission device depending on networking:
First sending module 801 is configured as sending data synchronization request to the transmission terminal
Receiving module 802 is configured as receiving the first data packet that the transmission terminal is sent;First data packet is Data to be synchronized progress subpackage is handled to obtain, first data by the transmission terminal in response to the data synchronization request Packet includes the number that data to be synchronized carry out the subpackage data packet sum handled and first data packet.
Wherein, the data volume of the first data packet is less than or equal to 1024 bytes.
Detection module 803 is configured as the quantity and data packet sum of first data packet that detection receives It is whether consistent.
Discard module 804 is configured as if it is not, and not connecing receiving in the preset duration after first data packet The second data packet is received, then abandons first data packet.
Wherein, preset duration can be greater than or equal to 5s, and be less than or equal to 15s.
In a kind of implementation, data transmission device provided in this embodiment can also include:
Second sending module 805 is configured as sending the data synchronization request to the transmission terminal again.
In a kind of implementation, data transmission device provided in this embodiment can also include:
Sorting module 806 is configured as if so, according to the number of first data packet, to all institutes received The first data packet is stated to be ranked up.
Data transmission device provided by the embodiments of the present application based on view networking is opened when completing the reception of the first data packet Beginning carries out overtime detection and loses the first data packet received if not receiving the second data packet in preset duration It abandons, to prevent during handling deficiency of data, mistake occurs for upper-layer service logic.
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 embodiments of the present application may be provided as method, apparatus or calculating Machine program product.Therefore, the embodiment of the present application 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 application 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 application is referring to according to the method for the embodiment of the present application, 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 preferred embodiments of the embodiments of the present application have 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 all change and modification within the scope of the embodiments of the present application.
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 data transmission method and a kind of number based on view networking based on view networking provided herein It according to transmitting device, is described in detail, specific case used herein carries out the principle and embodiment of the application It illustrates, the description of the example is only used to help understand the method for the present application and its core ideas;Meanwhile for this field Those skilled in the art, according to the thought of the application, there will be changes in the specific implementation manner and application range, to sum up Described, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of data transmission method based on view networking, which is characterized in that the method is applied in view networking, the view connection It include sending terminal and reception terminal in net, which comprises
Data synchronization request is sent to the transmission terminal;
Receive the first data packet that the transmission terminal is sent;First data packet is the transmission terminal in response to the number According to synchronization request, data to be synchronized progress subpackage is handled to obtain, first data packet includes that data to be synchronized carry out subpackage Handle the number of obtained data packet sum and first data packet;
Whether quantity and the data packet sum for detecting first data packet received are consistent;
If it is not, and do not receive the second data packet receiving in the preset duration after first data packet, then abandon institute State the first data packet.
2. data transmission method according to claim 1, which is characterized in that it is described abandon first data packet it Afterwards, the method also includes:
Again the data synchronization request is sent to the transmission terminal.
3. data transmission method according to claim 1, which is characterized in that the preset duration is greater than or equal to 5s, and Less than or equal to 15s.
4. data transmission method according to claim 1, which is characterized in that the data volume of first data packet be less than or Equal to 1024 bytes.
5. data transmission method according to any one of claims 1 to 4, which is characterized in that the method also includes:
If so, being ranked up according to the number of first data packet to all first data packets received.
6. a kind of data transmission device based on view networking, which is characterized in that described device is applied in view networking, the view connection It include sending terminal and receiving terminal in net, described device includes:
First sending module is configured as sending data synchronization request to the transmission terminal;
Receiving module is configured as receiving the first data packet that the transmission terminal is sent;First data packet is the hair End make arrangements for his funeral in response to the data synchronization request, data to be synchronized progress subpackage is handled to obtain, first data packet includes Data to be synchronized carry out the number of the subpackage data packet sum handled and first data packet;
Detection module, be configured as the quantity of first data packet that detection receives and the data packet sum whether one It causes;
Discard module is configured as if it is not, and not receiving in the preset duration after first data packet receiving Two data packets then abandon first data packet.
7. data transmission device according to claim 6, which is characterized in that described device further include:
Second sending module is configured as sending the data synchronization request to the transmission terminal again.
8. data transmission device according to claim 1, which is characterized in that the preset duration is greater than or equal to 5s, and Less than or equal to 15s.
9. data transmission device according to claim 1, which is characterized in that the data volume of first data packet be less than or Equal to 1024 bytes.
10. according to the described in any item data transmission devices of claim 6 to 9, which is characterized in that described device further include:
Sorting module is configured as if so, according to the number of first data packet, to all first numbers received It is ranked up according to packet.
CN201910214334.1A 2019-03-20 2019-03-20 Data transmission method and device based on view networking Pending CN109996127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910214334.1A CN109996127A (en) 2019-03-20 2019-03-20 Data transmission method and device based on view networking

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910214334.1A CN109996127A (en) 2019-03-20 2019-03-20 Data transmission method and device based on view networking

Publications (1)

Publication Number Publication Date
CN109996127A true CN109996127A (en) 2019-07-09

Family

ID=67129704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910214334.1A Pending CN109996127A (en) 2019-03-20 2019-03-20 Data transmission method and device based on view networking

Country Status (1)

Country Link
CN (1) CN109996127A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446228A (en) * 2019-08-13 2019-11-12 腾讯科技(深圳)有限公司 Data transmission method, device, terminal device and storage medium
CN110798349A (en) * 2019-10-28 2020-02-14 国家计算机网络与信息安全管理中心 Configuration distribution and receiving method, equipment and computer readable storage medium
CN111131756A (en) * 2019-12-26 2020-05-08 视联动力信息技术股份有限公司 Anomaly detection method, device, equipment and medium based on video networking
CN111343274A (en) * 2020-02-28 2020-06-26 国铁吉讯科技有限公司 Data synchronization interaction method
CN111787386A (en) * 2020-06-01 2020-10-16 深圳市战音科技有限公司 Animation compression method, animation display method, animation compression device, animation processing system, and storage medium
CN112667653A (en) * 2020-12-30 2021-04-16 平安普惠企业管理有限公司 Data updating method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080075072A1 (en) * 2006-09-25 2008-03-27 Sercomm Corporation WLAN packet control protocol for video streaming
CN103346830A (en) * 2013-07-03 2013-10-09 深圳中科智星通科技有限公司 Voice transmission method and device based on Beidou satellite
CN106303693A (en) * 2015-05-25 2017-01-04 北京视联动力国际信息技术有限公司 A kind of method and device of video data decoding
CN109151058A (en) * 2018-09-27 2019-01-04 视联动力信息技术股份有限公司 A kind of data transmission method and device
CN109246486A (en) * 2018-10-16 2019-01-18 视联动力信息技术股份有限公司 A kind of framing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080075072A1 (en) * 2006-09-25 2008-03-27 Sercomm Corporation WLAN packet control protocol for video streaming
CN103346830A (en) * 2013-07-03 2013-10-09 深圳中科智星通科技有限公司 Voice transmission method and device based on Beidou satellite
CN106303693A (en) * 2015-05-25 2017-01-04 北京视联动力国际信息技术有限公司 A kind of method and device of video data decoding
CN109151058A (en) * 2018-09-27 2019-01-04 视联动力信息技术股份有限公司 A kind of data transmission method and device
CN109246486A (en) * 2018-10-16 2019-01-18 视联动力信息技术股份有限公司 A kind of framing method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110446228A (en) * 2019-08-13 2019-11-12 腾讯科技(深圳)有限公司 Data transmission method, device, terminal device and storage medium
CN110446228B (en) * 2019-08-13 2022-02-22 腾讯科技(深圳)有限公司 Data transmission method, device, terminal equipment and storage medium
CN110798349A (en) * 2019-10-28 2020-02-14 国家计算机网络与信息安全管理中心 Configuration distribution and receiving method, equipment and computer readable storage medium
CN111131756A (en) * 2019-12-26 2020-05-08 视联动力信息技术股份有限公司 Anomaly detection method, device, equipment and medium based on video networking
CN111131756B (en) * 2019-12-26 2022-11-01 视联动力信息技术股份有限公司 Anomaly detection method, device, equipment and medium based on video network
CN111343274A (en) * 2020-02-28 2020-06-26 国铁吉讯科技有限公司 Data synchronization interaction method
CN111787386A (en) * 2020-06-01 2020-10-16 深圳市战音科技有限公司 Animation compression method, animation display method, animation compression device, animation processing system, and storage medium
CN112667653A (en) * 2020-12-30 2021-04-16 平安普惠企业管理有限公司 Data updating method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108012106B (en) A kind of method and system regarding networking monitoring source synchronous
CN109996127A (en) Data transmission method and device based on view networking
CN109120962A (en) The method and apparatus of software terminal connection view networking
CN108881799B (en) A kind of system and method carrying out view networked video meeting
CN110149262A (en) A kind for the treatment of method and apparatus and storage medium of signaling message
CN110267099A (en) A kind of data transmission method and view networked terminals based on view networking
CN109996086A (en) A kind of view networking service method for inquiring status and device
CN109246486A (en) A kind of framing method and device
CN110474721A (en) Method of transmitting video data, device and computer readable storage medium
CN108881948A (en) A kind of method and system of view networking taking turn monitor video
CN109889779A (en) A kind for the treatment of method and apparatus of packet out-ordering
CN110062295A (en) A kind of file resource acquisition methods and system
CN109963109A (en) A kind of processing method and system of video conference
CN109547731A (en) A kind of methods of exhibiting and system of video conference
CN109068086A (en) A kind of processing method and system of visual telephone service
CN108809922B (en) A kind of audio fault handling method, conference dispatching end and view networked terminals
CN109788369A (en) Terminal control method and device
CN109151610A (en) A kind for the treatment of method and apparatus receiving web camera picture
CN110138513A (en) A kind of data transmission method and view networked system
CN110138633A (en) A kind of storage gateway method of network entry and device
CN110062194A (en) A kind of processing method of audio, video data, device and device and storage medium
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
CN109347930A (en) A kind of task processing method and device
CN108989850A (en) A kind of video playing control method and control 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190709

RJ01 Rejection of invention patent application after publication