WO2018064925A1 - Method and apparatus for generating session description protocol message - Google Patents

Method and apparatus for generating session description protocol message Download PDF

Info

Publication number
WO2018064925A1
WO2018064925A1 PCT/CN2017/100688 CN2017100688W WO2018064925A1 WO 2018064925 A1 WO2018064925 A1 WO 2018064925A1 CN 2017100688 W CN2017100688 W CN 2017100688W WO 2018064925 A1 WO2018064925 A1 WO 2018064925A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast source
session description
protocol message
description protocol
multicast
Prior art date
Application number
PCT/CN2017/100688
Other languages
French (fr)
Chinese (zh)
Inventor
范红霞
王芳
李继红
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018064925A1 publication Critical patent/WO2018064925A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP

Definitions

  • the present application relates to the field of communications, for example, to a session description protocol message generating method and apparatus.
  • the channel created on the streaming server has an inbound Session Description Protocol (SDP) and an outgoing SDP.
  • SDP Session Description Protocol
  • the incoming SDP is used to describe the media attribute of the incoming multicast stream received by the channel, and the outgoing SDP describes the media attribute of the channel outgoing multicast stream after transcoding by the streaming server.
  • the streaming media server generally uses a standard Internet Group Management Protocol (IGMP) to join the channel SDP to describe the multicast group.
  • IGMP group management protocol has three versions: V1, V2 and V3.
  • IGMPV3 adds a filtering mode to the multicast source based on the compatibility and inheritance of IGMPV1 and IGMPV2.
  • the host can only receive multicast information from a specific source. Due to the feature of IGMPV3, if the streaming media server joins the multicast to obtain the channel code stream by using the IGMPV3 protocol, there is usually a problem that the channel receives the multicast code stream and is disconnected.
  • the method and device for generating a session description protocol message provided by the embodiment of the present disclosure solves the problem that only one legal multicast source can be determined according to the session description protocol message, so that the channel receiving multicast code stream is not smooth.
  • an embodiment of the present disclosure provides a method for generating a session description protocol message, including:
  • the session description protocol message format includes a first field for recording a first multicast source identifier, and a second field for recording a second multicast source identifier;
  • the session description protocol message is used to set the legal multicast source.
  • the embodiment of the present disclosure further provides a session description protocol message generating apparatus, including:
  • the session description protocol message format invoking module is configured to invoke a session description protocol message format, where the session description protocol message format includes a first field for recording the first multicast source identifier, and a second for recording the second multicast source identifier. Two fields;
  • the multicast source identifier obtaining module is configured to obtain the first multicast source identifier and the at least one second multicast source identifier.
  • the session description protocol message generating module is configured to generate a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier, where the session description protocol message is used to set the legal multicast source.
  • the embodiment of the present disclosure further provides a computer storage medium having stored therein computer executable instructions for performing the session description protocol message generation method of any of the foregoing.
  • An embodiment of the present disclosure further provides an electronic device, including:
  • At least one processor At least one processor
  • the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
  • a session description protocol message generating method, apparatus, and computer storage medium by calling a session description protocol message format, the session description protocol message format includes a first field for recording a first multicast source identifier, and The second field of the second multicast source identifier is recorded; the first multicast source identifier and the at least one second multicast source identifier are obtained; and the session description protocol is generated according to the first multicast source identifier and the at least one second multicast source identifier.
  • Session Description Protocol message is used to set the legal multicast source.
  • the first multicast source identifier and the at least one may be generated by including a first field for recording the first multicast source identifier and a session description protocol format for recording the second field of the second multicast source identifier.
  • the session description protocol message of the second multicast source identifier, the first multicast source identifier may be determined according to the session description protocol message including the first multicast source identifier and the at least one second multicast source identifier And identifying the multicast source corresponding to the at least one second multicast source identifier, and setting the multicast source as a legal multicast source, so that when the channel receives the multicast code stream, the first multicast can be received according to the multicast source identifier.
  • the multicast code stream of the multicast source corresponding to the source identifier and the at least one second multicast source identifier can receive the multicast code stream sent by different multicast sources, and only one multicast source can be received in the related art.
  • the manner of sending the multicast stream improves the smoothness of the channel receiving the multicast stream.
  • FIG. 1 is a flowchart of a method for generating a session description protocol message according to Embodiment 1 of the present disclosure
  • FIG. 2 is a schematic diagram of an SDP content template with a private session level attribute added according to Embodiment 1 of the present disclosure
  • FIG. 3 is a flowchart of a method for transmitting a multicast code stream in a non-network-wide multicast mode according to Embodiment 1 of the present disclosure
  • FIG. 4 is a schematic diagram of a session description protocol message generating apparatus according to Embodiment 2 of the present disclosure
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • An embodiment of the present disclosure provides a method for generating a session description protocol message. Referring to FIG. 1, the method includes:
  • Step S101 the session description protocol message format is invoked, and the session description protocol message format includes a first field for recording the first multicast source identifier, and a second field for recording the second multicast source identifier.
  • Step S102 Acquire a first multicast source identifier and at least one second multicast source identifier.
  • Step S103 Generate a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier, where the session description protocol message is used to set the legal multicast source.
  • the SDP when the multicast stream is received, the SDP only carries one multicast source address.
  • the multicast source is added to the IPTV multicast channel, the multicast source is added to the multicast group based on the multicast source address. Only the multicast code stream corresponding to the multicast source is received, and the multicast code stream corresponding to other multicast sources cannot be received, so that the channel does not receive the multicast code stream, and the multicast stream is not received smoothly.
  • the session description protocol message generating method provided in this embodiment includes a first field that is used to record the identifier of the first multicast source by calling, And a session description protocol message format for recording a second field of the second multicast source identifier, and generating a first multicast source identifier and at least one second multicast source identifier and a session description protocol message.
  • the session description protocol message including the first multicast source identifier and the at least one second multicast source identifier may carry more multicasts than the session description protocol message carrying only one multicast source address in the related art. Source identification information, so that more multicast sources can be added to the multicast group to improve the smoothness of the channel receiving the multicast stream.
  • the session description protocol message format is invoked, and the preset session description protocol message format may be invoked, where the preset session description protocol message format may include a first field for recording the first multicast source identifier, and The second field of the second multicast source identifier is recorded; that is, the preset session description protocol message format is configured with the first field and the second field to store the multicast source identifier information.
  • the preset session description protocol message format may be: modifying the original session description protocol message format based on the related original session description protocol message format, where the original session description protocol message format may include a source for indicating the multicast source.
  • the o field of the address that is, the address information of the multicast source is stored in the o field, so that the channel determines the legal multicast source according to the address information of the multicast source in the o field.
  • the second field may be additionally set on the basis of the original session description protocol message. The second multicast source identifier.
  • a session description protocol message format including a first field for recording the first multicast source identifier and a second field for recording the second multicast source identifier may be preset, and when the legal multicast source setting is performed, according to The session description protocol message format generates a session description protocol message, and sets the legal multicast source.
  • the first multicast source identifier and the at least one second multicast source identifier are obtained, and the session description protocol message is generated according to the first multicast source identifier and the at least one second multicast source identifier, including: Writing, by the first multicast source identifier, the first field, and writing the at least one second multicast source identifier to the second field to generate a session description protocol message; or by writing the first multicast source identifier to the first field, and The first multicast source identifier and the at least one second multicast source identifier are written in the second field to generate the session description protocol message.
  • the first multicast source identifier may be written into the first field, and the second multicast source identifier may be written into the second field; or after the first multicast source identifier is written into the first field, The first multicast source identifier and the at least one second multicast source identifier are written together in the second field; the setting may be performed as needed, which is not limited in this embodiment.
  • the session description protocol message in this embodiment may include: an inbound session description protocol message and/or a message Describe the protocol message to the session. That is, for an IPTV multicast system, the session description protocol message may refer to an inbound session description protocol message of a CDN central node in a full network multicast mode, or an inbound session description protocol of a CDN regional node in a full network multicast mode. The inbound session description protocol message may also refer to an inbound session description protocol message of the central node on demand module in the non-network-wide multicast mode.
  • the outgoing session description protocol message may refer to an outgoing session description protocol message of a CDN central node in a full network multicast mode, or an outgoing session description protocol message of a central node channel module in a non-network-wide multicast mode.
  • the outgoing session description protocol message of the CDN central node in the network-wide multicast mode is the inbound session description protocol message of the CDN regional node
  • the outgoing session description protocol message of the central node channel module in the non-network-wide multicast mode is The inbound session description protocol message of the central node on demand module.
  • the multicast source identifier includes address information of the multicast source.
  • the address information of the multicast source can be used as the identifier of the multicast source.
  • the legal multicast source is set, the legal multicast source can be set according to the address information of the multicast source.
  • the multicast source identifier may also be other information that can identify the multicast source.
  • the process of generating the session description protocol message may include setting a second field in the session description protocol message, and adding the multicast stored in the o field in the second field.
  • Other multicast source address information other than source address information; the second field may be a private session attribute field.
  • the multicast source in this embodiment may include: an encoder or a streaming media server.
  • the session description protocol message in this embodiment is an inbound session description protocol message, and the inbound session description protocol message is an inbound session description protocol message of the central node in the network-wide multicast mode, or is a non-full network group.
  • the multicast source may be an encoder; that is, the identifier information, such as the address information of the encoder, carried in the incoming session description protocol message.
  • the session description protocol message is an outgoing session description protocol message
  • the outgoing session description protocol message is an outbound session description protocol message of the central node in the network-wide multicast mode, or the center in the non-network-wide multicast mode.
  • the multicast source is a streaming media server; that is, the identifier information, such as the address information of the streaming media server, carried in the outgoing session description protocol message.
  • the corresponding multicast source may be added to the group according to the multicast source identifier stored in the session description protocol message.
  • the multicast code stream sent by the legal multicast source is received.
  • the legal multicast source is determined according to the multicast source identifier, including: Add the multicast source to the multicast group. Set the multicast source to be added to the multicast group as a legal multicast source.
  • the multicast source corresponding to the parsed multicast source identifier is added to the multicast group as the specified legal source, so that the multicast stream sent by these sources is Streaming media can be received normally, so that the channel works properly.
  • the use of IGMPV3 usually causes the channel to receive the multicast stream to be interrupted, that is, the channel receives the multicast stream.
  • the session description protocol message generating method provided in this embodiment may be used for generating a session description protocol message in a CDN network of a full network multicast mode and a non-full network multicast mode.
  • the CDN central node channel receives the multicast code stream sent by the encoder.
  • the channel into the SDP contains only one multicast source IP address, and the central node streaming server only joins the multicast.
  • This multicast source IP address is specified.
  • the multicast code stream sent by other IP encoders cannot be received in the IGMPV3 mode because the multicast source address does not match. As a result, the channel cannot receive the incoming multicast stream and is interrupted. .
  • the area node receives the outgoing multicast code stream of the central node channel as the inbound code stream of the channel.
  • the central node generally includes multiple streaming media servers. If the streaming media A fails, the channel will be migrated to another streaming media B.
  • the source IP of the multicast stream sent by the channel will change and become streaming media.
  • B's IP That is to say, the source IP of the upper-level central node multicast code stream received by the lower-level regional center channel may come from a plurality of different streaming media IPs.
  • the streaming media joins the multicast group according to the multicast source IP address specified by the o field in the SDP. Only the multicast stream sent by the multicast source is received. When the channel is migrated, the multicast code sent by other multicast sources is generated. The stream is discarded, causing the regional node channel to receive no incoming traffic to the multicast stream.
  • the private session attribute field can be added to the channel inbound SDP, that is, the second field is used to indicate the IP address of the multicast source other than the o field, and the flow
  • the media joins the IP represented by the o field and the private session attribute field as a specified source to the multicast, so that the multicast code stream sent by these multicast sources can be received normally, so that the channel works normally.
  • AddrType is the address type and Address
  • Address is an IPv4 address or an IPv6 address.
  • the encoder address that can be used as a legal multicast source other than the encoder address described by the o field in the private session attribute field of the inbound SDP of the central node may be described in the private session attribute field of the outgoing node of the central node.
  • the address of the streaming server that can serve as a legitimate multicast source in addition to the address of the streaming server described by the o field.
  • the streaming server can receive the multicast stream normally, so that the channel works normally.
  • the solution can solve the problem of central node and regional node disconnection in the whole network multicast mode and the central node disconnection in the non-full network multicast mode.
  • the method for generating a session description protocol message in this embodiment may be used in a non-full network multicast mode in an IPTV CDN network.
  • the center The manner in which the node receives the channel incoming multicast stream is the same as that of the central node in the whole network multicast mode. Therefore, the channel disconnection problem also exists in the IGMPV3 mode.
  • the lower-area node unicasts to the center through the Real Time Streaming Protocol (RTSP).
  • RTSP Real Time Streaming Protocol
  • the node obtains the channel incoming code stream.
  • Each streaming server includes a channel module and an on-demand module.
  • the channel module is responsible for receiving the incoming stream, sending the outgoing stream and generating the channel outgoing SDP
  • the on-demand module is responsible for receiving the multicast stream from the channel module and transmitting it to the lower relay channel.
  • the central node on-demand module receives the multicast code stream sent by the central node channel module according to the SDP generated by the central node channel. Because the SDP contains only one multicast source address of the o field, only one multicast source address is specified, that is, on-demand The module can only receive the multicast stream sent by a streaming server. If the channel is migrated to another streaming server, the central node broadcast module in IGMPV3 mode will send the multicast source specified by the multicast source.
  • the multicast source of the code stream is inconsistent and the multicast code stream is not received, so that the channel of the area node does not receive the code stream and is disconnected. Therefore, for a regional node in the non-network-wide multicast mode, the code that can be used as a legal multicast source other than the encoder address described by the o field can be described in the private session attribute field of the incoming SDP of the central node channel module.
  • the multicast source IP list is added to the field in which the service sends the channel creation message to the streaming media server. When the multicast type channel is used, the streaming server sends the generated channel to the SDP according to the list. Insert a private session attribute field indicating the multicast source IP.
  • the service module creates a channel to the streaming server.
  • a multicast source IP list is sent.
  • the multicast source IP list contains the IP addresses of all the streaming media servers of the central node.
  • the channel module of the center is the service module creates a channel to the streaming server.
  • the on-demand module Since all the streaming media server IPs of the central node are used as the source of the multicast stream, even if the channels are migrated on different streaming media servers, the on-demand module will not affect the receiving of the multicast stream, so that the regional central node can receive the packets normally. Channel incoming code stream.
  • the solution can solve the problem of channel disconnection of the regional node in the non-network-wide multicast mode.
  • the session description protocol message generating method is configured to invoke a session description protocol message format, where the session description protocol message format includes a first field for recording a first multicast source identifier, and a second multicast source identifier for recording a second field; obtaining a first multicast source identifier and at least one second multicast source identifier; generating a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier; the session description protocol message is used Set the legal multicast source. That is, the first multicast source identifier and the at least one may be generated by including a first field for recording the first multicast source identifier and a session description protocol format for recording the second field of the second multicast source identifier.
  • the session description protocol message that is identified by the second multicast source may determine the first multicast source identifier and the at least one second multicast according to the session description protocol message that includes the first multicast source identifier and the at least one second multicast source identifier.
  • the multicast source corresponding to the source identifier enables the channel to receive the multicast stream of the multicast source corresponding to the first multicast source identifier and the at least one second multicast source identifier according to the multicast source identifier. That is, the multicast code stream sent by different multicast sources can be received, and the fluency of the channel receiving the multicast code stream is improved compared to the manner in which only the multicast code stream sent by one multicast source can be received in the related art.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment of the present disclosure provides a session description protocol message generating apparatus.
  • the method includes: a session description protocol message format invoking module 41, a multicast source identifier obtaining module 42 and a session description protocol message generating module 43.
  • the protocol message format invoking module 41 is configured to invoke a session description protocol message format, the session description protocol message format includes a first field for recording the first multicast source identifier, and a second field for recording the second multicast source identifier
  • the multicast source identifier obtaining module 42 is configured to obtain the first multicast source identifier and the at least one second multicast source identifier;
  • the session description protocol message generating module 43 is configured to identify the first multicast source identifier and the at least one second
  • the multicast source identifier generates a session description protocol message, and the session description protocol message is used to set a legal multicast source.
  • the SDP when the multicast stream is received, the SDP only carries one multicast source address.
  • the multicast source is added to the IPTV multicast channel, the multicast source is added to the multicast group based on the multicast source address. Only the multicast code stream corresponding to the multicast source is received, and the multicast code stream corresponding to other multicast sources cannot be received, so that the channel does not receive the multicast code stream, and the multicast stream is not received smoothly.
  • the session description protocol message generating apparatus invokes, by using the session description protocol message format invoking module 41, a first field, which is used to record the first multicast source identifier, and a second, which is used to record the second multicast source identifier.
  • the session description protocol message format of the field and then the session description protocol message generation module 43 can generate the first multicast according to the first multicast source identifier and the at least one second multicast source identifier obtained by the multicast source identifier obtaining module 42.
  • the source identifier and the session description protocol message of the at least one second multicast source identifier may carry more multicasts than the session description protocol message carrying only one multicast source address in the related art. Source identification information, so that more multicast sources can be added to the multicast group to improve the smoothness of the channel receiving the multicast stream.
  • the session description protocol message format invoking module 41 invokes the session description protocol message format, and may be a preset session description protocol message format, where the preset session description protocol message format may include the first used to record the first multicast source identifier. a field, and a second field for recording the second multicast source identifier; that is, the preset session description protocol message format is configured with the first field and the second field to store the multicast source identification information.
  • the preset session description protocol message format may be: modifying the original session description protocol message format based on the related original session description protocol message format, where the original session description protocol message format may include a source for indicating the multicast source.
  • the o field of the address that is, the address information of the multicast source is stored in the o field, so that the channel determines the legal multicast source according to the address information of the multicast source in the o field.
  • the second field may be additionally set on the basis of the original session description protocol message. The second multicast source identifier.
  • a session description protocol message format including a first field for recording the first multicast source identifier and a second field for recording the second multicast source identifier may be preset, and when the legal multicast source setting is performed, according to The session description protocol message format generates a session description protocol message, and sets the legal multicast source.
  • the session description protocol message generating module 43 in this embodiment may be further configured to: write the first multicast source identifier into the first field, and write at least one second multicast source identifier into the second field to generate a session description.
  • the protocol message is generated by writing the first multicast source identifier to the first field and writing the first multicast source identifier and the at least one second multicast source identifier to the second field to generate a session description protocol message.
  • the protocol message generating module 43 generates a session description protocol message, which may be: when the session description protocol message is generated, the first multicast source identifier may be written into the first field, and the second multicast source identifier may be written into the second field; After the first multicast source identifier is written into the first field, the first multicast source identifier and the at least one second multicast source identifier are written together into the second field. It is not limited.
  • the session description protocol message in this embodiment may include: an inbound session description protocol message and/or an outbound session description protocol message. That is, for an IPTV multicast system, the session description protocol message may refer to an inbound session description protocol message of a CDN central node in a full network multicast mode, or an inbound session description protocol of a CDN regional node in a full network multicast mode.
  • the inbound session description protocol message may also refer to an inbound session description protocol message of the central node on demand module in the non-network-wide multicast mode.
  • the outgoing session description protocol message may refer to an outgoing session description protocol message of a CDN central node in a full network multicast mode, or an outgoing session description protocol message of a central node channel module in a non-network-wide multicast mode.
  • the multicast source identifier includes address information of the multicast source.
  • the address information of the multicast source can be used as the identifier of the multicast source.
  • the legal multicast source can be set according to the address information of the multicast source.
  • the multicast source identifier may also be other information that can identify the multicast source.
  • the multicast source in this embodiment may include: an encoder or a streaming media server.
  • the session description protocol message in this embodiment is an inbound session description protocol message, and the inbound session description protocol message is an inbound session description protocol message of the central node in the network-wide multicast mode, or is a non-full network group.
  • the multicast source may be an encoder.
  • the session description protocol message is an outgoing session description protocol message
  • the outgoing session description protocol message is an outbound session description protocol message of the central node in the network-wide multicast mode, or the center in the non-network-wide multicast mode.
  • the multicast source may be a streaming media server.
  • the session description protocol message generating apparatus is configured to invoke a session description protocol message format, where the session description protocol message format includes a first field for recording a first multicast source identifier, and a second multicast source identifier for recording a second field; obtaining a first multicast source identifier and at least one second multicast source identifier; generating a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier; the session description protocol message is used Set the legal multicast source.
  • the generating includes the first multicast source identifier and the at least one second multicast source identifier
  • the session description protocol message may be determined according to the session description protocol message including the first multicast source identifier and the at least one second multicast source identifier, and the multicast corresponding to the first multicast source identifier and the at least one second multicast source identifier may be determined.
  • the source when the channel receives the multicast code stream, may receive the multicast stream of the multicast source corresponding to the first multicast source identifier and the at least one second multicast source identifier according to the multicast source identifier, that is, may receive different groups.
  • the multicast code stream sent by the broadcast source improves the smoothness of the channel receiving the multicast code stream compared to the manner in which only the multicast code stream of one multicast source can be received in the related art.
  • Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
  • the computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
  • the embodiment of the present disclosure further provides a schematic structural diagram of an electronic device.
  • the electronic device includes:
  • At least one processor 50 which is exemplified by a processor 50 in FIG. 5; and a memory 51, may further include a communication interface 52 and a bus 53.
  • the processor 50, the communication interface 52, and the memory 51 can complete communication with each other through the bus 53.
  • Communication interface 52 can be used for information transmission.
  • Processor 50 can invoke logic instructions in memory 51 to perform the methods of the above-described embodiments.
  • logic instructions in the memory 51 described above may be implemented in the form of software functional units and sold or used as separate products, and may be stored in a computer readable storage medium.
  • the memory 51 is used as a computer readable storage medium for storing software programs, computer executable programs, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure.
  • the processor 50 executes the function application and the data portion by running software programs, instructions, and modules stored in the memory 51.
  • the network registration method in the foregoing method embodiment is implemented.
  • the memory 51 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the terminal device, and the like. Further, the memory 51 may include a high speed random access memory, and may also include a nonvolatile memory.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in the embodiments of the present disclosure.
  • the foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
  • the modules or steps of the above embodiments of the present disclosure may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be used.
  • the program code executable by the computing device is implemented so that they can be stored in a computer storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some cases, may be different from here.
  • the steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Therefore, the present disclosure is not limited to any specific combination of hardware and software.
  • the method and device for generating a session description protocol message provided by the embodiment of the present application improves the fluency of the channel receiving the multicast code stream.

Abstract

Provided by the embodiments of the present application are a method and apparatus for generating a session description protocol message, comprising: calling a session description protocol message format, the session description protocol message format comprising a first field used for recording a first multicast source identifier and a second field used for recording a second multicast source identifier; acquiring a first multicast source identifier and at least one second multicast source identifier; and generating a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier, the session description protocol message being used for setting a valid multicast source. Therefore, a session description protocol message that comprises both the first multicast source identifier and the at least one second multicast source identifier may be generated, and then the multicast sources corresponding to the first multicast source identifier and the at least one second multicast source may be determined by means of the session description protocol message and set as valid multicast sources, thus enabling a channel, when receiving multicast code streams, to receive multicast code streams issued by different multicast sources, thereby improving fluency of the channel in receiving multicast code streams.

Description

一种会话描述协议消息生成方法和装置Method and device for generating session description protocol message 技术领域Technical field
本申请涉及通信领域,例如涉及一种会话描述协议消息生成方法和装置。The present application relates to the field of communications, for example, to a session description protocol message generating method and apparatus.
背景技术Background technique
IPTV(Internet Protocol Television,交互式网络电视)组播频道应用中,流媒体服务器上创建的频道会有一个入向会话描述协议(Session Description Protocol,SDP)和一个出向SDP。入向SDP用于描述频道接收的入向组播码流的媒体属性,而出向SDP则描述的是经过流媒体服务器转码处理后的频道出向组播码流的媒体属性。流媒体服务器一般采用标准的因特网组管理协议(Internet Group Management Protocol,IGMP)加入频道SDP中描述组播组。IGMP组管理协议有V1,V2和V3三个版本。其中IGMPV3是在兼容和继承IGMPV1和IGMPV2基础上,增加了对组播源的过滤模式,即主机可以只接收来自特定源发的组播信息。由于IGMPV3的这个特性,流媒体服务器如果采用IGMPV3协议加入组播获取频道码流,则通常会存在频道接收组播码流出现断流的问题。In the IPTV (Internet Protocol Television) multicast channel application, the channel created on the streaming server has an inbound Session Description Protocol (SDP) and an outgoing SDP. The incoming SDP is used to describe the media attribute of the incoming multicast stream received by the channel, and the outgoing SDP describes the media attribute of the channel outgoing multicast stream after transcoding by the streaming server. The streaming media server generally uses a standard Internet Group Management Protocol (IGMP) to join the channel SDP to describe the multicast group. The IGMP group management protocol has three versions: V1, V2 and V3. IGMPV3 adds a filtering mode to the multicast source based on the compatibility and inheritance of IGMPV1 and IGMPV2. That is, the host can only receive multicast information from a specific source. Due to the feature of IGMPV3, if the streaming media server joins the multicast to obtain the channel code stream by using the IGMPV3 protocol, there is usually a problem that the channel receives the multicast code stream and is disconnected.
发明内容Summary of the invention
本公开实施例提供的会话描述协议消息生成方法和装置,解决的技术问题是当前根据会话描述协议消息只能确定一个合法组播源,使得频道接收组播码流不流畅。The method and device for generating a session description protocol message provided by the embodiment of the present disclosure solves the problem that only one legal multicast source can be determined according to the session description protocol message, so that the channel receiving multicast code stream is not smooth.
为解决上述技术问题,本公开实施例提供一种会话描述协议消息生成方法,包括:To solve the above technical problem, an embodiment of the present disclosure provides a method for generating a session description protocol message, including:
调用会话描述协议消息格式,会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;Invoking a session description protocol message format, the session description protocol message format includes a first field for recording a first multicast source identifier, and a second field for recording a second multicast source identifier;
获取第一组播源标识及至少一个第二组播源标识;Obtaining a first multicast source identifier and at least one second multicast source identifier;
根据第一组播源标识及至少一个第二组播源标识生成会话描述协议消息, 会话描述协议消息用于进行合法组播源的设置。Generating a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier, The session description protocol message is used to set the legal multicast source.
本公开实施例还提供一种会话描述协议消息生成装置,包括:The embodiment of the present disclosure further provides a session description protocol message generating apparatus, including:
会话描述协议消息格式调用模块,被配置为调用会话描述协议消息格式,会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;The session description protocol message format invoking module is configured to invoke a session description protocol message format, where the session description protocol message format includes a first field for recording the first multicast source identifier, and a second for recording the second multicast source identifier. Two fields;
组播源标识获取模块,被配置为获取第一组播源标识及至少一个第二组播源标识;The multicast source identifier obtaining module is configured to obtain the first multicast source identifier and the at least one second multicast source identifier.
会话描述协议消息生成模块,被配置为根据第一组播源标识及至少一个第二组播源标识生成会话描述协议消息,会话描述协议消息用于进行合法组播源的设置。The session description protocol message generating module is configured to generate a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier, where the session description protocol message is used to set the legal multicast source.
本公开实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述任一项的会话描述协议消息生成方法。The embodiment of the present disclosure further provides a computer storage medium having stored therein computer executable instructions for performing the session description protocol message generation method of any of the foregoing.
本公开实施例还提供了一种电子设备,包括:An embodiment of the present disclosure further provides an electronic device, including:
至少一个处理器;以及At least one processor;
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器执行上述的方法。The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to cause the at least one processor to perform the method described above.
根据本公开实施例提供的会话描述协议消息生成方法、装置以及计算机存储介质,通过调用会话描述协议消息格式,会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;获取第一组播源标识及至少一个第二组播源标识;根据第一组播源标识及至少一个第二组播源标识生成会话描述协议消息;会话描述协议消息用于进行合法组播源的设置。即可以通过包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段的会话描述协议格式,生成同时包括第一组播源标识和至少一个第二组播源标识的会话描述协议消息,根据该包括第一组播源标识和至少一个第二组播源标识的会话描述协议消息可以确定第一组播源标 识和至少一个第二组播源标识对应的组播源,将前述组播源设置为合法组播源,可以使得频道接收组播码流时,可以根据该组播源标识接收第一组播源标识和至少一个第二组播源标识对应的组播源的组播码流,即可以接收不同组播源发出的组播码流,相比于相关技术中的只能接收一个组播源发送的组播码流的方式,提高了频道接收组播码流的流畅度。A session description protocol message generating method, apparatus, and computer storage medium according to an embodiment of the present disclosure, by calling a session description protocol message format, the session description protocol message format includes a first field for recording a first multicast source identifier, and The second field of the second multicast source identifier is recorded; the first multicast source identifier and the at least one second multicast source identifier are obtained; and the session description protocol is generated according to the first multicast source identifier and the at least one second multicast source identifier. Message; Session Description Protocol message is used to set the legal multicast source. That is, the first multicast source identifier and the at least one may be generated by including a first field for recording the first multicast source identifier and a session description protocol format for recording the second field of the second multicast source identifier. The session description protocol message of the second multicast source identifier, the first multicast source identifier may be determined according to the session description protocol message including the first multicast source identifier and the at least one second multicast source identifier And identifying the multicast source corresponding to the at least one second multicast source identifier, and setting the multicast source as a legal multicast source, so that when the channel receives the multicast code stream, the first multicast can be received according to the multicast source identifier. The multicast code stream of the multicast source corresponding to the source identifier and the at least one second multicast source identifier can receive the multicast code stream sent by different multicast sources, and only one multicast source can be received in the related art. The manner of sending the multicast stream improves the smoothness of the channel receiving the multicast stream.
附图概述BRIEF abstract
图1为本公开实施例一的会话描述协议消息生成方法流程图;1 is a flowchart of a method for generating a session description protocol message according to Embodiment 1 of the present disclosure;
图2为本公开实施例一的增加了私有会话级属性的SDP内容模板示意图;2 is a schematic diagram of an SDP content template with a private session level attribute added according to Embodiment 1 of the present disclosure;
图3为本公开实施例一的非全网组播方式下组播码流的传输方式流程图;3 is a flowchart of a method for transmitting a multicast code stream in a non-network-wide multicast mode according to Embodiment 1 of the present disclosure;
图4为本公开实施例二的会话描述协议消息生成装置示意图;以及4 is a schematic diagram of a session description protocol message generating apparatus according to Embodiment 2 of the present disclosure;
图5是本公开实施例的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
具体实施方式detailed description
下面通过实施方式结合附图对本公开实施例进行详细说明。The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
本公开实施例提供一种会话描述协议消息生成方法,请参见图1,包括:An embodiment of the present disclosure provides a method for generating a session description protocol message. Referring to FIG. 1, the method includes:
步骤S101,调用会话描述协议消息格式,会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;Step S101, the session description protocol message format is invoked, and the session description protocol message format includes a first field for recording the first multicast source identifier, and a second field for recording the second multicast source identifier.
步骤S102,获取第一组播源标识及至少一个第二组播源标识;Step S102: Acquire a first multicast source identifier and at least one second multicast source identifier.
步骤S103,根据第一组播源标识及至少一个第二组播源标识生成会话描述协议消息,会话描述协议消息用于进行合法组播源的设置。Step S103: Generate a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier, where the session description protocol message is used to set the legal multicast source.
当前IPTV组播频道中在进行组播码流接收时,由于SDP中只携带一个组播源地址,在加入组播时,只会根据该组播源地址将该组播源加入组播组,则只接受该组播源对应的组播码流,而无法接收其他组播源对应的组播码流,从而使得频道接收不到组播码流,导致组播码流接收不流畅。本实施例中提供的会话描述协议消息生成方法通过调用包含用于记录第一组播源标识的第一字段, 以及用于记录第二组播源标识的第二字段的会话描述协议消息格式,可以生成同时包含第一组播源标识及至少一个第二组播源标识和会话描述协议消息。该包含第一组播源标识及至少一个第二组播源标识的会话描述协议消息,相比于相关技术中的只携带一个组播源地址的会话描述协议消息,可以携带更多的组播源标识信息,以使更多的组播源等加入组播组,提高频道接收组播码流的流畅度。In the current IPTV multicast channel, when the multicast stream is received, the SDP only carries one multicast source address. When the multicast source is added to the IPTV multicast channel, the multicast source is added to the multicast group based on the multicast source address. Only the multicast code stream corresponding to the multicast source is received, and the multicast code stream corresponding to other multicast sources cannot be received, so that the channel does not receive the multicast code stream, and the multicast stream is not received smoothly. The session description protocol message generating method provided in this embodiment includes a first field that is used to record the identifier of the first multicast source by calling, And a session description protocol message format for recording a second field of the second multicast source identifier, and generating a first multicast source identifier and at least one second multicast source identifier and a session description protocol message. The session description protocol message including the first multicast source identifier and the at least one second multicast source identifier may carry more multicasts than the session description protocol message carrying only one multicast source address in the related art. Source identification information, so that more multicast sources can be added to the multicast group to improve the smoothness of the channel receiving the multicast stream.
对于步骤S101,调用会话描述协议消息格式,可以是调用预设的会话描述协议消息格式,该预设的会话描述协议消息格式可以包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;即该预设的会话描述协议消息格式同时设置有第一字段和第二字段来存储组播源标识信息。该预设的会话描述协议消息格式可以是在相关的原始会话描述协议消息格式的基础上,对该原始会话描述协议消息格式进行修改,原始会话描述协议消息格式可以包括一个用于指示组播源地址的o字段,即在该o字段中存储组播源的地址信息,使得频道根据该o字段中的组播源的地址信息确定合法组播源。则本实施例中,若该第一字段即为o字段,且该第一字段用于存放第一组播源标识;则可以在原始会话描述协议消息的基础上,另外设置第二字段,存放第二组播源标识。即可以预先设置包含用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段的会话描述协议消息格式,在进行合法组播源设置时,根据该会话描述协议消息格式生成会话描述协议消息,进行合法组播源的设置。For the step S101, the session description protocol message format is invoked, and the preset session description protocol message format may be invoked, where the preset session description protocol message format may include a first field for recording the first multicast source identifier, and The second field of the second multicast source identifier is recorded; that is, the preset session description protocol message format is configured with the first field and the second field to store the multicast source identifier information. The preset session description protocol message format may be: modifying the original session description protocol message format based on the related original session description protocol message format, where the original session description protocol message format may include a source for indicating the multicast source. The o field of the address, that is, the address information of the multicast source is stored in the o field, so that the channel determines the legal multicast source according to the address information of the multicast source in the o field. In this embodiment, if the first field is an o field, and the first field is used to store the first multicast source identifier, the second field may be additionally set on the basis of the original session description protocol message. The second multicast source identifier. That is, a session description protocol message format including a first field for recording the first multicast source identifier and a second field for recording the second multicast source identifier may be preset, and when the legal multicast source setting is performed, according to The session description protocol message format generates a session description protocol message, and sets the legal multicast source.
对于步骤S102和步骤S103,获取第一组播源标识及至少一个第二组播源标识,根据第一组播源标识及至少一个第二组播源标识生成会话描述协议消息,包括:通过将第一组播源标识写入第一字段,将至少一个第二组播源标识写入第二字段以生成会话描述协议消息;或通过将第一组播源标识写入第一字段,且将第一组播源标识及至少一个第二组播源标识写入第二字段以生成所述会话描述协议消息。在生成会话描述协议消息时,可以将第一组播源标识写入第一字段,将第二组播源标识写入第二字段;也可以在第一组播源标识写入第一字段后,将该第一组播源标识及至少一个第二组播源标识再一起写入第二字段;其可以根据需要进行设置,本实施例对其不作限定。For the step S102 and the step S103, the first multicast source identifier and the at least one second multicast source identifier are obtained, and the session description protocol message is generated according to the first multicast source identifier and the at least one second multicast source identifier, including: Writing, by the first multicast source identifier, the first field, and writing the at least one second multicast source identifier to the second field to generate a session description protocol message; or by writing the first multicast source identifier to the first field, and The first multicast source identifier and the at least one second multicast source identifier are written in the second field to generate the session description protocol message. When the session description protocol message is generated, the first multicast source identifier may be written into the first field, and the second multicast source identifier may be written into the second field; or after the first multicast source identifier is written into the first field, The first multicast source identifier and the at least one second multicast source identifier are written together in the second field; the setting may be performed as needed, which is not limited in this embodiment.
本实施例中的会话描述协议消息可以包括:入向会话描述协议消息和/或出 向会话描述协议消息。即对于IPTV组播系统,该会话描述协议消息可以是指全网组播模式中的CDN中心节点的入向会话描述协议消息,或者全网组播模式中的CDN区域节点的入向会话描述协议消息;该入向会话描述协议消息也可以指非全网组播模式中的中心节点点播模块的入向会话描述协议消息。该出向会话描述协议消息可以是指全网组播模式中的CDN中心节点的出向会话描述协议消息,或者非全网组播模式中的中心节点频道模块的出向会话描述协议消息。且全网组播模式中的CDN中心节点的出向会话描述协议消息即为CDN区域节点的入向会话描述协议消息,非全网组播模式中的中心节点频道模块的出向会话描述协议消息即为中心节点点播模块的入向会话描述协议消息。The session description protocol message in this embodiment may include: an inbound session description protocol message and/or a message Describe the protocol message to the session. That is, for an IPTV multicast system, the session description protocol message may refer to an inbound session description protocol message of a CDN central node in a full network multicast mode, or an inbound session description protocol of a CDN regional node in a full network multicast mode. The inbound session description protocol message may also refer to an inbound session description protocol message of the central node on demand module in the non-network-wide multicast mode. The outgoing session description protocol message may refer to an outgoing session description protocol message of a CDN central node in a full network multicast mode, or an outgoing session description protocol message of a central node channel module in a non-network-wide multicast mode. The outgoing session description protocol message of the CDN central node in the network-wide multicast mode is the inbound session description protocol message of the CDN regional node, and the outgoing session description protocol message of the central node channel module in the non-network-wide multicast mode is The inbound session description protocol message of the central node on demand module.
另外,本实施例中组播源标识包括组播源的地址信息。在生成会话描述协议消息时,可以将组播源的地址信息作为组播源的标识,使得后续进行合法组播源设置时,可以根据该组播源的地址信息进行合法组播源的设置;当然,该组播源标识也可以是其他可以标识组播源的信息。当组播源标识为组播源的地址信息时,该会话描述协议消息的生成过程可以包括在会话描述协议消息中设置第二字段,在该第二字段中添加除o字段中存储的组播源地址信息以外的其他组播源地址信息;该第二字段可以为私有会话属性字段。In addition, in this embodiment, the multicast source identifier includes address information of the multicast source. When the session description protocol message is generated, the address information of the multicast source can be used as the identifier of the multicast source. When the legal multicast source is set, the legal multicast source can be set according to the address information of the multicast source. Of course, the multicast source identifier may also be other information that can identify the multicast source. When the multicast source identifier is the address information of the multicast source, the process of generating the session description protocol message may include setting a second field in the session description protocol message, and adding the multicast stored in the o field in the second field. Other multicast source address information other than source address information; the second field may be a private session attribute field.
本实施例中的组播源可以包括:编码器或流媒体服务器。当本实施例中的会话描述协议消息为入向会话描述协议消息,且该入向会话描述协议消息为全网组播模式下的中心节点的入向会话描述协议消息,或为非全网组播模式下的中心节点频道模块的入向会话描述协议消息时,该组播源可以为编码器;即此时入向会话描述协议消息中携带的可以是编码器的地址信息等标识信息。另外,当该会话描述协议消息为出向会话描述协议消息,且该出向会话描述协议消息为全网组播模式下的中心节点的出向会话描述协议消息,或为非全网组播模式下的中心节点频道模块的出向会话描述协议消息时,该组播源为流媒体服务器;即此时出向会话描述协议消息中携带的可以是流媒体服务器的地址信息等标识信息。The multicast source in this embodiment may include: an encoder or a streaming media server. The session description protocol message in this embodiment is an inbound session description protocol message, and the inbound session description protocol message is an inbound session description protocol message of the central node in the network-wide multicast mode, or is a non-full network group. In the inbound session description protocol message of the central node channel module in the broadcast mode, the multicast source may be an encoder; that is, the identifier information, such as the address information of the encoder, carried in the incoming session description protocol message. In addition, when the session description protocol message is an outgoing session description protocol message, and the outgoing session description protocol message is an outbound session description protocol message of the central node in the network-wide multicast mode, or the center in the non-network-wide multicast mode. When the outbound session description protocol message of the node channel module is used, the multicast source is a streaming media server; that is, the identifier information, such as the address information of the streaming media server, carried in the outgoing session description protocol message.
本实施例中,通过上述会话描述协议消息生成方法生成会话描述协议消息后,则可以根据该会话描述协议消息中存储的组播源标识将相应的组播源作为合法组播源,加入到组播组中,并接收该合法组播源发送来的组播码流。即在得到组播源标识后,根据组播源标识确定合法组播源,包括:将组播源标识对 应的组播源加入组播组;将加入组播组的组播源设置为合法组播源。即从会话描述协议消息中解析出组播源标识后,将解析出的组播源标识对应的组播源作为指定合法源加入组播组中,从而使得这些源发出来的组播码流,流媒体能正常接收,从而使频道正常工作。In this embodiment, after the session description protocol message is generated by using the session description protocol message generation method, the corresponding multicast source may be added to the group according to the multicast source identifier stored in the session description protocol message. In the broadcast group, the multicast code stream sent by the legal multicast source is received. After the multicast source ID is obtained, the legal multicast source is determined according to the multicast source identifier, including: Add the multicast source to the multicast group. Set the multicast source to be added to the multicast group as a legal multicast source. That is, after the multicast source identifier is parsed from the session description protocol message, the multicast source corresponding to the parsed multicast source identifier is added to the multicast group as the specified legal source, so that the multicast stream sent by these sources is Streaming media can be received normally, so that the channel works properly.
在全网组播模式和非全网组播模式的IPTV内容分发网络(Content Delivery Network,CDN)中,采用IGMPV3通常会引起频道接收组播码流出现断流,即频道接收组播码流不流畅的问题,则本实施例提供的会话描述协议消息生成方法可以用于全网组播模式和非全网组播模式的CDN网络中的会话描述协议消息的生成。在IPTV CDN网络中的全网组播模式下,相关技术中,对于全网组播模式下的CDN中心节点来说,CDN中心节点频道接收编码器发出的组播码流。频道入向组播码流如果是由多个不同IP地址的备份编码器发出来,而频道入向SDP中的o字段只包含一个组播源IP地址,中心节点流媒体服务器加入组播时只会指定这一个组播源IP,其他IP编码器发出的组播码流在IGMPV3方式下则由于组播源地址不匹配而无法接收,从而导致频道接收不到入向组播码流而断流。对于全网组播模式下的CDN区域节点,区域节点接收中心节点频道的出向组播码流作为频道的入向码流。中心节点一般包含多个流媒体服务器,如果流媒体A发生故障,频道就会迁移到另一个流媒体B上,这时频道发出的组播码流的源IP就会发生改变,变成流媒体B的IP。也就是说,下级区域中心频道接收的上级中心节点组播码流的源IP会来自于多个不同的流媒体IP。IGMPV3方式下,流媒体根据SDP中的o字段指定的组播源IP加入组播组,只接收该组播源发出的组播码流,当频道发生迁移,其他组播源发的组播码流就会被丢弃,从而导致区域节点频道收不到入向组播码流而断流。所以,对于全网组播方式下的中心节点和区域节点,可以在频道入向SDP中增加私有会话属性字段,即第二字段用来表示除o字段以外的其他组播源的IP地址,流媒体将o字段以及私有会话属性字段表示的IP作为指定源加入组播,从而使得这些组播源发出来的组播码流,流媒体能正常接收,从而使频道正常工作。In the IPTV content delivery network (CDN) of the whole network multicast mode and the non-full network multicast mode, the use of IGMPV3 usually causes the channel to receive the multicast stream to be interrupted, that is, the channel receives the multicast stream. For the problem of smoothness, the session description protocol message generating method provided in this embodiment may be used for generating a session description protocol message in a CDN network of a full network multicast mode and a non-full network multicast mode. In the network-wide multicast mode in the IPTV CDN network, in the related art, for the CDN central node in the full-network multicast mode, the CDN central node channel receives the multicast code stream sent by the encoder. If the channel incoming multicast stream is sent by a backup encoder with multiple different IP addresses, the channel into the SDP contains only one multicast source IP address, and the central node streaming server only joins the multicast. This multicast source IP address is specified. The multicast code stream sent by other IP encoders cannot be received in the IGMPV3 mode because the multicast source address does not match. As a result, the channel cannot receive the incoming multicast stream and is interrupted. . For the CDN area node in the whole network multicast mode, the area node receives the outgoing multicast code stream of the central node channel as the inbound code stream of the channel. The central node generally includes multiple streaming media servers. If the streaming media A fails, the channel will be migrated to another streaming media B. At this time, the source IP of the multicast stream sent by the channel will change and become streaming media. B's IP. That is to say, the source IP of the upper-level central node multicast code stream received by the lower-level regional center channel may come from a plurality of different streaming media IPs. In IGMPv3 mode, the streaming media joins the multicast group according to the multicast source IP address specified by the o field in the SDP. Only the multicast stream sent by the multicast source is received. When the channel is migrated, the multicast code sent by other multicast sources is generated. The stream is discarded, causing the regional node channel to receive no incoming traffic to the multicast stream. Therefore, for the central node and the regional node in the network-wide multicast mode, the private session attribute field can be added to the channel inbound SDP, that is, the second field is used to indicate the IP address of the multicast source other than the o field, and the flow The media joins the IP represented by the o field and the private session attribute field as a specified source to the multicast, so that the multicast code stream sent by these multicast sources can be received normally, so that the channel works normally.
在频道入向SDP中,增加一个私有的会话级属性字段,在该字段中描述除o字段描述的组播源地址以外其他可能的组播源地址,其形式可以是:x-zmssAltOrig:<AddrType><Address>;其中AddrType为地址类型,Address为地址;如AddrType=″IP4″|″IP6″,Address就是IPv4地址或IPv6地址。当存在 多个组播源地址时,则通过多个a=x-zmssAltOrig属性来描述。可以是在中心节点的入向SDP的私有会话属性字段中描述除o字段描述的编码器地址以外其他可作为合法组播源的编码器地址,在中心节点的出向SDP的私有会话属性字段中描述除o字段描述的流媒体服务器的地址以外其他可作为合法组播源的流媒体服务器的地址。另外,如附图2所示的模板,当启动IGMPv3功能时,流媒体服务器对于每一个a=x-zmssAltOrig属性,调用加入组播组的接口,将对应的源地址指定为的组播源。此时,无论是由哪个源发送的组播码流,流媒体服务器能正常接收组播码流,从而使频道正常工作。通过该方案可以解决全网组播方式下的中心节点和区域节点断流以及非全网组播方式下中心节点断流的问题。In the channel incoming SDP, add a private session level attribute field, in which the other possible multicast source addresses other than the multicast source address described by the o field are described, and the form may be: x-zmssAltOrig:<AddrType ><Address>; where AddrType is the address type and Address is the address; for example, AddrType="IP4"|"IP6", Address is an IPv4 address or an IPv6 address. When there is When multiple multicast source addresses are used, they are described by multiple a=x-zmssAltOrig attributes. The encoder address that can be used as a legal multicast source other than the encoder address described by the o field in the private session attribute field of the inbound SDP of the central node may be described in the private session attribute field of the outgoing node of the central node. The address of the streaming server that can serve as a legitimate multicast source, in addition to the address of the streaming server described by the o field. In addition, as shown in FIG. 2, when the IGMPv3 function is enabled, the streaming server calls the interface that joins the multicast group for each a=x-zmssAltOrig attribute, and specifies the corresponding source address as the multicast source. At this time, regardless of which source the multicast code stream is sent, the streaming server can receive the multicast stream normally, so that the channel works normally. The solution can solve the problem of central node and regional node disconnection in the whole network multicast mode and the central node disconnection in the non-full network multicast mode.
另外,本实施例中的会话描述协议消息生成方法,可以用于IPTV CDN网络中的非全网组播模式下,相关技术中,对于非全网组播模式下的CDN中心节点来说,中心节点接收频道入向组播码流的方式与全网组播方式中的中心节点相同,所以在IGMPV3方式下同样存在频道断流问题。对于非全网组播模式下的CDN区域节点来说,由于中心节点为单播+组播出频道,下级区域节点通过即时串流协定(Real Time Streaming Protocol,RTSP)单播中继方式向中心节点获取频道入向码流。每个流媒体服务器包含频道模块和点播模块。频道模块负责接收入向码流、发送出向码流并生成频道出向SDP,点播模块负责从频道模块接收组播码流并发送给下级中继频道。中心节点点播模块根据中心节点频道生成的SDP接收中心节点频道模块发出的组播码流,因为SDP中只包含o字段一个组播源地址,所以只会指定一个组播源地址,也就是说点播模块只能收到某个流媒体服务器发送的组播码流,如果频道迁移到其他的流媒体服务器上,IGMPV3方式下中心节点播模块就会因为加入组播时指定的组播源与实际发码流的组播源不一致而收不到组播码流,从而导致区域节点的频道接收不到码流而断流。所以,对于非全网组播方式下的区域节点,可以在其中心节点频道模块的入向SDP的私有会话属性字段中描述除o字段描述的编码器地址以外其他可作为合法组播源的编码器地址;另外,在业务给流媒体服务器下发频道创建消息的字段中增加下发组播源IP列表,当为组播出类型频道时,流媒体服务器根据这个列表,在生成的频道出向SDP中插入表示组播源IP的私有会话属性字段。In addition, the method for generating a session description protocol message in this embodiment may be used in a non-full network multicast mode in an IPTV CDN network. In the related art, for a CDN central node in a non-full network multicast mode, the center The manner in which the node receives the channel incoming multicast stream is the same as that of the central node in the whole network multicast mode. Therefore, the channel disconnection problem also exists in the IGMPV3 mode. For a CDN area node in a non-network-wide multicast mode, the lower-area node unicasts to the center through the Real Time Streaming Protocol (RTSP). The node obtains the channel incoming code stream. Each streaming server includes a channel module and an on-demand module. The channel module is responsible for receiving the incoming stream, sending the outgoing stream and generating the channel outgoing SDP, and the on-demand module is responsible for receiving the multicast stream from the channel module and transmitting it to the lower relay channel. The central node on-demand module receives the multicast code stream sent by the central node channel module according to the SDP generated by the central node channel. Because the SDP contains only one multicast source address of the o field, only one multicast source address is specified, that is, on-demand The module can only receive the multicast stream sent by a streaming server. If the channel is migrated to another streaming server, the central node broadcast module in IGMPV3 mode will send the multicast source specified by the multicast source. The multicast source of the code stream is inconsistent and the multicast code stream is not received, so that the channel of the area node does not receive the code stream and is disconnected. Therefore, for a regional node in the non-network-wide multicast mode, the code that can be used as a legal multicast source other than the encoder address described by the o field can be described in the private session attribute field of the incoming SDP of the central node channel module. In addition, the multicast source IP list is added to the field in which the service sends the channel creation message to the streaming media server. When the multicast type channel is used, the streaming server sends the generated channel to the SDP according to the list. Insert a private session attribute field indicating the multicast source IP.
在非全网组播模式下,请参见图3,业务模块在创建频道时给流媒体服务器 下发组播源IP列表,该组播源IP列表包含中心节点所有流媒体服务器的IP,中心节点的频道模块将这些组播源IP以a=x-zmssAltOrig字段的形式写到SDP文件中。中心节点的点播模块读取频道SDP并根据SDP内容中的a=x-zmssAltOrig字段将这些IP均作为源加入组播组,并将收到的组播码流以单播的形式发送给下级区域中心的频道模块。由于将中心节点所有流媒体服务器IP作为了组播码流的源,即使频道在不同流媒体服务器上发生迁移,也不会影响点播模块接收组播码流,从而使区域中心节点能正常接收到频道入向码流。通过该方案可以解决非全网组播方式下,区域节点频道断流问题。In the non-network-wide multicast mode, refer to Figure 3, when the service module creates a channel to the streaming server. A multicast source IP list is sent. The multicast source IP list contains the IP addresses of all the streaming media servers of the central node. The channel module of the central node writes the multicast source IPs into the SDP file in the form of a=x-zmssAltOrig field. The on-demand module of the central node reads the channel SDP and adds these IPs as a source to the multicast group according to the a=x-zmssAltOrig field in the SDP content, and sends the received multicast code stream to the lower area in unicast form. The channel module of the center. Since all the streaming media server IPs of the central node are used as the source of the multicast stream, even if the channels are migrated on different streaming media servers, the on-demand module will not affect the receiving of the multicast stream, so that the regional central node can receive the packets normally. Channel incoming code stream. The solution can solve the problem of channel disconnection of the regional node in the non-network-wide multicast mode.
本实施例提供的会话描述协议消息生成方法,通过调用会话描述协议消息格式,会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;获取第一组播源标识及至少一个第二组播源标识;根据第一组播源标识及至少一个第二组播源标识生成会话描述协议消息;会话描述协议消息用于进行合法组播源的设置。即可以通过包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段的会话描述协议格式,生成同时包括第一组播源标识和至少一个第二组播源标识的会话描述协议消息,根据该包括第一组播源标识和至少一个第二组播源标识的会话描述协议消息可以确定第一组播源标识和至少一个第二组播源标识对应的组播源,使得频道接收组播码流时,可以根据该组播源标识接收第一组播源标识和至少一个第二组播源标识对应的组播源的组播码流,即可以接收不同组播源发出的组播码流,相比于相关技术中的只能接收一个组播源发送的组播码流的方式,提高了频道接收组播码流的流畅度。The session description protocol message generating method provided in this embodiment is configured to invoke a session description protocol message format, where the session description protocol message format includes a first field for recording a first multicast source identifier, and a second multicast source identifier for recording a second field; obtaining a first multicast source identifier and at least one second multicast source identifier; generating a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier; the session description protocol message is used Set the legal multicast source. That is, the first multicast source identifier and the at least one may be generated by including a first field for recording the first multicast source identifier and a session description protocol format for recording the second field of the second multicast source identifier. The session description protocol message that is identified by the second multicast source may determine the first multicast source identifier and the at least one second multicast according to the session description protocol message that includes the first multicast source identifier and the at least one second multicast source identifier. The multicast source corresponding to the source identifier enables the channel to receive the multicast stream of the multicast source corresponding to the first multicast source identifier and the at least one second multicast source identifier according to the multicast source identifier. That is, the multicast code stream sent by different multicast sources can be received, and the fluency of the channel receiving the multicast code stream is improved compared to the manner in which only the multicast code stream sent by one multicast source can be received in the related art.
实施例二:Embodiment 2:
本公开实施例提供一种会话描述协议消息生成装置,请参见图4,包括:会话描述协议消息格式调用模块41,组播源标识获取模块42和会话描述协议消息生成模块43;其中,会话描述协议消息格式调用模块41被配置为调用会话描述协议消息格式,会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;组播源标识获取模块42被配置为获取第一组播源标识及至少一个第二组播源标识;会话描述协议消息生成模块43被配置为根据第一组播源标识及至少一个第二组播源标识生成会话描述协议消息,会话描述协议消息用于进行合法组播源的设置。 The embodiment of the present disclosure provides a session description protocol message generating apparatus. Referring to FIG. 4, the method includes: a session description protocol message format invoking module 41, a multicast source identifier obtaining module 42 and a session description protocol message generating module 43. The protocol message format invoking module 41 is configured to invoke a session description protocol message format, the session description protocol message format includes a first field for recording the first multicast source identifier, and a second field for recording the second multicast source identifier The multicast source identifier obtaining module 42 is configured to obtain the first multicast source identifier and the at least one second multicast source identifier; the session description protocol message generating module 43 is configured to identify the first multicast source identifier and the at least one second The multicast source identifier generates a session description protocol message, and the session description protocol message is used to set a legal multicast source.
当前IPTV组播频道中在进行组播码流接收时,由于SDP中只携带一个组播源地址,在加入组播时,只会根据该组播源地址将该组播源加入组播组,则只接受该组播源对应的组播码流,而无法接收其他组播源对应的组播码流,从而使得频道接收不到组播码流,导致组播码流接收不流畅。本实施例中提供的会话描述协议消息生成装置通过会话描述协议消息格式调用模块41调用包含用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段的会话描述协议消息格式,然后会话描述协议消息生成模块43根据组播源标识获取模块42获取的第一组播源标识及至少一个第二组播源标识,可以生成同时包含第一组播源标识及至少一个第二组播源标识的会话描述协议消息。该包含第一组播源标识及至少一个第二组播源标识和会话描述协议消息,相比于相关技术中的只携带一个组播源地址的会话描述协议消息,可以携带更多的组播源标识信息,以使更多的组播源等加入组播组,提高频道接收组播码流的流畅度。In the current IPTV multicast channel, when the multicast stream is received, the SDP only carries one multicast source address. When the multicast source is added to the IPTV multicast channel, the multicast source is added to the multicast group based on the multicast source address. Only the multicast code stream corresponding to the multicast source is received, and the multicast code stream corresponding to other multicast sources cannot be received, so that the channel does not receive the multicast code stream, and the multicast stream is not received smoothly. The session description protocol message generating apparatus provided in this embodiment invokes, by using the session description protocol message format invoking module 41, a first field, which is used to record the first multicast source identifier, and a second, which is used to record the second multicast source identifier. The session description protocol message format of the field, and then the session description protocol message generation module 43 can generate the first multicast according to the first multicast source identifier and the at least one second multicast source identifier obtained by the multicast source identifier obtaining module 42. The source identifier and the session description protocol message of the at least one second multicast source identifier. The first multicast source identifier and the at least one second multicast source identifier and the session description protocol message may carry more multicasts than the session description protocol message carrying only one multicast source address in the related art. Source identification information, so that more multicast sources can be added to the multicast group to improve the smoothness of the channel receiving the multicast stream.
会话描述协议消息格式调用模块41调用会话描述协议消息格式,可以是调用预设的会话描述协议消息格式,该预设的会话描述协议消息格式可以包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;即该预设的会话描述协议消息格式同时设置有第一字段和第二字段来存储组播源标识信息。该预设的会话描述协议消息格式可以是在相关的原始会话描述协议消息格式的基础上,对该原始会话描述协议消息格式进行修改,原始会话描述协议消息格式可以包括一个用于指示组播源地址的o字段,即在该o字段中存储组播源的地址信息,使得频道根据该o字段中的组播源的地址信息确定合法组播源。则本实施例中,若该第一字段即为o字段,且该第一字段用于存放第一组播源标识;则可以在原始会话描述协议消息的基础上,另外设置第二字段,存放第二组播源标识。即可以预先设置包含用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段的会话描述协议消息格式,在进行合法组播源设置时,根据该会话描述协议消息格式生成会话描述协议消息,进行合法组播源的设置。The session description protocol message format invoking module 41 invokes the session description protocol message format, and may be a preset session description protocol message format, where the preset session description protocol message format may include the first used to record the first multicast source identifier. a field, and a second field for recording the second multicast source identifier; that is, the preset session description protocol message format is configured with the first field and the second field to store the multicast source identification information. The preset session description protocol message format may be: modifying the original session description protocol message format based on the related original session description protocol message format, where the original session description protocol message format may include a source for indicating the multicast source. The o field of the address, that is, the address information of the multicast source is stored in the o field, so that the channel determines the legal multicast source according to the address information of the multicast source in the o field. In this embodiment, if the first field is an o field, and the first field is used to store the first multicast source identifier, the second field may be additionally set on the basis of the original session description protocol message. The second multicast source identifier. That is, a session description protocol message format including a first field for recording the first multicast source identifier and a second field for recording the second multicast source identifier may be preset, and when the legal multicast source setting is performed, according to The session description protocol message format generates a session description protocol message, and sets the legal multicast source.
本实施例中的会话描述协议消息生成模块43还可以被配置为:通过将第一组播源标识写入第一字段,将至少一个第二组播源标识写入第二字段以生成会话描述协议消息;或通过将第一组播源标识写入第一字段,且将第一组播源标识及至少一个第二组播源标识写入第二字段以生成会话描述协议消息。会话描 述协议消息生成模块43生成会话描述协议消息,可以是在生成会话描述协议消息时,可以将第一组播源标识写入第一字段,将第二组播源标识写入第二字段;也可以在第一组播源标识写入第一字段后,将该第一组播源标识及至少一个第二组播源标识再一起写入第二字段;其可以根据需要进行设置,本实施例对其不作限定。The session description protocol message generating module 43 in this embodiment may be further configured to: write the first multicast source identifier into the first field, and write at least one second multicast source identifier into the second field to generate a session description. The protocol message is generated by writing the first multicast source identifier to the first field and writing the first multicast source identifier and the at least one second multicast source identifier to the second field to generate a session description protocol message. Conversational description The protocol message generating module 43 generates a session description protocol message, which may be: when the session description protocol message is generated, the first multicast source identifier may be written into the first field, and the second multicast source identifier may be written into the second field; After the first multicast source identifier is written into the first field, the first multicast source identifier and the at least one second multicast source identifier are written together into the second field. It is not limited.
本实施例中的会话描述协议消息可以包括:入向会话描述协议消息和/或出向会话描述协议消息。即对于IPTV组播系统,该会话描述协议消息可以是指全网组播模式中的CDN中心节点的入向会话描述协议消息,或者全网组播模式中的CDN区域节点的入向会话描述协议消息;该入向会话描述协议消息也可以指非全网组播模式中的中心节点点播模块的入向会话描述协议消息。该出向会话描述协议消息可以是指全网组播模式中的CDN中心节点的出向会话描述协议消息,或者非全网组播模式中的中心节点频道模块的出向会话描述协议消息。The session description protocol message in this embodiment may include: an inbound session description protocol message and/or an outbound session description protocol message. That is, for an IPTV multicast system, the session description protocol message may refer to an inbound session description protocol message of a CDN central node in a full network multicast mode, or an inbound session description protocol of a CDN regional node in a full network multicast mode. The inbound session description protocol message may also refer to an inbound session description protocol message of the central node on demand module in the non-network-wide multicast mode. The outgoing session description protocol message may refer to an outgoing session description protocol message of a CDN central node in a full network multicast mode, or an outgoing session description protocol message of a central node channel module in a non-network-wide multicast mode.
另外,本实施例中组播源标识包括组播源的地址信息。在生成会话描述协议消息时,可以将组播源的地址信息作为组播源的标识,使得后续进行合法组播源设置时,可以根据该组播源的地址信息进行合法组播源的设置;当然,该组播源标识也可以是其他可以标识组播源的信息。In addition, in this embodiment, the multicast source identifier includes address information of the multicast source. When the session description protocol message is generated, the address information of the multicast source can be used as the identifier of the multicast source. When the legal multicast source is set, the legal multicast source can be set according to the address information of the multicast source. Of course, the multicast source identifier may also be other information that can identify the multicast source.
本实施例中的组播源可以包括:编码器或流媒体服务器。当本实施例中的会话描述协议消息为入向会话描述协议消息,且该入向会话描述协议消息为全网组播模式下的中心节点的入向会话描述协议消息,或为非全网组播模式下的中心节点频道模块的入向会话描述协议消息时,该组播源可以为编码器。另外,当该会话描述协议消息为出向会话描述协议消息,且该出向会话描述协议消息为全网组播模式下的中心节点的出向会话描述协议消息,或为非全网组播模式下的中心节点频道模块的出向会话描述协议消息时,该组播源可以为流媒体服务器。The multicast source in this embodiment may include: an encoder or a streaming media server. The session description protocol message in this embodiment is an inbound session description protocol message, and the inbound session description protocol message is an inbound session description protocol message of the central node in the network-wide multicast mode, or is a non-full network group. When the inbound session description protocol message of the central node channel module in the broadcast mode, the multicast source may be an encoder. In addition, when the session description protocol message is an outgoing session description protocol message, and the outgoing session description protocol message is an outbound session description protocol message of the central node in the network-wide multicast mode, or the center in the non-network-wide multicast mode. When the outgoing channel of the node channel module describes the protocol message, the multicast source may be a streaming media server.
本实施例提供的会话描述协议消息生成装置,通过调用会话描述协议消息格式,会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;获取第一组播源标识及至少一个第二组播源标识;根据第一组播源标识及至少一个第二组播源标识生成会话描述协议消息;会话描述协议消息用于进行合法组播源的设置。即可以通过包括用于记 录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段的会话描述协议格式,生成同时包括第一组播源标识和至少一个第二组播源标识的会话描述协议消息,根据该包括第一组播源标识和至少一个第二组播源标识的会话描述协议消息可以确定第一组播源标识和至少一个第二组播源标识对应的组播源,使得频道接收组播码流时,可以根据该组播源标识接收第一组播源标识和至少一个第二组播源标识对应的组播源的组播码流,即可以接收不同组播源发出的组播码流,相比于相关技术中的只能接收一个组播源的组播码流的方式,提高了频道接收组播码流的流畅度。The session description protocol message generating apparatus provided in this embodiment is configured to invoke a session description protocol message format, where the session description protocol message format includes a first field for recording a first multicast source identifier, and a second multicast source identifier for recording a second field; obtaining a first multicast source identifier and at least one second multicast source identifier; generating a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier; the session description protocol message is used Set the legal multicast source. That can be used to include Recording a first field of the first multicast source identifier, and a session description protocol format for recording a second field of the second multicast source identifier, the generating includes the first multicast source identifier and the at least one second multicast source identifier The session description protocol message may be determined according to the session description protocol message including the first multicast source identifier and the at least one second multicast source identifier, and the multicast corresponding to the first multicast source identifier and the at least one second multicast source identifier may be determined. The source, when the channel receives the multicast code stream, may receive the multicast stream of the multicast source corresponding to the first multicast source identifier and the at least one second multicast source identifier according to the multicast source identifier, that is, may receive different groups. The multicast code stream sent by the broadcast source improves the smoothness of the channel receiving the multicast code stream compared to the manner in which only the multicast code stream of one multicast source can be received in the related art.
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一实施例中的方法。Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions arranged to perform the method of any of the above embodiments.
所述计算机可读存储介质可以是暂态计算机可读存储介质,也可以是非暂态计算机可读存储介质。The computer readable storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
本公开实施例还提供了一种电子设备的结构示意图。参见图5,该电子设备包括:The embodiment of the present disclosure further provides a schematic structural diagram of an electronic device. Referring to FIG. 5, the electronic device includes:
至少一个处理器(processor)50,图5中以一个处理器50为例;和存储器(memory)51,还可以包括通信接口(Communications Interface)52和总线53。其中,处理器50、通信接口52、存储器51可以通过总线53完成相互间的通信。通信接口52可以用于信息传输。处理器50可以调用存储器51中的逻辑指令,以执行上述实施例的方法。At least one processor 50, which is exemplified by a processor 50 in FIG. 5; and a memory 51, may further include a communication interface 52 and a bus 53. The processor 50, the communication interface 52, and the memory 51 can complete communication with each other through the bus 53. Communication interface 52 can be used for information transmission. Processor 50 can invoke logic instructions in memory 51 to perform the methods of the above-described embodiments.
此外,上述的存储器51中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。Furthermore, the logic instructions in the memory 51 described above may be implemented in the form of software functional units and sold or used as separate products, and may be stored in a computer readable storage medium.
存储器51作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序,如本公开实施例中的方法对应的程序指令/模块。处理器50通过运行存储在存储器51中的软件程序、指令以及模块,从而执行功能应用以及数据处 理,即实现上述方法实施例中的网络注册方法。The memory 51 is used as a computer readable storage medium for storing software programs, computer executable programs, and program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 50 executes the function application and the data portion by running software programs, instructions, and modules stored in the memory 51. The network registration method in the foregoing method embodiment is implemented.
存储器51可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端设备的使用所创建的数据等。此外,存储器51可以包括高速随机存取存储器,还可以包括非易失性存储器。The memory 51 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the terminal device, and the like. Further, the memory 51 may include a high speed random access memory, and may also include a nonvolatile memory.
本公开实施例的技术方案可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括一个或多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开实施例所述方法的全部或部分步骤。而前述的存储介质可以是非暂态存储介质,包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等多种可以存储程序代码的介质,也可以是暂态存储介质。The technical solution of the embodiments of the present disclosure may be embodied in the form of a software product stored in a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network) The device or the like) performs all or part of the steps of the method described in the embodiments of the present disclosure. The foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like. A medium that can store program code, or a transitory storage medium.
上述本公开实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本公开不限制于任何特定的硬件和软件结合。The modules or steps of the above embodiments of the present disclosure may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be used. The program code executable by the computing device is implemented so that they can be stored in a computer storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some cases, may be different from here. The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Therefore, the present disclosure is not limited to any specific combination of hardware and software.
以上内容是结合实施方式对本公开实施例所作的详细说明,不能认定本公开的实施只局限于这些说明。对于本公开所属技术领域的普通技术人员来说,在不脱离本公开实施例范围的前提下,还可以做出若干简单推演或替换,都应当视为属于本公开的保护范围。The above is a detailed description of the embodiments of the present disclosure in connection with the embodiments, and the implementation of the present disclosure is not limited to the description. It is to be understood by those skilled in the art that the present invention may be construed as a part of the scope of the present disclosure without departing from the scope of the embodiments of the present disclosure.
工业实用性Industrial applicability
本申请实施例提供的会话描述协议消息生成方法和装置,提高了频道接收组播码流的流畅度。 The method and device for generating a session description protocol message provided by the embodiment of the present application improves the fluency of the channel receiving the multicast code stream.

Claims (11)

  1. 一种会话描述协议消息生成方法,包括:A session description protocol message generation method includes:
    调用会话描述协议消息格式,所述会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;Invoking a session description protocol message format, where the session description protocol message format includes a first field for recording a first multicast source identifier, and a second field for recording a second multicast source identifier;
    获取所述第一组播源标识及至少一个所述第二组播源标识;Obtaining the first multicast source identifier and the at least one second multicast source identifier;
    根据所述第一组播源标识及至少一个所述第二组播源标识生成会话描述协议消息,所述会话描述协议消息用于进行合法组播源的设置。And generating a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier, where the session description protocol message is used to perform setting of a legal multicast source.
  2. 如权利要求1所述的方法,其中,根据所述第一组播源标识及至少一个所述第二组播源标识生成会话描述协议消息,包括:The method of claim 1, wherein the generating a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier comprises:
    通过将所述第一组播源标识写入所述第一字段,将至少一个所述第二组播源标识写入所述第二字段以生成所述会话描述协议消息;或Writing at least one of the second multicast source identifiers into the second field to generate the session description protocol message by writing the first multicast source identifier to the first field; or
    通过将所述第一组播源标识写入所述第一字段,且将所述第一组播源标识及至少一个所述第二组播源标识写入所述第二字段以生成所述会话描述协议消息。Writing the first multicast source identifier into the first field, and writing the first multicast source identifier and the at least one second multicast source identifier into the second field to generate the Session description protocol message.
  3. 如权利要求1或2所述的方法,其中,所述会话描述协议消息包括:入向会话描述协议消息和/或出向会话描述协议消息。The method of claim 1 or 2, wherein the session description protocol message comprises an inbound session description protocol message and/or an outbound session description protocol message.
  4. 如权利要求3所述的方法,其中,所述组播源标识包括组播源的地址信息。The method of claim 3, wherein the multicast source identifier comprises address information of a multicast source.
  5. 如权利要求4所述的方法,其中,所述组播源包括:编码器或流媒体服务器。The method of claim 4 wherein said multicast source comprises: an encoder or a streaming server.
  6. 一种会话描述协议消息生成装置,包括:A session description protocol message generating apparatus includes:
    会话描述协议消息格式调用模块,被配置为调用会话描述协议消息格式, 所述会话描述协议消息格式包括用于记录第一组播源标识的第一字段,以及用于记录第二组播源标识的第二字段;The session description protocol message format invoking module is configured to invoke a session description protocol message format, The session description protocol message format includes a first field for recording a first multicast source identifier, and a second field for recording a second multicast source identifier;
    组播源标识获取模块,被配置为获取所述第一组播源标识及至少一个所述第二组播源标识;The multicast source identifier obtaining module is configured to acquire the first multicast source identifier and the at least one second multicast source identifier.
    会话描述协议消息生成模块,被配置为根据所述第一组播源标识及至少一个所述第二组播源标识生成会话描述协议消息,所述会话描述协议消息用于进行合法组播源的设置。a session description protocol message generating module, configured to generate a session description protocol message according to the first multicast source identifier and the at least one second multicast source identifier, where the session description protocol message is used to perform a legal multicast source Settings.
  7. 如权利要求6所述的装置,其中,所述会话描述协议消息生成模块,还被配置为:The apparatus of claim 6, wherein the session description protocol message generating module is further configured to:
    通过将所述第一组播源标识写入所述第一字段,将至少一个所述第二组播源标识写入所述第二字段以生成会话描述协议消息;或Writing at least one of the second multicast source identifiers into the second field to generate a session description protocol message by writing the first multicast source identifier to the first field; or
    通过将所述第一组播源标识写入所述第一字段,且将所述第一组播源标识及至少一个所述第二组播源标识写入所述第二字段以生成会话描述协议消息。Writing the first multicast source identifier into the first field, and writing the first multicast source identifier and the at least one second multicast source identifier into the second field to generate a session description Agreement message.
  8. 如权利要求6或7所述的装置,其中,所述会话描述协议消息包括:入向会话描述协议消息和/或出向会话描述协议消息。The apparatus of claim 6 or 7, wherein the session description protocol message comprises an inbound session description protocol message and/or an outbound session description protocol message.
  9. 如权利要求8所述的装置,其中,所述组播源标识包括组播源的地址信息。The apparatus of claim 8, wherein the multicast source identifier comprises address information of a multicast source.
  10. 如权利要求9所述的装置,其中,所述组播源包括:编码器或流媒体服务器。The apparatus of claim 9, wherein the multicast source comprises: an encoder or a streaming server.
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行权利要求1-5中任一项的方法。 A computer readable storage medium storing computer executable instructions arranged to perform the method of any of claims 1-5.
PCT/CN2017/100688 2016-10-08 2017-09-06 Method and apparatus for generating session description protocol message WO2018064925A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610882592.3 2016-10-08
CN201610882592.3A CN107920045A (en) 2016-10-08 2016-10-08 A kind of Session Description Protocol method for generating message and device

Publications (1)

Publication Number Publication Date
WO2018064925A1 true WO2018064925A1 (en) 2018-04-12

Family

ID=61831612

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/100688 WO2018064925A1 (en) 2016-10-08 2017-09-06 Method and apparatus for generating session description protocol message

Country Status (2)

Country Link
CN (1) CN107920045A (en)
WO (1) WO2018064925A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101116306A (en) * 2005-02-08 2008-01-30 艾利森电话股份有限公司 On-demand multi-channel streaming session over packet-switched networks
CN101193256A (en) * 2006-11-23 2008-06-04 华为技术有限公司 Method and device for getting media content by using uniform EPG
CN101370004A (en) * 2007-08-16 2009-02-18 华为技术有限公司 Distribution method and multicast apparatus for multicast conversation security policy
CN101453349A (en) * 2007-12-03 2009-06-10 华为技术有限公司 Method and system for processing real-time stream media protocol
WO2009108176A1 (en) * 2008-02-29 2009-09-03 Thomson Licensing Methods and apparatuses for providing load balanced signal distribution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101116306A (en) * 2005-02-08 2008-01-30 艾利森电话股份有限公司 On-demand multi-channel streaming session over packet-switched networks
CN101193256A (en) * 2006-11-23 2008-06-04 华为技术有限公司 Method and device for getting media content by using uniform EPG
CN101370004A (en) * 2007-08-16 2009-02-18 华为技术有限公司 Distribution method and multicast apparatus for multicast conversation security policy
CN101453349A (en) * 2007-12-03 2009-06-10 华为技术有限公司 Method and system for processing real-time stream media protocol
WO2009108176A1 (en) * 2008-02-29 2009-09-03 Thomson Licensing Methods and apparatuses for providing load balanced signal distribution

Also Published As

Publication number Publication date
CN107920045A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
CN109218654B (en) Video networking conference control method and system
CN108965224B (en) Video-on-demand method and device
CN108880851B (en) Configuration updating method and interaction system
CN109120879B (en) Video conference processing method and system
US20110013630A1 (en) Light Host Management Protocol on Multicast Capable Router
CN108965226B (en) Data acquisition method and device based on video network
CN110809026B (en) File processing method and device, electronic equipment and storage medium
WO2018121584A1 (en) Data stream transmission method, apparatus, related devices and storage medium
CN111327868B (en) Method, terminal, server, equipment and medium for setting conference speaking party roles
CN110460469B (en) System upgrading method and device and storage medium
CN109451001B (en) Communication method and system
CN109005378B (en) Video conference processing method and system
CN109286775B (en) Multi-person conference control method and system
CN110022286B (en) Method and device for requesting multimedia program
CN110708493B (en) Method and device for acquiring permission of participating in video networking conference
CN110266577B (en) Tunnel establishment method and video networking system
CN110730500B (en) Terminal network access method, server, terminal, electronic equipment and storage medium
CN112203149A (en) Video networking software updating method and device based on domestic password
CN109768964B (en) Audio and video display method and device
CN108965219B (en) Data processing method and device based on video network
CN101309154B (en) Datagram sending method, sending apparatus and transmission system
WO2018064925A1 (en) Method and apparatus for generating session description protocol message
US10587569B2 (en) Streaming service providing method and device
CN110809023B (en) Communication connection establishing method and device based on video networking
CN110493555B (en) Request processing method, user terminal, core server, device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17857806

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17857806

Country of ref document: EP

Kind code of ref document: A1