CN117793002A - Path acquisition method, content distribution network system, computing device, and storage medium - Google Patents

Path acquisition method, content distribution network system, computing device, and storage medium Download PDF

Info

Publication number
CN117793002A
CN117793002A CN202311842737.3A CN202311842737A CN117793002A CN 117793002 A CN117793002 A CN 117793002A CN 202311842737 A CN202311842737 A CN 202311842737A CN 117793002 A CN117793002 A CN 117793002A
Authority
CN
China
Prior art keywords
node
path field
path
long connection
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311842737.3A
Other languages
Chinese (zh)
Inventor
刘勇江
蔡尚志
张建锋
杨成进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202311842737.3A priority Critical patent/CN117793002A/en
Publication of CN117793002A publication Critical patent/CN117793002A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a path acquisition method, a content distribution network system, computing equipment and a storage medium. The method comprises the following steps: a long connection link is established, a source station node and a source return node are arranged along the resource transmission direction of the long connection link, and long connection is established between adjacent nodes; creating a path field corresponding to the resource acquisition request, and transmitting the path field along a resource transmission direction; when the path field reaches any node in the long connection link, the node extracts node information, the node information is added to the path field, and after the path field is updated by the back source node positioned at the tail end of the resource transmission direction, the updated path field is stored for generating a back source path corresponding to the resource acquisition request based on the path field. According to the scheme, the source station nodes and the source return nodes in the long connecting link actively add node information into the path field, a source return path with complete resource acquisition requests is obtained according to the path field, and the acquisition efficiency of the source return path is improved.

Description

Path acquisition method, content distribution network system, computing device, and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data acquisition, in particular to a path acquisition method, a content distribution network system, computing equipment and a storage medium.
Background
The content delivery network (Content Delivery Network, abbreviated as CDN) is a network in which servers are placed throughout the network, and the user request is directed to an appropriate server by comprehensively determining the server according to factors such as traffic, node load, server-to-user distance, response time, and the like, so as to improve the user access speed.
The content distribution network returns the source when processing the user request, namely, the source station node transmits the resource requested by the user to the user terminal through the layer-by-layer node in the content distribution network. The source return path corresponding to the user request has very important significance for performance analysis and promotion of the content distribution network.
However, the inventors found in practice that the following drawbacks exist in the prior art: in the prior art, when obtaining a source return path of a user request, each node in a content distribution network is generally required to be traversed to determine whether each node processes the user request, thereby obtaining the source return path of the user request. Thus the acquisition efficiency of the source return path in the prior art is low.
Disclosure of Invention
In view of the technical problem of low source-back path acquisition efficiency in the prior art, embodiments of the present invention are provided to provide a path acquisition method, a content distribution network system, a computing device, and a storage medium that overcome or at least partially solve the above-mentioned problem.
According to a first aspect of an embodiment of the present invention, there is provided a path acquisition method, including:
according to a resource acquisition request sent by a user side, establishing a long connection link corresponding to the resource acquisition request; the long connection link is sequentially provided with a source station node and at least one source return node along a resource transmission direction, long connection is established between two adjacent nodes in the long connection link, and long connection is established between the source return node positioned at the tail end of the resource transmission direction in the long connection link and the user side;
a node in the long connection link creates a path field corresponding to the resource acquisition request and transmits the path field along the resource transmission direction;
when the path field reaches any node in the long connection link, the node extracts node information, the node information is added to the path field to update the path field, and after a back source node positioned at the tail end of the resource transmission direction updates the path field, the updated path field is stored for generating a back source path corresponding to the resource acquisition request based on the path field.
In an alternative embodiment, a long connection is established between two adjacent nodes in the long connection link through a first transmission protocol;
the source returning node at the tail end of the resource transmission direction and the user end establish long connection through a second transmission protocol;
the adding the node information to the path field includes: and adding the node information to the path field through a custom data adding instruction of the first transmission protocol.
In an alternative embodiment, said adding said node information to said path field comprises: the node information is added before the information already in the path field.
In an alternative embodiment, when the path field reaches any node in the long connection link, the node extracts node information, and adding the node information to the path field to update the path field includes:
when the path field reaches any node in the long connection link, the node extracts node information and a current resource transmission index value, and the node information and the resource transmission index value are added to the path field to update the path field.
In an alternative embodiment, the method further comprises:
extracting the resource transmission index value of a node from the path field;
and identifying abnormal points in the long connection link according to the resource transmission index value.
In an alternative embodiment, when the path field reaches any node in the long connection link, the node extracts node information, and adding the node information to the path field to update the path field includes:
when the path field reaches any node in the long connection link, the node extracts node information and acquires resources to be transmitted, the node information is added to the path field to update the path field, and the updated path field is embedded into the resources to be transmitted;
the transmitting the path field along the resource transmission direction includes: and transmitting the resources to be transmitted embedded with the path field along the resource transmission direction.
In an optional implementation manner, the node in the long connection link creates a path field corresponding to the resource acquisition request, and transmitting the path field along the resource transmission direction includes:
And detecting an initial build event and/or a link update completion event of the long connection link, and executing the steps that the node in the long connection link creates a path field corresponding to the resource acquisition request and transmits the path field along the resource transmission direction.
In an alternative embodiment, the method further comprises:
storing request information of the resource acquisition request in association with a source return path of the resource acquisition request;
extracting a user end index of the user end in the duration of the resource acquisition request;
and associating the source return path and the user end index according to the request information.
According to a second aspect of an embodiment of the present invention, there is provided a content distribution network system including: a source station node and at least one source return node;
the source station node and the at least one source return node form a long connection link corresponding to a resource acquisition request sent by a user side; the long connection link is sequentially provided with a source station node and at least one source return node along a resource transmission direction, long connection is established between two adjacent nodes in the long connection link, and long connection is established between the source return node positioned at the tail end of the resource transmission direction in the long connection link and the user side;
The source station node or the back source node creates a path field corresponding to the resource acquisition request, and the source station node and the back source node transmit the path field along the resource transmission direction;
when the path field reaches any node in the long connection link, the node extracts node information, the node information is added to the path field to update the path field, and after a back source node positioned at the tail end of the resource transmission direction updates the path field, the updated path field is stored for generating a back source path corresponding to the resource acquisition request based on the path field.
In an alternative embodiment, a long connection is established between two adjacent nodes in the long connection link through a first transmission protocol;
the source returning node at the tail end of the resource transmission direction and the user end establish long connection through a second transmission protocol;
the source station node and the source return node are configured to: and adding the node information to the path field through a custom data adding instruction of the first transmission protocol.
In an alternative embodiment, the source station node and the back source node are configured to: the node information is added before the information already in the path field.
The source station node and the source return node are configured to: when the path field reaches any node in the long connection link, the node extracts node information and a current resource transmission index value, and the node information and the resource transmission index value are added to the path field to update the path field.
In an alternative embodiment, the system further comprises: an analysis node for extracting the resource transmission index value of a node from the path field; and identifying abnormal points in the long connection link according to the resource transmission index value.
In an alternative embodiment, the source station node and the back source node are configured to: when the path field reaches any node in the long connection link, the node extracts node information and acquires resources to be transmitted, the node information is added to the path field to update the path field, and the updated path field is embedded into the resources to be transmitted; and transmitting the resources to be transmitted embedded with the path field along the resource transmission direction.
In an alternative embodiment, the source station node and the back source node are configured to: and detecting an initial build event and/or a link update completion event of the long connection link, and executing the steps that the node in the long connection link creates a path field corresponding to the resource acquisition request and transmits the path field along the resource transmission direction.
In an alternative embodiment, the back source node is configured to: storing request information of the resource acquisition request in association with a source return path of the resource acquisition request;
the analysis node is configured to: extracting a user end index of the user end in the duration of the resource acquisition request; and associating the source return path and the user end index according to the request information.
According to a third aspect of embodiments of the present invention, there is provided a computing device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the path acquisition method.
According to a fourth aspect of the embodiments of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the path acquisition method described above.
After the long connection link corresponding to the resource acquisition request is established, the source station node and each source return node in the long connection link actively add node information into the path field, and finally, a complete source return path of the resource acquisition request is obtained according to the path field, so that the acquisition efficiency of the source return path is improved.
The embodiment of the invention carries out transmission and updating of the path field after detecting the initial establishment event and/or the link updating completion event of the long connection link, thereby being capable of obtaining all the source return paths in the duration of the resource acquisition request.
According to the embodiment of the invention, the source return path and the user end index are associated according to the request information, so that quality analysis of nodes, services, versions and the like can be conveniently carried out according to the associated data.
According to the embodiment of the invention, the current resource transmission index value of the node is added into the path field, so that the resource transmission index value of the node can be extracted from the path field, and the abnormal point positioning is conveniently carried out according to the resource transmission index value of the node.
The embodiment of the invention embeds the path field into the resource to be transmitted for transmission, ensures the safety of the path field and avoids missing the back source path.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present invention can be more clearly understood, and the following specific implementation of the embodiments of the present invention will be more apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1 is a schematic flow chart of a path acquisition method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a long link according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram of still another long link according to the first embodiment of the present invention;
fig. 4 is a schematic flow chart of a path acquisition method according to a second embodiment of the present invention;
fig. 5 is a schematic flow chart of a path acquisition method according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a content distribution network system according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computing device according to a fifth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that embodiments of the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the embodiments to those skilled in the art.
Example 1
Fig. 1 is a schematic flow chart of a path acquisition method according to an embodiment of the present invention. The path obtaining method provided in this embodiment may be executed by a corresponding content delivery network system, where the content delivery network system includes a plurality of CDN nodes.
Specifically, as shown in fig. 1, the method includes the steps of:
step S110, according to a resource acquisition request sent by a user terminal, a long connection link corresponding to the resource acquisition request is established; the long connecting link is sequentially provided with a source station node and at least one source return node along the resource transmission direction, long connection is established between two adjacent nodes in the long connecting link, and the source return node positioned at the tail end of the resource transmission direction in the long connecting link is in long connection with the user side.
The user side sends a resource acquisition request to the content distribution network system, where the resource acquisition request is used to obtain corresponding resources from the content distribution network system, where the resources include audio resources, video resources, text resources, and/or the like.
And the content distribution network system establishes a long connection link corresponding to the resource acquisition request according to the resource acquisition request. The long connection link is a data channel for information interaction between the user side and the source station node, the user side can send a resource acquisition request through the long connection link to carry out source return, and the source station node can transmit resources requested by the resource acquisition request through the long connection link.
The long connection link sequentially comprises an active station node and at least one back source node along the transmission direction of the resource. The source station node is a CDN node storing resources corresponding to the resource acquisition requests in the content delivery network system, and is also a CDN node positioned at the head end of the resource transmission direction in the long connection link; other CDN nodes except the source station in the long connection link are called back source nodes, and the back source nodes are other CDN nodes except the source station node in the back source path. The resource transmission direction is a transmission direction of a resource corresponding to a resource acquisition request from a source station node to a user.
And a long connection is established between two adjacent nodes in the long connection link, so that information interaction between the two adjacent nodes is realized through the long connection. And the source-returning node positioned at the tail end of the resource transmission direction in the long connection link establishes long connection with the user terminal, and the information interaction between the user terminal and the content distribution network system can be realized through the long connection. Specifically, the source station node establishes long connection with the source returning node, the source returning node can establish long connection with the user side, and the source returning node can also establish long connection with another source returning node.
The long connecting link is not closed at the user end or the content distribution network system, and the long connecting link is not automatically disconnected under the condition that the long connecting link operates normally, so that the user end can continuously perform information interaction with the content distribution network information through the long connecting link, the times of link creation and closing are reduced, and the processing resources of the system are saved.
Taking a live broadcast scene as an example, a viewer end sends a live broadcast stream acquisition request to a content distribution network system to carry out stream pulling, wherein the live broadcast stream acquisition request is a resource acquisition request. The live stream acquisition request generally carries a source station address, so that a source station node corresponding to the live stream acquisition request is determined according to the source station address, and corresponding live stream resources are stored in the source station node. And the content delivery network system determines, according to a corresponding scheduling policy (e.g., according to a CDN node position, a CDN node load, etc.), a CDN node that needs to be passed through to transmit a resource from a source node to a user terminal, where the CDN node that needs to be passed through is a source return node, and establishes long connections among a viewer terminal, the source return node, and the source node, so as to form a long connection link corresponding to a live stream acquisition request, where live stream resources in the source node can be transmitted to the viewer terminal through the long connection link.
In an alternative embodiment, a long connection is established between two adjacent nodes in the long connection link through a first transmission protocol, and a source node at the tail end of the resource transmission direction and the user end establish the long connection through a second transmission protocol. The first transmission protocol is a transmission protocol with low delay and high confidentiality, such as RTMP protocol; the second transmission protocol is a protocol compatible with different clients, such as HTTP-FIV protocol. By adopting the mode, the resource transmission efficiency and the transmission safety can be improved, and different user terminals can be compatible.
Further optionally, the node information is added to the path field by a custom data addition instruction of the first transport protocol. For example, the custom data add instruction may be an Amf0 instruction, where the first field of the instruction is command, the type is string, and the value is bvcTrace (a custom name); the second field is the transcactionID; the third field contains the attributes of via, which include node information.
In an alternative embodiment, the long connection link is sequentially provided with a source station node, at least one secondary source-returning node and a primary source-returning node along the transmission direction of the resource. The first-level source node is also called an edge node, is a CDN node for receiving a resource acquisition request of a user terminal and sending related resources to the user terminal, and is also a source node positioned at the tail end of a resource transmission direction in a long connection link; the secondary source return nodes are also called sink nodes, the number of the secondary source return nodes can be one or more, the source station node and the secondary source return nodes are connected in a long way, the secondary source return nodes can be connected in a long way with the primary source return nodes or the secondary source return nodes can be connected in a long way with another secondary source return node.
In step S120, the node in the long connection link creates a path field corresponding to the resource acquisition request, and transmits the path field along the resource transmission direction.
Unlike the prior art, the embodiment of the invention additionally creates a path field corresponding to the resource acquisition request, wherein the path field is created by a node in a long connection link, usually by a source station node, or a certain source return node can be created and transmitted to the source station node.
The path field is transmitted between nodes in the long connection link along a resource transmission direction of the long connection link. Specifically, the path field is transmitted by a source station node to a source return node which establishes a long connection with the source station node in a long connection link; for any back source node, if the back source node is not the back source node located at the tail end of the resource transmission direction, the back source node is also connected with another back source node along the resource transmission direction, so that the back source node transmits a path field to the connected another back source node; for any back source node, if the back source node is the back source node located at the end of the transmission direction of the resource, the path field may suspend transmission or transmit to the ue.
Step S130, when the path field reaches any node in the long connection link, the node extracts node information, adds the node information to the path field to update the path field, and when the back source node at the tail end of the resource transmission direction updates the path field, stores the updated path field for generating a back source path corresponding to the resource acquisition request based on the path field.
Each time the path field reaches a node in the long connection link, the node generates node information from its own information and adds the node information to the path field to update the path field.
Specifically, the path field is firstly located at a source station node, the source station node extracts self information to obtain source station information, the source station information is added to the path field to complete one-time path field updating, and the path field is transmitted to a source returning node connected with the path field. When the path field reaches any back source node, the back source node extracts self information to obtain back source node information, the back source node information is added to the path field to finish updating the path field once, and if the back source node is not the back source node at the tail end of the resource transmission direction, the back source node transmits the updated path field to the next back source node; if the source node is the source node at the end of the transmission direction of the resource, the source node updates the path field and stores the updated path field. Because the stored path field already contains node information of each node in the source-returning path corresponding to the resource acquisition request, the source-returning path corresponding to the resource acquisition request can be generated according to the stored path field.
It can be seen that the path field is transmitted along the resource transmission direction, and the node information is also added along the resource transmission direction. Compared with the node adding mode along the source returning direction (namely the direction from the user terminal to the source station node), the source returning path can be grounded to the source returning node closest to the user terminal by adopting the adding mode along the resource transmission direction, so that the transmission of the source returning path to the user terminal and the extraction of the source returning path are facilitated.
Taking fig. 2 as an example, a long connection link corresponding to a resource acquisition request sent by a user terminal includes a source station node, a source return node L1 (primary source return node) and a source return node L2 (secondary source return node). The source station node and the back source node L2 are connected in a long way, the back source node L2 and the back source node L1 are connected in a long way, the back source node L1 and the user side are connected in a long way, and the resource transmission direction is as follows: source node→back source node l2→back source node L1. The source station node creates a path field corresponding to the resource acquisition request, adds own source station information into the path field, and transmits the path field added with the source station information to the back source node L2. After the source return node L2 adds the information of the source return node L2 to the path field, the path field is transmitted to the source return node L1. The source return node L1 adds the information of the source return node L1 to the path field, stores the path field, and generates a source return path according to the path field.
In an alternative embodiment, each node adds node information to the path field, in particular before adding node information to the existing information in the path field. Because the resource transmission direction and the source return direction are opposite directions, in the embodiment of the invention, node information of each node in the long connection link is sequentially added according to the resource transmission direction, and therefore, when each node is added, the node information is added to the front end of the path field, the finally obtained path field is the source return direction from front to back, and the generation efficiency of the source return path is further improved. Taking fig. 2 as an example, the source station node first adds source station information to obtain a preset field as "source station information"; the back source node L2 adds back source node L2 information to the existing information of the preset field to obtain a preset field 'back source node L2 information/source station information'; the back source node L1 obtains a preset field "back source node L1 information/back source node L2 information/source station information" before adding the back source node L1 information to the existing information of the preset field. The arrangement direction of the front-to-back node information in the finally obtained preset field is 'back source node L1- & gtback source node L2- & gtsource station node', and the direction is consistent with the back source direction, so that a back source path 'back source node L1- & gtback source node L2- & gtsource station node' is rapidly generated.
In an alternative embodiment, the back source node includes at least one service component, each service component for providing a corresponding service. For example, the back source node includes a gateway component for receiving back source requests, authentication, or traffic convergence (e.g., converging multiple node or client requests), and a back source component for back source to the upper node. When the path field reaches the service component of any node in the long connection link, the service component extracts the device information and the service information of the node and adds the device information and the service information as node information to the path field. The node information in the present embodiment includes device information and service information including a service identification, a service name, a service version number, and the like; the device information includes a node ID, a node name, a node address, and the like.
Taking fig. 3 as an example, the back source node L1 and the back source node L2 each include a gateway layer and a back source layer, and the source node adds "323-ec: v0.1.0" to a path field (323 is the SID of the source node, ec is a service name, and v0.1.0 is a service version number); the source node transmits the path field to the back source layer of the back source node L2, and the back source node L2 adds '10072-origin: v3.3.10' to the path field (10072 is the node SID of the back source node L2, origin is the service name of the back source layer, v3.3.10 is the service version number); the back source node L2 transmits the path field to the back source layer of the back source node L1, adds ' 3297-origin v3.3.9 ' to the path field (3297 is the node SID of the back source node L1, origin is the service name of the back source layer, v3.3.9 is the service version number), the back source layer of the back source node L1 further transmits the path field to the gateway layer of the same node, and the gateway layer adds ' 3297-gateway v2.3.11/v0.1 ' to the path field (3297 is the node SID of the back source node L1, gateway is the service name of the gateway layer, v2.3.11 and v0.1 are the service version number and the configuration version number respectively), and finally obtains the path field ' 3297-gateway v2.3.11/v0.1;3297-origin, v3.3.9;10072-origin, v3.3.10;323-ec: v0.1.0", thereby obtaining a return source path '3297-gateway: → 3297-origin → 10072- & gt 323-ec' and service version information of each service in the return source path.
Therefore, in the path acquisition method provided by the embodiment of the invention, after the long connection link corresponding to the resource acquisition request is established, the source station node and each source return node in the long connection link actively add the node information into the path field, and finally, the complete source return path of the resource acquisition request is obtained according to the path field, so that the acquisition efficiency of the source return path is improved.
Example two
Fig. 4 is a schematic flow chart of a path acquisition method according to a second embodiment of the present invention. The path obtaining method provided in this embodiment may be executed by a corresponding content delivery network system, where the content delivery network system includes a plurality of CDN nodes.
Specifically, as shown in fig. 4, the method includes the steps of:
in step S410, an initial setup event and/or a link update completion event of the long connection link is detected.
After receiving a resource acquisition request sent by a user terminal, the content distribution network system establishes a long connection link corresponding to the resource acquisition request, and generates an initial establishment event of the long connection link after the long connection link is successfully established.
And if the established long connection link is abnormal during the duration of the resource acquisition request, the content distribution network performs link reconstruction, and generates a link update completion event of the long connection link after the link reconstruction is successful.
In step S420, the node in the long connection link creates a path field corresponding to the resource acquisition request, and transmits the path field along the resource transmission direction.
After the initial build event of the long connection link is detected, the path field of the resource acquisition request is not currently stored, and after the initial build event of the long connection link is detected, steps S420 and S430 are performed to generate the path field and obtain the source return path based on the path field.
After detecting the link update completion event of the long connection link, it indicates that the long connection link successfully realizes link reestablishment, and after the link reestablishment, the node or the node sequence included in the long connection link may change, and the source return link may also change, steps S420 and S430 are executed to generate a new path field and obtain a new source return path based on the path field.
In step S430, when the path field reaches any node in the long connection link, the node extracts node information, adds the node information to the path field to update the path field, and when the back source node located at the end of the resource transmission direction updates the path field, stores the updated path field for generating the back source path corresponding to the resource acquisition request based on the path field.
Step S440, the request information of the resource acquisition request is stored in association with the back source path of the resource acquisition request; and extracting the index of the user end in the duration of the resource acquisition request, and associating the source return path and the index of the user end according to the request information.
After the back source path of the resource acquisition request is obtained, the back source path is stored in association with the request information, so that which resource acquisition request the back source path corresponds to is accurately determined. Wherein the request information includes, but is not limited to: client information, request duration (the period between the request transmission time and the request end time), and the like.
Further, a client index of the client during the duration of the resource acquisition request (a period from the time of sending the request to the time of ending the request) is extracted, where the client index includes but is not limited to: a click-through rate index, an error reporting index, and the like. Taking a live broadcast scene as an example, a viewer side can continuously acquire live broadcast streams transmitted by a content distribution network system in the live broadcast stream acquisition request duration period, statistics is carried out on client side indexes such as the blocking rate, the error reporting frequency and the like of the client side in the live broadcast stream acquisition request duration period, and the client side indexes are associated with request information.
And associating the back source path of the same request information with the user end index according to the request information associated back source path and the user end index. So as to facilitate quality analysis of nodes, services or versions according to the associated back source paths and the user end index. For example, for any analysis object, the analysis object may be a node, a service, a version, or the like, at least one piece of associated data (data obtained by associating a back source path with a client index) is acquired during quality analysis, the analysis object appearing in each piece of associated data is extracted, for any analysis object, the client index associated with the back source path in which the analysis object is located is used as the client index mapped by the analysis object, the statistical index (average value or mode) of the client index mapped by each analysis object is counted, and the node with abnormal performance is determined according to the statistical index mapped by each analysis object. For example, if the average value of the click through rates mapped by a certain node exceeds a preset threshold, determining that the node performance of the node is abnormal.
Therefore, in the path acquisition method provided by the embodiment of the invention, after the primary establishment event and/or the link update completion event of the long connection link are detected, the transmission and update of the path field are carried out, so that all the source return paths in the resource acquisition request duration period can be obtained; and the source return path and the user end index are associated according to the request information, so that quality analysis of nodes, services, versions and the like can be conveniently carried out according to the associated data.
Example III
Fig. 5 shows a flow chart of a path acquisition method according to a third embodiment of the present invention. The path obtaining method provided in this embodiment may be executed by a corresponding content delivery network system, where the content delivery network system includes a plurality of CDN nodes.
Specifically, as shown in fig. 5, the method includes the steps of:
step S510, according to the resource acquisition request sent by the user terminal, a long connection link corresponding to the resource acquisition request is established.
In step S520, the node in the long connection link creates a path field corresponding to the resource acquisition request.
In step S530, when the path field reaches any node in the long connection link, the node extracts the node information and the current resource transmission index value, adds the node information and the resource transmission index value to the path field to update the path field, acquires the resource to be transmitted, and embeds the updated path field into the resource to be transmitted.
In the embodiment of the invention, the long connection link can be used for transmitting the resource corresponding to the resource acquisition request from the source station node to the edge node and then transmitting the resource to the user terminal. When the path field reaches any node in the long connection link, the node not only extracts its own node information, but also acquires the current resource transmission index value of the node, such as an FPS (Frames Per Second, transmission frame number per second) and the like, which is used to represent the current resource transmission characteristic of the node. And adding the resource transmission index value to the path field together with the node information, whereby the path field contains the resource transmission index value of the corresponding node.
Further, each node may have a resource that needs to be currently transmitted to the next node or the ue, and the resource is a resource to be transmitted. The node embeds the updated path field into the resource to be transmitted, so that the path field can be transmitted along with the resource to be transmitted. By the method, the current latest path field can be generated in real time, and missing of a source return path is avoided.
In step S540, the resource to be transmitted with the path field embedded therein is transmitted along the resource transmission direction.
The embedding of the path field into the resource to be transmitted is only an optional implementation manner, and in the embodiment of the present invention, the path field and the resource to be transmitted may also be transmitted asynchronously, that is, the path field and the resource may be transmitted independently, and the path field and the resource may be transmitted through the long connection link without interference.
In step S550, after the back source node located at the end of the resource transmission direction updates the path field, the updated path field is stored for generating a back source path corresponding to the resource acquisition request based on the path field.
Step S560, extracting the resource transmission index value of the node from the path field, and identifying the abnormal point in the long connection link according to the resource transmission index value.
And extracting the resource transmission index value of at least one node from the path field if the path field carries the resource transmission index value of the node, and positioning the abnormal point in the link according to the resource transmission index value. For example, if the resource transmission index value of a certain node is lower than a preset threshold value, determining that the node is an abnormal point in the long connection link.
Therefore, in the path acquisition method provided by the embodiment of the invention, the current resource transmission index value of the node is added into the path field, so that the resource transmission index value of the node can be extracted from the path field, and the abnormal point positioning is conveniently carried out according to the resource transmission index value of the node; and the path field is embedded into the resource to be transmitted for transmission, so that the safety of the path field is ensured and the omission of a source return path is avoided.
Example IV
Fig. 6 is a schematic structural diagram of a content distribution network system according to a fourth embodiment of the present invention. As shown in fig. 6, the system 600 includes: a source station node 610 and at least one back source node 620;
the source station node and the at least one source return node form a long connection link corresponding to a resource acquisition request sent by a user side; the long connection link is sequentially provided with a source station node and at least one source return node along a resource transmission direction, long connection is established between two adjacent nodes in the long connection link, and long connection is established between the source return node positioned at the tail end of the resource transmission direction in the long connection link and the user side;
The source station node creates a path field corresponding to the resource acquisition request, and the source station node and the source return node transmit the path field along the resource transmission direction;
when the path field reaches any node in the long connection link, the node extracts node information, the node information is added to the path field to update the path field, and after a back source node positioned at the tail end of the resource transmission direction updates the path field, the updated path field is stored for generating a back source path corresponding to the resource acquisition request based on the path field.
In an alternative embodiment, a long connection is established between two adjacent nodes in the long connection link through a first transmission protocol;
the source returning node at the tail end of the resource transmission direction and the user end establish long connection through a second transmission protocol;
the source station node and the source return node are configured to: and adding the node information to the path field through a custom data adding instruction of the first transmission protocol.
In an alternative embodiment, the source station node and the back source node are configured to: the node information is added before the information already in the path field.
The source station node and the source return node are configured to: when the path field reaches any node in the long connection link, the node extracts node information and a current resource transmission index value, and the node information and the resource transmission index value are added to the path field to update the path field.
In an alternative embodiment, the system further comprises: an analysis node for extracting the resource transmission index value of a node from the path field; and identifying abnormal points in the long connection link according to the resource transmission index value.
In an alternative embodiment, the source station node and the back source node are configured to: when the path field reaches any node in the long connection link, the node extracts node information and acquires resources to be transmitted, the node information is added to the path field to update the path field, and the updated path field is embedded into the resources to be transmitted; and transmitting the resources to be transmitted embedded with the path field along the resource transmission direction.
In an alternative embodiment, the source station node and the back source node are configured to: and detecting an initial build event and/or a link update completion event of the long connection link, and executing the steps that the node in the long connection link creates a path field corresponding to the resource acquisition request and transmits the path field along the resource transmission direction.
In an alternative embodiment, the back source node is configured to: storing request information of the resource acquisition request in association with a source return path of the resource acquisition request;
the analysis node is configured to: extracting a user end index of the user end in the duration of the resource acquisition request; and associating the source return path and the user end index according to the request information.
Therefore, in the content distribution network system provided by the embodiment of the invention, after the long connection link corresponding to the resource acquisition request is established, the source station node and each source return node in the long connection link actively add the node information into the path field, and finally, the complete source return path of the resource acquisition request is obtained according to the path field, so that the acquisition efficiency of the source return path is improved.
Example five
FIG. 7 illustrates a schematic diagram of a computing device provided by an embodiment of the present invention. The specific embodiments of the present invention are not limited to a particular implementation of a computing device.
As shown in fig. 7, the computing device may include: a processor 702, a communication interface (Communications Interface), a memory 706, and a communication bus 708.
Wherein: processor 702, communication interface 704, and memory 706 perform communication with each other via a communication bus 708. A communication interface 704 for communicating with network elements of other devices, such as clients or other servers. The processor 702 is configured to execute the program 710, and may specifically perform the relevant steps in the above-described embodiment of the path acquisition method.
In particular, program 710 may include program code including computer-operating instructions.
The processor 702 may be a Central Processing Unit (CPU), or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors included by the computing device may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
Memory 706 for storing programs 710. The memory 706 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory. The program 710 may be specifically configured to cause the processor 702 to perform the method of any of the method embodiments described above.
Example six
A sixth embodiment of the present invention provides a non-volatile computer storage medium, where at least one executable instruction is stored, where the computer executable instruction may perform the path acquisition method in any of the above-mentioned method embodiments.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of embodiments of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the embodiments of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., an embodiment of the invention that is claimed, requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of embodiments of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components according to embodiments of the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). Embodiments of the present invention may also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the embodiments of the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. Embodiments of the invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (11)

1. A path acquisition method, comprising:
according to a resource acquisition request sent by a user side, establishing a long connection link corresponding to the resource acquisition request; the long connection link is sequentially provided with a source station node and at least one source return node along a resource transmission direction, long connection is established between two adjacent nodes in the long connection link, and long connection is established between the source return node positioned at the tail end of the resource transmission direction in the long connection link and the user side;
A node in the long connection link creates a path field corresponding to the resource acquisition request and transmits the path field along the resource transmission direction;
when the path field reaches any node in the long connection link, the node extracts node information, the node information is added to the path field to update the path field, and after a back source node positioned at the tail end of the resource transmission direction updates the path field, the updated path field is stored for generating a back source path corresponding to the resource acquisition request based on the path field.
2. The method according to claim 1, wherein a long connection is established between two adjacent nodes in the long connection link via a first transport protocol;
the source returning node at the tail end of the resource transmission direction and the user end establish long connection through a second transmission protocol;
the adding the node information to the path field includes: and adding the node information to the path field through a custom data adding instruction of the first transmission protocol.
3. The method of claim 1 or 2, wherein the adding the node information to the path field comprises: the node information is added before the information already in the path field.
4. A method according to any of claims 1-3, wherein the node extracting node information when the path field reaches any node in the long connection link, adding the node information to the path field to update the path field comprises:
when the path field reaches any node in the long connection link, the node extracts node information and a current resource transmission index value, and the node information and the resource transmission index value are added to the path field to update the path field.
5. The method according to claim 4, wherein the method further comprises:
extracting the resource transmission index value of a node from the path field;
and identifying abnormal points in the long connection link according to the resource transmission index value.
6. The method of claim 4 or 5, wherein the node extracting node information when the path field reaches any node in the long connection link, and adding the node information to the path field to update the path field comprises:
when the path field reaches any node in the long connection link, the node extracts node information and acquires resources to be transmitted, the node information is added to the path field to update the path field, and the updated path field is embedded into the resources to be transmitted;
The transmitting the path field along the resource transmission direction includes: and transmitting the resources to be transmitted embedded with the path field along the resource transmission direction.
7. The method according to any of claims 1-6, wherein a node in the long connection link creates a path field corresponding to the resource acquisition request and transmitting the path field in the resource transmission direction comprises:
and detecting an initial build event and/or a link update completion event of the long connection link, and executing the steps that the node in the long connection link creates a path field corresponding to the resource acquisition request and transmits the path field along the resource transmission direction.
8. The method according to any one of claims 1-7, further comprising:
storing request information of the resource acquisition request in association with a source return path of the resource acquisition request;
extracting a user end index of the user end in the duration of the resource acquisition request;
and associating the source return path and the user end index according to the request information.
9. A content delivery network system, comprising: a source station node and at least one source return node;
The source station node and the at least one source return node form a long connection link corresponding to a resource acquisition request sent by a user side; the long connection link is sequentially provided with a source station node and at least one source return node along a resource transmission direction, long connection is established between two adjacent nodes in the long connection link, and long connection is established between the source return node positioned at the tail end of the resource transmission direction in the long connection link and the user side;
the source station node or the back source node creates a path field corresponding to the resource acquisition request, and the source station node and the back source node transmit the path field along the resource transmission direction;
when the path field reaches any node in the long connection link, the node extracts node information, the node information is added to the path field to update the path field, and after a back source node positioned at the tail end of the resource transmission direction updates the path field, the updated path field is stored for generating a back source path corresponding to the resource acquisition request based on the path field.
10. A computing device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
The memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform the operations corresponding to the path acquisition method according to any one of claims 1 to 8.
11. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the path acquisition method of any one of claims 1-8.
CN202311842737.3A 2023-12-28 2023-12-28 Path acquisition method, content distribution network system, computing device, and storage medium Pending CN117793002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311842737.3A CN117793002A (en) 2023-12-28 2023-12-28 Path acquisition method, content distribution network system, computing device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311842737.3A CN117793002A (en) 2023-12-28 2023-12-28 Path acquisition method, content distribution network system, computing device, and storage medium

Publications (1)

Publication Number Publication Date
CN117793002A true CN117793002A (en) 2024-03-29

Family

ID=90387134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311842737.3A Pending CN117793002A (en) 2023-12-28 2023-12-28 Path acquisition method, content distribution network system, computing device, and storage medium

Country Status (1)

Country Link
CN (1) CN117793002A (en)

Similar Documents

Publication Publication Date Title
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
JP4363847B2 (en) Digital TV application protocol for interactive TV
US9300733B2 (en) System and/or method for client-driven server load distribution
US11025724B2 (en) Transport of control data in proxy-based network communications
CN105991412B (en) Information push method and device
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
CN109889454A (en) A kind of the message driving means and method of micro services framework
CN110381058B (en) Request transmission method and device based on full duplex communication protocol WebSocket
CN112953850B (en) Data transmission method and device, computer readable medium and electronic equipment
CN110769009A (en) User identity authentication method and system
US11777852B1 (en) System and method for web service atomic transaction (WS-AT) affinity routing
CN109088918B (en) Interaction method, client device and server device
CN108989404A (en) A kind of barrage message issuing method, server, system and storage medium
CN115297095B (en) Back source processing method, device, computing equipment and storage medium
US10506021B2 (en) Method and device for providing communication connection for a plurality of candidate applications in a mobile device
CN110582090A (en) CDN scheduling method, scheduling system and MEC network element
CN117793002A (en) Path acquisition method, content distribution network system, computing device, and storage medium
CN113746851B (en) Proxy system and method supporting real-time analysis of GRPC request
CN113676351B (en) Session processing method and device, electronic equipment and storage medium
CN112532534B (en) Data transmission method, device and computer readable storage medium
CN111935316B (en) Method and device for acquiring front-end equipment catalog
CN107071508B (en) A kind of method and system for realizing double screen plug-flow in live streaming
CN115134618B (en) Live stream life cycle information processing method and device and computing equipment
CN108667863B (en) WEB service adaptation system and method based on local agent
CN107465743B (en) Method and device for processing request

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination