Network scheduling method and device and electronic equipment

文档序号:1478668 发布日期:2020-02-25 浏览:6次 中文

阅读说明:本技术 网络调度方法、装置以及电子设备 (Network scheduling method and device and electronic equipment ) 是由 李冬堃 于 2018-08-17 设计创作,主要内容包括:本申请公开了一种网络调度方法,包括:获取网络数据流业务方的业务地址;将所述业务地址同步到内容分发网络的服务节点;检测所述内容分发网络的服务节点到所述业务地址的路由信息;根据检测到的路由信息确定从所述内容分发网络的服务节点到所述业务地址的最优访问路径;将所述最优访问路径对应的服务节点分配给所述网络数据流业务方的业务请求。所述网络调度方法不仅能够确保视频服务的可用,同时还实现最优服务节点的调度,提升了视频服务的整体稳定性,以及网络数据流业务方的用户体验。(The application discloses a network scheduling method, which comprises the following steps: acquiring a service address of a network data stream service party; synchronizing the service address to a service node of a content distribution network; detecting routing information from a service node of the content distribution network to the service address; determining an optimal access path from a service node of the content distribution network to the service address according to the detected routing information; and distributing the service node corresponding to the optimal access path to the service request of the network data flow service party. The network scheduling method can not only ensure the availability of the video service, but also realize the scheduling of the optimal service node, thereby improving the overall stability of the video service and the user experience of the network data stream service party.)

1. A method for network scheduling, comprising:

acquiring a service address of a network data stream service party;

synchronizing the service address to a service node of a content distribution network;

detecting routing information from a service node of the content distribution network to the service address;

determining an optimal access path from a service node of the content distribution network to the service address according to the detected routing information;

and distributing the service node corresponding to the optimal access path to the service request of the network data flow service party.

2. The network scheduling method of claim 1, wherein the optimal access path comprises at least one of:

the access path with the shortest access path from the service node of the content distribution network to the service address, the access path with the shortest access time from the service node of the content distribution network to the service address, and the most stable access path from the service node of the content distribution network to the service address access path are transmitted.

3. The network scheduling method of claim 2, wherein after the step of obtaining the service address of the service party of the network data stream is executed and before the step of synchronizing the service address to the service node of the content distribution network is executed, the method comprises:

determining a network operator to which the network data flow service party belongs and a geographical area in which a service address of the network data flow service party is located;

correspondingly, the synchronizing the service address to the service node of the content distribution network includes:

and synchronizing the service address of the network data flow service party, the network operator where the network data flow service party is located and the geographical area where the service address of the network data flow service party belongs in the network operator to all service nodes of the content distribution network.

4. The network scheduling method of claim 3, wherein the detecting the routing information from the service node of the content distribution network to the service address comprises:

screening out service nodes which belong to the same network operator as the network data flow service party and are in the same provincial geographical area as the service address of the network data flow service party in the network operator from the service nodes of the content distribution network;

and aiming at all the screened service nodes, detecting the routing information from the service nodes to the service addresses.

5. The network scheduling method according to any one of claims 1 to 4, wherein the network scheduling method is implemented based on a live video scene;

correspondingly, the network data flow service side comprises: a live broadcast party and a listening/viewing party;

the service address of the network data flow service party comprises: a live address of the live broadcaster and a user address of the listening/viewing party;

the service request of the network data flow service party comprises: the live broadcast push stream request initiated by the live broadcast party and the video receiving stream request initiated by the listening/watching party.

6. The network scheduling method of claim 5, wherein if the network data flow service party is a live broadcast party, the service address of the network data flow service party is a live broadcast address of the live broadcast party, and the service request of the network data flow service party is a live broadcast stream pushing request initiated by the live broadcast party; correspondingly, after the step of determining the optimal access path from the service node of the content distribution network to the service address according to the detected routing information is executed, and before the step of allocating the service node corresponding to the optimal access path to the service request of the network data stream service side is executed, the method includes:

storing the optimal access path in a scheduling database;

receiving a live broadcast stream pushing request initiated by the live broadcast party;

and reading an optimal access path corresponding to the live broadcast address from the scheduling database according to the live broadcast address of the live broadcast party carried by the live broadcast stream pushing request.

7. The network scheduling method of claim 5, wherein if the network data flow service party is a live broadcast party, the service address of the network data flow service party is a live broadcast address of the live broadcast party, and the service request of the network data flow service party is a live broadcast stream pushing request initiated by the live broadcast party; correspondingly, before the step of obtaining the service address of the network data stream service party is executed, the method includes:

receiving a live broadcast stream pushing request sent by the live broadcast party; and the live broadcast stream pushing request carries a live broadcast address of the live broadcast party.

8. The network scheduling method of claim 5, wherein if the network data stream service party is a listening/viewing party, the service address of the network data stream service party is the user address of the listening/viewing party, and the service request of the network data stream service party is a video streaming receiving request initiated by the listening/viewing party; correspondingly, after the step of determining the optimal access path from the service node of the content distribution network to the service address according to the detected routing information is executed, and before the step of allocating the service node corresponding to the optimal access path to the service request of the network data stream service side is executed, the method includes:

storing the optimal access path in a scheduling database;

receiving a video streaming request initiated by the listening/viewing party;

and reading an optimal access path corresponding to the user address from the scheduling database according to the user address of the listening/watching party carried by the video streaming receiving request.

9. The network scheduling method of claim 5, wherein if the network data stream service party is a listening/viewing party, the service address of the network data stream service party is the user address of the listening/viewing party, and the service request of the network data stream service party is a video streaming receiving request initiated by the listening/viewing party; correspondingly, before the step of obtaining the service address of the network data stream service party is executed, the method includes:

receiving a video streaming request sent by the listening/watching party; and the video streaming request carries the user address of the listening/watching party.

10. A network scheduling apparatus, comprising:

a service address obtaining unit, configured to obtain a service address of a network data stream service party;

a service address synchronization unit, configured to synchronize the service address to a service node of a content distribution network;

a routing information detection unit, configured to detect routing information from a service node of the content distribution network to the service address;

an optimal access path determining unit, configured to determine an optimal access path from a service node of the content distribution network to the service address according to the detected routing information;

and the service node distribution unit is used for distributing the service node corresponding to the optimal access path to the service request of the network data stream service party.

11. The network scheduling apparatus of claim 10, wherein the optimal access path comprises at least one of:

the access path with the shortest access path from the service node of the content distribution network to the service address, the access path with the shortest access time from the service node of the content distribution network to the service address, and the most stable access path from the service node of the content distribution network to the service address access path are transmitted.

12. The network scheduling apparatus of claim 11, comprising:

a network information determining unit, configured to determine a network operator to which the network data flow service party belongs, and a geographic area where a service address of the network data flow service party is located in the network operator;

correspondingly, the service address synchronization unit is specifically configured to synchronize the service address of the network data flow service party, the network operator where the network data flow service party is located, and the geographic area where the service address of the network data flow service party belongs in the network operator to all service nodes of the content distribution network.

13. The network scheduling apparatus of claim 12, wherein the routing information detecting unit comprises:

a screening subunit, configured to screen, from service nodes of the content distribution network, service nodes that belong to the same network operator as the network data flow service party and are located in the same provincial geographic area as a service address of the network data flow service party in the network operator;

and the detection subunit is used for detecting the routing information from the service node to the service address aiming at all the screened service nodes.

14. The network scheduling apparatus according to any one of claims 10 to 13, wherein the network scheduling apparatus operates based on a live video scene;

correspondingly, the network data flow service side comprises: a live broadcast party and a listening/viewing party;

the service address of the network data flow service party comprises: a live address of the live broadcaster and a user address of the listening/viewing party;

the service request of the network data flow service party comprises: the live broadcast push stream request initiated by the live broadcast party and the video receiving stream request initiated by the listening/watching party.

15. An electronic device, comprising:

a memory and a processor;

the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:

acquiring a service address of a network data stream service party;

synchronizing the service address to a service node of a content distribution network;

detecting routing information from a service node of the content distribution network to the service address;

determining an optimal access path from a service node of the content distribution network to the service address according to the detected routing information;

and distributing the service node corresponding to the optimal access path to the service request of the network data flow service party.

Technical Field

The present application relates to the field of network technologies, and in particular, to a network scheduling method. The application also relates to a network scheduling device and an electronic device.

Background

With the continuous development of computer technology, people have increasingly rich daily entertainment activities, for example, there are many websites providing online video services, and users can watch video or audio programs provided by a main broadcast online through an application program. In a live broadcast service scene, the live broadcast service scene is divided into a live broadcast party (such as a main broadcast user) and a listening/watching party (such as a watching user watching a live video), and a live broadcast video file recorded by the live broadcast party is pushed to a streaming server through a streaming pushing technology; when watching the live video file, the listening/watching party sends out a video live watching request, and the streaming server pulls the live video file stream to the client of the listening/watching party through the streaming technology.

At present, in a live broadcast service scenario, a host user needs to continuously transmit a video stream acquired by a camera from a network of the host user to a stream receiving server through the internet, upload the video stream to a video source, process and distribute the video stream to a watching user, after the host initiates a live broadcast action, live broadcast software performs recursive query on a stream pushing address according to a local network outlet until an IP address of a stream pushing access node is obtained, and performs live broadcast stream pushing according to the IP address of the stream pushing access node. Or, initiating a live broadcasting action at the anchor, initiating an IP address query request by the live broadcasting software, returning the IP address of the stream pushing access node according to the IP address of the user client, and carrying out live broadcasting stream pushing according to the IP address of the stream pushing access node.

However, the foregoing two manners are allocated to the push stream access node available to the user, and it cannot be noticed whether the quality from the user to the node is optimal, only the service availability is ensured, and the available service cannot be optimal.

Disclosure of Invention

The application provides a network scheduling method to solve the defects in the prior art. The application also relates to a network scheduling device and an electronic device.

The application provides a network scheduling method, which comprises the following steps:

acquiring a service address of a network data stream service party;

synchronizing the service address to a service node of a content distribution network;

detecting routing information from a service node of the content distribution network to the service address;

determining an optimal access path from a service node of the content distribution network to the service address according to the detected routing information;

and distributing the service node corresponding to the optimal access path to the service request of the network data flow service party.

Optionally, the optimal access path includes at least one of:

the access path with the shortest access path from the service node of the content distribution network to the service address, the access path with the shortest access time from the service node of the content distribution network to the service address, and the most stable access path from the service node of the content distribution network to the service address access path are transmitted.

Optionally, after the step of obtaining the service address of the network data stream service party is executed and before the step of synchronizing the service address to the service node of the content distribution network is executed, the method includes:

determining a network operator to which the network data flow service party belongs and a geographical area in which a service address of the network data flow service party is located;

correspondingly, the synchronizing the service address to the service node of the content distribution network includes:

and synchronizing the service address of the network data flow service party, the network operator where the network data flow service party is located and the geographical area where the service address of the network data flow service party belongs in the network operator to all service nodes of the content distribution network.

Optionally, the detecting the routing information from the service node of the content delivery network to the service address includes:

screening out service nodes which belong to the same network operator as the network data flow service party and are in the same provincial geographical area as the service address of the network data flow service party in the network operator from the service nodes of the content distribution network;

and aiming at all the screened service nodes, detecting the routing information from the service nodes to the service addresses.

Optionally, the network scheduling method is implemented based on a live video scene; correspondingly, the network data flow service side comprises: a live broadcast party and a listening/viewing party;

the service address of the network data flow service party comprises: a live address of the live broadcaster and a user address of the listening/viewing party;

the service request of the network data flow service party comprises: the live broadcast push stream request initiated by the live broadcast party and the video receiving stream request initiated by the listening/watching party.

Optionally, if the network data flow service party is a live broadcast party, the service address of the network data flow service party is a live broadcast address of the live broadcast party, and the service request of the network data flow service party is a live broadcast stream pushing request initiated by the live broadcast party; correspondingly, after the step of determining the optimal access path from the service node of the content distribution network to the service address according to the detected routing information is executed, and before the step of allocating the service node corresponding to the optimal access path to the service request of the network data stream service side is executed, the method includes:

storing the optimal access path in a scheduling database;

receiving a live broadcast stream pushing request initiated by the live broadcast party;

and reading an optimal access path corresponding to the live broadcast address from the scheduling database according to the live broadcast address of the live broadcast party carried by the live broadcast stream pushing request.

Optionally, if the network data flow service party is a live broadcast party, the service address of the network data flow service party is a live broadcast address of the live broadcast party, and the service request of the network data flow service party is a live broadcast stream pushing request initiated by the live broadcast party; correspondingly, before the step of obtaining the service address of the network data stream service party is executed, the method includes:

receiving a live broadcast stream pushing request sent by the live broadcast party; and the live broadcast stream pushing request carries a live broadcast address of the live broadcast party.

Optionally, if the network data stream service party is a listening/viewing party, the service address of the network data stream service party is the user address of the listening/viewing party, and the service request of the network data stream service party is a video streaming receiving request initiated by the listening/viewing party; correspondingly, after the step of determining the optimal access path from the service node of the content distribution network to the service address according to the detected routing information is executed, and before the step of allocating the service node corresponding to the optimal access path to the service request of the network data stream service side is executed, the method includes:

storing the optimal access path in a scheduling database;

receiving a video streaming request initiated by the listening/viewing party;

and reading an optimal access path corresponding to the user address from the scheduling database according to the user address of the listening/watching party carried by the video streaming receiving request.

Optionally, if the network data stream service party is a listening/viewing party, the service address of the network data stream service party is the user address of the listening/viewing party, and the service request of the network data stream service party is a video streaming receiving request initiated by the listening/viewing party; correspondingly, before the step of obtaining the service address of the network data stream service party is executed, the method includes:

receiving a video streaming request sent by the listening/watching party; and the video streaming request carries the user address of the listening/watching party.

The present application further provides a network scheduling apparatus, including:

a service address obtaining unit, configured to obtain a service address of a network data stream service party;

a service address synchronization unit, configured to synchronize the service address to a service node of a content distribution network;

a routing information detection unit, configured to detect routing information from a service node of the content distribution network to the service address;

an optimal access path determining unit, configured to determine an optimal access path from a service node of the content distribution network to the service address according to the detected routing information;

and the service node distribution unit is used for distributing the service node corresponding to the optimal access path to the service request of the network data stream service party.

Optionally, the optimal access path includes at least one of:

the access path with the shortest access path from the service node of the content distribution network to the service address, the access path with the shortest access time from the service node of the content distribution network to the service address, and the most stable access path from the service node of the content distribution network to the service address access path are transmitted.

Optionally, the network scheduling apparatus includes:

a network information determining unit, configured to determine a network operator to which the network data flow service party belongs, and a geographic area where a service address of the network data flow service party is located in the network operator;

correspondingly, the service address synchronization unit is specifically configured to synchronize the service address of the network data flow service party, the network operator where the network data flow service party is located, and the geographic area where the service address of the network data flow service party belongs in the network operator to all service nodes of the content distribution network.

Optionally, the routing information detecting unit includes:

a screening subunit, configured to screen, from service nodes of the content distribution network, service nodes that belong to the same network operator as the network data flow service party and are located in the same provincial geographic area as a service address of the network data flow service party in the network operator;

and the detection subunit is used for detecting the routing information from the service node to the service address aiming at all the screened service nodes.

Optionally, the network scheduling apparatus operates in a video live broadcast scene; correspondingly, the network data flow service side comprises: a live broadcast party and a listening/viewing party;

the service address of the network data flow service party comprises: a live address of the live broadcaster and a user address of the listening/viewing party;

the service request of the network data flow service party comprises: the live broadcast push stream request initiated by the live broadcast party and the video receiving stream request initiated by the listening/watching party.

The present application further provides an electronic device, comprising:

a memory and a processor;

the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:

acquiring a service address of a network data stream service party;

synchronizing the service address to a service node of a content distribution network;

detecting routing information from a service node of the content distribution network to the service address;

determining an optimal access path from a service node of the content distribution network to the service address according to the detected routing information;

and distributing the service node corresponding to the optimal access path to the service request of the network data flow service party.

Compared with the prior art, the method has the following advantages:

the network scheduling method provided by the application comprises the following steps: acquiring a service address of a network data stream service party; synchronizing the service address to a service node of a content distribution network; detecting routing information from a service node of the content distribution network to the service address; determining an optimal access path from a service node of the content distribution network to the service address according to the detected routing information; and distributing the service node corresponding to the optimal access path to the service request of the network data flow service party.

According to the network scheduling method, the service address of the network data flow service party is collected and synchronized to the service node of the content distribution network, so that the routing information from the service node to the service address is reversely detected at the service node of the content distribution network, and the optimal access path from the service node to the service address is determined according to the routing information and is scheduled to the network data flow service party for corresponding processing, so that the availability of video service can be ensured, the scheduling of the optimal service node is realized, the overall stability of the video service is improved, and the user experience of the network data flow service party is improved.

Drawings

Fig. 1 is a processing flow diagram of an embodiment of a network scheduling method provided in the present application;

fig. 2 is a schematic diagram of a live broadcast architecture provided in the present application;

FIG. 3 is a schematic diagram of routing information provided herein;

FIG. 4 is a schematic diagram of a second type of routing information provided herein;

fig. 5 is a schematic diagram of an embodiment of a network scheduling apparatus provided in the present application;

fig. 6 is a schematic diagram of an electronic device provided by the present application.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.

The application provides a network scheduling method, a network scheduling device and an electronic device. The following detailed description and the description of the steps of the method are individually made with reference to the drawings of the embodiments provided in the present application.

The embodiment of the network scheduling method provided by the application is as follows:

referring to fig. 1, which shows a processing flow diagram of an embodiment of a network scheduling method provided in the present application, referring to fig. 2, which shows a schematic diagram of a live broadcast architecture provided in the present application, referring to fig. 3, which shows a schematic diagram of one type of routing information provided in the present application, referring to fig. 4, which shows a schematic diagram of a second type of routing information provided in the present application.

Step S101, acquiring a service address of a network data stream service party.

In a live broadcast service scenario, a live broadcast party (e.g., a main broadcast user) continuously transmits a video stream acquired by a camera from a Network to a service node of a Content Delivery Network (CDN) (in the live broadcast service scenario, all service nodes of the Content Delivery Network can be used as a stream pushing server), and uploads the acquired video stream to a video source through the Content Delivery Network for a listening/watching party (e.g., a watching user of live video) to perform live video watching. In the whole access link, the access from the live broadcast party or the listening/viewing party to the service node of the content distribution network is the most uncontrollable, and how to select the optimal access link from the live broadcast party or the listening/viewing party to the service node of the content distribution network is the most important thing.

The application provides a network scheduling method, which comprises the steps of collecting the service address of a live broadcast party or a listening/watching party, carrying out reverse routing detection (a user initiates a request to a b server from a current IP address to a b server to be a forward routing request, otherwise, actively initiating a detection request to the IP address of the user on the b server through an access record on the b server to be reverse routing detection) on a service node of a content distribution network by taking the user (the live broadcast party or the listening/watching party) as granularity, detecting a network access path with the optimal service address to the live broadcast party or the listening/watching party in the content distribution network, allocating the service node corresponding to the detected optimal access path to the live broadcast party for live broadcast stream pushing processing or allocating the listening/watching party for video live broadcast watching, thereby realizing the scheduling of allocating the optimal service node, the method and the system not only ensure the availability of the live broadcast service, but also schedule the optimal service node to the live broadcast party and the listening/watching party, thereby improving the user experience of the live broadcast party and the listening/watching party in the live broadcast service scene.

It should be noted that, especially in an application scenario where the access service node has a relatively high requirement on stability, the network scheduling method provided by the present application implements optimal scheduling, such as a live broadcast service scenario, remote teaching, video conference, and a live broadcast service scenario applying AR (Augmented Reality)/VR (Virtual Reality)/MR (mixed Reality), and has a very obvious optimization effect, and can embody a scheduling effect of optimal scheduling to the greatest extent, thereby improving user experience.

The network scheduling method is described in the embodiment of the application by taking a live service scenario as an example, and it should be noted that the network scheduling method is not limited to the live service scenario, and may also be implemented in other application scenarios, such as remote teaching, video conference, and application scenarios of an AR (Augmented Reality)/VR (Virtual Reality)/MR (Mixed Reality), which are not limited in this embodiment.

In a live broadcast service scene, the network data stream service party comprises a live broadcast party and a listening/watching party, and correspondingly, for the live broadcast party, the service address of the network data stream service party refers to the live broadcast address of the live broadcast party; for the listening/viewing party, the service address of the network data stream service party refers to the user address of the listening/viewing party. The step of obtaining the service address of the network data stream service party means obtaining the live broadcast address of the live broadcast party or obtaining the user address of the listening/watching party, and prepares for reverse routing detection in the following steps.

In an embodiment of the present application, after acquiring the live broadcast address of the live broadcast party in this step, it is further required to determine a network operator to which the live broadcast party belongs and a geographic area where the live broadcast address of the live broadcast party is located in the network operator, for example, a network operator of a network used by an anchor user a is: china telecom, a live address xxxx1 of a anchor user A, wherein the live address xxxx1 is specifically located in Beijing area of China telecom.

Similarly, after acquiring the user address of the listening/viewing party in this step, it is further required to determine the network operator to which the listening/viewing party belongs and the geographical area where the user address of the listening/viewing party is located in the network operator, for example, the network operator of the network used by the live video viewing user B is: china Mobile, watching the user address xxxx2 of the user B, wherein the user address xxxx2 is specifically in Shenzhen district of China Mobile.

Step S102, the service address is synchronized to a service node of the content distribution network.

In the step S101, a live address of a live broadcast party or a user address of a listening/viewing party is obtained, and the obtained live address of the live broadcast party or the user address of the listening/viewing party is synchronized to each service node in the content distribution network, so as to further prepare for subsequent reverse routing detection at the service node in the content distribution network.

As described above, after the live broadcast address of the live broadcast party is obtained in the above steps, a network operator to which the live broadcast party belongs and a geographical area where the live broadcast address of the live broadcast party is located in the network operator are further determined; based on this, the live address of the live broadcast party, the network operator to which the live broadcast party belongs, and the live broadcast address of the live broadcast party are preferably synchronized together to all service nodes of the content distribution network in the geographical area where the network operator is located.

Or after the user address of the listening/viewing party is obtained in the above steps, further determining the network operator to which the listening/viewing party belongs and the geographical area where the user address of the listening/viewing party is located in the network operator; based on this, the user address of the listening/viewing party, the network operator to which the listening/viewing party belongs, and the user address of the listening/viewing party are preferably synchronized together on all service nodes of the content distribution network in the geographical area where said network operator is located.

Step S103, detecting the routing information from the service node of the content distribution network to the service address.

In practical applications, service nodes of a content distribution network may be deployed based on multiple network operators, and may also span geographic areas of multiple provinces, cities and even countries, and in order to ensure stability of data access, service nodes belonging to the same network operator and/or located in the same geographic area may be preferentially scheduled to a live broadcast party or a listening/viewing party.

In a preferred embodiment provided in the embodiment of the present application, detecting routing information from a service node of the content delivery network to the service address specifically includes: screening out service nodes which belong to the same network operator as a live broadcast party and are located in the same provincial geographical area in the network operator as a live broadcast address of the live broadcast party from service nodes of a content distribution network, and detecting routing information from the service nodes to the live broadcast address of the live broadcast party aiming at all the screened out service nodes; or, a service node belonging to the same network operator as the listening/viewing party and located in the same provincial geographical area as the user address of the listening/viewing party in the network operator is screened out from service nodes of the content distribution network, and for all the screened out service nodes, routing information from the service node to the user address of the listening/viewing party is detected.

For example, the network operator of the network used by the anchor user a is: china telecom, wherein a live broadcast address xxxx1 of a anchor user A is specifically positioned in Beijing area of China telecom; the service nodes in the content distribution network deployed in the beijing area of the chinese telecommunications are preferentially scheduled, and specifically, for all the service nodes in the content distribution network deployed in the beijing area of the chinese telecommunications, the routing information from each service node to the live broadcast address xxxx1 is respectively detected.

Step S104, determining the optimal access path from the service node of the content distribution network to the service address according to the detected routing information.

The optimal access path in the embodiment of the present application preferably refers to an access path that takes the shortest time to access from a service node of a content distribution network to a live address of a live broadcast party or a user address of a listening/viewing party. In addition to this, the optimal access path may also be the access path with the shortest access path from the service node of the content distribution network to the live address of the live broadcaster or the user address of the listening/viewing party, or an access path with the shortest access time and the shortest access time is taken from a service node of the content distribution network to the live address of the live broadcast party or the user address access path of the listening/viewing party, or an access path with the most stable transmission is taken from the service node of the content distribution network to the live address of the live broadcast party or the user address access path of the listening/viewing party (in practical application, the transmission stability may be measured by whether the access time for transmitting the same data packet in different time periods is stable or not, or measured by whether the access time for transmitting different data packets in the same time period is stable), which is not limited in this embodiment.

For example, referring to fig. 2, fig. 3 and fig. 4, in the service node a and the service node B shown in fig. 2, the routing information from the service node a to the live address 105.178.108.18 of the live party is detected, and the detected routing information from the service node a to the live address 105.178.108.18 is shown in fig. 3, wherein:

trace route refers to live address 105.178.108.18, the complete path from service node a to live address 105.178.108.18 includes "2 (xe-0-0-3-xar2.lo1.cw. net (195.59.222.237))" to "10 (41.48.192.53 (41.84.192.53))" for 9 hops, and records the access time consumed per hop.

In the probing process, in order to make the probing more accurate, 3 data packets are sent in sequence in the probing process, and the time consumed for accessing each data packet is recorded, taking the 2 nd hop "xe-0-0-3-xar 2.lo1.cw. net (195.59.222.237)" as an example: the access time consumption of 3 data packets sent successively is respectively as follows: 0.269ms, 0.282ms and 0.276ms, and taking any one of the three data or taking the average value as the time consumed by the access of the 2 nd hop; hops 3 through 10 are similar to hop 2.

And then summing up the access time consumption of 9 hops in total for '2 (xe-0-0-3-xar2.lo1.cw. net (195.59.222.237))' to '10 (41.48.192.53 (41.84.192.53))', namely, the access time consumption of a complete path from the service node A to the live broadcast address 105.178.108.18.

The detected routing information of the serving node B to the live address 105.178.108.18 is shown in fig. 4, from which it can be derived that access to the full path from the serving node B to the live address 105.178.108.18 is time consuming.

Similar to the service node a and the service node B, after calculating the time consumed for accessing all service nodes to the live broadcast address in the content distribution network, the optimal access path refers to a service node with the shortest time consumed for accessing from the service node to the live broadcast address in the content distribution network.

Step S105, allocating the service node corresponding to the optimal access path to the service request of the network data stream service party.

The service request of the network data flow service party in the embodiment of the application comprises the following steps: the live broadcast push stream request is initiated by a live broadcast party when the live broadcast push stream starts, and the video receiving stream request is initiated by a listening/watching party when the video live broadcast watching is carried out. In specific implementation, after receiving a live broadcast stream pushing request initiated by a live broadcast party at the start of live broadcast stream pushing, distributing the determined optimal access path from the service node of the content distribution network to the live broadcast address of the live broadcast party to the live broadcast party so that the live broadcast party carries out live broadcast stream pushing through the scheduled optimal access path; or after receiving a video streaming request initiated by the listening/watching party during video live broadcast watching, allocating the determined optimal access path from the service node of the content distribution network to the user address of the listening/watching party to the direct listening/watching party, so that the listening/watching party carries out video live broadcast watching through the scheduled optimal access path.

The following is further explained around a live service scenario:

in a live broadcast service scene, a live broadcast stream pushing process is performed for a live broadcast party, and in specific implementation, service nodes of a content distribution network are scheduled for live broadcast stream pushing operation and are divided into the following two types:

firstly, detection scheduling is carried out in advance, an optimal access path allocated to a live broadcast party is determined and stored, and when the live broadcast party carries out live broadcast stream pushing, the live broadcast party directly reads a corresponding service node from the pre-stored optimal access path to carry out live broadcast stream pushing operation.

Preferably, after the step of determining an optimal access path from a service node of a content distribution network to a live broadcast address of a live broadcast party according to the detected routing information is executed, and before the step of allocating the service node corresponding to the optimal access path to a live broadcast stream push request initiated by the live broadcast party is executed, the method includes: storing the optimal access path in a scheduling database, wherein the optimal access path is stored in a mapping relation between a live broadcast address and a service node; and then, receiving a live broadcast stream pushing request initiated by a live broadcast party, and reading an optimal access path corresponding to the live broadcast address from the scheduling database according to the live broadcast address of the live broadcast party carried by the live broadcast stream pushing request, so that the live broadcast party can perform live broadcast stream pushing operation according to the optimal access path.

And secondly, real-time scheduling, namely determining an optimal access path distributed to the live broadcast party in real time after receiving a live broadcast stream pushing request initiated by the live broadcast party when the live broadcast stream pushing starts, and performing live broadcast stream pushing operation according to a service node corresponding to the optimal access path. Preferably, in the subdivision scenario of real-time scheduling, after receiving a live streaming request sent by a live sender, the scheduling of the service node is started, that is: the above steps S101 to S105 are sequentially performed.

Similarly, in a live broadcast service scenario, in a process of performing live video viewing for a listening/viewing party, in a specific implementation, service nodes of a content distribution network are scheduled for the listening/viewing party and are divided into the following two types:

it should be noted that, in practice, the number of viewing users who view live videos is large, and the calculation amount required for scheduling all the viewing users is also large, so that in practical application, service node scheduling can be selectively performed on the viewing users, for example, scheduling of service nodes is performed on live video viewing member users whose member levels meet predetermined levels, so that the part of users can enjoy better live broadcast experience.

Firstly, detection scheduling is carried out in advance, an optimal access path allocated to a listening/watching party is determined and stored, and when the listening/watching party carries out live video watching, the listening/watching party directly reads a corresponding service node from the pre-stored optimal access path to carry out live video watching.

Preferably, after the step of determining an optimal access path from a service node of the content distribution network to a user address of the listener/viewer according to the detected routing information is executed, and before the step of allocating the service node corresponding to the optimal access path to the video streaming request initiated by the listener/viewer is executed, the method includes: storing the optimal access path in a scheduling database, wherein the optimal access path is stored according to the mapping relationship between a user address and a service node; and then, receiving a video receiving request initiated by a listening/watching party, and reading an optimal access path corresponding to the user address from the scheduling database according to the user address of the listening/watching party carried by the video receiving request, so that the listening/watching party can perform live video watching according to the optimal access path.

And secondly, real-time scheduling, namely determining an optimal access path allocated to the listening/watching party in real time after receiving a video streaming receiving request initiated by the listening/watching party, and carrying out live video watching according to a service node corresponding to the optimal access path. Preferably, in the subdivision scenario of real-time scheduling, after receiving a video streaming request sent by a listener/viewer, the scheduling of the service node is started, that is: the above steps S101 to S105 are sequentially performed.

To sum up, in the live broadcast service scene, the network scheduling method collects the live broadcast address of the live broadcast party or the user address of the listening/watching party and synchronizes the live broadcast address or the user address of the listening/watching party to the service node of the content distribution network, thereby reversely detecting the routing information from the service node to the live broadcast address of the live broadcast party or the user address of the listening/watching party at the service node of the content distribution network, and scheduling the determined optimal access path from the service node to the live broadcast address of the live broadcast party to the live broadcast party for live broadcast stream pushing processing, or scheduling the determined optimal access path from the service node to the user address of the listening/watching party to the listening/watching party for video live broadcast watching, thereby not only ensuring the availability of the live broadcast service, but also realizing the scheduling of the optimal service node and improving the overall stability of the live broadcast service, and the user experience of the live broadcast party and the listening/viewing party in the live broadcast service scene.

The embodiment of the network scheduling device provided by the application is as follows:

in the foregoing embodiment, a network scheduling method is provided, and correspondingly, a network scheduling apparatus is also provided in the present application, which is described below with reference to the accompanying drawings.

Referring to fig. 5, a schematic diagram of an embodiment of a network scheduling apparatus provided in the present application is shown.

Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to the corresponding description of the method embodiments provided above for relevant portions. The device embodiments described below are merely illustrative.

The application provides a network scheduling device, includes:

a service address obtaining unit 501, configured to obtain a service address of a network data stream service party;

a service address synchronization unit 502, configured to synchronize the service address to a service node of a content distribution network;

a routing information detecting unit 503, configured to detect routing information from a service node of the content distribution network to the service address;

an optimal access path determining unit 504, configured to determine an optimal access path from a service node of the content distribution network to the service address according to the detected routing information;

a service node allocating unit 505, configured to allocate the service node corresponding to the optimal access path to the service request of the network data stream service party.

Optionally, the optimal access path includes at least one of:

the access path with the shortest access path from the service node of the content distribution network to the service address, the access path with the shortest access time from the service node of the content distribution network to the service address, and the most stable access path from the service node of the content distribution network to the service address access path are transmitted.

Optionally, the network scheduling apparatus includes:

a network information determining unit, configured to determine a network operator to which the network data flow service party belongs, and a geographic area where a service address of the network data flow service party is located in the network operator;

correspondingly, the service address synchronization unit 502 is specifically configured to synchronize the service address of the network data flow service party, the network operator where the network data flow service party is located, and the geographic area where the service address of the network data flow service party belongs in the network operator to all service nodes of the content distribution network.

Optionally, the routing information detecting unit 503 includes:

a screening subunit, configured to screen, from service nodes of the content distribution network, service nodes that belong to the same network operator as the network data flow service party and are located in the same provincial geographic area as a service address of the network data flow service party in the network operator;

and the detection subunit is used for detecting the routing information from the service node to the service address aiming at all the screened service nodes.

Optionally, the network scheduling apparatus operates in a video live broadcast scene;

correspondingly, the network data flow service side comprises: a live broadcast party and a listening/viewing party;

the service address of the network data flow service party comprises: a live address of the live broadcaster and a user address of the listening/viewing party;

the service request of the network data flow service party comprises: the live broadcast push stream request initiated by the live broadcast party and the video receiving stream request initiated by the listening/watching party.

Optionally, if the network data flow service party is a live broadcast party, the service address of the network data flow service party is a live broadcast address of the live broadcast party, and the service request of the network data flow service party is a live broadcast stream pushing request initiated by the live broadcast party; correspondingly, the network scheduling device includes:

the first optimal access path storage unit is used for storing the optimal access path in a scheduling database;

a first direct broadcast push stream request receiving unit, configured to receive a direct broadcast push stream request initiated by the direct broadcast party;

and the first optimal access path reading unit is used for reading an optimal access path corresponding to the live broadcast address from the scheduling database according to the live broadcast address of the live broadcast party carried by the live broadcast stream pushing request.

Optionally, if the network data flow service party is a live broadcast party, the service address of the network data flow service party is a live broadcast address of the live broadcast party, and the service request of the network data flow service party is a live broadcast stream pushing request initiated by the live broadcast party; correspondingly, the network scheduling device includes:

the second live broadcast stream pushing request receiving unit is used for receiving a live broadcast stream pushing request sent by the live broadcast party; and the live broadcast stream pushing request carries a live broadcast address of the live broadcast party.

Optionally, if the network data stream service party is a listening/viewing party, the service address of the network data stream service party is the user address of the listening/viewing party, and the service request of the network data stream service party is a video streaming receiving request initiated by the listening/viewing party; correspondingly, the network scheduling device includes:

the second optimal access path storage unit is used for storing the optimal access path in a scheduling database;

a first video streaming request receiving unit, configured to receive a video streaming request initiated by the listener/viewer;

and the second optimal access path reading unit is used for reading the optimal access path corresponding to the user address from the scheduling database according to the user address of the listening/watching party carried by the video streaming request.

Optionally, if the network data stream service party is a listening/viewing party, the service address of the network data stream service party is the user address of the listening/viewing party, and the service request of the network data stream service party is a video streaming receiving request initiated by the listening/viewing party; correspondingly, the network scheduling device includes:

a second video streaming request unit, configured to receive a video streaming request sent by the listening/viewing party; and the video streaming request carries the user address of the listening/watching party.

The embodiment of the electronic equipment provided by the application is as follows:

in the foregoing embodiment, a network scheduling method is provided, and in addition, the present application also provides an electronic device for implementing the network scheduling method, which is described below with reference to the accompanying drawings.

Referring to fig. 6, a schematic diagram of an electronic device provided in the present embodiment is shown.

The embodiments of the electronic device provided in the present application are described more simply, and for related parts, reference may be made to the corresponding descriptions of the embodiments of the network scheduling method provided above. The embodiments described below are merely illustrative.

The application provides an electronic device, including:

a memory 601 and a processor 602;

the memory 601 is configured to store computer-executable instructions, and the processor 602 is configured to execute the following computer-executable instructions:

acquiring a service address of a network data stream service party;

synchronizing the service address to a service node of a content distribution network;

detecting routing information from a service node of the content distribution network to the service address;

determining an optimal access path from a service node of the content distribution network to the service address according to the detected routing information;

and distributing the service node corresponding to the optimal access path to the service request of the network data flow service party.

Optionally, the optimal access path includes at least one of:

the access path with the shortest access path from the service node of the content distribution network to the service address, the access path with the shortest access time from the service node of the content distribution network to the service address, and the most stable access path from the service node of the content distribution network to the service address access path are transmitted.

Optionally, after the instruction for obtaining the service address of the network data stream service party is executed and before the instruction for synchronizing the service address to the service node of the content distribution network is executed, the processor 602 is further configured to execute the following computer-executable instructions:

determining a network operator to which the network data flow service party belongs and a geographical area in which a service address of the network data flow service party is located;

correspondingly, the synchronizing the service address to the service node of the content distribution network includes:

and synchronizing the service address of the network data flow service party, the network operator where the network data flow service party is located and the geographical area where the service address of the network data flow service party belongs in the network operator to all service nodes of the content distribution network.

Optionally, the detecting the routing information from the service node of the content delivery network to the service address includes:

screening out service nodes which belong to the same network operator as the network data flow service party and are in the same provincial geographical area as the service address of the network data flow service party in the network operator from the service nodes of the content distribution network;

and aiming at all the screened service nodes, detecting the routing information from the service nodes to the service addresses.

Optionally, the computer-executable instructions are executed in a video live scene;

correspondingly, the network data flow service side comprises: a live broadcast party and a listening/viewing party;

the service address of the network data flow service party comprises: a live address of the live broadcaster and a user address of the listening/viewing party;

the service request of the network data flow service party comprises: the live broadcast push stream request initiated by the live broadcast party and the video receiving stream request initiated by the listening/watching party.

Optionally, if the network data flow service party is a live broadcast party, the service address of the network data flow service party is a live broadcast address of the live broadcast party, and the service request of the network data flow service party is a live broadcast stream pushing request initiated by the live broadcast party; correspondingly, after the optimal access path instruction from the service node of the content distribution network to the service address is determined according to the detected routing information, and before the service request instruction that allocates the service node corresponding to the optimal access path to the network data stream service side is executed, the processor 602 is further configured to execute the following computer-executable instructions:

storing the optimal access path in a scheduling database;

receiving a live broadcast stream pushing request initiated by the live broadcast party;

and reading an optimal access path corresponding to the live broadcast address from the scheduling database according to the live broadcast address of the live broadcast party carried by the live broadcast stream pushing request.

Optionally, if the network data flow service party is a live broadcast party, the service address of the network data flow service party is a live broadcast address of the live broadcast party, and the service request of the network data flow service party is a live broadcast stream pushing request initiated by the live broadcast party; accordingly, before the instruction for obtaining the service address of the network data stream service side is executed, the processor 602 is further configured to execute the following computer-executable instructions:

receiving a live broadcast stream pushing request sent by the live broadcast party; and the live broadcast stream pushing request carries a live broadcast address of the live broadcast party.

Optionally, if the network data stream service party is a listening/viewing party, the service address of the network data stream service party is the user address of the listening/viewing party, and the service request of the network data stream service party is a video streaming receiving request initiated by the listening/viewing party; correspondingly, after the optimal access path instruction from the service node of the content distribution network to the service address is determined according to the detected routing information, and before the service request instruction that allocates the service node corresponding to the optimal access path to the network data stream service side is executed, the processor 602 is further configured to execute the following computer-executable instructions:

storing the optimal access path in a scheduling database;

receiving a video streaming request initiated by the listening/viewing party;

and reading an optimal access path corresponding to the user address from the scheduling database according to the user address of the listening/watching party carried by the video streaming receiving request.

Optionally, if the network data stream service party is a listening/viewing party, the service address of the network data stream service party is the user address of the listening/viewing party, and the service request of the network data stream service party is a video streaming receiving request initiated by the listening/viewing party; accordingly, before the instruction for obtaining the service address of the network data stream service side is executed, the processor 602 is further configured to execute the following computer-executable instructions:

receiving a video streaming request sent by the listening/watching party; and the video streaming request carries the user address of the listening/watching party.

Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.

In a typical configuration, a computing device includes one or more processors, input/output interfaces, network interfaces, and memory.

The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transmyedia), such as modulated data signals and carrier waves.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种云网络安全处理方法、设备和计算机存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类