WO2016095510A1 - Path selection method, device and system - Google Patents

Path selection method, device and system Download PDF

Info

Publication number
WO2016095510A1
WO2016095510A1 PCT/CN2015/084000 CN2015084000W WO2016095510A1 WO 2016095510 A1 WO2016095510 A1 WO 2016095510A1 CN 2015084000 W CN2015084000 W CN 2015084000W WO 2016095510 A1 WO2016095510 A1 WO 2016095510A1
Authority
WO
WIPO (PCT)
Prior art keywords
relay
shared data
receiving
network
indicate
Prior art date
Application number
PCT/CN2015/084000
Other languages
French (fr)
Chinese (zh)
Inventor
蔡云
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016095510A1 publication Critical patent/WO2016095510A1/en

Links

Images

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a path selection method, device, and system.
  • WebRTC Web Real-Time Communication
  • Real-time multimedia communication technology mainly includes real-time video communication technology and real-time audio communication technology.
  • the division from the perspective of the number of receiving devices can be divided into a two-party conference mode and a multi-party conference mode.
  • the two-party conference mode is that the first device is connected to the receiving device, the first device transmits the shared data to the receiving device, and the receiving device receives the shared data sent by the first device.
  • the multi-party conference mode is that the first device simultaneously connects at least two receiving devices.
  • the shared data is transmitted by using the WebRTC technology, and the first device is configured to transmit the shared data point-to-point to all the receiving devices, that is, a first device and each receiving device are established.
  • Linking, and the shared data is transmitted by the first device to each receiving device, thereby realizing the transmission of the shared data in the multi-party conference mode.
  • the first device connects a larger number of receiving devices and simultaneously performs shared data transmission, since the first device needs to transmit the shared data to each receiving device, the load of the first device is compared. Big problem.
  • the embodiment of the present invention provides a path selection method, device, and system, which can solve the problem in the prior art when the path selection device connects a large number of receiving devices and simultaneously performs shared data transmission, because the path selection device needs to transmit the shared data to Each receiving device causes a problem that the path selection device has a large load.
  • the present invention provides a path selection method, which is applied to a network device, and the method includes:
  • Determining, by the network device, the relay device and the receiving device in the second device and the third device according to a preset rule, and generating path information, where the path information is used to indicate that the first device is in the middle Transmitting, by the device, the shared data, the relay device transmitting the shared data transmitted by the first device to the receiving device;
  • the network device sends a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes the path information.
  • the determining, by the network device, the relay device and the receiving device in the second device and the third device according to the preset rule including:
  • the network device acquires a distribution amount of the second device and a distribution amount of the third device, where a distribution amount of the second device is used to indicate a maximum number of devices that can establish a connection with the second device, where The distribution amount of the third device is used to indicate the maximum number of devices that can establish a connection with the third device;
  • the network device uses, as the relay device, a device with a large amount of distribution in the second device and the third device, and uses a device with a smaller distribution amount in the second device and the third device as The receiving device.
  • the determining, by the network device, the relay device and the receiving device in the second device and the third device according to a preset rule including:
  • the network device acquires a relay delay of the second device and a relay delay of the third device, where a relay delay of the second device is used to indicate that the first device uses the shared data Transmitted to the second device, where the second device transmits the shared data to the third device, and the relay delay of the third device is used to indicate that the first device will Transmitting, by the third device, the time when the shared data is transmitted by the third device to the second device;
  • the network device uses, as the relay device, a device with a smaller relay delay in the second device and the third device, and delays a relay in the second device and the third device.
  • a large device acts as the receiving device.
  • the method further includes:
  • the network device sends a first transmission message to the first device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device, so that the first device sends the
  • the relay device transmits the shared data.
  • the method includes:
  • the network device sends a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device receives the The device transmits the shared data.
  • the present invention provides a path selection method, which is applied to a path selection device, where the path selection device is specifically a first device, and the method includes:
  • the first device sends a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device and the device according to a preset rule. Determining the relay device and the receiving device in the third device, and generating path information, where the path information is used to indicate that the first device transmits shared data to the relay device, and the relay device The shared data transmitted by the device is transmitted to the receiving device;
  • the first device receives a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes the path information.
  • the first device establishes a connection with the relay device according to the first transmission message, and transmits the shared data to the relay device.
  • the present invention provides a network device, including:
  • a receiving unit configured to receive a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device;
  • a processing unit configured to be in the second device and the third device according to a preset rule Determining a relay device and a receiving device, and generating path information, the path information being used to indicate that the first device transmits shared data to the relay device, and the relay device transmits the shared data by the first device Transmitting to the receiving device;
  • a sending unit configured to send a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes the path information.
  • the network device further includes an obtaining unit, configured to acquire a distribution amount of the second device and a distribution amount of the third device, where the distribution amount of the second device is used to indicate that the connection with the second device is The maximum number of devices, the amount of distribution of the third device is used to indicate the maximum number of devices capable of establishing a connection with the third device;
  • the processing unit is further configured to use, as the relay device, a device with a large amount of distribution in the second device and the third device, and distribute the amount in the second device and the third device.
  • a small device acts as the receiving device.
  • the acquiring unit is further configured to acquire a relay delay of the second device and a relay delay of the third device, where a relay delay of the second device is used to indicate that the first device Transmitting the shared data to the second device, and then using the second device to transmit the shared data to the third device, where the relay delay of the third device is used to indicate the Transmitting, by the first device, the shared data to the third device, and then using the third device to transmit the shared data to the second device;
  • the processing unit is further configured to use, as the relay device, a device with a smaller relay delay in the second device and the third device, and the second device and the third device A device having a large delay is used as the receiving device.
  • the sending unit is further configured to send a first transmission message to the first device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device, so that the first The device transmits the shared data to the relay device.
  • the receiving unit is further configured to receive first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data;
  • the sending unit is further configured to send a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device Transmitting the shared data to the receiving device.
  • the present invention provides a path selection device, where the path selection device is specifically a first device, including:
  • a sending unit configured to send a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device according to a preset rule. And determining, by the third device, the relay device and the receiving device, and generating path information, where the path information is used to instruct the first device to transmit shared data to the relay device, where the relay device The shared data transmitted by the first device is transmitted to the receiving device;
  • a receiving unit configured to receive a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes the path information.
  • the receiving unit is further configured to receive a first transmission message that is sent by the network device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device;
  • the first device further includes a connection unit, configured to establish a connection with the relay device according to the first transmission message;
  • the sending unit is further configured to transmit the shared data to the relay device.
  • the present invention provides a transmission system, including a network device, a path selection device, and at least two other devices;
  • the network device is the network device described in any one of the possible implementation manners of the third aspect or the third aspect;
  • the first device is the path selection device described in the fourth aspect or any one of the possible implementation manners of the fourth aspect.
  • the network device receives a data sharing request message sent by the first device, determines a relay device and a receiving device in the second device and the third device according to a preset rule, and generates The path information sends a data sharing confirmation message to the first device, the second device, and the third device.
  • the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device.
  • the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device
  • the load of the first device is large.
  • FIG. 1 is a schematic flowchart of a path selection method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another path selection method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of still another path selection method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a network device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a path selection device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another network device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another path selection device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a transmission system according to an embodiment of the present invention.
  • the embodiment of the invention provides a path selection method, which is applied to a network device.
  • the three devices share data as an example.
  • the three devices are path selection devices (the path selection device may also be the specific device in each embodiment of the present invention), the second device and the second device.
  • the three devices but the present invention is not limited to three devices.
  • the path selection method provided by the embodiment of the present invention, as shown in FIG. 1, may include the following steps:
  • the network device receives the data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device.
  • the network device may be a WebRTC server, or may be another server.
  • the first device may be an electronic device such as a laptop or a tablet.
  • the present invention is not specifically limited.
  • the data sharing request message may include an identifier of the first device, an identifier of the second device, and an identifier of the third device.
  • the content of the data sharing request message is not specifically limited by the present invention.
  • the network device determines the relay device and the receiving device in the second device and the third device according to a preset rule, and generates path information.
  • the relay device and the receiving device may be determined in the second device and the third device in two ways. In the first mode, it can be determined according to the distribution amount of the device; in the second mode, it can be determined according to the relay delay of the device.
  • the network device can be determined according to the amount of distribution.
  • the distribution of a device is used to indicate the maximum number of devices that can establish a connection with the device.
  • the network device can obtain the distribution amount of the second device and the distribution amount of the third device; the device with the larger distribution amount in the second device and the third device is used as the relay device, and the second device and the third device are A device with a small amount of distribution is used as a receiving device.
  • the relay device is configured to receive the shared data transmitted by the first device, and transmit the received shared data to the receiving device.
  • the distribution amount of the second device is used to indicate the maximum number of devices that can establish a connection with the second device
  • the distribution amount of the third device is used to indicate the maximum number of devices that can establish a connection with the third device.
  • the network device may be determined according to the relay delay.
  • the relay delay of a device is used to indicate that the device receives shared data, and then the device will share The time it takes to transfer data to another device.
  • the network device may obtain the relay delay of the second device and the relay delay of the third device; and use the device with the smaller relay delay in the second device and the third device as the relay device, and the second device A device with a large relay delay in the device and the third device functions as a receiving device.
  • the relay delay of the second device is used to indicate the time used by the first device to transmit the shared data to the second device, and then the second device transmits the shared data to the third device, and the relay delay of the third device And a time for instructing the first device to transmit the shared data to the third device, and then transmitting, by the third device, the shared data to the second device.
  • the path information is a transmission path of the shared data.
  • the path information is used to instruct the first device to transmit the shared data to the relay device, and the relay device transmits the received shared data transmitted by the first device to the receiving device.
  • the network device sends a data sharing confirmation message to the first device, the second device, and the third device.
  • the data sharing confirmation message includes path information.
  • the first device may transmit the shared data to the relay according to the path information.
  • the relay device After receiving the shared data transmitted by the first device, the relay device transmits the received shared data transmitted by the first device to the receiving device according to the data sharing confirmation message. At this time, the first device can transmit the shared data to the Second device and third device.
  • the first device transmits the shared data to the relay device according to the path information, specifically:
  • the network device sends a first transmission message to the first device.
  • the first transmission message may be sent by the network device to the first device together with the data sharing confirmation message, where the first transmission message is used to indicate the first device and the relay.
  • a connection is established between the devices so that the first device transmits the shared data to the relay device.
  • the relay device transmits the received shared data to the receiving device according to the path information, including:
  • the network device receives the first state information sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data, and the network device sends the information to the relay device.
  • the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device transmits the shared data to the receiving device.
  • the network device receives the data sharing request message sent by the first device, determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information, and The first device, the second device, and the third device send a data sharing confirmation message.
  • the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device.
  • the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device
  • the load of the first device is large.
  • the embodiment of the present invention provides another path selection method, which is optionally applied to data sharing in a multi-party conference mode.
  • the multi-party conference mode is a first device connecting at least two receiving devices, wherein the first device is configured to transmit the shared data point-to-point to all the receiving devices, that is, a link is established between the first device and each receiving device.
  • the shared data is transmitted by the first device to each receiving device, thereby implementing shared data transmission in the multi-party conference mode.
  • the WebRTC technology can only support the first device to connect a small number of receiving devices to simultaneously transmit shared data.
  • the shared data is transmitted to each receiving device, which causes the first device to load a large amount.
  • the shared data may be a video resource, may be an audio resource, etc., and the present invention is not specifically limited.
  • N devices are taken as an example, where N is an integer greater than 3.
  • the five devices are the first device, the second device, and the third device, respectively.
  • the network device receives a data sharing request message of the first device.
  • the data sharing request message is used to request to transmit the shared data to the second device, the third device, the fourth device, and the fifth device.
  • the network device may be a WebRTC server, or may be another server.
  • the first device may be an electronic device such as a notebook computer or a tablet computer.
  • the present invention is not specifically limited.
  • the data sharing request message may include an identifier of the first device, an identifier of the second device, an identifier of the third device, an identifier of the fourth device, and an identifier of the fifth device, where the data sharing request message is included
  • the content is not specifically limited in the present invention.
  • the network device determines the relay device and the receiving device in the second device, the third device, the fourth device, and the fifth device according to the preset rule, and generates path information.
  • the number of the relay device and the receiving device may be more than one, where the number of the relay device and the receiving device is Values, the invention is not specifically limited.
  • two relay devices and two receiving devices are taken as an example, but the present invention is not limited thereto.
  • the relay device and the receiving device may be determined in the second device, the third device, the fourth device, and the fifth device in two manners.
  • the first mode it is determined by the distribution amount of the device that the distribution amount of one device is used to indicate the maximum number of devices capable of establishing a connection with the device.
  • the second mode the relay delay of the device may be determined, and the relay delay of one device is used to indicate the time taken by the device to receive the shared data, and then the shared data is transmitted by the device to the other device.
  • the network device can obtain the distribution amount of each device; the device with a larger amount of distribution among the devices is used as the relay device, and the device with a smaller amount of distribution among the devices is used as the receiving device, where The amount of distribution of each device is used to indicate the maximum number of devices that can establish connections with other devices.
  • the network device can obtain the relay delay of each device; the device with the smaller relay delay in each device is used as the relay device, and the device with the larger relay delay in each device is received. device.
  • the distribution amount of each device and the relay delay may be combined to determine the relay.
  • Equipment and receiving equipment when the distribution of the multiple devices is greater than or equal to the preset threshold, the device with a smaller relay delay in each device can be used as the relay device, and the device with a larger relay delay can be used as the receiving device.
  • the preset threshold may be set by using an actual situation.
  • the value of the preset threshold is not specifically implemented by the present invention. limit.
  • each device that needs to share data may be in the same network or may not be in the same network.
  • the first device, the second device, and the third device are respectively in the same network.
  • the two application scenarios in which the second device, the fourth device, and the fifth device are not in the same network are taken as an example for description.
  • the first device, the second device, and the third device are in the same network
  • the second device can be used as the first relay device
  • the third device is used as the receiving device
  • a relay device is configured to receive the shared data transmitted by the first device, and transmit the received shared data to the receiving device.
  • the network device acquires the distribution amount of the first device, the second device, and the third device.
  • the distribution amount of the first device is used to indicate the maximum number of devices that can establish a connection with the first device
  • the distribution amount of the second device is used to indicate the maximum number of devices that can establish a connection with the second device.
  • the distribution amount is used to indicate the maximum number of devices that can establish a connection with the third device.
  • the amount of distribution of each device can be obtained through the access bandwidth of each device.
  • the access bandwidth of the first device is 120M
  • the access bandwidth required for transmitting the shared data to each device is 40M
  • the distribution amount of the first device is 3
  • the distribution amount of the second device can be set to 4
  • the distribution amount of the third device is 2
  • the distribution amount of the fourth device is 2
  • the distribution amount of the fifth device is 2.
  • the distribution amount of each device is not specifically limited in the present invention.
  • the second device and the third device having the larger distribution amount are used as the first relay device, and the second device and The device with a smaller amount of distribution in the third device serves as the receiving device.
  • the distribution amount of the second device is 4, and the distribution amount of the third device is 2, that is, the distribution amount of the second device is greater than the distribution amount of the third device, and the second device is confirmed as the first device.
  • a relay device, the third device is confirmed as a receiving device.
  • the first device may transmit the shared data to the second device, and the second device transmits the received shared data to the third device.
  • the second device and the third device are combined with the preset threshold, and may be combined with the second device.
  • the first relay device and the receiving device are determined according to the delay and the relay delay of the third device. Specifically, the device with a smaller relay delay in the second device and the third device is used as the first relay device, and the device with a larger relay delay in the second device and the third device is used as the receiving device.
  • the relay delay of the second device is used to indicate the time used by the first device to transmit the shared data to the second device, and then the second device transmits the shared data to the third device, and the relay delay of the third device And a time for instructing the first device to transmit the shared data to the third device, and then transmitting, by the third device, the shared data to the second device.
  • the second device, the fourth device, and the fifth device are not in the same network, and the fourth device is used as the second relay device, and the fifth device is used as the first receiving device.
  • the second relay device is configured to receive the shared data transmitted by the second device, and transmit the received shared data to the first receiving device.
  • the process of specifically determining the second relay device and the first receiving device is as follows:
  • the network can obtain the routing information of the second device to other devices through the traceroute tool.
  • the routing information of the second device to other devices can also be obtained by other means, and the present invention does not impose specific restrictions.
  • routing information of the second device to other devices may be as shown in Table 1.
  • the common routing point in the routing point of the second device to the other devices is obtained in the routing information, where the public routing point has two Or routing points used by more than two devices.
  • the network device may obtain, by using the traceroute tool, the second device separately transmitting the shared data to the network of the fourth device and the fifth device.
  • the delay the fourth device transmits the shared data to the network of the fifth device and the network delay of the fifth device transmitting the shared data to the fourth device.
  • Table 3 Table 4 and Table 5.
  • the second device reaches the network delay of the fourth device through the public routing point 1 and the public routing point 2, respectively, and the second device reaches the first through the public routing point 1 and the public routing point 2, respectively.
  • Network delay of five devices it can be seen that the second device reaches the network delay of the fourth device through the public routing point 1 and the public routing point 2, respectively, and the second device reaches the first through the public routing point 1 and the public routing point 2, respectively. Network delay of five devices.
  • the fourth device reaches the network delay of the fifth device through the public routing point 1 and the public routing point 2, respectively.
  • the fifth device reaches the network delay of the fourth device through the public routing point 1 and the public routing point 2, respectively.
  • the relay delay of the fourth device may be the sum of the network delay used by the second device to transmit the shared data to the fourth device and the network delay used by the fourth device to transmit the shared data to the fifth device;
  • the relay delay of the five devices may be the sum of the network delay used by the second device to transmit the shared data to the fifth device and the network delay used by the fifth device to transmit the shared data to the fourth device.
  • the relay delay of the fourth device is used to indicate the time that the second device transmits the shared data to the fourth device, and then the fourth device transmits the shared data to the fifth device; the relay delay of the fifth device And a time for instructing the second device to transmit the shared data to the fifth device, and then transmitting, by the fifth device, the shared data to the fourth device.
  • the device with the smaller relay delay in the fourth device and the fifth device is used as the second relay device.
  • the device with a larger relay delay in the fourth device and the fifth device is used as the first receiving device.
  • Table 3, Table 4 and Table 5 it can be seen by comparison that the relay delay of the fourth device is smaller than the relay delay of the fifth device, and the fourth device is confirmed as The second relay device is confirmed as the first receiving device by the fifth device.
  • the first device transmits the shared data to the second device, and the third device, in the process of the fifth device, determines the two relay devices and the two receiving devices, and then generates the path. information.
  • the path information may indicate that the first device transmits the shared data to the second device, and the second device, as the first relay device, transmits the received shared data sent by the first device to the third device and the fourth device.
  • the fourth device as the second relay device, transmits the shared data sent by the second device to the fifth device; in this way, the first device can transmit the shared data to the second device, the third device,
  • the fourth device and the fifth device perform the transmission of the shared data by setting the first relay device and the second relay device in the process of transmitting the shared data, and the first device no longer transmits the shared data to each of the receiving devices, which can be solved.
  • the first device when the first device connects a large number of receiving devices and simultaneously performs shared data transmission, the first device needs to transmit the shared data to each receiving device, which causes a problem that the load of the first device is large.
  • the path information may also indicate that the first device transmits the shared data to the second device, and the second device, as the first relay device, transmits the received shared data sent by the first device to the third device and the first device.
  • the fourth device is used as the second relay device to transmit the shared data sent by the second device to the fifth device, and the third device can serve as the third relay device and receive the shared data sent by the second device. Transmitting to the fifth device; in this way, for the fifth device, receiving both the shared data sent by the third device and the shared data sent by the fourth device, even in the case of packet loss, the fifth The device can also share data normally.
  • the network device sends a data sharing confirmation message to the first device, the second device, the third device, the fourth device, and the fifth device.
  • the data sharing confirmation message includes path information. After each device receives the data sharing confirmation message, since the data sharing confirmation message includes path information, each device can receive the shared data or transmit the shared data according to the path information.
  • the path information may be: first, the first device transmits the shared data to the second device; secondly, the second device serves as the first relay device, and the received first device sends the shared Data transmission to the third device and the fourth device; finally, the first The four devices serve as the second relay device, and transmit the shared data sent by the second device to the fifth device.
  • the network device sends a first transmission message to the first device.
  • the first transmission message may be sent by the network device to the first device together with the data sharing confirmation message.
  • the first transmission message is used to indicate that a connection is established between the first device and the first relay device.
  • the network device may first receive the first transmission request message sent by the first device, where the first transmission request message is used to request to transmit the shared data to the second device. Then, the network device sends a first transmission message to the first device, where the first device establishes a connection with the second device according to the first transmission message, and transmits the shared data to the second device.
  • the first transmission message may include IP (Internet Protocol) address information of the second device, and may also include routing point information of the second device, where the first device may use the IP address information and the second device The connection is established, and the connection between the routing point information and the second device may also be established.
  • IP Internet Protocol
  • the network device receives the first state information sent by the second device.
  • the first status information is used to indicate that the second device is in a state of receiving shared data. That is, the second device is receiving the shared data transmitted by the first device.
  • the network device sends a second transmission message to the second device.
  • the second transmission message is used to indicate that the second device and the third device establish a connection between the second device and the fourth device.
  • the network device may first receive the second transmission request message sent by the second device, where the second transmission request message is used to request to transmit the shared data to the third device and the fourth device. . Then, the network device sends a second transmission message to the second device, and the second device establishes a connection with the third device and the fourth device according to the second transmission message, and transmits the shared data to the third device and the fourth device.
  • the second transmission message may include the IP address information of the third device and the fourth device, and may also include routing point information of the third device and the fourth device, where the second device may separately use the IP address information and the third device. And establishing a connection between the fourth device, and establishing a connection between the third device and the fourth device by using the routing point information, where the present invention does not specifically limit.
  • the network device receives second state information sent by the fourth device.
  • the second status information is used to indicate that the fourth device is in a state of receiving shared data. That is, the fourth device is receiving the shared data transmitted by the second device.
  • the network device sends a third transmission message to the fourth device.
  • the third transmission message is used to indicate that a connection is established between the fourth device and the fifth device.
  • the network device may first receive the third transmission request message sent by the fourth device, where the third transmission request message is used to request to transmit the shared data to the fifth device. Then, the network device sends a third transmission message to the fourth device, and the fourth device establishes a connection with the fifth device according to the third transmission message, and transmits the shared data to the fifth device.
  • the third transmission message may include the IP address information of the fifth device, and may also include the routing point information of the fifth device, where the fourth device may establish a connection with the fifth device by using the IP address information, or may be configured by using a route. The point information is established with the fifth device, and the present invention is not specifically limited.
  • the network device receives the data sharing request message sent by the first device, and determines the relay device and the receiving device in the second device, the third device, the fourth device, and the fifth device according to the preset rule. And generating path information, and sending a data sharing confirmation message to the first device, the second device, the third device, the fourth device, and the fifth device.
  • the first device can transmit the shared data to the first relay device according to the path information, and then the first relay device transmits the shared data to the third device and the second relay device, and the second relay device And transmitting the received shared data to the fifth device, so that the shared data can be transmitted by selecting the first relay device and the second relay, and the first device no longer transmits the shared data to each receiving device, thereby
  • the load of the first device is reduced, which can solve the problem that when the first device connects a large number of receiving devices and simultaneously performs shared data transmission, the first device needs to transmit the shared data to each receiving device, which may result in The problem that the load of the first device is large.
  • the embodiment of the present invention provides a path selection method, which is applied to a path selection device, that is, a first device.
  • the path selection method includes:
  • the first device sends a data sharing request message to the network device.
  • the first device sends a data sharing request message to the network device, so that the network device determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information.
  • the data sharing request message is used to request to transmit the shared data to the second device and the third device, where the path information is used to instruct the first device to transmit the shared data to the relay device, and the relay device transmits the shared data transmitted by the first device to the Receiving device.
  • the first device receives a data sharing confirmation message sent by the network device.
  • the data sharing confirmation message includes path information.
  • the first device receives the first transmission message sent by the network device.
  • the first device receives the first transmission message sent by the network device, where the first transmission message is used to indicate that the connection between the first device and the relay device is established.
  • the first device establishes a connection with the relay device according to the first transmission message, and transmits the shared data to the relay device.
  • the first device sends a data sharing request message to the network device, so that the network device determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information.
  • the first device receives a data sharing confirmation message sent by the network device.
  • the first device can transmit the shared data to the first relay device according to the path information, and then the first relay device transmits the shared data to the third device and the second relay device, and the second relay device And transmitting the received shared data to the fifth device, so that the shared data can be transmitted by selecting the first relay device and the second relay, and the first device no longer transmits the shared data to each receiving device, thereby
  • the load of the first device is reduced, which can solve the problem that when the first device connects a large number of receiving devices and simultaneously performs shared data transmission, the first device needs to transmit the shared data to each receiving device, which may result in The problem that the load of the first device is large.
  • the embodiment of the invention provides a network device, which is optionally applied to data sharing in a multi-party conference mode.
  • the network device 40 can include:
  • the receiving unit 401 is configured to receive a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device.
  • the processing unit 402 is configured to determine the relay device and the receiving device in the second device and the third device according to the preset rule, and generate path information, where the path information is used to instruct the first device to transmit the shared data to the relay device, and the relay The device transmits the shared data transmitted by the first device to the receiving device.
  • the sending unit 403 is configured to send a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes path information.
  • the network device 40 further includes an obtaining unit 404, configured to acquire a distribution amount of the second device and a distribution amount of the third device, where the distribution amount of the second device is used to indicate a maximum of the device that can establish a connection with the second device.
  • the quantity, the amount of distribution of the third device is used to indicate the maximum number of devices that can establish a connection with the third device.
  • the processing unit 402 is further configured to use, as the receiving device, a device with a large amount of distribution in the second device and the third device as a relay device, and a device with a smaller amount of distribution in the second device and the third device.
  • the obtaining unit 404 is further configured to obtain a relay delay of the second device and a relay delay of the third device, where the relay delay of the second device is used to instruct the first device to transmit the shared data to the first The time when the second device transmits the shared data to the third device, and the relay delay of the third device is used to instruct the first device to transmit the shared data to the third device, and then the third device shares the data. The time it takes for data to be transferred to the second device.
  • the processing unit 402 is further configured to use, as the relay device, a device with a smaller relay delay in the second device and the third device as the relay device, and a device with a larger relay delay in the second device and the third device as the receiving device.
  • the sending unit 403 is further configured to send, to the first device, a first transmission message, where the first transmission message is used to indicate that the first device establishes a connection with the relay device, so that the first device transmits the sharing to the relay device. data.
  • the receiving unit 401 is further configured to receive first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data.
  • the sending unit 403 is further configured to send a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device transmits the shared data to the receiving device.
  • the receiving unit receives the number sent by the first device According to the sharing request message, the processing unit determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information, and the sending unit sends data sharing to the first device, the second device, and the third device. Confirm the message.
  • the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device.
  • the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device
  • the load of the first device is large.
  • the embodiment of the present invention provides a path selection device 50, that is, a first device 50.
  • the first device 50 includes:
  • the sending unit 501 is configured to send a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device and the third device according to the preset rule. Determining the relay device and the receiving device, and generating path information, the path information is used to instruct the first device 50 to transmit the shared data to the relay device, and the relay device transmits the shared data transmitted by the first device 50 to the receiving device.
  • the receiving unit 502 is configured to receive a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes path information.
  • the receiving unit 502 is further configured to receive a first transmission message sent by the network device, where the first transmission message is used to indicate that the first device 50 establishes a connection with the relay device.
  • the first device 50 further includes a connection unit 503, configured to establish a connection with the relay device according to the first transmission message;
  • the sending unit 501 is further configured to transmit the shared data to the relay device.
  • the sending unit sends a data sharing request message to the network device, so that the network device determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information.
  • the receiving unit receives a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes path information.
  • the first device can transmit the shared data to the relay device according to the path information, and then relay The device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be transmitted by selecting the relay device, and the first device no longer establishes a connection with each receiving device, and the shared data is shared.
  • each receiving device It is transmitted to each receiving device, thereby reducing the load of the first device, and can solve the problem that the first device needs to transmit the shared data when the first device connects a larger number of receiving devices and simultaneously performs shared data transmission. To each receiving device, the problem of a large amount of load on the first device is caused.
  • the embodiment of the present invention provides a network device 60.
  • the device may be embedded or itself a computer, such as a general-purpose computer, a mobile phone terminal, or a tablet device.
  • the network device 60 includes: at least one processor. 601. Memory 602, bus 603, transmitter 604, and receiver 605.
  • the at least one processor 601, memory 602, transmitter 604, and receiver 605 are connected by bus 603 and communicate with each other.
  • the bus 603 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus 603 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus. among them:
  • the memory 602 is used to store application code of the inventive scheme, and the application code for executing the inventive scheme is stored in a memory and controlled by the processor 601 for execution.
  • the memory can be a read only memory ROM or other type of static storage device that can store static information and instructions, a random access memory RAM or other type of dynamic storage device that can store information and instructions, or can be electrically erasable or programmable.
  • These memories are connected to the processor via a bus.
  • the processor 601 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one configured to implement the embodiment of the present invention. Or multiple integrated circuits.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the receiver 605 is configured to receive a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device.
  • the processor 601 is further configured to determine the relay device and the receiving device in the second device and the third device according to the preset rule, and generate path information, where the path information is used to instruct the first device to transmit the shared data to the relay device, where The device transmits the shared data transmitted by the first device to the receiving device.
  • the transmitter 604 is further configured to send a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes path information.
  • the processor 601 is further configured to acquire a distribution amount of the second device and a distribution amount of the third device, where the distribution amount of the second device is used to indicate a maximum number of devices that can establish a connection with the second device, and third.
  • the amount of distribution of the device is used to indicate the maximum number of devices that can establish a connection with the third device.
  • the processor 601 is further configured to use, as the receiving device, a device with a large amount of distribution in the second device and the third device as a relay device, and a device with a smaller amount of distribution in the second device and the third device.
  • the processor 601 is further configured to obtain a relay delay of the second device and a relay delay of the third device, where the relay delay of the second device is used to instruct the first device to transmit the shared data to the first The time when the second device transmits the shared data to the third device, and the relay delay of the third device is used to instruct the first device to transmit the shared data to the third device, and then the third device shares the data. The time it takes for data to be transferred to the second device.
  • the processor 601 is further configured to use, as the relay device, a device with a smaller relay delay in the second device and the third device as the relay device, and a device with a larger relay delay in the second device and the third device as the receiving device.
  • the transmitter 604 is further configured to send a first transmission message to the first device, where the first transmission message is used to indicate that the first device establishes a connection with the relay device, so that the first device transmits the sharing to the relay device. data.
  • the receiver 605 is further configured to receive first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data.
  • the transmitter 604 is further configured to send a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device transmits the shared data to the receiving device.
  • the network device provided by the embodiment of the present invention, the processor receives the data sharing request message sent by the first device, determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information, A device, a second device, and a third device send a data sharing confirmation message.
  • the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device.
  • the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device
  • the load of the first device is large.
  • the embodiment of the present invention provides a path selection device 70, that is, a first device 70.
  • the device may be embedded or itself a computer, such as a general-purpose computer, a mobile phone terminal, or a portable device such as a tablet.
  • the device 70 includes: at least one processor 701, a memory 702, a bus 703, a transmitter 704, and a receiver 705.
  • the at least one processor 701, the memory 702, the transmitter 704, and the receiver 705 are connected and completed by a bus 703. Communication.
  • the bus 703 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus 703 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus. among them:
  • the memory 702 is for storing application code of the inventive scheme, and the application code for executing the inventive scheme is stored in a memory and controlled by the processor 701 for execution.
  • the memory can be a read only memory ROM or other type of static storage device that can store static information and instructions, a random access memory RAM or other type of dynamic storage device that can store information and instructions, or can be electrically erasable or programmable.
  • These memories are connected to the processor via a bus.
  • the processor 701 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. Integrated circuits.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the transmitter 704 is configured to send a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device and the third device according to the preset rule. Determining the relay device and the receiving device, and generating path information, the path information is used to instruct the first device 70 to transmit the shared data to the relay device, and the relay device transmits the shared data transmitted by the first device 70 to the receiving device.
  • the receiver 705 is configured to receive a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes path information.
  • the receiver 705 is further configured to receive a first transmission message sent by the network device, where the first transmission message is used to indicate that the first device 70 establishes a connection with the relay device.
  • the processor 701 is configured to establish a connection with the relay device according to the first transmission message.
  • the transmitter 704 is further configured to transmit the shared data to the relay device.
  • the transmitter sends a data sharing request message to the network device, so that the network device determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information.
  • the receiver receives a data sharing confirmation message sent by the network device, and the data sharing confirmation message includes path information.
  • the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device.
  • the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device
  • the load of the first device is large.
  • the embodiment of the present invention provides a transmission system 80, as shown in FIG. 8, including a network device 801, a path selection device 802, and at least two other devices 803.
  • the network device 801 is the network device 801 described in the embodiment corresponding to FIG. 4 or FIG. 6.
  • the path selection device 802 is the path selection device 802 described in the embodiment corresponding to FIG. 5 or FIG.
  • the network device receives the data sharing request message sent by the first device, and determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information, and the network The device sends a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes path information.
  • the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device.
  • the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device
  • the load of the first device is large.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the software functional units described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform portions of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed in the present invention are a path selection method, device and system. The present invention relates to the technical field of communications, and can solve the problem in the prior art about the large load of a first device due to the need of the first device to transmit shared data to each reception device when the first device connects with a large number of reception devices and simultaneously transmits the shared data. The specific solution comprises: a network device receives a data sharing request message sent by the first device, determines a relay device and a reception device from a second device and a third device according to pre-set rules, generates path information, and transmits a data sharing acknowledge message to the first device, the second device and the third device. The present invention is used for path selection.

Description

一种路径选择方法、设备及系统Path selection method, device and system 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种路径选择方法、设备及系统。The present invention relates to the field of communications technologies, and in particular, to a path selection method, device, and system.
背景技术Background technique
随着网络技术的不断发展,资源共享已经成为网络用户的普遍需求。WebRTC(Web Real-Time Communication,网页实时通信)是一种基于浏览器的实时多媒体通信技术,实时多媒体通信技术主要包括实时视频通信技术和实时音频通信技术。With the continuous development of network technology, resource sharing has become a common demand of network users. WebRTC (Web Real-Time Communication) is a browser-based real-time multimedia communication technology. Real-time multimedia communication technology mainly includes real-time video communication technology and real-time audio communication technology.
通常情况下,从接收设备的数量角度进行划分,可以分为两方会议模式和多方会议模式。其中,两方会议模式是第一设备连接接收设备,第一设备向接收设备传输共享数据,接收设备接收第一设备发送的共享数据。多方会议模式是第一设备同时连接至少两个接收设备。可选的,在多方会议模式中,采用WebRTC技术实现共享数据的传输,第一设备用于将共享数据点对点地传输至所有的接收设备,即第一设备与每一个接收设备之间都会建立一个链接,并由第一设备将共享数据传输给每一个接收设备,从而实现多方会议模式下的共享数据的传输。但是,在现有技术中,当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。Generally, the division from the perspective of the number of receiving devices can be divided into a two-party conference mode and a multi-party conference mode. The two-party conference mode is that the first device is connected to the receiving device, the first device transmits the shared data to the receiving device, and the receiving device receives the shared data sent by the first device. The multi-party conference mode is that the first device simultaneously connects at least two receiving devices. Optionally, in the multi-party conference mode, the shared data is transmitted by using the WebRTC technology, and the first device is configured to transmit the shared data point-to-point to all the receiving devices, that is, a first device and each receiving device are established. Linking, and the shared data is transmitted by the first device to each receiving device, thereby realizing the transmission of the shared data in the multi-party conference mode. However, in the prior art, when the first device connects a larger number of receiving devices and simultaneously performs shared data transmission, since the first device needs to transmit the shared data to each receiving device, the load of the first device is compared. Big problem.
发明内容Summary of the invention
本发明的实施例提供一种路径选择方法、设备及系统,能够解决现有技术中当路径选择设备连接较多数量的接收设备同时进行共享数据传输时,由于路径选择设备需要将共享数据传输至每一个接收设备,会导致路径选择设备的负载量较大的问题。The embodiment of the present invention provides a path selection method, device, and system, which can solve the problem in the prior art when the path selection device connects a large number of receiving devices and simultaneously performs shared data transmission, because the path selection device needs to transmit the shared data to Each receiving device causes a problem that the path selection device has a large load.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
第一方面,本发明提供了一种路径选择方法,应用于网络设备,该方法包括:In a first aspect, the present invention provides a path selection method, which is applied to a network device, and the method includes:
网络设备接收第一设备发送的数据共享请求消息,所述数据共享请求消息用于请求向第二设备及第三设备传输共享数据; Receiving, by the network device, a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device;
所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,并生成路径信息,所述路径信息用于指示所述第一设备向所述中继设备传输共享数据,所述中继设备将所述第一设备传输的共享数据传输至所述接收设备;Determining, by the network device, the relay device and the receiving device in the second device and the third device according to a preset rule, and generating path information, where the path information is used to indicate that the first device is in the middle Transmitting, by the device, the shared data, the relay device transmitting the shared data transmitted by the first device to the receiving device;
所述网络设备向所述第一设备,所述第二设备及所述第三设备发送数据共享确认消息,所述数据共享确认消息包含所述路径信息。The network device sends a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes the path information.
结合第一方面,在第一种可能的实现方式中,所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,包括:With reference to the first aspect, in a first possible implementation, the determining, by the network device, the relay device and the receiving device in the second device and the third device according to the preset rule, including:
所述网络设备获取所述第二设备的分发量及所述第三设备的分发量,所述第二设备的分发量用于指示能够与所述第二设备建立连接的设备的最大数量,所述第三设备的分发量用于指示能够与所述第三设备建立连接的设备的最大数量;The network device acquires a distribution amount of the second device and a distribution amount of the third device, where a distribution amount of the second device is used to indicate a maximum number of devices that can establish a connection with the second device, where The distribution amount of the third device is used to indicate the maximum number of devices that can establish a connection with the third device;
所述网络设备将所述第二设备及所述第三设备中分发量较大的设备作为所述中继设备,将所述第二设备及所述第三设备中分发量较小的设备作为所述接收设备。The network device uses, as the relay device, a device with a large amount of distribution in the second device and the third device, and uses a device with a smaller distribution amount in the second device and the third device as The receiving device.
结合第一方面,在第二种可能的实现方式中,所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,包括:With reference to the first aspect, in a second possible implementation, the determining, by the network device, the relay device and the receiving device in the second device and the third device according to a preset rule, including:
所述网络设备获取所述第二设备的中继时延及所述第三设备的中继时延,所述第二设备的中继时延用于指示所述第一设备将所述共享数据传输至所述第二设备,再由所述第二设备将所述共享数据传输至所述第三设备所用的时间,所述第三设备的中继时延用于指示所述第一设备将所述共享数据传输至所述第三设备,再由所述第三设备将所述共享数据传输至所述第二设备所用的时间;The network device acquires a relay delay of the second device and a relay delay of the third device, where a relay delay of the second device is used to indicate that the first device uses the shared data Transmitted to the second device, where the second device transmits the shared data to the third device, and the relay delay of the third device is used to indicate that the first device will Transmitting, by the third device, the time when the shared data is transmitted by the third device to the second device;
所述网络设备将所述第二设备及所述第三设备中中继时延较小的设备作为所述中继设备,将所述第二设备及所述第三设备中中继时延较大的设备作为所述接收设备。The network device uses, as the relay device, a device with a smaller relay delay in the second device and the third device, and delays a relay in the second device and the third device. A large device acts as the receiving device.
结合第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述方法还包括: With reference to the first possible implementation of the first aspect or the second possible implementation of the first aspect, in a third possible implementation, the method further includes:
所述网络设备向所述第一设备发送第一传输消息,所述第一传输消息用于指示所述第一设备与所述中继设备之间建立连接,以便所述第一设备向所述中继设备传输所述共享数据。The network device sends a first transmission message to the first device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device, so that the first device sends the The relay device transmits the shared data.
结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中,所述方法包括:In conjunction with the third possible implementation of the first aspect, in a fourth possible implementation, the method includes:
网络设备接收所述中继设备发送的第一状态信息,所述第一状态信息用于指示所述中继设备正处于接收所述共享数据的状态;Receiving, by the network device, first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data;
所述网络设备向所述中继设备发送第二传输消息,所述第二传输消息用于指示所述中继设备与所述接收设备之间建立连接,以便所述中继设备向所述接收设备传输所述共享数据。The network device sends a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device receives the The device transmits the shared data.
第二方面,本发明提供了一种路径选择方法,应用于路径选择设备,该路径选择设备具体为第一设备,所述方法包括:In a second aspect, the present invention provides a path selection method, which is applied to a path selection device, where the path selection device is specifically a first device, and the method includes:
第一设备向网络设备发送数据共享请求消息,所述数据共享请求消息用于请求向第二设备及第三设备传输共享数据,以便所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,并生成路径信息,所述路径信息用于指示所述第一设备向所述中继设备传输共享数据,所述中继设备将所述第一设备传输的共享数据传输至所述接收设备;The first device sends a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device and the device according to a preset rule. Determining the relay device and the receiving device in the third device, and generating path information, where the path information is used to indicate that the first device transmits shared data to the relay device, and the relay device The shared data transmitted by the device is transmitted to the receiving device;
第一设备接收网络设备发送的数据共享确认消息,所述数据共享确认消息包含所述路径信息。The first device receives a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes the path information.
结合第二方面,在第一种可能的实现方式中,In combination with the second aspect, in a first possible implementation manner,
第一设备接收网络设备发送的第一传输消息,所述第一传输消息用于指示所述第一设备与所述中继设备之间建立连接;Receiving, by the first device, a first transmission message sent by the network device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device;
所述第一设备根据所述第一传输消息与所述中继设备之间建立连接,并向所述中继设备传输所述共享数据。The first device establishes a connection with the relay device according to the first transmission message, and transmits the shared data to the relay device.
第三方面,本发明提供了一种网络设备,包括:In a third aspect, the present invention provides a network device, including:
接收单元,用于接收第一设备发送的数据共享请求消息,所述数据共享请求消息用于请求向第二设备及第三设备传输共享数据;a receiving unit, configured to receive a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device;
处理单元,用于根据预设规则在所述第二设备及所述第三设备中 确定中继设备及接收设备,并生成路径信息,所述路径信息用于指示所述第一设备向所述中继设备传输共享数据,所述中继设备将所述第一设备传输的共享数据传输至所述接收设备;a processing unit, configured to be in the second device and the third device according to a preset rule Determining a relay device and a receiving device, and generating path information, the path information being used to indicate that the first device transmits shared data to the relay device, and the relay device transmits the shared data by the first device Transmitting to the receiving device;
发送单元,用于向所述第一设备,所述第二设备及所述第三设备发送数据共享确认消息,所述数据共享确认消息包含所述路径信息。And a sending unit, configured to send a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes the path information.
结合第三方面,在第一种可能的实现方式中,In combination with the third aspect, in a first possible implementation manner,
所述网络设备还包括获取单元,用于获取所述第二设备的分发量及所述第三设备的分发量,所述第二设备的分发量用于指示能够与所述第二设备建立连接的设备的最大数量,所述第三设备的分发量用于指示能够与所述第三设备建立连接的设备的最大数量;The network device further includes an obtaining unit, configured to acquire a distribution amount of the second device and a distribution amount of the third device, where the distribution amount of the second device is used to indicate that the connection with the second device is The maximum number of devices, the amount of distribution of the third device is used to indicate the maximum number of devices capable of establishing a connection with the third device;
所述处理单元,还用于将所述第二设备及所述第三设备中分发量较大的设备作为所述中继设备,将所述第二设备及所述第三设备中分发量较小的设备作为所述接收设备。The processing unit is further configured to use, as the relay device, a device with a large amount of distribution in the second device and the third device, and distribute the amount in the second device and the third device. A small device acts as the receiving device.
结合第三方面,在第二种可能的实现方式中,In combination with the third aspect, in a second possible implementation manner,
所述获取单元,还用于获取所述第二设备的中继时延及所述第三设备的中继时延,所述第二设备的中继时延用于指示所述第一设备将所述共享数据传输至所述第二设备,再由所述第二设备将所述共享数据传输至所述第三设备所用的时间,所述第三设备的中继时延用于指示所述第一设备将所述共享数据传输至所述第三设备,再由所述第三设备将所述共享数据传输至所述第二设备所用的时间;The acquiring unit is further configured to acquire a relay delay of the second device and a relay delay of the third device, where a relay delay of the second device is used to indicate that the first device Transmitting the shared data to the second device, and then using the second device to transmit the shared data to the third device, where the relay delay of the third device is used to indicate the Transmitting, by the first device, the shared data to the third device, and then using the third device to transmit the shared data to the second device;
所述处理单元,还用于将所述第二设备及所述第三设备中中继时延较小的设备作为所述中继设备,将所述第二设备及所述第三设备中中继时延较大的设备作为所述接收设备。The processing unit is further configured to use, as the relay device, a device with a smaller relay delay in the second device and the third device, and the second device and the third device A device having a large delay is used as the receiving device.
结合第三方面的第一种可能的实现方式或第三方面的第二种可能的实现方式,在第三种可能的实现方式中,In conjunction with the first possible implementation of the third aspect or the second possible implementation of the third aspect, in a third possible implementation manner,
所述发送单元,还用于向所述第一设备发送第一传输消息,所述第一传输消息用于指示所述第一设备与所述中继设备之间建立连接,以便所述第一设备向所述中继设备传输所述共享数据。The sending unit is further configured to send a first transmission message to the first device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device, so that the first The device transmits the shared data to the relay device.
结合第三方面的第三种可能的实现方式,在第四种可能的实现方 式中,Combined with the third possible implementation of the third aspect, in the fourth possible implementation In the formula,
所述接收单元,还用于接收所述中继设备发送的第一状态信息,所述第一状态信息用于指示所述中继设备正处于接收所述共享数据的状态;The receiving unit is further configured to receive first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data;
所述发送单元,还用于向所述中继设备发送第二传输消息,所述第二传输消息用于指示所述中继设备与所述接收设备之间建立连接,以便所述中继设备向所述接收设备传输所述共享数据。The sending unit is further configured to send a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device Transmitting the shared data to the receiving device.
第四方面,本发明提供一种路径选择设备,该路径选择设备具体为第一设备,包括:In a fourth aspect, the present invention provides a path selection device, where the path selection device is specifically a first device, including:
发送单元,用于向网络设备发送数据共享请求消息,所述数据共享请求消息用于请求向第二设备及第三设备传输共享数据,以便所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,并生成路径信息,所述路径信息用于指示所述第一设备向所述中继设备传输共享数据,所述中继设备将所述第一设备传输的共享数据传输至所述接收设备;a sending unit, configured to send a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device according to a preset rule. And determining, by the third device, the relay device and the receiving device, and generating path information, where the path information is used to instruct the first device to transmit shared data to the relay device, where the relay device The shared data transmitted by the first device is transmitted to the receiving device;
接收单元,用于接收网络设备发送的数据共享确认消息,所述数据共享确认消息包含所述路径信息。And a receiving unit, configured to receive a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes the path information.
结合第四方面,在第一种可能的实现方式中,In combination with the fourth aspect, in a first possible implementation manner,
所述接收单元,还用于接收网络设备发送的第一传输消息,所述第一传输消息用于指示所述第一设备与所述中继设备之间建立连接;The receiving unit is further configured to receive a first transmission message that is sent by the network device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device;
所述第一设备还包括连接单元,用于根据所述第一传输消息与所述中继设备之间建立连接;The first device further includes a connection unit, configured to establish a connection with the relay device according to the first transmission message;
所述发送单元,还用于向所述中继设备传输所述共享数据。The sending unit is further configured to transmit the shared data to the relay device.
第五方面,本发明提供一种传输系统,包括网络设备,路径选择设备及至少两个其他设备;In a fifth aspect, the present invention provides a transmission system, including a network device, a path selection device, and at least two other devices;
其中,所述网络设备为第三方面或第三方面的任意一种可能的实现方式中所述的网络设备;The network device is the network device described in any one of the possible implementation manners of the third aspect or the third aspect;
所述第一设备为第四方面或第四方面的任意一种可能的实现方式中所述的路径选择设备。 The first device is the path selection device described in the fourth aspect or any one of the possible implementation manners of the fourth aspect.
本发明实施例提供的路径选择方法、设备及系统,网络设备接收第一设备发送的数据共享请求消息,根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,向第一设备,第二设备及第三设备发送数据共享确认消息。这样,第一设备就可以根据路径信息将共享数据传输至中继设备,再由中继设备将接收到的第一设备传输的共享数据传输至接收设备,这样就可以通过选择中继设备进行共享数据的传输,第一设备不再通过与每一个接收设备之间建立连接,将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。A path selection method, device, and system provided by the embodiment of the present invention, the network device receives a data sharing request message sent by the first device, determines a relay device and a receiving device in the second device and the third device according to a preset rule, and generates The path information sends a data sharing confirmation message to the first device, the second device, and the third device. In this way, the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device. The transmission of the data, the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device When a large number of receiving devices are connected to simultaneously share data transmission, since the first device needs to transmit the shared data to each receiving device, the load of the first device is large.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本发明实施例提供的一种路径选择方法流程示意图;FIG. 1 is a schematic flowchart of a path selection method according to an embodiment of the present invention;
图2为本发明实施例提供的另一种路径选择方法流程示意图;2 is a schematic flowchart of another path selection method according to an embodiment of the present invention;
图3为本发明实施例提供的再一种路径选择方法流程示意图;FIG. 3 is a schematic flowchart of still another path selection method according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种网络设备结构示意图;FIG. 4 is a schematic structural diagram of a network device according to an embodiment of the present disclosure;
图5为本发明实施例提供的一种路径选择设备结构示意图;FIG. 5 is a schematic structural diagram of a path selection device according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种网络设备结构示意图;FIG. 6 is a schematic structural diagram of another network device according to an embodiment of the present disclosure;
图7为本发明实施例提供的另一种路径选择设备结构示意图;FIG. 7 is a schematic structural diagram of another path selection device according to an embodiment of the present disclosure;
图8为本发明实施例提供的一种传输系统结构示意图。FIG. 8 is a schematic structural diagram of a transmission system according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts, All fall within the scope of protection of the present invention.
本发明实施例提供一种路径选择方法,应用于网络设备。在本实施例中,以三个设备共享数据为例进行说明,三个设备分别为路径选择设备(本发明实施例各个实施例该路径选择设备也可以具体第一设备),第二设备及第三设备,但并不表示本发明只局限于三个设备,本发明实施例提供的路径选择方法,如图1所示,可以包括以下步骤:The embodiment of the invention provides a path selection method, which is applied to a network device. In this embodiment, the three devices share data as an example. The three devices are path selection devices (the path selection device may also be the specific device in each embodiment of the present invention), the second device and the second device. The three devices, but the present invention is not limited to three devices. The path selection method provided by the embodiment of the present invention, as shown in FIG. 1, may include the following steps:
101、网络设备接收第一设备发送的数据共享请求消息,其中,数据共享请求消息用于请求向第二设备及第三设备传输共享数据。The network device receives the data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device.
可选的,网络设备可以是WebRTC服务器,也可以是其他服务器,第一设备可以是笔记本电脑或者平板电脑等电子设备,在此,本发明不做具体限制。Optionally, the network device may be a WebRTC server, or may be another server. The first device may be an electronic device such as a laptop or a tablet. The present invention is not specifically limited.
可选的,数据共享请求消息可以包括第一设备的标识,第二设备的标识及第三设备的标识,在此,对于数据共享请求消息包括的内容,本发明不做具体的限制。Optionally, the data sharing request message may include an identifier of the first device, an identifier of the second device, and an identifier of the third device. The content of the data sharing request message is not specifically limited by the present invention.
102、网络设备根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息。102. The network device determines the relay device and the receiving device in the second device and the third device according to a preset rule, and generates path information.
可选的,可以通过两种方式在第二设备及第三设备中确定中继设备及接收设备。在第一种方式中,可以根据设备的分发量确定;在第二种方式中,可以根据设备的中继时延确定。Optionally, the relay device and the receiving device may be determined in the second device and the third device in two ways. In the first mode, it can be determined according to the distribution amount of the device; in the second mode, it can be determined according to the relay delay of the device.
可选的,在一种方式中,网络设备可以根据分发量确定。一个设备的分发量用于指示能够与该设备建立连接的设备的最大数量。具体的,网络设备可以获取第二设备的分发量及第三设备的分发量;将第二设备及第三设备中分发量较大的设备作为中继设备,将第二设备及第三设备中分发量较小的设备作为接收设备。其中,中继设备用于接收第一设备传输的共享数据,并将接收到的共享数据传输至接收设备。其中,第二设备的分发量用于指示能够与第二设备建立连接的设备的最大数量,第三设备的分发量用于指示能够与第三设备建立连接的设备的最大数量。Optionally, in one manner, the network device can be determined according to the amount of distribution. The distribution of a device is used to indicate the maximum number of devices that can establish a connection with the device. Specifically, the network device can obtain the distribution amount of the second device and the distribution amount of the third device; the device with the larger distribution amount in the second device and the third device is used as the relay device, and the second device and the third device are A device with a small amount of distribution is used as a receiving device. The relay device is configured to receive the shared data transmitted by the first device, and transmit the received shared data to the receiving device. The distribution amount of the second device is used to indicate the maximum number of devices that can establish a connection with the second device, and the distribution amount of the third device is used to indicate the maximum number of devices that can establish a connection with the third device.
又可选的,在第二种方式中,网络设备可以根据中继时延确定。一个设备的中继时延用于指示该设备接收共享数据,再由该设备将共 享数据传输至另一设备所用的时间。具体的,网络设备可以获取第二设备的中继时延及第三设备的中继时延;将第二设备及第三设备中中继时延较小的设备作为中继设备,将第二设备及第三设备中中继时延较大的设备作为接收设备。其中,第二设备的中继时延用于指示第一设备将共享数据传输至第二设备,再由第二设备将共享数据传输至第三设备所用的时间,第三设备的中继时延用于指示第一设备将共享数据传输至第三设备,再由第三设备将共享数据传输至第二设备所用的时间。Alternatively, in the second mode, the network device may be determined according to the relay delay. The relay delay of a device is used to indicate that the device receives shared data, and then the device will share The time it takes to transfer data to another device. Specifically, the network device may obtain the relay delay of the second device and the relay delay of the third device; and use the device with the smaller relay delay in the second device and the third device as the relay device, and the second device A device with a large relay delay in the device and the third device functions as a receiving device. The relay delay of the second device is used to indicate the time used by the first device to transmit the shared data to the second device, and then the second device transmits the shared data to the third device, and the relay delay of the third device And a time for instructing the first device to transmit the shared data to the third device, and then transmitting, by the third device, the shared data to the second device.
可选的,路径信息为共享数据的传输路径。路径信息用于指示第一设备向中继设备传输共享数据,中继设备将接收到的第一设备传输的共享数据传输至接收设备。Optionally, the path information is a transmission path of the shared data. The path information is used to instruct the first device to transmit the shared data to the relay device, and the relay device transmits the received shared data transmitted by the first device to the receiving device.
103、网络设备向第一设备,第二设备及第三设备发送数据共享确认消息。103. The network device sends a data sharing confirmation message to the first device, the second device, and the third device.
其中,数据共享确认消息包含路径信息。第一设备,第二设备及第三设备接收到数据共享确认消息之后,因为数据共享确认消息中包括了共享数据传输时的路径信息,所以第一设备可以根据路径信息将共享数据传输至中继设备,中继设备接收到第一设备传输的共享数据之后,根据数据共享确认消息将接收到的第一设备传输的共享数据传输至接收设备,此时,第一设备就可以将共享数据传输至第二设备及第三设备。The data sharing confirmation message includes path information. After the first device, the second device, and the third device receive the data sharing confirmation message, because the data sharing confirmation message includes the path information when the shared data is transmitted, the first device may transmit the shared data to the relay according to the path information. After receiving the shared data transmitted by the first device, the relay device transmits the received shared data transmitted by the first device to the receiving device according to the data sharing confirmation message. At this time, the first device can transmit the shared data to the Second device and third device.
可选的,第一设备根据路径信息将共享数据传输至中继设备,具体包括:Optionally, the first device transmits the shared data to the relay device according to the path information, specifically:
网络设备向第一设备发送第一传输消息,优选的,第一传输消息可以与数据共享确认消息一起由网络设备发送至第一设备,其中,第一传输消息用于指示第一设备与中继设备之间建立连接,以便第一设备向中继设备传输共享数据。The network device sends a first transmission message to the first device. Preferably, the first transmission message may be sent by the network device to the first device together with the data sharing confirmation message, where the first transmission message is used to indicate the first device and the relay. A connection is established between the devices so that the first device transmits the shared data to the relay device.
可选的,中继设备根据路径信息将接收到的共享数据传输至接收设备,具体包括:Optionally, the relay device transmits the received shared data to the receiving device according to the path information, including:
网络设备接收中继设备发送的第一状态信息,第一状态信息用于指示中继设备正处于接收共享数据的状态;网络设备向中继设备发送 第二传输消息,第二传输消息用于指示中继设备与接收设备之间建立连接,以便中继设备向接收设备传输共享数据。The network device receives the first state information sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data, and the network device sends the information to the relay device. The second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device transmits the shared data to the receiving device.
本发明实施例提供的路径选择方法,网络设备接收第一设备发送的数据共享请求消息,根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,向第一设备,第二设备及第三设备发送数据共享确认消息。这样,第一设备就可以根据路径信息将共享数据传输至中继设备,再由中继设备将接收到的第一设备传输的共享数据传输至接收设备,这样就可以通过选择中继设备进行共享数据的传输,第一设备不再通过与每一个接收设备之间建立连接,将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。According to the path selection method provided by the embodiment of the present invention, the network device receives the data sharing request message sent by the first device, determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information, and The first device, the second device, and the third device send a data sharing confirmation message. In this way, the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device. The transmission of the data, the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device When a large number of receiving devices are connected to simultaneously share data transmission, since the first device needs to transmit the shared data to each receiving device, the load of the first device is large.
基于图1对应的实施例,本发明实施例提供另一种路径选择方法,可选的,应用于多方会议模式下的数据共享。多方会议模式是一个第一设备连接至少两个接收设备,其中,第一设备用于将共享数据点对点地传输至所有的接收设备,即第一设备与每一个接收设备之间都会建立一个链接,并由第一设备将共享数据传输给每一个接收设备,从而实现多方会议模式下的共享数据传输。但是,现有技术中,WebRTC技术只能支持第一设备连接较少数量的接收设备同时进行共享数据的传输,当第一设备连接较多数量的接收设备进行共享数据传输时,第一设备需要将共享数据传输至每一个接收设备,这样会导致第一设备的负载量较大。其中,共享数据可以是视频资源,可以是音频资源等,在此,本发明不做具体限制。可选的,在本实施例中,以N个设备为例进行说明,N为大于3的整数,当N=5时,这五个设备分别是第一设备,第二设备,第三设备,第四设备及第五设备。当第一设备将共享数据传输至其他设备时,本发明实施例提供的路径选择方法,如图2所示,该方法可以包括:Based on the embodiment corresponding to FIG. 1, the embodiment of the present invention provides another path selection method, which is optionally applied to data sharing in a multi-party conference mode. The multi-party conference mode is a first device connecting at least two receiving devices, wherein the first device is configured to transmit the shared data point-to-point to all the receiving devices, that is, a link is established between the first device and each receiving device. The shared data is transmitted by the first device to each receiving device, thereby implementing shared data transmission in the multi-party conference mode. However, in the prior art, the WebRTC technology can only support the first device to connect a small number of receiving devices to simultaneously transmit shared data. When the first device connects a larger number of receiving devices for shared data transmission, the first device needs to The shared data is transmitted to each receiving device, which causes the first device to load a large amount. The shared data may be a video resource, may be an audio resource, etc., and the present invention is not specifically limited. Optionally, in this embodiment, N devices are taken as an example, where N is an integer greater than 3. When N=5, the five devices are the first device, the second device, and the third device, respectively. The fourth device and the fifth device. When the first device transmits the shared data to the other device, the path selection method provided by the embodiment of the present invention is as shown in FIG. 2, and the method may include:
201、网络设备接收第一设备的数据共享请求消息。201. The network device receives a data sharing request message of the first device.
其中,数据共享请求消息用于请求向第二设备,第三设备,第四设备及第五设备传输共享数据。 The data sharing request message is used to request to transmit the shared data to the second device, the third device, the fourth device, and the fifth device.
可选的,网络设备可以是WebRTC服务器,也可以是其他服务器,第一设备可以是笔记本电脑、平板电脑等电子设备,在此,本发明不做具体限制。Optionally, the network device may be a WebRTC server, or may be another server. The first device may be an electronic device such as a notebook computer or a tablet computer. The present invention is not specifically limited.
可选的,数据共享请求消息可以包括第一设备的标识,第二设备的标识,第三设备的标识,第四设备的标识及第五设备的标识,在此,对于数据共享请求消息包括的内容,本发明不做具体的限制。Optionally, the data sharing request message may include an identifier of the first device, an identifier of the second device, an identifier of the third device, an identifier of the fourth device, and an identifier of the fifth device, where the data sharing request message is included The content is not specifically limited in the present invention.
202、网络设备根据预设规则在第二设备,第三设备,第四设备及第五设备中确定中继设备及接收设备,并生成路径信息。202. The network device determines the relay device and the receiving device in the second device, the third device, the fourth device, and the fifth device according to the preset rule, and generates path information.
可选的,在进行共享数据传输时,当接收共享数据的设备的数量大于或等于4个时,中继设备和接收设备的数量可能不止一个,在此,对于中继设备和接收设备的数量值,本发明不做具体限制。在本实施例中,以两个中继设备及两个接收设备为例进行说明,但并不代表本发明只局限于此。Optionally, when the shared data transmission is performed, when the number of devices receiving the shared data is greater than or equal to 4, the number of the relay device and the receiving device may be more than one, where the number of the relay device and the receiving device is Values, the invention is not specifically limited. In this embodiment, two relay devices and two receiving devices are taken as an example, but the present invention is not limited thereto.
可选的,可以通过两种方式在第二设备,第三设备,第四设备及第五设备中确定中继设备及接收设备。在第一种方式中,可以通过设备的分发量确定,一个设备的分发量用于指示能够与该设备建立连接的设备的最大数量。在第二种方式中,可以通过设备的中继时延确定,一个设备的中继时延用于指示该设备接收共享数据,再由该设备将共享数据传输至另一设备所用的时间。具体的,在一种方式中,网络设备可以获取各设备的分发量;将各设备中分发量较大的设备作为中继设备,将各设备中分发量较小的设备作为接收设备,其中,各设备的分发量用于指示各设备能够与其他设备建立连接的最大数量。在第二种方式中,网络设备可以获取各设备的中继时延;将各设备中中继时延较小的设备作为中继设备,将各设备中中继时延较大的设备作为接收设备。Optionally, the relay device and the receiving device may be determined in the second device, the third device, the fourth device, and the fifth device in two manners. In the first mode, it is determined by the distribution amount of the device that the distribution amount of one device is used to indicate the maximum number of devices capable of establishing a connection with the device. In the second mode, the relay delay of the device may be determined, and the relay delay of one device is used to indicate the time taken by the device to receive the shared data, and then the shared data is transmitted by the device to the other device. Specifically, in one mode, the network device can obtain the distribution amount of each device; the device with a larger amount of distribution among the devices is used as the relay device, and the device with a smaller amount of distribution among the devices is used as the receiving device, where The amount of distribution of each device is used to indicate the maximum number of devices that can establish connections with other devices. In the second mode, the network device can obtain the relay delay of each device; the device with the smaller relay delay in each device is used as the relay device, and the device with the larger relay delay in each device is received. device.
优选的,在第二设备,第三设备,第四设备及第五设备中确定中继设备及接收设备时,可以将各设备的分发量与中继时延这两个因素结合起来确定中继设备及接收设备。具体的,当多个设备的分发量大于或等于预设阈值时,可以将各设备中中继时延较小的设备作为中继设备,将中继时延较大的设备作为接收设备。可选的,预设阈值可以通过实际情况进行设置,在此,对于预设阈值的值,本发明不做具体 限制。Preferably, when the relay device and the receiving device are determined in the second device, the third device, the fourth device, and the fifth device, the distribution amount of each device and the relay delay may be combined to determine the relay. Equipment and receiving equipment. Specifically, when the distribution of the multiple devices is greater than or equal to the preset threshold, the device with a smaller relay delay in each device can be used as the relay device, and the device with a larger relay delay can be used as the receiving device. Optionally, the preset threshold may be set by using an actual situation. Here, the value of the preset threshold is not specifically implemented by the present invention. limit.
可选的,需要共享数据的各个设备可能处于同一个网络内,也可能不处于同一个网络内,本实施例中分别以第一设备,第二设备及第三设备处于同一个网络内,第二设备,第四设备及第五设备不处于同一个网络内这两种应用场景为例进行说明。Optionally, each device that needs to share data may be in the same network or may not be in the same network. In this embodiment, the first device, the second device, and the third device are respectively in the same network. The two application scenarios in which the second device, the fourth device, and the fifth device are not in the same network are taken as an example for description.
一、在第一种应用场景中,即第一设备,第二设备及第三设备处于同一个网络内,可以将第二设备作为第一中继设备,第三设备作为接收设备,其中,第一中继设备用于接收第一设备传输的共享数据,并将接收到的共享数据传输至接收设备。具体确定第一中继设备及接收设备的过程如下:In the first application scenario, that is, the first device, the second device, and the third device are in the same network, and the second device can be used as the first relay device, and the third device is used as the receiving device, where A relay device is configured to receive the shared data transmitted by the first device, and transmit the received shared data to the receiving device. The process of specifically determining the first relay device and the receiving device is as follows:
第一步,网络设备获取第一设备,第二设备及第三设备的分发量。其中,第一设备的分发量用于指示能够与第一设备建立连接的设备的最大数量,第二设备的分发量用于指示能够与第二设备建立连接的设备的最大数量,第三设备的分发量用于指示能够与第三设备建立连接的设备的最大数量。In the first step, the network device acquires the distribution amount of the first device, the second device, and the third device. The distribution amount of the first device is used to indicate the maximum number of devices that can establish a connection with the first device, and the distribution amount of the second device is used to indicate the maximum number of devices that can establish a connection with the second device. The distribution amount is used to indicate the maximum number of devices that can establish a connection with the third device.
可选的,各设备的分发量可以通过各设备的接入带宽进行获取。在本实施例中,若第一设备的接入带宽是120M,在进行共享数据传输时,将共享数据传输给每一个设备需要的接入带宽是40M,那么第一设备的分发量是3,同样的,可以设定第二设备的分发量是4,第三设备的分发量是2,第四设备的分发量是2,第五设备的分发量是2,当然,还可以通过其他方法计算各设备的分发量,在此,本发明不做具体的限制。Optionally, the amount of distribution of each device can be obtained through the access bandwidth of each device. In this embodiment, if the access bandwidth of the first device is 120M, when the shared data transmission is performed, the access bandwidth required for transmitting the shared data to each device is 40M, and the distribution amount of the first device is 3, Similarly, the distribution amount of the second device can be set to 4, the distribution amount of the third device is 2, the distribution amount of the fourth device is 2, and the distribution amount of the fifth device is 2. Of course, it can also be calculated by other methods. The distribution amount of each device is not specifically limited in the present invention.
第二步,当第二设备分发量及第三设备的分发量大于预设阈值时,将第二设备及第三设备中分发量较大的设备作为第一中继设备,将第二设备及第三设备中分发量较小的设备作为接收设备。进一步地,在本实施例中,第二设备的分发量是4,第三设备的分发量是2,即第二设备的分发量大于第三设备的分发量,则将第二设备确认为第一中继设备,第三设备确认为接收设备。此时,第一设备可以将共享数据传输给第二设备,第二设备再将接收到的共享数据传输至第三设备。 In the second step, when the second device distribution amount and the third device distribution amount are greater than a preset threshold, the second device and the third device having the larger distribution amount are used as the first relay device, and the second device and The device with a smaller amount of distribution in the third device serves as the receiving device. Further, in this embodiment, the distribution amount of the second device is 4, and the distribution amount of the third device is 2, that is, the distribution amount of the second device is greater than the distribution amount of the third device, and the second device is confirmed as the first device. A relay device, the third device is confirmed as a receiving device. At this time, the first device may transmit the shared data to the second device, and the second device transmits the received shared data to the third device.
可选的,当第一设备,第二设备及第三设备处于同一个网络内时,在第二设备及第三设备的分发量均大于预设阈值的基础上,可以结合第二设备的中继时延及第三设备的中继时延确定第一中继设备及接收设备。具体的,将第二设备及第三设备中中继时延较小的设备作为第一中继设备,将第二设备及第三设备中中继时延较大的设备作为接收设备。其中,第二设备的中继时延用于指示第一设备将共享数据传输至第二设备,再由第二设备将共享数据传输至第三设备所用的时间,第三设备的中继时延用于指示第一设备将共享数据传输至第三设备,再由第三设备将共享数据传输至第二设备所用的时间。Optionally, when the first device, the second device, and the third device are in the same network, the second device and the third device are combined with the preset threshold, and may be combined with the second device. The first relay device and the receiving device are determined according to the delay and the relay delay of the third device. Specifically, the device with a smaller relay delay in the second device and the third device is used as the first relay device, and the device with a larger relay delay in the second device and the third device is used as the receiving device. The relay delay of the second device is used to indicate the time used by the first device to transmit the shared data to the second device, and then the second device transmits the shared data to the third device, and the relay delay of the third device And a time for instructing the first device to transmit the shared data to the third device, and then transmitting, by the third device, the shared data to the second device.
二、在第二种应用场景中,即第二设备,第四设备及第五设备不处于同一个网络内,可以将第四设备作为第二中继设备,第五设备作为第一接收设备,其中,第二中继设备用于接收第二设备传输的共享数据,并将接收到的共享数据传输至第一接收设备。具体确定第二中继设备及第一接收设备的过程如下:In the second application scenario, the second device, the fourth device, and the fifth device are not in the same network, and the fourth device is used as the second relay device, and the fifth device is used as the first receiving device. The second relay device is configured to receive the shared data transmitted by the second device, and transmit the received shared data to the first receiving device. The process of specifically determining the second relay device and the first receiving device is as follows:
第一步,网络可以通过traceroute工具获取第二设备到其他各设备的路由信息,当然,也可以通过其他方式获取第二设备到其他各设备的路由信息,在此,本发明不做具体的限制。可选的,在本实施例中,第二设备到其他各设备的路由信息可以如表1所示,In the first step, the network can obtain the routing information of the second device to other devices through the traceroute tool. Of course, the routing information of the second device to other devices can also be obtained by other means, and the present invention does not impose specific restrictions. . Optionally, in this embodiment, routing information of the second device to other devices may be as shown in Table 1.
表1Table 1
Figure PCTCN2015084000-appb-000001
Figure PCTCN2015084000-appb-000001
Figure PCTCN2015084000-appb-000002
Figure PCTCN2015084000-appb-000002
第二步,在确定第二设备到其他各设备的路由信息之后,在这些路由信息中获取第二设备到其他各设备的路由点中的公共路由点,此处,公共路由点是有两个或两个以上的设备使用的路由点。In the second step, after determining the routing information of the second device to the other devices, the common routing point in the routing point of the second device to the other devices is obtained in the routing information, where the public routing point has two Or routing points used by more than two devices.
结合表1所示,可以看出,在第二设备到第四设备的路由点中,有两个路由点与第二设备到第五设备的路由点中的两个路由点相同,则该两个路由点为公共路由点。如表2所示:两个公共路有点分别为公共路由点1及公共路由点2。As shown in Table 1, it can be seen that in the routing points of the second device to the fourth device, two routing points are the same as the two routing points in the routing points of the second device to the fifth device, then the two The routing points are public routing points. As shown in Table 2: The two public roads are a little public route point 1 and public route point 2, respectively.
表2Table 2
目的设备名称Destination device name 公共路由点1Public routing point 1 公共路由点2Public routing point 2
第四设备Fourth device 180.180.100.1180.180.100.1 182.162.110.8182.162.110.8
第五设备Fifth device 180.180.100.1180.180.100.1 182.162.110.8182.162.110.8
进一步的,确定第二设备到第四设备及第二设备到第五设备的公共路由点之后,网络设备可以通过traceroute工具获取第二设备分别将共享数据传输至第四设备及第五设备的网络时延,第四设备将共享数据传输至第五设备的网络以及第五设备将共享数据传输至第四设备的网络时延。可选的,如表3,表4及表5所示。Further, after determining the common routing points of the second device to the fourth device and the second device to the fifth device, the network device may obtain, by using the traceroute tool, the second device separately transmitting the shared data to the network of the fourth device and the fifth device. The delay, the fourth device transmits the shared data to the network of the fifth device and the network delay of the fifth device transmitting the shared data to the fourth device. Optionally, as shown in Table 3, Table 4 and Table 5.
如表3所示,可以看出,第二设备分别通过公共路由点1及公共路由点2到达第四设备的网络时延,以及第二设备分别通过公共路由点1及公共路由点2到达第五设备的网络时延。As shown in Table 3, it can be seen that the second device reaches the network delay of the fourth device through the public routing point 1 and the public routing point 2, respectively, and the second device reaches the first through the public routing point 1 and the public routing point 2, respectively. Network delay of five devices.
表3table 3
Figure PCTCN2015084000-appb-000003
Figure PCTCN2015084000-appb-000003
Figure PCTCN2015084000-appb-000004
Figure PCTCN2015084000-appb-000004
如表4所示,可以看出,第四设备分别通过公共路由点1及公共路由点2到达第五设备的网络时延。As shown in Table 4, it can be seen that the fourth device reaches the network delay of the fifth device through the public routing point 1 and the public routing point 2, respectively.
表5table 5
Figure PCTCN2015084000-appb-000005
Figure PCTCN2015084000-appb-000005
如表4所示,可以看出,第五设备分别通过公共路由点1及公共路由点2到达第四设备的网络时延。As shown in Table 4, it can be seen that the fifth device reaches the network delay of the fourth device through the public routing point 1 and the public routing point 2, respectively.
表6Table 6
Figure PCTCN2015084000-appb-000006
Figure PCTCN2015084000-appb-000006
进一步地,第四设备的中继时延可以是第二设备将共享数据传输至第四设备所用的网络时延与第四设备将共享数据传输至第五设备所用的网络时延之和;第五设备的中继时延可以是第二设备将共享数据传输至第五设备所用的网络时延与第五设备将共享数据传输至第四设备所用的网络时延之和。其中,第四设备的中继时延用于指示第二设备将共享数据传输至第四设备,再由第四设备将共享数据传输至第五设备所用的时间;第五设备的中继时延用于指示第二设备将共享数据传输至第五设备,再由第五设备将共享数据传输至第四设备所用的时间。Further, the relay delay of the fourth device may be the sum of the network delay used by the second device to transmit the shared data to the fourth device and the network delay used by the fourth device to transmit the shared data to the fifth device; The relay delay of the five devices may be the sum of the network delay used by the second device to transmit the shared data to the fifth device and the network delay used by the fifth device to transmit the shared data to the fourth device. The relay delay of the fourth device is used to indicate the time that the second device transmits the shared data to the fourth device, and then the fourth device transmits the shared data to the fifth device; the relay delay of the fifth device And a time for instructing the second device to transmit the shared data to the fifth device, and then transmitting, by the fifth device, the shared data to the fourth device.
第三步,当第四设备的分发量与第五设备的分发量大于或等于预设阈值时,将将第四设备及第五设备中中继时延较小的设备作为第二中继设备,将第四设备及第五设备中中继时延较大的设备作为第一接收设备。进一步地,结合表3,表4及表5所示,通过比较可以看出,第四设备的中继时延小于第五设备的中继时延,则将第四设备确认为 第二中继设备,第五设备确认为第一接收设备。In the third step, when the distribution amount of the fourth device and the distribution amount of the fifth device are greater than or equal to the preset threshold, the device with the smaller relay delay in the fourth device and the fifth device is used as the second relay device. The device with a larger relay delay in the fourth device and the fifth device is used as the first receiving device. Further, as shown in Table 3, Table 4 and Table 5, it can be seen by comparison that the relay delay of the fourth device is smaller than the relay delay of the fifth device, and the fourth device is confirmed as The second relay device is confirmed as the first receiving device by the fifth device.
在本实施例中,第一设备将共享数据传输至第二设备,第三设备,第四设备就第五设备的过程中,确定两个中继设备及两个接收设备之后,就可以生成路径信息。In this embodiment, the first device transmits the shared data to the second device, and the third device, in the process of the fifth device, determines the two relay devices and the two receiving devices, and then generates the path. information.
优选的,路径信息可以指示:第一设备将共享数据传输至第二设备;第二设备作为第一中继设备,将接收到的第一设备发送的共享数据传输至第三设备及第四设备;第四设备作为第二中继设备,将接收到第二设备发送的共享数据传输至第五设备;这样一来,第一设备就可以将共享数据传输至第二设备,第三设备,第四设备及第五设备,在传输共享数据过程中,通过设置第一中继设备及第二中继设备进行共享数据的传输,第一设备不再将共享数据传输至每一个接收设备,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,导致第一设备的负载量较大的问题。Preferably, the path information may indicate that the first device transmits the shared data to the second device, and the second device, as the first relay device, transmits the received shared data sent by the first device to the third device and the fourth device. The fourth device, as the second relay device, transmits the shared data sent by the second device to the fifth device; in this way, the first device can transmit the shared data to the second device, the third device, The fourth device and the fifth device perform the transmission of the shared data by setting the first relay device and the second relay device in the process of transmitting the shared data, and the first device no longer transmits the shared data to each of the receiving devices, which can be solved. In the prior art, when the first device connects a large number of receiving devices and simultaneously performs shared data transmission, the first device needs to transmit the shared data to each receiving device, which causes a problem that the load of the first device is large.
可选的,路径信息也可以指示:第一设备将共享数据传输至第二设备;第二设备作为第一中继设备,将接收到的第一设备发送的共享数据传输至第三设备及第四设备;第四设备作为第二中继设备,将接收到第二设备发送的共享数据传输至第五设备,第三设备可以作为第三中继设备,将接收到第二设备发送的共享数据传输至第五设备;这样一来,对于第五设备而言,既接收第三设备发送的共享数据,又接收第四设备发送的共享数据,那么即使在发生数据包丢失的情况下,第五设备也能正常的进行数据共享。Optionally, the path information may also indicate that the first device transmits the shared data to the second device, and the second device, as the first relay device, transmits the received shared data sent by the first device to the third device and the first device. The fourth device is used as the second relay device to transmit the shared data sent by the second device to the fifth device, and the third device can serve as the third relay device and receive the shared data sent by the second device. Transmitting to the fifth device; in this way, for the fifth device, receiving both the shared data sent by the third device and the shared data sent by the fourth device, even in the case of packet loss, the fifth The device can also share data normally.
203、网络设备向第一设备,第二设备,第三设备,第四设备及第五设备发送数据共享确认消息。203. The network device sends a data sharing confirmation message to the first device, the second device, the third device, the fourth device, and the fifth device.
其中,数据共享确认消息包含路径信息。各设备接收到数据共享确认消息之后,因为数据共享确认消息中包括路径信息,所以各设备就可以根据路径信息接收共享数据或传输共享数据。The data sharing confirmation message includes path information. After each device receives the data sharing confirmation message, since the data sharing confirmation message includes path information, each device can receive the shared data or transmit the shared data according to the path information.
在本实施例中,优选的,路径信息可以是:首先,第一设备将共享数据传输至第二设备;其次,第二设备作为第一中继设备,将接收到的第一设备发送的共享数据传输至第三设备及第四设备;最后,第 四设备作为第二中继设备,将接收到第二设备发送的共享数据传输至第五设备。In this embodiment, the path information may be: first, the first device transmits the shared data to the second device; secondly, the second device serves as the first relay device, and the received first device sends the shared Data transmission to the third device and the fourth device; finally, the first The four devices serve as the second relay device, and transmit the shared data sent by the second device to the fifth device.
204、网络设备向第一设备发送第一传输消息。204. The network device sends a first transmission message to the first device.
优选的,第一传输消息可以与数据共享确认消息一起由网络设备发送至第一设备。其中,第一传输消息用于指示第一设备与第一中继设备之间建立连接。Preferably, the first transmission message may be sent by the network device to the first device together with the data sharing confirmation message. The first transmission message is used to indicate that a connection is established between the first device and the first relay device.
可选的,网络设备向第一设备发送第一传输消息之前,可以先接收到第一设备发送的第一传输请求消息,第一传输请求消息用于请求向第二设备传输共享数据。之后,网络设备再向第一设备发送第一传输消息,第一设备根据第一传输消息与第二设备之间建立连接,并向第二设备传输共享数据。可选的,第一传输消息可以包含第二设备的IP(Internet Protocol,互联网协议)地址信息,也可以包括第二设备的路由点信息,第一设备可以通过IP地址信息与第二设备之间建立连接,也可以通过路由点信息与第二设备之间建立连接,在此,本发明不做具体限制。Optionally, before the network device sends the first transmission message to the first device, the network device may first receive the first transmission request message sent by the first device, where the first transmission request message is used to request to transmit the shared data to the second device. Then, the network device sends a first transmission message to the first device, where the first device establishes a connection with the second device according to the first transmission message, and transmits the shared data to the second device. Optionally, the first transmission message may include IP (Internet Protocol) address information of the second device, and may also include routing point information of the second device, where the first device may use the IP address information and the second device The connection is established, and the connection between the routing point information and the second device may also be established. The present invention is not specifically limited.
205、网络设备接收第二设备发送的第一状态信息。205. The network device receives the first state information sent by the second device.
其中,第一状态信息用于指示第二设备正处于接收共享数据的状态。即第二设备正在接收第一设备传输的共享数据。The first status information is used to indicate that the second device is in a state of receiving shared data. That is, the second device is receiving the shared data transmitted by the first device.
206、网络设备向第二设备发送第二传输消息。206. The network device sends a second transmission message to the second device.
其中,第二传输消息用于指示第二设备与第三设备,第二设备与第四设备之间建立连接。The second transmission message is used to indicate that the second device and the third device establish a connection between the second device and the fourth device.
可选的,网络设备向第二设备发送第二传输消息之前,可以先接收第二设备发送的第二传输请求消息,第二传输请求消息用于请求向第三设备及第四设备传输共享数据。之后,网络设备再向第二设备发送第二传输消息,第二设备根据第二传输消息分别与第三设备及第四设备之间建立连接,并向第三设备及第四设备传输共享数据。可选的,第二传输消息可以包含第三设备及第四设备的IP地址信息,也可以包括第三设备及第四设备的路由点信息,第二设备可以通过IP地址信息分别与第三设备及第四设备之间建立连接,也可以通过路由点信息分别与第三设备及第四设备之间建立连接,在此,本发明不做具体 限制。Optionally, before the network device sends the second transmission message to the second device, the network device may first receive the second transmission request message sent by the second device, where the second transmission request message is used to request to transmit the shared data to the third device and the fourth device. . Then, the network device sends a second transmission message to the second device, and the second device establishes a connection with the third device and the fourth device according to the second transmission message, and transmits the shared data to the third device and the fourth device. Optionally, the second transmission message may include the IP address information of the third device and the fourth device, and may also include routing point information of the third device and the fourth device, where the second device may separately use the IP address information and the third device. And establishing a connection between the fourth device, and establishing a connection between the third device and the fourth device by using the routing point information, where the present invention does not specifically limit.
207、网络设备接收第四设备发送的第二状态信息。207. The network device receives second state information sent by the fourth device.
其中,第二状态信息用于指示第四设备正处于接收共享数据的状态。即第四设备正在接收第二设备传输的共享数据。The second status information is used to indicate that the fourth device is in a state of receiving shared data. That is, the fourth device is receiving the shared data transmitted by the second device.
208、网络设备向第四设备发送第三传输消息。208. The network device sends a third transmission message to the fourth device.
其中,第三传输消息用于指示第四设备与第五设备之间建立连接。The third transmission message is used to indicate that a connection is established between the fourth device and the fifth device.
可选的,网络设备向第四设备发送第三传输消息之前,可以先接收到第四设备发送的第三传输请求消息,第三传输请求消息用于请求向第五设备传输共享数据。之后,网络设备再向第四设备发送第三传输消息,第四设备根据第三传输消息与第五设备之间建立连接,并向第五设备传输共享数据。可选的,第三传输消息可以包含第五设备的IP地址信息,也可以包括第五设备的路由点信息,第四设备可以通过IP地址信息与第五设备之间建立连接,也可以通过路由点信息与第五设备之间建立连接,在此,本发明不做具体限制。Optionally, before the network device sends the third transmission message to the fourth device, the network device may first receive the third transmission request message sent by the fourth device, where the third transmission request message is used to request to transmit the shared data to the fifth device. Then, the network device sends a third transmission message to the fourth device, and the fourth device establishes a connection with the fifth device according to the third transmission message, and transmits the shared data to the fifth device. Optionally, the third transmission message may include the IP address information of the fifth device, and may also include the routing point information of the fifth device, where the fourth device may establish a connection with the fifth device by using the IP address information, or may be configured by using a route. The point information is established with the fifth device, and the present invention is not specifically limited.
本发明实施例提供的路径选择方法,网络设备接收第一设备发送的数据共享请求消息,根据预设规则在第二设备,第三设备,第四设备及第五设备中确定中继设备及接收设备,并生成路径信息,向第一设备,第二设备,第三设备,第四设备及第五设备发送数据共享确认消息。这样一来,第一设备就可以根据路径信息将共享数据传输至第一中继设备,再由第一中继设备将共享数据传输至第三设备及第二中继设备,第二中继设备再将接收到的共享数据传输至第五设备,这样就可以通过选择第一中继设备及第二中继进行共享数据的传输,第一设备不再将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。According to the path selection method provided by the embodiment of the present invention, the network device receives the data sharing request message sent by the first device, and determines the relay device and the receiving device in the second device, the third device, the fourth device, and the fifth device according to the preset rule. And generating path information, and sending a data sharing confirmation message to the first device, the second device, the third device, the fourth device, and the fifth device. In this way, the first device can transmit the shared data to the first relay device according to the path information, and then the first relay device transmits the shared data to the third device and the second relay device, and the second relay device And transmitting the received shared data to the fifth device, so that the shared data can be transmitted by selecting the first relay device and the second relay, and the first device no longer transmits the shared data to each receiving device, thereby The load of the first device is reduced, which can solve the problem that when the first device connects a large number of receiving devices and simultaneously performs shared data transmission, the first device needs to transmit the shared data to each receiving device, which may result in The problem that the load of the first device is large.
结合图1及图2对应的实施例,本发明实施例提供一种路径选择方法,应用于路径选择设备,即第一设备,如图3所示,该路径选择方法包括: With reference to the embodiment corresponding to FIG. 1 and FIG. 2, the embodiment of the present invention provides a path selection method, which is applied to a path selection device, that is, a first device. As shown in FIG. 3, the path selection method includes:
301、第一设备向网络设备发送数据共享请求消息。301. The first device sends a data sharing request message to the network device.
具体的,第一设备向网络设备发送数据共享请求消息,以便网络设备根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息。其中,数据共享请求消息用于请求向第二设备及第三设备传输共享数据,路径信息用于指示第一设备向中继设备传输共享数据,中继设备将第一设备传输的共享数据传输至接收设备。Specifically, the first device sends a data sharing request message to the network device, so that the network device determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information. The data sharing request message is used to request to transmit the shared data to the second device and the third device, where the path information is used to instruct the first device to transmit the shared data to the relay device, and the relay device transmits the shared data transmitted by the first device to the Receiving device.
302、第一设备接收网络设备发送的数据共享确认消息。302. The first device receives a data sharing confirmation message sent by the network device.
其中,数据共享确认消息包含路径信息。The data sharing confirmation message includes path information.
303、第一设备接收网络设备发送的第一传输消息。303. The first device receives the first transmission message sent by the network device.
具体的,第一设备接收网络设备发送的第一传输消息,第一传输消息用于指示第一设备与中继设备之间建立连接。Specifically, the first device receives the first transmission message sent by the network device, where the first transmission message is used to indicate that the connection between the first device and the relay device is established.
304、第一设备根据第一传输消息与中继设备之间建立连接,并向中继设备传输共享数据。304. The first device establishes a connection with the relay device according to the first transmission message, and transmits the shared data to the relay device.
本发明实施例提供的路径选择方法,第一设备向网络设备发送数据共享请求消息,以便网络设备根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,第一设备接收网络设备发送的数据共享确认消息。这样一来,第一设备就可以根据路径信息将共享数据传输至第一中继设备,再由第一中继设备将共享数据传输至第三设备及第二中继设备,第二中继设备再将接收到的共享数据传输至第五设备,这样就可以通过选择第一中继设备及第二中继进行共享数据的传输,第一设备不再将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。In the path selection method provided by the embodiment of the present invention, the first device sends a data sharing request message to the network device, so that the network device determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information. The first device receives a data sharing confirmation message sent by the network device. In this way, the first device can transmit the shared data to the first relay device according to the path information, and then the first relay device transmits the shared data to the third device and the second relay device, and the second relay device And transmitting the received shared data to the fifth device, so that the shared data can be transmitted by selecting the first relay device and the second relay, and the first device no longer transmits the shared data to each receiving device, thereby The load of the first device is reduced, which can solve the problem that when the first device connects a large number of receiving devices and simultaneously performs shared data transmission, the first device needs to transmit the shared data to each receiving device, which may result in The problem that the load of the first device is large.
本发明实施例提供一种网络设备,可选的,应用于多方会议模式下的数据共享。如图4所示,该网络设备40可以包括:The embodiment of the invention provides a network device, which is optionally applied to data sharing in a multi-party conference mode. As shown in FIG. 4, the network device 40 can include:
接收单元401,用于接收第一设备发送的数据共享请求消息,数据共享请求消息用于请求向第二设备及第三设备传输共享数据。 The receiving unit 401 is configured to receive a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device.
处理单元402,用于根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,路径信息用于指示第一设备向中继设备传输共享数据,中继设备将第一设备传输的共享数据传输至接收设备。The processing unit 402 is configured to determine the relay device and the receiving device in the second device and the third device according to the preset rule, and generate path information, where the path information is used to instruct the first device to transmit the shared data to the relay device, and the relay The device transmits the shared data transmitted by the first device to the receiving device.
发送单元403,用于向第一设备,第二设备及第三设备发送数据共享确认消息,数据共享确认消息包含路径信息。The sending unit 403 is configured to send a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes path information.
可选的,网络设备40还包括获取单元404,用于获取第二设备的分发量及第三设备的分发量,第二设备的分发量用于指示能够与第二设备建立连接的设备的最大数量,第三设备的分发量用于指示能够与第三设备建立连接的设备的最大数量。Optionally, the network device 40 further includes an obtaining unit 404, configured to acquire a distribution amount of the second device and a distribution amount of the third device, where the distribution amount of the second device is used to indicate a maximum of the device that can establish a connection with the second device. The quantity, the amount of distribution of the third device is used to indicate the maximum number of devices that can establish a connection with the third device.
处理单元402,还用于将第二设备及第三设备中分发量较大的设备作为中继设备,将第二设备及第三设备中分发量较小的设备作为接收设备。The processing unit 402 is further configured to use, as the receiving device, a device with a large amount of distribution in the second device and the third device as a relay device, and a device with a smaller amount of distribution in the second device and the third device.
可选的,获取单元404,还用于获取第二设备的中继时延及第三设备的中继时延,第二设备的中继时延用于指示第一设备将共享数据传输至第二设备,再由第二设备将共享数据传输至第三设备所用的时间,第三设备的中继时延用于指示第一设备将共享数据传输至第三设备,再由第三设备将共享数据传输至第二设备所用的时间。Optionally, the obtaining unit 404 is further configured to obtain a relay delay of the second device and a relay delay of the third device, where the relay delay of the second device is used to instruct the first device to transmit the shared data to the first The time when the second device transmits the shared data to the third device, and the relay delay of the third device is used to instruct the first device to transmit the shared data to the third device, and then the third device shares the data. The time it takes for data to be transferred to the second device.
处理单元402,还用于将第二设备及第三设备中中继时延较小的设备作为中继设备,将第二设备及第三设备中中继时延较大的设备作为接收设备。The processing unit 402 is further configured to use, as the relay device, a device with a smaller relay delay in the second device and the third device as the relay device, and a device with a larger relay delay in the second device and the third device as the receiving device.
可选的,发送单元403,还用于向第一设备发送第一传输消息,第一传输消息用于指示第一设备与中继设备之间建立连接,以便第一设备向中继设备传输共享数据。Optionally, the sending unit 403 is further configured to send, to the first device, a first transmission message, where the first transmission message is used to indicate that the first device establishes a connection with the relay device, so that the first device transmits the sharing to the relay device. data.
可选的,接收单元401,还用于接收中继设备发送的第一状态信息,第一状态信息用于指示中继设备正处于接收共享数据的状态。Optionally, the receiving unit 401 is further configured to receive first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data.
发送单元403,还用于向中继设备发送第二传输消息,第二传输消息用于指示中继设备与接收设备之间建立连接,以便中继设备向接收设备传输共享数据。The sending unit 403 is further configured to send a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device transmits the shared data to the receiving device.
本发明实施例提供的网络设备,接收单元接收第一设备发送的数 据共享请求消息,处理单元根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,发送单元向第一设备,第二设备及第三设备发送数据共享确认消息。这样,第一设备就可以根据路径信息将共享数据传输至中继设备,再由中继设备将接收到的第一设备传输的共享数据传输至接收设备,这样就可以通过选择中继设备进行共享数据的传输,第一设备不再通过与每一个接收设备之间建立连接,将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。The network device provided by the embodiment of the present invention, the receiving unit receives the number sent by the first device According to the sharing request message, the processing unit determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information, and the sending unit sends data sharing to the first device, the second device, and the third device. Confirm the message. In this way, the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device. The transmission of the data, the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device When a large number of receiving devices are connected to simultaneously share data transmission, since the first device needs to transmit the shared data to each receiving device, the load of the first device is large.
基于图3对应的实施例,本发明实施例提供一种路径选择设备50,即第一设备50,如图5所示,该第一设备50包括:Based on the embodiment corresponding to FIG. 3, the embodiment of the present invention provides a path selection device 50, that is, a first device 50. As shown in FIG. 5, the first device 50 includes:
发送单元501,用于向网络设备发送数据共享请求消息,数据共享请求消息用于请求向第二设备及第三设备传输共享数据,以便网络设备根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,路径信息用于指示第一设备50向中继设备传输共享数据,中继设备将第一设备50传输的共享数据传输至接收设备。The sending unit 501 is configured to send a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device and the third device according to the preset rule. Determining the relay device and the receiving device, and generating path information, the path information is used to instruct the first device 50 to transmit the shared data to the relay device, and the relay device transmits the shared data transmitted by the first device 50 to the receiving device.
接收单元502,用于接收网络设备发送的数据共享确认消息,数据共享确认消息包含路径信息。The receiving unit 502 is configured to receive a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes path information.
可选的,接收单元502,还用于接收网络设备发送的第一传输消息,第一传输消息用于指示第一设备50与中继设备之间建立连接。Optionally, the receiving unit 502 is further configured to receive a first transmission message sent by the network device, where the first transmission message is used to indicate that the first device 50 establishes a connection with the relay device.
第一设备50还包括连接单元503,用于根据第一传输消息与中继设备之间建立连接;The first device 50 further includes a connection unit 503, configured to establish a connection with the relay device according to the first transmission message;
发送单元501,还用于向中继设备传输共享数据。The sending unit 501 is further configured to transmit the shared data to the relay device.
本发明实施例提供的路径选择设备,发送单元向网络设备发送数据共享请求消息,以便网络设备根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,接收单元接收网络设备发送的数据共享确认消息,数据共享确认消息包含路径信息。这样,第一设备就可以根据路径信息将共享数据传输至中继设备,再由中继 设备将接收到的第一设备传输的共享数据传输至接收设备,这样就可以通过选择中继设备进行共享数据的传输,第一设备不再通过与每一个接收设备之间建立连接,将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。In the path selection device provided by the embodiment of the present invention, the sending unit sends a data sharing request message to the network device, so that the network device determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information. The receiving unit receives a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes path information. In this way, the first device can transmit the shared data to the relay device according to the path information, and then relay The device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be transmitted by selecting the relay device, and the first device no longer establishes a connection with each receiving device, and the shared data is shared. It is transmitted to each receiving device, thereby reducing the load of the first device, and can solve the problem that the first device needs to transmit the shared data when the first device connects a larger number of receiving devices and simultaneously performs shared data transmission. To each receiving device, the problem of a large amount of load on the first device is caused.
本发明实施例提供一种网络设备60,参照图6所示,该设备可以嵌入或本身就是计算机,比如:通用计算机、手机终端或平板机等便携设备,该网络设备60包括:至少一个处理器601、存储器602、总线603、发射器604和接收器605,该至少一个处理器601、存储器602、发射器604和接收器605通过总线603连接并完成相互间的通信。The embodiment of the present invention provides a network device 60. As shown in FIG. 6, the device may be embedded or itself a computer, such as a general-purpose computer, a mobile phone terminal, or a tablet device. The network device 60 includes: at least one processor. 601. Memory 602, bus 603, transmitter 604, and receiver 605. The at least one processor 601, memory 602, transmitter 604, and receiver 605 are connected by bus 603 and communicate with each other.
该总线603可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component,外部设备互连)总线或EISA(Extended Industry Standard Architecture,扩展工业标准体系结构)总线等。该总线603可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。其中:The bus 603 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus 603 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus. among them:
存储器602用于存储本发明方案的应用程序代码,执行本发明方案的应用程序代码保存在存储器中,并由处理器601来控制执行。The memory 602 is used to store application code of the inventive scheme, and the application code for executing the inventive scheme is stored in a memory and controlled by the processor 601 for execution.
该存储器可以是只读存储器ROM或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器EEPROM、只读光盘CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。这些存储器通过总线与处理器相连接。The memory can be a read only memory ROM or other type of static storage device that can store static information and instructions, a random access memory RAM or other type of dynamic storage device that can store information and instructions, or can be electrically erasable or programmable. Read-only memory EEPROM, CD-ROM or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or can be used for Any other medium that carries or stores the desired program code in the form of an instruction or data structure and that can be accessed by a computer, but is not limited thereto. These memories are connected to the processor via a bus.
处理器601可能是一个中央处理器601(Central Processing Unit,简称为CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者是被配置成实施本发明实施例的一个 或多个集成电路。The processor 601 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one configured to implement the embodiment of the present invention. Or multiple integrated circuits.
接收器605,用于接收第一设备发送的数据共享请求消息,数据共享请求消息用于请求向第二设备及第三设备传输共享数据。The receiver 605 is configured to receive a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device.
处理器601,还用于根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,路径信息用于指示第一设备向中继设备传输共享数据,中继设备将第一设备传输的共享数据传输至接收设备。The processor 601 is further configured to determine the relay device and the receiving device in the second device and the third device according to the preset rule, and generate path information, where the path information is used to instruct the first device to transmit the shared data to the relay device, where The device transmits the shared data transmitted by the first device to the receiving device.
发射器604,还用于向第一设备,第二设备及第三设备发送数据共享确认消息,数据共享确认消息包含路径信息。The transmitter 604 is further configured to send a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes path information.
可选的,处理器601,还用于获取第二设备的分发量及第三设备的分发量,第二设备的分发量用于指示能够与第二设备建立连接的设备的最大数量,第三设备的分发量用于指示能够与第三设备建立连接的设备的最大数量。Optionally, the processor 601 is further configured to acquire a distribution amount of the second device and a distribution amount of the third device, where the distribution amount of the second device is used to indicate a maximum number of devices that can establish a connection with the second device, and third. The amount of distribution of the device is used to indicate the maximum number of devices that can establish a connection with the third device.
处理器601,还用于将第二设备及第三设备中分发量较大的设备作为中继设备,将第二设备及第三设备中分发量较小的设备作为接收设备。The processor 601 is further configured to use, as the receiving device, a device with a large amount of distribution in the second device and the third device as a relay device, and a device with a smaller amount of distribution in the second device and the third device.
可选的,处理器601,还用于获取第二设备的中继时延及第三设备的中继时延,第二设备的中继时延用于指示第一设备将共享数据传输至第二设备,再由第二设备将共享数据传输至第三设备所用的时间,第三设备的中继时延用于指示第一设备将共享数据传输至第三设备,再由第三设备将共享数据传输至第二设备所用的时间。Optionally, the processor 601 is further configured to obtain a relay delay of the second device and a relay delay of the third device, where the relay delay of the second device is used to instruct the first device to transmit the shared data to the first The time when the second device transmits the shared data to the third device, and the relay delay of the third device is used to instruct the first device to transmit the shared data to the third device, and then the third device shares the data. The time it takes for data to be transferred to the second device.
处理器601,还用于将第二设备及第三设备中中继时延较小的设备作为中继设备,将第二设备及第三设备中中继时延较大的设备作为接收设备。The processor 601 is further configured to use, as the relay device, a device with a smaller relay delay in the second device and the third device as the relay device, and a device with a larger relay delay in the second device and the third device as the receiving device.
可选的,发射器604,还用于向第一设备发送第一传输消息,第一传输消息用于指示第一设备与中继设备之间建立连接,以便第一设备向中继设备传输共享数据。Optionally, the transmitter 604 is further configured to send a first transmission message to the first device, where the first transmission message is used to indicate that the first device establishes a connection with the relay device, so that the first device transmits the sharing to the relay device. data.
可选的,接收器605,还用于接收中继设备发送的第一状态信息,第一状态信息用于指示中继设备正处于接收共享数据的状态。 Optionally, the receiver 605 is further configured to receive first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data.
发射器604,还用于向中继设备发送第二传输消息,第二传输消息用于指示中继设备与接收设备之间建立连接,以便中继设备向接收设备传输共享数据。The transmitter 604 is further configured to send a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device transmits the shared data to the receiving device.
本发明实施例提供的网络设备,处理器接收第一设备发送的数据共享请求消息,根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,向第一设备,第二设备及第三设备发送数据共享确认消息。这样,第一设备就可以根据路径信息将共享数据传输至中继设备,再由中继设备将接收到的第一设备传输的共享数据传输至接收设备,这样就可以通过选择中继设备进行共享数据的传输,第一设备不再通过与每一个接收设备之间建立连接,将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。The network device provided by the embodiment of the present invention, the processor receives the data sharing request message sent by the first device, determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information, A device, a second device, and a third device send a data sharing confirmation message. In this way, the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device. The transmission of the data, the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device When a large number of receiving devices are connected to simultaneously share data transmission, since the first device needs to transmit the shared data to each receiving device, the load of the first device is large.
本发明实施例提供一种路径选择设备70,即第一设备70,参照图7所示,该设备可以嵌入或本身就是计算机,比如:通用计算机、手机终端或平板机等便携设备,该第一设备70包括:至少一个处理器701、存储器702、总线703、发射器704和接收器705,该至少一个处理器701、存储器702、发射器704和接收器705通过总线703连接并完成相互间的通信。The embodiment of the present invention provides a path selection device 70, that is, a first device 70. As shown in FIG. 7, the device may be embedded or itself a computer, such as a general-purpose computer, a mobile phone terminal, or a portable device such as a tablet. The device 70 includes: at least one processor 701, a memory 702, a bus 703, a transmitter 704, and a receiver 705. The at least one processor 701, the memory 702, the transmitter 704, and the receiver 705 are connected and completed by a bus 703. Communication.
该总线703可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component,外部设备互连)总线或EISA(Extended Industry Standard Architecture,扩展工业标准体系结构)总线等。该总线703可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。其中:The bus 703 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus 703 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus. among them:
存储器702用于存储本发明方案的应用程序代码,执行本发明方案的应用程序代码保存在存储器中,并由处理器701来控制执行。The memory 702 is for storing application code of the inventive scheme, and the application code for executing the inventive scheme is stored in a memory and controlled by the processor 701 for execution.
该存储器可以是只读存储器ROM或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器 EEPROM、只读光盘CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。这些存储器通过总线与处理器相连接。The memory can be a read only memory ROM or other type of static storage device that can store static information and instructions, a random access memory RAM or other type of dynamic storage device that can store information and instructions, or can be electrically erasable or programmable. ROM EEPROM, CD-ROM or other CD storage, CD storage (including compact discs, laser discs, CDs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or can be used for carrying or storing Any other medium having the desired program code in the form of an instruction or data structure and accessible by a computer, but is not limited thereto. These memories are connected to the processor via a bus.
处理器701可能是一个中央处理器701(Central Processing Unit,简称为CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 701 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. Integrated circuits.
发射器704,用于向网络设备发送数据共享请求消息,数据共享请求消息用于请求向第二设备及第三设备传输共享数据,以便网络设备根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,路径信息用于指示第一设备70向中继设备传输共享数据,中继设备将第一设备70传输的共享数据传输至接收设备。The transmitter 704 is configured to send a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device and the third device according to the preset rule. Determining the relay device and the receiving device, and generating path information, the path information is used to instruct the first device 70 to transmit the shared data to the relay device, and the relay device transmits the shared data transmitted by the first device 70 to the receiving device.
接收器705,用于接收网络设备发送的数据共享确认消息,数据共享确认消息包含路径信息。The receiver 705 is configured to receive a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes path information.
可选的,接收器705,还用于接收网络设备发送的第一传输消息,第一传输消息用于指示第一设备70与中继设备之间建立连接。Optionally, the receiver 705 is further configured to receive a first transmission message sent by the network device, where the first transmission message is used to indicate that the first device 70 establishes a connection with the relay device.
处理器701,用于根据第一传输消息与中继设备之间建立连接;The processor 701 is configured to establish a connection with the relay device according to the first transmission message.
发射器704,还用于向中继设备传输共享数据。The transmitter 704 is further configured to transmit the shared data to the relay device.
本发明实施例提供的路径选择设备,发射器向网络设备发送数据共享请求消息,以便网络设备根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,接收器接收网络设备发送的数据共享确认消息,数据共享确认消息包含路径信息。这样,第一设备就可以根据路径信息将共享数据传输至中继设备,再由中继设备将接收到的第一设备传输的共享数据传输至接收设备,这样就可以通过选择中继设备进行共享数据的传输,第一设备不再通过与每一个接收设备之间建立连接,将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数 据传输至每一个接收设备,会导致第一设备的负载量较大的问题。In the path selection device provided by the embodiment of the present invention, the transmitter sends a data sharing request message to the network device, so that the network device determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information. The receiver receives a data sharing confirmation message sent by the network device, and the data sharing confirmation message includes path information. In this way, the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device. The transmission of the data, the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device When a large number of receiving devices are connected simultaneously for shared data transmission, since the first device needs to share the number According to transmission to each receiving device, the load of the first device is large.
本发明实施例提供一种传输系统80,如图8所示,包括网络设备801,路径选择设备802及至少两个其他设备803。The embodiment of the present invention provides a transmission system 80, as shown in FIG. 8, including a network device 801, a path selection device 802, and at least two other devices 803.
其中,网络设备801为图4或图6对应的实施例中所描述的网络设备801。The network device 801 is the network device 801 described in the embodiment corresponding to FIG. 4 or FIG. 6.
路径选择设备802为图5或图7对应的实施例中所描述的路径选择设备802。The path selection device 802 is the path selection device 802 described in the embodiment corresponding to FIG. 5 or FIG.
本发明实施例提供的传输系统,网络设备接收第一设备发送的数据共享请求消息,并根据预设规则在第二设备及第三设备中确定中继设备及接收设备,并生成路径信息,网络设备向第一设备,第二设备及第三设备发送数据共享确认消息,数据共享确认消息包含路径信息。这样,第一设备就可以根据路径信息将共享数据传输至中继设备,再由中继设备将接收到的第一设备传输的共享数据传输至接收设备,这样就可以通过选择中继设备进行共享数据的传输,第一设备不再通过与每一个接收设备之间建立连接,将共享数据传输至每一个接收设备,从而降低了第一设备的负载量,能够解决现有技术中当第一设备连接较多数量的接收设备同时进行共享数据传输时,由于第一设备需要将共享数据传输至每一个接收设备,会导致第一设备的负载量较大的问题。In the transmission system provided by the embodiment of the present invention, the network device receives the data sharing request message sent by the first device, and determines the relay device and the receiving device in the second device and the third device according to the preset rule, and generates path information, and the network The device sends a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes path information. In this way, the first device can transmit the shared data to the relay device according to the path information, and then the relay device transmits the received shared data transmitted by the first device to the receiving device, so that the shared device can be shared by selecting the relay device. The transmission of the data, the first device no longer establishes a connection with each of the receiving devices, and transmits the shared data to each of the receiving devices, thereby reducing the load of the first device, and solving the prior art as the first device When a large number of receiving devices are connected to simultaneously share data transmission, since the first device needs to transmit the shared data to each receiving device, the load of the first device is large.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The software functional units described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform portions of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (15)

  1. 一种路径选择方法,其特征在于,应用于网络设备,所述方法包括:A path selection method, which is applied to a network device, and the method includes:
    网络设备接收第一设备发送的数据共享请求消息,所述数据共享请求消息用于请求向第二设备及第三设备传输共享数据;Receiving, by the network device, a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device;
    所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,并生成路径信息,所述路径信息用于指示所述第一设备向所述中继设备传输共享数据,所述中继设备将所述第一设备传输的共享数据传输至所述接收设备;Determining, by the network device, the relay device and the receiving device in the second device and the third device according to a preset rule, and generating path information, where the path information is used to indicate that the first device is in the middle Transmitting, by the device, the shared data, the relay device transmitting the shared data transmitted by the first device to the receiving device;
    所述网络设备向所述第一设备,所述第二设备及所述第三设备发送数据共享确认消息,所述数据共享确认消息包含所述路径信息。The network device sends a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes the path information.
  2. 根据权利要求1所述的方法,其特征在于,所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,包括:The method according to claim 1, wherein the determining, by the network device, the relay device and the receiving device in the second device and the third device according to a preset rule, including:
    所述网络设备获取所述第二设备的分发量及所述第三设备的分发量,所述第二设备的分发量用于指示能够与所述第二设备建立连接的设备的最大数量,所述第三设备的分发量用于指示能够与所述第三设备建立连接的设备的最大数量;The network device acquires a distribution amount of the second device and a distribution amount of the third device, where a distribution amount of the second device is used to indicate a maximum number of devices that can establish a connection with the second device, where The distribution amount of the third device is used to indicate the maximum number of devices that can establish a connection with the third device;
    所述网络设备将所述第二设备及所述第三设备中分发量较大的设备作为所述中继设备,将所述第二设备及所述第三设备中分发量较小的设备作为所述接收设备。The network device uses, as the relay device, a device with a large amount of distribution in the second device and the third device, and uses a device with a smaller distribution amount in the second device and the third device as The receiving device.
  3. 根据权利要求1所述的方法,其特征在于,所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,包括:The method according to claim 1, wherein the determining, by the network device, the relay device and the receiving device in the second device and the third device according to a preset rule, including:
    所述网络设备获取所述第二设备的中继时延及所述第三设备的中继时延,所述第二设备的中继时延用于指示所述第一设备将所述共享数据传输至所述第二设备,再由所述第二设备将所述共享数据传输至所述第三设备所用的时间,所述第三设备的中继时延用于指示所述第一设备将所述共享数据传输至所述第三设备,再由所述第三设备将 所述共享数据传输至所述第二设备所用的时间;The network device acquires a relay delay of the second device and a relay delay of the third device, where a relay delay of the second device is used to indicate that the first device uses the shared data Transmitted to the second device, where the second device transmits the shared data to the third device, and the relay delay of the third device is used to indicate that the first device will Transmitting the shared data to the third device, and then the third device The time taken for the shared data to be transmitted to the second device;
    所述网络设备将所述第二设备及所述第三设备中中继时延小的设备作为所述中继设备,将所述第二设备及所述第三设备中中继时延大的设备作为所述接收设备。The network device uses, as the relay device, a device with a small relay delay in the second device and the third device, and delays a relay in the second device and the third device. The device acts as the receiving device.
  4. 根据权利要求2或3所述的方法,其特征在于,所述方法还包括:The method according to claim 2 or 3, wherein the method further comprises:
    所述网络设备向所述第一设备发送第一传输消息,所述第一传输消息用于指示所述第一设备与所述中继设备之间建立连接,以便所述第一设备向所述中继设备传输所述共享数据。The network device sends a first transmission message to the first device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device, so that the first device sends the The relay device transmits the shared data.
  5. 根据权利要求4所述的方法,其特征在于,所述方法包括:The method of claim 4 wherein said method comprises:
    网络设备接收所述中继设备发送的第一状态信息,所述第一状态信息用于指示所述中继设备正处于接收所述共享数据的状态;Receiving, by the network device, first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data;
    所述网络设备向所述中继设备发送第二传输消息,所述第二传输消息用于指示所述中继设备与所述接收设备之间建立连接,以便所述中继设备向所述接收设备传输所述共享数据。The network device sends a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device receives the The device transmits the shared data.
  6. 一种路径选择方法,其特征在于,应用于路径选择设备,所述路径选择设备具体为第一设备,所述方法包括:A path selection method, which is applied to a path selection device, where the path selection device is specifically a first device, and the method includes:
    第一设备向网络设备发送数据共享请求消息,所述数据共享请求消息用于请求向第二设备及第三设备传输共享数据,以便所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,并生成路径信息,所述路径信息用于指示所述第一设备向所述中继设备传输共享数据,所述中继设备将所述第一设备传输的共享数据传输至所述接收设备;The first device sends a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device and the device according to a preset rule. Determining the relay device and the receiving device in the third device, and generating path information, where the path information is used to indicate that the first device transmits shared data to the relay device, and the relay device The shared data transmitted by the device is transmitted to the receiving device;
    所述第一设备接收网络设备发送的数据共享确认消息,所述数据共享确认消息包含所述路径信息。The first device receives a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes the path information.
  7. 根据权利要求6所述的方法,其特征在于,The method of claim 6 wherein:
    所述第一设备接收网络设备发送的第一传输消息,所述第一传输消息用于指示所述第一设备与所述中继设备之间建立连接;Receiving, by the first device, a first transmission message sent by the network device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device;
    所述第一设备根据所述第一传输消息与所述中继设备之间建立 连接,并向所述中继设备传输所述共享数据。Establishing, by the first device, the first transmission message and the relay device Connecting and transmitting the shared data to the relay device.
  8. 一种网络设备,其特征在于,包括:A network device, comprising:
    接收单元,用于接收第一设备发送的数据共享请求消息,所述数据共享请求消息用于请求向第二设备及第三设备传输共享数据;a receiving unit, configured to receive a data sharing request message sent by the first device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device;
    处理单元,用于根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,并生成路径信息,所述路径信息用于指示所述第一设备向所述中继设备传输共享数据,所述中继设备将所述第一设备传输的共享数据传输至所述接收设备;a processing unit, configured to determine, in the second device and the third device, a relay device and a receiving device according to a preset rule, and generate path information, where the path information is used to indicate that the first device is to the The relay device transmits the shared data, and the relay device transmits the shared data transmitted by the first device to the receiving device;
    发送单元,用于向所述第一设备,所述第二设备及所述第三设备发送数据共享确认消息,所述数据共享确认消息包含所述路径信息。And a sending unit, configured to send a data sharing confirmation message to the first device, the second device, and the third device, where the data sharing confirmation message includes the path information.
  9. 根据权利要求8所述的网络设备,其特征在于,A network device according to claim 8, wherein
    所述网络设备还包括获取单元,用于获取所述第二设备的分发量及所述第三设备的分发量,所述第二设备的分发量用于指示能够与所述第二设备建立连接的设备的最大数量,所述第三设备的分发量用于指示能够与所述第三设备建立连接的设备的最大数量;The network device further includes an obtaining unit, configured to acquire a distribution amount of the second device and a distribution amount of the third device, where the distribution amount of the second device is used to indicate that the connection with the second device is The maximum number of devices, the amount of distribution of the third device is used to indicate the maximum number of devices capable of establishing a connection with the third device;
    所述处理单元,还用于将所述第二设备及所述第三设备中分发量大的设备作为所述中继设备,将所述第二设备及所述第三设备中分发量小的设备作为所述接收设备。The processing unit is further configured to use, as the relay device, a device with a large amount of distribution in the second device and the third device, and distribute a small amount in the second device and the third device The device acts as the receiving device.
  10. 根据权利要求8所述的网络设备,其特征在于,A network device according to claim 8, wherein
    所述获取单元,还用于获取所述第二设备的中继时延及所述第三设备的中继时延,所述第二设备的中继时延用于指示所述第一设备将所述共享数据传输至所述第二设备,再由所述第二设备将所述共享数据传输至所述第三设备所用的时间,所述第三设备的中继时延用于指示所述第一设备将所述共享数据传输至所述第三设备,再由所述第三设备将所述共享数据传输至所述第二设备所用的时间;The acquiring unit is further configured to acquire a relay delay of the second device and a relay delay of the third device, where a relay delay of the second device is used to indicate that the first device Transmitting the shared data to the second device, and then using the second device to transmit the shared data to the third device, where the relay delay of the third device is used to indicate the Transmitting, by the first device, the shared data to the third device, and then using the third device to transmit the shared data to the second device;
    所述处理单元,还用于将所述第二设备及所述第三设备中中继时延较小的设备作为所述中继设备,将所述第二设备及所述第三设备中中继时延较大的设备作为所述接收设备。The processing unit is further configured to use, as the relay device, a device with a smaller relay delay in the second device and the third device, and the second device and the third device A device having a large delay is used as the receiving device.
  11. 根据权利要求9或10所述的网络设备,其特征在于, A network device according to claim 9 or 10, characterized in that
    所述发送单元,还用于向所述第一设备发送第一传输消息,所述第一传输消息用于指示所述第一设备与所述中继设备之间建立连接,以便所述第一设备向所述中继设备传输所述共享数据。The sending unit is further configured to send a first transmission message to the first device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device, so that the first The device transmits the shared data to the relay device.
  12. 根据权利要求11所述的网络设备,其特征在于,The network device according to claim 11, wherein
    所述接收单元,还用于接收所述中继设备发送的第一状态信息,所述第一状态信息用于指示所述中继设备正处于接收所述共享数据的状态;The receiving unit is further configured to receive first state information that is sent by the relay device, where the first state information is used to indicate that the relay device is in a state of receiving the shared data;
    所述发送单元,还用于向所述中继设备发送第二传输消息,所述第二传输消息用于指示所述中继设备与所述接收设备之间建立连接,以便所述中继设备向所述接收设备传输所述共享数据。The sending unit is further configured to send a second transmission message to the relay device, where the second transmission message is used to indicate that a connection is established between the relay device and the receiving device, so that the relay device Transmitting the shared data to the receiving device.
  13. 一种路径选择设备,其特征在于,所述路径选择设备为第一设备,包括:A path selection device, wherein the path selection device is a first device, including:
    发送单元,用于向网络设备发送数据共享请求消息,所述数据共享请求消息用于请求向第二设备及第三设备传输共享数据,以便所述网络设备根据预设规则在所述第二设备及所述第三设备中确定中继设备及接收设备,并生成路径信息,所述路径信息用于指示所述第一设备向所述中继设备传输共享数据,所述中继设备将所述第一设备传输的共享数据传输至所述接收设备;a sending unit, configured to send a data sharing request message to the network device, where the data sharing request message is used to request to transmit the shared data to the second device and the third device, so that the network device is in the second device according to a preset rule. And determining, by the third device, the relay device and the receiving device, and generating path information, where the path information is used to instruct the first device to transmit shared data to the relay device, where the relay device The shared data transmitted by the first device is transmitted to the receiving device;
    接收单元,用于接收网络设备发送的数据共享确认消息,所述数据共享确认消息包含所述路径信息。And a receiving unit, configured to receive a data sharing confirmation message sent by the network device, where the data sharing confirmation message includes the path information.
  14. 根据权利要求13所述的路径选择设备,其特征在于,The path selection device according to claim 13, wherein
    所述接收单元,还用于接收网络设备发送的第一传输消息,所述第一传输消息用于指示所述第一设备与所述中继设备之间建立连接;The receiving unit is further configured to receive a first transmission message that is sent by the network device, where the first transmission message is used to indicate that a connection is established between the first device and the relay device;
    所述第一设备还包括连接单元,用于根据所述第一传输消息与所述中继设备之间建立连接;The first device further includes a connection unit, configured to establish a connection with the relay device according to the first transmission message;
    所述发送单元,还用于向所述中继设备传输所述共享数据。The sending unit is further configured to transmit the shared data to the relay device.
  15. 一种传输系统,其特征在于,包括网络设备,路径选择设备及至少两个其他设备;A transmission system, comprising: a network device, a path selection device, and at least two other devices;
    其中,所述网络设备为权利要求8-12任一项所述的网络设备; The network device is the network device according to any one of claims 8-12;
    所述第一设备为权利要求13-14任一项所述的路径选择设备。 The first device is the path selection device of any one of claims 13-14.
PCT/CN2015/084000 2014-12-15 2015-07-14 Path selection method, device and system WO2016095510A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410777684.6 2014-12-15
CN201410777684.6A CN105763456A (en) 2014-12-15 2014-12-15 Path selection method, device and system

Publications (1)

Publication Number Publication Date
WO2016095510A1 true WO2016095510A1 (en) 2016-06-23

Family

ID=56125814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084000 WO2016095510A1 (en) 2014-12-15 2015-07-14 Path selection method, device and system

Country Status (2)

Country Link
CN (1) CN105763456A (en)
WO (1) WO2016095510A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019084748A1 (en) * 2017-10-31 2019-05-09 麦格创科技(深圳)有限公司 Method and system for realizing web page task assignment
WO2019084750A1 (en) * 2017-10-31 2019-05-09 麦格创科技(深圳)有限公司 Method and system for implementing task assignment in distributed system
CN112600753B (en) * 2020-12-08 2023-03-24 广州技象科技有限公司 Equipment node communication path selection method and device according to equipment access amount

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420375A (en) * 2007-10-25 2009-04-29 阿尔卡特朗讯公司 Distribution of shared content streams in communications networks
US20100262709A1 (en) * 2009-04-14 2010-10-14 Skype Limited Optimising communications
US20130003592A1 (en) * 2009-04-14 2013-01-03 Microsoft Corporation Optimizing Communications
US20130016728A1 (en) * 2009-04-14 2013-01-17 Microsoft Corporation Optimising Communications
CN104125620A (en) * 2014-07-31 2014-10-29 宇龙计算机通信科技(深圳)有限公司 Relay selection routing method and relay selection routing device based on terminal device-to-device communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420375A (en) * 2007-10-25 2009-04-29 阿尔卡特朗讯公司 Distribution of shared content streams in communications networks
US20100262709A1 (en) * 2009-04-14 2010-10-14 Skype Limited Optimising communications
US20130003592A1 (en) * 2009-04-14 2013-01-03 Microsoft Corporation Optimizing Communications
US20130016728A1 (en) * 2009-04-14 2013-01-17 Microsoft Corporation Optimising Communications
CN104125620A (en) * 2014-07-31 2014-10-29 宇龙计算机通信科技(深圳)有限公司 Relay selection routing method and relay selection routing device based on terminal device-to-device communication

Also Published As

Publication number Publication date
CN105763456A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN110708393B (en) Method, device and system for transmitting data
US10630739B2 (en) Parallel peer to peer connection establishment in WebRTC conferencing
US20140323110A1 (en) Multipoint communication device and method of performing switching from multipoint communication to point-to-point communication
US8903972B2 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
US9231907B2 (en) Method for establishing connection between communication apparatuses, communication apparatus, and server apparatus
KR20150013860A (en) Clientless cloud computing
CN109586929B (en) Conference content transmission method and device, electronic equipment and storage medium
WO2017113816A1 (en) Method and device for peer-to-peer network connection
JP2023508061A (en) ACCOUNT ACCESS METHOD AND DEVICE, STORAGE MEDIUM, AND ELECTRONIC DEVICE
TW201729568A (en) Network system and method for establishing data connection
WO2016095510A1 (en) Path selection method, device and system
CN112788053A (en) Real-time communication method, device, server, system and storage medium
US11659012B2 (en) Relayed communication channel establishment
WO2022100199A1 (en) Data transmission method and apparatus, and medium, electronic device and network access device
WO2024083008A1 (en) Data transmission method, apparatus and system, electronic device, and medium
WO2016029854A1 (en) Wireless network connection method, device and system
WO2018192241A1 (en) Server deployment structure and method for implementing inter-network communication
CN112398845A (en) Data transmission method, data transmission device, data transmission system and electronic equipment
US10938591B2 (en) Multicast system
CN116233481A (en) Media stream transmission method, media server and communication system
US11044214B2 (en) Multimedia file adaption across different communication platforms
JP2023547836A (en) Enabling vertical application tier servers for peer-to-peer media parameter negotiation
US10785121B2 (en) Device discovery using discovery nodes
US20150200980A1 (en) Hybrid Client/Server Online Conference Session Management
JP7217647B2 (en) Communication device, communication method, and program

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

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

Country of ref document: EP

Kind code of ref document: A1