CN107071038A - A kind of method and device of transmitting multimedia data - Google Patents

A kind of method and device of transmitting multimedia data Download PDF

Info

Publication number
CN107071038A
CN107071038A CN201710267664.8A CN201710267664A CN107071038A CN 107071038 A CN107071038 A CN 107071038A CN 201710267664 A CN201710267664 A CN 201710267664A CN 107071038 A CN107071038 A CN 107071038A
Authority
CN
China
Prior art keywords
user terminal
data
transfer
watching mode
transfer port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710267664.8A
Other languages
Chinese (zh)
Other versions
CN107071038B (en
Inventor
王涛伟
甘岱杉
刘朝晖
林倩晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Spotmau Information Technology Co Ltd
Original Assignee
Shenzhen Spotmau 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 Shenzhen Spotmau Information Technology Co Ltd filed Critical Shenzhen Spotmau Information Technology Co Ltd
Priority to CN201710267664.8A priority Critical patent/CN107071038B/en
Publication of CN107071038A publication Critical patent/CN107071038A/en
Application granted granted Critical
Publication of CN107071038B publication Critical patent/CN107071038B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method and device of transmitting multimedia data, including:The data request information of the first user terminal is received, data request information carries watching mode information;According to watching mode information, the second user terminal for having with the first user terminal requests identical data is determined whether;If in the presence of, judge and second user terminal between whether be that the transfer port distributed by transfer server carries out data transmission;If it is, the corresponding multi-medium data of watching mode information is transferred into the first user terminal by transfer port.The embodiment of the present invention judges whether multiple user terminals ask identical data, if, a data are then only uploaded to transfer server, by transfer server multiple user terminals are given by transfer port simultaneous transmission, reduce the operation load of internet of things equipment, the upstream bandwidth of internet of things equipment is saved, also ensures that user terminal obtains the fluency of multi-medium data by transfer mode, lifts Consumer's Experience.

Description

A kind of method and device of transmitting multimedia data
Technical field
The present invention relates to network communication technology field, in particular to the method and dress of a kind of transmitting multimedia data Put.
Background technology
In Internet of Things field, intelligent doorbell or the first-class internet of things equipment of network shooting can gather multimedia number in real time According to user remotely can watch these Internet of Things in real time by the APP (Application, application program) on user terminal and set The standby multi-medium data collected.
Currently, when user watches the multi-medium data that internet of things equipment is gathered by user terminal, user terminal and Internet of Things Foundation is attempted by NAT (Network Address Translation, network address translation) through-transmission technique between net equipment P2P (Peer to Peer, peer-to-peer network) direct-connected data channel.If being successfully established the direct-connected data channel of P2P, internet of things equipment Multi-medium data is transferred directly to user terminal by the direct-connected data channel of the P2P.If setting up the direct-connected data channel of P2P to lose Lose, then multi-medium data is first sent to server by internet of things equipment, multi-medium data is transmitted to user terminal by server. Synchronization often has multiple user terminals while the multi-medium data of internet of things equipment is obtained, according to above-mentioned side in practical application Formula internet of things equipment need simultaneously by many parts of identical multi-medium datas upload onto the server or multiple user terminals in.
But the hardware computing capability and upstream bandwidth of internet of things equipment are all very limited, while uploading many parts of multimedia numbers According to, the performance of internet of things equipment is reduced, and the upstream bandwidth that many parts of multi-medium datas of upload take is very big, or even beyond thing The limit of networked devices upstream bandwidth.The reduction of internet of things equipment performance and the limitation of upstream bandwidth, also result in user terminal and obtain Take multi-medium data not smooth.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of method and device of transmitting multimedia data, with Internet of things equipment is avoided while uploading many parts of multi-medium datas, the operation load of reduction internet of things equipment is reached, saves Internet of Things The effect of the upstream bandwidth of equipment.
In a first aspect, the embodiments of the invention provide a kind of method of transmitting multimedia data, methods described includes:
The data request information of the first user terminal is received, the data request information carries watching mode information;
According to the watching mode information, determine whether exist and the first user terminal requests identical data Second user terminal, the second user terminal is the other users terminal in addition to first user terminal;
If it is determined that there is the second user terminal, then judge whether between the second user terminal be by transfer The transfer port of server-assignment carries out data transmission;
If it is, the corresponding multi-medium data of the watching mode information is transferred to by the transfer port described First user terminal.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the first of above-mentioned first aspect, its In, it is described according to the watching mode information, determine whether exist and the first user terminal requests identical data Second user terminal, including:
According to the watching mode information, check in the corresponding relation of watching mode and terminal iidentification whether seen comprising described See pattern information;
If it is, determining to there is currently the second user terminal with the first user terminal requests identical data;
If it is not, then determining to there is currently no the second user terminal with the first user terminal requests identical data.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of second of above-mentioned first aspect, its In, whether it is that the transfer port distributed by transfer server carries out data biography between the judgement and the second user terminal It is defeated, including:
According to the watching mode information, the second user is obtained from the corresponding relation of watching mode and terminal iidentification The terminal iidentification of terminal;
According to the terminal iidentification of the second user terminal, obtained from the corresponding relation of terminal iidentification and transport channel type Take corresponding transport channel type;
If the transport channel type obtained is transfer type, it is determined that between the second user terminal be to pass through The transfer port of transfer server distribution carries out data transmission.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the third of above-mentioned first aspect, its In, it is described that the corresponding multi-medium data of the watching mode information is transferred to by the first user end by the transfer port End, including:
The corresponding transfer port numbers in the transfer port are obtained from the transfer server;
The transfer port numbers are sent to by first user terminal by P2P servers;
The multi-medium data is transferred to by first user terminal by the transfer port on transfer server.
With reference in a first aspect, the embodiments of the invention provide the possible implementation of the 4th of above-mentioned first aspect kind, its In, methods described also includes:
When it is determined that there is currently no the second user terminal with the first user terminal requests identical data, attempt to build The direct-connected data channel of P2P between vertical and described first user terminal;
If the direct-connected data channel of the P2P being successfully established between first user terminal, by with described The direct-connected data channel of the P2P between one user terminal transmits the corresponding multi-medium data of the watching mode information to described First user terminal;
If the failed direct-connected data channel of the P2P set up between first user terminal, is taken by transfer The corresponding multi-medium data of the watching mode information is transferred to first user terminal by business device.
With reference to second of possible implementation of first aspect, the embodiments of the invention provide the of above-mentioned first aspect Five kinds of possible implementations, wherein, methods described also includes:
If the transport channel type obtained indicates that transmission channel is the direct-connected data channel of P2P, to transfer server Apply for transfer port, the transfer port distributed by the transfer server is by the corresponding many matchmakers of the watching mode information Volume data simultaneous transmission gives first user terminal and the second user terminal.
With reference to the 5th kind of possible implementation of first aspect, the embodiments of the invention provide the of above-mentioned first aspect Six kinds of possible implementations, wherein, it is described to transfer server application transfer port, distributed by the transfer server The corresponding multi-medium data simultaneous transmission of the watching mode information is given first user terminal and institute by the transfer port Second user terminal is stated, including:
Send transfer port assignment to ask to transfer server, receive the transfer port numbers that the transfer server is returned;
The transfer port numbers are sent to by first user terminal by P2P servers and the second user is whole End;
The corresponding multi-medium data of the watching mode information is transmitted to the transfer server, and is taken by the transfer The multi-medium data simultaneous transmission is given first user by the corresponding transfer port of the transfer port numbers of business device distribution Terminal and the second user terminal.
With reference to the 6th kind of possible implementation of first aspect, the embodiments of the invention provide the of above-mentioned first aspect Seven kinds of possible implementations, wherein, the corresponding multi-medium data of the watching mode information that transmits takes to the transfer It is engaged in after device, in addition to:
The direct-connected data channel of the P2P between cut-out and the second user terminal.
Second aspect, the embodiments of the invention provide a kind of device of transmitting multimedia data, described device includes:
Receiving module, the data request information for receiving the first user terminal, the data request information carries viewing Pattern information;
Determining module, for according to the watching mode information, determining whether exist and first user terminal The second user terminal of identical data is asked, the second user terminal is whole for the other users in addition to first user terminal End;
Judge module, if determining there is the second user terminal for the determining module, judges and described second Whether it is that the transfer port distributed by transfer server carries out data transmission between user terminal;
Transport module, if judging that between the second user terminal be by transfer service for the judge module The transfer port of device distribution carries out data transmission, then by the transfer port by the corresponding multimedia of the watching mode information Data are transferred to first user terminal.
With reference to second aspect, the embodiments of the invention provide the possible implementation of the first of above-mentioned second aspect, its In, the determining module includes:
Unit is checked, for according to the watching mode information, in the corresponding relation for checking watching mode and terminal iidentification Whether the watching mode information is included;
Determining unit, for if it is, determining to there is currently the with the first user terminal requests identical data Two user terminals;If it is not, then determining to there is currently no the second user end with the first user terminal requests identical data End.
In method and device provided in an embodiment of the present invention, the data request information of the first user terminal, data are received Request message carries watching mode information;According to watching mode information, determine whether exist and the first user terminal requests The second user terminal of identical data;If in the presence of judging whether be by transfer server point between second user terminal The transfer port matched somebody with somebody carries out data transmission;If it is, by transfer port by the corresponding multi-medium data of watching mode information It is transferred to the first user terminal.The embodiment of the present invention judges whether multiple user terminals ask identical data, if it is, on only A data are passed to transfer server, multiple user terminals is given by transfer port simultaneous transmission by transfer server, reduces thing The operation load of networked devices, saves the upstream bandwidth of internet of things equipment, also ensures that user terminal is obtained by transfer mode The fluency of multi-medium data, lifts Consumer's Experience.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be attached to what is used required in embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore is not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows that the embodiment of the present invention 1 provides a kind of network architecture diagram of transmitting multimedia data;
Fig. 2 shows a kind of method flow diagram for transmitting multimedia data that the embodiment of the present invention 1 is provided;
Fig. 3 shows a kind of structural representation of the device for transmitting multimedia data that the embodiment of the present invention 2 is provided;
Fig. 4 shows the structural representation of the device for another transmitting multimedia data that the embodiment of the present invention 2 is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention Middle accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only It is a part of embodiment of the invention, rather than whole embodiments.The present invention being generally described and illustrated herein in the accompanying drawings is real Applying the component of example can be arranged and be designed with a variety of configurations.Therefore, it is of the invention to what is provided in the accompanying drawings below The detailed description of embodiment is not intended to limit the scope of claimed invention, but is merely representative of the selected reality of the present invention Apply example.Based on embodiments of the invention, the institute that those skilled in the art are obtained on the premise of creative work is not made There is other embodiment, belong to the scope of protection of the invention.
In view of internet of things equipment in the prior art need that many parts of identical multi-medium datas upload onto the server simultaneously or In multiple user terminals, the performance of internet of things equipment is reduced, and upload the upstream bandwidth of many parts of multi-medium datas occupancy very Greatly, or even beyond the limit of internet of things equipment upstream bandwidth.The reduction of internet of things equipment performance and the limitation of upstream bandwidth, can also lead User terminal is caused to obtain multi-medium data not smooth.Based on this, the embodiments of the invention provide a kind of transmitting multimedia data Method and device, is described below by embodiment.
Embodiment 1
The embodiments of the invention provide a kind of method of transmitting multimedia data.The executive agent of this method sets for Internet of Things It is standby.Internet of things equipment can be that intelligent doorbell or the first-class multimedia of network shooting watch equipment in real time.In Internet of Things field, use Family can remotely watch the multi-medium data that internet of things equipment is gathered in real time by the APP installed on user terminal.And for same For one internet of things equipment, synchronization there may be multiple user terminals while asking many matchmakers that the internet of things equipment is gathered Volume data.When multiple user terminals ask identical multi-medium data to internet of things equipment simultaneously, internet of things equipment passes through this The method for the transmitting multimedia data that inventive embodiments are provided, only uploads transfer server, in by a multi-medium data Turn server while multi-medium data is transferred into this multiple user terminal, it is to avoid internet of things equipment uploads many parts of identical numbers simultaneously According to saving the upstream bandwidth of internet of things equipment, it is ensured that user terminal can obtain multi-medium data glibly.
The network architecture that method provided in an embodiment of the present invention is based on is as shown in figure 1, the network architecture includes user's end End, internet of things equipment, transfer server and P2P servers.Wherein, transfer server and P2P servers can be two independences Server apparatus, or transfer service function and P2P service function of the configuration on same physical equipment.The present invention Embodiment is described so that transfer server and P2P servers are two independent physical equipments as an example.Shown in Fig. 1 Schematically illustrated in the network architecture in a user terminal, practical application and there may be one or more user terminals.
Internet of things equipment has the device identification for being capable of unique mark itself.Passing through method provided in an embodiment of the present invention Come before transmitting multimedia data, internet of things equipment needs transmission registration request to give P2P servers, and the registration request carries Internet of Things The device identification of net equipment, the device identification of the P2P server storages internet of things equipment completes the note to the internet of things equipment Volume.And also send heartbeat message every preset time period internet of things equipment and give P2P servers, the heartbeat message carries Internet of Things Intranet IP (agreement interconnected between Internet Protocol, the network) addresses of equipment and Intranet port numbers, P2P servers It is the outer net IP address that would know that internet of things equipment based on network information transfer when receiving the heartbeat message of internet of things equipment With outer net port numbers, by the device identification of internet of things equipment, IP address of internal network, Intranet port numbers, outer net IP address and outer net end Slogan constitutes the routing table information of internet of things equipment, stores the routing table information.
Above-mentioned preset time period can be 5 hours, one day or one week etc..Each P2P servers receive internet of things equipment Heartbeat message when, by the corresponding IP address of internal network of the heartbeat message, Intranet port numbers, outer net IP address and outer net port numbers point Not with the IP address of internal network in the routing table information of the internet of things equipment stored, Intranet port numbers, outer net IP address and outer Net port numbers are compared, if comparing unanimously, without operation.If inconsistent, the routing table information stored is deleted, New routing table information is set up according to the heartbeat message, and stores the new routing table information.
After internet of things equipment is registered on P2P servers, if user wants the multimedia number of viewing internet of things equipment collection According to multi-medium data to be then transferred to the user terminal of user by method provided in an embodiment of the present invention.Referring to Fig. 2, the party Method specifically includes following steps:
Step 101:The data request information of the first user terminal is received, the data request information carries watching mode letter Breath.
When user wants the multi-medium data of viewing internet of things equipment collection, user sends data by the terminal of oneself Request message gives P2P servers.For the ease of description, the terminal of the user is referred to as the first user end in the embodiment of the present invention End.Above-mentioned data request information also carries the terminal iidentification of the first user terminal, Internet of Things and set in addition to watching mode information is carried Standby device identification, the IP address of internal network of the first user terminal and Intranet port numbers.Wherein, watching mode information is more for indicating The pattern of media data, the pattern of multi-medium data includes smooth pattern, SD pattern or high definition pattern etc..Different mode it is many The data volume of media data is different, and image sharpness when playing multi-medium data is also different.
When P2P servers receive the data request information of the first user terminal transmission, you can know the first user terminal Outer net IP address and outer net port numbers.The equipment mark for the internet of things equipment that P2P servers are carried according to the data request information Know, check the routing table information of the internet of things equipment, the outer net IP of the internet of things equipment included according to the routing table information Location, outer net port numbers, IP address of internal network and Intranet port numbers, by above-mentioned data request information and the outer net of the first user terminal IP address and outer net port numbers are sent to internet of things equipment.Internet of things equipment receives the first user terminal of P2P servers forwarding Data request information and the first user terminal outer net IP address and outer net port numbers.
Step 102:According to watching mode information, determine whether exist and the first user terminal requests identical data Second user terminal, second user terminal is the other users terminal in addition to the first user terminal.
Internet of things equipment safeguards the corresponding relation of a watching mode and terminal iidentification, and institute is store in the corresponding relation There are the terminal iidentification for the user terminal for obtaining multi-medium data and the watching mode information of user terminal requests.
For same internet of things equipment, the corresponding multi-medium data of identical watching mode information is identical.Internet of Things is set After the standby data request information for receiving the first user terminal, the watching mode information included according to the data request information is looked into See in the corresponding relation of watching mode and terminal iidentification and whether include the watching mode information;If it is, determining there is currently With the second user terminal of the first user terminal requests identical data;If it is not, then determining to there is currently no and the first user end The second user terminal of end request identical data.
In embodiments of the present invention, when it is determined that in the absence of the second user terminal with the first user terminal requests identical data When, the first user terminal is determined to be first asks the user terminal of the corresponding multi-medium data of watching mode information, this When internet of things equipment attempt the direct-connected data channel of P2P set up by NAT through-transmission techniques between the first user terminal, if successfully The direct-connected data channel of P2P set up between the first user terminal, then pass through the direct-connected data of P2P between the first user terminal The channel transfer corresponding multi-medium data of watching mode information gives the first user terminal.If failed set up whole with the first user The corresponding multi-medium data of watching mode information, then be transferred to by the direct-connected data channel of P2P between end by transfer server First user terminal.
Internet of things equipment is when attempting to set up the direct-connected data channel of P2P with the first user terminal, and internet of things equipment is sent out first Routing forwarding is sent to notify to give P2P servers, the routing forwarding notifies to include device identification, the first user terminal of internet of things equipment Terminal iidentification and routing forwarding configured information.The routing forwarding configured information can be used to indicate P2P servers to be default Forward the designator of routing iinformation, such as 0 or 1.The routing forwarding that P2P servers receive internet of things equipment transmission is notified Afterwards, according to the device identification of internet of things equipment, the routing table information of the internet of things equipment is obtained.Notify to wrap further according to routing forwarding The terminal iidentification included, the first user terminal is sent to by the routing table information.Wherein, routing table information includes internet of things equipment Device identification, IP address of internal network, Intranet port numbers, outer net IP address and outer net port numbers.So far, internet of things equipment and first is used Family terminal knows the IP address of internal network of other side, Intranet port numbers, outer net IP address and outer net port numbers.Then internet of things equipment NAT through-transmission techniques are begun through with the first user terminal to attempt to set up the direct-connected data channel of P2P.
If being successfully established the direct-connected data channel of P2P, by the direct-connected data channel of the P2P directly by watching mode information Corresponding multi-medium data is transferred to the first user terminal.If the direct-connected data channel of P2P sets up failure, need by transfer service Device repeating multimedia data give the first user terminal, and now internet of things equipment sends transfer port assignment and asks to take to transfer first Business device, transfer port assignment request carries the device identification of internet of things equipment.Transfer server receives the transfer port point After request, according to the device identification of the internet of things equipment, for internet of things equipment distribution transfer port, and by the transfer of distribution The transfer port numbers of port return to internet of things equipment.Internet of things equipment receives the transfer port numbers of transfer server return Afterwards, send transfer request message and give P2P servers, the transfer request message carries the end of transfer port numbers and the first user terminal End mark.P2P servers are received after transfer request message, according to the terminal iidentification of the first user terminal, by transfer port numbers It is sent to the first user terminal.The corresponding multi-medium data of watching mode information is uploaded to transfer server by internet of things equipment, First user terminal is received after transfer port numbers, and subsequently from transfer server, the corresponding transfer port of the transfer port numbers is obtained Take multi-medium data.It is i.e. follow-up that multi-medium data is transferred to the first user terminal via transfer port by transfer server.
When determining in the absence of second user terminal with the first user terminal requests identical data, by above-mentioned Multi-medium data is transferred to after the first user terminal by the direct-connected data channel of P2P by way of transfer server is forwarded, The watching mode information that internet of things equipment also carries the data request information of the first user terminal and the end of the first user terminal End mark correspondence is stored in the corresponding relation of watching mode and terminal iidentification, and by the terminal iidentification of the first user terminal and The transport channel type correspondence for transmitting data to the first user terminal is stored in terminal iidentification pass corresponding with transport channel type In system.Wherein, when data channel transmitting multimedia data direct-connected by P2P, transport channel type is that the direct-connected data of P2P are led to Road, if by transfer server repeating multimedia data, transport channel type is transfer type.
In embodiments of the present invention, when it is determined that in the presence of the second user terminal with the first user terminal requests identical data When, 103 and 104 operation as follows carrys out transmitting multimedia data to the first user terminal.
Step 103:If it is determined that there is second user terminal, then judge whether between second user terminal be by transfer The transfer port of server-assignment carries out data transmission.
When step 102, which is determined, there is currently the second user terminal with the first user terminal requests identical data, thing Networked devices obtain the end of second user terminal according to watching mode information from the corresponding relation of watching mode and terminal iidentification End mark;According to the terminal iidentification of second user terminal, the acquisition pair from the corresponding relation of terminal iidentification and transport channel type The transport channel type answered;If the transport channel type obtained is transfer type, it is determined that between second user terminal be logical The transfer port for crossing transfer server distribution carries out data transmission, the operation of subsequent execution step 104.
If the transport channel type obtained indicates that transmission channel is the direct-connected data channel of P2P, to transfer server application Transfer port, the transfer port distributed by transfer server by the corresponding multi-medium data simultaneous transmission of watching mode information to First user terminal and second user terminal.
Specifically, internet of things equipment sends transfer port assignment and asked to transfer server, transfer port assignment request Carry the device identification of internet of things equipment.Transfer server is that internet of things equipment is distributed behind transfer port, by transfer port correspondence Transfer port numbers be sent to internet of things equipment.Internet of things equipment receives the transfer port numbers that transfer server is returned.Then The transfer port numbers are sent to the first user terminal and second user terminal by internet of things equipment by P2P servers, and are transmitted The corresponding multi-medium data of watching mode information is to transfer server, and the transfer port numbers correspondence distributed by transfer server Transfer port by multi-medium data simultaneous transmission give the first user terminal and second user terminal.
Multi-medium data is transmitted to after the first user terminal by transfer server through the above way, internet of things equipment is also Watching mode information that the data request information of first user terminal is carried is corresponding with the terminal iidentification of the first user terminal to deposit Store up in the corresponding relation of watching mode and terminal iidentification, and it is by the terminal iidentification of the first user terminal and whole to the first user The transport channel type correspondence of end transmission data is stored in the corresponding relation of terminal iidentification and transport channel type.The now biography Defeated channel type is transfer type.
In embodiments of the present invention, the corresponding multi-medium data of above-mentioned internet of things equipment transmission watching mode information is to transfer After server, the direct-connected data channel of P2P also between cut-out and second user terminal.Second user terminal is from transfer after cut-out Server obtains multi-medium data, so realizes that the first user terminal is identical from transfer server acquisition with second user terminal Multi-medium data, internet of things equipment only multi-medium data is uploaded into transfer server, internet of things equipment only uploads one Part multi-medium data, you can realize that simultaneous transmission multi-medium data, to the first user terminal and second user terminal, is greatlyd save The upstream bandwidth of internet of things equipment.
In embodiments of the present invention, also there is the possibility that any transmission channel is not yet set up with second user terminal, herein In the case of, the transport channel type obtained according to the terminal iidentification of second user terminal is sky.When the transport channel type of acquisition For space-time, determine and not yet set up any data transmission channel with second user terminal, be now that P2P is straight with transport channel type Even the situation of data channel is identical, also passes through transfer server point to transfer server application transfer port in the manner described above The transfer port matched somebody with somebody is whole to the first user terminal and second user by the corresponding multi-medium data simultaneous transmission of watching mode information End.
When the transport channel type of acquisition is transfer type, transmitting multimedia data is carried out subsequently through following steps 104 To the first user terminal.
Step 104:If it is determined that being that the transfer port distributed by transfer server is carried out between second user terminal Data transfer, then be transferred to the first user terminal by the transfer port by the corresponding multi-medium data of watching mode information.
When it is determined that being to send multi-medium data to second user terminal by way of transfer server is forwarded, in showing Turn server and be assigned with transfer port for the internet of things equipment, and internet of things equipment is corresponding by the watching mode information Multi-medium data uploads to transfer server, and multi-medium data is transferred to second user by transfer server by the transfer port Terminal.
Because the first user terminal is identical with the multi-medium data of second user terminal request, so now can directly utilize The transfer port, the first user terminal is transmitted to by transfer server by multi-medium data.Internet of things equipment is from transfer server The corresponding transfer port numbers in the transfer port are obtained, the transfer port numbers are sent to by the first user terminal by P2P servers, Then multi-medium data is transferred to by the first user terminal by the transfer port on transfer server.
Concrete operations are, internet of things equipment sends transfer request message and gives P2P servers, and the transfer request message carries the The corresponding transfer port numbers of the terminal iidentification of one user terminal and above-mentioned transfer port.P2P servers receive transfer request After message, according to the terminal iidentification of the first user terminal, the transfer port numbers are sent to the first user terminal.First user is whole Termination is received after the transfer port numbers, you can the corresponding transfer port of the transfer port numbers obtains multimedia on to transfer server Data.I.e. by being realized simultaneously to the first user terminal and second to the transfer port of second user terminal repeating multimedia data User terminal forwards identical multi-medium data.
Whether internet of things equipment is identical by the data for judging multiple user terminal requests, carrys out intelligent selection and transmits many matchmakers The mode of volume data.In multiple user terminal requests identical datas, a data only are uploaded to transfer server, pass through transfer Simultaneous Transmission of Data is given multiple user terminals by server, on the one hand can reduce the operation load of internet of things equipment, in addition one Aspect can reduce upstream bandwidth used in internet of things equipment, by way of transfer, can also ensure that user terminal is played The fluency of multi-medium data, lifts Consumer's Experience.
In embodiments of the present invention, it is whole to the first user terminal and second user by transfer port repeating multimedia data Behind end, transfer server also reclaims transfer port, it is to avoid the waste of transfer port resource.
And in embodiments of the present invention, if for coming with the second user terminal of the first user terminal application identical data Say, internet of things equipment is to second user terminal transmission multi-medium data, then directly by way of transfer server transfer Using the transfer port that data are forwarded to second user terminal, without again to transfer server application transfer port, in improving Turn the utilization rate of port, save processing time.
In embodiments of the present invention, the data request information of the first user terminal is received, data request information carries viewing Pattern information;According to watching mode information, determine whether to exist and used with the second of the first user terminal requests identical data Family terminal;If in the presence of judging whether be that the transfer port distributed by transfer server is carried out between second user terminal Data transfer;If it is, the corresponding multi-medium data of watching mode information is transferred into the first user end by transfer port End.The embodiment of the present invention judges whether multiple user terminals ask identical data, if it is, only uploading a data to transfer Server, gives multiple user terminals, the operation of reduction internet of things equipment is born by transfer server by transfer port simultaneous transmission Carry, save the upstream bandwidth of internet of things equipment, also ensure that user terminal obtains the smoothness of multi-medium data by transfer mode Property, lift Consumer's Experience.
Embodiment 2
Referring to Fig. 3, the embodiments of the invention provide a kind of device of transmitting multimedia data, the device is above-mentioned for performing The method for the transmitting multimedia data that embodiment 1 is provided, the device is specifically included:
Receiving module 21, the data request information for receiving the first user terminal, data request information carries viewing mould Formula information;
Determining module 22, for according to watching mode information, determining whether exist and the first user terminal requests phase With the second user terminal of data, second user terminal is the other users terminal in addition to the first user terminal;
Judge module 23, for if it is determined that module 22 determine there is second user terminal, then judge with second user terminal Between whether be that the transfer port distributed by transfer server carries out data transmission;
Transport module 24, for if it is determined that module 23 judges it is by transfer server point between second user terminal The transfer port matched somebody with somebody carries out data transmission, then the corresponding multi-medium data of watching mode information is transferred into by transfer port One user terminal.
As shown in figure 4, determining module 22 includes:
Unit 221 is checked, for according to watching mode information, being in the corresponding relation for checking watching mode and terminal iidentification It is no to include watching mode information;
Determining unit 222, for if it is, determining to there is currently second with the first user terminal requests identical data User terminal;If it is not, then determining to there is currently no the second user terminal with the first user terminal requests identical data.
In embodiments of the present invention, judge module 23, for according to watching mode information, from watching mode and terminal iidentification Corresponding relation in obtain second user terminal terminal iidentification;According to the terminal iidentification of second user terminal, from terminal iidentification With obtaining corresponding transport channel type in the corresponding relation of transport channel type;If the transport channel type obtained is transfer class Type, it is determined that between second user terminal be that the transfer port distributed by transfer server carries out data transmission.
Transport module 24, for obtaining the corresponding transfer port numbers in transfer port from transfer server;Pass through P2P servers Transfer port numbers are sent to the first user terminal;Multi-medium data is transferred to by the transfer port on transfer server One user terminal.
In embodiments of the present invention, the device also includes:Module is set up, for there is currently no and the first user when determination During the second user terminal of terminal request identical data, the direct-connected data channel of P2P set up between the first user terminal is attempted; If the direct-connected data channel of the P2P being successfully established between the first user terminal, straight by the P2P between the first user terminal Even the corresponding multi-medium data of data channel transmission watching mode information gives the first user terminal;If failed set up is used with first The direct-connected data channel of P2P between the terminal of family, then passed the corresponding multi-medium data of watching mode information by transfer server It is defeated by the first user terminal.
In embodiments of the present invention, transport module 24, if the transport channel type for being additionally operable to obtain indicates that transmission channel is The direct-connected data channel of P2P, then to transfer server application transfer port, the transfer port distributed by transfer server will be watched The corresponding multi-medium data simultaneous transmission of pattern information gives the first user terminal and second user terminal.
Above-mentioned transport module 24, asks to transfer server for sending transfer port assignment, receives transfer server and return The transfer port numbers returned;Transfer port numbers are sent to by the first user terminal and second user terminal by P2P servers;Transmission The corresponding multi-medium data of watching mode information is to transfer server, and the transfer port numbers correspondence distributed by transfer server Transfer port by multi-medium data simultaneous transmission give the first user terminal and second user terminal.
In embodiments of the present invention, the device also includes:Module is cut off, for cutting off between second user terminal The direct-connected data channel of P2P.
In embodiments of the present invention, internet of things equipment receives the data request information of the first user terminal, and request of data disappears Breath carries watching mode information;According to watching mode information, determine whether there is number identical with the first user terminal requests According to second user terminal;If in the presence of in whether being distributed between judgement and second user terminal by transfer server Turn port to carry out data transmission;If it is, the corresponding multi-medium data of watching mode information is transferred to by transfer port First user terminal.The embodiment of the present invention judges whether multiple user terminals ask identical data, if it is, only uploading a Data give multiple user terminals, reduction Internet of Things is set by transfer server to transfer server by transfer port simultaneous transmission Standby operation load, saves the upstream bandwidth of internet of things equipment, also ensures that user terminal obtains multimedia by transfer mode The fluency of data, lifts Consumer's Experience.
The device for the transmitting multimedia data that the embodiment of the present invention is provided can be the specific hardware or peace in equipment Loaded on software or firmware in equipment etc..The technique effect of the device that the embodiment of the present invention is provided, its realization principle and generation Identical with preceding method embodiment, to briefly describe, device embodiment part does not refer to part, refers to preceding method embodiment Middle corresponding contents.It is apparent to those skilled in the art that, for convenience and simplicity of description, described above is The specific work process of system, device and unit, may be referred to the corresponding process in above method embodiment, no longer go to live in the household of one's in-laws on getting married herein State.
, can be by others side in embodiment provided by the present invention, it should be understood that disclosed apparatus and method Formula is realized.Device embodiment described above is only schematical, for example, the division of the unit, only one kind are patrolled Collect function to divide, there can be other dividing mode when actually realizing, in another example, multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other Coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of device or unit by some communication interfaces Connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in the embodiment that the present invention is provided can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each of the invention embodiment methods described. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing, in addition, term " the One ", " second ", " the 3rd " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Finally it should be noted that:Embodiment described above, is only the embodiment of the present invention, to illustrate the present invention Technical scheme, rather than its limitations, protection scope of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair It is bright to be described in detail, it will be understood by those within the art that:Any one skilled in the art The invention discloses technical scope in, it can still modify to the technical scheme described in previous embodiment or can be light Change is readily conceivable that, or equivalent substitution is carried out to which part technical characteristic;And these modifications, change or replacement, do not make The essence of appropriate technical solution departs from the spirit and scope of technical scheme of the embodiment of the present invention.The protection in the present invention should all be covered Within the scope of.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of method of transmitting multimedia data, it is characterised in that methods described includes:
The data request information of the first user terminal is received, the data request information carries watching mode information;
According to the watching mode information, determine whether there is second with the first user terminal requests identical data User terminal, the second user terminal is the other users terminal in addition to first user terminal;
If it is determined that there is the second user terminal, then judge whether between the second user terminal be by transfer service The transfer port of device distribution carries out data transmission;
If it is, the corresponding multi-medium data of the watching mode information is transferred into described first by the transfer port User terminal.
2. according to the method described in claim 1, it is characterised in that described according to the watching mode information, it is determined that being currently The no second user terminal existed with the first user terminal requests identical data, including:
According to the watching mode information, check in the corresponding relation of watching mode and terminal iidentification whether include the viewing mould Formula information;
If it is, determining to there is currently the second user terminal with the first user terminal requests identical data;
If it is not, then determining to there is currently no the second user terminal with the first user terminal requests identical data.
3. according to the method described in claim 1, it is characterised in that between the judgement and the second user terminal whether be The transfer port distributed by transfer server carries out data transmission, including:
According to the watching mode information, the second user terminal is obtained from the corresponding relation of watching mode and terminal iidentification Terminal iidentification;
According to the terminal iidentification of the second user terminal, the acquisition pair from the corresponding relation of terminal iidentification and transport channel type The transport channel type answered;
If the transport channel type obtained is transfer type, it is determined that between the second user terminal be by transfer The transfer port of server-assignment carries out data transmission.
4. according to the method described in claim 1, it is characterised in that described to be believed the watching mode by the transfer port Cease corresponding multi-medium data and be transferred to first user terminal, including:
The corresponding transfer port numbers in the transfer port are obtained from the transfer server;
The transfer port numbers are sent to by first user terminal by P2P servers;
The multi-medium data is transferred to by first user terminal by the transfer port on transfer server.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
When it is determined that there is currently no the second user terminal with the first user terminal requests identical data, attempt set up with The direct-connected data channel of P2P between first user terminal;
If the direct-connected data channel of the P2P being successfully established between first user terminal, by being used with described first The direct-connected data channel of the P2P between the terminal of family transmits the corresponding multi-medium data of the watching mode information to described first User terminal;
If the failed direct-connected data channel of the P2P set up between first user terminal, passes through transfer server The corresponding multi-medium data of the watching mode information is transferred to first user terminal.
6. method according to claim 3, it is characterised in that methods described also includes:
If the transport channel type obtained indicates that transmission channel is the direct-connected data channel of P2P, to transfer server application Transfer port, the transfer port distributed by the transfer server is by the corresponding multimedia number of the watching mode information First user terminal and the second user terminal are given according to simultaneous transmission.
7. method according to claim 6, it is characterised in that described to transfer server application transfer port, passes through institute State transfer server distribution the transfer port by the corresponding multi-medium data simultaneous transmission of the watching mode information to institute The first user terminal and the second user terminal are stated, including:
Send transfer port assignment to ask to transfer server, receive the transfer port numbers that the transfer server is returned;
The transfer port numbers are sent to by first user terminal and the second user terminal by P2P servers;
The corresponding multi-medium data of the watching mode information is transmitted to the transfer server, and passes through the transfer server The multi-medium data simultaneous transmission is given first user terminal by the corresponding transfer port of the transfer port numbers of distribution With the second user terminal.
8. method according to claim 7, it is characterised in that the corresponding multimedia of the transmission watching mode information Data are given after the transfer server, in addition to:
The direct-connected data channel of the P2P between cut-out and the second user terminal.
9. a kind of device of transmitting multimedia data, it is characterised in that described device includes:
Receiving module, the data request information for receiving the first user terminal, the data request information carries watching mode Information;
Determining module, for according to the watching mode information, determining whether exist and first user terminal requests The second user terminal of identical data, the second user terminal is the other users terminal in addition to first user terminal;
Judge module, if determining there is the second user terminal for the determining module, judges and the second user Whether it is that the transfer port distributed by transfer server carries out data transmission between terminal;
Transport module, if judging it is by transfer server point between the second user terminal for the judge module The transfer port matched somebody with somebody carries out data transmission, then by the transfer port by the corresponding multi-medium data of the watching mode information It is transferred to first user terminal.
10. device according to claim 9, it is characterised in that the determining module includes:
Check unit, for according to the watching mode information, check in the corresponding relation of watching mode and terminal iidentification whether Include the watching mode information;
Determining unit, for being used if it is, determining there is currently with the second of the first user terminal requests identical data Family terminal;If it is not, then determining to there is currently no the second user terminal with the first user terminal requests identical data.
CN201710267664.8A 2017-04-21 2017-04-21 Method and device for transmitting multimedia data Expired - Fee Related CN107071038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710267664.8A CN107071038B (en) 2017-04-21 2017-04-21 Method and device for transmitting multimedia data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710267664.8A CN107071038B (en) 2017-04-21 2017-04-21 Method and device for transmitting multimedia data

Publications (2)

Publication Number Publication Date
CN107071038A true CN107071038A (en) 2017-08-18
CN107071038B CN107071038B (en) 2020-04-24

Family

ID=59603356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710267664.8A Expired - Fee Related CN107071038B (en) 2017-04-21 2017-04-21 Method and device for transmitting multimedia data

Country Status (1)

Country Link
CN (1) CN107071038B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109728992A (en) * 2018-11-27 2019-05-07 盛科网络(苏州)有限公司 Method, apparatus, storage medium and the electronic device in distribution forwarding domain
CN110535975A (en) * 2019-09-27 2019-12-03 京东方科技集团股份有限公司 Data transmission method, apparatus and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631006A (en) * 2008-07-15 2010-01-20 株式会社日立制作所 System and method for transmitting data
CN103607700A (en) * 2013-11-07 2014-02-26 北京邮电大学 Time window based high energy efficiency unicast and multicast mixing transmission method and apparatus
US9191374B1 (en) * 2014-09-22 2015-11-17 Belkin International Inc. Routing device data caching
WO2016181861A1 (en) * 2015-05-08 2016-11-17 シャープ株式会社 Terminal device and base station device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101631006A (en) * 2008-07-15 2010-01-20 株式会社日立制作所 System and method for transmitting data
CN103607700A (en) * 2013-11-07 2014-02-26 北京邮电大学 Time window based high energy efficiency unicast and multicast mixing transmission method and apparatus
US9191374B1 (en) * 2014-09-22 2015-11-17 Belkin International Inc. Routing device data caching
WO2016181861A1 (en) * 2015-05-08 2016-11-17 シャープ株式会社 Terminal device and base station device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109728992A (en) * 2018-11-27 2019-05-07 盛科网络(苏州)有限公司 Method, apparatus, storage medium and the electronic device in distribution forwarding domain
CN110535975A (en) * 2019-09-27 2019-12-03 京东方科技集团股份有限公司 Data transmission method, apparatus and system

Also Published As

Publication number Publication date
CN107071038B (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN103475682B (en) File transfer method and file transfer equipment
CN104144098B (en) Information push method, system and push server equipment
CN103873505B (en) Method, system and the device uploaded offline to cloud storage service device
CN110351246A (en) Server cluster system Socket management method and device
CN106850710A (en) A kind of safe data cloud storage system, client terminal, storage server and application process
CN105407117B (en) The methods, devices and systems of distributed backup data
CN109491758A (en) Docker mirror image distribution method, system, data gateway and computer readable storage medium
CN101953139B (en) DHCP in response to Internet connectedness initializes
CN108881354A (en) A kind of pushed information storage method, device, server and computer storage medium
CN105871591A (en) Method and device for distributing CDN (Content Delivery Network) addresses
CN106713391A (en) Session information sharing method and sharing system
CN102420863B (en) Rapid file distribution system, method thereof and apparatus thereof
CN112698838B (en) Multi-cloud container deployment system and container deployment method thereof
CN109150936A (en) The sharing method and device of session object Session in a kind of distributed type assemblies
CN114039875B (en) Data acquisition method, device and system based on eBPF technology
CN109873855A (en) A kind of resource acquiring method and system based on block chain network
CN105978938A (en) Service processing equipment service status determining method and scheduling equipment
CN105281987B (en) Router and data uploading method, device, system
CN110392123A (en) The methods, devices and systems of detection outlet IP address
CN107071038A (en) A kind of method and device of transmitting multimedia data
CN103716230A (en) Message sending method, device and server
CN111083204A (en) File transmission method, device and storage medium
CN105357260B (en) Realize system, VDI data cache method and the VDI buffer memory device of virtual desktop
CN106358001A (en) Information processing method, information processing apparatus and information processing system
CN106330492B (en) A kind of method, apparatus and system configuring user equipment forwarding table

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200424

CF01 Termination of patent right due to non-payment of annual fee