CN109889854A - A kind of data transmission method, apparatus and system - Google Patents

A kind of data transmission method, apparatus and system Download PDF

Info

Publication number
CN109889854A
CN109889854A CN201910180584.8A CN201910180584A CN109889854A CN 109889854 A CN109889854 A CN 109889854A CN 201910180584 A CN201910180584 A CN 201910180584A CN 109889854 A CN109889854 A CN 109889854A
Authority
CN
China
Prior art keywords
server
assembling
datagram
assembling datagram
acquisition
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
CN201910180584.8A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910180584.8A priority Critical patent/CN109889854A/en
Publication of CN109889854A publication Critical patent/CN109889854A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

It in a kind of data transmission method provided in an embodiment of the present invention, apparatus and system, acquisition server and includes between server, deploys Relay Server.Server is included by Relay Server, the media data of needs is got from acquisition server.Wherein, acquisition server to Relay Server data transmission distance and Relay Server to the data transmission distance for including server, respectively less than acquisition server is to the data transmission distance for including server, and the data packet received can be transmitted in sequence and include server by Relay Server, the influence of network fluctuation can be reduced, the stability for improving route, to improve the quality for the video that user gets.

Description

A kind of data transmission method, apparatus and system
Technical field
The present invention relates to streaming media transmission technique fields, more particularly to a kind of data transmission method, apparatus and system.
Background technique
With popularizing for computer, many users tend to watch TV programme by video website, for example, TV play, Broadcasting etc..Based on this, the server of including of video website needs to obtain TV programme from the acquisition server of TV station Media data.In existing embodiment, includes server and directly pass through the agreements such as http from acquisition server acquisition data.So And when acquisition server with include at a distance from server farther out when, route between the two may be unstable, leads to media number It is easy to appear fluctuation according to transmission, video program is also easy to produce colored screen, and user can not obtain the video of high quality.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of data transmission method, apparatus and system, to improve user's acquisition The quality of the video arrived.Specific technical solution is as follows:
To achieve the goals above, the embodiment of the invention provides a kind of data transmission system, system includes acquisition service Device, Relay Server include server;The acquisition server to the Relay Server data transmission distance and it is described in The data transmission distance of server, the respectively less than described acquisition server to the data for including server are included described in after server Transmission range;
It is described to include server, for sending media data request to the acquisition server;The media data request Including media stream identification;
The acquisition server, for obtaining the data packet of Media Stream according to the media stream identification, and according to the number According to the acquisition time of packet, the data packet is assembled, obtains assembling datagram, and compile to the assembling datagram Number, the number indicates the assembling sequence of the assembling datagram;The assembling datagram is transferred to the Relay Server;
The Relay Server, the assembling datagram sent for receiving the acquisition server, according to received group of institute The number of data packet is filled, sequentially includes the received assembling datagram of server forwarding institute to described.
Optionally, the Relay Server, be also used to according to received assembling datagram number, detection institute it is received It whether there is the first assembling datagram in assembling datagram, first assembling datagram is the assembling datagram of missing;If depositing Retransmission instructions then are being sent to the acquisition server, are including the number of first assembling datagram in the retransmission instructions;
The acquisition server is also used to the number according to the first assembling datagram in the retransmission instructions, determines assembling Data packet, and identified assembling datagram is sent to the Relay Server.
Optionally, the Relay Server is specifically used for:
Determine received assembling datagram number;
If not receiving the assembling datagram of a number, detects and whether receive a volume within a preset time Number assembling datagram;
If the assembling datagram of a number is not detected, it is determined that the assembling datagram missing of a upper number.
Optionally, the acquisition server is specifically used for:
The assembling datagram is transferred to the Relay Server based on unified display interfaces UDI transport protocol.
Optionally, the system also includes management servers;
The management server determines at least one relay services according to the user instruction for receiving user instructions Device, and for Relay Server determined by each, determine the Relay Server to the acquisition server data transmission route Diameter and the Relay Server include the data transfer path of server described in.
To achieve the goals above, the embodiment of the invention also provides a kind of data transmission methods, are applied to data and transmit Acquisition server in system, the system comprises acquisition server, Relay Server includes server;The acquisition service Device includes the data transmission distance of server to the data transmission distance of the Relay Server and the Relay Server described in From the respectively less than described acquisition server to the data transmission distance for including server, which comprises
The media data request of server transmission is included, the media data request includes media stream identification;
According to the media stream identification, the data packet of Media Stream is obtained;
According to the acquisition time of the data packet, the data packet is assembled, obtains assembling datagram, and to described Assembling datagram is numbered;The number indicates the assembling sequence of the assembling datagram;
The assembling datagram is transferred to the Relay Server.
Optionally, the method also includes:
The retransmission instructions that the Relay Server is sent are received, include the volume of the first assembling datagram in the retransmission instructions Number, first assembling datagram is the assembling datagram of missing;
According to the number of the first assembling datagram in the retransmission instructions, assembling datagram is determined, and to the middle following the service Business device sends identified assembling datagram.
To achieve the goals above, the embodiment of the invention also provides a kind of data transmission methods, are applied to data and transmit Relay Server in system, the system comprises acquisition server, Relay Server includes server;The acquisition service Device includes the data transmission distance of server to the data transmission distance of the Relay Server and the Relay Server described in From the respectively less than described acquisition server to the data transmission distance for including server, which comprises
Receive the assembling datagram that acquisition server is sent;
According to received assembling datagram number, sequentially include the received assembling data of server forwarding institute to described Packet.
Optionally, the method also includes:
According to received assembling datagram number, with the presence or absence of the first assembling in the received assembling datagram of detection institute Data packet, first assembling datagram are the assembling datagram of missing;
If it exists, then retransmission instructions are sent to the acquisition server, includes first assembling in the retransmission instructions The number of data packet.
Optionally, it is described according to received assembling datagram number, in the received assembling datagram of detection institute whether The step of there are the first assembling datagrams, comprising:
Determine received assembling datagram number;
If not receiving the assembling datagram of a number, detects and whether receive a volume within a preset time Number assembling datagram;
If the assembling datagram of a number is not detected, it is determined that the assembling datagram missing of a upper number.
To achieve the goals above, the embodiment of the invention also provides a kind of data transmission devices, are applied to data and transmit Acquisition server in system, the system comprises acquisition server, Relay Server includes server;The acquisition service Device includes the data transmission distance of server to the data transmission distance of the Relay Server and the Relay Server described in From, the respectively less than described acquisition server to the data transmission distance for including server, described device includes:
First receiving module, for including the media data request of server transmission, the media data request packet Include media stream identification;
Module is obtained, for obtaining the data packet of Media Stream according to the media stream identification;
Assembling module assembles the data packet for the acquisition time according to the data packet, obtains assembling number It is numbered according to packet, and to the assembling datagram;The number indicates the assembling sequence of the assembling datagram;
Transmission module, for the assembling datagram to be transferred to the Relay Server.
Optionally, described device further includes sending module, and first receiving module is also used to receive the relay services The retransmission instructions that device is sent, include the number of the first assembling datagram in the retransmission instructions, and first assembling datagram is The assembling datagram of missing;
The sending module determines assembling data for the number according to the first assembling datagram in the retransmission instructions Packet, and identified assembling datagram is sent to the Relay Server.
To achieve the goals above, the embodiment of the invention also provides a kind of data transmission devices, are applied to data and transmit Relay Server in system, the system comprises acquisition server, Relay Server includes server;The acquisition service Device includes the data transmission distance of server to the data transmission distance of the Relay Server and the Relay Server described in From, the respectively less than described acquisition server to the data transmission distance for including server, described device includes:
Second receiving module, for receiving the assembling datagram of acquisition server transmission;
Forwarding module, for according to received assembling datagram number, sequentially to it is described include server forwarding institute Received assembling datagram.
Optionally, described device further include:
Detection module, for according to received assembling datagram number, be in the received assembling datagram of detection institute It is no there are the first assembling datagram, first assembling datagram be missing assembling datagram;
If it exists, then retransmission instructions are sent to the acquisition server, includes first assembling in the retransmission instructions The number of data packet.
Optionally, the detection module, is specifically used for:
Determine received assembling datagram number;
If not receiving the assembling datagram of a number, detects and whether receive a volume within a preset time Number assembling datagram;
If the assembling datagram of a number is not detected, it is determined that the assembling datagram missing of a upper number.
To achieve the goals above, the embodiment of the invention also provides a kind of server, including processor, communication interface, Memory and communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any of the above-described method and step.
To achieve the goals above, the embodiment of the invention also provides a kind of computer readable storage medium, the calculating Computer program is stored in machine readable storage medium storing program for executing, the computer program realizes any of the above-described method when being executed by processor Step.
In a kind of data transmission method provided in an embodiment of the present invention, apparatus and system, acquisition server and the service of including Between device, Relay Server is deployed.Server is included by Relay Server, the matchmaker of needs is got from acquisition server Volume data.Wherein, the data transmission distance of acquisition server to Relay Server is less than acquisition server to including server Data transmission distance, Relay Server are less than acquisition server to including server to the data transmission distance for including server Data transmission distance, to overcome the unstable problem of route caused by long-distance data transmission, and Relay Server will connect The data packet received is transmitted in sequence includes server, can reduce the influence of network fluctuation, improves the stability of route, To improve the quality for the video that user gets.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram of data transmission system provided in an embodiment of the present invention;
Fig. 2 is a kind of exemplary diagram of data transmission system provided in an embodiment of the present invention;
Fig. 3 is the first flow chart of data transmission method provided in an embodiment of the present invention;
Fig. 4 is second of flow chart of data transmission method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram that data transmission device provided in an embodiment of the present invention is applied to acquisition server;
Fig. 6 is a kind of structural schematic diagram that data transmission device provided in an embodiment of the present invention is applied to Relay Server;
Fig. 7 is a kind of structural schematic diagram of acquisition server provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of Relay Server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to improve the quality for the video that user gets, the embodiment of the invention provides a kind of data transmission systems.Ginseng Data transmission system provided in an embodiment of the present invention as shown in Figure 1, comprising: acquisition server 101, Relay Server 102, with And include server 103.Wherein, the data transmission distance of acquisition server 101 to Relay Server 102 is less than acquisition server 101 to the data transmission distance for including server 103, and Relay Server 102 is to the data transmission distance for including server 103 Again smaller than acquisition server 101 to the data transmission distance for including server 103.Acquisition server 101 can be positioned at TV Separate server near the media server of platform.Acquisition server 101 can also be with media server (the following letter of TV station Referred to as TV station's server) it is integrated in a physical machine.The embodiment of the present invention is to this without limiting.Data transmission system In, may include it is multiple include server 103, be only illustrated so that 2 are included server 103 as an example in embodiment illustrated in fig. 1.
Wherein, server 103 is included for sending media data request, the media data request to acquisition server 101 In include media stream identification.
Acquisition server 101 is used to obtain the data packet of Media Stream according to media stream identification, and according to the acquisition of data packet Time assembles data packet, obtains assembling datagram, and assembling datagram is numbered, assembling datagram is transmitted To Relay Server 102.Wherein, the number of assembling datagram indicates the assembling sequence of assembling datagram;
Relay Server 102 is used to receive the assembling datagram of acquisition server transmission, according to the received assembling data of institute The number of packet, sequentially to including the received assembling datagram of the forwarding of server 103 institute.
It, can be to acquisition server 101 when including server 103 and needing to obtain media data in the embodiment of the present invention Send media data request.Acquisition server 101 obtains the data packet of Media Stream from TV station's server.One optional implementation In example, acquisition server 101 can by the network interface of TV station's server, using UDP (User Datagram Protocol, User Datagram Protocol) transmission mode, from TV station's server obtain Media Stream data packet.
Acquisition server 101 assembles data packet according to the acquisition time of data packet, obtains assembling datagram.Assembling Data packet can be filled to obtain by a data packet group, can also assemble to obtain by multiple data packets.In addition, acquisition server 101 Assembling datagram can also be numbered, number indicates the assembling sequence of assembling datagram.In one example, assembling datagram More early assembled completion, then its number is smaller.Since acquisition server 101 and the transmission range of data source server are shorter, because The sequence that this acquisition server 101 collects data packet is consistent with the original order of data, i.e., acquisition server 101 is according to data The acquisition order number consecutively of packet.
For example, being an assembling datagram by two data packet group dresses, whithin a period of time, acquisition server 101 is reached Data be surrounded by 6, be denoted as data packet 1 respectively according to the time sequencing that data packet reaches acquisition server 101, data packet 2, number According to packet 3, data packet 4, data packet 5 and data packet 6.Data packet 1 and data packet 2 can be assembled into one by acquisition server 101 Assembling datagram, and numbering is 1, obtains assembling datagram 1.Acquisition server 101 can assemble data packet 3 and data packet 4 For an assembling datagram, and numbering is 2, obtains assembling datagram 2.Acquisition server 101 can be by data packet 5 and data packet 6 are assembled into an assembling datagram, and numbering is 3, obtains assembling datagram 3.
It above are only a kind of embodiment, in other embodiments, can preset in assembling datagram and wrap according to actual needs The data packet number included.
Acquisition server 101 is transferred to Relay Server 102 after numbering to assembling datagram, by assembling datagram.This In inventive embodiments, the transmission of assembling datagram can be carried out using the transport protocol of less demanding to network condition.Such as it adopts The transmission of assembling datagram is carried out with UDI (Unified Display Interface, unified display interfaces) transport protocol.It adopts When carrying out assembling datagram transmission with such transport protocol, the sequence that assembling datagram is sent from acquisition server 101, and assembling The sequence that data packet reaches Relay Server 102 may not be identical.Relay Server 102, can after receiving assembling datagram To be numbered according to assembling datagram, sequentially to including the received assembling datagram of server forwarding institute.Due to acquisition server 101 It is of less demanding to network condition to 102 transmission process of Relay Server, therefore network fluctuation can be reduced, output transmission is come Influence, thus improve user acquisition video quality.
For example, Relay Server 102, which successively receives assembling datagram, to be had: assembling datagram 1, assembling datagram 3, assembling Data packet 2.Relay Server 102 can forward assembling datagram to server 103 is included according to the sequence of assembling datagram, i.e., Elder generation forwards assembling datagram 1 to server 103 is included, then forwards assembling datagram 2 to server 103 is included, to include backward Server 103 forwards assembling datagram 3.
As it can be seen that in the embodiment of the present invention, compared with the prior art in, include server 103 directly from TV station's server Acquisition server 101 is arranged in TV station's server peripheral in the method for obtaining media stream data, and acquisition server 101 is from TV The data packet of platform service acquisition Streaming Media, and assembled, numbered according to the time for obtaining data packet, then assembling datagram is sent out Relay Server 102 is given, since, with number, Relay Server 102 can be according to assembling data in assembling datagram The number of packet forwards assembling datagram to server 103 is included.It due to acquisition server and includes between server, deploys Relay Server.Server is included by Relay Server, the media data of needs is got from acquisition server.Wherein, The data transmission distance of acquisition server to Relay Server is less than acquisition server to the data transmission distance for including server, And Relay Server is less than acquisition server to the data transmission distance for including server to the data transmission distance for including server From, so that the stability of route is improved, the quality for the video that raising user gets.
In one embodiment of the invention, complete media data, relay services are arrived to guarantee that user is available Device 102, can be according to the number of assembling datagram after receiving assembling datagram, and detecting in the received assembling datagram of institute is The no assembling datagram that there is missing.Wherein, the assembling datagram of missing is denoted as the first assembling datagram.First assembling if it exists Data packet, then Relay Server 102 sends retransmission instructions to acquisition server 101, includes the first assembling data in retransmission instructions The number of packet.Acquisition server 101 determines assembling datagram according to the number of the first assembling datagram in retransmission instructions, lays equal stress on Identified assembling datagram newly is sent to Relay Server 102, wherein identified assembling datagram is above-mentioned missing Assembling datagram.Later, Relay Server 102 according to number order in received assembling datagram, continue to including clothes The received assembling datagram of business device forwarding institute.
In one embodiment of the invention, the received assembling of following steps detection institute can be used in Relay Server 102 With the presence or absence of the assembling datagram of missing in data packet.
Step 11: determine received assembling datagram number;
Step 12: if not receiving the assembling datagram of a number, detecting and whether receive within a preset time The assembling datagram of a upper number;
Step 13: if the assembling datagram of a number is not detected, it is determined that the assembling datagram of a upper number Missing.
Specifically, Relay Server 102 can determine the volume of the assembling datagram after receiving an assembling datagram Number, then detect whether that the assembling datagram for having received a number can wait preset one section if not receiving Time, within this time, if do not receive yet one number assembling datagram, it may be considered that on this one number Assembling datagram is lost in transmission process, determines it as the first assembling datagram of missing.Relay Server 102 can be to Acquisition server 101 feeds back the number of the assembling datagram, and acquisition server 101 retransmits the assembling datagram.
For example, the number for the assembling datagram that Relay Server 102 is currently received is 10, then whether to can detecte It receives the assembling datagram that number is 9 and waits 10ms if not receiving, if not receiving the group that number is 9 in 10ms yet Fill data packet, then it is assumed that the assembling datagram that number is 9 is lost in transmission process, determines it as the first assembling datagram. Relay Server 102 feeds back number 9 to acquisition server 101, and acquisition server 101 retransmits the assembling datagram that number is 9.
In the embodiment of the present invention, above-mentioned preset time can be set according to actual needs, do not limited this.
In another embodiment of the invention, the assembling datagram of missing can also be without retransmitting.Due to this hair What is transmitted in bright embodiment is media data flow, and the data packet lost once in a while in transmission process can't be to final media Quality generates big influence, therefore for improve data transfer efficiency, can not detect the assembling datagram of missing.Specifically, Relay Server 102 forwards assembling datagram to server 103 is included according to the number order of assembling datagram, when some assembling Data packet does not reach Relay Server 102 within a preset time, it may be considered that the data packet lacks, Relay Server 102 can Directly to start to forward the assembling datagram of next number, to improve data transmission efficiency.
In the embodiment of the present invention, data transmission system can also include management server, wherein management server can be used In receiving user instructions, and at least one Relay Server 102 is determined according to user instructions, and relay services determined by determining Device 102 to acquisition server 101 data transfer path and identified Relay Server 102 to including server 103 Data transfer path.In the embodiment of the present invention, without limitation to the position of management server.
As an example, referring to fig. 2, Fig. 2 is a kind of exemplary diagram of data transmission system provided in an embodiment of the present invention, There are two paths, i.e. A-a-b-B and A-c-d-B to server B is included by acquisition server A, wherein a, b, c, d are candidate Server.If the network in the path A-a-b-B is preferable, a, b can be determined as Relay Server by user, then user is to management Server inputs corresponding user instruction, and management server determines that a, b are determined as Relay Server according to user instructions, and determines Acquisition server is to the transmission path A-a-b-B for including server.
In addition, the management server can also be transmitted by detecting acquisition server and including the data between server Path, and determine optimal data transfer path, and determine that the candidate server in the data transfer path is Relay Server.
In an embodiment of the present invention, multiple Relay Servers 102 can be set, multiple Relay Servers 102 can To be located at all the way, can also be configured with branch.Referring to fig. 2, a, b, e, f and g can be determined as Relay Server simultaneously, And transmission path A-a-b-B and A-e-f-g-B are configured simultaneously.
Correspondingly, the embodiment of the invention also provides a kind of data transmission methods.It is the embodiment of the present invention referring to Fig. 3, Fig. 3 The first flow chart of the data transmission method of offer, applied to the acquisition server in data transmission system, system includes adopting Collect server, Relay Server includes server;Data transmission distance and relay services of the acquisition server to Relay Server Device is to the data transmission distance for including server, respectively less than acquisition server to the data transmission distance for including server, method The following steps are included:
S301: the media data request of server transmission is included, media data request includes media stream identification.
In the embodiment of the present invention, when including server and needing to obtain media data, matchmaker can be sent to acquisition server Volume data request.It wherein, include media stream identification in media data request.Acquisition server includes the matchmaker of server transmission Volume data request.
S302: according to media stream identification, the data packet of Media Stream is obtained.
In the embodiment of the present invention, acquisition server can be according to the media stream identification for including in media data request, from electricity The server of television stations obtains Media Stream, which may include multiple data packets.
S303: according to the acquisition time of data packet, assembling data packet, obtains assembling datagram, and suitable by assembling Ordered pair assembling datagram is numbered;
In the embodiment of the present invention, acquisition server assembles data packet according to the acquisition time of data packet, obtains group Fill data packet.Assembling datagram can be filled to obtain by a data packet group, can also assemble to obtain by multiple data packets.In addition, Acquisition server can also be numbered assembling datagram according to assembling sequence.In one example, the more early quilt of assembling datagram It is completed, then its number is smaller.
S304: assembling datagram is transferred to Relay Server.
In the embodiment of the present invention, acquisition server is transferred to relaying after numbering to assembling datagram, by assembling datagram Server.In the embodiment of the present invention, the biography of assembling datagram can be carried out using the transport protocol of less demanding to network condition It is defeated.Assembling datagram is carried out for example, by using UDI (Unified Display Interface, unified display interfaces) transport protocol Transmission.When carrying out assembling datagram transmission using such transport protocol, the sequence that assembling datagram is sent from acquisition server, The sequence for reaching Relay Server with assembling datagram may not be identical.
In an embodiment of the present invention, acquisition server can also receive the retransmission instructions of Relay Server transmission, It include the number of the first assembling datagram in retransmission instructions, the first assembling datagram is the assembling datagram of missing.
Acquisition server can determine assembling datagram according to the number of the first assembling datagram in retransmission instructions, and to Relay Server sends identified assembling datagram.
Correspondingly, the embodiment of the invention also provides a kind of data transmission methods.Referring to fig. 4, Fig. 4 is the embodiment of the present invention Second of flow chart of the data transmission method of offer, applied to the Relay Server in data transmission system, system includes adopting Collect server, Relay Server includes server;Data transmission distance and relay services of the acquisition server to Relay Server Device is to the data transmission distance for including server, respectively less than acquisition server to the data transmission distance for including server, method The following steps are included:
S401: the assembling datagram that acquisition server is sent is received.
In the embodiment of the present invention, acquisition server can be according to the media stream identification for including in media data request, from electricity The server of television stations obtains Media Stream, and wherein Media Stream includes multiple data packets.When acquisition server is according to the acquisition of data packet Between data packet is assembled, obtain assembling datagram.Acquisition server is after numbering assembling datagram, by assembling datagram It is transferred to Relay Server.
Relay Server receives the assembling datagram that acquisition server is sent.
S402: according to received assembling datagram number, sequentially to including the received assembling number of server forwarding institute According to packet.
In the embodiment of the present invention, Relay Server can number after receiving assembling datagram according to assembling datagram, Sequence forwards assembling datagram to server is included.
In an embodiment of the present invention, Relay Server can also according to received assembling datagram number, detection It whether there is the first assembling datagram in the received assembling datagram of institute, wherein the first assembling datagram is the assembling data of missing Packet.
First data packet if it exists, then send retransmission instructions to acquisition server, includes the first assembling number in retransmission instructions According to the number of packet.
In an embodiment of the present invention, Relay Server according to received assembling datagram number, detection received Assembling datagram in whether there is the first assembling datagram the step of, may include following refinement step:
Determine received assembling datagram number;
If not receiving the assembling datagram of a number, detects and whether receive a volume within a preset time Number assembling datagram;
If the assembling datagram of a number is not detected, it is determined that the assembling datagram missing of a upper number.
The specific implementation process of above-mentioned steps is described in detail in system embodiment, and this will not be repeated here.
As it can be seen that in the embodiment of the present invention, acquisition server and include between server, deploys Relay Server.It includes Server gets the media data of needs by Relay Server from acquisition server.Wherein, acquisition server to relaying The data transmission distance of server is less than acquisition server to the data transmission distance for including server, and Relay Server is to including The data transmission distance of server is less than acquisition server to the data transmission distance for including server, and Relay Server can The data packet received is transmitted in sequence and includes server, the influence of network fluctuation can be reduced, improves the steady of route It is qualitative, to improve the quality for the video that user gets.
Correspondingly, referring to Fig. 5, being applied to data transmission system the embodiment of the invention also provides a kind of data transmission device Acquisition server in system, system include acquisition server, and Relay Server includes server;Acquisition server is to middle following the service Be engaged in device data transmission distance and Relay Server arrive the data transmission distance for including server, respectively less than acquisition server to receipts The data transmission distance of server is recorded, device may include with lower module:
First receiving module 501, for including the media data request of server transmission, media data request includes Media stream identification;
Module 502 is obtained, for obtaining multiple data packets of Media Stream according to media stream identification;
Assembling module 503 assembles data packet for the acquisition time according to data packet, obtains assembling datagram, And assembling datagram is numbered;Number indicates the assembling sequence of assembling datagram;
Transmission module 504, for assembling datagram to be transferred to Relay Server.
It can also include sending module on device basic shown in Fig. 5, above-mentioned first receives in the embodiment of the present invention Module 501 can be also used for receiving the retransmission instructions that Relay Server is sent, and include the first assembling datagram in retransmission instructions Number, the first assembling datagram are the assembling datagram of missing;
Above-mentioned sending module determines assembling datagram for the number according to the first assembling datagram in retransmission instructions, and Identified assembling datagram is sent to Relay Server.
Correspondingly, referring to Fig. 6, being applied to data transmission system the embodiment of the invention also provides a kind of data transmission device Relay Server in system, system include acquisition server, and Relay Server includes server;Acquisition server is to middle following the service Be engaged in device data transmission distance and Relay Server arrive the data transmission distance for including server, respectively less than acquisition server to receipts The data transmission distance of server is recorded, device may include with lower module:
Second receiving module 601, for receiving the assembling datagram of acquisition server transmission;
Forwarding module 602, for according to received assembling datagram number, sequentially to include server forwarding connect The assembling datagram of receipts.
It can also include detection module, detection module on device basic shown in Fig. 6 in an embodiment of the present invention For according to received assembling datagram number, with the presence or absence of the first assembling data in the received assembling datagram of detection institute Packet, the first assembling datagram are the assembling datagram of missing;
If it exists, then retransmission instructions are sent to acquisition server, includes the number of the first assembling datagram in retransmission instructions.
In an embodiment of the present invention, detection module specifically can be used for:
Determine received assembling datagram number;
If not receiving the assembling datagram of a number, detects and whether receive a volume within a preset time Number assembling datagram;
If the assembling datagram of a number is not detected, it is determined that the assembling datagram missing of a upper number.
As it can be seen that in the embodiment of the present invention, acquisition server and include between server, deploys Relay Server.It includes Server gets the media data of needs by Relay Server from acquisition server.Wherein, acquisition server to relaying The data transmission distance of server is less than acquisition server to the data transmission distance for including server, and Relay Server is to including The data transmission distance of server is less than acquisition server to the data transmission distance for including server, and Relay Server can The data packet received is transmitted in sequence and includes server, the influence of network fluctuation can be reduced, improves the steady of route It is qualitative, to improve the quality for the video that user gets.
The embodiment of the invention also provides a kind of acquisition server, referring to Fig. 7, including processor 701, communication interface 702, Memory 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 are complete by communication bus 704 At mutual communication,
Memory 703, for storing computer program;
Processor 701 when for executing the program stored on memory 703, realizes following steps:
The media data request of server transmission is included, media data request includes media stream identification;
According to media stream identification, the data packet of Media Stream is obtained;
According to the acquisition time of data packet, data packet is assembled, obtains assembling datagram, and to assembling datagram into Row number;Number indicates the assembling sequence of assembling datagram;
Assembling datagram is transferred to Relay Server.
The embodiment of the invention also provides a kind of Relay Server, referring to Fig. 8, including processor 801, communication interface 802, Memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are complete by communication bus 804 At mutual communication,
Memory 803, for storing computer program;
Processor 801 when for executing the program stored on memory 803, realizes following steps:
Receive the assembling datagram that acquisition server is sent;
According to received assembling datagram number, sequentially include the received assembling data of server forwarding institute to described Packet.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored in computer readable storage medium Computer program realizes any of the above-described method and step when computer program is executed by processor.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for method, For Installation practice, since it is substantially similar to system embodiment, so being described relatively simple, related place is referring to system The part of embodiment illustrates.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (17)

1. a kind of data transmission system, which is characterized in that the system comprises: acquisition server, Relay Server, the service of including Device;The acquisition server includes service to the data transmission distance of the Relay Server and the Relay Server described in The data transmission distance of device, the respectively less than described acquisition server to the data transmission distance for including server;
It is described to include server, for sending media data request to the acquisition server;The media data request includes Media stream identification;
The acquisition server, for obtaining the data packet of Media Stream according to the media stream identification, and according to the data packet Acquisition time, the data packet is assembled, obtains assembling datagram, and the assembling datagram is numbered, institute Stating number indicates the assembling sequence of the assembling datagram;The assembling datagram is transferred to the Relay Server;
The Relay Server, the assembling datagram sent for receiving the acquisition server, according to the received assembling number of institute According to the number of packet, the received assembling datagram of server forwarding institute sequentially is included to described.
2. system according to claim 1, which is characterized in that
The Relay Server, be also used to according to received assembling datagram number, the received assembling datagram of detection institute In whether there is the first assembling datagram, first assembling datagram be lack assembling datagram;If it exists, then Xiang Suoshu Acquisition server sends retransmission instructions, includes the number of first assembling datagram in the retransmission instructions;
The acquisition server is also used to the number according to the first assembling datagram in the retransmission instructions, determines assembling data Packet, and identified assembling datagram is sent to the Relay Server.
3. system according to claim 2, which is characterized in that the Relay Server is specifically used for:
Determine received assembling datagram number;
If not receiving the assembling datagram of a number, detects and whether receive a number within a preset time Assembling datagram;
If the assembling datagram of a number is not detected, it is determined that the assembling datagram missing of a upper number.
4. system according to claim 1 to 3, which is characterized in that the acquisition server is specifically used for:
The assembling datagram is transferred to the Relay Server based on unified display interfaces UDI transport protocol.
5. system according to claim 1 to 3, which is characterized in that the system also includes: management server;
The management server is used to receive user instructions, and determines at least one Relay Server according to the user instruction, and For each identified Relay Server, determine the Relay Server to the acquisition server data transfer path, with And the Relay Server includes the data transfer path of server described in.
6. a kind of data transmission method, which is characterized in that applied to the acquisition server in data transmission system, the system packet Acquisition server is included, Relay Server includes server;Data transmission distance of the acquisition server to the Relay Server From the data transmission distance for including server described in the Relay Server, the respectively less than described acquisition server to include clothes The data transmission distance of business device, which comprises
The media data request of server transmission is included, the media data request includes media stream identification;
According to the media stream identification, the data packet of Media Stream is obtained;
According to the acquisition time of the data packet, the data packet is assembled, obtains assembling datagram, and to the assembling Data packet is numbered;The number indicates the assembling sequence of the assembling datagram;
The assembling datagram is transferred to the Relay Server.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The retransmission instructions that the Relay Server is sent are received, include the number of the first assembling datagram in the retransmission instructions, First assembling datagram is the assembling datagram of missing;
According to the number of the first assembling datagram in the retransmission instructions, assembling datagram is determined, and to the Relay Server Assembling datagram determined by sending.
8. a kind of data transmission method, which is characterized in that applied to the Relay Server in data transmission system, the system packet Acquisition server is included, Relay Server includes server;Data transmission distance of the acquisition server to the Relay Server From the data transmission distance for including server described in the Relay Server, the respectively less than described acquisition server to include clothes The data transmission distance of business device, which comprises
Receive the assembling datagram that acquisition server is sent;
According to received assembling datagram number, sequentially include the received assembling datagram of server forwarding institute to described.
9. according to the method described in claim 8, it is characterized in that, the method also includes:
According to received assembling datagram number, with the presence or absence of the first assembling data in the received assembling datagram of detection institute Packet, first assembling datagram are the assembling datagram of missing;
If it exists, then retransmission instructions are sent to the acquisition server, includes the first assembling data in the retransmission instructions The number of packet.
10. according to the method described in claim 8, it is characterized in that, it is described according to received assembling datagram number, inspection Survey the step of whether there is the first assembling datagram in the received assembling datagram of institute, comprising:
Determine received assembling datagram number;
If not receiving the assembling datagram of a number, detects and whether receive a number within a preset time Assembling datagram;
If the assembling datagram of a number is not detected, it is determined that the assembling datagram missing of a upper number.
11. a kind of data transmission device, which is characterized in that applied to the acquisition server in data transmission system, the system Including acquisition server, Relay Server includes server;The data of the acquisition server to the Relay Server are transmitted Distance and the Relay Server include the data transmission distance of server described in, and the respectively less than described acquisition server is to including The data transmission distance of server, described device include:
First receiving module, for including the media data request of server transmission, the media data request includes matchmaker Body traffic identifier;
Module is obtained, for obtaining the data packet of Media Stream according to the media stream identification;
Assembling module assembles the data packet for the acquisition time according to the data packet, obtains assembling data Packet, and the assembling datagram is numbered;The number indicates the assembling sequence of the assembling datagram;
Transmission module, for the assembling datagram to be transferred to the Relay Server.
12. device according to claim 11, which is characterized in that described device further includes sending module, and described first connects Module is received, is also used to receive the retransmission instructions that the Relay Server is sent, includes the first assembling data in the retransmission instructions The number of packet, first assembling datagram are the assembling datagram of missing;
The sending module determines assembling datagram for the number according to the first assembling datagram in the retransmission instructions, and Identified assembling datagram is sent to the Relay Server.
13. a kind of data transmission device, which is characterized in that applied to the Relay Server in data transmission system, the system Including acquisition server, Relay Server includes server;The data of the acquisition server to the Relay Server are transmitted Distance and the Relay Server include the data transmission distance of server described in, and the respectively less than described acquisition server is to including The data transmission distance of server, described device include:
Second receiving module, for receiving the assembling datagram of acquisition server transmission;
Forwarding module, for according to received assembling datagram number, sequentially to it is described include server forwarding received Assembling datagram.
14. device according to claim 13, which is characterized in that described device further include:
Detection module, for according to received assembling datagram number, whether deposit in the received assembling datagram of detection institute In the first assembling datagram, first assembling datagram is the assembling datagram of missing;
If it exists, then retransmission instructions are sent to the acquisition server, includes the first assembling data in the retransmission instructions The number of packet.
15. device according to claim 13, which is characterized in that the detection module is specifically used for:
Determine received assembling datagram number;
If not receiving the assembling datagram of a number, detects and whether receive a number within a preset time Assembling datagram;
If the assembling datagram of a number is not detected, it is determined that the assembling datagram missing of a upper number.
16. a kind of server, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes claim 6, claim 7 or claim 8- 10 any method and steps.
17. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 6, claim 7 or claim 8-10 any institute when the computer program is executed by processor The method and step stated.
CN201910180584.8A 2019-03-11 2019-03-11 A kind of data transmission method, apparatus and system Pending CN109889854A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910180584.8A CN109889854A (en) 2019-03-11 2019-03-11 A kind of data transmission method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910180584.8A CN109889854A (en) 2019-03-11 2019-03-11 A kind of data transmission method, apparatus and system

Publications (1)

Publication Number Publication Date
CN109889854A true CN109889854A (en) 2019-06-14

Family

ID=66931766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910180584.8A Pending CN109889854A (en) 2019-03-11 2019-03-11 A kind of data transmission method, apparatus and system

Country Status (1)

Country Link
CN (1) CN109889854A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075948A (en) * 2006-05-15 2007-11-21 中兴通讯股份有限公司 Method for realizing realtime fluid-medium programm reliable transmission
CN101184195A (en) * 2007-12-25 2008-05-21 腾讯科技(深圳)有限公司 Audio/video living broadcast system and method
CN101232608A (en) * 2007-12-29 2008-07-30 重庆市迪马实业股份有限公司 Double channel video image transmission system
US20130332180A1 (en) * 2012-06-06 2013-12-12 Caresource Mobile care management system and associated methods
CN103945198A (en) * 2014-05-13 2014-07-23 高新兴科技集团股份有限公司 System and method for controlling streaming media route of video monitoring system
CN107277456A (en) * 2017-07-26 2017-10-20 北京计算机技术及应用研究所 A kind of video security monitoring system based on Android device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075948A (en) * 2006-05-15 2007-11-21 中兴通讯股份有限公司 Method for realizing realtime fluid-medium programm reliable transmission
CN101184195A (en) * 2007-12-25 2008-05-21 腾讯科技(深圳)有限公司 Audio/video living broadcast system and method
CN101232608A (en) * 2007-12-29 2008-07-30 重庆市迪马实业股份有限公司 Double channel video image transmission system
US20130332180A1 (en) * 2012-06-06 2013-12-12 Caresource Mobile care management system and associated methods
CN103945198A (en) * 2014-05-13 2014-07-23 高新兴科技集团股份有限公司 System and method for controlling streaming media route of video monitoring system
CN107277456A (en) * 2017-07-26 2017-10-20 北京计算机技术及应用研究所 A kind of video security monitoring system based on Android device

Similar Documents

Publication Publication Date Title
CN106936709B (en) Remote service access path control method and relevant device
CN106612284B (en) Streaming data transmission method and device
CN105553943B (en) Pass transmission method, screen transmission method, equipment and the data transmission system of screen software
CN107925629B (en) Method and device for sending data message in IPv6 network
CN102857354B (en) Alarm information reporting method, apparatus and system
CN108234319B (en) Data transmission method and device
CN101647282A (en) Robust file casting for mobile TV
CN111263239B (en) Video frame packet loss processing method and related device
CN108881052A (en) A kind of message forwarding method and device
CN110944003B (en) File transmission method and electronic equipment
CN106255226A (en) network connection processing method and device
CN102594672A (en) Method and system applicable to high-quality internet communication in low-reliability network environment
CN110113662A (en) A kind of video monitor client system adapting to multiple network situation
CN107800519A (en) The repeating method and retransmission system of a kind of packet
CN108322836A (en) A kind of method and device of data transmission
CN107508828B (en) A kind of very-long-range data interaction system and method
CN101873235A (en) Detection method of equipment network link, network management system and network system
CN103327129A (en) Domain name analyticmethod for multi-WAN-port gateway device
CN104040989B (en) Gateway, and corresponding method, computer program and storage device
CN109981795A (en) Resource request dispatching method and device
JP2003008642A (en) Multi-cast communication method and system
CN104283849A (en) Popup window data pushing and displaying method, device and system
CN109889854A (en) A kind of data transmission method, apparatus and system
CN105828218B (en) A kind of method, apparatus and system detecting multicast data flow transmission quality
TWI472207B (en) A system for capturing multi-nodes and replaying cross-layers

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: 20190614

RJ01 Rejection of invention patent application after publication