CN110912762A - Information acquisition method and device and information generation method and device - Google Patents

Information acquisition method and device and information generation method and device Download PDF

Info

Publication number
CN110912762A
CN110912762A CN201811075024.8A CN201811075024A CN110912762A CN 110912762 A CN110912762 A CN 110912762A CN 201811075024 A CN201811075024 A CN 201811075024A CN 110912762 A CN110912762 A CN 110912762A
Authority
CN
China
Prior art keywords
internet protocol
node
protocol address
addresses
request
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
CN201811075024.8A
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.)
Beijing Microlive Vision Technology Co Ltd
Original Assignee
Beijing Microlive Vision Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Microlive Vision Technology Co Ltd filed Critical Beijing Microlive Vision Technology Co Ltd
Priority to CN201811075024.8A priority Critical patent/CN110912762A/en
Publication of CN110912762A publication Critical patent/CN110912762A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

The embodiment of the disclosure discloses an information acquisition method and device and an information generation method and device. The specific implementation mode of the information acquisition method comprises the following steps: acquiring at least two internet protocol addresses, wherein the acquired internet protocol addresses indicate edge nodes in a content distribution network; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; and receiving the Internet protocol address returned by the node evaluation equipment. This embodiment enriches the variety of information obtained.

Description

Information acquisition method and device and information generation method and device
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and in particular relates to an information acquisition method and device and an information generation method and device.
Background
With the development of computer technology and internet technology, users can be provided with a variety of services through the internet. For example, a user may receive information in the form of text, sound, or video through a terminal.
The website can store data by using a Content Delivery Network (CDN), so that bottlenecks and links on the internet, which may affect the data transmission speed and stability, are avoided as much as possible, and Content transmission is faster and more stable. The content distribution network may include edge nodes.
Disclosure of Invention
The embodiment of the disclosure provides an information acquisition method and device and an information generation method and device.
In a first aspect, an embodiment of the present disclosure provides an information obtaining method, where the method includes: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
In a second aspect, an embodiment of the present disclosure provides an information generating method, where the method includes: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
In a third aspect, an embodiment of the present disclosure provides an information acquiring apparatus, including: a first obtaining unit configured to obtain at least two internet protocol addresses; a first sending unit, configured to send a node evaluation request including the at least two internet protocol addresses to a node evaluation device, where the node evaluation device selects an internet protocol address from the at least two internet protocol addresses and returns the selected internet protocol address; the first receiving unit is configured to receive the internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
In a fourth aspect, an embodiment of the present disclosure provides an information generating apparatus, including: a first receiving module configured to receive a node evaluation request comprising at least two internet protocol addresses, wherein a received internet protocol address indicates an edge node in a content distribution network; a first selecting module configured to select an ip address from the at least two ip addresses; a return module configured to return the selected internet protocol address.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the first aspect.
In a sixth aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any implementation manner of the second aspect.
In a seventh aspect, the disclosed embodiments provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
In an eighth aspect, the present disclosure provides a computer-readable medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the method as described in any implementation manner of the second aspect.
According to the information acquisition method and device provided by the embodiment of the disclosure, by sending a node evaluation request including at least two acquired internet protocol addresses to a node evaluation device, the node evaluation device can select an internet protocol address from the at least two internet protocol addresses sent by the execution main body and then return the internet protocol address to the execution main body, and the technical effects at least include: the variety of the acquired information is enriched.
According to the information generation method and device provided by the embodiment of the disclosure, by receiving a node evaluation request including at least two internet protocol addresses, a node evaluation device can select an internet protocol address from the at least two internet protocol addresses sent by the execution main body and return the internet protocol address to the execution main body, and the technical effects at least include: the variety of information generated and transmitted is enriched.
Drawings
Other features, objects and advantages of the disclosure will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present disclosure may be applied;
FIG. 2 is a flow diagram of one embodiment of an information acquisition method according to the present disclosure;
FIG. 3 is a schematic diagram of an application scenario of an information acquisition method according to the present disclosure;
FIG. 4 is a flow diagram of yet another embodiment of an information acquisition method according to the present disclosure;
FIG. 5 is a flow diagram for one embodiment of an information generation method according to the present disclosure;
FIG. 6 is a schematic block diagram of one embodiment of an information acquisition device according to the present disclosure;
FIG. 7 is a schematic block diagram of one embodiment of an information generating apparatus according to the present disclosure;
FIG. 8 is a schematic block diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the information acquisition method or apparatus and the information generation method or apparatus of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 may be the medium used to provide communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The terminal devices 101, 102, 103 interact with a server 105 via a network 104 to receive or send messages or the like. Various communication client applications, such as a web browser application, a live application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal apparatuses 101, 102, 103 are hardware, various electronic apparatuses having a communication function are possible.
The server 105 may be a server providing various services, such as a background server supporting the selection of edge nodes in the content distribution network on the terminal devices 101, 102, 103. The background server can analyze and process data such as the node evaluation request and feed back a processing result (such as an internet protocol address) to the terminal equipment. Alternatively, the server 105 may be a node evaluation device in the present disclosure.
It should be noted that the information acquisition method provided by the embodiment of the present disclosure is generally executed by the terminal devices 101, 102, and 103, and accordingly, the information acquisition apparatus is generally disposed in the terminal devices 101, 102, and 103. It should be noted that the information generation method provided by the embodiment of the present disclosure is generally executed by the server 105, and accordingly, the information generation apparatus is generally disposed in the server 105.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring to fig. 2, a flow 200 of one embodiment of a method of information acquisition is shown. The present embodiment is mainly illustrated by applying the method to electronic devices with certain computing capability, and may be, for example, the terminal devices 101, 102, and 103 shown in fig. 1. The information acquisition method comprises the following steps:
at step 201, at least two ip addresses are obtained.
In this embodiment, an executing subject of the information acquiring method (for example, a server shown in fig. 1) may acquire at least two internet protocol addresses.
In this embodiment, the acquired internet protocol address indicates an edge node in the content distribution network.
It can be understood that the content distribution network can be understood as a layer of intelligent virtual network on the basis of the existing internet, which is formed by placing edge nodes around the network, and the content distribution network can redirect the request of the user to the service node closest to the user according to the comprehensive information such as network traffic, connection of each node, load condition, distance to the user, response time and the like in real time. The method aims to enable the user to obtain the required content nearby, solve the network congestion condition and improve the response speed of the user for accessing the website.
Generally, when a user initiates a request to a website through a domain name using a terminal, if the website stores data through a content distribution network, the content distribution network may return an internet protocol address of an edge node directly or through a domain name resolution server.
In the present embodiment, the content distribution network may be used to store data of various types of websites.
As an example, the content distribution network may be used to store data of a live website, and the data of the live website may be live video data.
As an example, the content distribution network described above may be used to store data of an e-book-like website, which may be an e-book.
In this embodiment, the execution subject may obtain at least two internet protocol addresses from a local or various electronic devices.
As an example, the execution body may send a request for obtaining at least two internet protocol addresses by sending a domain name resolution (including a domain name of a website).
As an example, the execution body may receive at least two internet protocol addresses from an electronic device having a domain name resolution function. The electronic device with domain name resolution function may include, but is not limited to, at least one of the following: a Local domain name resolution Server (Local DNS Server) and a network domain name resolution Server.
Here, the local domain name resolution server is generally a domain name resolution server that performs local default setting as described above, for example, a domain name resolution server of a communication operator. The network domain name resolution server described above is typically a domain name resolution server that provides authoritative resolution.
Step 202, sending a node evaluation request including at least two internet protocol addresses to a node evaluation device.
In this embodiment, an executing subject (for example, a terminal shown in fig. 1) of the information acquisition method may send a node evaluation request including the at least two internet protocol addresses to the node evaluation device.
In this embodiment, the node evaluation request may request evaluation of the edge node.
In this embodiment, the node evaluation device may select an ip address from the at least two ip addresses in various ways, and return the selected ip address to the execution main body.
It should be noted that, the node evaluation device selects an internet protocol address and returns the internet protocol address to the execution main body, and the technical effects at least include:
first, the node evaluation device filters ip addresses to select ip addresses indicating edge nodes with specific characteristics. For example, if the node evaluation device selects an internet protocol address in a polling manner, the load balancing adjustment of the edge node can be realized in the process of selecting the internet protocol address. Thus, the load may be light for the edge node indicated by the ip address returned to the execution agent.
Second, the amount of computation of the execution agent can be reduced compared to the selection of the ip address by the execution agent and the selection by the node evaluation device. It can be understood that, in general, the execution main body has limited computing capability, and the selected work is delivered to the node evaluation device to be completed, so that the computing capability and the reaction speed of the execution main body can be improved.
In some optional implementation manners of this embodiment, the node evaluation device may select an internet protocol address from the received at least two internet protocol addresses in a random or polling selection manner, and return the selected internet protocol address to the execution main body.
In some optional implementation manners of this embodiment, the node evaluation device may select an internet protocol address from the at least two internet protocol addresses according to edge node ranking information for an edge node in the content distribution network, and return the selected internet protocol address to the execution main body.
It should be noted that the node evaluation device selects the internet protocol address by referring to the edge node ranking information ranking. Since the edge node is selected by the node evaluation device with reference to the edge node ranking information, the edge node indicated by the selected ip address may have specific characteristics, such as the edge node with the lightest load and the fastest data provision.
In this embodiment, the edge node ranking information may include an internet protocol address of the edge node and a corresponding ranking rank.
In this embodiment, the edge node ranking information may be predetermined by the node evaluation device, or may be calculated by the node evaluation device in real time.
Optionally, the node evaluation device may determine ranking information of (a part of or all of) edge nodes of the content distribution network according to some parameters, which are obtained in advance, of the edge nodes of the content distribution network. When the node evaluation device receives the node evaluation request, the internet protocol address (also referred to as an internet protocol address to be evaluated) in the node evaluation request can be acquired, and then the node evaluation device can select a predetermined number of internet protocol addresses to be evaluated, which are ranked ahead, according to the ranking of the internet protocol address with evaluation in the edge node ranking information, and return the internet protocol addresses to the execution main body.
As an example, the execution body may send a node evaluation request a to the node evaluation apparatus, the node evaluation request a including an internet protocol address a, an internet protocol address B, and an internet protocol address C. The above-described node evaluation device may determine edge node ranking information in advance, and may include, for example, an internet protocol address a (corresponding to a ranking name of 5), an internet protocol address B (corresponding to a ranking name of 4), an internet protocol address C (corresponding to a ranking name of 3), an internet protocol address D (corresponding to a ranking name of 2), and an internet protocol address E (corresponding to a ranking name of 1). The node evaluation device may find that the internet protocol address a, the internet protocol address B, and the internet protocol address C included in the node evaluation request a are arranged in the order of the ranking nouns in the edge node ranking information from high to low as the internet protocol address C, the internet protocol address B, and the internet protocol address a. The node evaluation device may select the ip address C if it is predetermined that an ip address is to be selected. The node evaluation device may select the ip address C and the ip address B if it is predetermined that two ip addresses are to be selected.
Step 203, receiving the internet protocol address returned by the node evaluation equipment.
In this embodiment, an execution subject (for example, a terminal shown in fig. 1) of the information acquisition method may receive an internet protocol address returned by the node evaluation device.
In this embodiment, the electronic device may receive an internet protocol address returned by the node evaluation device.
In some optional implementation manners of this embodiment, the execution main body may select an internet protocol address from internet protocol addresses returned by the node averaging device in response to the generation of the pull request; and then, the selected internet protocol address is used for sending the pull flow request.
Generally, in the live broadcast field, a live broadcast provider can send a push streaming request to a server by using a client, wherein the push streaming request comprises live broadcast video data; the server stores live video data; a live viewer can send a pull stream request to a server by using a client, wherein the pull stream request can comprise a live provider identifier of a live provider which the live viewer wants to view; the server may return live video data to the live viewer in response to receiving the pull stream request.
In this embodiment, the ip address may be selected from the ip addresses returned by the node averaging device by using various strategies.
Optionally, the internet protocol address may be selected from the internet protocol addresses returned by the node averaging device in a random selection manner.
Optionally, the internet protocol address may be selected from the internet protocol addresses returned by the node averaging device in a polling manner. For example, the node averaging device returns two ip addresses in the ip addresses, and the execution entity sends the pull request by using the two ip addresses in turn.
It should be noted that, since the selected ip address is selected by the node evaluation device with reference to the edge node ranking information, the edge node indicated by the selected ip address may have a specific characteristic, such as the edge node with the lightest load and the fastest data provision. Therefore, when the execution main body sends the pull flow request, the pull flow request can be sent to the edge node with specific characteristics (such as the edge node with the lightest load and the fastest data supply) by using the internet protocol address returned by the node evaluation equipment, and therefore, a specific purpose, such as quick pull flow, can be achieved.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the information acquisition method according to the present embodiment. In the application scenario of fig. 3:
first, the terminal device 301 may acquire at least two internet protocol addresses, where the acquired internet protocol addresses indicate edge nodes in the content distribution network.
Then, the terminal apparatus 301 described above may transmit a node evaluation request to the node evaluation apparatus 302. Here, the node evaluation request includes the at least two internet protocol addresses.
Then, the node evaluation device 302 may select an ip address from the at least two ip addresses. The node evaluation device may send the selected ip address to the terminal device.
Finally, the terminal device may receive the ip address returned by the node evaluation device.
In the method provided by the foregoing embodiment of the present disclosure, by sending a node evaluation request including the acquired at least two ip addresses to a node evaluation device, the node evaluation device may select an ip address from the at least two ip addresses sent by the execution main body and return the ip address to the execution main body, and the technical effects at least include: the variety of the acquired information is enriched.
In some optional implementations of this embodiment, the method shown in this embodiment may further include a flow 400 shown in fig. 4, where the flow 400 may include:
step 401, sending a test request to an edge node according to each of at least two ip addresses.
Here, the execution body may send a test request to an edge node indicated by an internet protocol address.
Here, the test request may be a request for testing a communication function of the edge node.
As an example, the test request may include an Internet Packet explorer (PING) request. The principle of PING request is roughly as follows: the execution body sends a data packet to the equipment indicated by the target internet protocol address, and then requires the other party to return a data packet with the same size to determine whether the two network machines are connected and communicated or not and what the time delay is.
Step 402, generating a test result of each edge node according to the request result of the test request returned by each edge node.
In this embodiment, the execution body may generate the test result of each edge node according to the request result of the test request returned by each edge node.
As an example, the request result returned by the edge node may include a data packet returned by the edge node based on the PING request.
The execution body can compare the request result returned by the edge node with the data packet sent by the PING request, and calculate the packet loss rate of the PING request. The execution agent may compare a time when the request result is received with a time when the test request is transmitted, and calculate a time delay value of the PING request.
Optionally, the execution main body may package the packet loss rate and the time delay value into a test result, and send the test result to the node evaluation device.
Optionally, the executing entity may further pack another parameter based on the packet loss rate and the time delay value, and send the result to the node averaging device as a test result. Here, the above-mentioned other parameters may include, but are not limited to, at least one of: a Time To Live value (TTL) of the acquired internet protocol address and source information (e.g., a local domain name resolution server or a network domain name resolution server) of the acquired internet protocol address.
Step 403, sending each generated test result to the node evaluation device.
Here, the execution agent may transmit each generated test result to the node evaluation device.
As an example, the execution body acquires an internet protocol address F, an internet protocol address G, and an internet protocol address H. The execution body may send a test request F to the edge node F indicated by the ip address F, receive a request result F, and generate a test result F. The execution body may send a test request G to the edge node G indicated by the ip address G, receive a request result G, and generate a test result G. The execution body can send a test request H to the edge node H indicated by the IP address H, receive the request result H and generate a test result H. Then, the execution body may send the test result F, the test result H, and the test result G to a node evaluation device.
Optionally, on the basis that the executing body executes the process 400, the node evaluation device may rank at least two edge nodes in the content distribution network according to the received test result, and generate edge node ranking information for the at least two edge nodes. Then, the node evaluation device may select a predetermined number of internet protocol addresses with a higher ranking, and return the selected internet protocol addresses to the execution main body.
Optionally, the node evaluation device may analyze each received test result by using some preset conditions, so as to implement sorting of the at least two edge nodes. As an example, three parameters, namely a parameter a, a parameter B and a parameter C, may be included in the test result. The preset conditions may include: firstly, comparing a parameter value A corresponding to the parameter A, and forward ranking a test result with a larger parameter value A; if the parameter values A are the same, comparing the parameter values B corresponding to the parameter values B, and forward ranking the test results with larger parameter values B; and if the parameter values B are the same, comparing the parameter values C corresponding to the parameter values C, and forward ranking the test results with larger parameter values C. Therefore, the test result ranking information can be obtained, and then, the order of the test results can be used as the order of the edge nodes (it can be understood that the edge nodes have a corresponding relationship with the test results), so that the edge node ranking information can be obtained.
Optionally, the node evaluation device may score at least two edge nodes in the content distribution network according to the received test result; and generating edge node sequencing information aiming at least two edge nodes according to the scores.
Optionally, the edge node evaluation device may preset logic that generates the edge node ranking information according to a plurality of test results. For example, weights may be preset for various parameters in the test results, the parameters in each test result are weighted and summed to obtain a score corresponding to the test result, and the score corresponding to the test result is used as the score of the edge node. And sequencing the edge nodes according to the scores of the edge nodes to generate edge node ranking information.
As an example, the edge node evaluation device receives the test result F, the test result H, and the test result G. The edge node evaluation device may perform weighted summation on a plurality of parameters in the test result F to obtain a score F (for example, 70 scores) corresponding to the test result F, and use the score F as the score of the edge node F. The edge node evaluation device may perform weighted summation on a plurality of parameters in the test result H to obtain a score H (for example, 80 scores) corresponding to the test result H, and use the score H as the score of the edge node H. The edge node evaluation device may perform weighted summation on the plurality of parameters in the test result G to obtain a score G (e.g., 90 scores) corresponding to the test result G, and use the score G as the score of the edge node G. Thereby, the edge node ranking information is obtained in order of the internet protocol address G (corresponding ranking name is 1), the internet protocol address H (corresponding ranking name is 2), and the internet protocol address F (corresponding ranking name is 3).
Referring to fig. 5, a flow 500 of one embodiment of a method of information transmission is shown. The present embodiment is mainly illustrated by applying the method to an electronic device with certain computing capability, for example, the server 105 shown in fig. 1 may be used. The information sending method comprises the following steps:
step 501, a node evaluation request comprising at least two internet protocol addresses is received.
In this embodiment, an executing agent (for example, a server shown in fig. 1) of the information transmission method may receive a node evaluation request including at least two internet protocol addresses.
Here, the received internet protocol address may indicate an edge node in the content distribution network.
Step 502, selecting an ip address from two ip addresses.
In this embodiment, an executing entity (for example, the server shown in fig. 1) of the information sending method may select an internet protocol address from the at least two internet protocol addresses.
In this embodiment, the node evaluation device may select an ip address from the at least two ip addresses in various manners, and return the selected ip address to the execution main body.
It should be noted that, the node evaluation device selects an internet protocol address and returns the internet protocol address to the execution main body, and the technical effects at least include:
first, the node evaluation device filters ip addresses to select ip addresses indicating edge nodes with specific characteristics. For example, if the node evaluation device selects an internet protocol address in a polling manner, the load balancing adjustment of the edge node can be realized in the process of selecting the internet protocol address. Thus, the load may be light for the edge node indicated by the ip address returned to the execution agent.
Second, the amount of computation of the execution agent can be reduced compared to the selection of the ip address by the execution agent and the selection by the node evaluation device. It can be understood that, in general, the execution main body has limited computing capability, and the selected work is delivered to the node evaluation device to be completed, so that the computing capability and the reaction speed of the execution main body can be improved.
In some optional implementation manners of this embodiment, the node evaluation device may select an internet protocol address from the received at least two internet protocol addresses in a random or polling selection manner, and return the selected internet protocol address to the execution main body.
In some optional implementation manners of this embodiment, the node evaluation device may select an internet protocol address from the at least two internet protocol addresses according to edge node ranking information for an edge node in the content distribution network, and return the selected internet protocol address to the execution main body.
It should be noted that, since the edge node is selected by the node evaluation device with reference to the edge node ranking information, the edge node indicated by the selected ip address may have a specific characteristic, such as the edge node with the lightest load and the fastest data provision. Thus, the node evaluation device can select the internet protocol address of the edge node with specific characteristics. The terminal device (or client) may obtain an internet protocol address of an edge node having a specific characteristic.
In some optional implementations of the present embodiment, the edge node ranking information may include an internet protocol address of the edge node and a corresponding ranking rank.
In some optional implementation manners of this embodiment, the edge node ranking information may be predetermined by the node evaluation device, or may be obtained by calculating in real time by the node evaluation device.
Optionally, the edge node ranking information is generated in advance by the node evaluation device, and the node evaluation device determines, from the edge node ranking information, ranking information corresponding to each determined internet protocol address corresponding to the domain name, and selects a predetermined number of internet protocol addresses according to each determined ranking information. The node evaluation device may determine ranking information of (part of or all of) edge nodes of the content distribution network according to some parameters acquired in advance about the edge nodes of the content distribution network. When the node evaluation device receives the node evaluation request, the internet protocol address (also referred to as an internet protocol address to be evaluated) in the node evaluation request can be acquired, and then the node evaluation device can select a predetermined number of internet protocol addresses to be evaluated, which are ranked ahead, according to the ranking of the internet protocol address with evaluation in the edge node ranking information, and return the internet protocol addresses to the execution main body.
In some optional implementations of this embodiment, the method shown in this embodiment may further include: receiving a test result sent by a client; and sequencing the at least two edge nodes according to the received test result, and generating edge node sequencing information of the at least two edge nodes.
In some optional implementations of the embodiment, the test result includes at least one of: the method comprises the steps of obtaining a packet loss rate, a time delay value of a test request, a time-to-live value of an internet protocol address and source information of the acquired internet protocol address.
Optionally, the scoring the at least two edge nodes according to the received test result may include: respectively presetting weights for various parameters in the test result; for each test result in the received test results, weighting and summing the parameters of the test result to obtain a score corresponding to the test result; and taking the score corresponding to the test result as the score of the edge node, and generating the edge node sequencing information of the at least two edge nodes according to the score.
Step 503, return the selected ip address.
In this embodiment, the execution subject of the information sending method (for example, the server shown in fig. 1) may return the selected internet protocol address.
In the method provided by the foregoing embodiment of the present disclosure, by receiving a node evaluation request including at least two ip addresses, a node evaluation device may select an ip address from the at least two ip addresses sent by the execution main body and return the ip address to the execution main body, and the technical effects at least include: the variety of information generated and transmitted is enriched.
It should be noted that details of the implementation of the embodiment corresponding to fig. 5 may refer to descriptions in other embodiments in the disclosure, and are not repeated herein.
With further reference to fig. 6, as an implementation of the method shown in fig. 2, the present disclosure provides an embodiment of an information obtaining apparatus, which corresponds to the embodiment of the method shown in fig. 2, and which can be applied in various electronic devices.
As shown in fig. 6, the information acquisition apparatus 600 of the present embodiment includes: a first acquisition unit 601, a first sending unit 602, and a first receiving unit 603. Wherein the first obtaining unit is configured to obtain at least two internet protocol addresses, wherein the obtained internet protocol addresses indicate edge nodes in the content distribution network; a first sending unit, configured to send a node evaluation request including the at least two internet protocol addresses to a node evaluation device, where the node evaluation device selects an internet protocol address from the at least two internet protocol addresses and returns the selected internet protocol address; and the first receiving unit is configured to receive the internet protocol address returned by the node evaluation equipment.
In this embodiment, specific processing of the first obtaining unit 601, the first sending unit 602, and the first receiving unit 603 of the information obtaining apparatus 600 and technical effects thereof may refer to related descriptions of step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the apparatus further includes: a second sending unit (not shown) configured to send a test request to the edge node according to each of the at least two ip addresses; a second generating unit (not shown) configured to generate a test result of each edge node according to a request result of the test request returned by each edge node; a third transmission unit (not shown) configured to transmit the generated respective test results to the above-described node evaluation apparatus.
In some optional implementations of the embodiment, the test result includes at least one of: the method comprises the steps of obtaining a packet loss rate, a time delay value of a test request, a time-to-live value of an internet protocol address and source information of the acquired internet protocol address.
In some optional implementations of this embodiment, the apparatus further includes: a selecting unit configured to select an internet protocol address from the internet protocol addresses returned by the node evaluation device in response to a generation of a pull request, the internet protocol address in the internet protocol addresses returned by the node evaluation device indicating an electronic device for storing live video data; a fourth sending unit (not shown) configured to send the pull request by using the selected ip address.
It should be noted that details of implementation and technical effects of each unit in the information acquisition apparatus provided in the embodiment of the present disclosure may refer to descriptions of other embodiments in the present disclosure, and are not described herein again.
With further reference to fig. 7, as an implementation of the method shown in fig. 5, the present disclosure provides an embodiment of an information generating apparatus, which corresponds to the embodiment of the method shown in fig. 5, and which may be specifically applied to various electronic devices.
As shown in fig. 7, the information generating apparatus 700 of the present embodiment includes: a first receiving module 701, a first selecting module 702 and a returning module 704. Wherein the first receiving module 701 is configured to receive a node evaluation request including at least two internet protocol addresses, wherein the received internet protocol addresses indicate edge nodes in a content distribution network; a first selecting module 702 configured to select an ip address from the at least two ip addresses; a returning module 703 configured to return the picked internet protocol address.
In this embodiment, specific processing of the first receiving module 701, the first selecting module 702, and the returning module 704 of the information generating apparatus 700 and technical effects thereof may refer to related descriptions of step 701, step 702, and step 703 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the first selecting module 702 may be further configured to: and selecting an internet protocol address from the at least two internet protocol addresses according to the edge node ranking information aiming at the edge node in the content distribution network.
In some optional implementations of this embodiment, the apparatus further includes: a first receiving module (not shown) configured to receive the test result sent by the client; a sorting module (not shown) configured to sort the at least two edge nodes according to the received test result, and generate edge node sorting information of the at least two edge nodes.
In some optional implementations of the embodiment, the test result includes at least one of: the method comprises the steps of obtaining a packet loss rate, a time delay value of a test request, a time-to-live value of an internet protocol address and source information of the acquired internet protocol address.
In some optional implementations of this embodiment, the sorting module is further configured to: respectively presetting weights for various parameters in the test result; for each test result in the received test results, weighting and summing the parameters of the test result to obtain a score corresponding to the test result; and taking the score corresponding to the test result as the score of the edge node, and generating the edge node sequencing information of the at least two edge nodes according to the score.
In some optional implementations of this embodiment, the edge node ranking information is generated in advance; and the above apparatus further comprises: a determining module configured to determine ranking information corresponding to each determined internet protocol address corresponding to the domain name from edge node ranking information; a second selecting module configured to select a predetermined number of internet protocol addresses according to the determined respective ranking information.
It should be noted that details of implementation and technical effects of each unit in the information generating apparatus provided in the embodiment of the present disclosure may refer to descriptions of other embodiments in the present disclosure, and are not described herein again.
Referring now to fig. 8, a schematic diagram of an electronic device (e.g., a terminal device or server of fig. 1) 800 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an electronic device 800 may include a processing means (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (17)

1. An information acquisition method, comprising:
acquiring at least two internet protocol addresses;
sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses;
receiving an internet protocol address returned by the node evaluation equipment;
wherein the obtained internet protocol address indicates an edge node in the content distribution network.
2. The method of claim 1, wherein the method further comprises:
sending a test request to the edge node according to each internet protocol address in the at least two internet protocol addresses;
generating a test result of each edge node according to a request result of the test request returned by each edge node;
and sending each generated test result to the node evaluation equipment.
3. The method of claim 1, wherein the test results comprise at least one of: the method comprises the steps of obtaining a packet loss rate, a time delay value of a test request, a time-to-live value of an internet protocol address and source information of the acquired internet protocol address.
4. The method of claim 1, wherein the method further comprises:
responding to a pull stream generation request, selecting an internet protocol address from internet protocol addresses returned by the node evaluation equipment, wherein the internet protocol address in the internet protocol addresses returned by the node evaluation equipment indicates electronic equipment for storing live video data;
and sending the pull stream request by utilizing the selected internet protocol address.
5. An information generating method, comprising:
receiving a node evaluation request comprising at least two internet protocol addresses;
selecting an internet protocol address from the at least two internet protocol addresses;
returning the selected internet protocol address;
wherein the received internet protocol address indicates an edge node in the content distribution network.
6. The method of claim 5, wherein said selecting an internet protocol address from said at least two internet protocol addresses comprises:
and selecting an internet protocol address from the at least two internet protocol addresses according to the edge node ranking information aiming at the edge node in the content distribution network.
7. The method of claim 6, wherein the method further comprises:
receiving a test result sent by a client;
and sequencing the at least two edge nodes according to the received test result, and generating edge node sequencing information of the at least two edge nodes.
8. The method of claim 7, wherein the test results include at least one of: the method comprises the steps of obtaining a packet loss rate, a time delay value of a test request, a time-to-live value of an internet protocol address and source information of the acquired internet protocol address.
9. The method of claim 7, wherein the sorting the at least two edge nodes according to the received test results and generating edge node sorting information for the at least two edge nodes comprises:
respectively presetting weights for various parameters in the test result;
for each test result in the received test results, weighting and summing the parameters of the test result to obtain a score corresponding to the test result;
and taking the score corresponding to the test result as the score of the edge node, and generating the edge node sequencing information of the at least two edge nodes according to the score.
10. The method of claim 6, wherein the edge node ranking information is pre-generated; and
the method further comprises the following steps:
determining ranking information corresponding to each internet protocol address corresponding to the determined domain name from the edge node ranking information;
selecting a predetermined number of internet protocol addresses according to the determined ranking information.
11. An information acquisition apparatus comprising:
a first obtaining unit configured to obtain at least two internet protocol addresses, wherein the obtained internet protocol addresses indicate edge nodes in a content distribution network;
a first sending unit, configured to send a node evaluation request including the at least two internet protocol addresses to a node evaluation device, where the node evaluation device selects an internet protocol address from the at least two internet protocol addresses and returns the selected internet protocol address;
a first receiving unit configured to receive an internet protocol address returned by the node evaluation device.
12. An information generating apparatus comprising:
a first receiving module configured to receive a node evaluation request comprising at least two internet protocol addresses, wherein a received internet protocol address indicates an edge node in a content distribution network;
a first selecting module configured to select an internet protocol address from the at least two internet protocol addresses;
a return module configured to return the selected internet protocol address.
13. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
14. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 5-10.
15. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-4.
16. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 5-10.
17. An information generating system comprising: an electronic device as claimed in claim 13 and an electronic device as claimed in claim 14.
CN201811075024.8A 2018-09-14 2018-09-14 Information acquisition method and device and information generation method and device Pending CN110912762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811075024.8A CN110912762A (en) 2018-09-14 2018-09-14 Information acquisition method and device and information generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811075024.8A CN110912762A (en) 2018-09-14 2018-09-14 Information acquisition method and device and information generation method and device

Publications (1)

Publication Number Publication Date
CN110912762A true CN110912762A (en) 2020-03-24

Family

ID=69813299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811075024.8A Pending CN110912762A (en) 2018-09-14 2018-09-14 Information acquisition method and device and information generation method and device

Country Status (1)

Country Link
CN (1) CN110912762A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265568A (en) * 2011-06-13 2011-11-30 华为技术有限公司 Communication method and load equalizer
CN103747297A (en) * 2014-01-09 2014-04-23 能力天空科技(北京)有限公司 Video dynamic dispatching method, device and video playing system
CN104283873A (en) * 2014-09-28 2015-01-14 深圳市九洲电器有限公司 Implementation method and system of digital media server (DMS) based on multi-network card equipment
CN104702617A (en) * 2015-03-20 2015-06-10 广东睿江科技有限公司 Data distribution method and device based on CDN (content distribution network)
CN104836732A (en) * 2015-03-31 2015-08-12 清华大学 Network connection automatic selection method and system
CN108270828A (en) * 2016-12-30 2018-07-10 北京国双科技有限公司 A kind of content distribution network system recommends method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102265568A (en) * 2011-06-13 2011-11-30 华为技术有限公司 Communication method and load equalizer
CN103747297A (en) * 2014-01-09 2014-04-23 能力天空科技(北京)有限公司 Video dynamic dispatching method, device and video playing system
CN104283873A (en) * 2014-09-28 2015-01-14 深圳市九洲电器有限公司 Implementation method and system of digital media server (DMS) based on multi-network card equipment
CN104702617A (en) * 2015-03-20 2015-06-10 广东睿江科技有限公司 Data distribution method and device based on CDN (content distribution network)
CN104836732A (en) * 2015-03-31 2015-08-12 清华大学 Network connection automatic selection method and system
CN108270828A (en) * 2016-12-30 2018-07-10 北京国双科技有限公司 A kind of content distribution network system recommends method and device

Similar Documents

Publication Publication Date Title
US20170171344A1 (en) Scheduling method and server for content delivery network service node
KR102270749B1 (en) custom digital components
CN112637287B (en) Load balancing method and equipment
CN108494860B (en) WEB access system, WEB access method and device for client
CN111414543B (en) Method, device, electronic equipment and medium for generating comment information sequence
CN111163324B (en) Information processing method and device and electronic equipment
US20180295150A1 (en) Automatic peer to peer level of activity information maintenance and sharing method and apparatus
CN110650209B (en) Method and device for realizing load balancing
CN109640176B (en) Method and apparatus for generating information
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN110913270B (en) Live broadcasting method and device
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN113254105B (en) Resource processing method and device, storage medium and electronic equipment
CN111694757A (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN109471713B (en) Method and device for inquiring information
JP7217181B2 (en) WEARABLE DEVICE, INFORMATION PROCESSING METHOD, APPARATUS AND SYSTEM
CN112367241A (en) Message generation and message transmission method, device, equipment and computer readable medium
CN106156048B (en) Method and apparatus for providing short uniform resource locator service and communication system
CN109618193B (en) Method and apparatus for processing information
CN111262744A (en) Multimedia information transmitting method, backup server and medium
WO2022048490A1 (en) Data processing method and apparatus, and electronic device
CN110913027B (en) Domain name resolution method and device
CN110912762A (en) Information acquisition method and device and information generation method and device
JP2023031248A (en) Edge computing network, data transmission method, apparatus, device, and storage medium
CN112257039B (en) Identity attribute adding method and device and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324