WO2023123532A1 - Cdn node-based content pushing method and apparatus - Google Patents

Cdn node-based content pushing method and apparatus Download PDF

Info

Publication number
WO2023123532A1
WO2023123532A1 PCT/CN2022/070173 CN2022070173W WO2023123532A1 WO 2023123532 A1 WO2023123532 A1 WO 2023123532A1 CN 2022070173 W CN2022070173 W CN 2022070173W WO 2023123532 A1 WO2023123532 A1 WO 2023123532A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
client
cdn node
source
request
Prior art date
Application number
PCT/CN2022/070173
Other languages
French (fr)
Chinese (zh)
Inventor
孙涛
Original Assignee
江苏云工场信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 江苏云工场信息技术有限公司 filed Critical 江苏云工场信息技术有限公司
Publication of WO2023123532A1 publication Critical patent/WO2023123532A1/en

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
    • 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/55Push-based network services
    • 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Definitions

  • This application requests protection of a data back-to-source technology, and in particular relates to a CDN node-based content push method.
  • the present application also relates to a CDN node-based content pushing device.
  • CDN Content Distribution Network
  • a layer of intelligent virtual network based on the existing Internet is formed by placing CDN node servers all over the network.
  • the CDN system can respond in real time according to the network traffic, the connection of each node, the load status, and the distance to the user.
  • Comprehensive information such as time redirects the user's request to the service node closest to the user. Its purpose is to enable users to obtain the required content nearby, solve the congestion situation of the Internet network, and improve the response speed of users' access to websites.
  • the current CDN node’s response to the client is based on the client’s request.
  • the CDN node needs to request data from the source server for each client request, resulting in excessive load pressure on the original server and adverse consequences of data delay. Reduce the user's Internet experience.
  • the present application also relates to a CDN node-based content pushing device.
  • This application provides a method for pushing content based on CDN nodes, including:
  • the source server obtains a CDN node list, sends the source data to each of the CDN nodes according to the node list, and stores the source data;
  • the CDN node obtains the data request of the client, identifies the device type of the client according to the data request, and adjusts the source data to easy-to-view data according to the device type of the user;
  • the viewable data in the data cache is retrieved and sent to any client.
  • the CDN node When the CDN node receives the data request from the client, if the easy-to-view data is not found, it calls the stored source data, and adjusts the source data to the easy-to-view data according to the device type of the client. view data;
  • the source data expires or cannot be retrieved, request the source data from the upper-level CDN node according to the data request;
  • the source data expires at the upper-level CDN node or cannot be retrieved, request the source data from the source server according to the data request.
  • the device type includes: screen size, screen pixels, and screen aspect ratio.
  • the user end includes: a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch.
  • the present application also provides a CDN node-based content push device, including:
  • a data distribution module used for the source server to obtain a CDN node list, send source data to each of the CDN nodes according to the node list and store the source data;
  • the data processing module is used for the CDN node to obtain the data request of the client, identify the device type of the client according to the data request, and adjust the source data into easy-to-view data according to the device type of the user;
  • a data caching module configured to send the viewable data to the client, and store the viewable data into the CDN node data cache;
  • the data sending module is configured to call the easily viewable data in the data cache and send it to any client when receiving a data request from any client of the same device type.
  • the data processing module also includes:
  • the CDN node When the CDN node receives the data request from the client, if the easy-to-view data is not found, it calls the stored source data, and adjusts the source data to the specified source data according to the device type of the client. easy to view data;
  • a data sending module configured to send the easy-to-view data to the client.
  • the data processing module also includes
  • a data back-to-source unit configured to request the source data from the upper-level CDN node according to the data request if the source data expires or cannot be retrieved;
  • the source data expires at the upper-level CDN node or cannot be retrieved, request the source data from the source server according to the data request.
  • the device type includes: screen size, screen pixels, and screen aspect ratio.
  • the user end includes: a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch.
  • the present application provides a content push method based on CDN nodes, comprising: the source server obtains a CDN node list, sends source data to each of the CDN nodes according to the node list and stores the source data; the CDN node Obtaining the data request of the user terminal, identifying the device type of the user terminal according to the data request, adjusting the source data into easy-to-view data according to the user's device type; sending the easy-to-view data to the user terminal, and The easy-to-view data is stored in the CDN node data cache; when any client data request of the same device type is received, the easy-to-view data in the data cache is called and sent to any client .
  • This application stores the source data that has been processed to directly call the easy-to-observe data when there is client source data of the same device type, which greatly reduces the number of data requests, relieves the load on the source server and can improve The speed at which users obtain data improves user experience.
  • Figure 1 is a flow chart of content push based on CDN nodes in this application.
  • Fig. 2 is a flow chart of defining the scope of active transmission of source data in this application.
  • FIG. 3 is a schematic diagram of a CDN node-based content pushing device in this application.
  • the present application provides a content push method based on CDN nodes, comprising: the source server obtains a CDN node list, sends source data to each of the CDN nodes according to the node list and stores the source data; the CDN node Obtaining the data request of the user terminal, identifying the device type of the user terminal according to the data request, adjusting the source data into easy-to-view data according to the user's device type; sending the easy-to-view data to the user terminal, and The easy-to-view data is stored in the CDN node data cache; when any client data request of the same device type is received, the easy-to-view data in the data cache is called and sent to any client .
  • This application stores the source data that has been processed to directly call the easy-to-observe data when there is client source data of the same device type, which greatly reduces the number of data requests, relieves the load on the source server and can improve The speed at which users obtain data improves user experience.
  • Figure 1 is a flow chart of content push based on CDN nodes in this application.
  • the source server obtains a CDN node list, sends source data to each of the CDN nodes according to the node list, and stores the source data.
  • the CDN node includes a first-level CDN node and a second-level CDN node, the first-level CDN node is connected to the second-level CDN node and the source server, and obtains source data in the source server, and sends the source data to the second-level CDN node middle.
  • the secondary CDN node is connected to the user end, receives the user's data request and sends source data to the user end according to the data request.
  • the source data is obtained after data processing is performed on the source data requested by the CDN node server.
  • the source server actively distributes the data to the first-level CDN node and the second-level CDN node, and stores the data in the first-level CDN node and the second-level CDN node.
  • the CDN node server in this application is configured to obtain a storage area from a storage dedicated to storing the source data, including adding an independent source data storage, or setting a source data storage partition in the original storage of the CDN node .
  • the active distribution of data to the first-level CDN node to obtain the second-level CDN node is determined according to the frequency of data usage at each CDN node.
  • the data usage frequency refers to the data of each type being acquired by the client within a period of time. times.
  • a preferred method is that the data usage frequency is the number of times data is requested within the next preset time period after the data is requested by the first client, and the number of requests can be for a second
  • the statistics of the level CDN nodes can also be the statistics of multiple CDN nodes.
  • the area range for sending the data can be processed according to the content type of the data.
  • Fig. 2 is a flow chart of defining the scope of active transmission of source data in this application.
  • S201 acquires data content type.
  • the content type of the data is determined by content information, and the content information includes data title, content summary and keywords.
  • the data content information is marked by the data uploader when the data is uploaded, and the content information may be a fixed option selection or a custom content information.
  • the content type of the data determined according to the content information includes: art, music, physics, American style, singing and dancing, etc., and those skilled in the art can set the content type according to the specific application environment.
  • S202 Determine the regional interest index according to the content type.
  • the area interest index refers to whether the data will be requested in large quantities in an area.
  • the user terminal is divided into areas, which are marked as areas A, B, C, D, ..., N. Then get the rating for each content type for each zone, calculated as follows:
  • the W is the number of times data is acquired within a preset time period
  • the Z is a constant
  • the M is the number of secondary CDN nodes in the area
  • the K is a fixed coefficient
  • the P n is the content type score for the nth region.
  • the determination method of Z is that the average number of requests received by each secondary CDN within the preset time period does not generate a critical value of load pressure on the source server load, and the determination method of K is that KM is greater than the two The maximum number of data requests for a second-level CDN node within a preset time period.
  • the source server when the P n is higher than the preset score, the source server actively sends the source data to the CDN node in the corresponding area, and stores the source data in the CDN node.
  • the CDN node acquires the data request from the client, identifies the device type of the client according to the data request, and adjusts the source data into easy-to-view data according to the device type of the user.
  • the easy-to-view data refers to the data that the user can easily view through the terminal equipment, and the easy-to-view data is determined according to the device type of the user end, and the device type refers to a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch Wait for their display type.
  • the display type includes screen size, which indicates the size of the displayable area; screen pixels, which indicates the resolution of the display area; screen aspect ratio, which indicates the length and width distance of the data difference display.
  • the CDN node that receives the data request from the client is a secondary CDN node, and the secondary CDN node adjusts the source data to easy-to-view data according to the display type of the client.
  • a preferred implementation method is to re-cut or layout the source data according to the display type to adapt to the display type, for example: if the source data is picture data, then the picture data will be edited according to the display type Cropping to be suitable for viewing by the client; if the source data is graphics and text, rearranging the arrangement of the pictures to be suitable for viewing by the client, and generating easy-to-view data after processing the source data.
  • S103 sends the viewable data to the client, and stores the viewable data into the CDN node data cache.
  • the easy-to-view data After the easy-to-view data is generated, the easy-to-view data will be sent to the client corresponding to the request information for processing by the user. Before that, the observable data will be cached for a long time to be provided to other client requests.
  • the relationship between the client and the secondary CDN node is that a secondary CDN node is connected to multiple client terminals, and each client terminal may be of the same type or of a different type.
  • the easy-to-view data may also be requested by other user ends, so it is necessary to store the easy-to-view data, but the memory of the CDN node is limited, so
  • the secondary CDN node is bound to the client to a certain extent, that is, a common client table is established in the CDN node, and the common client table records each client that has requested data from the CDN node , and record the display type of the user terminal, and cache the corresponding easy-to-view data according to the display type corresponding to the common user terminal table.
  • S104 when receiving any client data request of the same type of device, retrieve the easily viewable data in the data cache and send it to any client.
  • the cached data can be retrieved and sent to the client.
  • the CDN node receives the data request from the client , if the easy-to-view data is not found, the stored source data is called, and the source data is adjusted to the easy-to-view data according to the device type of the user end; the easy-to-view data is sent to the user end .
  • the cached data is invalid, expired or cannot be retrieved, the source data stored by the CDN node is extracted, and the source data is re-edited to generate easy-to-view data and sent to the client.
  • the source data is obtained from the upper-level CDN node of the secondary CDN node. If the source data cannot be found in the secondary CDN node, the source data is obtained from the source server.
  • the source server is the most fundamental server of the CDN system and must have the source data.
  • the present application also provides a content pushing device based on a CDN node, including: a data distribution module 301 , a data processing module 302 , a data caching module 303 , and a data sending module 304 .
  • FIG. 3 is a schematic diagram of a CDN node-based content pushing device in this application.
  • the data distribution module 301 is used for the source server to obtain a CDN node list, send source data to each of the CDN nodes according to the node list, and store the source data.
  • the CDN node includes a first-level CDN node and a second-level CDN node, the first-level CDN node is connected to the second-level CDN node and the source server, and obtains source data in the source server, and sends the source data to the second-level CDN node middle.
  • the secondary CDN node is connected to the user end, receives the user's data request and sends source data to the user end according to the data request.
  • the source data is obtained after data processing is performed on the source data requested by the CDN node server.
  • the source server actively distributes the data to the first-level CDN node and the second-level CDN node, and stores the data in the first-level CDN node and the second-level CDN node.
  • the CDN node server in this application is configured to obtain a storage area from a storage dedicated to storing the source data, including adding an independent source data storage, or setting a source data storage partition in the original storage of the CDN node .
  • the active distribution of data to the first-level CDN node to obtain the second-level CDN node is determined according to the frequency of data usage at each CDN node.
  • the data usage frequency refers to the data of each type being acquired by the client within a period of time. times.
  • a preferred method is that the data usage frequency is the number of times data is requested within the next preset time period after the data is requested by the first client, and the number of requests can be for a second
  • the statistics of the level CDN nodes can also be the statistics of multiple CDN nodes.
  • the area range for sending the data can be processed according to the content type of the data.
  • S201 acquires data content type.
  • the content type of the data is determined by content information, and the content information includes data title, content summary and keywords.
  • the data content information is marked by the data uploader when the data is uploaded, and the content information may be a fixed option selection or a custom content information.
  • the content type of the data determined according to the content information includes: art, music, physics, American style, singing and dancing, etc., and those skilled in the art can set the content type according to the specific application environment.
  • S202 Determine the regional interest index according to the content type.
  • the area interest index refers to whether the data will be requested in large quantities in an area.
  • the user terminal is divided into areas, which are marked as areas A, B, C, D, ..., N. Then get the rating for each content type for each zone, calculated as follows:
  • the W is the number of times data is acquired within a preset time period
  • the Z is a constant
  • the M is the number of secondary CDN nodes in the area
  • the K is a fixed coefficient
  • the P n is the content type score for the nth region.
  • the determination method of Z is that the average number of requests received by each secondary CDN within the preset time period does not generate a critical value of load pressure on the source server load, and the determination method of K is that KM is greater than the two The maximum number of data requests for a second-level CDN node within a preset time period.
  • the source server when the P n is higher than the preset score, the source server actively sends the source data to the CDN node in the corresponding area, and stores the source data in the CDN node.
  • the data processing module 302 is used for the CDN node to obtain the data request of the user end, identify the device type of the user end according to the data request, and adjust the source data to easy according to the user's device type. View data.
  • the easy-to-view data refers to the data that the user can easily view through the terminal equipment, and the easy-to-view data is determined according to the device type of the user end, and the device type refers to a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch Wait for their display type.
  • the display type includes screen size, which indicates the size of the displayable area; screen pixels, which indicates the resolution of the display area; screen aspect ratio, which indicates the length and width distance of the data difference display.
  • the CDN node that receives the data request from the client is a secondary CDN node, and the secondary CDN node adjusts the source data to easy-to-view data according to the display type of the client.
  • a preferred implementation method is to re-cut or layout the source data according to the display type to adapt to the display type, for example: if the source data is picture data, then the picture data will be edited according to the display type Cropping to be suitable for viewing by the client; if the source data is graphics and text, rearranging the arrangement of the pictures to be suitable for viewing by the client, and generating easy-to-view data after processing the source data.
  • the data caching module 303 is configured to send the viewable data to the client, and store the viewable data in the CDN node data cache.
  • the easy-to-view data After the easy-to-view data is generated, the easy-to-view data will be sent to the client corresponding to the request information for processing by the user. Before that, the observable data will be cached for a long time to be provided to other client requests.
  • the relationship between the client and the secondary CDN node is that a secondary CDN node is connected to multiple client terminals, and each client terminal may be of the same type or of a different type.
  • the easy-to-view data may also be requested by other user ends, so it is necessary to store the easy-to-view data, but the memory of the CDN node is limited, so
  • the secondary CDN node is bound to the client to a certain extent, that is, a common client table is established in the CDN node, and the common client table records each client that has requested data from the CDN node , and record the display type of the user terminal, and cache the corresponding easy-to-view data according to the display type corresponding to the common user terminal table.
  • the data sending module 304 is configured to call the easily viewable data in the data cache and send it to any client when receiving a data request from any client of the same device type.
  • the cached data can be retrieved and sent to the client.
  • the CDN node receives the data request from the client , if the easy-to-view data is not found, the stored source data is called, and the source data is adjusted to the easy-to-view data according to the device type of the user end; the easy-to-view data is sent to the user end .
  • the cached data is invalid, expired or cannot be retrieved, the source data stored by the CDN node is extracted, and the source data is re-edited to generate easy-to-view data and sent to the client.
  • the source data is obtained from the upper-level CDN node of the secondary CDN node. If the source data cannot be found in the secondary CDN node, the source data is obtained from the source server.
  • the source server is the most fundamental server of the CDN system and must have the source data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present application provides a CDN node-based content pushing method and apparatus. The method comprises: a source server acquires a node list of a CDN, sends source data to each CDN node according to the node list and stores the source data; the CDN node acquires a data request of a user side, identifies the device type of the user side according to the data request, and adjusts the source data into easy-to-check data according to the device type of the user side; the easy-to-check data is sent to the user side and stored into the CDN node data cache; and when a data request of any user side having the same device type is received, the easy-to-check data in the data cache is called and sent to the user side. In the present application, the processed source data is stored, the easy-to-check data is directly called when a user side having the same device type requests the source data, the data request frequency is reduced, the load of the source server is relieved, and the data acquisition speed of a user is improved.

Description

一种基于CDN节点的内容推送方法以及装置A content push method and device based on CDN nodes 技术领域technical field
本申请请求保护一种数据回源技术,尤其涉及一种基于CDN节点的内容推送方法。本申请还涉及一种基于CDN节点的内容推送装置。This application requests protection of a data back-to-source technology, and in particular relates to a CDN node-based content push method. The present application also relates to a CDN node-based content pushing device.
背景技术Background technique
CDN(内容分发网络)的原理和作用是避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快且更稳定。通过在网络各处放置CDN节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络,CDN系统能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的服务节点上。其目的是使用户可就近取得所需内容,解决Internet网络拥挤的状况,提高用户访问网站的响应速度。The principle and function of CDN (Content Distribution Network) is to avoid bottlenecks and links on the Internet that may affect the speed and stability of data transmission, so as to make content transmission faster and more stable. A layer of intelligent virtual network based on the existing Internet is formed by placing CDN node servers all over the network. The CDN system can respond in real time according to the network traffic, the connection of each node, the load status, and the distance to the user. Comprehensive information such as time redirects the user's request to the service node closest to the user. Its purpose is to enable users to obtain the required content nearby, solve the congestion situation of the Internet network, and improve the response speed of users' access to websites.
但是,目前CDN节点对用户端的响应是根据用户端的请求开始的,此时CDN节点需要针对每个用户端请求向源服务器进行数据请求,导致原服务器负载压力过大,产生数据延迟的不良后果,降低了用户的互联网体验。However, the current CDN node’s response to the client is based on the client’s request. At this time, the CDN node needs to request data from the source server for each client request, resulting in excessive load pressure on the original server and adverse consequences of data delay. Reduce the user's Internet experience.
发明内容Contents of the invention
为了缓解源服务器的网络负载压力大的问题,一种基于CDN节点的内容推送方法。本申请还涉及一种基于CDN节点的内容推送装置。In order to alleviate the problem of high network load pressure on the source server, a content push method based on CDN nodes. The present application also relates to a CDN node-based content pushing device.
本申请提供一种基于CDN节点的内容推送方法,包括:This application provides a method for pushing content based on CDN nodes, including:
源服务器获取CDN的节点列表,根据所述节点列表将源数据发送到每个所述CDN节点并存储所述源数据;The source server obtains a CDN node list, sends the source data to each of the CDN nodes according to the node list, and stores the source data;
所述CDN节点获取用户端的数据请求,根据所述数据请求识别所述用户端的设备类型,将所述源数据根据用户的设备类型调整为易察看数据;The CDN node obtains the data request of the client, identifies the device type of the client according to the data request, and adjusts the source data to easy-to-view data according to the device type of the user;
将所述易察看数据发送到所述用户端,并将所述易察看数据存储到所述CDN节点数据缓存中;sending the viewable data to the client, and storing the viewable data in the CDN node data cache;
当接收到相同所述设备类型的任一用户端数据请求则调取所述数据缓存中的易察看数据发送到所述任一用户端。When any client data request of the same device type is received, the viewable data in the data cache is retrieved and sent to any client.
可选的,还包括:Optionally, also include:
所述CDN节点当接收到所述用户端的数据请求时,若未查找到所述易察看数据,则调取存储的所述源数据,将所述源数据根据用户端的设备类型调整为所述易察看数据;When the CDN node receives the data request from the client, if the easy-to-view data is not found, it calls the stored source data, and adjusts the source data to the easy-to-view data according to the device type of the client. view data;
将所述易察看数据发送到用户端。Sending the viewable data to the client.
可选的,所述源数据若过期或取无法命中,则根据所述数据请求向上级CDN节点请求所述源数据;Optionally, if the source data expires or cannot be retrieved, request the source data from the upper-level CDN node according to the data request;
若所述源数据在所述上级CDN节点过期或取无法命中则根据所述数据请求向所述源服务器请求所述源数据。If the source data expires at the upper-level CDN node or cannot be retrieved, request the source data from the source server according to the data request.
可选的,所述设备类型包括:屏幕尺寸、屏幕像素、屏幕的长宽比例。Optionally, the device type includes: screen size, screen pixels, and screen aspect ratio.
可选的,所述用户端包括:手机、平板、电脑、智能眼镜、投影仪或者智能手表。Optionally, the user end includes: a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch.
本申请还提供一种基于CDN节点的内容推送装置,包括:The present application also provides a CDN node-based content push device, including:
数据分发模块,用于源服务器获取CDN的节点列表,根据所述节点列表将源数据发送到每个所述CDN节点并存储所述源数据;A data distribution module, used for the source server to obtain a CDN node list, send source data to each of the CDN nodes according to the node list and store the source data;
数据处理模块,用于所述CDN节点获取用户端的数据请求,根据所述数据请求识别所述用户端的设备类型,将所述源数据根据用户的设备类型调整为易察看数据;The data processing module is used for the CDN node to obtain the data request of the client, identify the device type of the client according to the data request, and adjust the source data into easy-to-view data according to the device type of the user;
数据缓存模块,用于将所述易察看数据发送到所述用户端,并将所述易察看数据存储到所述CDN节点数据缓存中;A data caching module, configured to send the viewable data to the client, and store the viewable data into the CDN node data cache;
数据发送模块,用于当接收到相同所述设备类型的任一用户端数据请求则调取所述数据缓存中的易察看数据发送到所述任一用户端。The data sending module is configured to call the easily viewable data in the data cache and send it to any client when receiving a data request from any client of the same device type.
可选的,所述数据处理模块还包括:Optionally, the data processing module also includes:
用于所述CDN节点当接收到所述用户端的数据请求时,若未查找到所述易察看数据,则调取存储的所述源数据,将所述源数据根据用户端的设备类型调整为所述易察看数据;When the CDN node receives the data request from the client, if the easy-to-view data is not found, it calls the stored source data, and adjusts the source data to the specified source data according to the device type of the client. easy to view data;
数据发送模块,用于将所述易察看数据发送到用户端。A data sending module, configured to send the easy-to-view data to the client.
可选的,所述数据处理模块还包括Optionally, the data processing module also includes
数据回源单元,用于所述源数据若过期或取无法命中,则根据所述数据请求向上级CDN节点请求所述源数据;A data back-to-source unit, configured to request the source data from the upper-level CDN node according to the data request if the source data expires or cannot be retrieved;
若所述源数据在所述上级CDN节点过期或取无法命中则根据所述数据请求向所述源服务器请求所述源数据。If the source data expires at the upper-level CDN node or cannot be retrieved, request the source data from the source server according to the data request.
可选的,所述设备类型包括:屏幕尺寸、屏幕像素、屏幕的长宽比例。Optionally, the device type includes: screen size, screen pixels, and screen aspect ratio.
可选的,所述用户端包括:手机、平板、电脑、智能眼镜、投影仪或者智能手表。Optionally, the user end includes: a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch.
本申请相较于现有技术的优点是:The advantages of the present application compared with the prior art are:
本申请提供一种基于CDN节点的内容推送方法,包括:源服务器获取CDN的节点列表,根据所述节点列表将源数据发送到每个所述CDN节点并存储所述源数据;所述CDN节点获取用户端的数据请求,根据所述数据请求识别所述用户端的设备类型,将所述源数据根据用户的设备类型调整为易察看数据;将所述易察看数据发送到所述用户端,并将所述易察看数据存储到所述CDN节点数据缓存中;当接收到相同所述设备类型的任一用户端数据请求则调取所述数据缓存中的易察看数据发送到所述任一用户端。本申请通过存储已处理过的源数据,以实现当有相同设备类型的用户端源数据时直接调用所述易观察数据,极大的降低了数据请求次数,缓解了源服务器负载的同时能够提升用户获取数据的速度,提高用户体验。The present application provides a content push method based on CDN nodes, comprising: the source server obtains a CDN node list, sends source data to each of the CDN nodes according to the node list and stores the source data; the CDN node Obtaining the data request of the user terminal, identifying the device type of the user terminal according to the data request, adjusting the source data into easy-to-view data according to the user's device type; sending the easy-to-view data to the user terminal, and The easy-to-view data is stored in the CDN node data cache; when any client data request of the same device type is received, the easy-to-view data in the data cache is called and sent to any client . This application stores the source data that has been processed to directly call the easy-to-observe data when there is client source data of the same device type, which greatly reduces the number of data requests, relieves the load on the source server and can improve The speed at which users obtain data improves user experience.
附图说明Description of drawings
图1是本申请中基于CDN节点的内容推送流程图。Figure 1 is a flow chart of content push based on CDN nodes in this application.
图2是本申请中源数据主动发送范围划定流程图。Fig. 2 is a flow chart of defining the scope of active transmission of source data in this application.
图3是本申请中基于CDN节点的内容推送装置示意图。FIG. 3 is a schematic diagram of a CDN node-based content pushing device in this application.
具体实施方式Detailed ways
以下内容均是为了详细说明本申请要保护的技术方案所提供的具体实施过程的示例,但是本申请还可以采用不同于此的描述的其他方式实施,本领域技术人员可以在本申请构思的指引下,采用不同的技术手段实现本申请,因此本申请不受下面具体实施例的限制。The following content is an example of the specific implementation process provided for the technical solution to be protected in this application in detail, but this application can also be implemented in other ways than the description here, and those skilled in the art can follow the guidelines of this application. Below, different technical means are used to realize the present application, so the present application is not limited by the following specific examples.
本申请提供一种基于CDN节点的内容推送方法,包括:源服务器获取CDN的节点列表,根据所述节点列表将源数据发送到每个所述CDN节点并存储所述源数据;所述CDN节点获取用户端的数据请求,根据所述数据请求识别所述用户端的设备类型,将所述源数据根据用户的设备类型调整为易察看数据;将所述易察看数据发送到所述用户端,并将所述易察看数据存储到所述CDN节点数据缓存中;当接收到相同所述设备类型的任一用户端数据请求则调取所述数据缓存中的易察看数据发送到所述任一用户端。本申请通过存储已处理过的源数据,以实现当有相同设备类型的用户端源数据时直接调用所述易观察数据,极大的降低了数据请求次数,缓解了源服务器负载的同时能够提升用户获取数据的速度,提高用户体验。The present application provides a content push method based on CDN nodes, comprising: the source server obtains a CDN node list, sends source data to each of the CDN nodes according to the node list and stores the source data; the CDN node Obtaining the data request of the user terminal, identifying the device type of the user terminal according to the data request, adjusting the source data into easy-to-view data according to the user's device type; sending the easy-to-view data to the user terminal, and The easy-to-view data is stored in the CDN node data cache; when any client data request of the same device type is received, the easy-to-view data in the data cache is called and sent to any client . This application stores the source data that has been processed to directly call the easy-to-observe data when there is client source data of the same device type, which greatly reduces the number of data requests, relieves the load on the source server and can improve The speed at which users obtain data improves user experience.
图1是本申请中基于CDN节点的内容推送流程图。Figure 1 is a flow chart of content push based on CDN nodes in this application.
请参照图1所示,S101源服务器获取CDN的节点列表,根据所述节点列表将源数据发送到每个所述CDN节点并存储所述源数据。Please refer to FIG. 1 , S101 The source server obtains a CDN node list, sends source data to each of the CDN nodes according to the node list, and stores the source data.
所述CDN节点包括一级CDN节点和二级CDN节点,所述一级CDN节点连接二级CDN节点和源服务器,并获取源服务器中的源数据,将所述源数据发送到二级CDN节点中。The CDN node includes a first-level CDN node and a second-level CDN node, the first-level CDN node is connected to the second-level CDN node and the source server, and obtains source data in the source server, and sends the source data to the second-level CDN node middle.
所述二级CDN节点连接用户端,并接收用户的数据请求和依据所述数据请求发送源数据到所述用户端。所述源数据向以及CDN节点服务器请求获取的源数据进行数据处理后获得的。The secondary CDN node is connected to the user end, receives the user's data request and sends source data to the user end according to the data request. The source data is obtained after data processing is performed on the source data requested by the CDN node server.
具体的,所述源服务器主动将数据分发到一级CDN节点和二级CDN节点,并在所述一级CDN节点和二级CDN节点进行存储。为实现此目的,本申请中所述CDN节点服务器设置由专门存储所述源数据的存储器获取存储区,包括增加独立的源数据存储器,或者在所述CDN节点的原存储其中设置源数据存储分区。Specifically, the source server actively distributes the data to the first-level CDN node and the second-level CDN node, and stores the data in the first-level CDN node and the second-level CDN node. To achieve this purpose, the CDN node server in this application is configured to obtain a storage area from a storage dedicated to storing the source data, including adding an independent source data storage, or setting a source data storage partition in the original storage of the CDN node .
所述主动将数据分发到一级CDN节点获取二级CDN节点是根据数据在每个CDN节点的使用频率确定的,本申请中数据使用频率是指一段时间内每个类型的数据被用户端获取的次数。The active distribution of data to the first-level CDN node to obtain the second-level CDN node is determined according to the frequency of data usage at each CDN node. In this application, the data usage frequency refers to the data of each type being acquired by the client within a period of time. times.
一种优选的方法是,所述数据使用频率是,当所述数据被第一个用户端请求后,在接下来的预设时间段内数据被请求次数,所述请求次数可以是对一个二级CDN节点的统计,也可以多个CDN节点的统计。A preferred method is that the data usage frequency is the number of times data is requested within the next preset time period after the data is requested by the first client, and the number of requests can be for a second The statistics of the level CDN nodes can also be the statistics of multiple CDN nodes.
当该请求次数超过预设请求次数时则判断所述数据应当主动由源服务器向各个CDN节点发送。优选的,所述发送所述数据的区域范围可以根据数据的内容类型进行处理。When the number of requests exceeds the preset number of requests, it is determined that the data should be actively sent by the source server to each CDN node. Preferably, the area range for sending the data can be processed according to the content type of the data.
图2是本申请中源数据主动发送范围划定流程图。Fig. 2 is a flow chart of defining the scope of active transmission of source data in this application.
请参照图2所示,S201获取数据内容类型。Please refer to FIG. 2 , S201 acquires data content type.
所述数据的内容类型由内容信息确定,所述内容信息包括,数据标题、内容摘要以及关键词。所述数据内容信息是数据上传者在数据上传时标记的,该内容信息可以是固定的选项选择,也可以是自定义内容信息。根据所述内容信息确定所述数据的内容类型包括:美术、音乐、物理、美式、歌舞等,所述内容类型本领域技术人员可以根据具体的应用环境进行设置。The content type of the data is determined by content information, and the content information includes data title, content summary and keywords. The data content information is marked by the data uploader when the data is uploaded, and the content information may be a fixed option selection or a custom content information. The content type of the data determined according to the content information includes: art, music, physics, American style, singing and dancing, etc., and those skilled in the art can set the content type according to the specific application environment.
S202根据所述内容类型判断区域兴趣指数。S202 Determine the regional interest index according to the content type.
所述区域兴趣指数是指所述数据在一个区域是否会被大量请求。优选的,根据地理环境,将所述用户端进行区域划分,标记为区域A、B、C、D、……、N。然后获取每个区域的每个内容类型的评分,所述评分的计算方式如下:The area interest index refers to whether the data will be requested in large quantities in an area. Preferably, according to the geographical environment, the user terminal is divided into areas, which are marked as areas A, B, C, D, ..., N. Then get the rating for each content type for each zone, calculated as follows:
Figure PCTCN2022070173-appb-000001
Figure PCTCN2022070173-appb-000001
其中,所述W是数据在预设时间段内被获取的次数,所述Z是一个常数,所述M是区域内二级CDN节点数量,所述K是一个固定的系数,所述P n是第n个区域的内容类型评分。 Wherein, the W is the number of times data is acquired within a preset time period, the Z is a constant, the M is the number of secondary CDN nodes in the area, the K is a fixed coefficient, and the P n is the content type score for the nth region.
所述Z的确定方法是每个所述二级CDN预设时间段内接收的平均请求次数对源服务器负载不产生负载压力的临界值,所述K的确定方法是,使得KM大于所述二级CDN二级节点预设时间段内最大数据请求次数。The determination method of Z is that the average number of requests received by each secondary CDN within the preset time period does not generate a critical value of load pressure on the source server load, and the determination method of K is that KM is greater than the two The maximum number of data requests for a second-level CDN node within a preset time period.
根据上述公式,所述P n高于预设评分时,源服务器主动发送源数据到对应区域内的CDN节点中,并在所述CDN节点中存储所述源数据。 According to the above formula, when the P n is higher than the preset score, the source server actively sends the source data to the CDN node in the corresponding area, and stores the source data in the CDN node.
请参照图1所示,S102所述CDN节点获取用户端的数据请求,根据所述数据请求识别所述用户端的设备类型,将所述源数据根据用户的设备类型调整为易察看数据。Please refer to FIG. 1 , in S102 the CDN node acquires the data request from the client, identifies the device type of the client according to the data request, and adjusts the source data into easy-to-view data according to the device type of the user.
所述易察看数据是指用户通过终端设备容易察看的数据,所述易察看数据是根据用户端的设备类型确定,所述设备类型是指,手机、平板、电脑、智能眼镜、投影仪或者智能手表等它们的显示类型。具体的,所述显示类型包括,屏幕尺寸,表明可显示区域的大小;屏幕像素,可表明显示区域清晰度;屏幕长宽比例,可表明数据差显示的长宽距离。The easy-to-view data refers to the data that the user can easily view through the terminal equipment, and the easy-to-view data is determined according to the device type of the user end, and the device type refers to a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch Wait for their display type. Specifically, the display type includes screen size, which indicates the size of the displayable area; screen pixels, which indicates the resolution of the display area; screen aspect ratio, which indicates the length and width distance of the data difference display.
接收所述用户端数据请求的CDN节点是二级CDN节点,所述二级CDN节点根据用户端的显示类型调整所述源数据为易察看数据。The CDN node that receives the data request from the client is a secondary CDN node, and the secondary CDN node adjusts the source data to easy-to-view data according to the display type of the client.
一种优选的实施方式是,根据所述显示类型对源数据进行重新裁剪或者排版以适应于所述显示类型,例如:若所述源数据为图片数据,则将所述图片数据根据显示类型进行裁剪,以适应于用户端观看;若所述源数据是图文,则将所述图片排布进行重新排列以适应于用户端观看,所述源数据经过处理后生成易察看数据。A preferred implementation method is to re-cut or layout the source data according to the display type to adapt to the display type, for example: if the source data is picture data, then the picture data will be edited according to the display type Cropping to be suitable for viewing by the client; if the source data is graphics and text, rearranging the arrangement of the pictures to be suitable for viewing by the client, and generating easy-to-view data after processing the source data.
请参照图1所示,S103将所述易察看数据发送到所述用户端,并将所述易察看数据存储到所述CDN节点数据缓存中。Referring to FIG. 1 , S103 sends the viewable data to the client, and stores the viewable data into the CDN node data cache.
当生成易察看数据后,所述易察看数据将被发送到请求信息对应的客户端供用户处理。在此之前,所述易察看数据将被长时间的缓存,以用于提供给其他用户端的请求。After the easy-to-view data is generated, the easy-to-view data will be sent to the client corresponding to the request information for processing by the user. Before that, the observable data will be cached for a long time to be provided to other client requests.
所述用户端和二级CDN节点的关系了一个二级CDN节点连接有多个用户端,每个用户端可以一样的类型,也可以是不同的类型。当一个用户端对一个数据请求,并获得所述易察看数据后,所述易察看数据还可能被其他用户端请求,因此需要进行易察看数据存储,但是CDN节点的内存是有限的,为此本申请中将二级CDN节点与用户端进行一定程度的绑定,即在所述CDN节点中建立常用用户端表,所述常用用户端表记录每一个向该CDN节点请求过数据的用 户端,并记录用户端的显示类型,根据所述常用用户端表对应的显示类型缓存对应的所述易察看数据。The relationship between the client and the secondary CDN node is that a secondary CDN node is connected to multiple client terminals, and each client terminal may be of the same type or of a different type. When a user end requests a data and obtains the easy-to-view data, the easy-to-view data may also be requested by other user ends, so it is necessary to store the easy-to-view data, but the memory of the CDN node is limited, so In this application, the secondary CDN node is bound to the client to a certain extent, that is, a common client table is established in the CDN node, and the common client table records each client that has requested data from the CDN node , and record the display type of the user terminal, and cache the corresponding easy-to-view data according to the display type corresponding to the common user terminal table.
请参照图1所示,S104当接收到相同所述设备类型的任一用户端数据请求则调取所述数据缓存中的易察看数据发送到所述任一用户端。Please refer to FIG. 1, S104, when receiving any client data request of the same type of device, retrieve the easily viewable data in the data cache and send it to any client.
在完成所述易察看数据的缓存后,当接收到相同设备类型的用户端的数据请求后,则可以进行缓存数据调取并发送给用户端,所述CDN节点当接收到所述用户端的数据请求时,若未查找到所述易察看数据,则调取存储的所述源数据,将所述源数据根据用户端的设备类型调整为所述易察看数据;将所述易察看数据发送到用户端。优选的,当所述缓存数据失效、过期或取无法命中,则提取所述CDN节点存储的源数据,并将所述源数据进行再次编辑生成易察看数据发送给用户端。若所述源数据在该二级CDN节点中无法命中,则从所述二级CDN节点的上级CDN节点中获取所述源数据。若所述二级CDN节点中无法命中所述源数据,则从所述源服务器中获取所述源数据,所述原服务器是所述CDN系统的最根本服务器,必定具有所述源数据。After completing the caching of the easy-to-view data, after receiving a data request from a client of the same device type, the cached data can be retrieved and sent to the client. When the CDN node receives the data request from the client , if the easy-to-view data is not found, the stored source data is called, and the source data is adjusted to the easy-to-view data according to the device type of the user end; the easy-to-view data is sent to the user end . Preferably, when the cached data is invalid, expired or cannot be retrieved, the source data stored by the CDN node is extracted, and the source data is re-edited to generate easy-to-view data and sent to the client. If the source data cannot be hit by the secondary CDN node, the source data is obtained from the upper-level CDN node of the secondary CDN node. If the source data cannot be found in the secondary CDN node, the source data is obtained from the source server. The source server is the most fundamental server of the CDN system and must have the source data.
本申请还提供一种基于CDN节点的内容推送装置,包括:数据分发模块301、数据处理模块302、数据缓存模块303、数据发送模块304。The present application also provides a content pushing device based on a CDN node, including: a data distribution module 301 , a data processing module 302 , a data caching module 303 , and a data sending module 304 .
图3是本申请中基于CDN节点的内容推送装置示意图。FIG. 3 is a schematic diagram of a CDN node-based content pushing device in this application.
请参照图3所示,数据分发模块301,用于源服务器获取CDN的节点列表,根据所述节点列表将源数据发送到每个所述CDN节点并存储所述源数据。Referring to FIG. 3 , the data distribution module 301 is used for the source server to obtain a CDN node list, send source data to each of the CDN nodes according to the node list, and store the source data.
所述CDN节点包括一级CDN节点和二级CDN节点,所述一级CDN节点连接二级CDN节点和源服务器,并获取源服务器中的源数据,将所述源数据发送到二级CDN节点中。The CDN node includes a first-level CDN node and a second-level CDN node, the first-level CDN node is connected to the second-level CDN node and the source server, and obtains source data in the source server, and sends the source data to the second-level CDN node middle.
所述二级CDN节点连接用户端,并接收用户的数据请求和依据所述数据请求发送源数据到所述用户端。所述源数据向以及CDN节点服务器请求获取的源数据进行数据处理后获得的。The secondary CDN node is connected to the user end, receives the user's data request and sends source data to the user end according to the data request. The source data is obtained after data processing is performed on the source data requested by the CDN node server.
具体的,所述源服务器主动将数据分发到一级CDN节点和二级CDN节点,并在所述一级CDN节点和二级CDN节点进行存储。为实现此目的,本申请中所述CDN节点服务器设置由专门存储所述源数据的存储器获取存储区,包括增 加独立的源数据存储器,或者在所述CDN节点的原存储其中设置源数据存储分区。Specifically, the source server actively distributes the data to the first-level CDN node and the second-level CDN node, and stores the data in the first-level CDN node and the second-level CDN node. To achieve this purpose, the CDN node server in this application is configured to obtain a storage area from a storage dedicated to storing the source data, including adding an independent source data storage, or setting a source data storage partition in the original storage of the CDN node .
所述主动将数据分发到一级CDN节点获取二级CDN节点是根据数据在每个CDN节点的使用频率确定的,本申请中数据使用频率是指一段时间内每个类型的数据被用户端获取的次数。The active distribution of data to the first-level CDN node to obtain the second-level CDN node is determined according to the frequency of data usage at each CDN node. In this application, the data usage frequency refers to the data of each type being acquired by the client within a period of time. times.
一种优选的方法是,所述数据使用频率是,当所述数据被第一个用户端请求后,在接下来的预设时间段内数据被请求次数,所述请求次数可以是对一个二级CDN节点的统计,也可以多个CDN节点的统计。A preferred method is that the data usage frequency is the number of times data is requested within the next preset time period after the data is requested by the first client, and the number of requests can be for a second The statistics of the level CDN nodes can also be the statistics of multiple CDN nodes.
当该请求次数超过预设请求次数时则判断所述数据应当主动由源服务器向各个CDN节点发送。优选的,所述发送所述数据的区域范围可以根据数据的内容类型进行处理。When the number of requests exceeds the preset number of requests, it is determined that the data should be actively sent by the source server to each CDN node. Preferably, the area range for sending the data can be processed according to the content type of the data.
请参照图2所示,S201获取数据内容类型。Please refer to FIG. 2 , S201 acquires data content type.
所述数据的内容类型由内容信息确定,所述内容信息包括,数据标题、内容摘要以及关键词。所述数据内容信息是数据上传者在数据上传时标记的,该内容信息可以是固定的选项选择,也可以是自定义内容信息。根据所述内容信息确定所述数据的内容类型包括:美术、音乐、物理、美式、歌舞等,所述内容类型本领域技术人员可以根据具体的应用环境进行设置。The content type of the data is determined by content information, and the content information includes data title, content summary and keywords. The data content information is marked by the data uploader when the data is uploaded, and the content information may be a fixed option selection or a custom content information. The content type of the data determined according to the content information includes: art, music, physics, American style, singing and dancing, etc., and those skilled in the art can set the content type according to the specific application environment.
S202根据所述内容类型判断区域兴趣指数。S202 Determine the regional interest index according to the content type.
所述区域兴趣指数是指所述数据在一个区域是否会被大量请求。优选的,根据地理环境,将所述用户端进行区域划分,标记为区域A、B、C、D、……、N。然后获取每个区域的每个内容类型的评分,所述评分的计算方式如下:The area interest index refers to whether the data will be requested in large quantities in an area. Preferably, according to the geographical environment, the user terminal is divided into areas, which are marked as areas A, B, C, D, ..., N. Then get the rating for each content type for each zone, calculated as follows:
Figure PCTCN2022070173-appb-000002
Figure PCTCN2022070173-appb-000002
其中,所述W是数据在预设时间段内被获取的次数,所述Z是一个常数,所述M是区域内二级CDN节点数量,所述K是一个固定的系数,所述P n是第n个区域的内容类型评分。 Wherein, the W is the number of times data is acquired within a preset time period, the Z is a constant, the M is the number of secondary CDN nodes in the area, the K is a fixed coefficient, and the P n is the content type score for the nth region.
所述Z的确定方法是每个所述二级CDN预设时间段内接收的平均请求次数对源服务器负载不产生负载压力的临界值,所述K的确定方法是,使得KM大于所述二级CDN二级节点预设时间段内最大数据请求次数。The determination method of Z is that the average number of requests received by each secondary CDN within the preset time period does not generate a critical value of load pressure on the source server load, and the determination method of K is that KM is greater than the two The maximum number of data requests for a second-level CDN node within a preset time period.
根据上述公式,所述P n高于预设评分时,源服务器主动发送源数据到对应区域内的CDN节点中,并在所述CDN节点中存储所述源数据。 According to the above formula, when the P n is higher than the preset score, the source server actively sends the source data to the CDN node in the corresponding area, and stores the source data in the CDN node.
请参照图3所示,数据处理模块302,用于所述CDN节点获取用户端的数据请求,根据所述数据请求识别所述用户端的设备类型,将所述源数据根据用户的设备类型调整为易察看数据。Please refer to FIG. 3, the data processing module 302 is used for the CDN node to obtain the data request of the user end, identify the device type of the user end according to the data request, and adjust the source data to easy according to the user's device type. View data.
所述易察看数据是指用户通过终端设备容易察看的数据,所述易察看数据是根据用户端的设备类型确定,所述设备类型是指,手机、平板、电脑、智能眼镜、投影仪或者智能手表等它们的显示类型。具体的,所述显示类型包括,屏幕尺寸,表明可显示区域的大小;屏幕像素,可表明显示区域清晰度;屏幕长宽比例,可表明数据差显示的长宽距离。The easy-to-view data refers to the data that the user can easily view through the terminal equipment, and the easy-to-view data is determined according to the device type of the user end, and the device type refers to a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch Wait for their display type. Specifically, the display type includes screen size, which indicates the size of the displayable area; screen pixels, which indicates the resolution of the display area; screen aspect ratio, which indicates the length and width distance of the data difference display.
接收所述用户端数据请求的CDN节点是二级CDN节点,所述二级CDN节点根据用户端的显示类型调整所述源数据为易察看数据。The CDN node that receives the data request from the client is a secondary CDN node, and the secondary CDN node adjusts the source data to easy-to-view data according to the display type of the client.
一种优选的实施方式是,根据所述显示类型对源数据进行重新裁剪或者排版以适应于所述显示类型,例如:若所述源数据为图片数据,则将所述图片数据根据显示类型进行裁剪,以适应于用户端观看;若所述源数据是图文,则将所述图片排布进行重新排列以适应于用户端观看,所述源数据经过处理后生成易察看数据。A preferred implementation method is to re-cut or layout the source data according to the display type to adapt to the display type, for example: if the source data is picture data, then the picture data will be edited according to the display type Cropping to be suitable for viewing by the client; if the source data is graphics and text, rearranging the arrangement of the pictures to be suitable for viewing by the client, and generating easy-to-view data after processing the source data.
请参照图3所示,数据缓存模块303,用于将所述易察看数据发送到所述用户端,并将所述易察看数据存储到所述CDN节点数据缓存中。Referring to FIG. 3 , the data caching module 303 is configured to send the viewable data to the client, and store the viewable data in the CDN node data cache.
当生成易察看数据后,所述易察看数据将被发送到请求信息对应的客户端供用户处理。在此之前,所述易察看数据将被长时间的缓存,以用于提供给其他用户端的请求。After the easy-to-view data is generated, the easy-to-view data will be sent to the client corresponding to the request information for processing by the user. Before that, the observable data will be cached for a long time to be provided to other client requests.
所述用户端和二级CDN节点的关系了一个二级CDN节点连接有多个用户端,每个用户端可以一样的类型,也可以是不同的类型。当一个用户端对一个数据请求,并获得所述易察看数据后,所述易察看数据还可能被其他用户端请求,因此需要进行易察看数据存储,但是CDN节点的内存是有限的,为此本申请中将二级CDN节点与用户端进行一定程度的绑定,即在所述CDN节点中建立常用用户端表,所述常用用户端表记录每一个向该CDN节点请求过数据的用 户端,并记录用户端的显示类型,根据所述常用用户端表对应的显示类型缓存对应的所述易察看数据。The relationship between the client and the secondary CDN node is that a secondary CDN node is connected to multiple client terminals, and each client terminal may be of the same type or of a different type. When a user end requests a data and obtains the easy-to-view data, the easy-to-view data may also be requested by other user ends, so it is necessary to store the easy-to-view data, but the memory of the CDN node is limited, so In this application, the secondary CDN node is bound to the client to a certain extent, that is, a common client table is established in the CDN node, and the common client table records each client that has requested data from the CDN node , and record the display type of the user terminal, and cache the corresponding easy-to-view data according to the display type corresponding to the common user terminal table.
请参照图3所示,数据发送模块304,用于当接收到相同所述设备类型的任一用户端数据请求则调取所述数据缓存中的易察看数据发送到所述任一用户端。Please refer to FIG. 3 , the data sending module 304 is configured to call the easily viewable data in the data cache and send it to any client when receiving a data request from any client of the same device type.
在完成所述易察看数据的缓存后,当接收到相同设备类型的用户端的数据请求后,则可以进行缓存数据调取并发送给用户端,所述CDN节点当接收到所述用户端的数据请求时,若未查找到所述易察看数据,则调取存储的所述源数据,将所述源数据根据用户端的设备类型调整为所述易察看数据;将所述易察看数据发送到用户端。优选的,当所述缓存数据失效、过期或取无法命中,则提取所述CDN节点存储的源数据,并将所述源数据进行再次编辑生成易察看数据发送给用户端。若所述源数据在该二级CDN节点中无法命中,则从所述二级CDN节点的上级CDN节点中获取所述源数据。若所述二级CDN节点中无法命中所述源数据,则从所述源服务器中获取所述源数据,所述原服务器是所述CDN系统的最根本服务器,必定具有所述源数据。After completing the caching of the easy-to-view data, after receiving a data request from a client of the same device type, the cached data can be retrieved and sent to the client. When the CDN node receives the data request from the client , if the easy-to-view data is not found, the stored source data is called, and the source data is adjusted to the easy-to-view data according to the device type of the user end; the easy-to-view data is sent to the user end . Preferably, when the cached data is invalid, expired or cannot be retrieved, the source data stored by the CDN node is extracted, and the source data is re-edited to generate easy-to-view data and sent to the client. If the source data cannot be hit by the secondary CDN node, the source data is obtained from the upper-level CDN node of the secondary CDN node. If the source data cannot be found in the secondary CDN node, the source data is obtained from the source server. The source server is the most fundamental server of the CDN system and must have the source data.

Claims (10)

  1. 一种基于CDN节点的内容推送方法,其特征在于,包括:A method for pushing content based on CDN nodes, characterized in that it includes:
    源服务器获取CDN的节点列表,根据所述节点列表将源数据发送到每个所述CDN节点并存储所述源数据;The source server obtains a CDN node list, sends the source data to each of the CDN nodes according to the node list, and stores the source data;
    所述CDN节点获取用户端的数据请求,根据所述数据请求识别所述用户端的设备类型,将所述源数据根据用户的设备类型调整为易察看数据;The CDN node obtains the data request of the client, identifies the device type of the client according to the data request, and adjusts the source data to easy-to-view data according to the device type of the user;
    将所述易察看数据发送到所述用户端,并将所述易察看数据存储到所述CDN节点数据缓存中;sending the viewable data to the client, and storing the viewable data in the CDN node data cache;
    当接收到相同所述设备类型的任一用户端数据请求则调取所述数据缓存中的易察看数据发送到所述任一用户端。When any client data request of the same device type is received, the viewable data in the data cache is retrieved and sent to any client.
  2. 根据权利要求1所述基于CDN节点的内容推送方法,其特征在于,还包括:The method for pushing content based on CDN nodes according to claim 1, further comprising:
    所述CDN节点当接收到所述用户端的数据请求时,若未查找到所述易察看数据,则调取存储的所述源数据,将所述源数据根据用户端的设备类型调整为所述易察看数据;When the CDN node receives the data request from the client, if the easy-to-view data is not found, it calls the stored source data, and adjusts the source data to the easy-to-view data according to the device type of the client. view data;
    将所述易察看数据发送到用户端。Sending the viewable data to the client.
  3. 根据权利要求1所述基于CDN节点的内容推送方法,其特征在于,所述源数据若过期或取无法命中,则根据所述数据请求向上级CDN节点请求所述源数据;According to the content push method based on CDN nodes according to claim 1, it is characterized in that, if the source data expires or cannot be hit, then request the source data to the superior CDN node according to the data request;
    若所述源数据在所述上级CDN节点过期或取无法命中则根据所述数据请求向所述源服务器请求所述源数据。If the source data expires at the upper-level CDN node or cannot be retrieved, request the source data from the source server according to the data request.
  4. 根据权利要求1所述基于CDN节点的内容推送方法,其特征在于,所述设备类型包括:屏幕尺寸、屏幕像素、屏幕的长宽比例。The method for pushing content based on a CDN node according to claim 1, wherein the device type includes: screen size, screen pixels, and screen aspect ratio.
  5. 根据权利要求1所述基于CDN节点的内容推送方法,其特征在于,所述用户端包括:手机、平板、电脑、智能眼镜、投影仪或者智能手表。The method for pushing content based on a CDN node according to claim 1, wherein the client includes: a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch.
  6. 一种基于CDN节点的内容推送装置,其特征在于,包括:A CDN node-based content push device is characterized in that it includes:
    数据分发模块,用于源服务器获取CDN的节点列表,根据所述节点列表将源数据发送到每个所述CDN节点并存储所述源数据;A data distribution module, used for the source server to obtain a CDN node list, send source data to each of the CDN nodes according to the node list and store the source data;
    数据处理模块,用于所述CDN节点获取用户端的数据请求,根据所述数据请求识别所述用户端的设备类型,将所述源数据根据用户的设备类型调整为易察看数据;The data processing module is used for the CDN node to obtain the data request of the client, identify the device type of the client according to the data request, and adjust the source data into easy-to-view data according to the device type of the user;
    数据缓存模块,用于将所述易察看数据发送到所述用户端,并将所述易察看数据存储到所述CDN节点数据缓存中;A data caching module, configured to send the viewable data to the client, and store the viewable data into the CDN node data cache;
    数据发送模块,用于当接收到相同所述设备类型的任一用户端数据请求则调取所述数据缓存中的易察看数据发送到所述任一用户端。The data sending module is configured to call the easily viewable data in the data cache and send it to any client when receiving a data request from any client of the same device type.
  7. 根据权利要求6所述基于CDN节点的内容推送装置,其特征在于,所述数据处理模块还包括:The CDN node-based content pushing device according to claim 6, wherein the data processing module further comprises:
    用于所述CDN节点当接收到所述用户端的数据请求时,若未查找到所述易察看数据,则调取存储的所述源数据,将所述源数据根据用户端的设备类型调整为所述易察看数据;When the CDN node receives the data request from the client, if the easy-to-view data is not found, it calls the stored source data, and adjusts the source data to the specified source data according to the device type of the client. easy to view data;
    数据发送模块,用于将所述易察看数据发送到用户端。A data sending module, configured to send the easy-to-view data to the client.
  8. 根据权利要求6所述基于CDN节点的内容推送装置,其特征在于,所述数据处理模块还包括The CDN node-based content push device according to claim 6, wherein the data processing module further includes
    数据回源单元,用于所述源数据若过期或取无法命中,则根据所述数据请求向上级CDN节点请求所述源数据;A data back-to-source unit, configured to request the source data from the upper-level CDN node according to the data request if the source data expires or cannot be retrieved;
    若所述源数据在所述上级CDN节点过期或取无法命中则根据所述数据请求向所述源服务器请求所述源数据。If the source data expires at the upper-level CDN node or cannot be retrieved, request the source data from the source server according to the data request.
  9. 根据权利要求6所述基于CDN节点的内容推送装置,其特征在于,所述设备类型包括:屏幕尺寸、屏幕像素、屏幕的长宽比例。The device for pushing content based on CDN nodes according to claim 6, wherein the device type includes: screen size, screen pixels, and screen aspect ratio.
  10. 根据权利要求6所述基于CDN节点的内容推送装置,其特征在于,所述用户端包括:手机、平板、电脑、智能眼镜、投影仪或者智能手表。The CDN node-based content pushing device according to claim 6, wherein the client includes: a mobile phone, a tablet, a computer, smart glasses, a projector or a smart watch.
PCT/CN2022/070173 2021-12-30 2022-01-04 Cdn node-based content pushing method and apparatus WO2023123532A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111680508.7A CN114338726B (en) 2021-12-30 2021-12-30 Content pushing method and device based on CDN node
CN202111680508.7 2021-12-30

Publications (1)

Publication Number Publication Date
WO2023123532A1 true WO2023123532A1 (en) 2023-07-06

Family

ID=81022022

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/070173 WO2023123532A1 (en) 2021-12-30 2022-01-04 Cdn node-based content pushing method and apparatus

Country Status (2)

Country Link
CN (1) CN114338726B (en)
WO (1) WO2023123532A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457907A (en) * 2012-05-28 2013-12-18 中国移动通信集团公司 Method, equipment and system for multimedia content distribution
CN103577458A (en) * 2012-08-01 2014-02-12 上海亿动信息技术有限公司 Control method and corresponding control device for displaying webpage according to terminal type
CN104980416A (en) * 2014-07-31 2015-10-14 腾讯科技(深圳)有限公司 Data access method, device and system in content distribution network
US20190109898A1 (en) * 2017-10-05 2019-04-11 Level 3 Communications, Llc Cdn-based client messaging
CN113301071A (en) * 2020-04-09 2021-08-24 阿里巴巴集团控股有限公司 Network source returning method, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100481088C (en) * 2007-06-07 2009-04-22 北京大学 Web page resource issuing method and issuing system
CN113472852B (en) * 2021-06-02 2023-07-25 乐视云网络技术(北京)有限公司 Method, device and equipment for returning source of CDN node and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103457907A (en) * 2012-05-28 2013-12-18 中国移动通信集团公司 Method, equipment and system for multimedia content distribution
CN103577458A (en) * 2012-08-01 2014-02-12 上海亿动信息技术有限公司 Control method and corresponding control device for displaying webpage according to terminal type
CN104980416A (en) * 2014-07-31 2015-10-14 腾讯科技(深圳)有限公司 Data access method, device and system in content distribution network
US20190109898A1 (en) * 2017-10-05 2019-04-11 Level 3 Communications, Llc Cdn-based client messaging
CN113301071A (en) * 2020-04-09 2021-08-24 阿里巴巴集团控股有限公司 Network source returning method, device and equipment

Also Published As

Publication number Publication date
CN114338726B (en) 2022-08-02
CN114338726A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US10182127B2 (en) Application-driven CDN pre-caching
TW444167B (en) Internet convolution audio/video server
US6457052B1 (en) Method and apparatus for providing multimedia buffering capabilities based on assignment weights
US8537835B2 (en) Methods and apparatus for self-organized caching in a content delivery network
US8850075B2 (en) Predictive, multi-layer caching architectures
WO2019057212A1 (en) Method, apparatus and device for scheduling service within cdn node, and storage medium
CN108055302B (en) Picture caching processing method and system and server
US9594846B2 (en) Client side caching
US10666709B2 (en) Dynamic media transformation service in a CDN
US20100057846A1 (en) Image processing method, apparatus and system
JP2982698B2 (en) Distributed information service system
US20140067990A1 (en) Method for accessing a content item in a cloud storage system, and a corresponding cloud broker, cloud cache agent and client application
CN107801051A (en) Virtual sliced sheet information transferring method and device, video server
US7099914B1 (en) System and method for variable size retrieval of webpage data
WO2023123532A1 (en) Cdn node-based content pushing method and apparatus
JP4343432B2 (en) Highly efficient client server, network image view server using tiling and caching architecture
CN115883659A (en) Method and device for supporting batch refreshing of CDN cache
US10171857B2 (en) Network data delivery sponsorship signatures in streaming manifest files
WO2002029642A2 (en) Replacement of requested data with equivalent data
Hiranpongsin et al. Integration of recommender system for Web cache management
JP6721879B2 (en) Network system, node device, cache method, and cache program
KR20130134911A (en) Method for providing content caching service in adapted streaming service and local caching device thereof
CN115623247A (en) HLS streaming media data processing method, device and system
TWI513284B (en) Inverse proxy system and method
JP2008293281A (en) Cache device, server, cache system, cache method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22912843

Country of ref document: EP

Kind code of ref document: A1