CN109981778B - Method, device, equipment and storage medium for realizing service of content distribution network - Google Patents

Method, device, equipment and storage medium for realizing service of content distribution network Download PDF

Info

Publication number
CN109981778B
CN109981778B CN201910238034.7A CN201910238034A CN109981778B CN 109981778 B CN109981778 B CN 109981778B CN 201910238034 A CN201910238034 A CN 201910238034A CN 109981778 B CN109981778 B CN 109981778B
Authority
CN
China
Prior art keywords
cdn
service
cdn service
communication mode
node
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.)
Active
Application number
CN201910238034.7A
Other languages
Chinese (zh)
Other versions
CN109981778A (en
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910238034.7A priority Critical patent/CN109981778B/en
Publication of CN109981778A publication Critical patent/CN109981778A/en
Application granted granted Critical
Publication of CN109981778B publication Critical patent/CN109981778B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The embodiment of the invention discloses a service realization method, a device, equipment and a storage medium of a content distribution network, wherein the method comprises the following steps: deploying data required to be transmitted by CDN service at least one CDN node; when a CDN service using end needs to access data deployed on CDN nodes, determining a communication mode for data transmission between the paired CDN nodes and the CDN service using end; and controlling the paired CDN node and CDN service using end to transmit data through a determined communication mode. The embodiment of the invention solves the problem of low utilization rate of idle resources in the current content distribution network for data transmission based on the Internet, improves the utilization rate of the idle resources and increases the available resource amount of the content distribution network.

Description

Method, device, equipment and storage medium for realizing service of content distribution network
Technical Field
The embodiment of the invention relates to the technical field of network data transmission, in particular to a service implementation method, a device, equipment and a storage medium of a content distribution network.
Background
It is very common to provide service providers with data services to user clients via the internet. Typically, for example, multimedia service providers transmit video and audio to user clients via the internet; and the consultation service provider transmits consultation information such as texts and pictures to the user client through the Internet.
With the advent of the 5G era, bandwidth costs have become higher and higher, and therefore, bandwidth costs required to be consumed for transmitting data for user clients over mobile data networks have increased. In contrast, since the public idle bandwidth is increased, a Content Delivery Network (CDN) service technology has appeared. The edge CDN is a part of the enterprise CDN, which collects idle scattered bandwidth resources by using a technology. Specifically, a CDN service provider collects and controls resources of an edge CDN node by a technical means, so as to provide a CDN service for a user of the CDN service.
However, the existing edge CDN technology has certain drawbacks: the CDN service requires that the CDN node and the CDN service user can communicate over the internet to transmit data. However, some devices are qualified for idle storage resources, but it is difficult to transmit data based on the internet. For example, some devices do not have an external independent IP, some devices have a higher mobile data network bandwidth cost, and so on. Therefore, the prior art cannot effectively utilize the idle resources.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for implementing a service of a content distribution network, which can fully utilize idle resources and increase the amount of available resources of the content distribution network.
In a first aspect, an embodiment of the present invention provides a service implementation method for a content delivery network, which is applied to a CDN service provider, and the method includes:
deploying data required to be transmitted by CDN service at least one CDN node;
when a CDN service user needs to access data deployed on the CDN node, determining a communication mode for data transmission between the paired CDN node and the CDN service user;
and controlling the paired CDN node and the CDN service using end to transmit data through the determined communication mode.
In a second aspect, an embodiment of the present invention further provides a service implementation method for a content delivery network, where the method is applied to a CDN node, and the method includes:
receiving data deployed by a CDN service provider;
when the data transmission requirement of the CDN service using end is generated, the data transmission is carried out on the basis of the matched communication mode to the CDN service using end matched with the available communication mode.
In a third aspect, an embodiment of the present invention further provides a service implementation apparatus for a content delivery network, where the apparatus is configured at a CDN service provider, and the apparatus includes:
the CDN node deployment module is used for deploying data required to be transmitted by CDN service to at least one CDN node;
the communication mode determining module is used for determining a communication mode for data transmission between the paired CDN node and the CDN service using end when the CDN service using end needs to access data deployed on the CDN node;
and the control module is used for controlling the paired CDN node and the CDN service using end to transmit data through the determined communication mode.
In a fourth aspect, an embodiment of the present invention further provides a service implementation apparatus for a content delivery network, where the apparatus is configured at a CDN node, and the apparatus includes:
the data receiving module is used for receiving data deployed by the CDN service provider;
and the data transmission module is used for transmitting data to the CDN service using end matched with the available communication mode based on the matched communication mode when the data transmission requirement of the CDN service using end is generated.
In a fifth aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the service implementation method applied to the content delivery network of the CDN service provider according to any embodiment of the present invention, or implement the service implementation method applied to the content delivery network of the CDN node according to any embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a service implementation method applied to a content delivery network of a CDN service provider according to any embodiment of the present invention, or implements a service implementation method applied to a content delivery network of a CDN node according to any embodiment of the present invention.
According to the method, the device, the equipment and the storage medium for realizing the service of the content delivery network, the CDN service provider deploys the transmission data on at least one CDN node and determines the communication mode for data transmission between the paired CDN node and the CDN service using end, so that the CDN service using end can access the required data from the paired CDN node through the determined communication mode, which is equivalent to the data transmission mode of paired communication between the CDN service using end and the CDN node, the problem of low utilization rate of idle resources in the current content delivery network for performing data transmission based on the Internet is solved, the utilization rate of the idle resources is improved, and the available resource amount of the content delivery network is increased.
Drawings
Fig. 1 is a flowchart of a service implementation method of a content distribution network according to an embodiment of the present invention;
fig. 2 is a flowchart of a service implementation method of a content distribution network according to a second embodiment of the present invention;
fig. 3 is a flowchart of a service implementation method of a content distribution network according to a third embodiment of the present invention;
fig. 4 is a flowchart of a service implementation method of a content distribution network according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service implementation apparatus of a content distribution network provided in the fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service implementation apparatus of a content distribution network provided in a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus provided in the seventh embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a service implementation method for a content delivery network according to an embodiment of the present invention, where the embodiment is applicable to a case where an idle CDN node resource is effectively utilized based on interaction among a CDN service provider, a CDN node, and a CDN service user in the content delivery network, and the method can be implemented by a service implementation device of the content delivery network configured in the CDN service provider, and the service implementation device can be implemented in a hardware and/or software manner. The CDN service provider includes any computing device, such as a server, capable of providing CDN service functionality. The CDN node includes any computing device that carries a data distribution function, including but not limited to a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or a mobile device such as an intelligent terminal carried by a user. The CDN service user includes any computing device with CDN service use requirements or data access requirements, and may be a server or a mobile device, or may be a client on the device.
The CDN service provider, the CDN nodes and the CDN service use segment are used as a party for accessing the blockchain network and can be blockchain full-scale nodes or lightweight nodes. The full-magnitude node refers to a block chain network node which is deployed with deployment data of a block chain, such as an intelligent contract or a consensus mechanism, and stores all block data and transaction data; the lightweight node refers to a blockchain network node which is deployed with deployment data of a blockchain, but does not store or store part of the blockchain data and transaction data, and can participate in a transaction request interaction process of the blockchain.
As shown in fig. 1, the method for implementing a service of a content distribution network provided in this embodiment may include:
and S110, deploying data required to be transmitted by the CDN service to at least one CDN node.
The CDN service provider provides CDN service according to service deployment requirements of a CDN service user, and can pre-deploy data to be transmitted on at least one CDN node according to a pre-set data deployment strategy. The data deployment strategy can be set according to factors such as the type of data to be transmitted, the position distribution condition of the CDN node in the current environment, the available communication mode of the CDN node and the like. The data types include but are not limited to entertainment, education, current affairs, hot events, businesses, consultations and the like, the data types are different, and the corresponding data access needs are different, so that different data deployment modes can be selected. For example, if the data to be transmitted belongs to the data of the current hot event and the access demand is large, a data centralized deployment mode may be selected to deploy on all CDN nodes in a specific area; if the access requirement of the data to be transmitted is limited, the data can be selected to be deployed on part of CDN nodes in a specific area. In addition, if the distribution of CDN nodes in a specific area is more concentrated, data to be transmitted may also be deployed in batches on each CDN node in the area, and data stored on each CDN node may or may not overlap. Equivalently, each CDN node may store the data to be transmitted completely, or may selectively store a part of the data.
Alternatively, the CDN node may be a mobile device, and the mobile device includes, but is not limited to, a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or an intelligent terminal (e.g., a mobile phone, an ipad, etc.) carried by a user. By using the mobile device as a CND node, the mobility of data to be transmitted can be improved based on the mobility of the device, the data access amount can be increased, and the utilization rate of these idle resources can be further improved. Particularly, the shared bicycle-based CDN nodes benefit from the advantages of low driving speed of the shared bicycle, relatively centralized and stable distribution areas, and large number of shared bicycles, so that the data volume of transmission and the stability of data transmission can be ensured in the data transmission process with the CDN service user, and the influence of a high moving speed of the device on the data transmission quality is avoided.
And S120, when the CDN service using end needs to access the data deployed on the CDN node, determining a communication mode for data transmission between the paired CDN node and the CDN service using end.
When the CDN service using end triggers a data access requirement deployed on the CDN node through the CDN service provider, the CDN service provider determines a CDN node paired with the CDN service using end, and determines a communication mode for data transmission between the paired CDN node and the CDN service using end, so that the paired CDN node and the CDN service using end are controlled to perform data transmission by using the communication mode. Optionally, the communication mode includes a short-distance wireless communication mode or a local area network communication mode and other non-internet communication modes, such as bluetooth communication, WIFI (wireless fidelity) communication, ZigBee communication, and the like.
The short-distance wireless communication mode is a wireless communication mode supporting data transmission in a short-distance range, the power consumption and the cost are both lower, the network laying is simple, and the operation is convenient; the local area network communication method is an internal communication method between computer groups formed by interconnecting a plurality of computers in a certain area, and may be wireless transmission or wired transmission, compared with the wide area network communication, and the local area network communication method has a high transmission rate and a low cost. Therefore, in this embodiment, the short-range wireless communication mode or the local area network communication mode can be used as a free communication mode, and the network broadband cost can be reduced compared with the internet communication mode on the basis of fully utilizing idle resources.
The pairing is a verification on whether data transmission can be carried out between the CDN node and the CDN service using end based on a non-Internet communication mode supported by both the CDN node and the CDN service using end. The communication mode is generally a communication mode in which the CDN node and the CDN service user can perform peer-to-peer direct transmission. There is usually one, and preferably two or more, available communication methods, which can be used for selective pairing of different CND nodes and CDN service users.
Optionally, the determining of the communication mode for data transmission between the paired CDN node and the CDN service user includes: and determining a matched communication mode between the paired CDN node and the CDN service using end through at least one available communication mode of each CDN node and each CDN service using end which is obtained in advance.
For example, the CDN service provider may obtain an available communication method of each CDN node before deploying data to be transmitted to the CDN node or in a process of deploying the data; when a data access request of a CDN service using end to a CDN node is obtained or a CDN service using request of the CDN service using end is received, obtaining an available communication mode of the CDN service using end; certainly, in the content delivery network, each CDN node and each CDN service user may also actively report their available communication modes to the CDN service provider; then, based on the available communication modes of each CDN node and the CDN service user, the CDN service provider determines, as a matching communication mode between the CDN node and the CDN service user, a non-internet communication mode that is supported by both the CDN node that performs data transmission and the CDN service user and that can implement normal data transmission between the CDN node and the CDN service user. When various non-internet communication modes which are supported by the CDN node and the CDN service using end and can realize normal data transmission between the CDN node and the CDN service using end are available, a target communication mode can be determined according to preset communication mode selection conditions, such as signal strength, data transmission stability and the like.
Further, determining a communication mode for data transmission between the paired CDN node and the CDN service user includes:
and determining a CDN node with the position matched with the available communication mode according to the position of the CDN service using end and the available communication mode, and providing the communication mode of data transmission service. The location matching means that the CDN node and the CDN service user can perform data transmission within a preset distance range. For example, a target area may be determined by using the location of the CDN service user as a center, a CDN node that matches an available communication method of the CDN service user is determined in the target area, and then a communication method for data transmission between the CDN service user and the CDN service user is determined according to a preset communication method selection condition.
And S130, controlling the paired CDN node and CDN service using end to transmit data in a determined communication mode. That is, under the control of the CDN service provider, the CDN service consumer accesses the deployed data in the CDN node.
According to the technical scheme, the CDN service provider deploys the transmission data on at least one CDN node, and determines a communication mode for data transmission between the paired CDN node and a CDN service using end, so that the CDN service using end can access the required data from the paired CDN node through the determined communication mode, which is equivalent to a data transmission mode of paired communication between the CDN service using end and the CDN node, the problem that the utilization rate of idle resources in a content delivery network for data transmission based on the Internet is low at present is solved, the data transmission mode of the content delivery network is enriched, the utilization rate of the idle resources is improved, and the available resource amount of the content delivery network is increased.
Example two
Fig. 2 is a flowchart of a service implementation method of a content distribution network provided in the second embodiment of the present invention, and the present embodiment is further optimized and expanded based on the above embodiments. As shown in fig. 2, the method may include:
s210, deploying data required to be transmitted by CDN service to at least one CDN node.
And S220, when the CDN service using end needs to access the data deployed on the CDN node, predetermining at least one available communication mode of each CDN node and each CDN service using end through agent programs deployed on the CDN node and the CDN service using end.
In this embodiment, the CDN service provider may deploy an agent program on each CDN node and each CDN service user in advance, and manage and control the CDN nodes and the CDN service users through the agent program. For example, the CDN service provider obtains information of each CDN node and the CDN service user, such as available communication methods and location information, through the agent. Certainly, each CDN node and CDN service user may also actively report their information to the CDN service provider through the agent. The agent may be an embedded code or an independent client, and this embodiment is not limited in particular.
And S230, determining a matched communication mode between the paired CDN node and the CDN service using end in at least one available communication mode of each CDN node and each CDN service using end.
And S240, sending a communication establishing instruction and a data transmission instruction to the paired CDN node and CDN service using end respectively through agent programs deployed at the CDN node and the CDN service using end so as to control the paired CDN node and CDN service using end and perform data transmission by determining a communication mode.
For example, after a CDN service provider determines a communication mode matched between a paired CDN node and a CDN service user, the CDN service provider sends a communication establishment instruction to the CDN node and the CDN service user through an agent program, and the CDN node and the CDN service user establish a communication connection between them according to an instruction of the communication establishment instruction; then, after receiving the communication establishment success feedback fed back by the CDN node and the CDN service user, the CDN service provider sends data transmission instructions to the CDN node and the CDN service user, respectively, through the agent programs deployed at the CDN node and the CDN service user, and indicates that data transmission between the CDN node and the CDN service user is possible.
The CDN service provider sends a communication establishment instruction and a data transmission instruction, so that the CDN node and the CDN service user can be controlled to find the other side in time, establish communication at a proper time and transmit data.
On the basis of the above technical solution, optionally, the method further includes:
and if the matching condition between the paired CDN node and the CDN service using end is determined to disappear, controlling to switch a data transmission mode or switching the paired CDN node. For example, a communication fault occurs between a currently paired CDN node and a CDN service user, or a CDN node paired with the CDN service user exceeds a distance range for normal data transmission, and the like, the CDN service provider may control switching between the paired CDN node and the CDN service user to another available communication mode, or control the CDN service user to perform communication pairing with another available CDN node, so as to ensure that the CDN service user can normally access required data.
According to the technical scheme, when the CDN service using end needs to access data deployed on the CDN node, the agent programs deployed on the CDN node and the CDN service using end determine the communication mode matched between the CDN node and the CDN service using end, and control the paired CDN node and the CDN service using end to perform data transmission by using the determined communication mode through the agent programs, the problem that the idle resource utilization rate is low in a content delivery network for performing data transmission based on the Internet at present is solved, the data transmission mode of the content delivery network is enriched, the idle resource utilization rate is improved, and the available resource amount of the content delivery network is improved.
EXAMPLE III
Fig. 3 is a flowchart of a service implementation method for a content delivery network according to a third embodiment of the present invention, where this embodiment is applicable to a case where an idle CDN node resource is effectively utilized based on interaction among a CDN service provider, a CDN node, and a CDN service user in the content delivery network, and may be implemented in cooperation with the service implementation method for the content delivery network applied to the CDN service provider according to the foregoing embodiment of the present invention. The method of this embodiment may be performed by a service implementation apparatus of a content delivery network configured in a CDN node, where the apparatus may be implemented in hardware and/or software. The CDN node includes any computing device with a data distribution function, including but not limited to a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or a mobile device such as an intelligent terminal carried by a user. A CDN service provider includes any computing device, such as a server, capable of providing CDN service functionality. The CDN service user includes any computing device with CDN service use requirements or data access requirements, and may be a server or a mobile device, or may be a client on the device.
As shown in fig. 3, the service implementation method of the content distribution network provided by this embodiment may include:
and S310, receiving data deployed by the CDN service provider.
When the CDN service provider receives a service deployment requirement of the CDN service user, data to be transmitted are deployed on at least one CDN node in advance according to a preset data deployment strategy, and the CDN node receives the data and stores the data to the local.
And S320, when the data transmission requirement of the CDN service using end is generated, transmitting data to the CDN service using end matched with the available communication mode based on the matched communication mode.
When the CDN service user triggers a data access requirement (i.e., a data transmission requirement) for deployment on the CDN node through the CDN service provider, the CDN node transmits data to the CDN service user based on a matching communication method under the control of the CDN service provider. The communication mode includes a short-distance wireless communication mode or a local area network communication mode and other non-internet communication modes, such as bluetooth communication, WIFI (wireless fidelity) communication, ZigBee communication and the like.
On the basis of the above technical solution, optionally, after receiving the data deployed by the CDN service provider, the method further includes: and reporting the position information and the available communication mode of the equipment to a CDN service provider. That is, the CDN node may actively report information of itself, such as location information and an available communication method, to the CDN service provider, so that the CDN service provider may conveniently determine a communication method for data transmission between the paired CDN node and the CDN service user according to the reported location information and the available communication method.
According to the technical scheme of the embodiment, under the control of the CDN service provider, the CDN node transmits data to the CDN service using end matched with the CDN service using end based on a matched communication mode, which is equivalent to a data transmission mode of matched communication between the CDN service using end and the CDN node, so that the problem of low idle resource utilization rate in the current content delivery network for data transmission based on the Internet is solved, the data transmission mode of the content delivery network is enriched, the idle resource utilization rate is improved, and the available resource amount of the content delivery network is increased.
Example four
Fig. 4 is a flowchart of a service implementation method of a content distribution network provided in the fourth embodiment of the present invention, and the present embodiment is further optimized and expanded based on the foregoing embodiments. As shown in fig. 4, the method may include:
and S410, receiving data deployed by the CDN service provider.
And S420, receiving a communication establishment instruction and a data transmission instruction sent by a CDN service provider when the data transmission requirement of the CDN service user is generated.
Optionally, the CDN service provider may deploy an agent program on each CDN node and each CDN service user in advance, and manage and control the CDN nodes and the CDN service users through the agent program. The CDN node may receive the communication establishment instruction and the data transmission instruction through an agent program deployed thereon. The communication instruction comprises a matching communication mode between the CDN node and a CDN service using end matched with the CDN node. The agent program may be an embedded code or may be an independent client, and this embodiment is not limited in particular.
And S430, establishing communication with the paired CDN service using end based on the communication mode in the instruction according to the communication establishing instruction.
And S440, transmitting data to the CDN service using end establishing communication according to the data transmission instruction.
According to the technical scheme of the embodiment, under the control of the CDN service provider, the CDN node establishes communication connection with the paired CDN service using end and transmits data to the CDN service using end according to the received communication establishing instruction and the data transmission instruction, which is equivalent to a data transmission mode of paired communication between the CDN service using end and the CDN node, so that the problem of low utilization rate of idle resources in the current content delivery network for data transmission based on the Internet is solved, the utilization rate of the idle resources is improved, and the available resource amount of the content delivery network is increased.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a service implementation apparatus of a content delivery network according to a fifth embodiment of the present invention, which is applicable to a case where an idle CDN node resource is effectively utilized based on interaction among a CDN service provider, a CDN node, and a CDN service user in the content delivery network. The device can be configured at the CDN service provider and can be realized by adopting a hardware and/or software mode. The CDN service provider includes any computing device, such as a server, capable of providing CDN service functionality. The CDN node includes any computing device that carries a data distribution function, including but not limited to a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or a mobile device such as an intelligent terminal carried by a user. The CDN service user includes any computing device with CDN service use requirements or data access requirements, and may be a server or a mobile device, or may be a client on the device.
As shown in fig. 5, the service implementation apparatus of the content delivery network provided in this embodiment may include a CDN node deployment module 510, a communication method determination module 520, and a control module 530, where:
a CDN node deployment module 510, configured to deploy data that needs to be transmitted by a CDN service to at least one CDN node;
a communication mode determining module 520, configured to determine a communication mode for data transmission between a paired CDN node and a CDN service user when the CDN service user needs to access data deployed on the CDN node;
and the control module 530 is configured to control the paired CDN node and CDN service use end to perform data transmission in a determined communication manner.
Optionally, the communication method determining module 520 is specifically configured to:
when the CDN service using end needs to access data deployed on the CDN nodes, the matched communication mode between the paired CDN nodes and the CDN service using end is determined through at least one available communication mode of each CDN node and each CDN service using end which is obtained in advance.
Optionally, the communication method determining module 520 is specifically configured to:
when the CDN service using end needs to access data deployed on the CDN node, the CDN node with the position matched with the available communication mode is determined according to the position of the CDN service using end and the available communication mode, and the communication mode of providing data transmission service is provided.
Optionally, the apparatus further comprises:
the available communication mode predetermining module is used for predetermining at least one available communication mode of each CDN node and each CDN service using end through an agent program deployed on the CDN node and the CDN service using end;
accordingly, the control module 530 is configured to:
the method comprises the steps that agent programs deployed at CDN nodes and CDN service using ends are used for sending communication establishing instructions and data transmission instructions to the paired CDN nodes and CDN service using ends respectively so as to control the paired CDN nodes and CDN service using ends and conduct data transmission through a determined communication mode.
Optionally, the matched communication mode includes a short-distance wireless communication mode or a local area network communication mode.
Optionally, the CDN node is a mobile device, and the mobile device is a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or an intelligent terminal carried by a user.
Optionally, the apparatus further comprises:
and the switching module is used for controlling the switching of the data transmission mode or the switching of the paired CDN nodes if the pairing condition between the paired CDN nodes and the CDN service using end is determined to disappear.
The service implementation device which can be configured in the content delivery network of the CDN service provider provided by the embodiment of the invention can execute the service implementation method which is applied to the content delivery network of the CDN service provider provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the invention not specifically described in this embodiment.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a service implementation apparatus of a content delivery network according to a sixth embodiment of the present invention, where this embodiment is applicable to a case where an idle CDN node resource is effectively utilized based on interaction among a CDN service provider, a CDN node, and a CDN service user in the content delivery network, and the apparatus may be configured in the CDN node and implemented in a hardware and/or software manner. The CDN node includes any computing device that carries a data distribution function, including but not limited to a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or a mobile device such as an intelligent terminal carried by a user.
As shown in fig. 6, the service implementation apparatus of the content distribution network provided in this embodiment may include a data receiving module 610 and a data transmitting module 620, where:
a data receiving module 610, configured to receive data deployed by a CDN service provider;
and a data transmission module 620, configured to transmit data to the CDN service user matched with the available communication method based on the matched communication method when a data transmission requirement of the CDN service user is generated.
Optionally, the data transmission module 620 includes:
the instruction receiving unit is used for receiving a communication establishment instruction and a data transmission instruction sent by a CDN service provider when a data transmission requirement of a CDN service user end is generated;
the communication establishing unit is used for establishing communication with the paired CDN service using end based on a communication mode in the instruction according to the communication establishing instruction;
and the data transmission unit is used for transmitting data to the CDN service using end establishing communication according to the data transmission instruction.
Optionally, after the data receiving module 610 performs an operation of receiving data deployed by the CDN service provider, the apparatus further includes:
and the position and communication mode reporting module is used for reporting the position information and the available communication mode of the equipment to the CDN service provider.
Optionally, the matched communication mode includes a short-distance wireless communication mode or a local area network communication mode.
Optionally, the CDN node is a mobile device, and the mobile device is a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or an intelligent terminal carried by a user.
The device for realizing the service of the content delivery network configurable in the CDN node provided in the embodiment of the present invention is capable of executing the method for realizing the service of the content delivery network applied to the CDN node provided in any embodiment of the present invention, and has functional modules and advantageous effects corresponding to the execution method. Reference may be made to the description of any method embodiment of the invention not specifically described in this embodiment.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of an apparatus provided in the seventh embodiment of the present invention, and fig. 7 shows a block diagram of an exemplary apparatus suitable for implementing the embodiment of the present invention. The device shown in fig. 7 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention. The device 12 may typically be a computing device capable of providing a CDN service function, such as a server, and may also be a computing device carrying a data distribution function, such as a mobile device, for example, a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or an intelligent terminal carried by a user.
As shown in FIG. 7, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processors 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments described herein.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 16 executes programs stored in the system memory 28 to execute various functional applications and data processing, for example, implement a service implementation method applied to a content delivery network of a CDN service provider, which may include:
deploying data required to be transmitted by CDN service to at least one CDN node;
when a CDN service using end needs to access data deployed on CDN nodes, determining a communication mode for data transmission between the paired CDN nodes and the CDN service using end;
and controlling the paired CDN node and CDN service using end to transmit data through a determined communication mode.
Furthermore, the processor 16 may execute various functional applications and data processing by running a program stored in the system memory 28, for example, implement a service implementation method applied to a content delivery network of a CDN node provided in any embodiment of the present invention, where the method may include:
receiving data deployed by a CDN service provider;
when the data transmission requirement of the CDN service using end is generated, the data transmission is carried out on the basis of the matched communication mode to the CDN service using end matched with the available communication mode.
Example eight
An eighth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, where the computer program, when executed by a processor, implements a service implementation method applied to a content delivery network of a CDN service provider, where the method includes:
deploying data required to be transmitted by CDN service to at least one CDN node;
when a CDN service using end needs to access data deployed on CDN nodes, determining a communication mode for data transmission between the paired CDN nodes and the CDN service using end;
and controlling the paired CDN node and CDN service using end to transmit data through a determined communication mode.
Furthermore, when executed by a processor, a computer program stored on a computer-readable storage medium may further implement a service implementation method applied to a content delivery network of a CDN node, the method including:
receiving data deployed by a CDN service provider;
when the data transmission requirement of the CDN service using end is generated, the data transmission is carried out on the basis of the matched communication mode to the CDN service using end matched with the available communication mode.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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 wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like 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 device. 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).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (13)

1. A service implementation method for a content delivery network is applied to a CDN service provider, and the method comprises the following steps:
deploying data required to be transmitted by CDN service to at least one CDN node;
when a CDN service using end needs to access data deployed on the CDN node, determining a communication mode matched between the paired CDN node and the CDN service using end through at least one available communication mode of each CDN node and each CDN service using end obtained in advance;
controlling the paired CDN node and the CDN service using end to transmit data through the determined communication mode;
the method further comprises the following steps:
pre-determining at least one available communication mode of each CDN node and each CDN service using end through agent programs deployed on the CDN nodes and the CDN service using ends;
correspondingly, the controlling the paired CDN node and the CDN service user to perform data transmission in the determined communication manner includes:
the method comprises the steps that agent programs deployed on CDN nodes and CDN service using ends respectively send communication establishing instructions and data transmission instructions to the paired CDN nodes and CDN service using ends to control the paired CDN nodes and CDN service using ends to carry out data transmission in a determined communication mode.
2. The method of claim 1, wherein the determining a communication manner for data transmission between the paired CDN node and the CDN service user comprises:
and determining a CDN node with the position matched with the available communication mode according to the position of the CDN service using end and the available communication mode, and providing a communication mode of data transmission service.
3. The method of claim 1, wherein the communication means comprises short-range wireless communication means or local area network communication means.
4. The method of claim 1, wherein the CDN node is a mobile device, and the mobile device is a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or an intelligent terminal carried by a user.
5. The method of claim 1, further comprising:
and if the pairing condition between the paired CDN node and the CDN service using end is determined to disappear, controlling to switch a data transmission mode or switching the paired CDN node.
6. A service implementation method of a content delivery network is characterized in that the method is applied to a Content Delivery Network (CDN) node, agent programs are deployed on both the content delivery network CDN node and a CDN service using end, and the method comprises the following steps:
receiving data deployed by a CDN service provider;
when a data transmission requirement of a CDN service user end is generated, receiving a communication establishment instruction and a data transmission instruction sent by a CDN service provider through the agent program, wherein the communication establishment instruction comprises a matching communication mode between a CDN node and a CDN service user end matched with the CDN node;
establishing communication with the paired CDN service using end based on a communication mode in the instruction according to the communication establishing instruction;
according to the data transmission instruction, data transmission is carried out on the CDN service using end which establishes communication;
the matching communication mode is determined by the CDN service provider through the following modes: the method comprises the steps that at least one available communication mode of each CDN node and each CDN service using end is predetermined through the agent program, and the matched communication mode between the paired CDN node and the CDN service using end is determined through the at least one available communication mode acquired in advance.
7. The method of claim 6, wherein after receiving the data deployed by the CDN service provider, further comprising:
and reporting the position information and the available communication mode of the equipment to the CDN service provider.
8. The method of claim 6, wherein the communication means comprises short-range wireless communication means or local area network communication means.
9. The method of claim 6, wherein the CDN node is a mobile device, and the mobile device is a vehicle-mounted terminal of a motor vehicle, a vehicle-mounted terminal of a shared bicycle, or an intelligent terminal carried by a user.
10. A service implementation apparatus for a content delivery network, configured at a content delivery network CDN service provider, the apparatus comprising:
the CDN node deployment module is used for deploying data required to be transmitted by CDN service to at least one CDN node;
the communication mode determining module is used for determining a communication mode matched between each paired CDN node and the CDN service using end through at least one available communication mode of each CDN node and each CDN service using end which are obtained in advance when the CDN service using end needs to access data deployed on the CDN nodes;
the control module is used for controlling the paired CDN node and the CDN service using end to transmit data through the determined communication mode;
the device further comprises:
the available communication mode pre-determining module is used for pre-determining at least one available communication mode of each CDN node and each CDN service using end through agent programs deployed on the CDN nodes and the CDN service using ends;
correspondingly, the control module is specifically configured to:
the method comprises the steps that agent programs deployed on CDN nodes and CDN service using ends respectively send communication establishing instructions and data transmission instructions to the paired CDN nodes and CDN service using ends to control the paired CDN nodes and CDN service using ends to carry out data transmission in a determined communication mode.
11. A service implementation apparatus for a content delivery network is configured at a content delivery network CDN node, where both the content delivery network CDN node and a CDN service user side are deployed with an agent program, and the apparatus includes:
the data receiving module is used for receiving data deployed by the CDN service provider;
the data transmission module is used for transmitting data to the CDN service using end matched with the available communication mode based on the matched communication mode when the data transmission requirement of the CDN service using end is generated;
the data transmission module specifically comprises:
the instruction receiving unit is used for receiving a communication establishment instruction and a data transmission instruction sent by the CDN service provider through the agent program when a data transmission requirement of a CDN service user end is generated, wherein the communication establishment instruction comprises a matching communication mode between a CDN node and a CDN service user end matched with the CDN node;
the communication establishing unit is used for establishing communication with the paired CDN service using end based on a communication mode in the instruction according to the communication establishing instruction;
the data transmission unit is used for transmitting data to the CDN service using end establishing communication according to the data transmission instruction;
the matching communication mode is determined by the CDN service provider through the following modes: and determining at least one available communication mode of each CDN node and each CDN service using end in advance through the agent program, and determining a matched communication mode between the paired CDN node and the CDN service using end through the at least one available communication mode obtained in advance.
12. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the service implementation method of the content distribution network of any one of claims 1-5 or the service implementation method of the content distribution network of any one of claims 6-9.
13. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a service implementation method of a content distribution network according to any one of claims 1 to 5, or to carry out a service implementation method of a content distribution network according to any one of claims 6 to 9.
CN201910238034.7A 2019-03-27 2019-03-27 Method, device, equipment and storage medium for realizing service of content distribution network Active CN109981778B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910238034.7A CN109981778B (en) 2019-03-27 2019-03-27 Method, device, equipment and storage medium for realizing service of content distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910238034.7A CN109981778B (en) 2019-03-27 2019-03-27 Method, device, equipment and storage medium for realizing service of content distribution network

Publications (2)

Publication Number Publication Date
CN109981778A CN109981778A (en) 2019-07-05
CN109981778B true CN109981778B (en) 2022-09-02

Family

ID=67080945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910238034.7A Active CN109981778B (en) 2019-03-27 2019-03-27 Method, device, equipment and storage medium for realizing service of content distribution network

Country Status (1)

Country Link
CN (1) CN109981778B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11765039B2 (en) * 2020-08-13 2023-09-19 Grass Valley Canada System and method for optimizing deployment of a processing function in a media production workflow
CN113726843B (en) * 2021-07-13 2024-03-12 阿里巴巴新加坡控股有限公司 Edge cloud system, data transmission method, device and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223610B (en) * 2011-06-15 2016-02-10 Tcl集团股份有限公司 Method and the mobile device of exchanges data is carried out between mobile device
FR2994516B1 (en) * 2012-08-08 2014-08-22 Sagemcom Broadband Sas DEVICE AND METHOD FOR PROVIDING SERVICES IN A COMMUNICATION NETWORK
CN104539596A (en) * 2014-12-18 2015-04-22 华为技术有限公司 Method, device and system for streaming media transmission
CN106034330B (en) * 2015-03-17 2019-08-02 网宿科技股份有限公司 Mobile terminal flow processing method, apparatus and system based on content distributing network
CN104702625B (en) * 2015-03-31 2018-04-13 北京奇艺世纪科技有限公司 Access request dispatching method and device in a kind of CDN network
CN105978942A (en) * 2016-04-27 2016-09-28 北京大有中城科技有限公司 Fragmented CDN network
CN107197039B (en) * 2017-06-30 2019-08-09 郑州云海信息技术有限公司 A kind of PAAS platform service packet distribution method and system based on CDN
CN109218430A (en) * 2018-09-26 2019-01-15 深圳市网心科技有限公司 A kind of video file transfer method, system and electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109981778A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
CN109936587B (en) Control method, control device, electronic apparatus, and storage medium
US8762544B2 (en) Selectively communicating data of a peripheral device to plural sending computers
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
CN112019625B (en) Websocket-based message pushing method, system, device and medium
KR101735102B1 (en) Method and appatus for providing application service in mobile communication system
JP2000289583A (en) Method and system for executing vehicle diagnosis
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN109743381B (en) Long connection interaction method and device for client and server
CN110781373B (en) List updating method and device, readable medium and electronic equipment
WO2023000888A1 (en) Cloud application implementing method and apparatus, electronic device, and storage medium
JP2023518780A (en) INTERACTION METHOD, APPARATUS AND ELECTRONICS
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
CN111314433A (en) Message transmission method and device and electronic equipment
CN111597024B (en) Cross-domain cluster processing method and device, electronic equipment and storage medium
CN110996372B (en) Message routing method, device and system and electronic equipment
CN112055251A (en) Media data playing method, device, equipment and storage medium
CN101138215B (en) Asynchronous network stack operation in an operating system independent environment
CN110618768B (en) Information presentation method and device
US8725856B2 (en) Discovery of network services
CN112689012A (en) Cross-network proxy communication method and device
WO2023051315A1 (en) Application control method and apparatus, electronic device, and storage medium
CN115022106B (en) Group information processing method, device, equipment and medium
CN115587860A (en) Service processing method, device, storage medium and electronic equipment
CN114390485A (en) Data transmission method 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
GR01 Patent grant
GR01 Patent grant