WO2018121705A1 - 一种流数据的双向传输方法和装置 - Google Patents

一种流数据的双向传输方法和装置 Download PDF

Info

Publication number
WO2018121705A1
WO2018121705A1 PCT/CN2017/119640 CN2017119640W WO2018121705A1 WO 2018121705 A1 WO2018121705 A1 WO 2018121705A1 CN 2017119640 W CN2017119640 W CN 2017119640W WO 2018121705 A1 WO2018121705 A1 WO 2018121705A1
Authority
WO
WIPO (PCT)
Prior art keywords
stream data
node
transmission
transmission node
transmission path
Prior art date
Application number
PCT/CN2017/119640
Other languages
English (en)
French (fr)
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 WO2018121705A1 publication Critical patent/WO2018121705A1/zh

Links

Images

Classifications

    • 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/60Network streaming of media packets
    • 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/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
    • 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/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/765Media network packet handling intermediate

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a bidirectional transmission method for streaming data and a bidirectional transmission device for streaming data.
  • the user client sends the stream data carrying the open flow instruction to the remote monitoring end through the content distribution network, such as the voice carrying the open flow instruction, and the remote monitoring end receives the stream data carrying the open flow instruction and starts collecting.
  • the video stream data, and the recorded video stream data is fed back to the user client through the content distribution network for the user to view.
  • the second stream data is transmitted to the originating transmission node in accordance with the found transmission path.
  • a bidirectional transmission apparatus for streaming data including:
  • a transmission path searching module configured to search for a transmission path of the first stream data
  • a first stream data transmission module configured to transmit the first stream data to the target transmission node from the initial transmission node through the at least one intermediate transmission node;
  • a computer program comprising computer readable code causing the computing device to perform bidirectional transmission of the stream data when the computer readable code is run on a computing device method.
  • FIG. 1 is a flow chart showing the steps of a method for bidirectional transmission of stream data according to a first embodiment of the present invention
  • FIG. 4 is a flow chart showing the steps of a method for bidirectional transmission of stream data according to Embodiment 4 of the present invention.
  • FIG. 5 is a structural block diagram of a bidirectional transmission apparatus for streaming data according to Embodiment 5 of the present invention.
  • Figure 7 shows a block diagram of a computing device for performing the method according to the invention.
  • Figure 8 shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 1 is a flow chart showing the steps of a method for bidirectional transmission of stream data according to a first embodiment of the present invention, which may include the following steps:
  • Step 101 Receive first stream data transmitted from the initial transmission node to the target transmission node through the at least one intermediate transmission node.
  • the method of the embodiment of the present invention is applied to a scenario in which video stream data transmitted in a streaming manner exists, such as a remote monitoring scenario, a live video scenario, and the like.
  • the system for performing the method of the present invention includes a user client installed with a control program, a starting transport node, at least one intermediate transport node in the content distribution network, a target transport node, and Remote monitoring terminal.
  • the user client can be a terminal with a control program installed, such as a remote controller, a mobile phone, a computer, etc.; the remote monitoring terminal is a monitoring device with a stream data collection function, such as a remote camera.
  • the user client sends the first stream data carrying the open flow instruction to the remote monitoring end, such as the voice stream data carrying the open flow instruction.
  • the user client sends the first stream data to the initial transmission node of the content distribution network, and the initiating transmission node sends the first stream data to the target transmission node through at least one intermediate node in the content distribution network, and finally the target transmission The node sends the first stream data to the remote monitoring terminal.
  • the starting transmission node can be selected in various ways, for example, by scheduling allocation, pre-setting, randomly selecting from a preset transmission node cluster, and the like.
  • Step 102 Find a transmission path of the first stream data.
  • the remote control end After receiving the first stream data that is sent by the target transmission node and carrying the open flow instruction, the remote control end starts the stream data collection function, starts collecting the video stream data, and transmits the collected video stream data, that is, the second stream data, to the target transmission node.
  • the target transmission node After receiving the second stream data sent by the remote control terminal, the target transmission node searches for the transmission path of the first stream data, so as to transmit the second stream data to the initial transmission node according to the reverse path of the transmission path of the first stream data, further Transfer to the user client for viewing by the user.
  • each of the transmission nodes through which the transmission path passes may record its uplink transmission node, and may determine the transmission path of the first stream data by extracting the uplink transmission node recorded by the target transmission node for the inflow instruction.
  • the first stream data may carry the node identifiers of all the transmission nodes included in the transmission path through which the path is carried, and all the node identifiers are sequentially arranged according to the flow order of the first stream data, that is, the first stream data may carry the node identifier sequence, and The sequence of node identifiers carried by the first stream data determines a transmission path of the first stream data.
  • Step 103 Transmit second stream data to the originating transmission node according to the searched path.
  • the transmission path of the first stream data is a user mobile phone installed with a control program ⁇ Node 1 ⁇ Node 2 ⁇ Node 3 ⁇ Remote Camera
  • the transmission path of the second stream data is a remote camera ⁇ Node 3 ⁇ Node 2 ⁇ Node 1 ⁇ User phone.
  • the second stream may be determined by transmitting the second stream data to the uplink transmitting node of the current transmitting node and searching for the next uplink transmitting node.
  • the next transmission path of the stream data according to the above method, until the second stream data is transmitted from the target transmission node to the originating transmission node, and further transmitted to the user client.
  • the first stream data carries a sequence of node identifiers recorded in the order of its flow
  • the second stream data may be transmitted to the user client according to the reverse of the node identifier sequence.
  • the user client sends the third stream data carrying the shutdown instruction to the remote monitoring terminal, and the third stream data is transmitted to the remote monitoring terminal according to the transmission path of the first stream data, and the remote monitoring terminal The video stream data is stopped after receiving the third stream data.
  • the user client sends an open flow instruction carrying the first flow data, a flow off instruction carrying the third flow data, or the flow data carrying the other instruction to the remote control end according to the transmission path of the open flow instruction.
  • the remote monitoring terminal sends the second stream data to the user client according to the reverse path of the transmission path of the first stream data. Therefore, the embodiment of the present invention only needs to establish a transmission path of stream data, and uses a system to perform control, so that bidirectional transmission of stream data can be realized.
  • the target transmission node after receiving the first stream data transmitted from the originating transmission node, transmits the second stream data to the initial transmission node according to the transmission path of the first stream data, since the method of the present invention only needs The establishment of a transmission path can realize the bidirectional transmission of the stream data, eliminating the establishment of the second transmission path in the existing method, and eliminating the establishment time of the second transmission path, thereby ensuring the real-time performance of the stream data transmission.
  • the method of the present invention since the method of the present invention only needs to establish a transmission path, it is only necessary to use one system to control the data transmission, thereby eliminating the use of the second system in the existing method and reducing the system overhead.
  • FIG. 2 a schematic flowchart of a step of a method for bidirectional transmission of stream data according to a second embodiment of the present invention is shown.
  • Step 201 Receive first stream data that is transmitted from the initial transmission node to the target transmission node through the at least one intermediate transmission node, where each transmission node that passes the transmission path records its uplink transmission node.
  • the method in the embodiment of the present invention can be applied to a remote monitoring scenario.
  • the user client sends the first stream data carrying the open flow instruction to the remote monitoring end to enable the stream data collection function of the remote monitoring end.
  • the first stream data is first sent to the initial transmission node of the content distribution network, and then sequentially passes through the initial transmission node, the intermediate transmission node, and the target transmission node, and finally transmitted to the remote monitoring terminal.
  • Each of the transmission nodes through which the transmission path of the first stream data passes has its uplink transmission node recorded.
  • the first stream data sequentially passes through the user's mobile phone, the node 1, the node 2, the node 3, and the remote camera.
  • the transmission path of the first stream data is node 1 - node 2 - node 3, and the uplink transmission node 1 is recorded in the node 2,
  • the uplink transmission node 2 is recorded in the node 3, and the user mobile phone of the uplink transmission end is recorded in the node 1, and the uplink transmission node 3 is recorded in the remote camera.
  • Step 202 Extract an uplink transmission node recorded by the target transmission node.
  • each transmission node passing through the transmission path of the first stream data records its uplink transmission node
  • the manner of extracting the uplink transmission node recorded by the target transmission node may be adopted. And determining a next transmission node that receives the second stream data.
  • the uplink transmission node of the current transmission node and the first stream data may be correspondingly recorded in each of the transmission nodes through which the transmission path of the first stream data passes, and specifically, the node identifier of the uplink transmission node and the stream data of the first stream data may be And identifying the corresponding record, the step of extracting the uplink transmission node recorded by the target transmission node may include: extracting, according to the stream data identifier of the first stream data, an uplink transmission node corresponding to the record, thereby implementing extraction of the uplink transmission node.
  • Step 203 The second stream data is transmitted to the uplink transmission node, and the second stream data is transmitted by the uplink transmission node to another uplink transmission node recorded locally until the second stream data is used. Transfer to the originating transmission node.
  • the second stream data collected by the remote client is transmitted from the target transmission node to the uplink transmission node, thereby completing a partial transmission process of the second stream data.
  • the method according to the embodiment of the present invention can transmit the second stream data collected by the remote monitoring terminal to the initial transmission node according to the uplink transmission node information recorded in each transmission node of the transmission path of the first stream data, without the need for the second
  • the stream data creates a new transmission path, so the method effectively ensures the real-time performance of the stream data transmission. Since the method only needs one system to control the bidirectional transmission process of the stream data, the system overhead is small.
  • the target transmission node after receiving the first stream data transmitted from the originating transmission node, transmits the second stream data to the initial transmission node according to the transmission path of the first stream data, since the method of the present invention only needs The establishment of a transmission path can realize the bidirectional transmission of the stream data, eliminating the establishment of the second transmission path in the existing method, and eliminating the establishment time of the second transmission path, thereby ensuring the real-time performance of the stream data transmission.
  • the method of the present invention since the method of the present invention only needs to establish a transmission path, it is only necessary to use one system to control the data transmission, thereby eliminating the use of the second system in the existing method and reducing the system overhead.
  • FIG. 3 a schematic flowchart of a step of a method for bidirectional transmission of stream data according to a third embodiment of the present invention is shown, which may include the following steps:
  • Step 301 Receive first stream data that is transmitted from the initial transmission node to the target transmission node through the at least one intermediate transmission node, where the first stream data records a set of node identifiers of the transmission nodes that pass through the transmission process.
  • the user client sends the first stream data carrying the open flow instruction to the remote monitoring end, and the first stream data is first sent to the initial transmission node, and then transmitted to the target transmission node through at least one intermediate transmission node, and finally transmitted to the remote monitoring end. .
  • the first stream data sequentially passes through the user client, the initial transmission node, the intermediate transmission node, the target transmission node, and the remote monitoring terminal, and when the first stream data is transmitted to the target transmission node, the first stream data record There is a collection of node identifiers for each of the transit nodes that pass through it during transmission.
  • the first stream data sequentially passes through four transmission nodes: node 1, node 2, node 3, and node 4.
  • the first stream data received by the remote monitoring terminal carries a set of nodes (a, b, c, d), where a is node 1
  • the identifier of b is the identifier of node 2
  • c is the identifier of node 3
  • d is the identifier of node 4.
  • Step 302 Extract a set of node identifiers carried by the first stream data.
  • the remote monitoring starts to collect the video stream data after receiving the first stream data, and transmits the collected second stream data to the target transmission node.
  • the first stream data transmitted to the remote monitoring end carries the set of the node identifiers
  • the remote monitoring end may extract the set of node identifiers from the first stream data
  • the collected second stream data carries the set
  • the second stream of the set is transmitted to the target transport node.
  • the target transmission node extracts the set from the received second stream data, and determines a transmission path of the second stream data according to the plurality of node identifiers and the node identifier order in the set.
  • the target transmission node receives the second stream data collected by the remote monitoring terminal, where the second stream data carries the stream data identifier of the first stream data, and the target transmission node extracts the stream data identifier of the first stream data carried in the second stream data, And locally finding and extracting a set of node identifiers corresponding to the stream data identifier, and further determining a transmission path of the video stream data according to the set.
  • Step 303 Reversely transmit the second stream data to the originating transmission node via the at least one intermediate transmission node in reverse according to the set of the node identifiers.
  • the second stream collected by the remote monitoring terminal may be sequentially reversed according to the set.
  • Data is transmitted from the target transmission node to the originating transmission node, thereby implementing a bidirectional transmission process of the stream data through one transmission path. Therefore, the embodiment of the present invention implements reverse transmission of stream data using the same transmission path by defining the first stream data to record a set of node identifiers of the transmission nodes sequentially passing through the transmission process.
  • the target transmission node after receiving the first stream data transmitted from the originating transmission node, transmits the second stream data to the initial transmission node according to the transmission path of the first stream data, since the method of the present invention only needs The establishment of a transmission path can realize the bidirectional transmission of the stream data, eliminating the establishment of the second transmission path in the existing method, and eliminating the establishment time of the second transmission path, thereby ensuring the real-time performance of the stream data transmission.
  • the method of the present invention since the method of the present invention only needs to establish a transmission path, only one system is used for control, and the use of the second system is omitted, thereby reducing system overhead.
  • FIG. 4 a flow chart of the steps of a method for bidirectional transmission of stream data according to Embodiment 4 of the present invention is shown, which may specifically include the following steps:
  • Step 401 The first stream data is transmitted from the starting transport node to the target transport node via the at least one intermediate transport node.
  • the method of the embodiment of the present invention is applied to a scenario in which video stream data transmitted in a streaming manner exists, such as a remote monitoring scenario, a live video scenario, and the like.
  • the system for performing the method of the present invention includes a user client, a starting transport node, at least one intermediate transport node in the content distribution network, a target transport node, and a remote monitoring terminal.
  • the user client can be a terminal with a control program installed, such as a remote controller, a mobile phone, a computer, etc.;
  • the remote monitoring terminal is a monitoring device with a stream data collection function, such as a remote camera.
  • the initial transmission node After receiving the first stream data sent by the user client for the remote monitoring end, the initial transmission node transmits the first stream data carrying the open stream instruction to the target transmission node through the at least one intermediate transmission node, and the first stream data is finally determined by the target transmission node. Transfer to the user client.
  • the node transmission path of the first stream data may be allocated by the scheduling node, and the node path allocation request is sent to the scheduling node.
  • the specific process may include the following steps: transmitting the first stream data to the target transmission node from the starting transmission node through the at least one intermediate transmission node.
  • the scheduling request is sent to the scheduling node, where the scheduling request carries the node identifier of the target transit node, and receives the transmission path from the starting transit node to the target transit node delivered by the scheduling node.
  • the scheduling node may allocate a path for the first stream data according to the geographical location information of the area where the target transmission node is located, the load condition of each transmission node, and the like.
  • the first stream data is finally transmitted from the originating transmission node to the target transmission node via the at least one intermediate transmission node according to the transmission path allocated by the scheduling node.
  • Step 402 Receive second flow data that is transmitted by the target transmission node according to the searched transmission path after searching for the transmission path of the first flow data.
  • the user client After receiving the first stream data carrying the open flow instruction, the user client performs a video stream data collection operation, and transmits the collected video stream data, that is, the second stream data, to the target transmission node.
  • the target transmission node searches for the transmission path through which the first stream data passes, and transmits the collected second stream data from the target transmission node to the initial transmission node according to the reverse path of the found transmission path, thereby implementing according to one transmission path.
  • Two-way transmission of streaming data Two-way transmission of streaming data.
  • the target transmission node after receiving the first stream data transmitted from the originating transmission node, transmits the second stream data to the initial transmission node according to the transmission path of the first stream data, since the method of the present invention only needs The establishment of a transmission path can realize the bidirectional transmission of the stream data, eliminating the establishment of the second transmission path in the existing method, and eliminating the establishment time of the second transmission path, thereby ensuring the real-time performance of the stream data transmission.
  • the method of the present invention since the method of the present invention only needs to establish a transmission path, only one system is used for control, and the use of the second system is omitted, thereby reducing system overhead.
  • FIG. 5 is a block diagram showing the structure of a bidirectional transmission apparatus for streaming data according to Embodiment 5 of the present invention.
  • the bidirectional transmission device of the stream data in FIG. 5 includes:
  • the first stream data receiving module 501 is configured to receive first stream data that is transmitted from the initial transmission node to the target transmission node through the at least one intermediate transmission node.
  • the transmission path searching module 502 is configured to search for a transmission path of the first stream data.
  • the second stream data transmission module 503 is configured to transmit the second stream data to the originating transmission node according to the searched path.
  • the transmission path searching module is specifically configured to extract an uplink transmission node recorded by the target transmission node, and each transmission node that passes through the transmission path records an uplink transmission node.
  • the transmission path searching module is configured to: according to the stream data identifier of the first stream data, extract an uplink transmission node corresponding to the record, where the uplink transmission node corresponds to the first stream data. recording.
  • the second stream data transmission module is specifically configured to transmit the second stream data to the uplink transmission node, and the second stream data is transmitted by the uplink transmission node. To another upstream transmission node recorded locally until the second stream data is transmitted to the origination transmission node.
  • the transmission path searching module is specifically configured to extract a set of node identifiers carried by the first stream data, where the first stream data record has a transmission node that passes through the transmission process. A collection of node IDs.
  • the second stream data transmission module is configured to, in reverse, sequentially transmit the second stream data to the the at least one intermediate transmission node according to the set of the node identifiers. Start the transfer node.
  • the target transmission node after receiving the first stream data transmitted from the originating transmission node, transmits the second stream data to the initial transmission node according to the transmission path of the first stream data, since the method of the present invention only needs The establishment of a transmission path can realize the bidirectional transmission of the stream data, eliminating the establishment of the second transmission path in the existing method, and eliminating the establishment time of the second transmission path, thereby ensuring the real-time performance of the stream data transmission.
  • the method of the present invention since the method of the present invention only needs to establish a transmission path, it is only necessary to use one system to control the data transmission, thereby eliminating the use of the second system in the existing method and reducing the system overhead.
  • FIG. 6 is a block diagram showing the structure of a bidirectional transmission apparatus for streaming data according to Embodiment 6 of the present invention.
  • the bidirectional transmission device of the stream data in FIG. 6 includes:
  • the first stream data transmission module 601 is configured to transmit the first stream data to the target transmission node from the initial transmission node through the at least one intermediate transmission node.
  • the second stream data transmission module 602 is configured to receive second stream data that is transmitted by the target transmission node according to the searched transmission path after searching for the transmission path of the first stream data.
  • the device further includes:
  • a scheduling request sending module configured to send, to the scheduling node, a scheduling request, where the scheduling request carries the target transmission node, before the first transmission node transmits the first stream data to the target transmission node through the at least one intermediate transmission node Node identifier
  • a transmission path receiving module configured to receive a transmission path that is sent by the scheduling node from the initial transmission node to the target transmission node.
  • the device further includes:
  • a second stream data pushing module configured to transmit the second stream data to other target transmission nodes than the target transmission node that sends the second stream data.
  • the target transmission node after receiving the first stream data transmitted from the originating transmission node, transmits the second stream data to the initial transmission node according to the transmission path of the first stream data, since the method of the present invention only needs The establishment of a transmission path can realize the bidirectional transmission of the stream data, eliminating the establishment of the second transmission path in the existing method, and eliminating the establishment time of the second transmission path, thereby ensuring the real-time performance of the stream data transmission.
  • the method of the present invention since the method of the present invention only needs to establish a transmission path, only one system is used for control, and the use of the second system is omitted, thereby reducing system overhead.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • Those skilled in the art will appreciate that some or all of the functionality of some or all of the two-way transmission devices of streaming data in accordance with embodiments of the present invention may be implemented in practice using a microprocessor or digital signal processor (DSP).
  • DSP digital signal processor
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 7 illustrates a computing device that can implement a two-way transmission method of streaming data in accordance with the present invention.
  • the computing device conventionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720.
  • Memory 720 can be an electronic memory such as a flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • Memory 720 has a memory space 730 for program code 731 for performing any of the method steps described above.
  • storage space 730 for program code may include various program code 731 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 720 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 731', ie, code readable by a processor, such as 710, that when executed by a computing device causes the computing device to perform each of the methods described above step.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种流数据的双向传输方法和装置。所述方法包括:接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据;查找所述第一流数据的传输路径;按照所查找的传输路径将第二流数据传输至所述起始传输节点。由于本发明所述方法只需建立一条传输路径即可实现流数据的双向传输,省去了现有方法中第二条传输路径的建立,省去了第二条传输路径的建立时间,因此保证了流数据传输的实时性。同时,由于本发明所述方法只需建立一条传输路径,因此只需使用一套系统对流数据传输进行控制,从而省去了现有方法中第二套系统的使用,降低了系统开销。

Description

一种流数据的双向传输方法和装置
本申请要求在2016年12月30日提交中国专利局、申请号为201611270160.3、发明名称为“一种流数据的双向传输方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,具体涉及一种流数据的双向传输方法以及一种流数据的双向传输装置。
背景技术
流数据为可以采用流式传输的方式在网络上传输的数据,大型网站系统通常依赖于内容分发网络(Content Delivery Network,CDN)对流数据进行传输。
在远程监控技术中,用户客户端会通过内容分发网络向远程监控端发送携带开流指令的流数据,如携带开流指令的语音,远程监控端接收到携带开流指令的流数据后开始采集视频流数据,并将录制的视频流数据通过内容分发网络反馈给用户客户端,供用户查看。
目前为实现用户客户端与远程监控端的数据传输,需要建立两条传输路径,一条传输路径用于传输用户客户端发送的携带开流指令的流数据,另一条传输路径用于传输远程监控端采集的视频流数据。
虽然现有方法实现了用户客户端与远程监控端的双向数据传输,但是存在以下缺陷:需要使用两套系统控制两条传输路径的数据传输,然而两套系统的使用增加了系统开销;远程监控端在接收到用户客户端发送的携带开流指令的流数据后,需要先建立针对采集的视频流数据的传输路径,然而传输路径的建立需要耗费较多时间,从而导致数据传输的实时性较差。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的流数据的双向传输方法和相应的流数据的双向传输装 置。
依据本发明的一个方面,提供了一种流数据的双向传输方法,包括:
接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据;
查找所述第一流数据的传输路径;
按照所查找的传输路径将第二流数据传输至所述起始传输节点。
根据本发明的另一方面,提供了一种流数据的双向传输方法,包括:
从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点;
接收所述目标传输节点在查找所述第一流数据的传输路径后,按照所查找的传输路径传输的第二流数据。
根据本发明的另一方面,提供了一种流数据的双向传输装置,包括:
第一流数据接收模块,用于接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据;
传输路径查找模块,用于查找所述第一流数据的传输路径;
第二流数据传输模块,用于按照所查找的传输路径将第二流数据传输至所述起始传输节点。
根据本发明的另一方面,提供了一种流数据的双向传输装置,包括:
第一流数据传输模块,用于从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点;
第二流数据传输模块,用于接收所述目标传输节点在查找所述第一流数据的传输路径后,按照所查找的传输路径传输的第二流数据。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行所述的流数据的双向传输方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了所述的计算机程序。
依据本发明实施例,目标传输节点接收到从起始传输节点传输的第一流 数据后,按照第一流数据的传输路径将第二流数据传输至起始传输节点,由于本发明所述方法只需建立一条传输路径即可实现流数据的双向传输,省去了现有方法中第二条传输路径的建立,省去了第二条传输路径的建立时间,因此保证了流数据传输的实时性。同时,由于本发明所述方法只需建立一条传输路径,因此只需使用一套系统对流数据传输进行控制,从而省去了现有方法中第二套系统的使用,降低了系统开销。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示出了根据本发明实施例一的一种流数据的双向传输方法的步骤流程示意图;
图2示出了根据本发明实施例二的一种流数据的双向传输方法的步骤流程示意图;
图3示出了根据本发明实施例三的一种流数据的双向传输方法的步骤流程示意图;
图4示出了根据本发明实施例四的一种流数据的双向传输方法的步骤流程示意图;
图5示出了根据本发明实施例五的一种流数据的双向传输装置的结构框图;
图6示出了根据本发明实施例六的一种流数据的双向传输装置的结构框图;
图7示出了用于执行根据本发明的方法的计算设备的框图;
图8示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。
参照图1,示出了根据本发明实施例一的一种流数据的双向传输方法的步骤流程示意图,具体可以包括如下步骤:
步骤101,接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据。
本发明实施例所述的方法应用于存在以流式传输方式传输的视频流数据的场景,例如远程监控场景、视频直播场景等。
当本发明实施例应用于远程监控场景时,执行本发明所述方法的系统包括安装有控制程序的用户客户端、起始传输节点、内容分发网络中的至少一个中间传输节点、目标传输节点和远程监控端。其中,用户客户端可以为安装有控制程序的终端,如遥控器、手机、电脑等;远程监控端为具有流数据采集功能的监控设备,如远程摄像头等。
为开启远程监控端的数据采集功能,用户客户端会向远程监控端发送携带开流指令的第一流数据,如携带开流指令的语音流数据。具体地,用户客户端会将第一流数据发送至内容分发网络的起始传输节点,起始传输节点通过内容分发网络中的至少一个中间节点将该第一流数据发送至目标传输节点,最后目标传输节点将该第一流数据发送至远程监控端。起始传输节点可以通过多种方式选取,例如由调度分配、预先设定,从预设传输节点集群中随机选取等。
步骤102,查找第一流数据的传输路径。
远程控制端接收到目标传输节点发送的携带开流指令的第一流数据后, 启动流数据采集功能,开始采集视频流数据,并将采集的视频流数据即第二流数据传输至目标传输节点。
目标传输节点在接收到远程控制端发送的第二流数据后,查找第一流数据的传输路径,以将第二流数据按照第一流数据的传输路径的反向路径传输至起始传输节点,进一步传输至用户客户端供用户查看。
可以通过多种方法查找第一流数据的传输路径。例如,在第一流数据的传输过程中,传输路径经过的各个传输节点可以记录有其上行传输节点,可以通过提取目标传输节点记录的针对开流指令的上行传输节点,确定第一流数据的传输路径;或者,第一流数据可以携带其经过的传输路径所包含的所有传输节点的节点标识,并且所有节点标识按照第一流数据的流经顺序依次排列,即第一流数据可以携带节点标识序列,通过查找第一流数据携带的节点标识序列,确定第一流数据的传输路径。
步骤103,按照所查找的传输路径将第二流数据传输至所述起始传输节点。
在查找到第一流数据的传输路径后,根据第一流数据的传输路径的反向路径,将远程监控端采集的第二流数据从目标传输节点传输至起始传输节点,最终实现将第二流数据从远程监控端传送至用户客户端。例如,当第一流数据的传输路径为安装有控制程序的用户手机→节点1→节点2→节点3→远程摄像头时,第二流数据的传输路径为远程摄像头→节点3→节点2→节点1→用户手机。
具体地,当第一流数据流经的各个传输节点记录有其上行传输节点时,可以通过将第二流数据传输至当前传输节点的上行传输节点以及查找下一个上行传输节点的方式,确定第二流数据的下一段传输路径,按照上述方法,直至将第二流数据从目标传输节点传输至起始传输节点,进一步传输至用户客户端。当第一流数据携带按其流经顺序记录的节点标识序列时,可以根据该节点标识序列的反向,将第二流数据传输至用户客户端。
预对远程监控端进行关流操作时,用户客户端会向远程监控端发送携带关流指令的第三流数据,第三流数据按照第一流数据的传输路径传输至远程 监控端,远程监控端接收到第三流数据后停止采集视频流数据。
根据本发明实施例所述方法,用户客户端按照开流指令的传输路径向远程控制端发送携带第一流数据的开流指令、携带第三流数据的关流指令或携带其他指令的流数据,远程监控端按照第一流数据的传输路径的反向路径向用户客户端发送第二流数据。因此本发明实施例只需建立一条流数据的传输路径,使用一套系统进行控制,即可实现流数据的双向传输。
依据本发明实施例,目标传输节点接收到从起始传输节点传输的第一流数据后,按照第一流数据的传输路径将第二流数据传输至起始传输节点,由于本发明所述方法只需建立一条传输路径即可实现流数据的双向传输,省去了现有方法中第二条传输路径的建立,省去了第二条传输路径的建立时间,因此保证了流数据传输的实时性。同时,由于本发明所述方法只需建立一条传输路径,因此只需使用一套系统对流数据传输进行控制,从而省去了现有方法中第二套系统的使用,降低了系统开销。
参照图2,示出了根据本发明实施例二的一种流数据的双向传输方法的步骤流程示意图,具体可以包括如下步骤:
步骤201,接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据,所述传输路径经过的各传输节点记录有其上行传输节点。
本发明实施例所述方法可以应用于远程监控场景。用户客户端向远程监控端发送携带开流指令的第一流数据,以开启远程监控端的流数据采集功能。
在第一流数据的传输过程中,第一流数据首先被发送到内容分发网络的起始传输节点上,之后依次经过起始传输节点、中间传输节点和目标传输节点,并最终被传输至远程监控端,第一流数据的传输路径经过的各个传输节点记录有其上行传输节点。例如,第一流数据依次经过用户手机、节点1、节点2、节点3和远程摄像头,第一流数据的传输路径为节点1-节点2-节点3,在节点2中记录有其上行传输节点1,在节点3中记录有其上行传输节点2,同时在节点1中记录有其上行传输端用户手机,在远程摄像头中记录有 其上行传输节点3。
步骤202,提取所述目标传输节点记录的上行传输节点。
由于第一流数据的传输路径经过的各传输节点记录有其上行传输节点,因此当远程监控端采集的第二流数据传送至目标传输节点时,可以通过提取目标传输节点记录的上行传输节点的方式,确定接收第二流数据的下一传输节点。
实际中,可以在第一流数据的传输路径经过的各个传输节点中,将当前传输节点的上行传输节点和第一流数据对应记录,具体地可以将上行传输节点的节点标识与第一流数据的流数据标识对应记录,则所述提取目标传输节点记录的上行传输节点的步骤可以包括:根据第一流数据的流数据标识,提取对应记录的上行传输节点,从而实现上行传输节点的提取。
步骤203,将所述第二流数据传输至所述上行传输节点,由所述上行传输节点将所述第二流数据传输至本地记录的另一上行传输节点,直至将所述第二流数据传输至所述起始传输节点。
在提取到目标传输节点的上行传输节点后,将远程客户端采集的第二流数据从目标传输节点传送至上行传输节点,从而完成第二流数据的部分传输过程。同样提取该上行传输节点本地记录的其上行传输节点,进一步将第二流数据传输至该上行传输节点的上行传输节点,按照上述方法,直至将第二流数据传输至起始传输节点,起始传输节点将第二流数据传输至用户客户端供用户查看。
本发明实施例所述方法按照第一流数据的传输路径的各个传输节点中记录的上行传输节点信息,即可将远程监控端采集的第二流数据传输至起始传输节点,而无需为第二流数据新建传输路径,因此本方法有效保证了流数据传输的实时性。由于本方法仅需一套系统对流数据的双向传输过程进行控制,因此系统开销较小。
依据本发明实施例,目标传输节点接收到从起始传输节点传输的第一流数据后,按照第一流数据的传输路径将第二流数据传输至起始传输节点,由于本发明所述方法只需建立一条传输路径即可实现流数据的双向传输,省去 了现有方法中第二条传输路径的建立,省去了第二条传输路径的建立时间,因此保证了流数据传输的实时性。同时,由于本发明所述方法只需建立一条传输路径,因此只需使用一套系统对流数据传输进行控制,从而省去了现有方法中第二套系统的使用,降低了系统开销。
参照图3,示出了根据本发明实施例三的一种流数据的双向传输方法的步骤流程示意图,具体可以包括如下步骤:
步骤301,接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据,所述第一流数据记录有传输过程中顺次经过的各传输节点的节点标识的集合。
用户客户端向远程监控端发送携带开流指令的第一流数据,第一流数据首先被发送至起始传输节点,之后经过至少一个中间传输节点被传输至目标传输节点,最终被传送至远程监控端。
在第一流数据的传输过程中,第一流数据依次经过用户客户端、起始传输节点、中间传输节点、目标传输节点和远程监控端,当第一流数据传输至目标传输节点时,第一流数据记录有其传输过程中顺次经过的各个传输节点的节点标识的集合。
例如,第一流数据依次经过节点1、节点2、节点3和节点4四个传输节点,则远程监控端接收的第一流数据携带节点集合(a、b、c、d),其中a为节点1的标识,b为节点2的标识,c为节点3的标识,d为节点4的标识。
步骤302,提取所述第一流数据携带的节点标识的集合。
远程监控到接收到第一流数据后开始采集视频流数据,并将采集的第二流数据传输至目标传输节点。
具体地,传输至远程监控端的第一流数据携带有上述节点标识的集合,远程监控端可以从第一流数据中提取节点标识的集合,并使采集的第二流数据携带该集合,之后将携带有该集合的第二流数据传输至目标传输节点。目标传输节点会从接收到的第二流数据中提取该集合,并根据该集合中多个节点标识及节点标识顺序确定第二流数据的传输路径。
或者,在向远程监控端传输第一流数据的过程中,当第一流数据到达目 标传输节点时,将第一流数据记录的节点标识的集合存储在目标传输节点本地,并且记录该集合与第一流数据的流数据标识的对应关系。目标传输节点接收远程监控端采集的第二流数据,该第二流数据中携带有第一流数据的流数据标识,目标传输节点会提取第二流数据中携带的第一流数据的流数据标识,并在本地查找并提取与该流数据标识对应的节点标识的集合,进一步会根据该集合确定视频流数据的传输路径。
步骤303,按照所述节点标识的集合反向顺次将所述第二流数据经至少一个中间传输节点传输至所述起始传输节点。
在提取到第一流数据携带的节点标识的集合后,由于集合中的多个节点标识是按照传输节点的途经顺序依次记录的,因此可以按照集合反向顺次将远程监控端采集的第二流数据从目标传输节点传输至起始传输节点,从而通过一条传输路径实现流数据的双向传输过程。因此,本发明实施例通过限定第一流数据记录有传输过程中顺次经过的各传输节点的节点标识的集合,实现使用同一传输路径反向传输流数据。
依据本发明实施例,目标传输节点接收到从起始传输节点传输的第一流数据后,按照第一流数据的传输路径将第二流数据传输至起始传输节点,由于本发明所述方法只需建立一条传输路径即可实现流数据的双向传输,省去了现有方法中第二条传输路径的建立,省去了第二条传输路径的建立时间,因此保证了流数据传输的实时性。同时,由于本发明所述方法只需建立一条传输路径,因此只需使用一套系统进行控制,省去了第二套系统的使用,从而降低了系统开销。
参照图4,示出了根据本发明实施例四的一种流数据的双向传输方法的步骤流程示意图,具体可以包括如下步骤:
步骤401,从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点。
本发明实施例所述的方法应用于存在以流式传输方式传输的视频流数据的场景,例如远程监控场景、视频直播场景等。
当本发明实施例应用于远程监控场景时,执行本发明所述方法的系统包 括用户客户端、起始传输节点、内容分发网络中的至少一个中间传输节点、目标传输节点和远程监控端。其中,用户客户端可以为安装有控制程序的终端,如遥控器、手机、电脑等;远程监控端为具有流数据采集功能的监控设备,如远程摄像头等。
起始传输节点接收到用户客户端发送的针对远程监控端的第一流数据后,会经过至少一个中间传输节点将携带开流指令的第一流数据传输至目标传输节点,第一流数据最终由目标传输节点传输至用户客户端。
第一流数据的节点传输路径可以由调度节点分配,向调度节点发送节点路径分配请求,具体过程可以包括以下步骤:在从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点之前,向调度节点发送调度请求,调度请求携带目标传输节点的节点标识;接收调度节点下发的从起始传输节点至目标传输节点的传输路径。
调度节点可以根据目标传输节点所在区域的地理位置信息、各个传输节点负载情况等因素,为第一流数据分配路径。按照调度节点分配的传输路径,将第一流数据从起始传输节点途经至少一个中间传输节点最终传输至目标传输节点。
步骤402,接收所述目标传输节点在查找所述第一流数据的传输路径后,按照所查找的传输路径传输的第二流数据。
用户客户端接收到携带开流指令的第一流数据后,会进行视频流数据采集操作,并将采集的视频流数据即第二流数据传输至目标传输节点。目标传输节点会查找第一流数据所经过的传输路径,并根据查找到的传输路径的反向路径,将采集的第二流数据从目标传输节点传输至起始传输节点,从而根据一条传输路径实现流数据的双向传输。对于第一流数据的传输路径的查找过程可以参考上述多个方法实施例,本发明实施例在此不再赘述。
依据本发明实施例,目标传输节点接收到从起始传输节点传输的第一流数据后,按照第一流数据的传输路径将第二流数据传输至起始传输节点,由于本发明所述方法只需建立一条传输路径即可实现流数据的双向传输,省去了现有方法中第二条传输路径的建立,省去了第二条传输路径的建立时间, 因此保证了流数据传输的实时性。同时,由于本发明所述方法只需建立一条传输路径,因此只需使用一套系统进行控制,省去了第二套系统的使用,从而降低了系统开销。
图5示出了根据本发明实施例五的一种流数据的双向传输装置的结构框图。图5中的流数据的双向传输装置包括:
第一流数据接收模块501,用于接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据。
传输路径查找模块502,用于查找所述第一流数据的传输路径。
第二流数据传输模块503,用于按照所查找的传输路径将第二流数据传输至所述起始传输节点。
本发明实施例中,优选地,所述传输路径查找模块,具体用于提取所述目标传输节点记录的上行传输节点,所述传输路径经过的各传输节点记录有其上行传输节点。
本发明实施例中,优选地,所述传输路径查找模块,具体用于根据所述第一流数据的流数据标识,提取对应记录的上行传输节点,所述上行传输节点与所述第一流数据对应记录。
本发明实施例中,优选地,所述第二流数据传输模块,具体用于将所述第二流数据传输至所述上行传输节点,由所述上行传输节点将所述第二流数据传输至本地记录的另一上行传输节点,直至将所述第二流数据传输至所述起始传输节点。
本发明实施例中,优选地,所述传输路径查找模块,具体用于提取所述第一流数据携带的节点标识的集合,所述第一流数据记录有传输过程中顺次经过的各传输节点的节点标识的集合。
本发明实施例中,优选地,所述第二流数据传输模块,具体用于按照所述节点标识的集合反向顺次将所述第二流数据经至少一个中间传输节点传输至所述起始传输节点。
依据本发明实施例,目标传输节点接收到从起始传输节点传输的第一流数据后,按照第一流数据的传输路径将第二流数据传输至起始传输节点,由 于本发明所述方法只需建立一条传输路径即可实现流数据的双向传输,省去了现有方法中第二条传输路径的建立,省去了第二条传输路径的建立时间,因此保证了流数据传输的实时性。同时,由于本发明所述方法只需建立一条传输路径,因此只需使用一套系统对流数据传输进行控制,从而省去了现有方法中第二套系统的使用,降低了系统开销。
图6示出了根据本发明实施例六的一种流数据的双向传输装置的结构框图。图6中的流数据的双向传输装置包括:
第一流数据传输模块601,用于从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点。
第二流数据传输模块602,用于接收所述目标传输节点在查找所述第一流数据的传输路径后,按照所查找的传输路径传输的第二流数据。
本发明实施例中,优选地,所述装置还包括:
调度请求发送模块,用于在所述从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点之前,向调度节点发送调度请求,所述调度请求携带所述目标传输节点的节点标识;
传输路径接收模块,用于接收所述调度节点下发的从所述起始传输节点至所述目标传输节点的传输路径。
本发明实施例中,优选地,所述装置还包括:
第二流数据推送模块,用于将所述第二流数据传输至除发送所述第二流数据的目标传输节点之外的其他目标传输节点。
依据本发明实施例,目标传输节点接收到从起始传输节点传输的第一流数据后,按照第一流数据的传输路径将第二流数据传输至起始传输节点,由于本发明所述方法只需建立一条传输路径即可实现流数据的双向传输,省去了现有方法中第二条传输路径的建立,省去了第二条传输路径的建立时间,因此保证了流数据传输的实时性。同时,由于本发明所述方法只需建立一条传输路径,因此只需使用一套系统进行控制,省去了第二套系统的使用,从而降低了系统开销。
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征 的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的流数据的双向传输设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图7示出了可以实现根据本发明的流数据的双向传输方法的计算设备。该计算设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图8所述的便携式或者固定存储单元。该存储单元可以具有与图7的计算设备中的存储器720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码731’,即可以由例如诸如710之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限 制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。

Claims (20)

  1. 一种流数据的双向传输方法,包括:
    接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据;
    查找所述第一流数据的传输路径;
    按照所查找的传输路径将第二流数据传输至所述起始传输节点。
  2. 根据权利要求1所述的方法,其中,所述传输路径经过的各传输节点记录有其上行传输节点;
    所述查找所述第一流数据的传输路径包括:
    提取所述目标传输节点记录的上行传输节点。
  3. 根据权利要求2所述的方法,其中,所述上行传输节点与所述第一流数据对应记录;
    所述提取所述目标传输节点记录的上行传输节点包括:
    根据所述第一流数据的流数据标识,提取对应记录的上行传输节点。
  4. 根据权利要求2所述的方法,其中,所述按照所查找的传输路径将第二流数据传输至所述起始传输节点包括:
    将所述第二流数据传输至所述上行传输节点,由所述上行传输节点将所述第二流数据传输至本地记录的另一上行传输节点,直至将所述第二流数据传输至所述起始传输节点。
  5. 根据权利要求1所述的方法,其中,所述第一流数据记录有传输过程中顺次经过的各传输节点的节点标识的集合;
    所述查找所述第一流数据的传输路径包括:
    提取所述第一流数据携带的节点标识的集合。
  6. 根据权利要求5所述的方法,其中,所述按照所查找的传输路径将第二流数据传输至所述起始传输节点包括:
    按照所述节点标识的集合反向顺次将所述第二流数据经至少一个中间传输节点传输至所述起始传输节点。
  7. 一种流数据的双向传输方法,包括:
    从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点;
    接收所述目标传输节点在查找所述第一流数据的传输路径后,按照所查找的传输路径传输的第二流数据。
  8. 根据权利要求7所述的方法,其中,在所述从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点之前,所述方法还包括:
    向调度节点发送调度请求,所述调度请求携带所述目标传输节点的节点标识;
    接收所述调度节点下发的从所述起始传输节点至所述目标传输节点的传输路径。
  9. 根据权利要求7所述的方法,其中,所述方法还包括:
    将所述第二流数据传输至除发送所述第二流数据的目标传输节点之外的其他目标传输节点。
  10. 一种流数据的双向传输装置,包括:
    第一流数据接收模块,用于接收从起始传输节点经过至少一个中间传输节点传输至目标传输节点的第一流数据;
    传输路径查找模块,用于查找所述第一流数据的传输路径;
    第二流数据传输模块,用于按照所查找的传输路径将第二流数据传输至所述起始传输节点。
  11. 根据权利要求10所述的装置,其中:
    所述传输路径查找模块,具体用于提取所述目标传输节点记录的上行传输节点,所述传输路径经过的各传输节点记录有其上行传输节点。
  12. 根据权利要求11所述的装置,其中:
    所述传输路径查找模块,具体用于根据所述第一流数据的流数据标识,提取对应记录的上行传输节点,所述上行传输节点与所述第一流数据对应记录。
  13. 根据权利要求11所述的装置,其中:
    所述第二流数据传输模块,具体用于将所述第二流数据传输至所述上行传输节点,由所述上行传输节点将所述第二流数据传输至本地记录的另一上行传输节点,直至将所述第二流数据传输至所述起始传输节点。
  14. 根据权利要求10所述的装置,其中:
    所述传输路径查找模块,具体用于提取所述第一流数据携带的节点标识的集合,所述第一流数据记录有传输过程中顺次经过的各传输节点的节点标识的集合。
  15. 根据权利要求14所述的装置,其中:
    所述第二流数据传输模块,具体用于按照所述节点标识的集合反向顺次将所述第二流数据经至少一个中间传输节点传输至所述起始传输节点。
  16. 一种流数据的双向传输装置,包括:
    第一流数据传输模块,用于从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点;
    第二流数据传输模块,用于接收所述目标传输节点在查找所述第一流数据的传输路径后,按照所查找的传输路径传输的第二流数据。
  17. 根据权利要求16所述的装置,其中,所述装置还包括:
    调度请求发送模块,用于在所述从起始传输节点经过至少一个中间传输节点将第一流数据传输至目标传输节点之前,向调度节点发送调度请求,所述调度请求携带所述目标传输节点的节点标识;
    传输路径接收模块,用于接收所述调度节点下发的从所述起始传输节点至所述目标传输节点的传输路径。
  18. 根据权利要求16所述的装置,其中,所述装置还包括:
    第二流数据推送模块,用于将所述第二流数据传输至除发送所述第二流数据的目标传输节点之外的其他目标传输节点。
  19. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-6中的任一个所 述的流数据的双向传输方法。
  20. 一种计算机可读介质,其中存储了如权利要求19所述的计算机程序。
PCT/CN2017/119640 2016-12-30 2017-12-29 一种流数据的双向传输方法和装置 WO2018121705A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611270160.3A CN106534220A (zh) 2016-12-30 2016-12-30 一种流数据的双向传输方法和装置
CN201611270160.3 2016-12-30

Publications (1)

Publication Number Publication Date
WO2018121705A1 true WO2018121705A1 (zh) 2018-07-05

Family

ID=58336379

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/119640 WO2018121705A1 (zh) 2016-12-30 2017-12-29 一种流数据的双向传输方法和装置

Country Status (2)

Country Link
CN (1) CN106534220A (zh)
WO (1) WO2018121705A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810280A (zh) * 2020-06-15 2021-12-17 北京灵汐科技有限公司 一种数据包传输方法及系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534220A (zh) * 2016-12-30 2017-03-22 北京奇虎科技有限公司 一种流数据的双向传输方法和装置
CN109218190B (zh) 2017-06-29 2020-08-07 华为技术有限公司 一种传输路径的确定方法及节点
CN113159145A (zh) * 2018-04-28 2021-07-23 华为技术有限公司 一种特征工程编排方法及装置

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155178A (zh) * 2006-09-30 2008-04-02 华为技术有限公司 多协议标签交换中建立双向lsp的方法、装置和系统
CN101795223A (zh) * 2009-12-14 2010-08-04 福建星网锐捷网络有限公司 组播安全控制方法、系统及传输节点
CN101945049A (zh) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 多协议标签交换系统、节点设备及双向隧道的建立方法
CN102045772A (zh) * 2009-10-21 2011-05-04 华为技术有限公司 一种数据传输方法及装置
CN102802043A (zh) * 2012-08-10 2012-11-28 东方网力科技股份有限公司 分布式监控系统及其视频点播方法及装置
US20130219081A1 (en) * 2012-02-21 2013-08-22 Futurewei Technologies, Inc. Method and Apparatus for Adaptive Forwarding Strategies in Content-Centric Networking
CN104768078A (zh) * 2015-04-16 2015-07-08 无锡天脉聚源传媒科技有限公司 一种视频传输方法及系统
US20150312300A1 (en) * 2014-04-28 2015-10-29 Palo Alto Research Center Incorporated Method and apparatus for exchanging bidirectional streams over a content centric network
CN105872001A (zh) * 2015-12-21 2016-08-17 乐视云计算有限公司 基于p2p网络的数据传输方法及装置
CN106534220A (zh) * 2016-12-30 2017-03-22 北京奇虎科技有限公司 一种流数据的双向传输方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2909503B1 (fr) * 2006-12-04 2009-10-09 Alcatel Sa Procede d'etablissement d'une connexion bidirectionnelle
CN102055672B (zh) * 2010-12-27 2013-03-13 北京星网锐捷网络技术有限公司 一种数据流传输路径的控制方法、装置和路由设备
CN102624609A (zh) * 2012-02-28 2012-08-01 华为技术有限公司 反向bfd报文发送、通知路径的方法及装置
KR102118687B1 (ko) * 2013-11-15 2020-06-03 삼성전자주식회사 SDN(Software-defined networking)에서 네트워크 장애 해소를 위한 컨트롤러 및 스위치의 동작 방법과, 이를 위한 컨트롤러 및 스위치

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155178A (zh) * 2006-09-30 2008-04-02 华为技术有限公司 多协议标签交换中建立双向lsp的方法、装置和系统
CN102045772A (zh) * 2009-10-21 2011-05-04 华为技术有限公司 一种数据传输方法及装置
CN101795223A (zh) * 2009-12-14 2010-08-04 福建星网锐捷网络有限公司 组播安全控制方法、系统及传输节点
CN101945049A (zh) * 2010-09-20 2011-01-12 中兴通讯股份有限公司 多协议标签交换系统、节点设备及双向隧道的建立方法
US20130219081A1 (en) * 2012-02-21 2013-08-22 Futurewei Technologies, Inc. Method and Apparatus for Adaptive Forwarding Strategies in Content-Centric Networking
CN102802043A (zh) * 2012-08-10 2012-11-28 东方网力科技股份有限公司 分布式监控系统及其视频点播方法及装置
US20150312300A1 (en) * 2014-04-28 2015-10-29 Palo Alto Research Center Incorporated Method and apparatus for exchanging bidirectional streams over a content centric network
CN104768078A (zh) * 2015-04-16 2015-07-08 无锡天脉聚源传媒科技有限公司 一种视频传输方法及系统
CN105872001A (zh) * 2015-12-21 2016-08-17 乐视云计算有限公司 基于p2p网络的数据传输方法及装置
CN106534220A (zh) * 2016-12-30 2017-03-22 北京奇虎科技有限公司 一种流数据的双向传输方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810280A (zh) * 2020-06-15 2021-12-17 北京灵汐科技有限公司 一种数据包传输方法及系统

Also Published As

Publication number Publication date
CN106534220A (zh) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2018121705A1 (zh) 一种流数据的双向传输方法和装置
US10474691B2 (en) Micro-staging device and method for micro-staging
WO2018121405A1 (zh) 一种流数据的传输方法和装置
US20130336323A1 (en) Optimized bi-directional communication in an information centric network
WO2014106384A1 (zh) 一种监控录像信息提供方法、装置及视频监控系统
CN102843442B (zh) 用于配置联网的照相机的方法
WO2015062499A1 (zh) 一种数据传输方法及装置
US20150312296A1 (en) Method and device for pushing multimedia resource and display terminal
WO2016000507A1 (zh) 省流量模式搜索服务的方法、服务器、客户端和系统
WO2015043455A1 (zh) 数据传输方法、设备及系统
US20150088995A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
CN109788247B (zh) 一种监控指令识别的方法和装置
CN103685343A (zh) 文件传输方法和系统
CN114640726B (zh) 报文处理方法、设备、系统及存储介质
US20220264281A1 (en) Peripheral Video Presence Detection
WO2018121681A1 (zh) 一种远程开启流数据传输的方法和装置
WO2020125544A1 (zh) 一种分布式图像分析方法、系统及存储介质
CN104813610A (zh) 提供多个内容项目显示在多个设备上
US9838495B2 (en) Managing data acquisition
CN104270603A (zh) 获取视频流的方法和监控系统
CN105915930A (zh) 一种视频文件发送方法及装置
WO2018121739A1 (zh) 流数据的传输方法和装置
US10498787B2 (en) Communication apparatus, communication method, and program
CN106453663A (zh) 改进的基于云服务的存储扩容方法及装置
CN103209181A (zh) 一种linux网络架构下应用连接防火墙的实现方法

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

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

Country of ref document: EP

Kind code of ref document: A1