CN110417829A - A content access method and device - Google Patents
A content access method and device Download PDFInfo
- Publication number
- CN110417829A CN110417829A CN201810388192.6A CN201810388192A CN110417829A CN 110417829 A CN110417829 A CN 110417829A CN 201810388192 A CN201810388192 A CN 201810388192A CN 110417829 A CN110417829 A CN 110417829A
- Authority
- CN
- China
- Prior art keywords
- user equipment
- object content
- back end
- access
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004891 communication Methods 0.000 claims abstract description 93
- 238000012545 processing Methods 0.000 claims description 18
- 238000001228 spectrum Methods 0.000 claims description 15
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000003860 storage Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 2
- 238000012217 deletion Methods 0.000 claims 2
- 230000037430 deletion Effects 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 10
- 238000009826 distribution Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000013508 migration Methods 0.000 description 2
- 230000005012 migration Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/61—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本申请公开了一种内容访问方法及装置,该方法包括:接收第一用户设备发送的第一访问请求,所述第一访问请求包括所述第一用户设备的标识以及第一用户设备要访问的目标内容的标识;根据所述目标内容的标识确定保存目标内容的第一数据节点;判断由所述第一数据节点承载所述第一用户设备对所述目标内容的访问是否满足通信质量的约束条件;若不满足,则将所述目标内容备份到第二数据节点,其中,由所述第二数据节点承载所述第一用户设备对所述目标内容的访问满足所述约束条件;向所述第一用户设备返回所述第二数据节点的地址,使所述第一用户设备访问所述第二数据节点上备份的所述目标内容。解决了现有技术中内容访问方法无法保证通信质量技术问题。
The present application discloses a method and device for accessing content. The method includes: receiving a first access request sent by a first user equipment, where the first access request includes the identity of the first user equipment and the content that the first user equipment wants to access. the identification of the target content; determine the first data node storing the target content according to the identification of the target content; determine whether the access to the target content carried by the first user equipment by the first data node meets the requirements of communication quality Constraint conditions; if not satisfied, backing up the target content to a second data node, wherein the access to the target content by the first user equipment carried by the second data node satisfies the constraint conditions; The first user equipment returns the address of the second data node, so that the first user equipment accesses the target content backed up on the second data node. The technical problem that the content access method in the prior art cannot guarantee the communication quality is solved.
Description
技术领域technical field
本申请涉及计算机通信技术领域,尤其涉及一种内容访问方法及装置。The present application relates to the technical field of computer communication, in particular to a content access method and device.
背景技术Background technique
数据中心网络包括多个数据节点,不同数据节点可以保存不同的内容,多个用户设备可以访问同一数据节点上的同一内容。随着网络结构越来越复杂,可能一些网络设备访问数据节点上的内容的通信质量较好,而另一些网络设备访问该数据节点的该内容的通信质量较差。因此,现有的数据访问方法无法保证网络中网络设备的通信质量。The data center network includes multiple data nodes, different data nodes can store different content, and multiple user devices can access the same content on the same data node. As the network structure becomes more and more complex, some network devices may have better communication quality when accessing the content on the data node, while other network devices may have poorer communication quality when accessing the content on the data node. Therefore, existing data access methods cannot guarantee the communication quality of network devices in the network.
发明内容Contents of the invention
本申请提供一种内容访问方法及装置,用以解决现有技术中用户设备在对数据中心数据进行访问时,无法保证网络中网络设备的通信质量的问题。The present application provides a content access method and device to solve the problem in the prior art that the communication quality of the network equipment in the network cannot be guaranteed when the user equipment accesses the data of the data center.
第一方面,本申请实施例提供一种内容备份的方法,该方法包括:服务器接收第一用户设备发送的第一访问请求之后,根据第一访问请求中目标内容的标识确定保存所述目标内容的第一数据节点,当第一用户访问第一数据节点中的目标内容时,判断是否能满足通信质量的约束条件,如果不满足,将目标内容备份到满足通信质量约束条件的第二数据节点,并将第二数据节点的地址返回给第一用户设备,以使第一用户设备访问第二数据节点中备份的目标内容。通过本实施例提供的方案,可以根据通信质量的约束条件判断第一数据节点是否满足,当不满足时将目标内容备份到满足通信质量的约束条件的第二数据节点,实现目标内容的动态迁移,提高了网络设备的通信质量。In the first aspect, the embodiment of the present application provides a content backup method, the method includes: after the server receives the first access request sent by the first user equipment, determines to save the target content according to the identification of the target content in the first access request When the first user accesses the target content in the first data node, judge whether the constraint condition of communication quality can be satisfied, if not, back up the target content to the second data node satisfying the constraint condition of communication quality , and return the address of the second data node to the first user equipment, so that the first user equipment accesses the target content backed up in the second data node. Through the solution provided by this embodiment, it is possible to judge whether the first data node is satisfied according to the constraint conditions of communication quality, and if not satisfied, the target content is backed up to the second data node that meets the constraint conditions of communication quality, so as to realize the dynamic migration of the target content , improving the communication quality of network equipment.
可选地,将所述目标内容备份到第二数据节点之后,还包括:服务器接收第二用户设备发送的第二访问请求,其中,第二访问请求包括的所述第二用户设备要访问的目标内容的标识与第一用户设备要访问的目标内容的标识相同,然后,服务器判断由所述第一数据节点和第二数据节点承载所述第二用户设备对所述目标内容的访问,是否满足通信质量的约束条件;若都不满足,则将所述目标内容备份到满足第二用户设备对所述目标内容的访问的通信质量的约束条的第三数据节点,并向所述第二用户设备返回所述第三数据节点的地址,以使所述第二用户设备访问所述第二数据节点备份的所述目标内容。通过本实施例提供的方案,服务器在确定由所述第一数据节点承载所述第一用户设备对所述目标内容的访问不满足通信质量的约束条件之后,不是将用户设备要访问的内容备份至一个数据节点就可以了,当实时接收的用户设备访问请求,目标内容备份的数据节点不满足通信质量的要求时,要一直备份直到目标内容备份的数据节点承载所述第一用户设备对所述目标内容的访问不满足通信质量的约束条件为止。Optionally, after backing up the target content to the second data node, the method further includes: the server receiving a second access request sent by the second user equipment, where the second access request includes the information to be accessed by the second user equipment The identifier of the target content is the same as the identifier of the target content to be accessed by the first user equipment, and then, the server judges whether the access to the target content by the second user equipment is carried by the first data node and the second data node. Satisfy the constraints of communication quality; if none of them are satisfied, back up the target content to a third data node that satisfies the constraints of the communication quality of the second user equipment’s access to the target content, and send to the second The user equipment returns the address of the third data node, so that the second user equipment accesses the target content backed up by the second data node. Through the solution provided in this embodiment, after the server determines that the access to the target content by the first user equipment carried by the first data node does not meet the communication quality constraints, the server does not back up the content to be accessed by the user equipment When the user equipment access request is received in real time, and the data node backed up by the target content does not meet the communication quality requirements, it must be backed up until the data node backed up by the target content bears the first user equipment’s response to the data node. Access to the target content does not meet the constraints of communication quality.
可选地,所述约束条件包括:第一用户设备访问第一数据节点中所述目标内容所需的访问时延不大于第一阈值;和/或第一用户设备访问第一数据节点中所述目标内容所占用的带宽资源不大于第二阈值;和/或所述目标内容的备份数与用户设备数之间的比值不大于第三阈值。Optionally, the constraints include: the access delay required by the first user equipment to access the target content in the first data node is not greater than a first threshold; and/or the first user equipment accesses the target content in the first data node The bandwidth resource occupied by the target content is not greater than the second threshold; and/or the ratio between the number of backups of the target content and the number of user equipment is not greater than the third threshold.
可选地,在将所述目标内容备份到第二数据节点之前,包括:服务器确定满足所述约束条件的数据节点作为所述第二数据节点。Optionally, before backing up the target content to the second data node, the method includes: determining, by the server, a data node satisfying the constraint condition as the second data node.
可选地,将所述目标内容备份到第二数据节点之后,还包括:服务器接收第三用户设备发送的第三访问请求以及第四用户设备发送的第四访问请求,所述第三访问请求包括第三用户设备的标识以及所述目标内容的标识,所述第四访问请求包括所述第四用户设备的标识以及所述目标内容的标识;判断由所述第一数据节点承载所述第三用户设备或四用户设备对所述目标内容的访问,是否满足通信质量的约束条件,以及判断第二数据节点承载所述第三用户设备或第四用户设备对所述目标内容的访问,是否满足通信质量的约束条件;若都不满足,则确定第三数据节点以及第四数据节点,由所述第三数据节点承载所述第三用户设备对所述目标内容的访问以及由所述第四数据节点承载所述第四用户设备对所述目标内容的访问都满足通信质量的约束条件,且第一数据节点的目标内容备份到第三数据节点所需时延与第一数据节点的目标内容备份到第四数据节点所需时延的差小于第四阈值;将所述目标内容备份到第三数据节点以及第四数据节点;向所述第三用户设备返回所述第三数据节点的地址,以使所述第三用户设备访问所述第三数据节点备份的所述目标内容,以及向所述第四用户设备返回所述第四数据节点的地址,以使所述第四用户设备访问所述第四数据节点备份的所述目标内容。Optionally, after backing up the target content to the second data node, further comprising: the server receiving a third access request sent by a third user equipment and a fourth access request sent by a fourth user equipment, the third access request Including the identifier of the third user equipment and the identifier of the target content, the fourth access request includes the identifier of the fourth user equipment and the identifier of the target content; judging that the first data node bears the first data node Whether the access of the target content by the three-user equipment or the four-user equipment satisfies the constraint condition of communication quality, and whether the second data node bears the access to the target content by the third user equipment or the fourth user equipment, whether Satisfy the constraint condition of communication quality; if none of them are satisfied, determine a third data node and a fourth data node, and the third data node bears the third user equipment's access to the target content and the third data node Four data nodes bear the fourth user equipment's access to the target content, all of which meet the communication quality constraints, and the time delay required for the target content of the first data node to be backed up to the third data node is the same as the target content of the first data node The time delay difference between content backup to the fourth data node is smaller than the fourth threshold; the target content is backed up to the third data node and the fourth data node; and the third data node is returned to the third user equipment address, so that the third user equipment accesses the target content backed up by the third data node, and returns the address of the fourth data node to the fourth user equipment, so that the fourth user equipment accessing the target content backed up by the fourth data node.
通过本实施例提供的方案,服务器在确定第三数据节点和第四数据节点时,不是仅确定由所述第三数据节点承载所述第三用户设备对所述目标内容的访问以及由所述第四数据节点承载所述第四用户设备对所述目标内容的访问都满足通信质量的约束条件,还需要确定第一数据节点的目标内容备份到第三数据节点所需时延与第一数据节点的目标内容备份到第四数据节点所需时延的差小于第四阈值,当所述时延的差小于第四阈值时,第三数据节点和第四数据节点满足同步备份条件。Through the solution provided in this embodiment, when the server determines the third data node and the fourth data node, it does not only determine that the third data node bears the access to the target content by the third user equipment and the The fourth data node bears the fourth user equipment's access to the target content that meets the communication quality constraints, and it is also necessary to determine the time delay required for the backup of the target content of the first data node to the third data node and the first data The time delay difference required for backing up the target content of the node to the fourth data node is less than the fourth threshold, and when the time delay difference is less than the fourth threshold, the third data node and the fourth data node meet the synchronous backup condition.
第二方面,本申请提供一种内容访问装置,包括:In a second aspect, the present application provides a content access device, including:
接收单元,用于接收第一用户设备发送的第一访问请求,所述第一访问请求包括所述第一用户设备的标识以及所述第一用户设备要访问的目标内容的标识;A receiving unit, configured to receive a first access request sent by a first user equipment, where the first access request includes an identifier of the first user equipment and an identifier of target content to be accessed by the first user equipment;
处理单元,用于根据所述目标内容的标识确定保存所述目标内容的第一数据节点,以及判断由所述第一数据节点承载所述第一用户设备对所述目标内容的访问,是否满足通信质量的约束条件,若不满足,则将所述目标内容备份到第二数据节点,其中,由所述第二数据节点承载所述第一用户设备对所述目标内容的访问满足所述约束条件;A processing unit, configured to determine a first data node that stores the target content according to the identifier of the target content, and determine whether the access to the target content carried by the first user equipment by the first data node satisfies If the constraint condition of communication quality is not satisfied, backing up the target content to a second data node, wherein the access to the target content carried by the first user equipment by the second data node satisfies the constraint condition;
发送单元,用于向所述第一用户设备返回所述第二数据节点的地址,以使所述第一用户设备访问所述第二数据节点上备份的所述目标内容。A sending unit, configured to return the address of the second data node to the first user equipment, so that the first user equipment accesses the target content backed up on the second data node.
可选地,所述处理单元在将所述目标内容备份到第二数据节点之后,所述的装置还用于:接收第二用户设备发送的第二访问请求,所述第二访问请求包括所述第二用户设备的标识以及所述第二用户设备要访问的目标内容的标识,其中所述第二用户设备要访问的目标内容的标识与第一用户设备要访问的目标内容的标识相同;判断由所述第一数据节点和第二数据节点承载所述第二用户设备对所述目标内容的访问,是否满足通信质量的约束条件;若都不满足,则将所述目标内容备份到第三数据节点,其中,由所述第三数据节点承载所述第二用户设备对所述目标内容的访问满足所述通信质量的约束条件;向所述第二用户设备返回所述第三数据节点的地址,以使所述第二用户设备访问所述第二数据节点备份的所述目标内容。Optionally, after the processing unit backs up the target content to the second data node, the apparatus is further configured to: receive a second access request sent by the second user equipment, the second access request including the The identifier of the second user equipment and the identifier of the target content to be accessed by the second user equipment, wherein the identifier of the target content to be accessed by the second user equipment is the same as the identifier of the target content to be accessed by the first user equipment; Judging whether the access to the target content carried by the second user equipment by the first data node and the second data node satisfies the constraint condition of communication quality; if not, backup the target content to the second Three data nodes, wherein the access to the target content by the second user equipment carried by the third data node satisfies the communication quality constraints; return the third data node to the second user equipment address, so that the second user equipment accesses the target content backed up by the second data node.
可选地,所述处理单元在将所述目标内容备份到第二数据节点之后,所述的装置还用于:接收第二用户设备发送的第二访问请求,所述第二访问请求包括所述第二用户设备的标识以及所述第二用户设备要访问的目标内容的标识,其中所述第二用户设备要访问的目标内容的标识与第一用户设备要访问的目标内容的标识相同;判断由所述第一数据节点和第二数据节点承载所述第二用户设备对所述目标内容的访问,是否满足通信质量的约束条件;若都不满足,则将所述目标内容备份到第三数据节点,其中,由所述第三数据节点承载所述第二用户设备对所述目标内容的访问满足所述通信质量的约束条件;向所述第二用户设备返回所述第三数据节点的地址,以使所述第二用户设备访问所述第二数据节点备份的所述目标内容。Optionally, after the processing unit backs up the target content to the second data node, the apparatus is further configured to: receive a second access request sent by the second user equipment, the second access request including the The identifier of the second user equipment and the identifier of the target content to be accessed by the second user equipment, wherein the identifier of the target content to be accessed by the second user equipment is the same as the identifier of the target content to be accessed by the first user equipment; Judging whether the access to the target content carried by the second user equipment by the first data node and the second data node satisfies the constraint condition of communication quality; if not, backup the target content to the second Three data nodes, wherein the access to the target content by the second user equipment carried by the third data node satisfies the communication quality constraints; return the third data node to the second user equipment address, so that the second user equipment accesses the target content backed up by the second data node.
可选地,所述约束条件包括:第一用户设备访问第一数据节点中所述目标内容所需的访问时延不大于第一阈值;和/或第一用户设备访问第一数据节点中所述目标内容所消耗的频谱资源不大于第二阈值;和/或所述目标内容的备份数与请求访问目标内容的用户设备数之间的比值不大于第三阈值。Optionally, the constraints include: the access delay required by the first user equipment to access the target content in the first data node is not greater than a first threshold; and/or the first user equipment accesses the target content in the first data node Spectrum resources consumed by the target content are not greater than a second threshold; and/or a ratio between the number of backups of the target content and the number of user equipment requesting to access the target content is not greater than a third threshold.
可选地,处理器在将所述目标内容备份到第二数据节点之后,还用于:在第二数据节点上的目标内容未被访问的时间超过第五阈值后,指示所述第二数据节点删除所述目标内容。Optionally, after backing up the target content to the second data node, the processor is further configured to: indicate that the second data node The node deletes the target content.
第三方面,本申请提供一种服务器,包括:In a third aspect, the present application provides a server, including:
通信接口:用于与用户设备进行通信;Communication interface: used to communicate with user equipment;
存储器:用于存储计算机指令;memory: used to store computer instructions;
处理器:与所述存储器及所述通信接口通信连接,用于执行所述存储器中的计算机指令,以在执行计算机指令时执行第一方面所述的方法或第一方面的任意可能的实现中的方法。Processor: communicated with the memory and the communication interface, used to execute the computer instructions in the memory, so as to execute the method described in the first aspect or any possible implementation of the first aspect when executing the computer instructions Methods.
第四方面,本申请提供了一种计算机可读存储介质,该可读存储介质中存储有计算机指令,所述指令在计算机上运行时,使得计算机执行第一方面或第一方面的任意可能的实现中的方法。In a fourth aspect, the present application provides a computer-readable storage medium, in which computer instructions are stored, and when the instructions are run on a computer, the computer executes the first aspect or any possible method of the first aspect. method in implementation.
第五方面,本申请提供了一种计算机程序产品,所述计算机程序产品在计算机上运行时,使得计算机执行第一方面或第一方面的任意可能的实现中的方法。In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the method in the first aspect or any possible implementation of the first aspect.
附图说明Description of drawings
图1为本申请实施例所提供的一种通信系统示意图;FIG. 1 is a schematic diagram of a communication system provided by an embodiment of the present application;
图2为本申请实施例所提供的一种内容访问方法流程图;FIG. 2 is a flow chart of a content access method provided by an embodiment of the present application;
图3为本申请实施例所提供的一种内容访问方法流程图;FIG. 3 is a flowchart of a content access method provided by an embodiment of the present application;
图4为本申请实施例所提供的一种内容访问方法流程图;FIG. 4 is a flow chart of a content access method provided by an embodiment of the present application;
图5a为本申请实施例所提供的一种用户设备访问数据中心路径图;FIG. 5a is a path diagram of a user equipment accessing a data center provided by an embodiment of the present application;
图5b为本申请实施例所提供的一种用户设备访问数据中心路径图;FIG. 5b is a path diagram of a user equipment accessing a data center provided by an embodiment of the present application;
图6为本申请实施例所提供的一种SDN结构示意图;FIG. 6 is a schematic diagram of an SDN structure provided by an embodiment of the present application;
图7为本申请实施例所提供的一种内容备份方法流程图;FIG. 7 is a flow chart of a content backup method provided in an embodiment of the present application;
图8为本申请实施例所提供的一种内容访问装置示意图;FIG. 8 is a schematic diagram of a content access device provided by an embodiment of the present application;
图9为本申请实施例所提供的一种服务器示意图。FIG. 9 is a schematic diagram of a server provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本发明实施例中附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.
下面先介绍本申请涉及的一些概念:The following introduces some concepts involved in this application:
频隙(Frequency Slot,FS):是具有固定频率带宽的频率间隔。Frequency slot (Frequency Slot, FS): is a frequency interval with a fixed frequency bandwidth.
软件定义网络(Software Defined Network,SDN):是一种新型网络创新架构,通过将网络设备控制面与数据面分离开来,从而实现了网络流量的灵活控制,使网络作为管道变得更加智能。Software Defined Network (SDN): It is a new innovative network architecture. By separating the control plane of network equipment from the data plane, it realizes flexible control of network traffic and makes the network more intelligent as a pipeline.
图1示出本申请实施例中的通信系统100,该通信系统可以为基于SDN网络的系统,但本申请实施例不予限定。该系统包括用户设备101和服务器102以及数据节点103。服务器102用于:接收用户设备的读/写数据请求,并将用户设备的读/写数据转发至相应的数据节点。可选的,服务器102还可以确定网络的拓扑结构并对拓扑结构进行更新。数据节点103用于存储数据,根据用户设备的请求进行数据的读写操作。应理解在用户设备101和服务器102之间还应包括中间设备,例如交换机、路由器等。本发明实施例中所涉及的用户设备可以有多种实现方式,例如具有无线功能的手持设备、车载设备、可穿戴设备、计算设备等。FIG. 1 shows a communication system 100 in an embodiment of the present application. The communication system may be a system based on an SDN network, but this embodiment of the present application does not limit it. The system includes user equipment 101 and server 102 and data nodes 103 . The server 102 is configured to: receive the read/write data request of the user equipment, and forward the read/write data of the user equipment to corresponding data nodes. Optionally, the server 102 may also determine the topology of the network and update the topology. The data node 103 is used to store data, and perform data read and write operations according to the request of the user equipment. It should be understood that intermediate devices, such as switches and routers, should also be included between the user equipment 101 and the server 102 . The user equipment involved in the embodiments of the present invention may be implemented in various manners, for example, a handheld device with a wireless function, a vehicle-mounted device, a wearable device, a computing device, and the like.
基于图1示出的通信系统100,本申请实施例提供一种内容访问方法,参照图2,该方法包括:Based on the communication system 100 shown in FIG. 1, an embodiment of the present application provides a content access method. Referring to FIG. 2, the method includes:
步骤S201,服务器接收第一用户设备发送的第一访问请求,所述第一访问请求包括所述第一用户设备的标识以及所述第一用户设备要访问的目标内容的标识。其中,第一用户设备的标识,可以是用户设备的域名,也可以是用户设备的地址或者是其他可以将用户设备与其他用户设备相区分的信息。In step S201, the server receives a first access request sent by a first user equipment, where the first access request includes an identifier of the first user equipment and an identifier of target content to be accessed by the first user equipment. Wherein, the identifier of the first user equipment may be a domain name of the user equipment, an address of the user equipment, or other information that can distinguish the user equipment from other user equipment.
步骤S202,服务器根据所述目标内容的标识确定保存所述目标内容的第一数据节点。Step S202, the server determines the first data node storing the target content according to the identifier of the target content.
服务器本地磁盘上保存着内容的分布信息,其中,内容的分布信息可以是内容的标识与内容存储的数据节点的标识的映射关系,服务器即可根据目标内容的标识确定目标内容所存储的数据节点。The content distribution information is saved on the local disk of the server, where the content distribution information can be the mapping relationship between the content identifier and the identifier of the data node where the content is stored, and the server can determine the data node where the target content is stored according to the identifier of the target content .
步骤S203,服务器判断由所述第一数据节点承载所述第一用户设备对所述目标内容的访问,是否满足通信质量的约束条件。In step S203, the server judges whether the access to the target content carried by the first user equipment by the first data node satisfies the constraint condition of communication quality.
该约束条件可以为第一数据节点与第一用户设备之间通信质量的约束条件,也可以为第一数据节点的通信质量的约束条件,或者整个通信系统的通信质量的约束条件。该约束条件约束的参数包括但不限于为:通信时延、占用频谱资源数量、误码率、误信率、传输速度、第一用设备承载的访问数量等。The constraint condition may be a constraint condition of communication quality between the first data node and the first user equipment, or a constraint condition of communication quality of the first data node, or a constraint condition of communication quality of the entire communication system. Parameters constrained by the constraints include but are not limited to: communication delay, amount of occupied spectrum resources, bit error rate, error rate, transmission speed, number of visits carried by the first-use device, and the like.
步骤S204,若由所述第一数据节点承载所述第一用户设备对所述目标内容的访问,不满足通信质量的约束条件,服务器则将所述目标内容备份到第二数据节点,其中,由所述第二数据节点承载所述第一用户设备对所述目标内容的访问满足所述通信质量的约束条件。Step S204, if the access to the target content by the first user equipment carried by the first data node does not meet the communication quality constraints, the server backs up the target content to a second data node, wherein, The access to the target content carried by the first user equipment by the second data node satisfies the constraint condition of communication quality.
服务器可以从除第一数据节点之外的剩余数据节点中确定出满足通信约束条件的第二数据节点。当满足通信约束条件的数据节点有多个时,可以从该多个数据节点中任选一个作为第二数据节点,也可以选择离第一数据节点最近的数据节点作为第二数据节点,或者选择一个与第一用户设备之间的通信质量较好的数据节点作为第二数据节点。The server may determine the second data node satisfying the communication constraint condition from the remaining data nodes except the first data node. When there are multiple data nodes that meet the communication constraints, one of the multiple data nodes can be selected as the second data node, or the data node closest to the first data node can be selected as the second data node, or select A data node with better communication quality with the first user equipment is used as the second data node.
步骤S205,服务器向所述第一用户设备返回所述第二数据节点的地址,以使所述第一用户设备访问所述第二数据节点上备份的所述目标内容。Step S205, the server returns the address of the second data node to the first user equipment, so that the first user equipment accesses the target content backed up on the second data node.
本发明实施例中,通过服务器判断由所述第一数据节点承载所述第一用户设备对所述目标内容的访问,是否满足通信质量的约束条件,若不满足,服务器通过第一访问请求以及获得的内容拓扑信息计算出满足通信质量的约束条件的第二数据节点,并将目标内容备份到第二数据节点,以使所述第一用户设备访问所述第二数据节点上备份的所述目标内容,实现内容的迁移,可以提高网络设备的通信质量。另外,上述方案能够实时保证用户设备以较高的通信质量访问内容例如,第一时刻,第一数据节点或第二数据节点承载所述第一用户设备对所述目标内容的访问满足所述通信质量的约束条件,但随着网络中数据节点或路由节点的通信状态的变化,在第二时刻第一用户设备再次访问该目标内容时,第一数据节点、第二数据节点承载所述第一用户设备对所述目标内容的访问不满足所述通信质量的约束条件,服务器可以将目标内容备份至另一数据节点,该数据节点承载所述第一用户设备对所述目标内容的访问满足所述通信质量的约束条件。In the embodiment of the present invention, the server judges whether the access to the target content carried by the first user equipment carried by the first data node satisfies the constraint condition of communication quality, and if not, the server passes the first access request and calculating the second data node that satisfies the constraint condition of communication quality based on the obtained content topology information, and backing up the target content to the second data node, so that the first user equipment can access the Target content, realize the migration of content, and improve the communication quality of network equipment. In addition, the above solution can ensure that user equipment accesses content with high communication quality in real time. For example, at the first moment, the first data node or the second data node bears the first user equipment's access to the target content to satisfy the communication However, as the communication status of data nodes or routing nodes in the network changes, when the first user equipment accesses the target content again at the second moment, the first data node and the second data node carry the first The user equipment's access to the target content does not meet the communication quality constraints, and the server may back up the target content to another data node, and the data node bears that the first user equipment's access to the target content meets the requirements. Constraints on communication quality.
在用户设备要访问的内容已经备份至一个数据节点之后,服务器可以根据用户设备的访问需求继续将内容备份至其他数据节点,以满足用户设备的访问需求。例如,在步骤S204将所述目标内容备份到第二数据节点之后,如图3所示,还包括:After the content to be accessed by the user equipment has been backed up to a data node, the server can continue to back up the content to other data nodes according to the access requirements of the user equipment, so as to meet the access requirements of the user equipment. For example, after backing up the target content to the second data node in step S204, as shown in FIG. 3 , further includes:
步骤S301,服务器接收第二用户设备发送的第二访问请求,其中,第二访问请求包括的所述第二用户设备要访问的目标内容的标识与第一用户设备要访问的目标内容的标识相同。Step S301, the server receives a second access request sent by the second user equipment, wherein the identifier of the target content to be accessed by the second user equipment included in the second access request is the same as the identifier of the target content to be accessed by the first user equipment .
步骤S302,服务器判断由所述第一数据节点和第二数据节点承载所述第二用户设备对所述目标内容的访问,是否满足通信质量的约束条件。In step S302, the server judges whether the access to the target content carried by the second user equipment by the first data node and the second data node satisfies the constraint condition of communication quality.
步骤S303,若由所述第一数据节点和第二数据节点承载所述第二用户设备对所述目标内容的访问都不满足通信质量的约束条件,服务器则将所述目标内容备份到满足第二用户设备对所述目标内容的访问的通信质量的约束条的第三数据节点,并向所述第二用户设备返回所述第三数据节点的地址,以使所述第二用户设备访问所述第三数据节点备份的所述目标内容。Step S303, if neither the access to the target content by the second user equipment carried by the first data node nor the second data node satisfies the constraint condition of communication quality, the server backs up the target content to a place that satisfies the first A third data node that is restricted by the communication quality of the user equipment's access to the target content, and return the address of the third data node to the second user equipment, so that the second user equipment accesses the target content The target content backed up by the third data node.
本发明实施例提供的方法,在确定由所述第一数据节点承载所述第一用户设备对所述目标内容的访问不满足通信质量的约束条件之后,不是将用户设备要访问的内容备份至一个数据节点就可以了,当实时接收的用户设备访问请求,目标内容备份的数据节点不满足通信质量的要求时,要一直备份直到目标内容备份的数据节点承载所述第一用户设备对所述目标内容的访问不满足通信质量的约束条件为止。In the method provided by the embodiment of the present invention, after it is determined that the first user equipment's access to the target content carried by the first data node does not meet the communication quality constraints, the content to be accessed by the user equipment is not backed up to One data node is enough. When the user equipment access request is received in real time, and the data node backed up by the target content does not meet the communication quality requirements, it must be backed up until the data node backed up by the target content carries the first user equipment to the Access to the target content does not meet the constraints of communication quality.
可选地,步骤S302中的约束条件可以有多种实现方式,包括但不限于以下:Optionally, the constraints in step S302 can be implemented in multiple ways, including but not limited to the following:
条件a、第一用户设备访问第一数据节点中所述目标内容所需的访问时延不大于第一阈值。该第一阈值可以为一预设值,或者,服务器可以根据当前的网络状态或用户设备的优先级对该第一阈值进行更新。Condition a: The access delay required by the first user equipment to access the target content in the first data node is not greater than a first threshold. The first threshold may be a preset value, or the server may update the first threshold according to the current network status or the priority of the user equipment.
服务器可通过网络的拓扑结构估算第一用户设备访问第一数据节点所需访问时延,例如,该时延可以通过以下公式计算:The server can estimate the access delay required by the first user equipment to access the first data node through the topology of the network. For example, the delay can be calculated by the following formula:
Lat(u,d)=dis(u,d)/s+h(u,d)×LATh Lat(u,d)=dis(u,d)/s+h(u,d)×LAT h
其中,Lat(u,d)为第一用户设备访问第一数据节点所需访问时延,dis(u,d)和h(u,d)分别为用户设备到数据节点的路径的距离和跳数,s为光纤中光的传播速度,LATh为每一跳节点的平均处理时延。Among them, Lat(u,d) is the access delay required by the first user equipment to access the first data node, dis(u,d) and h(u,d) are the distance and hop distance of the path from the user equipment to the data node, respectively. , s is the propagation speed of light in the fiber, and LAT h is the average processing delay of each hop node.
其中,服务器获取网络的拓扑结构可以有多种方式,包括但不限于:其一,网络的拓扑结构保存在服务器本地磁盘中,服务器接收到访问请求后直接从本地磁盘调用。其二,网络的拓扑结构保存在另一个服务器中,服务器向外部控制服务器发送请求,外部服务器将内容发布信息以及网络拓扑返回给服务器。其三,服务器实时探测并生成的网络的拓扑结构。There are many ways for the server to obtain the topology of the network, including but not limited to: first, the topology of the network is stored in the local disk of the server, and the server directly invokes it from the local disk after receiving the access request. Second, the topology of the network is stored in another server, and the server sends a request to the external control server, and the external server returns content release information and network topology to the server. Third, the server detects and generates the topology of the network in real time.
条件b、第一用户设备访问第一数据节点中所述目标内容所消耗的频谱资源不大于第二阈值。Condition b: Spectrum resources consumed by the first user equipment to access the target content in the first data node are not greater than a second threshold.
该频谱资源可以是第一用户设备访问第一数据节点占用第一数据节点的频谱资源,当第一用户占用的频谱资源过多时,将影响第一数据节点承载其它用户设备的访问。该频谱资源也可以是第一用户设备访问第一数据节点占用整个网络的频谱资源,例如,该频谱资源可以由下式计算:The spectrum resources may be the spectrum resources occupied by the first data node when the first user equipment accesses the first data node. When too many spectrum resources are occupied by the first user, it will affect the first data node to bear the access of other user equipments. The spectrum resource may also be the spectrum resource occupied by the entire network when the first user equipment accesses the first data node. For example, the spectrum resource may be calculated by the following formula:
其中,FSOc为第一用户设备访问目标内容所消耗的频谱资源,br为第一用户设备访问占用的带宽大小,C(dis(r)min)表示当路径长度为dis时采用最高阶调制格式中一个频隙的数据速率。Among them, FSO c is the spectrum resource consumed by the first user equipment to access the target content, b r is the bandwidth occupied by the first user equipment to access, C(dis(r) min ) indicates that the highest order modulation is adopted when the path length is dis The data rate for one frequency slot in the format.
条件c、所述目标内容的备份数与请求访问目标内容的用户设备数之间的比值不大于第三阈值。Condition c, the ratio between the number of backups of the target content and the number of user devices requesting to access the target content is not greater than the third threshold.
所述目标内容的备份数表示包含目标内容的数据节点数,若目标内容的备份数与请求访问目标内容的用户设备数之间的比值过大,表明每个保存目标内容的数据节点可能承载过多的访问,无法保障第一用户设备的访问的质量。The number of backups of the target content represents the number of data nodes containing the target content. If the ratio between the number of backups of the target content and the number of user devices requesting access to the target content is too large, it indicates that each data node storing the target content may be overloaded. If there are too many visits, the quality of the visits of the first user equipment cannot be guaranteed.
该目标内容的备份数和用户对目标内容的访问请求数之间的比值的一种可能的计算方式为:A possible calculation method of the ratio between the number of backups of the target content and the number of user access requests to the target content is:
Ba(c)=Ng(Rc/∑c∈CRc)×(ntotal/nc)Ba(c)=Ng(R c /∑ c∈C R c )×(n total /n c )
其中,Ba(c)为表示目标内容的备份数和用户对目标内容的访问请求数之间的比值,N为敏感系数,Rc为当前目标内容的备份数,ntotal为侦测单位时间内总用户请求数,nc为侦测单位时间内对目标内容的访问请求数。Among them, Ba(c) is the ratio between the number of backups of the target content and the number of user access requests to the target content, N is the sensitivity coefficient, R c is the number of backups of the current target content, and n total is the detection unit time The total number of user requests, n c is the number of access requests to the target content per detection unit time.
应理解,约束条件可以为上述条件a、b、c中两项的结合,或为条件a、b、c三项的结合。多个条件可以有以下两种结合方式:方式1、多个条件同时满足,约束条件才满足。例如,约束条件为条件a、b的组合,只有当条件a、b同时满足时,该约束条件才满足。It should be understood that the constraint conditions may be a combination of two of the above conditions a, b, and c, or a combination of the three conditions of a, b, and c. Multiple conditions can be combined in the following two ways: Mode 1. Only when multiple conditions are satisfied at the same time can the constraint conditions be satisfied. For example, the constraint condition is a combination of conditions a and b, and the constraint condition is satisfied only when conditions a and b are satisfied at the same time.
方式2、对多个条件所关注的表征通信质量的参数进行加权求和,根据加权和来衡量通信质量是否满足要求。Method 2: Carry out weighted summation of the parameters representing the communication quality concerned by multiple conditions, and measure whether the communication quality meets the requirements according to the weighted sum.
例如,可以综合第一用户设备访问第一数据节点中所述目标内容所需的访问时延、目标内容的备份数和用户对目标内容的访问请求数来确定通信质量是否满足要求。以下公式为上述两项参数的加权和值:For example, the access delay required by the first user equipment to access the target content in the first data node, the number of backups of the target content, and the number of user access requests to the target content can be combined to determine whether the communication quality meets the requirements. The following formula is the weighted sum of the above two parameters:
其中,Trigger为加权和,Lat(ri)为用户设备访问数据节点的访问时延,LatTL为传播时延,n为目标内容的访问请求数,Ba(c)为表示目标内容的备份数和用户对目标内容的访问请求数之间的比值。Among them, Trigger is the weighted sum, Lat(ri) is the access delay of the user equipment to access the data node, Lat TL is the propagation delay, n is the number of access requests for the target content, and Ba(c) is the number of backups representing the target content and the number of user access requests for the target content.
若该加权和不大于第五阈值,则表征该数据节点满足通信质量的要求,否则,不满足通信质量的要求。If the weighted sum is not greater than the fifth threshold, it means that the data node meets the communication quality requirement, otherwise, it does not meet the communication quality requirement.
在用户设备要访问的内容已经备份至一个数据节点之后,服务器可以根据用户设备的访问需求同步将内容备份至其他数据节点,以满足用户设备的访问需求。例如,在步骤S204将所述目标内容备份到第二数据节点之后,如图4所示,还包括:After the content to be accessed by the user equipment has been backed up to a data node, the server can synchronously back up the content to other data nodes according to the access requirements of the user equipment, so as to meet the access requirements of the user equipment. For example, after the target content is backed up to the second data node in step S204, as shown in FIG. 4 , further includes:
步骤S401,服务器接收第三用户设备发送的第三访问请求以及第四用户设备发送的第四访问请求,所述第三访问请求包括第三用户设备的标识以及所述目标内容的标识,所述第四访问请求包括所述第四用户设备的标识以及所述目标内容的标识。Step S401, the server receives the third access request sent by the third user equipment and the fourth access request sent by the fourth user equipment, the third access request includes the identifier of the third user equipment and the identifier of the target content, the The fourth access request includes the identifier of the fourth user equipment and the identifier of the target content.
步骤S402,服务器判断由所述第一数据节点承载所述第三用户设备或第四用户设备对所述目标内容的访问,是否满足通信质量的约束条件,以及判断第二数据节点承载所述第三用户设备或第四用户设备对所述目标内容的访问,是否满足通信质量的约束条件,若都不满足,则确定第三数据节点以及第四数据节点,由所述第三数据节点承载所述第三用户设备对所述目标内容的访问以及由所述第四数据节点承载所述第四用户设备对所述目标内容的访问都满足通信质量的约束条件,且第一数据节点的目标内容备份到第三数据节点所需时延与第一数据节点的目标内容备份到第四数据节点所需时延的差小于第四阈值。Step S402, the server judges whether the access to the target content carried by the third user equipment or the fourth user equipment by the first data node satisfies the constraint condition of communication quality, and judges whether the second data node carries the second data node. Whether the access of the target content by the third user equipment or the fourth user equipment satisfies the constraint condition of communication quality, if not, determine the third data node and the fourth data node, and the third data node carries the Both the access of the third user equipment to the target content and the access of the fourth user equipment to the target content carried by the fourth data node meet the constraint conditions of communication quality, and the target content of the first data node The difference between the time delay required for backing up to the third data node and the time delay required for backing up the target content of the first data node to the fourth data node is less than a fourth threshold.
步骤S403,服务器将所述目标内容备份到第三数据节点以及第四数据节点;向所述第三用户设备返回所述第三数据节点的地址,以使所述第三用户设备访问所述第三数据节点备份的所述目标内容,以及向所述第四用户设备返回所述第四数据节点的地址,以使所述第四用户设备访问所述第四数据节点备份的所述目标内容。Step S403, the server backs up the target content to the third data node and the fourth data node; returns the address of the third data node to the third user equipment, so that the third user equipment can access the third data node The target content backed up by three data nodes, and returning the address of the fourth data node to the fourth user equipment, so that the fourth user equipment accesses the target content backed up by the fourth data node.
本发明实施例提供的方法,在确定第三数据节点和第四数据节点时,不是仅确定由所述第三数据节点承载所述第三用户设备对所述目标内容的访问以及由所述第四数据节点承载所述第四用户设备对所述目标内容的访问都满足通信质量的约束条件,还需要确定第一数据节点的目标内容备份到第三数据节点所需时延与第一数据节点的目标内容备份到第四数据节点所需时延的差小于第四阈值,当所述时延的差小于第四阈值时,第三数据节点和第四数据节点满足同步备份条件。In the method provided by the embodiment of the present invention, when determining the third data node and the fourth data node, it is not only determined that the third data node bears the third user equipment's access to the target content and the Four data nodes bear the fourth user equipment's access to the target content to meet the constraints of communication quality, and it is also necessary to determine the time delay required for the backup of the target content of the first data node to the third data node and the time delay required by the first data node The time delay difference required for backing up the target content of the target content to the fourth data node is less than the fourth threshold, and when the time delay difference is less than the fourth threshold, the third data node and the fourth data node meet the synchronous backup condition.
为了更好地理解本申请实施例的内容访问方法,下面介绍本申请实施例技术方案的一个应用实例,参考图5a和图5b。In order to better understand the content access method of the embodiment of the present application, an application example of the technical solution of the embodiment of the present application is introduced below, referring to FIG. 5a and FIG. 5b.
考虑在数据中心的光网络中,用户的请求、应用可以分布在不同地理位置的数据中心。当区域2用户集中请求访问位于数据中心D1中的内容A和数据中心D2中的内容B,服务器通过通信接口接收用户的访问请求,服务器本地磁盘中保存的内容的分布信息以及获得的网络的拓扑结构,服务器中控制器根据用户请求能够收集流量信息,服务器即可根据流量信息、网络的拓扑结构计算流量转发的路径,并将路径发送给用户,用户根据路径访问内容A和内容B,访问路径如图5a所示,但是数据中心D1和D2距离区域2用户较远,为满足用户的需求,需要建立一条很长的链路、用户的访问时延较大,也会消耗过多的频谱资源,因此为满足通信质量,需要根据用户请求对内容进行调整。Consider that in the optical network of the data center, user requests and applications can be distributed in data centers in different geographic locations. When users in area 2 centrally request access to content A in data center D1 and content B in data center D2, the server receives the user's access request through the communication interface, the distribution information of the content stored in the server's local disk, and the obtained network topology structure, the controller in the server can collect traffic information according to user requests, and the server can calculate the path of traffic forwarding according to the traffic information and network topology, and send the path to the user. The user accesses content A and content B according to the path. The access path is shown in Figure 5a, but data centers D 1 and D 2 are far away from users in area 2. In order to meet the needs of users, a very long link needs to be established. Therefore, in order to meet the communication quality, the content needs to be adjusted according to the user's request.
调整后的路径如图5b所示,拓展服务器的通信中关于内容管理的应用程序接口,其中,服务器的通信接口包括南向和北向接口,在网络和内容调整的过程中数据传输流程如图6所示,当区域2用户集中请求访问位于数据中心D1中的内容A和数据中心D2中的内容B,服务器通过南向接口将网络中流量信息发送给服务器中的网络控制器,将内容的标识发送至内容控制器,网络控制器中包括流量转发路径、链路的状态信息,网络控制器根据接收的流量信息及链路的状态信息计算流量转发路径是否满足通信质量的约束条件,若不满足,需要重新计算转发路径,服务器的内容控制器接收到目标内容的标识后,通过北向接口向服务器的核心控制器查询服务器中保存的内容的等级、最大备份数、更新频率、最后更新时间等属性信息及通过内容的分布信息查询目标内容所在的数据中心、当前备份数、更新的数据节点等信息,通过这些信息计算数据中心D1和D2是否能承载用户访问内容A和B时的通信质量的要求,即是否满足访问时延、消耗的频谱资源以及内容备份数与用户访问请求数的比值的要求,若不满足通信质量要求,内容控制器通过以下步骤对内容进行调整,参见图7:The adjusted path is shown in Figure 5b, which expands the application program interface for content management in the communication of the server. Among them, the communication interface of the server includes southbound and northbound interfaces, and the data transmission process in the process of network and content adjustment is shown in Figure 6 As shown, when users in area 2 centrally request access to content A in data center D1 and content B in data center D2, the server sends traffic information in the network to the network controller in the server through the southbound interface, and the content The identification of the traffic is sent to the content controller. The network controller includes the traffic forwarding path and link status information. The network controller calculates whether the traffic forwarding path satisfies the communication quality constraints based on the received traffic information and link status information. If If it is not satisfied, the forwarding path needs to be recalculated. After receiving the identification of the target content, the content controller of the server queries the core controller of the server through the northbound interface to query the level of the content stored in the server, the maximum number of backups, the update frequency, and the last update time Attribute information such as content and information such as the data center where the target content is located, the number of current backups, and updated data nodes are queried through the distribution information of the content. Based on these information, it is calculated whether data centers D 1 and D 2 can carry the content when users access content A and B. Communication quality requirements, that is, whether the requirements of access delay, consumed spectrum resources, and the ratio of the number of content backups to the number of user access requests are met. If the communication quality requirements are not met, the content controller adjusts the content through the following steps, see Fig. 7:
步骤S701、计算除数据中心D1和D2以外的满足用户访问时延的数据中心的备选集合C1;Step S701, calculating the candidate set C 1 of data centers satisfying the user access delay except data centers D 1 and D 2 ;
步骤S702、通过验证从数据中心D1中将内容A分别备份到集合中任意两个数据中心的时延之差满足阈值要求以及将数据中心D2中将内容B分别备份到这两个数据中心的时延之差满足阈值要求,得到新的备选数据中心集合C2。Step S702, by verifying that the delay difference between backing up content A from data center D1 to any two data centers in the set meets the threshold requirement and backing up content B from data center D2 to these two data centers respectively The difference in time delay satisfies the threshold requirement, and a new set of candidate data centers C 2 is obtained.
步骤S703、计算用户访问备选数据中心集合C2中每个数据中心所消耗的频谱资源FSOc的值,并将该值按从小到大顺序排列,得到备选数据中心集合C3。Step S703. Calculate the value of the spectrum resource FSO c consumed by the user to visit each data center in the candidate data center set C2 , and arrange the values in ascending order to obtain the candidate data center set C3 .
步骤S704、将内容A备份到备选数据中心集合C3以及将内容B备份到备选数据中心集合C3,通过下式检测负载是否会过高:Step S704, back up content A to the set of candidate data centers C 3 and back up content B to the set of candidate data centers C 3 , and check whether the load will be too high by the following formula:
其中,AVc是数据中心增加的平均负载值,CBPSK是采用低阶调制方式BPSK时一个频隙的速率容量,Nc是内容c的备份数目。Among them, AV c is the average load value added by the data center, C BPSK is the rate capacity of one frequency slot when the low-order modulation method BPSK is adopted, and N c is the backup number of content c.
若AVc超过数据中心可接收到阈值,则不能将内容备份到该数据中心,执行步骤S703,否则,进入步骤S705。If the AV c exceeds the data center receivable threshold, the content cannot be backed up to the data center, and step S703 is executed; otherwise, step S705 is performed.
步骤S705、根据步骤S704所确定的备选数据中心集合D3,将内容A和内容B进行备份。Step S705, according to the candidate data center set D 3 determined in step S704, back up content A and content B.
网络控制器通过北向接口将更新的流量路径、链路的状态上传到核心控制器以及内容控制器通过北向接口将内容的更新情况上传至核心控制器,核心控制器通过接收到的更新信息对拓扑结构进行更新。服务器将数据中心D3的地址发送给区域2用户,用户根据数据中心D3的地址对内容A和内容B进行访问。The network controller uploads the updated traffic path and link status to the core controller through the northbound interface, and the content controller uploads the updated content to the core controller through the northbound interface. The core controller updates the topology through the received update information. The structure is updated. The server sends the address of data center D3 to the user in area 2, and the user accesses content A and content B according to the address of data center D3 .
本发明实施例还提供了一种内容访问装置,参见图8,该装置包括:The embodiment of the present invention also provides a content access device, see Figure 8, the device includes:
接收单元801,用于接收第一用户设备发送的第一访问请求,所述第一访问请求包括所述第一用户设备的标识以及所述第一用户设备要访问的目标内容的标识;A receiving unit 801, configured to receive a first access request sent by a first user equipment, where the first access request includes an identifier of the first user equipment and an identifier of target content to be accessed by the first user equipment;
处理单元802,用于根据所述目标内容的标识确定保存所述目标内容的第一数据节点,以及判断由所述第一数据节点承载所述第一用户设备对所述目标内容的访问,是否满足通信质量的约束条件,若不满足,则将所述目标内容备份到第二数据节点,其中,由所述第二数据节点承载所述第一用户设备对所述目标内容的访问满足所述约束条件;The processing unit 802 is configured to determine, according to the identifier of the target content, a first data node that stores the target content, and determine whether the first data node bears the access to the target content by the first user equipment. Satisfy the constraint condition of communication quality, if not, back up the target content to a second data node, wherein the access to the target content carried by the first user equipment by the second data node satisfies the Restrictions;
发送单元803,用于向所述第一用户设备返回所述第二数据节点的地址,以使所述第一用户设备访问所述第二数据节点上备份的所述目标内容。The sending unit 803 is configured to return the address of the second data node to the first user equipment, so that the first user equipment accesses the target content backed up on the second data node.
可选地,所述处理单元在将所述目标内容备份到第二数据节点之后,所述的装置还用于:接收第二用户设备发送的第二访问请求,所述第二访问请求包括所述第二用户设备的标识以及所述第二用户设备要访问的目标内容的标识,其中所述第二用户设备要访问的目标内容的标识与第一用户设备要访问的目标内容的标识相同;判断由所述第一数据节点和第二数据节点承载所述第二用户设备对所述目标内容的访问,是否满足通信质量的约束条件;若都不满足,则将所述目标内容备份到第三数据节点,其中,由所述第三数据节点承载所述第二用户设备对所述目标内容的访问满足所述通信质量的约束条件;向所述第二用户设备返回所述第三数据节点的地址,以使所述第二用户设备访问所述第二数据节点备份的所述目标内容。Optionally, after the processing unit backs up the target content to the second data node, the apparatus is further configured to: receive a second access request sent by the second user equipment, the second access request including the The identifier of the second user equipment and the identifier of the target content to be accessed by the second user equipment, wherein the identifier of the target content to be accessed by the second user equipment is the same as the identifier of the target content to be accessed by the first user equipment; Judging whether the access to the target content carried by the second user equipment by the first data node and the second data node satisfies the constraint condition of communication quality; if not, backup the target content to the second Three data nodes, wherein the access to the target content by the second user equipment carried by the third data node satisfies the communication quality constraints; return the third data node to the second user equipment address, so that the second user equipment accesses the target content backed up by the second data node.
可选地,所述处理单元在将所述目标内容备份到第二数据节点之后,所述的装置还用于:接收第二用户设备发送的第二访问请求,所述第二访问请求包括所述第二用户设备的标识以及所述第二用户设备要访问的目标内容的标识,其中所述第二用户设备要访问的目标内容的标识与第一用户设备要访问的目标内容的标识相同;判断由所述第一数据节点和第二数据节点承载所述第二用户设备对所述目标内容的访问,是否满足通信质量的约束条件;若都不满足,则将所述目标内容备份到第三数据节点,其中,由所述第三数据节点承载所述第二用户设备对所述目标内容的访问满足所述通信质量的约束条件;向所述第二用户设备返回所述第三数据节点的地址,以使所述第二用户设备访问所述第二数据节点备份的所述目标内容。Optionally, after the processing unit backs up the target content to the second data node, the apparatus is further configured to: receive a second access request sent by the second user equipment, the second access request including the The identifier of the second user equipment and the identifier of the target content to be accessed by the second user equipment, wherein the identifier of the target content to be accessed by the second user equipment is the same as the identifier of the target content to be accessed by the first user equipment; Judging whether the access to the target content carried by the second user equipment by the first data node and the second data node satisfies the constraint condition of communication quality; if not, backup the target content to the second Three data nodes, wherein the access to the target content by the second user equipment carried by the third data node satisfies the communication quality constraints; return the third data node to the second user equipment address, so that the second user equipment accesses the target content backed up by the second data node.
可选地,所述约束条件包括:第一用户设备访问第一数据节点中所述目标内容所需的访问时延不大于第一阈值;和/或第一用户设备访问第一数据节点中所述目标内容所消耗的频谱资源不大于第二阈值;和/或所述目标内容的备份数与请求访问目标内容的用户设备数之间的比值不大于第三阈值。Optionally, the constraints include: the access delay required by the first user equipment to access the target content in the first data node is not greater than a first threshold; and/or the first user equipment accesses the target content in the first data node Spectrum resources consumed by the target content are not greater than a second threshold; and/or a ratio between the number of backups of the target content and the number of user equipment requesting to access the target content is not greater than a third threshold.
可选地,处理器在将所述目标内容备份到第二数据节点之后,还用于:在第二数据节点上的目标内容未被访问的时间超过第五阈值后,指示所述第二数据节点删除所述目标内容。Optionally, after backing up the target content to the second data node, the processor is further configured to: indicate that the second data node The node deletes the target content.
上述内容访问装置各功能单元的实现方式可以参见图2所述一种内容访问方法中的步骤实现。The implementation manner of each functional unit of the above-mentioned content access device can be realized by referring to the steps in a content access method shown in FIG. 2 .
本发明实施例还提供了一种服务器,参见图9,该服务器包括:The embodiment of the present invention also provides a server, see Figure 9, the server includes:
通信接口901,用于与网络设备进行通信;A communication interface 901, configured to communicate with network devices;
存储器902,用于存储计算机指令;memory 902 for storing computer instructions;
处理器903,与所述存储器以及所述通信接口通信连接,用于执行所述存储器中的计算机指令,以在执行所述计算机指令时执行第一方面或第一方面的任意可能的实现中的方法。A processor 903, connected in communication with the memory and the communication interface, configured to execute the computer instructions in the memory, so as to execute the first aspect or any possible implementation of the first aspect when executing the computer instructions method.
上述服务器各功能模块的实现方式可以参见图2所述一种网页跳转方法中的步骤实现。The implementation of each functional module of the above server can be realized by referring to the steps in a web page jumping method described in FIG. 2 .
本发明实施例还提供了一种计算机可读存储介质,该存储介质用于,存储计算机指令,所述指令在计算机上运行时,使得计算机执行第一方面或第一方面的任意可能的实现中的方法。An embodiment of the present invention also provides a computer-readable storage medium, which is used for storing computer instructions, and when the instructions are run on the computer, the computer executes the first aspect or any possible implementation of the first aspect. Methods.
本发明实施例还提供了一种计算机程序产品,该计算机程序产品用于,在计算机上运行时,使得计算机执行第一方面或第一方面的任意可能的实现中的方法。An embodiment of the present invention also provides a computer program product, which is configured to, when running on a computer, cause the computer to execute the method in the first aspect or any possible implementation of the first aspect.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810388192.6A CN110417829A (en) | 2018-04-26 | 2018-04-26 | A content access method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810388192.6A CN110417829A (en) | 2018-04-26 | 2018-04-26 | A content access method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110417829A true CN110417829A (en) | 2019-11-05 |
Family
ID=68345713
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810388192.6A Pending CN110417829A (en) | 2018-04-26 | 2018-04-26 | A content access method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110417829A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102150150A (en) * | 2008-09-11 | 2011-08-10 | 微软公司 | Techniques for resource location and migration across data centers |
| CN102300196A (en) * | 2011-05-13 | 2011-12-28 | 中兴通讯股份有限公司 | Method and device for user data roaming |
| US20140173229A1 (en) * | 2012-12-17 | 2014-06-19 | International Business Machines Corporation | Method and Apparatus for Automated Migration of Data Among Storage Centers |
| CN105025538A (en) * | 2014-04-30 | 2015-11-04 | 中国移动通信集团公司 | Method and device for controlling migration of user equipment between networks |
-
2018
- 2018-04-26 CN CN201810388192.6A patent/CN110417829A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102150150A (en) * | 2008-09-11 | 2011-08-10 | 微软公司 | Techniques for resource location and migration across data centers |
| CN102300196A (en) * | 2011-05-13 | 2011-12-28 | 中兴通讯股份有限公司 | Method and device for user data roaming |
| US20140173229A1 (en) * | 2012-12-17 | 2014-06-19 | International Business Machines Corporation | Method and Apparatus for Automated Migration of Data Among Storage Centers |
| CN105025538A (en) * | 2014-04-30 | 2015-11-04 | 中国移动通信集团公司 | Method and device for controlling migration of user equipment between networks |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10129101B2 (en) | Application driven and adaptive unified resource management for data centers with Multi-Resource Schedulable Unit (MRSU) | |
| WO2022021176A1 (en) | Cloud-edge collaborative network resource smooth migration and restructuring method and system | |
| WO2018000991A1 (en) | Data balancing method and device | |
| CN114691599A (en) | Synthesis of network on chip (NoC) using performance constraints and targets | |
| CN104750558A (en) | Resource allocation management method and device of hierarchical quota system | |
| JP2003030012A5 (en) | ||
| CN112822050A (en) | Method and apparatus for deploying network slices | |
| CN111182037B (en) | A kind of mapping method and device of virtual network | |
| CN110825704B (en) | A method for reading data, a method for writing data, and a server | |
| JP2016024500A (en) | Distributed processing program, distributed processing management device, and distributed processing method | |
| WO2023115829A1 (en) | Edge computing resource allocation method, apparatus and device, and storage medium | |
| CN114095075B (en) | Optical network fault recovery method based on service customization demand perception | |
| CN104917659B (en) | A kind of mapping method of virtual network based on virtual network connection performance | |
| CN111490948A (en) | Route configuration method, device and medium for SIRO switching system | |
| CN112867088A (en) | Dynamic adjustment method and system for cloud-edge-end communication architecture | |
| CN112469001A (en) | Application migration method and device, electronic equipment and storage medium | |
| CN119806796B (en) | Resource scheduling method, device and system for elastic search cluster | |
| CN103440182A (en) | Adaptive allocation method and device and adaptive replica consistency method | |
| CN102480502B (en) | I/O load equilibrium method and I/O server | |
| CN115834587A (en) | Method and device for selecting target storage server and electronic equipment | |
| CN110597598A (en) | A control method for virtual machine migration in cloud environment | |
| CN110417829A (en) | A content access method and device | |
| KR20210112930A (en) | Apparatus for managing virtual network function and method for the same | |
| US20170346699A1 (en) | Method and apparatus for predicting storage distance | |
| CN113472591B (en) | Method and device for determining service performance |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191105 |