WO2021017969A1 - 数据导流方法、装置、设备及介质 - Google Patents

数据导流方法、装置、设备及介质 Download PDF

Info

Publication number
WO2021017969A1
WO2021017969A1 PCT/CN2020/103445 CN2020103445W WO2021017969A1 WO 2021017969 A1 WO2021017969 A1 WO 2021017969A1 CN 2020103445 W CN2020103445 W CN 2020103445W WO 2021017969 A1 WO2021017969 A1 WO 2021017969A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
requester
mapped
data
request
Prior art date
Application number
PCT/CN2020/103445
Other languages
English (en)
French (fr)
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 WO2021017969A1 publication Critical patent/WO2021017969A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • 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/2866Architectures; Arrangements
    • H04L67/30Profiles

Definitions

  • This application relates to but is not limited to cloud distribution networks, and in particular to a data diversion method, device, equipment, and medium.
  • Convergent cloud distribution is a kind of cloud distribution service that meets the needs of the above-mentioned customers.
  • Converged/channel providers integrate the resources of multiple cloud distribution vendors through technical means, breaking through the limitations of geography, time and different operators, and maximize utilization Cloud distribution node resources and scheduling capabilities.
  • this application provides a data diversion method and device.
  • a data diversion method including:
  • the method further includes:
  • a configuration file is set for different requesters, and the configuration file contains at least mapping domain name construction rules and source sites.
  • the step of obtaining the mapped domain name of the requester includes:
  • the step of using the mapped domain name for data diversion includes:
  • the step of using the mapped domain name for data diversion includes:
  • the second cloud platform configures a second mapped domain name for the domain name request, and establishes an association between the mapped domain name and the second mapped domain name;
  • the method also includes:
  • a data diversion device including:
  • the first layer request receiving module is configured to extract the requester information in the domain name request when the domain name request is received;
  • the mapping module is configured to obtain the requested mapping domain name according to the requester's information
  • the diversion module is configured to use the mapped domain name for data diversion.
  • the device also includes:
  • the configuration module is configured to set configuration files for different requesters, and the configuration files include at least mapping domain name construction rules and source sites.
  • mapping module includes:
  • the configuration file extraction unit is configured to extract the corresponding configuration file according to the requester's information
  • the mapping domain name construction unit is configured to generate the mapping domain name of the requesting party according to the mapping domain name construction rule in the configuration file.
  • the diversion module is specifically configured to parse the mapped domain name, and obtain the data requested by the domain name request from the corresponding source site according to the configuration file corresponding to the requester.
  • a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed, the steps of the data diversion method described above are realized.
  • a computer device including a processor, a memory, and a computer program stored on the memory, and the processor implements the steps of the data diversion method when the computer program is executed.
  • This application provides a data diversion method and device.
  • a domain name request is received, the requester's information in the domain name request is extracted, and the requester's mapped domain name is obtained according to the requester's information, and Use the mapped domain name for data diversion.
  • the same cloud distribution platform can uniformly process domain name requests from different requesting parties and return them separately, realizing a highly compatible and flexible cloud distribution solution, and solving the problem of data requirements for the same domain name from different fusion/channel providers.
  • Fig. 1 is a flowchart showing a data diversion method according to an exemplary embodiment.
  • Fig. 2 is a schematic diagram of an exemplary embodiment of constructing different mapped domain names by adding a suffix.
  • Fig. 3 is a schematic diagram of the principle of an exemplary implementation for offloading different mapped domain names.
  • Fig. 4 is a schematic diagram of an exemplary implementation manner in which two requesting parties obtain data through the same domain name.
  • Fig. 5 is a schematic diagram of an exemplary embodiment of information display conversion.
  • Fig. 6 shows a block diagram of an acceleration device for accessing the same domain name from different channels according to an exemplary embodiment.
  • FIG. 7 is a schematic structural diagram of the mapping module 602 in FIG. 6.
  • Fig. 8 is a block diagram showing a computer device according to an exemplary embodiment.
  • a few cloud distribution vendors have established multiple platforms to serve different converged/channel providers, but a single platform can only serve one converged/channel accelerated domain name. With the continuous increase in the number of integration/channel providers, it is difficult to provide platforms for each integration/channel provider. And different platforms cannot share their own server resources.
  • the embodiments of the present application provide a data diversion method and device. Independent data services are provided for domain name requests from different requesters, which solves the problem of data requirements for the same domain name by requesters such as different fusion/channel providers, and realizes highly compatible and flexible cloud distribution.
  • An embodiment of the present application provides a data diversion method.
  • the process of using this method to complete the processing of domain name requests from different requesters is shown in Figure 1, including:
  • Step 101 Set configuration files for different requesters.
  • the configuration file includes at least mapping domain name construction rules and source sites.
  • the configuration file may also include various parameters for controlling the data diversion process.
  • mapping domain name construction rule may be a rule for generating a mapping domain name based on the domain name requested by the domain name request, for example, assigning a unique suffix to the requester, and adding the suffix after the domain name to obtain the mapping domain name.
  • the requesting party can be a convergent/channel provider of cloud distribution.
  • Figure 2 shows an example of constructing different mapped domain names by adding a suffix when the requesting party initiates a domain name request at the same time.
  • client A from the first requester has requested the domain name domain
  • client B from the second requester also sent a domain name request for this domain name, so the domain name request from client A is converted to the first requester
  • the request for mapping the domain name domain-A converts the client B's domain name request into the second requester's request for mapping the domain name domain-B.
  • the distribution center modifies the domain name configuration to point different mapped domain names to different source sites.
  • the domain name coverage scheme achieves IP-level isolation.
  • the part related to the domain name needs to be displayed as the domain name requested in the original domain name request.
  • Step 102 When a domain name request is received, extract the requester information in the domain name request.
  • the information of the requester in the domain name request is extracted.
  • the information of the requester includes at least the source of the request for obtaining the domain name (ie, the identity information of the requester) and the requested original domain name and other information.
  • Step 103 Obtain the mapped domain name of the requester according to the information of the requester.
  • the mapped domain name corresponding to the requester is obtained, so as to realize the offloading of domain name requests from different requesters.
  • Step 104 Use the mapped domain name to perform data diversion.
  • the requested data is obtained from the corresponding source site.
  • FIG. 4 it is an example of the realization principle of two requesters completing data reflow through the same domain name.
  • customer A from the first requester has accelerated the request for the domain name domain
  • customer B from the second requester also sent a domain name request for this domain name, so the domain name request of client A was converted to the first request
  • the domain name request of the party mapping domain name domain-A is converted into the domain name request of the first air duct requesting party mapping domain name domain-B.
  • the CNAME record of domain-A points it to the source site 1.1.1.1
  • the CNAME record of domain-B points it to the source site 2.2.2.2.
  • Distribute the first-tier server in the cloud to complete the diversion of the first requester and the second requester.
  • operations such as transmission acceleration and data return to the source are performed respectively.
  • the domain name functions of domain-A and domain-B are implemented separately, do not interfere with each other, and both use the same process of the same cloud distribution platform.
  • the embodiments of the present application can also support the redirection of traffic of the same domain name of a certain requester or several requesters to other cloud distribution vendors, so as to realize the function of converging cloud distribution vendors.
  • the domain name request is forwarded to a second cloud platform, the second cloud platform configures a second mapped domain name for the domain name request, and establishes an association between the mapped domain name and the second mapped domain name.
  • Obtain the data obtained by the second cloud platform using the second mapped domain name that is, the second cloud platform will return the data obtained by returning the domain name requested by the requesting party to the original cloud distribution platform, and the original cloud distribution platform will return the data To the requester. It realizes the data diversion integration between different cloud distribution platforms.
  • the traffic can be shared through other cloud distribution platforms to ensure the efficiency of data return.
  • Step 105 When receiving the domain name query request, convert the requested domain name into a corresponding mapped domain name.
  • Step 106 Query the information of the mapped domain name, and return the information of the mapped domain name to the requester in the name of the domain name requested by the query domain name request.
  • Figure 5 is an example of information display conversion, still taking the application scenario shown in Figure 2 as an example.
  • the domain name is the mapped domain name of domain-A, so what is actually queried is the information of domain-A. Then, the mapped domain name is displayed as the domain name requested by the first requester.
  • the information display conversion method shown in Figure 5 can be applied to various scenarios such as domain name configuration page, statistical data query conversion, API interface conversion, download log conversion, push prefetching and other common cloud distribution function conversions.
  • the embodiment of the present application also provides a data diversion device, the structure of which is shown in Fig. 6, including:
  • the first layer request receiving module 601 is configured to extract the information of the requester in the domain name request when the domain name request is received;
  • the mapping module 602 is configured to obtain the mapped domain name of the requester according to the information of the requester;
  • the diversion module 603 is configured to perform data diversion using the mapped domain name.
  • the device further includes:
  • the configuration module 604 is configured to set configuration files for different requesters, and the configuration files include at least mapping domain name construction rules and source sites.
  • the diversion module 603 is specifically configured to parse the mapped domain name, and obtain the data requested by the domain name request from the corresponding source site according to the configuration file corresponding to the requester.
  • mapping module 602 the structure of the mapping module 602 is shown in FIG. 7, and includes:
  • the configuration file extraction unit 6021 is configured to extract the corresponding configuration file according to the information of the requester;
  • the mapping domain name construction unit 6022 is configured to generate the mapping domain name of the requester for the requested domain name according to the mapping domain name construction rule in the configuration file.
  • the data diversion device shown in FIG. 6 and FIG. 7 can be combined with an acceleration device for accessing the same domain name from different channels provided by the embodiment of the present application, and integrated into a network entity such as a server to implement corresponding functions.
  • FIG. 8 is a block diagram of a computer device 800 for accelerating domain name access provided by an embodiment of the present application.
  • the computer device 800 may be a server.
  • the computer device 800 includes a processor 801, and the number of processors can be set to one or more as required.
  • the computer device 800 further includes a memory 802 configured to store instructions executable by the processor 801, such as application programs. The number of memories can be set to one or more as required.
  • the stored application program can be one or more.
  • the processor 801 is configured to execute instructions to execute the acceleration method for accessing the same domain name from different channels provided by the embodiments of the present application.
  • An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed, the method for accelerating access to the same domain name from different channels provided by the embodiment of the present application is implemented. step.
  • the embodiments of the present application may be provided as methods, devices (equipment), or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes.
  • Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer readable instructions, data structures, program modules, or other data) , Including but not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or can be used for Any other medium that stores desired information and can be accessed by a computer.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media .
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • the same cloud distribution platform can uniformly process domain name requests from different requesting parties and return them separately, realizing a highly compatible and flexible cloud distribution solution, and solving the problem of data requirements for the same domain name from different fusion/channel providers.

Landscapes

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

Abstract

本文是关于一种数据导流方法和装置。涉及云分发网络,解决了不同融合/渠道商对同一域名发生数据需求的问题。该方法包括:在接收到域名请求时,提取所述域名请求中的请求方的信息;根据所述请求方的信息,获取所述请求方的映射域名;使用所述映射域名进行数据导流。本申请提供的技术方案适用于云分发网络,实现了高兼容性、灵活的云分发方案。

Description

数据导流方法、装置、设备及介质
本申请要求在2019年07月31日提交中国专利局、申请号为201910704776.4,发明名称为“数据导流方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及但不限于云分发网络,尤其涉及一种数据导流方法、装置、设备及介质。
背景技术
在云分发行业,门户网站客户需要使用多家云分发厂商的服务,降低因为只使用一家云分发厂商出现单点故障的风险。融合云分发即是顺应上述客户需要而出现的一种云分发服务,融合/渠道商通过技术手段整合多个云分发厂商的资源,突破了地域、时间及不同运营商的限制,最大限度的利用云分发节点资源以及调度能力。
对于云分发厂商来说,如何对来自不同融合/渠道商的对同一个加速域名的加速需求进行处理是一个难题。各云分发厂商平台上,加速域名具有唯一性,无法直接支持同时服务两个相同的加速域名的业务,也存在无法区分流量来自哪个融合/渠道商的问题。
发明内容
为克服相关技术中存在的问题,本申请提供一种数据导流方法和装置。
根据本申请的一方面,提供了一种数据导流方法,包括:
在接收到域名请求时,提取所述域名请求中的请求方的信息;
根据所述请求方的信息,获取所述请求方的映射域名;
使用所述映射域名进行数据导流。
其中,在接收到域名请求时,提取所述域名请求中的请求方的信息的步骤之前,还包括:
为不同的请求方设置配置文件,所述配置文件中至少包含映射域名构建规则和源站点。
其中,根据所述请求方的信息,获取所述请求方的映射域名的步骤包括:
根据所述请求方的信息,提取对应的配置文件;
根据所述配置文件中的映射域名构建规则,生成所述请求方的映射域名。
其中,使用所述映射域名进行数据导流的步骤包括:
解析所述映射域名,根据所述请求方对应的配置文件,向相应的源站点获取所述域名请求所请求的数据。
其中,使用所述映射域名进行数据导流的步骤包括:
将所述域名请求转向第二云平台,所述第二云平台为所述域名请求配置第二映射域名,在所述映射域名与所述第二映射域名之间建立关联;
获取所述第二云平台使用所述第二映射域名取得的数据。
其中,该方法还包括:
在接收到查询域名请求时,将所请求域名转换为对应的映射域名;
查询所述映射域名的信息,并将所述映射域名的信息以所述查询域名请求所请求的域名的名义返回给请求方。
根据本申请的另一方面,提供了一种数据导流装置,包括:
第一层请求接收模块,被配置为在接收到域名请求时,提取所述域名请求中的请求方的信息;
映射模块,被配置为根据所述请求方的信息,获取所述请求的映射域名;
导流模块,被配置为使用所述映射域名进行数据导流。
其中,该装置还包括:
配置模块,被配置为为不同的请求方设置配置文件,所述配置文件中至少包含映射域名构建规则和源站点。
其中,所述映射模块包括:
配置文件提取单元,被配置为根据所述请求方的信息,提取对应的配置文件;
映射域名构建单元,被配置为根据所述配置文件中的映射域名构建规则,生成所述请求方的映射域名。
其中,所述导流模块,具体被配置为解析所述映射域名,根据所述请求方对应的配置文件,向相应的源站点获取所述域名请求所请求的数据。
根据本申请的另一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被执行时实现如上述数据导流方法的步骤。
根据本申请的另一方面,提供了一种计算机设备,包括处理器、存储器和存储于所述存储器上的计算机程序,所述处理器执行所述计算机程序时实现上述数据导流方法的步骤。
本申请提供了一种数据导流方法和装置,在接收到域名请求时,提取所述域名请求中的请求方的信息,根据所述请求方的信息,获取所述请求方的映射域名,并使用所述映射域名进行数据导流。同一云分发平台可对来自不同请求方的域名请求进行统一处理、分别回流,实现了高兼容性、灵活的云分发方案,解决了不同融合/渠道商对同一域名发生数据需求的问题。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本文。
附图说明
构成本申请的一部分的附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1是根据一示例性实施例示出的一种数据导流方法的流程图。
图2是通过添加后缀构建不同映射域名的一种示例性实施方式原理示意图。
图3是对不同映射域名进行分流的一种示例性实施方式原理示意图。
图4是两个请求方通过同一个域名获取数据的一种示例性实施方式示意图。
图5是信息展示转换的一种示例性实施方式示意图。
图6根据一示例性实施例示出的一种接入不同渠道的相同域名的加速装置的框图。
图7是图6中映射模块602的结构示意图。
图8是根据一示例性实施例示出的一种计算机设备的框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
对于云分发厂商来说,如何对来自不同融合/渠道商的对同一个加速域名的加速需求进行处理是一个难题。各云分发厂商平台上,加速域名具有唯一性,无法直接支持同时服务两个相同的加速域名的业务,也存在无法区分流量来自哪个融合/渠道商的问题。
在出现众多融合商、渠道商的新型云分发环境下,不同融合/渠道商同时提出需要同一家云分发厂商加速同一个加速域名时,大多数云分发厂商无法直接支持。
少数云分发厂商通过建立多个平台给不同的融合/渠道商服务,但是单个平台还是只能服务一个融合/渠道的加速域名。随着融合/渠道商数量的不断增加,分别为各个融合/渠道商提供平台难以实现。且不同平台之间不能共享各自的服务器资源。
为了解决上述问题,本申请的实施例提供了一种数据导流方法和装置。对来自不同请求方的域名请求分别提供独立的数据服务,解决了不同融合/渠道商等请求方对同一域名发生数据需求的问题,实现了高兼容性、灵活的云分发。
本申请的一实施例提供了一种数据导流方法,使用该方法完成对来自不同 请求方的域名请求处理的流程如图1所示,包括:
步骤101、为不同的请求方设置配置文件。
本申请的实施例中,所述配置文件中至少包含映射域名构建规则和源站点。优选的,所述配置文件还可包含对数据导流过程进行控制的各项参数。
本步骤,针对不同的请求方,可配置不同的配置文件,这样不同的请求方就具有了不同的映射域名构建规则。映射域名构建规则可以是一种基于域名请求所请求的域名生成映射域名的规则,例如为请求方分配一个唯一后缀,在域名后添加该后缀即可得到映射域名。请求方可为云分发的融合/渠道商。
图2所示为一种在请求方同时发起域名请求时,通过添加后缀构建不同映射域名的示例。在来自第一请求方的客户A已对domain这一域名请求后,来自第二请求方的客户B也发出了针对该域名的域名请求,于是将客户A的域名请求转换为对第一请求方映射域名domain-A的请求,将客户B的域名请求转换为第二请求方映射域名domain-B的请求。
配置映射域名的方案,使得同一云分发平台可支持的渠道数量和对象是灵活可变的。
本申请实施例中,具体的,还需要在云分发平台进行如下配置,具体信息可添加到相应请求方的配置文件中:
1、分发中心修改域名配置,将不同的映射域名指向不同的源站点。
2、将流量中的域名改写成映射域名。
3、将下载日志中的域名改写成域名。
4、域名使用覆盖方案做到IP层面的隔离。
云分发平台在进行域名配置时展示的信息中,涉及域名的部分需要展示为原域名请求中所请求的域名。
步骤102、在接收到域名请求时,提取所述域名请求中的请求方的信息。
本步骤中,在接收到域名请求时,提取所述域名请求中的请求方的信息。所述请求方的信息至少包含获取域名请求的来源(即请求方的身份信息)和所请求的原始域名等信息。
步骤103、根据所述请求方的信息,获取所述请求方的映射域名。
本步骤中,根据云分发平台的配置,获取与请求方相应的映射域名,实现对不同请求方的域名请求的分流。
仍以图2所示场景为例,如图3所示,不同融合/渠道商通过同一个加速域名请求到云分发厂商CNAME到的服务器,对映射域名进行特殊导流配置。在域名请求进入服务器时都是使用domain域名作为请求的域名。通过导流配置,实现了将针对同一域名的域名请求依请求方,分别转发到domain-A和domain-B,区分了不同请求方的流量。
步骤104、使用所述映射域名进行数据导流。
本步骤中,根据所述映射域名,向相应的源站点获取请求的数据。
如图4所示,是两个请求方通过同一个域名完成数据回流的实现原理示例。在来自第一请求方的客户A已对domain这一域名请求加速后,来自第二请求方的客户B也发出了针对该域名的域名请求,于是将客户A的域名请求转换为对第一请求方映射域名domain-A的域名请求,将客户B的域名请求转换为第通风管请求方映射域名domain-B的域名请求。domain-A的CNAME记录将其指向1.1.1.1这一源站点,domain-B的CNAME记录将其指向2.2.2.2这一源站点。在云分发第一层服务器,完成对第一请求方和第二请求方的导流。通过云分发的多层结构,分别进行传输加速和数据回源等操作。domain-A和domain-B的域名功能分别实现,互不干扰,且均使用同一云分发平台的同一流程。
优选的,本申请的实施例中还可以支持将某一家请求方或者几家请求方的相同域名的流量再导流给其他云分发厂商,实现融合云分发厂商的功能。具体的,将所述域名请求转向第二云平台,所述第二云平台为所述域名请求配置第二映射域名,在所述映射域名与所述第二映射域名之间建立关联。获取所述第二云平台使用所述第二映射域名取得的数据,即,第二云平台将针对请求方所请求域名回流得到的数据导回至原云分发平台,原云分发平台将数据返回给请求方。实现了在不同云分发平台间的数据导流融合,在接收到域名请求的云分发平台发生故障或负载过重等情况下,可通过其他云分发平台分担流量,保证了数据回流效率。
步骤105、在接收到查询域名请求时,将所请求域名转换为对应的映射域名。
步骤106、查询所述映射域名的信息,并将所述映射域名的信息以所述查询域名请求所请求的域名的名义返回给请求方。
图5是一种信息展示转换的举例,仍以图2所示的应用场景为例进行说明,第一请求方的客户A进行查询domain这一域名的操作时,由于第一请求方实质的加速域名是domain-A这一映射域名,故实际上查询的是domain-A的信息。然后,再将映射域名展示成第一请求方所请求域名domain。
图5所示信息展示转换方法可应用于域名配置页面、统计数据查询转换、API接口转换、下载日志转换、推送预取等常用云分发功能转换等多种场景中。
本申请的实施例还提供了一种数据导流装置,其结构如图6所示,包括:
第一层请求接收模块601,被配置为在接收到域名请求时,提取所述域名请求中的请求方的信息;
映射模块602,被配置为根据所述请求方的信息,获取所述请求方的映射域名;
导流模块603,被配置为使用所述映射域名进行数据导流。
优选的,该装置还包括:
配置模块604,被配置为为不同的请求方设置配置文件,所述配置文件中至少包含映射域名构建规则和源站点。
优选的,所述导流模块603,具体被配置为解析所述映射域名,根据所述请求方对应的配置文件,向相应的源站点获取所述域名请求所请求的数据。
优选的,所述映射模块602的结构如图7所示,包括:
配置文件提取单元6021,被配置为根据所述请求方的信息,提取对应的配置文件;
映射域名构建单元6022,被配置为根据所述配置文件中的映射域名构建规则,生成所述请求方针对所述请求的域名的映射域名。
图6及图7所示数据导流装置,可与本申请的实施例提供的一种接入不同渠道的相同域名的加速装置相结合,集成于服务器等网络实体中实现相应功能。
图8是本申请的一实施例提供的一种用于域名访问加速的计算机设备800的框图。计算机设备800可为一服务器。参照图8,计算机设备800包括处理器801,处理器的个数可以根据需要设置为一个或者多个。计算机设备800还包括存储器802,被配置为存储可由处理器801的执行的指令,例如应用程序。存储器的个数可以根据需要设置一个或者多个。其存储的应用程序可以为一个或者多个。处理器801被配置为执行指令,以执行本申请的实施例提供的接入不同渠道的相同域名的加速方法。
本申请的一实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被执行时实现本申请的实施例提供的接入不同渠道的相同域名的加速方法的步骤。
本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式。计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质,包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质等。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
本申请是参照根据本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的物品或者设备中还存在另外的相同要素。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请的意图也包含这些改动和变型在内。
工业实用性
本文通过在接收到域名请求时,提取所述域名请求中的请求方的信息,根据所述请求方的信息,获取所述请求方的映射域名,并使用所述映射域名进行数据导流。同一云分发平台可对来自不同请求方的域名请求进行统一处理、分别回流,实现了高兼容性、灵活的云分发方案,解决了不同融合/渠道商对同一域名发生数据需求的问题。

Claims (12)

  1. 一种数据导流方法,包括:
    在接收到域名请求时,提取所述域名请求中的请求方的信息;
    根据所述请求方的信息,获取所述请求方的映射域名;
    使用所述映射域名进行数据导流。
  2. 根据权利要求1所述的数据导流方法,其中,在接收到域名请求时,提取所述域名请求中的请求方的信息的步骤之前,还包括:
    为不同的请求方设置配置文件,所述配置文件中至少包含映射域名构建规则和源站点。
  3. 根据权利要求2所述的数据导流方法,其中,根据所述请求方的信息,获取所述请求方的映射域名的步骤包括:
    根据所述请求方的信息,提取对应的配置文件;
    根据所述配置文件中的映射域名构建规则,生成所述请求方的映射域名。
  4. 根据权利要求2所述的数据导流方法,其中,使用所述映射域名进行数据导流的步骤包括:
    解析所述映射域名,根据所述请求方对应的配置文件,向相应的源站点获取所述域名请求所请求的数据。
  5. 根据权利要求2所述的数据导流方法,其中,使用所述映射域名进行数据导流的步骤包括:
    将所述域名请求转向第二云平台,所述第二云平台为所述域名请求配置第二映射域名,在所述映射域名与所述第二映射域名之间建立关联;
    获取所述第二云平台使用所述第二映射域名取得的数据。
  6. 根据权利要求1所述的数据导流方法,该方法还包括:
    在接收到查询域名请求时,将所请求域名转换为对应的映射域名;
    查询所述映射域名的信息,并将所述映射域名的信息以所述查询域名请求 所请求的域名的名义返回给请求方。
  7. 一种数据导流装置,包括:
    第一层请求接收模块,被配置为在接收到域名请求时,提取所述域名请求中的请求方的信息;
    映射模块,被配置为根据所述请求方的信息,获取所述请求方的映射域名;
    导流模块,被配置为使用所述映射域名进行数据导流。
  8. 根据权利要求7所述的数据导流装置,该装置还包括:
    配置模块,被配置为为不同的请求方设置配置文件,所述配置文件中至少包含映射域名构建规则和源站点。
  9. 根据权利要求8所述的数据导流装置,其中,所述映射模块包括:
    配置文件提取单元,被配置为根据所述请求方的信息,提取对应的配置文件;
    映射域名构建单元,被配置为根据所述配置文件中的映射域名构建规则,生成所述请求方的映射域名。
  10. 根据权利要求8所述的数据导流装置,其中,
    所述导流模块,具体被配置为解析所述映射域名,根据所述请求方对应的配置文件,向相应的源站点获取所述域名请求所请求的数据。
  11. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被执行时实现如权利要求1-6中任意一项所述的数据导流方法的步骤。
  12. 一种计算机设备,包括处理器、存储器和存储于所述存储器上的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1-6中任意一项所述的数据导流方法的步骤。
PCT/CN2020/103445 2019-07-31 2020-07-22 数据导流方法、装置、设备及介质 WO2021017969A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910704776.4A CN112311579B (zh) 2019-07-31 2019-07-31 数据导流方法和装置
CN201910704776.4 2019-07-31

Publications (1)

Publication Number Publication Date
WO2021017969A1 true WO2021017969A1 (zh) 2021-02-04

Family

ID=74228202

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/103445 WO2021017969A1 (zh) 2019-07-31 2020-07-22 数据导流方法、装置、设备及介质

Country Status (2)

Country Link
CN (1) CN112311579B (zh)
WO (1) WO2021017969A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629795A (zh) * 2022-01-30 2022-06-14 阿里巴巴(中国)有限公司 带宽使用方法和内容分发网络

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130191499A1 (en) * 2011-11-02 2013-07-25 Akamai Technologies, Inc. Multi-domain configuration handling in an edge network server
CN103716419A (zh) * 2013-12-24 2014-04-09 贝壳网际(北京)安全技术有限公司 一种跨终端的域名处理方法及系统
CN107124423A (zh) * 2017-05-12 2017-09-01 深信服科技股份有限公司 一种基于云计算的业务系统访问方法及系统
CN109286691A (zh) * 2018-09-30 2019-01-29 网宿科技股份有限公司 信息引流、请求发送、通信加速方法、引流及节点服务器
CN109379244A (zh) * 2018-12-28 2019-02-22 北京云中融信网络科技有限公司 网络加速通讯方法、装置以及电子设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338126B (zh) * 2014-07-17 2018-10-23 阿里巴巴集团控股有限公司 远程查询信息的方法及服务器
CN107846483A (zh) * 2017-11-10 2018-03-27 北京粉笔蓝天科技有限公司 一种域名解析方法、系统和服务器

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130191499A1 (en) * 2011-11-02 2013-07-25 Akamai Technologies, Inc. Multi-domain configuration handling in an edge network server
CN103716419A (zh) * 2013-12-24 2014-04-09 贝壳网际(北京)安全技术有限公司 一种跨终端的域名处理方法及系统
CN107124423A (zh) * 2017-05-12 2017-09-01 深信服科技股份有限公司 一种基于云计算的业务系统访问方法及系统
CN109286691A (zh) * 2018-09-30 2019-01-29 网宿科技股份有限公司 信息引流、请求发送、通信加速方法、引流及节点服务器
CN109379244A (zh) * 2018-12-28 2019-02-22 北京云中融信网络科技有限公司 网络加速通讯方法、装置以及电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629795A (zh) * 2022-01-30 2022-06-14 阿里巴巴(中国)有限公司 带宽使用方法和内容分发网络
CN114629795B (zh) * 2022-01-30 2024-01-02 阿里巴巴(中国)有限公司 带宽使用方法和内容分发网络

Also Published As

Publication number Publication date
CN112311579B (zh) 2022-07-01
CN112311579A (zh) 2021-02-02

Similar Documents

Publication Publication Date Title
US11095711B2 (en) DNS Resolution of internal tenant-specific domain addresses in a multi-tenant computing environment
CN110198363B (zh) 一种移动边缘计算节点的选择方法、装置及系统
WO2020228469A1 (zh) 一种移动边缘计算节点的选择方法、装置及系统
CN108370391B (zh) 用于虚拟网络的共享多租户域名系统(dns)服务器
US11178062B2 (en) Orchestrating physical and virtual resources for delivering digital contents
US10171591B2 (en) Connecting public cloud with private network resources
US10120734B1 (en) Application programming interface and services engine with application-level multi-tenancy
CN102427480B (zh) 一种多应用服务平台系统中的应用访问方法
CN115269184A (zh) 函数即服务(faas)执行分配器
CN109521956B (zh) 一种基于区块链的云存储方法、装置、设备及存储介质
US20230216895A1 (en) Network-based media processing (nbmp) workflow management through 5g framework for live uplink streaming (flus) control
CN104866976A (zh) 面向多租户的管理信息系统
WO2019071995A1 (zh) 内容分发方法、设备及系统
CN115428514A (zh) 在多个运营商的相邻mec主机之间共享地理集中的工作负荷
CN204695386U (zh) 面向多租户的管理信息系统
WO2021017969A1 (zh) 数据导流方法、装置、设备及介质
US11632411B2 (en) Method and apparatus for cascaded multi-input content preparation templates for 5G networks
CN110958279B (zh) 一种数据处理方法及其装置
WO2021057369A1 (zh) HttpDNS调度方法、装置、介质及设备
US10143022B2 (en) Dynamic generation of geographically bound MANET IDs
CN102404294A (zh) 一种实现cdn互连的方法和系统
EP4115580B1 (en) Hostname pre-localization
US10958580B2 (en) System and method of performing load balancing over an overlay network
CN103685367A (zh) 离线下载系统和方法
CN110362336B (zh) 机房路由信息的获取方法及脚本数据配置方法及装置

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: 20847315

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20847315

Country of ref document: EP

Kind code of ref document: A1