WO2023169202A1 - 视频流数据获取方法、装置、电子设备和计算机可读介质 - Google Patents

视频流数据获取方法、装置、电子设备和计算机可读介质 Download PDF

Info

Publication number
WO2023169202A1
WO2023169202A1 PCT/CN2023/077326 CN2023077326W WO2023169202A1 WO 2023169202 A1 WO2023169202 A1 WO 2023169202A1 CN 2023077326 W CN2023077326 W CN 2023077326W WO 2023169202 A1 WO2023169202 A1 WO 2023169202A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
data packet
computer room
streaming data
streaming
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2023/077326
Other languages
English (en)
French (fr)
Inventor
郑红阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to US18/845,253 priority Critical patent/US12581143B2/en
Priority to KR1020247029774A priority patent/KR20240139607A/ko
Priority to EP23765780.4A priority patent/EP4492800A4/en
Priority to JP2024551962A priority patent/JP7717988B2/ja
Publication of WO2023169202A1 publication Critical patent/WO2023169202A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/236Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
    • H04N21/23605Creation or processing of packetized elementary streams [PES]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/222Secondary servers, e.g. proxy server, cable television Head-end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2381Adapting the multiplex stream to a specific network, e.g. an Internet Protocol [IP] network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64784Data processing by the network

Definitions

  • Embodiments of the present disclosure relate to the field of computer technology, and specifically to video stream data acquisition methods, devices, electronic devices and computer-readable media.
  • connection migration When a user watches a video stream through a mobile terminal, if the network connected to the mobile terminal switches between the mobile network and the wireless network, the video stream will be interrupted during the network switching process. Therefore, it is necessary to implement imperceptible handover through connection migration when a network handover occurs.
  • the usually adopted method is to implement connection migration by adding a layer-7 load balancing gateway and a layer-4 gateway between the mobile terminal and the streaming service cluster.
  • Some embodiments of the present disclosure provide video stream data acquisition methods, devices, electronic devices, and computer-readable media to solve the technical problems mentioned in the background art section above.
  • some embodiments of the present disclosure provide a video stream data acquisition method, The method includes: in response to receiving the streaming data packet sent by the target terminal, determining whether the computer room identification of the communication equipment room that receives the streaming data packet is the same as the target computer room identification included in the connection identification in the streaming data packet, wherein, The above-mentioned streaming data packet is generated by the above-mentioned target terminal when playing the above-mentioned video stream, and the above-mentioned target computer room identification is the computer room identification of the communication computer room that receives the first streaming data packet generated by the above-mentioned target terminal when playing the above-mentioned video stream; in response to It is determined that the above target computer room identification is different from the computer room identification of the communication computer room that received the above-mentioned streaming data packet, and the above-mentioned streaming data packet is forwarded to the target communication computer room corresponding to the above-mentioned target computer room identification; and the video stream data is obtained through the above-menti
  • some embodiments of the present disclosure provide a device for obtaining video stream data.
  • the device includes: a determining unit configured to, in response to receiving a streaming data packet sent by a target terminal, determine whether to receive the streaming data packet. Whether the computer room identification of the communication computer room is the same as the target computer room identification included in the connection identification in the above-mentioned streaming data packet, wherein the above-mentioned streaming data packet is generated by the above-mentioned target terminal when playing the video stream, and the above-mentioned target computer room identification is received by the above-mentioned streaming data packet.
  • the above-mentioned obtaining unit includes a first determining sub-unit and a first obtaining sub-unit.
  • the first determination sub-unit is configured to determine the target streaming service instance matching the above-mentioned streaming data packet in the target protocol conversion server in the above-mentioned target communication room;
  • the second determination sub-unit is configured to utilize the above-mentioned target Pull streaming service instance to obtain video streaming data from the edge node of the content distribution network.
  • the above-mentioned target communication equipment room is determined through the following steps: when the above-mentioned target terminal generates the first pull data packet during playing the above-mentioned video stream, the communication equipment room corresponding to the connected network is determined as the target communication equipment room.
  • the above-mentioned target protocol conversion server and target streaming service instance are determined through the following steps: in response to determining that the above-mentioned target communication computer room receives the above-mentioned first streaming data packet, select from the protocol conversion server cluster in the above-mentioned target communication computer room.
  • a protocol conversion server serves as the target protocol conversion server; a single unit in the above target protocol conversion server is used.
  • the machine load service allocates a streaming service instance to the above-mentioned first streaming data packet, and uses the above streaming service instance as a target streaming service instance.
  • the above-mentioned first determination sub-unit includes: a second acquisition sub-unit, a selection sub-unit, a first determination sub-unit and a second determination sub-unit.
  • the second acquisition sub-unit is configured to acquire the mapping table from the cache server of the protocol conversion server cluster in the target communication room, wherein the mapping table includes mapping information, and the mapping information includes: connection identification, protocol conversion Server identification and streaming service instance identification;
  • the selection subunit is configured to select from the above-mentioned mapping table the mapping information that includes the same connection identifier as the connection identifier in the above-mentioned streaming data packet as the target mapping information;
  • the first determiner The unit is configured to determine the protocol conversion server corresponding to the protocol conversion server identification in the target mapping information as the target protocol conversion server;
  • the first determination subunit is configured to pull the target protocol conversion server from the target protocol conversion server to the target mapping information.
  • the streaming service instance corresponding to the streaming service instance identifier is determined to be the target streaming service instance that matches the above streaming data packet
  • mapping information in the above mapping table is determined through the following steps: combining the connection identifier in the first streaming data packet, the protocol conversion server identifier of the target protocol conversion server, and the streaming service of the target streaming service instance.
  • the instance identifier is determined as mapping information; the above mapping information is recorded in the mapping table in the above cache server.
  • the above forwarding unit includes: a first sending subunit, a distribution subunit and a forwarding subunit.
  • the first sending sub-unit is configured to use the target internal gateway protocol to send the above-mentioned streaming data packet to any protocol conversion server in the above-mentioned communication room;
  • the first distribution sub-unit is configured to use any of the above-mentioned protocol conversion
  • the single-machine load service in the server allocates a streaming service instance for the above-mentioned streaming data packet;
  • the forwarding subunit is configured to respond to determining that the above-mentioned target computer room identification is different from the above-mentioned communication computer room identification, and utilizes the above-mentioned streaming service instance to transfer the above-mentioned
  • the streaming data packet is forwarded to the target communication computer room corresponding to the above target computer room identification.
  • the above device also includes: a sending unit, a distribution unit and a video stream acquisition unit.
  • the sending unit is configured to use the target internal gateway protocol to send the above-mentioned streaming data packet to any protocol conversion server in the above-mentioned communication room;
  • the distribution unit is configured to use the single-machine load service in any of the above-mentioned protocol conversion servers.
  • Pull streaming data for the above The package distributes the streaming service instance;
  • the video stream acquisition unit is configured to respond to determining that the target computer room identifier is the same as the computer room identifier of the communication computer room, and obtain the video stream data through the communication computer room by using the streaming service instance.
  • some embodiments of the present disclosure provide an electronic device, including: at least one processor; a storage device on which at least one program is stored, and when the at least one program is executed by at least one processor, at least one process
  • the device implements the method described in any implementation manner of the first aspect above.
  • some embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.
  • Figure 1 is a schematic diagram of an application scenario of the video stream data acquisition method according to some embodiments of the present disclosure
  • Figure 2 is a flow chart of some embodiments of a video stream data acquisition method according to the present disclosure
  • Figure 3 is a flow chart of other embodiments of a video stream data acquisition method according to the present disclosure.
  • Figure 4 is a schematic diagram of determining a target streaming service instance in some embodiments of a video stream data acquisition method according to the present disclosure
  • Figure 5 is a schematic structural diagram of some embodiments of the video stream data acquisition device of the present disclosure.
  • Figure 6 is a schematic structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure.
  • some embodiments of the present disclosure propose methods and devices for obtaining video stream data, which can avoid the delay of pulling streaming data packets to a certain extent. At the same time, pulling streaming data packets does not need to be unpacked multiple times. , reducing the load on the server.
  • Figure 1 is a schematic diagram of an application scenario of the video stream data acquisition method according to some embodiments of the present disclosure.
  • the computing device 101 can determine the computer room identification 104 of the communication equipment room that received the streaming data packet 103 and the streaming data packet. Whether the target computer room identification 105 included in the connection identification in 103 is the same, wherein the above-mentioned streaming data packet 103 is generated when the above-mentioned target terminal 102 plays the video stream, and the above-mentioned target computer room identification 105 is received when the above-mentioned target terminal 102 plays the above-mentioned video stream. The identification of the communication equipment room where the first streaming data packet is generated during video streaming.
  • the computing device 101 may, in response to determining that the target computer room identification 105 is different from the computer room identification 104 of the communication computer room that received the streaming data packet 103, forward the streaming data packet 103 to the target communication corresponding to the target computer room identification 105.
  • Computer room 106 the computing device 101 can obtain the video stream data 107 through the target communication room 106 described above.
  • the above-mentioned computing device 101 may be hardware or software.
  • the computing device When the computing device is hardware, it can be implemented as a distributed cluster composed of multiple servers or terminal devices, or it can be implemented as a single server or a single terminal device.
  • the computing device When the computing device is embodied as software, it can be installed in the hardware device listed above. It may be implemented, for example, as multiple software or software modules for providing distributed services, or as a single software or software module. There are no specific limitations here.
  • the video stream data acquisition method includes the following steps:
  • Step 201 In response to receiving the streaming data packet sent by the target terminal, determine whether the computer room identification of the communication equipment room that received the streaming data packet is the same as the target computer room identification included in the connection identification in the streaming data packet.
  • the execution subject of the video stream data acquisition method may respond to receiving the streaming data packet sent by the target terminal and determine the location of the communication equipment room that receives the streaming data packet. Whether the computer room ID is the same as the target computer room ID included in the connection ID in the above pull data packet.
  • the above-mentioned streaming data packet may be generated by the above-mentioned target terminal when playing the video stream
  • the above-mentioned target computer room identification may be The computer room identification of the communication computer room that receives the first streaming data packet generated by the above-mentioned target terminal when playing the above-mentioned video stream.
  • the above video stream may be a live video stream or an on-demand video stream.
  • the above-mentioned streaming data packet may be a QUIC (Quick UDP Internet Connection, Quick UDP (User Datagram Protocol, User Datagram Protocol) Internet Connection) data packet.
  • the above-mentioned target terminal may be a mobile terminal, such as a mobile phone, a tablet computer, etc.
  • the communication equipment room that receives the above-mentioned streaming data packet may be the communication equipment room corresponding to the network connected when the above-mentioned target terminal sends the above-mentioned pulling data packet.
  • the network connected to it may be a mobile network or a wireless network.
  • the connected network can also be switched between a mobile network and a wireless network.
  • the above-mentioned target terminal may use the communication equipment room corresponding to the currently connected network as the target communication equipment room when sending the above-mentioned first streaming data packet. And write the communication equipment room identification of the target communication equipment room as the target communication equipment room identification into the connection identification of the above-mentioned first streaming data packet. And during the process of playing the above video stream, the above target communication equipment room identifier is written into the connection identifier of the subsequently generated streaming data packet.
  • the computer room identification of the communication computer room that pulls the streaming data packet is the same as the target computer room identification included in the connection identification in the streaming data packet, it means that the communication computer room that receives the streaming data packet is the same as the communication computer room that received the first streaming data packet.
  • the communication equipment room is the same communication equipment room. Therefore, there is no need to perform connection migration, and the video stream data can be obtained directly through the communication equipment room that receives the above-mentioned streaming data packets.
  • the communication equipment room is a different communication equipment room, that is, during the process of playing the live video stream of the above-mentioned target terminal, the connected network switches between the mobile network and the wireless network. Therefore, in order to ensure that the above-mentioned target terminal can continue to play the above-mentioned video stream smoothly when a network switch occurs, the above-mentioned streaming data packet needs to be forwarded to the above-mentioned target communication equipment room through a connection back to the source operation.
  • the target computer room identification included in the connection identifier in the streaming data packet it can be determined by the target computer room identification included in the connection identifier in the streaming data packet whether the communication computer room currently receiving the streaming data packet is the target communication computer room.
  • fast routing of streaming data packets is achieved.
  • the communication equipment room that receives the streaming data packet may be the Changchun Mobile equipment room.
  • the above target communication equipment room can be determined through the following steps:
  • the communication equipment room corresponding to the connected network is determined as the target communication equipment room.
  • the communication equipment room corresponding to the network to which the target terminal is connected when the first streaming data packet is generated can be determined as the target communication equipment room. Furthermore, when subsequent network switching occurs, fast routing of streaming data packets is achieved.
  • Step 202 In response to determining that the target computer room identifier is different from the computer room identifier of the communication computer room that received the streaming data packet, forward the streaming data packet to the target communications computer room corresponding to the target computer room identifier.
  • the execution subject may, in response to determining that the target computer room identifier is different from the computer room identifier of the communication computer room that received the streaming data packet, forward the streaming data packet to the target communication computer room corresponding to the target computer room identifier.
  • Step 203 Obtain video stream data through the target communication equipment room.
  • the execution subject may obtain the video stream data returned by the target communication equipment room after forwarding the streaming data packet to the target communication equipment room.
  • the above execution subject may also perform the following steps:
  • the first step is to use the target internal gateway protocol to send the above-mentioned streaming data packet to any protocol conversion server in the above-mentioned communication equipment room.
  • the above-mentioned target interior gateway protocol may be OSPF (Open Shortest Path First).
  • the above protocol conversion server can be any QUIC server in the QUIC server cluster.
  • the above-mentioned QUIC server can convert the QUIC protocol into the HTTP (Hyper Text Transfer Protocol) protocol and then obtain the video stream data from the edge node of the content distribution network.
  • the target interior gateway protocol can be used to send the streaming data packet to any protocol conversion server in the communication equipment room through at least one shortest routing path, thereby speeding up the routing speed of the streaming data packet.
  • the second step is to use the stand-alone load service in any of the above-mentioned protocol conversion servers to allocate a streaming service instance to the above-mentioned streaming data packet.
  • the above-mentioned single-machine load service may be a load service at the operating system kernel level. For example, nftable.
  • the above-mentioned streaming service instance can first convert the above-mentioned streaming data packet into an HTTP protocol data packet, and then obtain the video stream data from the CDN (Content Delivery Network, content distribution network) server in the above-mentioned communication room.
  • CDN Content Delivery Network, content distribution network
  • the delay of pulling streaming data packets can be avoided to a certain extent, and at the same time, the pulling of streaming data packets does not need to go through multiple Unpacking reduces the load on the server.
  • the reason for the delay in streaming data packets and the heavy burden on the server is that a seven-layer gateway and a four-layer gateway are added between the mobile terminal and the streaming business cluster.
  • the video stream data acquisition method in some embodiments of the present disclosure adds a byte to the connection identifier in the streaming data packet to save the target computer room information, and directly forwards the data packet back to the source based on the target computer room information.
  • the process 300 of the video stream data acquisition method includes the following steps:
  • Step 301 In response to receiving the streaming data packet sent by the target terminal, determine whether the computer room identification of the communication equipment room that received the streaming data packet is the same as the target computer room identification included in the connection identification in the streaming data packet.
  • step 301 the specific implementation of step 301 and the technical effects brought by it can be referred to step 201 in those embodiments corresponding to Figure 2, which will not be described again here.
  • Step 302 Use the target internal gateway protocol to send the streaming data packet to any protocol conversion server in the communication equipment room.
  • the execution body of the video stream data acquisition method may use the target interior gateway protocol to send the streaming data packet to any protocol conversion server in the communication room.
  • the above target interior gateway protocol may be OSPF.
  • the above protocol conversion server can be any QUIC server in the QUIC server cluster.
  • the above-mentioned QUIC server can convert the QUIC protocol into the HTTP protocol and then obtain the video stream data from the edge node of the content distribution network.
  • the target interior gateway protocol can be used to send the streaming data packet to any protocol conversion server in the communication equipment room through at least one shortest routing path, thereby speeding up the routing speed of the streaming data packet.
  • Step 303 Use the stand-alone load service in any protocol conversion server to allocate a streaming service instance for the streaming data packet.
  • the above-mentioned execution subject can use the stand-alone load service in any of the above-mentioned protocol conversion servers to allocate a streaming service instance to the above-mentioned streaming data packet.
  • the above-mentioned single-machine load service may be a load service at the operating system kernel level. For example, nftable. As a result, the pressure on the server can be reduced through load services at the operating system kernel level.
  • Step 304 In response to determining that the target computer room identifier is different from the computer room identifier of the communications computer room, use the streaming service instance to forward the streaming data packet to the target communications computer room corresponding to the target computer room identifier.
  • the above-mentioned streaming service instance in response to determining that the target computer room identifier is different from the computer room identifier of the communication computer room, the above-mentioned streaming service instance may be used to forward the above-mentioned streaming data packet to the target communication computer room corresponding to the above-mentioned target computer room identifier. .
  • Step 305 Determine the target streaming service instance in the target protocol conversion server in the target communication equipment room that matches the streaming data packet.
  • the execution subject may determine the target streaming service instance in the target protocol conversion server in the target communication room that matches the streaming data packet.
  • the above-mentioned target communication computer room may receive the above-mentioned streaming data packet generated by the above-mentioned target terminal during the process of playing the above-mentioned video stream.
  • the protocol conversion server identifier of the protocol conversion server that pulls the first streaming data packet, and the streaming service instance identification of the streaming service instance allocated in the above-mentioned protocol conversion server for the above-mentioned first streaming data packet are sent to the above-mentioned target terminal. It is for the above target terminal to write the above protocol conversion server identifier and the above streaming service instance identifier into the subsequently generated streaming data packet. Therefore, the execution subject can determine the target protocol conversion server and the target streaming service instance in the target protocol conversion server based on the protocol conversion server identifier and the streaming service instance identifier included in the streaming data packet.
  • the above-mentioned execution subject determines the target streaming service instance in the target protocol conversion server in the above-mentioned target communication room that matches the above-mentioned streaming data packet, which may include the following steps:
  • the first step is to obtain the mapping table from the cache server of the protocol conversion server cluster in the above target communication room.
  • the above-mentioned mapping table includes mapping information, and the above-mentioned mapping information includes: connection identification, protocol conversion server identification and streaming service instance identification.
  • the data stored by the cache server may be data shared by the protocol conversion server cluster.
  • the above cache server may be a Redis server.
  • the mapping information containing the same connection identifier as the connection identifier in the above-mentioned streaming data packet is selected from the above-mentioned mapping table as the target mapping information.
  • the third step is to determine the protocol conversion server corresponding to the protocol conversion server identifier in the above target mapping information as the target protocol conversion server.
  • the fourth step is to determine the streaming service instance in the target protocol conversion server corresponding to the streaming service instance identifier in the target mapping information as the target streaming service instance that matches the streaming data packet.
  • mapping information in the above mapping table is determined through the following steps:
  • connection identifier in the first streaming data packet, the protocol conversion server identifier of the target protocol conversion server, and the streaming service instance identifier of the target streaming service instance are determined as mapping information.
  • the above mapping information is recorded in the mapping table in the above cache server.
  • the above target protocol conversion server and target streaming service instance can be determined through the following steps:
  • the first step in response to determining that the above-mentioned target communication room has received the above-mentioned first streaming data package, select a protocol conversion server as the target protocol conversion server from the protocol conversion server cluster in the above-mentioned target communication equipment room.
  • the target protocol conversion server may be randomly selected from the protocol conversion server cluster.
  • the second step is to use the stand-alone load service in the target protocol conversion server to allocate a streaming service instance to the first streaming data packet, and use the streaming service instance as a target streaming service instance.
  • a protocol conversion server can be selected as a target from the protocol conversion server cluster 403 in the target communication computer room 401.
  • Protocol conversion server 404 Then, the stand-alone load service in the target protocol conversion server 404 can be used to allocate the streaming service instance 405 to the first streaming data packet 402, and the streaming service instance can be used as the target streaming service instance.
  • Step 306 Use the target streaming service instance to obtain video streaming data from the edge node of the content distribution network.
  • the execution subject may first use the target streaming service instance to convert the streaming data packet into an HTTP protocol data packet. Then, the video stream data is obtained from the edge node of the content distribution network in the above-mentioned communication equipment room.
  • the above execution subject may send the above video stream data to the above target terminal.
  • the process 300 of the video stream data acquisition method in some embodiments corresponding to Figure 3 embodies forwarding the streaming data packet and obtaining the video. Detailed steps for streaming data. Therefore, the solutions described in these embodiments can use the target interior gateway protocol and a single-machine load server to speed up the routing of streaming data packets and reduce the pressure on the server.
  • the present disclosure provides some embodiments of a video stream data acquisition device. These device embodiments correspond to those method embodiments shown in Figure 2.
  • the device Specifically, it can be applied to various electronic devices.
  • the video stream data acquisition device 500 in some embodiments includes: determining Unit 501, forwarding unit 502 and obtaining unit 503.
  • the determining unit 501 is configured to respond to receiving the streaming data packet sent by the target terminal, determine the computer room identification of the communication equipment room that received the streaming data packet and the target computer room identification included in the connection identification in the streaming data packet. Are they the same?
  • the above-mentioned streaming data packet is generated by the above-mentioned target terminal when playing the above-mentioned video stream
  • the above-mentioned target computer room identification is the communication equipment room that receives the first streaming data packet generated by the above-mentioned target terminal when playing the above-mentioned video stream.
  • the forwarding unit 502 is configured to, in response to determining that the target computer room identification is different from the computer room identification of the communication computer room that received the streaming data packet, forward the streaming data packet to the target communication computer room corresponding to the target computer room identification.
  • Obtaining unit 503 is configured to obtain video stream data through the above-mentioned target communication equipment room.
  • the above-mentioned obtaining unit 503 includes a first determining sub-unit and a first obtaining sub-unit.
  • the first determination sub-unit is configured to determine the target streaming service instance matching the above-mentioned streaming data packet in the target protocol conversion server in the above-mentioned target communication room;
  • the second determination sub-unit is configured to utilize the above-mentioned target Pull streaming service instance to obtain video streaming data from the edge node of the content distribution network.
  • the above-mentioned target communication equipment room is determined through the following steps: when the above-mentioned target terminal generates the first pull data packet during the process of playing the above-mentioned video stream, the communication equipment room corresponding to the connected network Determine it as the target communications equipment room.
  • the target protocol conversion server and the target streaming service instance are determined through the following steps: in response to determining that the target communication room receives the first streaming data packet, from the target communication room Select a protocol conversion server from the protocol conversion server cluster as the target protocol conversion server; use the stand-alone load service in the target protocol conversion server to allocate the streaming service instance for the first streaming data packet, and use the above streaming service instance as Target streaming service instance.
  • the above-mentioned first determination sub-unit includes: a second acquisition sub-unit, a selection sub-unit, a first determination sub-unit and a second determination sub-unit.
  • the second acquisition sub-unit is configured to acquire the mapping table from the cache server of the protocol conversion server cluster in the target communication room, wherein the mapping table includes mapping information, and the mapping information includes: connection identification, protocol conversion Server ID and streaming service instance ID;
  • the selection subunit is configured to select the included connection from the above mapping table.
  • the mapping information with the same connection identifier as the connection identifier in the above-mentioned pull data packet is used as the target mapping information;
  • the first determination subunit is configured to determine the protocol conversion server corresponding to the protocol conversion server identification in the above-mentioned target mapping information as the target protocol conversion Server;
  • the first determination subunit is configured to determine the streaming service instance in the target protocol conversion server corresponding to the streaming service instance identifier in the target mapping information as the target streaming data packet that matches the streaming data packet. Service instance.
  • mapping information in the above mapping table is determined through the following steps: combining the connection identifier in the first pull data packet, the protocol conversion server identification of the target protocol conversion server, and the target pull data packet.
  • the streaming service instance identifier of the streaming service instance is determined as mapping information; the mapping information is recorded in the mapping table in the cache server.
  • the above-mentioned forwarding unit 502 includes: a first sending subunit, an allocation subunit, and a forwarding subunit.
  • the first sending sub-unit is configured to use the target internal gateway protocol to send the above-mentioned streaming data packet to any protocol conversion server in the above-mentioned communication room;
  • the first distribution sub-unit is configured to use any of the above-mentioned protocol conversion
  • the single-machine load service in the server allocates a streaming service instance for the above-mentioned streaming data packet;
  • the forwarding subunit is configured to respond to determining that the above-mentioned target computer room identification is different from the above-mentioned communication computer room identification, and utilizes the above-mentioned streaming service instance to transfer the above-mentioned
  • the streaming data packet is forwarded to the target communication computer room corresponding to the above target computer room identification.
  • the above-mentioned device 500 further includes: a sending unit, a distribution unit, and a video stream acquisition unit.
  • the sending unit is configured to use the target internal gateway protocol to send the above-mentioned streaming data packet to any protocol conversion server in the above-mentioned communication room;
  • the distribution unit is configured to use the single-machine load service in any of the above-mentioned protocol conversion servers.
  • the video stream acquisition unit is configured to respond to determining that the above-mentioned target computer room identification is the same as the computer room identification of the above-mentioned communication computer room, using the above-mentioned streaming service instance to obtain the video stream through the above-mentioned communication computer room data.
  • the units recorded in the device 500 correspond to various steps in the method described with reference to FIG. 2 . Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 500 and the units included therein, and will not be described again here.
  • FIG. 6 a schematic structural diagram of an electronic device 600 suitable for implementing some embodiments of the present disclosure is shown.
  • the electronic device shown in FIG. 6 is only an example and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 600 may include a processing device (eg, central processing unit, graphics processor, etc.) 601, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 602 or from a storage device 608.
  • the program in the memory (RAM) 603 executes various appropriate actions and processes.
  • various programs and data required for the operation of the electronic device 600 are also stored.
  • the processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604.
  • An input/output (I/O) interface 605 is also connected to bus 604.
  • I/O interface 605 input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 607 such as a computer; and a communication device 609.
  • Communication device 609 may allow electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 6 illustrates electronic device 600 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided. Each block shown in Figure 6 may represent one device, or may represent multiple devices as needed.
  • the processes described above with reference to the flowcharts may be implemented as a computer software program.
  • some embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602.
  • the processing device 601 the above-described functions defined in the methods of some embodiments of the present disclosure are performed.
  • Computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • Computer-readable storage media may be, for example, but not limited to, electronic, magnetic, Optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection having at least one conductor, a portable computer disk, a hard disk, random access memory (RAM), read only memory (ROM), erasable programmable memory Read memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
  • the client and server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium.
  • Communications e.g., communications network
  • communications networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or developed in the future network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to receiving the pull data packet sent by the target terminal, determines to receive the pull flow. Whether the computer room identification of the communication computer room of the data packet is the same as the target computer room identification included in the connection identification in the above-mentioned streaming data packet, wherein the above-mentioned streaming data packet is the above-mentioned target The above-mentioned target computer room identification is generated by the terminal when playing the video stream.
  • the above-mentioned target computer room identification is the computer room identification of the communication computer room that receives the first streaming data packet generated by the above-mentioned target terminal when playing the above-mentioned video stream; in response to determining the above-mentioned target computer room identification and the received If the communication equipment room pulling the streaming data packet has a different computer room ID, the streaming data packet is forwarded to the target communication equipment room corresponding to the target equipment room identification; the video stream data is obtained through the target communication equipment room.
  • Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, or a combination thereof, Also included are conventional procedural programming languages—such as the "C" language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider). connected via the Internet).
  • LAN local area network
  • WAN wide area network
  • Internet service provider such as an Internet service provider
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains at least one operable function for implementing the specified logical function.
  • Execute instructions may also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • the units described in some embodiments of the present disclosure may be implemented in software or hardware.
  • the described unit may also be provided in a processor.
  • a processor includes a determination unit, a forwarding unit and an acquisition unit.
  • the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • the acquisition unit may also be described as "a unit that acquires video stream data.”
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLD Complex Programmable Logical device

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开的实施例公开了视频流数据获取方法、装置、电子设备和计算机可读介质。该方法的一具体实施方式包括:响应于接收到目标终端发送的拉流数据包,确定接收拉流数据包的通信机房的机房标识与拉流数据包中的连接标识包括的目标机房标识是否相同,其中,拉流数据包是目标终端在播放视频流时所产生的,目标机房标识是接收目标终端在播放视频流时产生的首个拉流数据包的通信机房的机房标识;响应于确定目标机房标识与接收到拉流数据包的通信机房的机房标识不同,将拉流数据包转发至目标机房标识对应的目标通信机房;通过目标通信机房获取视频流数据。

Description

视频流数据获取方法、装置、电子设备和计算机可读介质
相关申请的交叉引用
本申请要求于申请日为2022年03月11日提交的,申请号为202210238230.6、发明名称为“视频流数据获取方法、装置、电子设备和计算机可读介质”的中国专利申请的优先权,其全部内容作为整体并入本申请中。
技术领域
本公开的实施例涉及计算机技术领域,具体涉及视频流数据获取方法、装置、电子设备和计算机可读介质。
背景技术
当用户通过移动终端观看视频流时,若该移动终端所连接的网络在移动网络和无线网络之间发生了切换,则会导致视频流在网络切换的过程中中断。因此,需要在网络发生切换时通过连接迁移实现无感知切换。目前,在进行连接迁移时,通常采用的方式是:通过在移动终端和拉流业务集群中间增加一个七层负载均衡网关和一个四层网关实现连接迁移。
发明内容
本公开的内容部分用于以简要的形式介绍构思,这些构思将在后面的具体实施方式部分被详细描述。本公开的内容部分并不旨在标识要求保护的技术方案的关键特征或必要特征,也不旨在用于限制所要求的保护的技术方案的范围。
本公开的一些实施例提出了视频流数据获取方法、装置、电子设备和计算机可读介质,来解决以上背景技术部分提到的技术问题。
第一方面,本公开的一些实施例提供了一种视频流数据获取方法, 该方法包括:响应于接收到目标终端发送的拉流数据包,确定接收上述拉流数据包的通信机房的机房标识与上述拉流数据包中的连接标识包括的目标机房标识是否相同,其中,上述拉流数据包是上述目标终端在播放视频流时所产生的,上述目标机房标识是接收上述目标终端在播放上述视频流时产生的首个拉流数据包的通信机房的机房标识;响应于确定上述目标机房标识与接收到上述拉流数据包的通信机房的机房标识不同,将上述拉流数据包转发至上述目标机房标识对应的目标通信机房;通过上述目标通信机房获取视频流数据。
第二方面,本公开的一些实施例提供了一种视频流数据获取装置,装置包括:确定单元,被配置成响应于接收到目标终端发送的拉流数据包,确定接收上述拉流数据包的通信机房的机房标识与上述拉流数据包中的连接标识包括的目标机房标识是否相同,其中,上述拉流数据包是上述目标终端在播放视频流时所产生的,上述目标机房标识是接收上述目标终端在播放上述视频流时产生的首个拉流数据包的通信机房的机房标识;转发单元,被配置成响应于确定上述目标机房标识与接收到上述拉流数据包的通信机房的机房标识不同,将上述拉流数据包转发至上述目标机房标识对应的目标通信机房;获取单元,被配置成通过上述目标通信机房获取视频流数据。
可选的,上述获取单元包括第一确定子单元和第一获取子单元。其中,第一确定子单元,被配置成确定上述目标通信机房中的目标协议转换服务器中与上述拉流数据包相匹配的目标拉流服务实例;第二确定子单元,被配置成利用上述目标拉流服务实例,从内容分发网络边缘节点获取视频流数据。
可选的,上述目标通信机房通过以下步骤确定:将上述目标终端在播放上述视频流的过程中产生首个拉流数据包时,所连接的网络所对应的通信机房确定为目标通信机房。
可选的,上述目标协议转换服务器和目标拉流服务实例通过以下步骤确定:响应于确定上述目标通信机房接收到上述首个拉流数据包,从上述目标通信机房中的协议转换服务器集群中选取一个协议转换服务器作为目标协议转换服务器;利用上述目标协议转换服务器中的单 机负载服务为上述首个拉流数据包分配拉流服务实例,以及将上述拉流服务实例作为目标拉流服务实例。
可选的,上述第一确定子单元包括:第二获取子单元、选择子单元、第一确定子单元和第二确定子单元。其中,第二获取子单元,被配置成从上述目标通信机房中的协议转换服务器集群的缓存服务器中获取映射表,其中,上述映射表中包括映射信息,上述映射信息包括:连接标识,协议转换服务器标识和拉流服务实例标识;选择子单元,被配置成从上述映射表中选择出包括的连接标识与上述拉流数据包中的连接标识相同的映射信息作为目标映射信息;第一确定子单元,被配置成将上述目标映射信息中协议转换服务器标识对应的协议转换服务器确定为目标协议转换服务器;第一确定子单元,被配置成将上述目标协议转换服务器中与上述目标映射信息中拉流服务实例标识对应的拉流服务实例,确定为与上述拉流数据包相匹配的目标拉流服务实例。
可选的,上述映射表中的映射信息通过以下步骤确定:将上述首个拉流数据包中的连接标识、上述目标协议转换服务器的协议转换服务器标识和上述目标拉流服务实例的拉流服务实例标识确定为映射信息;将上述映射信息记录在上述缓存服务器中的映射表中。
可选的,上述转发单元包括:第一发送子单元、分配子单元和转发子单元。其中,第一发送子单元,被配置成利用目标内部网关协议将上述拉流数据包发送至上述通信机房中的任一协议转换服务器;第一分配子单元,被配置成利用上述任一协议转换服务器中的单机负载服务为上述拉流数据包分配拉流服务实例;转发子单元,被配置成响应于确定上述目标机房标识与上述通信机房的机房标识不同,利用上述拉流服务实例,将上述拉流数据包转发至上述目标机房标识对应的目标通信机房。
可选的,上述装置还包括:发送单元、分配单元和视频流获取单元。其中,发送单元,被配置成利用目标内部网关协议将上述拉流数据包发送至上述通信机房中的任一协议转换服务器;分配单元,被配置成利用上述任一协议转换服务器中的单机负载服务为上述拉流数据 包分配拉流服务实例;视频流获取单元,被配置成响应于确定上述目标机房标识与上述通信机房的机房标识相同,利用上述拉流服务实例,通过上述通信机房获取视频流数据。
第三方面,本公开的一些实施例提供了一种电子设备,包括:至少一个处理器;存储装置,其上存储有至少一个程序,当至少一个程序被至少一个处理器执行,使得至少一个处理器实现上述第一方面任一实现方式所描述的方法。
第四方面,本公开的一些实施例提供了一种计算机可读介质,其上存储有计算机程序,其中,程序被处理器执行时实现上述第一方面任一实现方式所描述的方法。
附图说明
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,元件和元素不一定按照比例绘制。
图1是本公开的一些实施例的视频流数据获取方法的一个应用场景的示意图;
图2是根据本公开的视频流数据获取方法的一些实施例的流程图;
图3是根据本公开的视频流数据获取方法的另一些实施例的流程图;
图4是根据本公开的视频流数据获取方法的一些实施例中的确定目标拉流服务实例的示意图;
图5是本公开的视频流数据获取装置的一些实施例的结构示意图;
图6是适于用来实现本公开的一些实施例的电子设备的结构示意图。
具体实施方式
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例。相反,提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。
另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“至少一个”。
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。
相关的视频流数据获取方法,例如,通过在移动终端和拉流业务集群中间增加一个七层负载均衡网关和一个四层网关实现连接迁移等经常会存在如下技术问题:在移动终端和拉流业务集群中间增加两个多层网关,增加了拉流数据包从移动终端到达到拉流业务集群的时间,导致拉流数据包延时;同时,拉流数据包经过两个多层网关时共需要经过两次解包,增加了硬件成本及服务器的负担。
为了解决以上所阐述的问题,本公开的一些实施例提出了视频流数据获取方法及装置,可以在一定程度上避免拉流数据包的延时,同时,拉流数据包无需经过多次解包,减轻了服务器负担。
下面将参考附图并结合实施例来详细说明本公开。
图1是本公开的一些实施例的视频流数据获取方法的一个应用场景的示意图。
在图1的应用场景中,首先,计算设备101可以响应于接收到目标终端102发送的拉流数据包103,确定接收上述拉流数据包103的通信机房的机房标识104与上述拉流数据包103中的连接标识包括的目标机房标识105是否相同,其中,上述拉流数据包103是上述目标终端102在播放视频流时所产生的,上述目标机房标识105是接收上述目标终端102在播放上述视频流时产生的首个拉流数据包的通信机房的机房标识。然后,计算设备101可以响应于确定上述目标机房标识105与接收到上述拉流数据包103的通信机房的机房标识104不同,将上述拉流数据包103转发至上述目标机房标识105对应的目标通信机房106。最后,计算设备101可以通过上述目标通信机房106获取视频流数据107。
需要说明的是,上述计算设备101可以是硬件,也可以是软件。当计算设备为硬件时,可以实现成多个服务器或终端设备组成的分布式集群,也可以实现成单个服务器或单个终端设备。当计算设备体现为软件时,可以安装在上述所列举的硬件设备中。其可以实现成例如用来提供分布式服务的多个软件或软件模块,也可以实现成单个软件或软件模块。在此不做具体限定。
应该理解,图1中的计算设备的数目仅仅是示意性的。根据实现需要,可以具有任意数目的计算设备。
继续参考图2,示出了根据本公开的视频流数据获取方法的一些实施例的流程200。该视频流数据获取方法,包括以下步骤:
步骤201,响应于接收到目标终端发送的拉流数据包,确定接收拉流数据包的通信机房的机房标识与拉流数据包中的连接标识包括的目标机房标识是否相同。
在一些实施例中,视频流数据获取方法的执行主体(如图1所示的计算设备101)可以响应于接收到目标终端发送的拉流数据包,确定接收上述拉流数据包的通信机房的机房标识与上述拉流数据包中的连接标识包括的目标机房标识是否相同。其中,上述拉流数据包可以是上述目标终端在播放视频流时所产生的,上述目标机房标识可以是 接收上述目标终端在播放上述视频流时产生的首个拉流数据包的通信机房的机房标识。上述视频流可以是直播视频流,也可以是点播视频流。上述拉流数据包可以是QUIC(Quick UDP Internet Connection,快速UDP(User Datagram Protocol,用户数据报协议)互联网连接)数据包。上述目标终端可以是移动终端,例如,手机、平板电脑等。
接收上述拉流数据包的通信机房可以是上述目标终端发送上述拉流数据包时,所连接的网络所对应的通信机房。上述目标终端在播放上述视频流的过程中,所连接的网络可以是移动网络或无线网络。上述目标终端在播放上述视频流的过程中,所连接的网络也可以在移动网络和无线网络之间切换。
上述目标终端可以在发送上述首个拉流数据包时,将当前所连接的网络对应的通信机房作为目标通信机房。并将该目标通信机房的通信机房标识作为目标通信机房标识写入上述首个拉流数据包的连接标识中。并在播放上述视频流的过程中,将上述目标通信机房标识写入后续产生的拉流数据包的连接标识中。
若上述拉流数据包的通信机房的机房标识与上述拉流数据包中的连接标识包括的目标机房标识相同,则表明接收上述拉流数据包的通信机房与接收上述首个拉流数据包的通信机房是同一通信机房。因此,无需进行连接迁移,可直接通过接收上述拉流数据包的通信机房获取视频流数据。
若上述拉流数据包的通信机房的机房标识与上述拉流数据包中的连接标识包括的目标机房标识不相同,则表明接收上述拉流数据包的通信机房与接收上述首个拉流数据包的通信机房是不同的通信机房,即,上述目标终端在播放上述直播视频流的过程中,所连接的网络在移动网络和无线网络之间发生了切换。因此,为了确保在网络发生切换时,上述目标终端可以继续顺畅的播放上述视频流,需要通过连接回源操作将上述拉流数据包转发至上述目标通信机房。
由此,可以通过上述拉流数据包的中的连接标识包括的目标机房标识确定当前接收拉流数据包的通信机房是否为目标通信机房。从而,实现拉流数据包的快速路由。
作为示例,若上述目标终端发送上述拉流数据包时所连接的网络是长春移动的5G网络,则接收上述拉流数据包的通信机房可以是长春移动机房。
在一些实施例的一些可选的实现方式中,上述目标通信机房可以通过以下步骤确定:
将上述目标终端在播放上述视频流的过程中产生首个拉流数据包时,所连接的网络所对应的通信机房确定为目标通信机房。
由此,可以将产生首个拉流数据包时,上述目标终端所连接的网络所对应的通信机房确定为目标通信机房。进而,在后续网络发生切换时,实现拉流数据包的快速路由。
步骤202,响应于确定目标机房标识与接收到拉流数据包的通信机房的机房标识不同,将拉流数据包转发至目标机房标识对应的目标通信机房。
在一些实施例中,上述执行主体可以响应于确定上述目标机房标识与接收到上述拉流数据包的通信机房的机房标识不同,将上述拉流数据包转发至上述目标机房标识对应的目标通信机房。
步骤203,通过目标通信机房获取视频流数据。
在一些实施例中,上述执行主体可以在将上述拉流数据包转发至上述目标通信机房后,获取上述目标通信机房返回的视频流数据。
在一些实施例的一些可选的实现方式中,上述执行主体还可以执行以下步骤:
第一步,利用目标内部网关协议将上述拉流数据包发送至上述通信机房中的任一协议转换服务器。其中,上述目标内部网关协议可以是OSPF(Open Shortest Path First开放式最短路径优先)。上述协议转换服务器可以是QUIC服务器集群中的任一QUIC服务器。上述QUIC服务器可以将QUIC协议转换为HTTP(Hyper Text Transfer Protocol,超文本传输协议)协议后从内容分发网络边缘节点中获取视频流数据。
由此,可以利用上述目标内部网关协议将上述拉流数据包通过至少一条最短路由路径发送至上述通信机房中的任一协议转换服务器,加快拉流数据包的路由速度。
第二步,利用上述任一协议转换服务器中的单机负载服务为上述拉流数据包分配拉流服务实例。其中,上述单机负载服务可以是操作系统内核级别的负载服务。例如,nftable。
从而,通过操作系统内核级别的负载服务减轻服务器的压力。
第三步,响应于确定上述目标机房标识与上述通信机房的机房标识相同,利用上述拉流服务实例,通过上述通信机房获取视频流数据。其中,上述拉流服务实例可以首先将上述拉流数据包转换为HTTP协议数据包,然后,从上述通信机房中的CDN(Content Delivery Network,内容分发网络)服务器获取视频流数据。
本公开的上述各个实施例具有如下有益效果:通过本公开的一些实施例的视频流数据获取方法,可以在一定程度上避免拉流数据包的延时,同时,拉流数据包无需经过多次解包,减轻了服务器负担。具体来说,造成拉流数据包延时,且服务器负担较重的原因在于:在移动终端和拉流业务集群中间增加一个七层的网关和一个四层的网关。基于此,本公开的一些实施例的视频流数据获取方法,在拉流数据包中的连接标识中增加一个字节用于保存目标机房信息,根据目标机房信息直接对数据包进行转发回源。由此,在移动终端和拉流业务集群中无需存在七层的网关,在一定程度上避免了拉流数据包的延时,缓解了服务器的负担,同时加快了拉流数据包的路由速度。
参考图3,其示出了视频流数据获取方法的另一些实施例的流程300。该视频流数据获取方法的流程300,包括以下步骤:
步骤301,响应于接收到目标终端发送的拉流数据包,确定接收拉流数据包的通信机房的机房标识与拉流数据包中的连接标识包括的目标机房标识是否相同。
在一些实施例中,步骤301的具体实现方式及所带来的技术效果可以参考图2对应的那些实施例中的步骤201,在此不再赘述。
步骤302,利用目标内部网关协议将拉流数据包发送至通信机房中的任一协议转换服务器。
在一些实施例中,视频流数据获取方法的执行主体(如图1所示 的计算设备101)可以利用目标内部网关协议将上述拉流数据包发送至上述通信机房中的任一协议转换服务器。其中,上述目标内部网关协议可以是OSPF。上述协议转换服务器可以是QUIC服务器集群中的任一QUIC服务器。上述QUIC服务器可以将QUIC协议转换为HTTP协议后从内容分发网络边缘节点中获取视频流数据。
由此,可以利用上述目标内部网关协议将上述拉流数据包通过至少一条最短路由路径发送至上述通信机房中的任一协议转换服务器,加快拉流数据包的路由速度。
步骤303,利用任一协议转换服务器中的单机负载服务为拉流数据包分配拉流服务实例。
在一些实施例中,上述执行主体可以利用上述任一协议转换服务器中的单机负载服务为上述拉流数据包分配拉流服务实例。其中,上述单机负载服务可以是操作系统内核级别的负载服务。例如,nftable。由此,可以通过操作系统内核级别的负载服务减轻服务器的压力。
步骤304,响应于确定目标机房标识与通信机房的机房标识不同,利用拉流服务实例,将拉流数据包转发至目标机房标识对应的目标通信机房。
在一些实施例中,上述执行主体可以响应于确定上述目标机房标识与上述通信机房的机房标识不同,利用上述拉流服务实例,将上述拉流数据包转发至上述目标机房标识对应的目标通信机房。
由此,将转发回源功能集成到拉流服务实例中,不再单独存在7层负载均衡网关,减少了数据延迟。同时,减少了由于7层负载均衡网关的单点故障。且由于无需部署7层负载均衡网关也可以降低成本。
步骤305,确定目标通信机房中的目标协议转换服务器中与拉流数据包相匹配的目标拉流服务实例。
在一些实施例中,上述执行主体可以确定上述目标通信机房中的目标协议转换服务器中与上述拉流数据包相匹配的目标拉流服务实例。
上述目标通信机房可以在接收到上述目标终端在播放上述视频流的过程中产生的首个拉流数据包后,将上述目标通信机房中接收上述 首个拉流数据包的协议转换服务器的协议转换服务器标识,和在上述协议转换服务器中为上述首个拉流数据包分配的拉流服务实例的拉流服务实例标识发送给上述目标终端,以供上述目标终端将上述协议转换服务器标识和上述拉流服务实例标识写入后续产生的拉流数据包中。由此,上述执行主体可以根据上述拉流数据包中包括的协议转换服务器标识和拉流服务实例标识确定目标协议转换服务器,以及上述目标协议转换服务器中的目标拉流服务实例。
在一些实施例的一些可选的实现方式中,上述执行主体确定上述目标通信机房中的目标协议转换服务器中与上述拉流数据包相匹配的目标拉流服务实例,可以包括以下步骤:
第一步,从上述目标通信机房中的协议转换服务器集群的缓存服务器中获取映射表。其中,上述映射表中包括映射信息,上述映射信息包括:连接标识,协议转换服务器标识和拉流服务实例标识。上述缓存服务器存储的数据可以是上述协议转换服务器集群共享的数据。
作为示例,上述缓存服务器可以是Redis服务器。
第二步,从上述映射表中选择出包括的连接标识与上述拉流数据包中的连接标识相同的映射信息作为目标映射信息。
第三步,将上述目标映射信息中协议转换服务器标识对应的协议转换服务器确定为目标协议转换服务器。
第四步,将上述目标协议转换服务器中与上述目标映射信息中拉流服务实例标识对应的拉流服务实例,确定为与上述拉流数据包相匹配的目标拉流服务实例。
可选的,上述映射表中的映射信息通过以下步骤确定:
第一步,将上述首个拉流数据包中的连接标识、上述目标协议转换服务器的协议转换服务器标识和上述目标拉流服务实例的拉流服务实例标识确定为映射信息。
第二步,将上述映射信息记录在上述缓存服务器中的映射表中。
可选的,上述目标协议转换服务器和目标拉流服务实例可以通过以下步骤确定:
第一步,响应于确定上述目标通信机房接收到上述首个拉流数据 包,从上述目标通信机房中的协议转换服务器集群中选取一个协议转换服务器作为目标协议转换服务器。其中,上述目标协议转换服务器可以是从上述协议转换服务器集群中随机选取的。
第二步,利用上述目标协议转换服务器中的单机负载服务为上述首个拉流数据包分配拉流服务实例,以及将上述拉流服务实例作为目标拉流服务实例。其中,可以利用单机负载服务为上述首个拉流数据包创建一个拉流服务实例。
作为示例,参考图4,首先,可以响应于确定上述目标通信机房401接收到上述首个拉流数据包402,从上述目标通信机房401中的协议转换服务器集群403中选取一个协议转换服务器作为目标协议转换服务器404。然后,可以利用上述目标协议转换服务器404中的单机负载服务为上述首个拉流数据包402分配拉流服务实例405,以及将上述拉流服务实例作为目标拉流服务实例。
步骤306,利用目标拉流服务实例,从内容分发网络边缘节点获取视频流数据。
在一些实施例中,上述执行主体可以首先利用上述目标拉流服务实例,将上述拉流数据包转换为HTTP协议数据包。然后,从上述通信机房中的内容分发网络边缘节点获取视频流数据。
在一些实施例的一些可选的实现方式中,上述执行主体可以将上述视频流数据发送至上述目标终端。
从图3中可以看出,与图2对应的一些实施例的描述相比,图3对应的一些实施例中的视频流数据获取方法的流程300体现了对拉流数据包进行转发以及获取视频流数据的详细步骤。由此,这些实施例描述的方案可以利用目标内部网关协议和单机负载服加快拉流数据包路由速度,并减轻服务器的压力。
参考图5,作为对上述各图所示方法的实现,本公开提供了一种视频流数据获取装置的一些实施例,这些装置实施例与图2所示的那些方法实施例相对应,该装置具体可以应用于各种电子设备中。
如图5所示,一些实施例的视频流数据获取装置500包括:确定 单元501、转发单元502和获取单元503。其中,确定单元501,被配置成响应于接收到目标终端发送的拉流数据包,确定接收上述拉流数据包的通信机房的机房标识与上述拉流数据包中的连接标识包括的目标机房标识是否相同,其中,上述拉流数据包是上述目标终端在播放视频流时所产生的,上述目标机房标识是接收上述目标终端在播放上述视频流时产生的首个拉流数据包的通信机房的机房标识;转发单元502,被配置成响应于确定上述目标机房标识与接收到上述拉流数据包的通信机房的机房标识不同,将上述拉流数据包转发至上述目标机房标识对应的目标通信机房;获取单元503,被配置成通过上述目标通信机房获取视频流数据。
在一些实施例的可选实现方式中,上述获取单元503包括第一确定子单元和第一获取子单元。其中,第一确定子单元,被配置成确定上述目标通信机房中的目标协议转换服务器中与上述拉流数据包相匹配的目标拉流服务实例;第二确定子单元,被配置成利用上述目标拉流服务实例,从内容分发网络边缘节点获取视频流数据。
在一些实施例的可选实现方式中,上述目标通信机房通过以下步骤确定:将上述目标终端在播放上述视频流的过程中产生首个拉流数据包时,所连接的网络所对应的通信机房确定为目标通信机房。
在一些实施例的可选实现方式中,上述目标协议转换服务器和目标拉流服务实例通过以下步骤确定:响应于确定上述目标通信机房接收到上述首个拉流数据包,从上述目标通信机房中的协议转换服务器集群中选取一个协议转换服务器作为目标协议转换服务器;利用上述目标协议转换服务器中的单机负载服务为上述首个拉流数据包分配拉流服务实例,以及将上述拉流服务实例作为目标拉流服务实例。
在一些实施例的可选实现方式中,上述第一确定子单元包括:第二获取子单元、选择子单元、第一确定子单元和第二确定子单元。其中,第二获取子单元,被配置成从上述目标通信机房中的协议转换服务器集群的缓存服务器中获取映射表,其中,上述映射表中包括映射信息,上述映射信息包括:连接标识,协议转换服务器标识和拉流服务实例标识;选择子单元,被配置成从上述映射表中选择出包括的连 接标识与上述拉流数据包中的连接标识相同的映射信息作为目标映射信息;第一确定子单元,被配置成将上述目标映射信息中协议转换服务器标识对应的协议转换服务器确定为目标协议转换服务器;第一确定子单元,被配置成将上述目标协议转换服务器中与上述目标映射信息中拉流服务实例标识对应的拉流服务实例,确定为与上述拉流数据包相匹配的目标拉流服务实例。
在一些实施例的可选实现方式中,上述映射表中的映射信息通过以下步骤确定:将上述首个拉流数据包中的连接标识、上述目标协议转换服务器的协议转换服务器标识和上述目标拉流服务实例的拉流服务实例标识确定为映射信息;将上述映射信息记录在上述缓存服务器中的映射表中。
在一些实施例的可选实现方式中,上述转发单元502包括:第一发送子单元、分配子单元和转发子单元。其中,第一发送子单元,被配置成利用目标内部网关协议将上述拉流数据包发送至上述通信机房中的任一协议转换服务器;第一分配子单元,被配置成利用上述任一协议转换服务器中的单机负载服务为上述拉流数据包分配拉流服务实例;转发子单元,被配置成响应于确定上述目标机房标识与上述通信机房的机房标识不同,利用上述拉流服务实例,将上述拉流数据包转发至上述目标机房标识对应的目标通信机房。
在一些实施例的可选实现方式中,上述装置500还包括:发送单元、分配单元和视频流获取单元。其中,发送单元,被配置成利用目标内部网关协议将上述拉流数据包发送至上述通信机房中的任一协议转换服务器;分配单元,被配置成利用上述任一协议转换服务器中的单机负载服务为上述拉流数据包分配拉流服务实例;视频流获取单元,被配置成响应于确定上述目标机房标识与上述通信机房的机房标识相同,利用上述拉流服务实例,通过上述通信机房获取视频流数据。
可以理解的是,该装置500中记载的诸单元与参考图2描述的方法中的各个步骤相对应。由此,上文针对方法描述的操作、特征以及产生的有益效果同样适用于装置500及其中包含的单元,在此不再赘述。
下面参考图6,其示出了适于用来实现本公开的一些实施例的电子设备600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本公开的实施例的功能和使用范围带来任何限制。
如图6所示,电子设备600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储装置608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有电子设备600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置607;以及通信装置609。通信装置609可以允许电子设备600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的电子设备600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。图6中示出的每个方框可以代表一个装置,也可以根据需要代表多个装置。
特别地,根据本公开的一些实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的一些实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的一些实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本公开的一些实施例的方法中限定的上述功能。
需要说明的是,本公开的一些实施例中记载的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、 光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有至少一个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开的一些实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开的一些实施例中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText Transfer Protocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:响应于接收到目标终端发送的拉流数据包,确定接收上述拉流数据包的通信机房的机房标识与上述拉流数据包中的连接标识包括的目标机房标识是否相同,其中,上述拉流数据包是上述目标 终端在播放视频流时所产生的,上述目标机房标识是接收上述目标终端在播放上述视频流时产生的首个拉流数据包的通信机房的机房标识;响应于确定上述目标机房标识与接收到上述拉流数据包的通信机房的机房标识不同,将上述拉流数据包转发至上述目标机房标识对应的目标通信机房;通过上述目标通信机房获取视频流数据。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的一些实施例的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)——连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含至少一个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开的一些实施例中的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括确定单元、转发单元和获取单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定, 例如,获取单元还可以被描述为“获取视频流数据的单元”。
本文中以上描述的功能可以至少部分地由至少一个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。

Claims (11)

  1. 一种视频流数据获取方法,包括:
    响应于接收到目标终端发送的拉流数据包,确定接收所述拉流数据包的通信机房的机房标识与所述拉流数据包中的连接标识包括的目标机房标识是否相同,其中,所述拉流数据包是所述目标终端在播放视频流时所产生的,所述目标机房标识是接收所述目标终端在播放所述视频流时产生的首个拉流数据包的通信机房的机房标识;
    响应于确定所述目标机房标识与接收到所述拉流数据包的通信机房的机房标识不同,将所述拉流数据包转发至所述目标机房标识对应的目标通信机房;
    通过所述目标通信机房获取视频流数据。
  2. 根据权利要求1所述的方法,其中,所述通过所述目标通信机房获取视频流数据,包括:
    确定所述目标通信机房中的目标协议转换服务器中与所述拉流数据包相匹配的目标拉流服务实例;
    利用所述目标拉流服务实例,从内容分发网络边缘节点获取视频流数据。
  3. 根据权利要求1或2所述的方法,其中,所述目标通信机房通过以下步骤确定:
    将所述目标终端在播放所述视频流的过程中产生首个拉流数据包时,所连接的网络所对应的通信机房确定为目标通信机房。
  4. 根据权利要求2所述的方法,其中,所述目标协议转换服务器和所述目标拉流服务实例通过以下步骤确定:
    响应于确定所述目标通信机房接收到所述首个拉流数据包,从所述目标通信机房中的协议转换服务器集群中选取一个协议转换服务器作为目标协议转换服务器;
    利用所述目标协议转换服务器中的单机负载服务为所述首个拉流数据包分配拉流服务实例,以及将所述拉流服务实例作为目标拉流服务实例。
  5. 根据权利要求2或4所述的方法,其中,所述确定所述目标通信机房中的目标协议转换服务器中与所述拉流数据包相匹配的目标拉流服务实,包括:
    从所述目标通信机房中的协议转换服务器集群的缓存服务器中获取映射表,其中,所述映射表中包括映射信息,所述映射信息包括:连接标识,协议转换服务器标识和拉流服务实例标识;
    从所述映射表中选择出包括的连接标识与所述拉流数据包中的连接标识相同的映射信息作为目标映射信息;
    将所述目标映射信息中协议转换服务器标识对应的协议转换服务器确定为目标协议转换服务器;
    将所述目标协议转换服务器中与所述目标映射信息中拉流服务实例标识对应的拉流服务实例,确定为与所述拉流数据包相匹配的目标拉流服务实例。
  6. 根据权利要求5所述的方法,其中,所述映射表中的映射信息通过以下步骤确定:
    将所述首个拉流数据包中的连接标识、所述目标协议转换服务器的协议转换服务器标识和所述目标拉流服务实例的拉流服务实例标识确定为映射信息;
    将所述映射信息记录在所述缓存服务器中的映射表中。
  7. 根据权利要求1-6之一所述的方法,其中,所述响应于确定所述目标机房标识与接收到所述拉流数据包的通信机房的机房标识不同,将所述拉流数据包转发至所述目标机房标识对应的目标通信机房,包括:
    利用目标内部网关协议将所述拉流数据包发送至所述通信机房中 的任一协议转换服务器;
    利用所述任一协议转换服务器中的单机负载服务为所述拉流数据包分配拉流服务实例;
    响应于确定所述目标机房标识与所述通信机房的机房标识不同,利用所述拉流服务实例,将所述拉流数据包转发至所述目标机房标识对应的目标通信机房。
  8. 根据权利要求1-7之一所述的方法,其中,所述方法还包括:
    利用目标内部网关协议将所述拉流数据包发送至所述通信机房中的任一协议转换服务器;
    利用所述任一协议转换服务器中的单机负载服务为所述拉流数据包分配拉流服务实例;
    响应于确定所述目标机房标识与所述通信机房的机房标识相同,利用所述拉流服务实例,通过所述通信机房获取视频流数据。
  9. 一种视频流数据获取装置,包括:
    确定单元,被配置成响应于接收到目标终端发送的拉流数据包,确定接收所述拉流数据包的通信机房的机房标识与所述拉流数据包中的连接标识包括的目标机房标识是否相同,其中,所述拉流数据包是所述目标终端在播放视频流时所产生的,所述目标机房标识是接收所述目标终端在播放所述视频流时产生的首个拉流数据包的通信机房的机房标识;
    转发单元,被配置成响应于确定所述目标机房标识与接收到所述拉流数据包的通信机房的机房标识不同,将所述拉流数据包转发至所述目标机房标识对应的目标通信机房;
    获取单元,被配置成通过所述目标通信机房获取视频流数据。
  10. 一种电子设备,包括:
    至少一个处理器;
    存储装置,其上存储有至少一个程序,
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-8中任一所述的方法。
  11. 一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-8中任一所述的方法。
PCT/CN2023/077326 2022-03-11 2023-02-21 视频流数据获取方法、装置、电子设备和计算机可读介质 Ceased WO2023169202A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US18/845,253 US12581143B2 (en) 2022-03-11 2023-02-21 Video stream data acquisition method and apparatus, and electronic device and computer-readable medium
KR1020247029774A KR20240139607A (ko) 2022-03-11 2023-02-21 동영상 스트림 데이터 획득 방법, 장치, 전자기기 및 컴퓨터 판독가능 매체
EP23765780.4A EP4492800A4 (en) 2022-03-11 2023-02-21 METHOD AND APPARATUS FOR ACQUIRING VIDEO STREAM DATA, ELECTRONIC DEVICE AND COMPUTER-READABLE MEDIA
JP2024551962A JP7717988B2 (ja) 2022-03-11 2023-02-21 ビデオストリームデータを取得する方法、装置、電子機器、コンピュータ可読媒体およびコンピュータプログラム

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210238230.6 2022-03-11
CN202210238230.6A CN116781947A (zh) 2022-03-11 2022-03-11 视频流数据获取方法、装置、电子设备和计算机可读介质

Publications (1)

Publication Number Publication Date
WO2023169202A1 true WO2023169202A1 (zh) 2023-09-14

Family

ID=87937200

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/077326 Ceased WO2023169202A1 (zh) 2022-03-11 2023-02-21 视频流数据获取方法、装置、电子设备和计算机可读介质

Country Status (6)

Country Link
US (1) US12581143B2 (zh)
EP (1) EP4492800A4 (zh)
JP (1) JP7717988B2 (zh)
KR (1) KR20240139607A (zh)
CN (1) CN116781947A (zh)
WO (1) WO2023169202A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025161528A1 (zh) * 2024-02-02 2025-08-07 河南紫联物联网技术有限公司 一种用于多路视频的同屏同时播放方法和系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584808B (zh) * 2022-03-01 2023-09-22 抖音视界有限公司 一种视频流获取方法、装置、系统、设备和介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389219A (zh) * 2015-10-15 2016-03-09 北京乐动卓越科技有限公司 一种跨机房通讯的方法和系统
CN106161431A (zh) * 2016-06-27 2016-11-23 乐视控股(北京)有限公司 通话建立方法及系统
CN107635010A (zh) * 2017-10-13 2018-01-26 网易(杭州)网络有限公司 流量调度方法、装置、计算机可读存储介质及电子设备
CN111800462A (zh) * 2020-05-28 2020-10-20 中国平安财产保险股份有限公司 微服务实例处理方法、装置、计算机设备及存储介质
CN112068972A (zh) * 2020-09-01 2020-12-11 掌阅科技股份有限公司 基于多机房实现的消息队列的消费方法及电子设备
US20210005068A1 (en) * 2019-07-01 2021-01-07 Honeywell International Inc. Systems and methods for providing an immersive experience of a facility control room using virtual reality
CN112202833A (zh) * 2020-08-26 2021-01-08 网宿科技股份有限公司 Cdn系统、请求处理方法以及调度服务器
CN112766945A (zh) * 2021-01-27 2021-05-07 广州方硅信息技术有限公司 虚拟资源的分配处理方法、装置、设备及存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8228861B1 (en) * 2008-09-12 2012-07-24 Nix John A Efficient handover of media communications in heterogeneous IP networks using handover procedure rules and media handover relays
KR101476281B1 (ko) 2013-04-24 2014-12-24 주식회사 바른기술 N-스크린 서비스를 위한 멀티미디어 스트림의 이기종 디바이스 간 핸드오버 시스템 및 그 방법
JP6133967B1 (ja) 2015-12-28 2017-05-24 オカムラ印刷株式会社 情報処理システム、情報処理装置、情報処理方法、情報処理プログラム、携帯端末装置およびその制御プログラム
CN108366365B (zh) 2017-01-26 2021-03-23 华为技术有限公司 一种接入目标小区的方法以及设备
CN109729397A (zh) * 2019-01-29 2019-05-07 网宿科技股份有限公司 一种推流方法、系统及服务器
US11418995B2 (en) * 2019-11-29 2022-08-16 Amazon Technologies, Inc. Mobility of cloud compute instances hosted within communications service provider networks
US11336721B2 (en) * 2019-11-29 2022-05-17 Amazon Technologies, Inc. Dynamic resource movement in heterogeneous computing environments including cloud edge locations

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389219A (zh) * 2015-10-15 2016-03-09 北京乐动卓越科技有限公司 一种跨机房通讯的方法和系统
CN106161431A (zh) * 2016-06-27 2016-11-23 乐视控股(北京)有限公司 通话建立方法及系统
CN107635010A (zh) * 2017-10-13 2018-01-26 网易(杭州)网络有限公司 流量调度方法、装置、计算机可读存储介质及电子设备
US20210005068A1 (en) * 2019-07-01 2021-01-07 Honeywell International Inc. Systems and methods for providing an immersive experience of a facility control room using virtual reality
CN111800462A (zh) * 2020-05-28 2020-10-20 中国平安财产保险股份有限公司 微服务实例处理方法、装置、计算机设备及存储介质
CN112202833A (zh) * 2020-08-26 2021-01-08 网宿科技股份有限公司 Cdn系统、请求处理方法以及调度服务器
CN112068972A (zh) * 2020-09-01 2020-12-11 掌阅科技股份有限公司 基于多机房实现的消息队列的消费方法及电子设备
CN112766945A (zh) * 2021-01-27 2021-05-07 广州方硅信息技术有限公司 虚拟资源的分配处理方法、装置、设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4492800A4 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025161528A1 (zh) * 2024-02-02 2025-08-07 河南紫联物联网技术有限公司 一种用于多路视频的同屏同时播放方法和系统

Also Published As

Publication number Publication date
EP4492800A4 (en) 2026-02-25
US12581143B2 (en) 2026-03-17
JP2025508513A (ja) 2025-03-26
US20250193466A1 (en) 2025-06-12
CN116781947A (zh) 2023-09-19
JP7717988B2 (ja) 2025-08-04
EP4492800A1 (en) 2025-01-15
KR20240139607A (ko) 2024-09-23

Similar Documents

Publication Publication Date Title
CN110708393B (zh) 用于传输数据的方法、装置和系统
CN110313163B (zh) 分布式计算系统中的负载平衡
CN112291366A (zh) 数据传输方法、装置、存储介质及电子设备
CN110300115A (zh) 一种基于多通道的数据传输方法以及相关装置
CN112019625B (zh) 基于websocket消息推送方法、系统、设备及介质
CN110177047B (zh) 报文发送方法、装置、电子设备和计算机可读存储介质
CN110545230B (zh) 用于转发vxlan报文的方法和装置
WO2023169202A1 (zh) 视频流数据获取方法、装置、电子设备和计算机可读介质
CN116668564A (zh) 多模态网络报文处理方法、装置、设备及可读存储介质
US8819242B2 (en) Method and system to transfer data utilizing cut-through sockets
CN114489891A (zh) 云应用程序的控制方法、系统、装置、可读介质和设备
CN113765801B (zh) 应用于数据中心的报文处理方法和装置、电子设备和介质
CN118474220A (zh) 基于dpu的数据处理方法、装置、系统及介质
CN118764464A (zh) 一种基于云网络的数据传输方法、装置及设备
CN111953804B (zh) 一种网络数据传输的方法、装置、介质和电子设备
CN113364672A (zh) 媒体网关信息确定方法、装置、设备和计算机可读介质
CN114979128A (zh) 跨区域通信方法、装置及电子设备
CN119697112B (zh) 一种流量处理方法、装置、设备和存储介质
CN118075206A (zh) 数据传输方法和装置
US20260012503A1 (en) Load balancing method based on containerized microservice architecture, storage medium and electronic device
CN121037425A (zh) 数据通信方法、装置、设备、存储介质及车辆
CN119669138A (zh) 数据处理器的通信方法及设备
CN120434468A (zh) 资源获取方法、装置、电子设备和计算机可读介质
CN116886701A (zh) 容器服务的访问方法、装置、设备及存储介质
CN117811874A (zh) 隧道创建方法、数据传输方法、装置、设备及介质

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2024551962

Country of ref document: JP

ENP Entry into the national phase

Ref document number: 20247029774

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 1020247029774

Country of ref document: KR

WWE Wipo information: entry into national phase

Ref document number: 18845253

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2023765780

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2023765780

Country of ref document: EP

Effective date: 20241011

WWE Wipo information: entry into national phase

Ref document number: 11202406130W

Country of ref document: SG

WWP Wipo information: published in national office

Ref document number: 18845253

Country of ref document: US

WWG Wipo information: grant in national office

Ref document number: 18845253

Country of ref document: US