CN108270731A - A kind of data flow transmission method, device and relevant device - Google Patents
A kind of data flow transmission method, device and relevant device Download PDFInfo
- Publication number
- CN108270731A CN108270731A CN201611260794.0A CN201611260794A CN108270731A CN 108270731 A CN108270731 A CN 108270731A CN 201611260794 A CN201611260794 A CN 201611260794A CN 108270731 A CN108270731 A CN 108270731A
- Authority
- CN
- China
- Prior art keywords
- source
- media
- multicast
- data stream
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/611—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/65—Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/64—Addressing
- H04N21/6405—Multicasting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/643—Communication protocols
- H04N21/64322—IP
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8352—Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]
Abstract
The invention discloses a kind of data flow transmission method, including:For at least two paths of data stream of the first source of media, using the different port number mark of User Datagram Protocol (UDP) per circuit-switched data stream;Multicast internet protocol (IP) address based on first source of media, at least two paths of data stream of the first source of media after mark is sent out.The present invention also discloses a kind of data stream transmitting device, source device, intermediate equipment and terminals.
Description
Technical field
The present invention relates to the multicast transmission technology of internet arena more particularly to a kind of data flow transmission method, device and
Relevant device.
Background technology
With the rapid development of broadband internet television services, the extensive use in the Internet transmission of multicast transmission technology,
Such as in IPTV, OTT (Over The Top) technology, live broadcast service is realized commonly using multicast transmission technology.
In current live broadcast service, a multicast group can only transmit a kind of multicast code stream, while a channel can include
Multichannel code stream, so the multichannel code stream of a channel just needs multiple multicast groups to transmit.But the resource of multicast group is limited
, thus how using limited multicast group resource come to transmit multiplex data stream be current urgent problem to be solved.
Invention content
To solve existing technical problem, the embodiment of the present invention provides a kind of data flow transmission method, device and phase
Close equipment.
What the technical solution of the embodiment of the present invention was realized in:
An embodiment of the present invention provides a kind of data flow transmission method, including:
For at least two paths of data stream of the first source of media, User Datagram Protocol (UDP, User Datagram is utilized
Protocol different port number mark) is per circuit-switched data stream;
Based on the multicast internet protocol IP address of first source of media, by least two of the first source of media after mark
Circuit-switched data stream is sent out.
In said program, using the port numbers mark of UDP per circuit-switched data stream, including:
In the UDP headings of every circuit-switched data stream, a destination slogan, the destination of at least two paths of data stream are encapsulated
Slogan is different;
The multicast ip address based on first source of media, by at least two paths of data of the first source of media after mark
Stream is sent out, including:
The corresponding multicast ip address of first source of media is added in the destination address of IP packet head.
In said program, the code check of every circuit-switched data stream of first source of media is different, alternatively, first source of media
Angle per the corresponding scenic picture of circuit-switched data stream is different.
The embodiment of the present invention additionally provides a kind of data flow transmission method, including:
Receive data flow;
Data flow is parsed, obtains the first multicast ip address and at least two port numbers of UDP;
The data flow that the data flow received is the first source of media is determined using first multicast ip address;Utilize UDP's
Different port number identifies every circuit-switched data stream of the first source of media;
For at least two paths of data stream of the first source of media of reception, using the different port number mark of UDP per circuit-switched data
Stream;
Based on the second multicast ip address of first source of media, by at least two paths of data of the first source of media after mark
Stream is sent out.
In said program, the reception data flow, including:
Using Hook Function, the IP packet head of message and UDP headings, at least two paths of data stream of the first source of media are received
The complete message of the multicast packet formed;
Correspondingly, for each message, the IP packet head is parsed, obtains the first multicast ip address;
The UDP headings are parsed, obtain the port numbers of a corresponding UDP.
In said program, before receiving data flow, the method further includes:
Using corresponding first multicast ip address of first source of media, based on the Internet Group Management Protocol (IGMP,
Internet Group Management Protocol) add in the corresponding multicast group of multicast channel of first source of media.
In said program, the corresponding multicast group of multicast channel of first source of media is added in based on IGMP, including:
Using corresponding first multicast ip address of first source of media, IGMP messages are generated;
The IGMP messages are sent to interchanger;The IGMP messages add in the multicast of first source of media for request
The corresponding multicast group of channel.
In said program, the every circuit-switched data stream of port numbers mark using UDP, including:
In the UDP headings of every circuit-switched data stream, a destination slogan, the destination of at least two paths of data stream are encapsulated
Slogan is different;
Second multicast ip address based on first source of media, by at least two-way of the first source of media after mark
Data flow is sent out, including:
Corresponding second multicast ip address of first source of media is added in the destination address of IP packet head.
In said program, the code check of every circuit-switched data stream of first source of media is different, alternatively, first source of media
Angle per the corresponding scenic picture of circuit-switched data stream is different.
The embodiment of the present invention provides a kind of data flow transmission method again, including:
Receive data flow;
Data flow is parsed, obtains multicast ip address and at least two port numbers of UDP;
The data flow that the data flow received is the first source of media is determined using the multicast ip address;Utilize the UDP's
Different port number identifies every circuit-switched data stream of the first source of media.
In said program, the reception data flow, including:
Using Hook Function, the IP packet head of message and UDP headings, at least two paths of data stream of the first source of media are received
The complete message of the multicast packet formed;
Correspondingly, for each message, the IP packet head is parsed, obtains multicast ip address;
The UDP headings are parsed, obtain the port numbers of a corresponding UDP.
In said program, before receiving data flow, the method further includes:
Using the corresponding multicast ip address of first source of media, the multicast frequency of first source of media is added in based on IGMP
The corresponding multicast group in road.
In said program, the corresponding multicast group of multicast channel of first source of media is added in based on IGMP, including:
Using the corresponding multicast ip address of first source of media, IGMP messages are generated;
The IGMP messages are sent to interchanger;The IGMP messages add in the multicast of first source of media for request
The corresponding multicast group of channel.
In said program, the code check of every circuit-switched data stream of first source of media is different, alternatively, first source of media
Angle per the corresponding scenic picture of circuit-switched data stream is different.
The embodiment of the present invention additionally provides a kind of data stream transmitting device, including:
First flag module for being directed at least two paths of data stream of the first source of media, is marked using the different port number of UDP
Know per circuit-switched data stream;
First transmitting element, based on the IP address of first source of media, by least two of the first source of media after mark
Circuit-switched data stream is sent out.
In said program, the first flag module specifically for the UDP headings in every circuit-switched data stream, encapsulates one
Destination slogan, the destination slogan of at least two paths of data stream are different;
First transmitting element, it is corresponding specifically for adding first source of media in the destination address of IP packet head
Multicast ip address.
The embodiment of the present invention provides a kind of data stream transmitting device again, including:
First receiving unit, for receiving data flow;
First resolution unit for parsing data flow, obtains the first multicast ip address and at least two port numbers of UDP;
First recognition unit, for determining the data flow received for the first source of media using first multicast ip address
Data flow;Every circuit-switched data stream of the first source of media is identified using the different port number of the UDP;
Second identifier module for being directed at least two paths of data stream of the first source of media of reception, utilizes the different ends of UDP
Slogan mark is per circuit-switched data stream;
Second transmitting element, for the second IP address based on first source of media, by the first source of media after mark
At least two paths of data stream send out.
In said program, described device further includes:
First adds in unit, for using corresponding first multicast ip address of first source of media, being added in based on IGMP
The corresponding multicast group of multicast channel of first source of media.
The embodiment of the present invention additionally provides a kind of data transmission stream device, including:
Second receiving unit, for receiving data flow;
Second resolution unit for parsing data flow, obtains multicast ip address and at least two port numbers of UDP;
Second recognition unit, for determining data of the data flow received for the first source of media using the multicast ip address
Stream;Every circuit-switched data stream of the first source of media is identified using the different port number of the UDP.
In said program, described device further includes:
Second adds in unit, for utilizing the corresponding multicast ip address of first source of media, based on described in IGMP additions
The corresponding multicast group of multicast channel of first source of media.
The embodiment of the present invention additionally provides a source device, including:
First processor for being directed at least two paths of data stream of the first source of media, utilizes the difference of user datagram UDP
Port numbers mark is per circuit-switched data stream;
First communication interface, for the multicast ip address based on first source of media, by the first source of media after mark
At least two paths of data stream send out.
The embodiment of the present invention provides a kind of intermediate equipment again, including:
Second communication interface, for receiving data flow;
Second processor for parsing data flow, obtains the first multicast ip address and at least two port numbers of UDP;Profit
The data flow that the data flow received is the first source of media is determined with first multicast ip address;Utilize the different port number of UDP
Identify every circuit-switched data stream of the first source of media;And at least two paths of data stream of the first source of media for reception, utilize UDP's
Different port number mark is per circuit-switched data stream;
Second communication interface is additionally operable to the second multicast ip address based on first source of media, after mark
At least two paths of data stream of first source of media is sent out.
The embodiment of the present invention additionally provides a kind of terminal, including:
Third communication interface, for receiving data flow;
Third processor for parsing data flow, obtains multicast ip address and at least two port numbers of UDP;Using institute
State the data flow that multicast ip address determines that the data flow received is the first source of media;And the different port number using the UDP
Identify every circuit-switched data stream of the first source of media.
Data flow transmission method provided in an embodiment of the present invention, device and relevant device, for the first source of media at least
Two paths of data stream, using the different port number mark of UDP per circuit-switched data stream;Based on the multicast ip address of first source of media,
At least two paths of data stream of the first source of media after mark is sent out;Receive data flow;Data flow is parsed, obtains multicast ip address
And at least two port numbers of UDP;The data flow that the data flow received is the first source of media is determined using the multicast ip address;
Every circuit-switched data stream of the first source of media is identified using the different port number of UDP, that is to say, that the multiplex data stream in transmission media source
When, different source of media is distinguished using multicast ip address, a source of media i.e. same group is distinguished using different UDP port numbers
The different circuit-switched data streams under group are broadcast, in this way, greatly reducing the multicast group resource of occupancy.Meanwhile based on first source of media
Multicast ip address, at least two paths of data stream of the first source of media after mark is sent out, fully complies with IGMP, can with it is existing
Network have compatible with property.
Description of the drawings
In attached drawing (it is not necessarily drawn to scale), similar reference numeral phase described in different views
As component.Similar reference numerals with different letter suffix can represent the different examples of similar component.Attached drawing with example and
Unrestricted mode generally shows each embodiment discussed herein.
Fig. 1 is a kind of transmission method flow diagram of one data flow of the embodiment of the present invention;
Fig. 2 is the transmission method flow diagram of second of the data flow of the embodiment of the present invention 1;
Fig. 3 is the transmission method flow diagram of one the third data flow of the embodiment of the present invention;
Fig. 4 is a kind of two data stream transmitting apparatus structure schematic diagram of the embodiment of the present invention;
Fig. 5 is second of the data stream transmitting apparatus structure schematic diagram of the embodiment of the present invention 2;
Fig. 6 is the third data stream transmitting apparatus structure schematic diagram of the embodiment of the present invention two;
Fig. 7 is that the embodiment of the present invention three realizes that multicast group supports the transmitting device structure diagram of multiplex data stream;
Fig. 8 is that three multicast channel source device of the embodiment of the present invention is illustrated to the networking between multicast channel access server
Figure;
Networking schematic diagrams of the Fig. 9 between three CDN node of the embodiment of the present invention;
Figure 10 is three CDN node of the embodiment of the present invention to the networking schematic diagram between terminal;
Figure 11 is the corresponding networking schematic diagram of three VR live broadcast services of the embodiment of the present invention.
Specific embodiment
The present invention is described in further detail again with reference to the accompanying drawings and embodiments.
Before the embodiment of the present invention is described, the relevant technologies are first learnt about.
In traditional IPTV applications, channel live is often using multicast transmission, and in general, channel only has one kind all the way
Code check, so needing an a kind of multicast group (a corresponding multicast routing entry) multicast code stream of transmission.When same name channel
(such as CCTV1) is handled there are during two kinds of code checks of SD and high definition still according to two-way channel, so both code checks
Data flow needs two multicast groups of occupancy to be transmitted.
Meanwhile in the application of OTT technologies, channel is there are many code check all the way, but in the data flow of this various code rate
The data flow of each code check is still to be handled according to channel all the way, is selected by the player of terminal using phase code rate
Data flow.In this case, usual processing method is also that the data flow of each code check individually made multicast group all the way, and such one
Come, channel often just occupies multiple multicast groups all the way, also just occupies a plurality of multicast routing entry.
In addition, with the fast development of virtual reality (VR, Virtual Reality) technology, the application of panoramic video
More and more extensive, this application brings the very strong video tastes of the sense of reality to user.The panorama live streaming for supporting VR is more and more hotter
Door, multicasting technology have a natural advantage in live streaming is applied, and in panorama live streaming, there are different angle scenic picture use it is more
The situation of road bit stream, moreover, sometimes in order to save bandwidth, the scenic picture of different angle needs to use different codings
Rate, then will there is a situation where that live streaming all the way needs to transmit multichannel code stream, in this case, be passed according to traditional multicast
Defeated mode can only transmit the multichannel code stream of a channel using multiple multicast groups.
However, greatly developing with broadcast television service, the quantity of present direct broadcast band is more and more, has carried at present
Go out the demand for needing to support thousands of road channel quantities, if having three kinds of code checks of super clear, high definition and SD according to channel all the way, that
According to traditional multicast transmission mode, the multicast group quantity to be occupied is just very big.
When carrying out multicast transmission, content distributing network (CDN, Content Delivery Networks) server is needed
Interface network interface card, protocol stack multicast routing entry and carrying network router on the quantity of multicast group these multicast group resources, however
These multicast group resources (i.e. multicast routing entry quantity) are all limited, that is to say, that multicast routing entry is narrow resources.
So how to realize that multicast group transmission multiplex data stream is current on the basis of limited multicast group routing entry
Problem to be solved.
Simultaneously, on the one hand, in multicast transmission technology, typically using IGMP come control with managing multicast group, be based on
IGMP is directly contacted with multicast host, and the router for running IGMP is responsible for the addition of group membership, is left, and craft personal
Relationship.
Table 1 shows the form of IGMP messages.As it can be seen from table 1 in IGMP messages, primary fields include version,
Type, verification and and multicast address.
Table 1
Wherein, version field is identified comprising igmp version, there is tri- versions of V1, V2 and V3 at present.
Type field includes:Member relation inquires (0x11) and membership report (0x12).
Verification and, for being verified to IGMP messages.
When type field characterizes a membership report, group address field includes multicast address.When type field table
When levying member relation inquiry, group address field is 0, and is ignored by host.
On the other hand, table 2 shows UDP message formats.
Table 2
From Table 2, it can be seen that UDP messages include:Source port and destination interface represent the field of data message length,
UDP message message checking and and UDP message.
It can be seen that from IGMP specifications and message format in control and managing multicast group, IGMP is only with the IP of multicast group
There is relationship in address, and the port of the UDP with being carried on IP is not related.And multicast group data message is carried on IP and UDP
, therefore, the data flow that multiport is transmitted in some multicast group is feasible, nor affects on the normal of IGMP protocol suites itself
Operation.
Based on this, in various embodiments of the present invention:During the multiplex data stream in transmission media source, using multicast ip address
Different source of media is distinguished, the different data under the i.e. same multicast group of a source of media is distinguished using different UDP port numbers
Stream.
Embodiment one
The transmission method of data flow of the embodiment of the present invention, specifically a kind of transmission side of multicast group majority circuit-switched data stream
Method, applied to multicast channel source device in multicast network, as shown in Figure 1, including the following steps:
Step 101:For at least two paths of data stream of the first source of media, using the different port number mark of UDP per way
According to stream;
Specifically, in the UDP headings of every circuit-switched data stream, a destination slogan, at least two paths of data stream are encapsulated
Destination slogan it is different.
Here, during practical application, the code check of every circuit-switched data stream of first source of media can be different;Alternatively, when in VR
When under live scene, the angle of the corresponding scenic picture of every circuit-switched data stream of first source of media is different.
During practical application, the port numbers of different UDP can be arranged as required to, to identify the different of the first source of media
Data flow.For example for, it is assumed that data flow has high definition, SD and smooth three data stream, can be according to business need
Will, the port numbers of three even numbers of setting, such as 902,904,906, to identify high definition, SD and smooth three data respectively
Stream.
Step 102:Based on the multicast ip address of first source of media, by at least two-way of the first source of media after mark
Data flow is sent out.
Specifically, the corresponding multicast ip address of first source of media is added in the destination address of IP packet head, when in IP
After the destination address of heading adds the corresponding multicast ip address of first source of media, at least two paths of data of the first source of media
Stream is presented in a manner of IP packet.
Correspondingly, the embodiment of the present invention additionally provides a kind of transmission method of data flow, specifically a kind of multicast group
The transmission method of most circuit-switched data streams, applied to multicast channel intermediate equipment in multicast network, such as multicast channel incoming stream matchmaker
Body server (such as CDN Centroids etc.) or its next stage intermediate equipment (equipment in addition to playback terminal), such as Fig. 2 institutes
Show, include the following steps:
Step 201:Receive data flow;
Specifically, using Hook Function, receive message IP packet head and UDP headings, the first source of media at least two
The complete message for the multicast packet that circuit-switched data stream is formed.
Here, during practical application, before this step is performed, this method can also include:
Using corresponding first multicast ip address of first source of media, the group of first source of media is added in based on IGMP
Broadcast the corresponding multicast group of channel.
Specifically, using corresponding first multicast ip address of first source of media, IGMP messages are generated;
The IGMP messages are sent to interchanger;The IGMP messages (such as the addition (join) or report of IGMP
(report) message) for the corresponding multicast group of multicast channel of request addition first source of media.
Certainly, when the corresponding multicast group of the multicast channel that leave first source of media, described first can be utilized
Corresponding first multicast ip address of source of media generates IGMP messages;The IGMP messages are sent to interchanger;The IGMP messages
(such as IGMP leave (leave) message) is for asking to leave the corresponding multicast group of multicast channel of first source of media.
Step 202:Data flow is parsed, obtains the first multicast ip address and at least two port numbers of UDP;
Here, when utilizing Hook Function, when receiving the IP packet head of message and UDP headings, the specific implementation of this step
Including:
For each message, the IP packet head is parsed, obtains the first multicast ip address;
The UDP headings are parsed, obtain the port numbers of a corresponding UDP.
That is, each message refers to the port numbers for including a UDP.
Step 203:The data flow that the data flow received is the first source of media is determined using first multicast ip address;Profit
Every circuit-switched data stream of the first source of media is identified with the different port number of UDP;
Here, during practical application, the code check of every circuit-switched data stream of first source of media can be different;Alternatively, when in VR
When under live scene, the angle of the corresponding scenic picture of every circuit-switched data stream of first source of media is different.
Step 204:For at least two paths of data stream of the first source of media of reception, identified using the different port number of UDP
Per circuit-switched data stream;
Wherein, the every circuit-switched data stream of port numbers mark using UDP, including:
In the UDP headings of every circuit-switched data stream, a destination slogan, the destination of at least two paths of data stream are encapsulated
Slogan is different.
Step 205:Based on the second multicast ip address of first source of media, by the first source of media after mark at least
Two paths of data stream is sent out.
Specifically, corresponding second multicast ip address of first source of media is added in the destination address of IP packet head.
After the destination address of IP packet head adds corresponding second multicast ip address of first source of media, the first media
At least two paths of data stream in source is presented in a manner of IP packet.
It is general where when receiving the first source of media as multicast channel intermediate equipment in multicast network during practical application
Multicast group when sending out data flow with it corresponding multicast group be different, correspondingly, corresponding multicast group IP address is different
's.That is, the first multicast ip address and the second multicast ip address are different under normal circumstances.
Correspondingly, the embodiment of the present invention provides a kind of transmission method of data flow again, specifically a kind of multicast group
The transmission method of most circuit-switched data streams, applied to the playback terminal of multicast channel in multicast network, as shown in figure 3, including following
Step:
Step 301:Receive data flow;
Specifically, using Hook Function, receive message IP packet head and UDP headings, the first source of media at least two
The complete message for the multicast packet that circuit-switched data stream is formed.
Here, during practical application, before this step is performed, this method can also include:
Using the corresponding multicast ip address of first source of media, the multicast frequency of first source of media is added in based on IGMP
The corresponding multicast group in road.
Specifically, using the corresponding multicast ip address of first source of media, IGMP messages are generated;
The IGMP messages are sent to interchanger;The IGMP messages (such as the addition (join) or report of IGMP
(report) message) for the corresponding multicast group of multicast channel of request addition first source of media.
Certainly, when the corresponding multicast group of the multicast channel that leave first source of media, described first can be utilized
The corresponding multicast ip address of source of media generates IGMP messages;The IGMP messages are sent to interchanger;IGMP messages (the ratio
(leave) message is left such as IGMP) for asking to leave the corresponding multicast group of multicast channel of first source of media.
Step 302:Data flow is parsed, obtains multicast ip address and at least two port numbers of UDP;
Here, when utilizing Hook Function, when receiving the IP packet head of message and UDP headings, the specific implementation of this step
Including:
For each message, the IP packet head is parsed, obtains multicast ip address;
The UDP headings are parsed, obtain the port numbers of a corresponding UDP.
That is, each message refers to the port numbers for including a UDP.
Step 303:The data flow that the data flow received is the first source of media is determined using the multicast ip address;It utilizes
The different port number of UDP identifies every circuit-switched data stream of the first source of media.
Here, during practical application, the code check of every circuit-switched data stream of first source of media can be different;Alternatively, when in VR
When under live scene, the angle of the corresponding scenic picture of every circuit-switched data stream of first source of media is different.
Data flow transmission method provided in an embodiment of the present invention for at least two paths of data stream of the first source of media, utilizes
The different port number mark of UDP is per circuit-switched data stream;Based on the multicast ip address of first source of media, by the first matchmaker after mark
At least two paths of data stream in body source is sent out;Receive data flow;Data flow is parsed, obtains at least two of multicast ip address and UDP
Port numbers;The data flow that the data flow received is the first source of media is determined using the multicast ip address;Utilize the different ends of UDP
Slogan identifies every circuit-switched data stream of the first source of media, that is to say, that during the multiplex data stream in transmission media source, using multicast IP
Different source of media is distinguished in location, and not going the same way under the i.e. same multicast group of a source of media is distinguished using different UDP port numbers
Data flow, in this way, greatly reducing the multicast group resource of occupancy.It, will meanwhile based on the multicast ip address of first source of media
At least two paths of data stream of the first source of media after mark is sent out, and fully complies with IGMP, can be had with existing network fine
Ground compatibility.
In addition, using the corresponding multicast ip address of first source of media, first source of media is added in based on IGMP
The corresponding multicast group of multicast channel does not need to UDP socket (socket) port resource using equipment, is just not only restricted to set yet
Standby UDP socket ports are directly interacted using multicast ip address with interchanger, in this way, further reduced occupancy
Multicast group resource, and IGMP can be fully complied with, can had with existing network compatible with property.
In addition to this, using Hook Function, receive message IP packet head and UDP headings, the first source of media at least
The complete message for the multicast packet that two paths of data stream is formed can get these information not by protocol stack, solve general
The problem of logical protocol stack cannot support the socket port of a multicast group that cannot support multiple udp ports and existing network
With compatible with property.
Embodiment two
The method of embodiment to realize the present invention, the present embodiment provides a kind of data stream transmitting devices, are arranged on multicast network
Multicast channel source device in network, as shown in figure 4, the device includes:
First flag module 41 for being directed at least two paths of data stream of the first source of media, utilizes the different port number of UDP
Mark is per circuit-switched data stream;
First transmitting element 42, based on the IP address of first source of media, by the first source of media after mark at least
Two paths of data stream is sent out.
Wherein, the first flag module 41, is specifically used for:In the UDP headings of every circuit-switched data stream, a purpose is encapsulated
Port numbers, the destination slogan of at least two paths of data stream are different.
Here, during practical application, the code check of every circuit-switched data stream of first source of media can be different;Alternatively, when in VR
When under live scene, the angle of the corresponding scenic picture of every circuit-switched data stream of first source of media is different.
During practical application, the port numbers of different UDP can be arranged as required to, to identify the different of the first source of media
Data flow.For example for, it is assumed that data flow has high definition, SD and smooth three data stream, can be according to business need
Will, the port numbers of three even numbers of setting, such as 902,904,906, to identify high definition, SD and smooth three data respectively
Stream.
First transmitting element 42 is corresponded to specifically for adding first source of media in the destination address of IP packet head
Multicast ip address.When after the destination address of IP packet head adds first source of media corresponding multicast ip address, first
At least two paths of data stream of source of media is presented in a manner of IP packet.
During practical application, the first flag module 41 can be realized by the processor in data stream transmitting device;Described
One transmitting element 42 can be by the transceiver implementation in data stream transmitting device.
Based on this, the embodiment of the present invention additionally provides a source device, including:
First processor for being directed at least two paths of data stream of the first source of media, utilizes the difference of user datagram UDP
Port numbers mark is per circuit-switched data stream;
First communication interface, for the multicast ip address based on first source of media, by the first source of media after mark
At least two paths of data stream send out.
Wherein, the function of first processor and the first communication interface is as detailed above, and which is not described herein again.
Correspondingly, the embodiment of the present invention additionally provides a kind of data stream transmitting device, applied to multicast frequency in multicast network
It is set among road intermediate equipment, such as multicast channel access streaming media server (such as CDN Centroids etc.) or its next stage
Standby (equipment in addition to playback terminal), as shown in figure 5, the device includes:
First receiving unit 51, for receiving data flow;
First resolution unit 52 for parsing data flow, obtains the first multicast ip address and at least two ports of UDP
Number;
First recognition unit 53, for determining that the data flow received is the first source of media using first multicast ip address
Data flow;Every circuit-switched data stream of the first source of media is identified using the different port number of the UDP;
Second identifier module 54 for being directed at least two paths of data stream of the first source of media of reception, utilizes the difference of UDP
Port numbers mark is per circuit-switched data stream;
Second transmitting element 55, for the second multicast ip address based on first source of media, by first after mark
At least two paths of data stream of source of media is sent out.
Wherein, first receiving unit 51, is specifically used for:
Using Hook Function, the IP packet head of message and UDP headings, at least two paths of data stream of the first source of media are received
The complete message of the multicast packet formed.
Here, during practical application, which can also include:
First adds in unit, for using corresponding first multicast ip address of first source of media, being added in based on IGMP
The corresponding multicast group of multicast channel of first source of media.
Specifically, described first unit is added in using corresponding first multicast ip address of first source of media, generation
IGMP messages;
Described first adds in unit sends the IGMP messages to interchanger;The IGMP messages (such as the addition of IGMP
(join) or report (report) message) for asking to add in the corresponding multicast group of multicast channel of first source of media.
Certainly, when the corresponding multicast group of the multicast channel that leave first source of media, described first adds in unit
Corresponding first multicast ip address of first source of media can be utilized, generates IGMP messages;The IGMP is sent to interchanger
Message;The IGMP messages (such as IGMP leave (leave) message) are for asking to leave the multicast of first source of media
The corresponding multicast group of channel.
First resolution unit 52, is specifically used for:
For each message, the IP packet head is parsed, obtains multicast ip address;
The UDP headings are parsed, obtain the port numbers of a corresponding UDP.
That is, each message refers to the port numbers for including a UDP.
During practical application, the code check of every circuit-switched data stream of first source of media can be different;Alternatively, when field is broadcast live in VR
When under scape, the angle of the corresponding scenic picture of every circuit-switched data stream of first source of media is different.
Wherein, the second identifier module 54, is specifically used for:
In the UDP headings of every circuit-switched data stream, a destination slogan, the destination of at least two paths of data stream are encapsulated
Slogan is different.
Second transmitting element 55, is specifically used for:
Corresponding second multicast ip address of first source of media is added in the destination address of IP packet head.
Second transmitting element adds corresponding second multicast of first source of media in the destination address of IP packet head
After IP address, at least two paths of data stream of the first source of media is presented in a manner of IP packet.
It is general where when receiving the first source of media as multicast channel intermediate equipment in multicast network during practical application
Multicast group when sending out data flow with it corresponding multicast group be different, correspondingly, corresponding multicast group IP address is different
's.That is, the first multicast ip address and the second multicast ip address are different under normal circumstances.
First receiving unit 51, the second transmitting element 55 can be by the transceiver implementations in data stream transmitting device;Institute
Stating the first resolution unit 52, the first recognition unit 53, second identifier module 54 can be real by the processor in data stream transmitting device
It is existing;Described first adds in unit can be by the processor combination transceiver implementation in data stream transmitting device.
Based on this, the embodiment of the present invention additionally provides a kind of intermediate equipment, such as CDN node etc., including:
Second communication interface, for receiving data flow;
Second processor for parsing data flow, obtains the first multicast ip address and at least two port numbers of UDP;Profit
The data flow that the data flow received is the first source of media is determined with first multicast ip address;Utilize the different port number of UDP
Identify every circuit-switched data stream of the first source of media;And at least two paths of data stream of the first source of media for reception, utilize UDP's
Different port number mark is per circuit-switched data stream;
Second communication interface is additionally operable to the second multicast ip address based on first source of media, after mark
At least two paths of data stream of first source of media is sent out.
Wherein, the function of second processor and the second communication interface is as detailed above, and which is not described herein again.
Correspondingly, the embodiment of the present invention provides a kind of data stream transmitting device again, is arranged on multicast frequency in multicast network
The playback terminal in road, as shown in fig. 6, the device includes:
Second receiving unit 61, for receiving data flow;
Second resolution unit 62 for parsing data flow, obtains multicast ip address and at least two port numbers of UDP;
Second recognition unit 63, for determining number of the data flow received for the first source of media using the multicast ip address
According to stream;Every circuit-switched data stream of the first source of media is identified using the different port number of the UDP.
Wherein, second receiving unit 61, is specifically used for:
Using Hook Function, the IP packet head of message and UDP headings, at least two paths of data stream of the first source of media are received
The complete message of the multicast packet formed.
Correspondingly, for each message, second resolution unit 62 parses the IP packet head, with obtaining multicast IP
Location;
Second resolution unit 62 parses the UDP headings, obtains the port numbers of a corresponding UDP.
That is, each message refers to the port numbers for including a UDP.
Here, during practical application, which can also include:
Second adds in unit, for utilizing the corresponding multicast ip address of first source of media, based on described in IGMP additions
The corresponding multicast group of multicast channel of first source of media.
Specifically, described second unit is added in using the corresponding multicast ip address of first source of media, generation IGMP reports
Text;
Described second adds in unit sends the IGMP messages to interchanger;The IGMP messages (such as the addition of IGMP
(join) or report (report) message) for asking to add in the corresponding multicast group of multicast channel of first source of media.
Certainly, when the corresponding multicast group of the multicast channel that leave first source of media, described second adds in unit
The corresponding multicast ip address of first source of media can be utilized, generates IGMP messages;The IGMP messages are sent to interchanger;
The IGMP messages (such as IGMP leave (leave) message) are for asking to leave the multicast channel pair of first source of media
The multicast group answered.
During practical application, second receiving unit 61 can be by the transceiver implementation in data stream transmitting device;Described
Two resolution units 62, the second recognition unit 63 can be realized by the processor in data stream transmitting device;Described second adds in unit
It can be by the processor combination transceiver implementation in data stream transmitting device.
Based on this, the embodiment of the present invention additionally provides a kind of terminal, including:
Third communication interface, for receiving data flow;
Third processor for parsing data flow, obtains multicast ip address and at least two port numbers of UDP;Using institute
State the data flow that multicast ip address determines that the data flow received is the first source of media;And the different port number using the UDP
Identify every circuit-switched data stream of the first source of media.
Wherein, the function of third processor and third communication interface is as detailed above, and which is not described herein again.
Embodiment three
On the basis of embodiment one, two, the transmission process of multiplex data stream is described in detail in the present embodiment.
It can be seen that in the embodiment of the present invention from the description of embodiment one, two, during the multiplex data stream in transmission media source,
The multiplex data stream of correlation is identified with using multicast group (namely multicast ip address, a corresponding multicast routing entry)
Direct broadcast band, VR direct broadcast bands in source of media, such as OTT etc., while identify number using the port numbers of the UDP carried on IP
According to stream, i.e., the different data streams of a source of media are distinguished using different UDP port numbers.
So for the transmission method of above-mentioned data flow, during practical application, device shown in Fig. 7 may be used to realize
Multicast group supports the transmission of multiplex data stream.
As shown in fig. 7, the device includes:Multicast user's information module, multicast group management module, multicast group multiplex data stream
Reception/sending module.
The function of each module is described below in detail.
(1) multicast user's information module
Multicast user's information module is used for managing multicast user media source (such as OTT direct broadcast bands, VR direct broadcast bands etc.),
Each source of media is using a multicast group, that is, corresponds to using a multicast routing entry, a corresponding multicast ip address.Together
When, udp port information that managing multicast IP information and relevant multiplex data stream use;Multicast ip address is different for distinguishing
Source of media, udp port information are used to distinguish the data flow under same multicast group, such as Streaming Media of different code checks etc..
(2) multicast group management module
Multicast group management module is used for the friendship of the multicast IGMP messages between CDN server node or terminal and interchanger
Mutually processing completes CDN server node or terminal joins and departs from multicast group and the multicast of response interchanger is periodically inquired
The functions such as message.
In the protocol stack of these general-purpose operating systems of windows and linux, if host will add in some multicast group,
It needs to create UDP socket, then the IP_ADD_MEMBERSHIP attributes of IP layers of the UDP socket, such host is set
Just join the or report messages based on IGMP can be sent to interchanger, to complete to add in the action of multicast group;If host will
Some multicast group is exited, needs to be once again set up the IP_DROP_MEMBERSHIP attributes of IP layers of the UDP socket, such host
Just the leave messages based on IGMP can be sent to interchanger, to complete to leave the action of multicast group.It can be seen that windows and
The general-purpose operating systems such as linux depend on the management of multicast group UDP socket, and UDP socket must designated groups
IP address and port are broadcast, joining and departing from for multicast group could be completed.For the embodiment of the present invention, based on existing operation system
The flow of system realizes reception multichannel multicast code stream, this inherently bigger limitation, so needing by UDP socket
Extend the way to manage of multicast group.
So multicast group management mould is based on multicast group IP address and joins message to interchanger transmission IGMP, request adds in multicast
Group, to complete the action that host adds in multicast group.Meanwhile multicast group management module can also desampler igmp querying report
Text, and report current multicast group information;Timing sends IGMP report messages to interchanger, interchanger to be notified to have specific multicast
Group exists.
View of the above, it will be seen that multicast group joins and departs from, UDP socket ports are no longer limited by, but
Directly the IGMP message interactions between interchanger are completed using multicast group IP address.This method is to existing park operation
The extension of system multicast group management application.
(3) multicast group multiplex data stream sending module
The module mainly realizes the multiplex data stream for sending same multicast group.The structure of comprehensive IP and UDP messages, described group
It broadcasts group multiplex data stream sending module and mainly utilizes the destination address field (DAF) of IP packet head and the destination interface field of UDP headings
Realize the transmission of multicast group multiplex data stream.Multicast ip address is appointed as in the destination address of IP packet head, in UDP headings
In, different destination interfaces is encapsulated, a destination interface represents data flow all the way.For example, in practical applications, different ports
Represent the data flow of different code checks.
(4) multicast group multiplex data stream receiving module
Multicast group multiplex data stream receiving module, main realize receive the multichannel number that same multicast channel (source of media) includes
According to stream.Specifically, multicast group multiplex data stream receiving module receives uncorrected data message, i.e. message IP by System hook function
Heading and the complete message of UDP headings and multicast packet.Then, multicast group multiplex data stream receiving module elder generation according to
Multicast message (IP packet head and UDP headings) parses multicast ip address and represents the port information of different data streams;So
Afterwards, according to multicast IP and port information related in multicast user's information module, i.e. multicast channel information, different numbers is decomposited
According to stream;Finally, distribution processor can also be done to different Streaming Medias.
In the protocol stack of these general-purpose operating systems of windows and linux, if to receive multicast code stream, UDP is created
When socket, each multicast group can only support the port of one UDP of binding, and limiting a UDP socket can only receive
Data message comprising a pair of of multicast IP and port limits system and receives multicast Multi-ported Data message using UDP socket
Ability.And in embodiments of the present invention, uncorrected data message is directly received by Hook Function, common protocol stack can be solved not
The problem of supporting a multicast Socket that cannot support multiple udp ports.
Based on above device, the transmission process of multiplex data stream is described below in detail.
First, as shown in figure 8, it (is usually in CDN to describe from multicast channel source device to multicast channel access server
Heart node) between networking schematic diagram.With reference to Fig. 8 as can be seen that multiplex data stream is sent to exchange by multicast channel source device
Machine, and multicast channel access server obtains multiplex data stream from interchanger.The process specifically includes:
Step 1:The multicast user of multicast channel source device (can be encoder or multicast source channel generation server)
Information module establishes multicast channel, multicast group multiplex data stream sending module (be equivalent in embodiment two first flag module and
The function of first transmitting element) send multicast multiplex data stream.
Here, if the multiplex data stream of multicast is various code rate, for example high definition, SD and smooth three roads code are generated respectively
During stream, then multicast group multiplex data stream sending module sends multicast channel code stream, and use using a multicast ip address
Different udp ports sends the code stream of different code checks to distinguish.
Step 2:Multicast user's information module of multicast channel access server establishes corresponding multicast channel, management group
Broadcast the IP address of channel and the correspondence of the relevant multichannel code stream of channel and udp port.
Step 3:The multicast group management module of multicast channel access server sends IGMP messages to add in frequency to interchanger
The multicast group (function of being equivalent to the first addition unit in embodiment two) in road, so as to which node be made to prepare the multichannel of reception multicast source
Data flow.
Step 4:The multicast group multiplex data stream receiving module of multicast channel access server (is equivalent to embodiment 2
The function of one receiving unit, the first resolution unit and the first recognition unit) the multicast code stream sent of desampler.
Specifically, multicast group multiplex data stream receiving module receives all multicast traffic streams that multicast source provides.
The multicast group multiplex data stream receiving module of multicast channel access server is distinguished different using UDP port number
Data flow gives the data flow of reception to multicast user's information module and does corresponding business processing, for example, to channel processing after, to
Downstream site or terminal send multicast code stream.
As shown in figure 9, when multicast channel access server between terminal also there are subordinate's CDN node, in other words, from group
Broadcast channel source device between terminal there are during at least two CDN nodes, the transmission of the multiplex data stream between two CDN nodes
Process is:Multiplex data stream is sent to interchanger by higher level's CDN node, and subordinate's CDN node obtains multichannel data from interchanger
Stream.The process specifically includes:
Step 1:The multicast group multiplex data stream of higher level's CDN node (similar above-mentioned multicast channel access server) connects
The multiplex data stream that module receives multicast source is received, the multicast group multiplex data stream sending module of higher level's CDN node sends multicast
Multiplex data stream.
Specifically, the multicast group multiplex data stream sending module of higher level's CDN node (is equivalent to second identifier in embodiment two
The function of module and the second transmitting element) using a multicast ip address send multicast channel code stream, and use different UDP
Port sends different data flows to distinguish.
Step 2:Multicast user's information module of subordinate's CDN node establishes corresponding multicast channel, managing multicast channel
IP address and the correspondence of the relevant multichannel code stream of channel and udp port.
Step 3:Multicast group management module in subordinate's CDN node sends IGMP messages to add in channel to interchanger
Multicast group, so as to which node be made to prepare the multiplex data stream of reception multicast source.
Step 4:The multicast code stream that the multicast group multiplex data stream receiving module desampler of downstream site is sent.
Specifically, the multicast code stream that the multicast group multiplex data stream receiving module of subordinate's CDN node receives is higher level CDN sections
All multicast traffic streams that point provides.
The multicast group multiplex data stream receiving module of subordinate's CDN node distinguishes different data flows using UDP port number,
Multicast user's information module that the data flow of reception is given to subordinate's CDN node does corresponding business processing, for example, to channel at
After reason, multicast code stream is sent to downstream site or terminal.
As shown in Figure 10, after reaching CDN node, the multiplex data stream of multicast group can be transferred to terminal.CDN node and terminal
Between the transmission process of multiplex data stream be:Multiplex data stream is sent to interchanger by CDN node, and terminal is from home gateway
Obtain multiplex data stream.Below by taking terminal is OTT terminals as an example, the transmission process is described in detail.
In OTT business, OTT channels need to support multi code Rate of Chinese character, in conventional process mechanism, OTT terminals (such as OTT machines top
Box either IPAD etc.) with being typically all the unicast terminal walked between CDN node according to equipment of itself ability or network transmission energy
Which kind of code check is power determine to obtain, and using hypertext transfer protocol (HTTP) obtains unicast code stream.
And with the extensive application of OTT channel lives, there is save network capacity in live broadcast service for multicast
Advantage, so industry realizes that OTT is broadcast live, therefore using the scheme transmission multi-code of the embodiment of the present invention all promoting and applying multicast
The code stream of rate is very effective.
In OTT multicast live broadcast services, for compatible terminal (be typically all walk HTTP unicasts mode), generally in terminal
It is upper to integrate application (APP) module to handle multicast, multicast code stream is received, and APP modules are between the playing module of terminal
Still HTTP simulation unicasts are walked, it is possible to be interpreted as the simulation unicast live streaming of OTT terminal inners intermodule.
In this case, device shown in Fig. 7 can be integrated in the APP modules of terminal.
CDN node to multichannel data steaming transfer between OTT terminals process, including:
Step 1:The multicast group multiplex data stream receiving module of edge C DN nodes receives the channel multicast of higher level's CDN node
Code stream.
Here, before step 1 is performed, edge C DN nodes add in multicast group according to the described modes of Fig. 9.
And the multicast group multiplex data stream receiving module of edge C DN nodes distinguishes difference according to the described modes of Fig. 9
The data flow of code check.
Step 2:The multicast group multiplex data stream sending module of edge C DN nodes sends multicast code stream to OTT terminals.
Here, the multicast code stream of transmission may have following two situations:
The first situation is:Edge C DN nodes are with there is enough network transmission bandwidths between OTT terminals, in such case
Under, the multicast group multiplex data stream sending module of edge C DN nodes can be by the data flow of all code checks of a channel all
OTT terminals are sent to, multicast channel code stream is sent using multicast ip address all the way, hair is distinguished using different udp ports
Send the code stream of different code checks.
The second situation is:Edge C DN nodes are limited with the network transmission bandwidth between OTT terminals, and OTT terminal analysis is certainly
Body situation and network transmission situation, determine the code check code stream of needs, and notify edge C DN nodes using control signaling by APP,
So the code stream of needs is just issued OTT terminals by edge C DN nodes using multicast group.In this case, when need carry out code
When rate switches, switching multicast group is not needed to, APP directly notifies edge C DN nodes, and edge C DN nodes directly use original group
Group is broadcast, switching sends the code stream of corresponding code check.
The processing procedure of the first situation is described below.
Step 3:Multicast user's information module in OTT terminals APP establishes corresponding multicast channel, managing multicast channel
IP address and the correspondence of the relevant multichannel code stream of channel and udp port.
Step 4:Multicast group management module in OTT terminals APP sends IGMP messages to add in channel to home gateway
Multicast group (function of being equivalent to the second addition unit in embodiment two), so as to which node be made to prepare the multichannel data of reception multicast source
Stream.
Step 4:Multicast group multiplex data stream receiving module in OTT terminals APP (is equivalent in embodiment two second to connect
Receive the function of unit, the second resolution unit and the second recognition unit) receive the multicast code stream that home gateway is sent.
Specifically, the multicast code stream that the multicast group multiplex data stream receiving module in OTT terminals APP receives is edge C DN
All multicast traffic streams that node provides.
Multicast group multiplex data stream receiving module in OTT terminals APP distinguishes the code of different code checks using UDP port number
Stream.
Step 5:The code stream of reception is sent to OTT ends by the multicast group multiplex data stream receiving module in OTT terminals APP
Multicast user's information module in APP is held, makees relevant business to code stream by multicast user's information module in OTT terminals APP
Processing, for example relevant decoder module is sent to, it is decoded playback process.
That is, the multicast group multiplex data stream receiving module in OTT terminals APP passes through the multicast in OTT terminals APP
Subscriber information module and the selection of the decoder module of terminal determine the code stream using which kind of code check, and corresponding code stream will be issued solution
Code module.
In addition, the live streaming of VR panoramas is current popular business, multicasting technology has natural advantage in live streaming is applied, and complete
In scape live streaming, there is a situation where the scenic picture of different angle using multichannel bit stream, therefore can also in VR live broadcast services
Using scheme provided in an embodiment of the present invention.As shown in figure 11, VR direct broadcast servers (can also be CDN node) and VR terminals it
Between the transmission process of multiplex data stream be:Multiplex data stream is sent to interchanger by VR direct broadcast servers, and terminal is from family
Gateway obtains multiplex data stream, which specifically includes:
Step 1:VR multicast servers make VR multicast live sources, by the multicast group multiplex data stream of VR multicast servers
Sending module sends VR live streaming multicast code streams.
Here, the multicast group multiplex data stream sending module of VR multicast servers sends VR using multicast ip address all the way
Multicast channel code stream distinguishes the code stream for the scenic picture for sending different angle using different udp ports.
Step 2:Multicast user's information module of VR terminals establishes corresponding multicast channel, the IP of managing multicast channel
Location and the correspondence of the relevant multichannel code stream of channel and udp port.
Step 3:The multicast group management module of VR terminals sends IGMP messages to add in the multicast of VR channels to home gateway
Group prepares to receive the multicast code stream of VR multicast channels.
Step 4:The multicast group multiplex data stream receiving module of VR terminals receives the multicast code stream that home gateway is sent.
Specifically, multicast group multiplex data stream receiving module receives all multicasts for the VR channels that VR multicast servers provide
Data flow.
The multicast group multiplex data stream receiving module of VR terminals distinguishes the code of different angle scene using UDP port number
Stream.
Step 5:The multicast that the code stream of reception is given VR terminals by the multicast group multiplex data stream receiving module of VR terminals is used
Family information module does corresponding business processing, for example gives relevant decoder module and do decoding process, implements VR broadcastings.
From the above description, it will be seen that the scheme of the embodiment of the present invention, during the multiplex data stream in transmission media source, make
The matchmaker of the multiplex data stream of correlation is identified with multicast group (namely multicast ip address, a corresponding multicast routing entry)
Body source, such as direct broadcast band, VR direct broadcast bands in OTT etc., while carry out mark data using the port numbers of the UDP carried on IP
Stream realizes a multicast group transmission multiplex data stream, so as to save the occupancy quantity of multicast group entry on relevant device.
Specifically, the following aspects is shown:
1st, it using scheme provided in an embodiment of the present invention, can solve to account for multichannel multicast traffic stream under multicast service all the way
With the limitation of different multicast ip address and udp port, the use of CDN node multicast UDP socket is reduced, that is to say, that reduce
The multicast ip address and the resource of udp port occupied;
2nd, the IGMP message interactions between interchanger directly are completed using multicast ip address, does not depend on the operation of host
System is no longer limited by UDP socket ports, so being that one of ICP/IP protocol stack is extended, and abide by completely well
Follow IGMP.
3rd, the specific implementation for receiving multiplex data stream is to one good supplement of protocol stack, and supporting multicast group all the way can
The problem of to receive multichannel multicast data flow.
4th, due to identifying source of media using multicast ip address, and the multiplex data stream of source of media be with the port of UDP come
It distinguishes, in this way, the IGMP reports between server node or terminal and interchanger can be reduced when transmitting multiplex data stream
Text interaction.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of hardware embodiment, software implementation or combination software and hardware can be used in the present invention
Formula.Moreover, the present invention can be used can use storage in one or more computers for wherein including computer usable program code
The form of computer program product that medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (23)
1. a kind of data flow transmission method, which is characterized in that the method includes:
For at least two paths of data stream of the first source of media, using the different port number mark of User Datagram Protocol UDP per road
Data flow;
Based on the multicast internet protocol IP address of first source of media, by least two ways of the first source of media after mark
It is sent out according to stream.
2. according to the method described in claim 1, it is characterized in that, using the port numbers mark of UDP per circuit-switched data stream, including:
In the UDP headings of every circuit-switched data stream, a destination slogan, the destination slogan of at least two paths of data stream are encapsulated
It is different;
The multicast ip address based on first source of media sends out at least two paths of data stream of the first source of media after mark
Go out, including:
The corresponding multicast ip address of first source of media is added in the destination address of IP packet head.
3. according to the method described in claim 1, it is characterized in that, the code check of every circuit-switched data stream of first source of media not
Together, alternatively, the angle of the corresponding scenic picture of every circuit-switched data stream of first source of media is different.
4. a kind of data flow transmission method, which is characterized in that the method includes:
Receive data flow;
Data flow is parsed, obtains the first multicast ip address and at least two port numbers of UDP;
The data flow that the data flow received is the first source of media is determined using first multicast ip address;Utilize the difference of UDP
Port numbers identify every circuit-switched data stream of the first source of media;
For at least two paths of data stream of the first source of media of reception, using the different port number mark of UDP per circuit-switched data stream;
Based on the second multicast ip address of first source of media, at least two paths of data stream of the first source of media after mark is sent out
Go out.
5. according to the method described in claim 4, it is characterized in that, the reception data flow, including:
Using Hook Function, the IP packet head of message and UDP headings, at least two paths of data stream institute shape of the first source of media are received
Into multicast packet complete message;
Correspondingly, for each message, the IP packet head is parsed, obtains the first multicast ip address;
The UDP headings are parsed, obtain the port numbers of a corresponding UDP.
6. according to the method described in claim 4, it is characterized in that, before receiving data flow, the method further includes:
Using corresponding first multicast ip address of first source of media, described first is added in based on the Internet Group Management Protocol IGMP
The corresponding multicast group of multicast channel of source of media.
7. according to the method described in claim 6, it is characterized in that, the multicast channel of first source of media is added in based on IGMP
Corresponding multicast group, including:
Using corresponding first multicast ip address of first source of media, IGMP messages are generated;
The IGMP messages are sent to interchanger;The IGMP messages add in the multicast channel of first source of media for request
Corresponding multicast group.
8. according to the method described in claim 4, it is characterized in that, the port numbers mark using UDP per circuit-switched data stream, is wrapped
It includes:
In the UDP headings of every circuit-switched data stream, a destination slogan, the destination slogan of at least two paths of data stream are encapsulated
It is different;
Second multicast ip address based on first source of media, by at least two paths of data of the first source of media after mark
Stream is sent out, including:
Corresponding second multicast ip address of first source of media is added in the destination address of IP packet head.
9. according to the method described in claim 4, it is characterized in that, the code check of every circuit-switched data stream of first source of media not
Together, alternatively, the angle of the corresponding scenic picture of every circuit-switched data stream of first source of media is different.
10. a kind of data flow transmission method, which is characterized in that the method includes:
Receive data flow;
Data flow is parsed, obtains multicast ip address and at least two port numbers of UDP;
The data flow that the data flow received is the first source of media is determined using the multicast ip address;Utilize the difference of the UDP
Port numbers identify every circuit-switched data stream of the first source of media.
11. according to the method described in claim 10, it is characterized in that, the reception data flow, including:
Using Hook Function, the IP packet head of message and UDP headings, at least two paths of data stream institute shape of the first source of media are received
Into multicast packet complete message;
Correspondingly, for each message, the IP packet head is parsed, obtains multicast ip address;
The UDP headings are parsed, obtain the port numbers of a corresponding UDP.
12. according to the method described in claim 10, it is characterized in that, before receiving data flow, the method further includes:
Using corresponding first multicast ip address of first source of media, the multicast frequency of first source of media is added in based on IGMP
The corresponding multicast group in road.
13. according to the method for claim 12, which is characterized in that the multicast frequency of first source of media is added in based on IGMP
The corresponding multicast group in road, including:
Using corresponding first multicast ip address of first source of media, IGMP messages are generated;
The IGMP messages are sent to interchanger;The IGMP messages add in the multicast channel of first source of media for request
Corresponding multicast group.
14. according to the method described in claim 10, it is characterized in that, the code check of every circuit-switched data stream of first source of media not
Together, alternatively, the angle of the corresponding scenic picture of every circuit-switched data stream of first source of media is different.
15. a kind of data stream transmitting device, which is characterized in that described device includes:
First flag module for being directed at least two paths of data stream of the first source of media, is identified every using the different port number of UDP
Circuit-switched data stream;
First transmitting element, based on the IP address of first source of media, by least two ways of the first source of media after mark
It is sent out according to stream.
16. device according to claim 15, which is characterized in that the first flag module, specifically in every way
According to the UDP headings of stream, a destination slogan is encapsulated, the destination slogan of at least two paths of data stream is different;
First transmitting element, specifically for adding the corresponding multicast of first source of media in the destination address of IP packet head
IP address.
17. a kind of data stream transmitting device, which is characterized in that described device includes:
First receiving unit, for receiving data flow;
First resolution unit for parsing data flow, obtains the first multicast ip address and at least two port numbers of UDP;
First recognition unit, for determining data of the data flow received for the first source of media using first multicast ip address
Stream;Every circuit-switched data stream of the first source of media is identified using the different port number of the UDP;
Second identifier module for being directed at least two paths of data stream of the first source of media of reception, utilizes the different port number of UDP
Mark is per circuit-switched data stream;
Second transmitting element, for the second IP address based on first source of media, by the first source of media after mark extremely
Few two paths of data stream is sent out.
18. device according to claim 17, which is characterized in that described device further includes:
First adds in unit, for utilizing corresponding first multicast ip address of first source of media, based on described in IGMP additions
The corresponding multicast group of multicast channel of first source of media.
19. a kind of data transmission stream device, which is characterized in that described device includes:
Second receiving unit, for receiving data flow;
Second resolution unit for parsing data flow, obtains multicast ip address and at least two port numbers of UDP;
Second recognition unit, for determining data flow of the data flow received for the first source of media using the multicast ip address;
Every circuit-switched data stream of the first source of media is identified using the different port number of the UDP.
20. device according to claim 19, which is characterized in that described device further includes:
Second adds in unit, for using the corresponding multicast ip address of first source of media, described first to be added in based on IGMP
The corresponding multicast group of multicast channel of source of media.
A 21. source device, which is characterized in that the equipment includes:
First processor for being directed at least two paths of data stream of the first source of media, utilizes the different port of user datagram UDP
Number mark is per circuit-switched data stream;
First communication interface, for the multicast ip address based on first source of media, by the first source of media after mark extremely
Few two paths of data stream is sent out.
22. a kind of intermediate equipment, which is characterized in that the equipment includes:
Second communication interface, for receiving data flow;
Second processor for parsing data flow, obtains the first multicast ip address and at least two port numbers of UDP;Using institute
State the data flow that the first multicast ip address determines that the data flow received is the first source of media;It is identified using the different port number of UDP
Every circuit-switched data stream of first source of media;And at least two paths of data stream of the first source of media for reception, utilize the difference of UDP
Port numbers mark is per circuit-switched data stream;
Second communication interface is additionally operable to the second multicast ip address based on first source of media, by first after mark
At least two paths of data stream of source of media is sent out.
23. a kind of terminal, which is characterized in that the terminal includes:
Third communication interface, for receiving data flow;
Third processor for parsing data flow, obtains multicast ip address and at least two port numbers of UDP;Utilize described group
Broadcast the data flow that IP address determines that the data flow received is the first source of media;And it is identified using the different port number of the UDP
Every circuit-switched data stream of first source of media.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611260794.0A CN108270731A (en) | 2016-12-30 | 2016-12-30 | A kind of data flow transmission method, device and relevant device |
PCT/CN2017/118912 WO2018121584A1 (en) | 2016-12-30 | 2017-12-27 | Data stream transmission method, apparatus, related devices and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611260794.0A CN108270731A (en) | 2016-12-30 | 2016-12-30 | A kind of data flow transmission method, device and relevant device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108270731A true CN108270731A (en) | 2018-07-10 |
Family
ID=62710273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611260794.0A Pending CN108270731A (en) | 2016-12-30 | 2016-12-30 | A kind of data flow transmission method, device and relevant device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108270731A (en) |
WO (1) | WO2018121584A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110876070A (en) * | 2018-08-29 | 2020-03-10 | 中国电信股份有限公司 | Content distribution system, processing method, and storage medium |
CN112491909A (en) * | 2020-12-01 | 2021-03-12 | 北京鸿腾智能科技有限公司 | Flow identification method, device, equipment and storage medium based on DOH protocol |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113490162B (en) * | 2021-07-04 | 2022-05-17 | 芯河半导体科技(无锡)有限公司 | Optimization method for multicast data stream forwarding |
CN116033365B (en) * | 2023-03-22 | 2023-06-20 | 新华三技术有限公司 | Communication method, device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1825944A (en) * | 2005-02-25 | 2006-08-30 | 华为技术有限公司 | Mobile video broadcasting system and method thereof |
CN101110814A (en) * | 2006-07-17 | 2008-01-23 | 中兴通讯股份有限公司 | Method for implementing authority control of user multicast |
CN101360217A (en) * | 2007-07-30 | 2009-02-04 | Lg电子株式会社 | Host apparatus, point of deployment and method for recognizing operation mode |
CN101494763A (en) * | 2008-01-24 | 2009-07-29 | 华为技术有限公司 | Method, system and equipment for switching channel |
US20100165859A1 (en) * | 2008-12-31 | 2010-07-01 | Herve Marc Carruzzo | Sorting flow records into analysis buckets |
CN102265553A (en) * | 2008-12-22 | 2011-11-30 | 汤姆森特许公司 | Method and apparatus for reliable multicast streaming |
CN104346135A (en) * | 2013-08-08 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method, device and system for parallel processing of data flows |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7876768B2 (en) * | 2006-06-30 | 2011-01-25 | Ver Steeg William C | Systems and methods of assembling an elementary stream from an encapsulated multimedia transport stream |
CN106302566B (en) * | 2015-05-12 | 2019-07-23 | 华为技术有限公司 | The method, apparatus and system of live media data |
-
2016
- 2016-12-30 CN CN201611260794.0A patent/CN108270731A/en active Pending
-
2017
- 2017-12-27 WO PCT/CN2017/118912 patent/WO2018121584A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1825944A (en) * | 2005-02-25 | 2006-08-30 | 华为技术有限公司 | Mobile video broadcasting system and method thereof |
CN101110814A (en) * | 2006-07-17 | 2008-01-23 | 中兴通讯股份有限公司 | Method for implementing authority control of user multicast |
CN101360217A (en) * | 2007-07-30 | 2009-02-04 | Lg电子株式会社 | Host apparatus, point of deployment and method for recognizing operation mode |
CN101494763A (en) * | 2008-01-24 | 2009-07-29 | 华为技术有限公司 | Method, system and equipment for switching channel |
CN102265553A (en) * | 2008-12-22 | 2011-11-30 | 汤姆森特许公司 | Method and apparatus for reliable multicast streaming |
US20100165859A1 (en) * | 2008-12-31 | 2010-07-01 | Herve Marc Carruzzo | Sorting flow records into analysis buckets |
CN104346135A (en) * | 2013-08-08 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method, device and system for parallel processing of data flows |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110876070A (en) * | 2018-08-29 | 2020-03-10 | 中国电信股份有限公司 | Content distribution system, processing method, and storage medium |
CN112491909A (en) * | 2020-12-01 | 2021-03-12 | 北京鸿腾智能科技有限公司 | Flow identification method, device, equipment and storage medium based on DOH protocol |
CN112491909B (en) * | 2020-12-01 | 2023-09-01 | 三六零数字安全科技集团有限公司 | DOH protocol-based traffic identification method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018121584A1 (en) | 2018-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109218654B (en) | Video networking conference control method and system | |
CN109640029B (en) | Method and device for displaying video stream on wall | |
CN109168064B (en) | Synchronous display method and system of electronic data | |
CN109474715B (en) | Resource configuration method and device based on video network | |
CN108270731A (en) | A kind of data flow transmission method, device and relevant device | |
CN110022295B (en) | Data transmission method and video networking system | |
CN109391551A (en) | A kind of multiport method of multicasting, equipment and computer readable storage medium | |
CN111327868B (en) | Method, terminal, server, equipment and medium for setting conference speaking party roles | |
CN111131760B (en) | Video recording method and device | |
CN109447625A (en) | A kind of two dimensional code method of payment and system | |
CN1589546B (en) | Multicast address to packet identifier mapping for broadcast systems | |
CN110062194B (en) | Audio and video data processing method, device and storage medium | |
CN110113557B (en) | Multistage conference implementation method and video networking system | |
CN109005378B (en) | Video conference processing method and system | |
CN110830826A (en) | Video transcoding equipment scheduling method and system | |
CN110445759B (en) | Electronic whiteboard sharing method and device | |
CN110519543B (en) | Video telephone dialing method and device | |
CN109768964B (en) | Audio and video display method and device | |
CN108965993B (en) | Method and device for decoding multi-channel video stream | |
CN108574819B (en) | A kind of terminal device and a kind of method of video conference | |
CN111586339B (en) | Conference scheduling method, server, electronic equipment and storage medium | |
CN111147795B (en) | Resource scheduling method, server, terminal, electronic device, and storage medium | |
CN110381080B (en) | Multimedia data packet sending method and device | |
CN109600567B (en) | Video conference processing method and system | |
CN110809023B (en) | Communication connection establishing method and device based on video networking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180710 |