CN109151009B - CDN node distribution method and system based on MEC - Google Patents

CDN node distribution method and system based on MEC Download PDF

Info

Publication number
CN109151009B
CN109151009B CN201810903874.6A CN201810903874A CN109151009B CN 109151009 B CN109151009 B CN 109151009B CN 201810903874 A CN201810903874 A CN 201810903874A CN 109151009 B CN109151009 B CN 109151009B
Authority
CN
China
Prior art keywords
cdn
cdn node
load balancer
node
dns request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810903874.6A
Other languages
Chinese (zh)
Other versions
CN109151009A (en
Inventor
张勍
冯毅
盛煜
朱常波
李先达
单丽雅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810903874.6A priority Critical patent/CN109151009B/en
Publication of CN109151009A publication Critical patent/CN109151009A/en
Application granted granted Critical
Publication of CN109151009B publication Critical patent/CN109151009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1021Server selection for load balancing based on client or server locations
    • 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
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Abstract

The embodiment of the invention provides a CDN node distribution method and system based on MEC, relates to the field of communication, and is used for distributing CDN nodes with smaller time delay for users under an MEC framework. The method comprises the following steps: the method comprises the following steps that an MEC server receives a DNS request sent by a user terminal and sends the DNS request and an identifier of a nearest CDN node to a CDN global load balancer; the CDN global load balancer acquires an identifier of a CDN node close to the CDN node according to an identifier of the nearest CDN node and prestored CDN node topology information, then selects an optimal CDN node according to the topological distance between a target CDN node and the nearest CDN node and the prestored load rate of each CDN node, and sends the identifier of the optimal CDN node to the MEC server so as to send the prestored network protocol IP address corresponding to the identifier of the optimal CDN node to the user terminal; the target CDN nodes include a closest CDN node and a closer CDN node.

Description

CDN node distribution method and system based on MEC
Technical Field
The invention relates to the field of communication, in particular to a CDN node distribution method and system based on MEC.
Background
The CDN (Content Delivery Network) technology is to place node servers at various places of a Network, so as to form an intelligent virtual Network architecture based on the existing internet. Through the CDN technology, the content of the website can be delivered to the edge of the network closest to the user, so that the user can obtain the required content nearby, the response speed of the user for accessing the website can be improved, and the user experience is improved. In the conventional CDN technology, the node server allocation scheme is mainly implemented by using a dynamic DNS technology. In the dynamic DNS technique, it is assumed that a user client and a local DNS (Domain Name System) server used by the user client are in the same area, and a correspondence table including an IP address and a home Domain is constructed according to known IP (Internet Protocol) Domain information. When CDN node allocation is carried out, the IP address of the CDN node closest to the user client in the region is issued for the user client by inquiring the region to which the IP address of the local DNS server belongs.
With the development of Mobile internet services and network technologies, an MEC (Mobile Edge Computing) architecture begins to appear, and richer Mobile network services can be implemented by using the MEC architecture. In the architecture, the connection between the mobile phone user and the CDN node is transferred by the MEC server, and since the MEC server is closer to the user than an EPC (Evolved Packet Core, Core network element), the delay when the user accesses the service to the CDN node may also be lower. In the framework, a CDN node closest to a user is actually a CDN node closest to an MEC server serving the user, because the MEC server is usually sunk at the edge of a mobile network, the actual topological location of the MEC server may be far from a local DNS server, and if a conventional CDN node allocation method is adopted, a CDN global load balancer still selects a CDN node for the user according to the IP address home region of the local DNS server, and a CDN node closer to the MEC server topology serving the user cannot be effectively selected for the user under the framework.
Disclosure of Invention
The embodiment of the invention provides a CDN node distribution method and system based on MEC, which are used for distributing CDN nodes with smaller time delay for users under the MEC architecture.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for CDN node allocation based on MEC is provided, including:
the method comprises the steps that an MEC server receives a Domain Name System (DNS) request sent by a user terminal;
the MEC server sends the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the DNS request; the first CDN node is a CDN node which is closest to the MEC server in topological distance;
the CDN global load balancer acquires an identifier of a second CDN node according to the identifier of the first CDN node and prestored CDN node topology information; the topological distance between the second CDN node and the first CDN node is a preset value;
the CDN global load balancer selects an optimal CDN node from the target CDN node according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node, and sends the identifier of the optimal CDN node to the MEC server; the target CDN node comprises a first CDN node and a second CDN node;
and the MEC server sends the pre-stored network protocol IP address corresponding to the identifier of the optimal CDN node to the user terminal.
According to the technical scheme provided by the embodiment, aiming at the architecture of the external CDN node of the MEC server, the MEC server is used for taking over and forwarding the user DNS request and reporting the CDN node identifier with the nearest topological distance to the CDN global load balancer, so that the CDN global load balancer can find the optimal CDN node which is close to the topological distance of the MEC server and has a low load rate according to the CDN node topological information under the structure, and the optimal CDN node is used as the optimal CDN node serving the user, so that the user service access delay can be reduced to a greater extent, and the user service experience is improved.
Optionally, before the sending, by the MEC server, the DNS request and the pre-stored identifier of the first CDN node to the CDN global load balancer corresponding to the DNS request, the method further includes:
the MEC server judges whether the user terminal has the use authority of the MEC server according to the user identification in the DNS request and the pre-stored user service information;
when the MEC server determines that the user terminal has the use right of the MEC server, the MEC server sends the DNS request and the pre-stored identifier of the first CDN node to a CDN global load balancer corresponding to the DNS request.
Optionally, the sending, by the MEC server, the DNS request and the pre-stored identifier of the first CDN node to the CDN global load balancer corresponding to the DNS request includes:
the MEC server determines the IP address of the CDN global load balancer corresponding to the DNS request according to a pre-stored CDN global load balancer list and domain name information in the DNS request; the information in the CDN global load balancer list comprises an IP address of at least one CDN global load balancer and domain name information which corresponds to the IP address of the CDN global load balancer one by one;
and the MEC server sends the DNS request and the pre-stored identifier of the first CDN node to the CDN global load balancer corresponding to the DNS request according to the IP address of the CDN global load balancer corresponding to the DNS request.
Optionally, the sending, by the MEC server, the DNS request and the pre-stored identifier of the first CDN node to the CDN global load balancer corresponding to the DNS request includes:
the MEC server sends the DNS request to a local DNS server corresponding to the user terminal through a core network element EPC so as to return a domain name resolution response after performing domain name resolution on the DNS request;
after receiving a domain name resolution response returned by a local DNS server corresponding to a user terminal, an MEC server sends a DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the CDN global load balancer address information according to the CDN global load balancer address information in the domain name resolution response;
the CDN global load balancer address information includes alias CNAME information and/or IP address information.
Optionally, the selecting, by the CDN global load balancer, an optimal CDN node from the target CDN nodes according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node includes:
selecting a target CDN node which is closest to the first CDN node in topological distance from the target CDN node as a suboptimal CDN node;
and selecting the suboptimal CDN node with the lowest load rate from the suboptimal CDN nodes as the optimal CDN node.
Optionally, the selecting, by the CDN global load balancer, an optimal CDN node from the target CDN nodes according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node includes:
selecting a target CDN node with the lowest load rate in the target CDN nodes as a suboptimal CDN node;
and selecting the suboptimal CDN node which is closest to the first CDN node in topological distance from the suboptimal CDN node as the optimal CDN node.
In a second aspect, there is provided an MEC server comprising: the device comprises a receiving module, a sending module and a storage module;
the receiving module is used for receiving a DNS request sent by a user terminal;
the sending module is used for sending the DNS request received by the receiving module and the identifier of the first CDN node stored by the storage module to a CDN global load balancer corresponding to the DNS request; the first CDN node is a CDN node which is closest to the MEC server in topological distance;
the receiving module is also used for receiving the identification of the optimal CDN node sent by the CDN global load balancer;
and the sending module is also used for sending the IP address which is stored by the storage module and corresponds to the identifier of the optimal CDN node received by the receiving module to the user terminal.
Optionally, the MEC server further includes a determining module;
the judging module is used for judging whether the user terminal has the use authority of the MEC server according to the user identifier in the DNS request received by the receiving module and the user service information stored by the storage module;
when the judging module determines that the user terminal has the use right of the MEC server, the sending module sends the DNS request received by the receiving module and the identifier of the first CDN node stored by the storage module to a CDN global load balancer corresponding to the DNS request.
Optionally, the sending module is specifically configured to:
determining an IP address of a CDN global load balancer corresponding to the DNS request according to a CDN global load balancer list stored by a storage module and domain name information in the DNS request received by a receiving module; the information in the CDN global load balancer list comprises an IP address of at least one CDN global load balancer and domain name information which corresponds to the IP address of the CDN global load balancer one by one;
and sending the DNS request and the identifier of the first CDN node stored by the storage module to the CDN global load balancer corresponding to the DNS request according to the IP address of the CDN global load balancer corresponding to the DNS request.
Optionally, the sending module is specifically configured to:
sending the DNS request received by the receiving module to a local DNS server corresponding to the user terminal through a core network element EPC so as to return a domain name resolution response after performing domain name resolution on the DNS request;
after the receiving module receives a domain name resolution response returned by a local DNS server corresponding to the user terminal, the sending module sends the DNS request and the identification of the first CDN node stored by the storage module to a CDN global load balancer corresponding to the CDN global load balancer address information according to the CDN global load balancer address information in the domain name resolution response received by the receiving module;
the CDN global load balancer address information includes CNAME information and/or IP address information.
In a third aspect, a CDN global load balancer is provided, including a receiving module, a storage module, a processing module, and a sending module;
the receiving module is used for receiving a DNS request sent by the MEC server and an identifier of a first CDN node;
the processing module is used for acquiring an identifier of a second CDN node according to the identifier of the first CDN node received by the receiving module and the CDN node topology information stored by the storage module; the topological distance between the second CDN node and the first CDN node is a preset value;
the processing module is further used for selecting an optimal CDN node from the target CDN node according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node; the target CDN node comprises a first CDN node and a second CDN node;
and the sending module is used for sending the identifier of the optimal CDN node selected by the processing module to the MEC server.
Optionally, the processing module is specifically configured to:
selecting a target CDN node which is closest to the first CDN node in topological distance from the target CDN node as a suboptimal CDN node;
and selecting the suboptimal CDN node with the lowest load rate from the suboptimal CDN nodes as the optimal CDN node.
Optionally, the processing module is specifically configured to:
selecting a target CDN node with the lowest load rate in the target CDN nodes as a suboptimal CDN node;
and selecting the suboptimal CDN node which is closest to the first CDN node in topological distance from the suboptimal CDN node as the optimal CDN node.
In a fourth aspect, a CDN node allocation system based on the MEC is provided, including the MEC server provided in the first aspect and the CDN global load balancer provided in the second aspect.
The embodiment of the invention provides a CDN node distribution method and a system based on MEC, wherein the method comprises the following steps: the method comprises the steps that an MEC server receives a Domain Name System (DNS) request sent by a user terminal; the MEC server sends the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the DNS request; the first CDN node is a CDN node which is closest to the MEC server in topological distance; the CDN global load balancer acquires an identifier of a second CDN node according to the identifier of the first CDN node and prestored CDN node topology information; the topological distance between the second CDN node and the first CDN node is a preset value; the CDN global load balancer selects an optimal CDN node from the target CDN node according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node, and sends the identifier of the optimal CDN node to the MEC server; the target CDN node comprises a first CDN node and a second CDN node; and the MEC server sends the pre-stored network protocol IP address corresponding to the identifier of the optimal CDN node to the user terminal. In the technical scheme provided by the embodiment of the invention, when a user needs to use CDN service, a user terminal firstly sends a DNS request to an MEC server, the MEC server sends the DNS request and a pre-stored identifier of a CDN node closest to the MEC server to a CDN global load balancer corresponding to the DNS request, so that the CDN global load balancer can obtain optional CDN nodes which are available for the user and are closest to the MEC server, then the CDN global load balancer selects an optimal CDN node with lower time delay relative to the time delay of the user terminal according to the topological distance and the load rate of the optional CDN nodes from the MEC server, and sends the address of the optimal CDN node to the user terminal, thereby reducing the time delay when the user uses the CDN nodes to access services to the users to the greatest extent and improving the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow diagram of a CDN node allocation method based on MEC according to an embodiment of the present invention;
fig. 2 is a schematic flow diagram of another CDN node allocation method based on MEC according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a CDN node distribution system based on an MEC according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an MEC server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a CDN global load balancer provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, in the embodiments of the present invention, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that, when the difference is not emphasized, the intended meaning is consistent.
For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", and the like are used for distinguishing the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the words "first", "second", and the like are not limited in number or execution order.
The existing CDN node distribution mode cannot distribute the appropriate CDN node with the minimum time delay for the user under the MEC framework.
In view of the above problem, referring to fig. 1, an embodiment of the present invention provides a CDN node allocation method based on MEC, including:
101. and the MEC server receives a domain name system DNS request sent by the user terminal.
For example, a general user may issue a DNS request when a network service (e.g., a video service) is needed.
102. And the MEC server sends the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the DNS request, wherein the first CDN node is the CDN node closest to the MEC server in topological distance.
The topological distance here specifically refers to how many devices or network elements need to be passed through when the information of the first CDN node is transmitted to the MEC server, and for example, if three devices or network elements need to be passed through, the topological distance between the first CDN node and the MEC server is considered to be 3 hops.
Illustratively, the identifiers referred to herein are specifically intended to represent the location and name of the CDN node.
103. The CDN global load balancer acquires an identifier of a second CDN node according to the identifier of the first CDN node and prestored CDN node topology information; and the topological distance between the second CDN node and the first CDN node is a preset value.
Illustratively, in the embodiment of the present invention, the preset value is 1 hop.
104. And the CDN global load balancer selects an optimal CDN node from the target CDN nodes according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node, and sends the identifier of the optimal CDN node to the MEC server.
The target CDN node comprises a first CDN node and a second CDN node.
In the embodiment of the invention, the CDN global load balancer stores logic topology information and load rate information of all CDN nodes; of course, the actual CDN global load balancer may only include the logical topology distance and the load rate information of CDN nodes in a part of the regions, and the specific situation depends on the actual situation.
105. And the MEC server sends the pre-stored network protocol IP address corresponding to the identifier of the optimal CDN node to the user terminal.
In the scheme, when a user needs to use a CDN service, a user terminal first sends a DNS request to an MEC server, and the MEC server gives a CDN global load balancer corresponding to the DNS request by forwarding the DNS request and a pre-stored identifier of a CDN node closest to the MEC server, so that the CDN global load balancer can obtain an optional CDN node that is available to the user and is closest to the MEC server, and then the CDN global load balancer selects an optimal CDN node with a lower delay relative to the user terminal according to a topological distance and a load rate of the optional CDN node from the MEC server and sends an address of the optimal CDN node to the user terminal, thereby reducing the delay when the user uses the CDN node to perform service access to the maximum extent and improving user experience.
Referring to fig. 2, another embodiment of the present invention further provides an MEC-based CDN node allocation method as a further supplementary description or specific example description to the MEC-based CDN node allocation method provided in the foregoing embodiment, where the method includes:
201. and the MEC server receives a domain name system DNS request sent by the user terminal.
202. And the MEC server judges whether the user terminal has the use authority of the MEC server according to the user identification in the DNS request and the pre-stored user service information.
When the MEC server determines that the user terminal has the use right of the MEC server, 203 is executed; when the MEC server determines that the user terminal has no use right of the MEC server, the flow is ended; the ending process mentioned here specifically refers to passing through to the EPC;
in practice, the provision of the MEC service to the user by the operator is determined according to the business handling situation or the consumption situation of the user, and the operator provides the MEC service to the user only when the consumption situation of the user meets the situation of handling the MEC service by a certain amount or by a single user, so that the step 202 needs to be performed to judge the fact.
Specifically, because there are two ways in which the MEC server actually sends the DNS request to the CDN global load balancer corresponding to the DNS request, step 203 here specifically includes:
20311. and the MEC server determines the IP address of the CDN global load balancer corresponding to the DNS request according to the pre-stored CDN global load balancer list and the domain name information in the DNS request.
The information in the CDN global load balancer list comprises an IP address of at least one CDN global load balancer and domain name information in one-to-one correspondence with the IP address of the CDN global load balancer.
20312. And the MEC server sends the DNS request and the pre-stored identifier of the first CDN node to the CDN global load balancer corresponding to the DNS request according to the IP address of the CDN global load balancer corresponding to the DNS request.
20321. And the MEC server sends the DNS request to a local DNS server corresponding to the user terminal through a core network element EPC so as to return a domain name resolution response after performing domain name resolution on the DNS request.
It should be noted that, when the local DNS server cannot resolve the domain name of the DNS request, the local DNS server forwards the DNS request to the root DNS server, and the root DNS server queries a master DNS server capable of resolving the target domain name, where the master DNS server is generally a DNS server built by a website itself or a DNS server of a domain name host; and then the local DNS server is directly connected with the inquired main DNS server to analyze the domain name requested by the DSN, and an obtained analysis result is returned to the MEC server.
20322. After receiving a domain name resolution response returned by a local DNS server corresponding to the user terminal, the MEC server sends the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the address information of the CDN global load balancer according to the CDN global load balancer address information in the domain name resolution response.
The CDN global load balancer address information comprises alias CNAME information and/or IP address information.
204. And the CDN global load balancer acquires an identifier of a second CDN node according to the identifier of the first CDN node and prestored CDN node topology information, wherein the topological distance between the second CDN node and the first CDN node is a preset value.
Specifically, the first CDN node and the second CDN node are combined to become a target CDN node which is closer in topological distance to the MEC server, and both belong to appropriate CDN nodes which can be used for later-stage distribution to the user terminal; illustratively, the preset value is 1 hop, that is, the second CDN node is adjacent to the first CDN node.
Specifically, when selecting the optimal CDN node, the CDN global load balancer needs to refer to the topological distance between each node and the first CDN node and also needs to consider the load rate of each node, so when selecting, the selection may be performed by referring to the topological distance first and then to the load rate, or may refer to the load rate first and then to the topological distance, so step 205 specifically includes:
20511. and the CDN global load balancer selects a target CDN node which is closest to the first CDN node in topological distance from the target CDN node as a suboptimal CDN node.
20512. And the CDN global load balancer selects a suboptimal CDN node with the lowest load rate from the suboptimal CDN nodes as the optimal CDN node.
20521. And the CDN global load balancer selects a target CDN node with the lowest load rate in the target CDN nodes as a suboptimal CDN node.
20522. And the CDN global load balancer selects a suboptimal CDN node which is closest to the first CDN node in topological distance from the suboptimal CDN node as an optimal CDN node.
Specifically, in practice, when the optimal node is selected, it may be considered that which of the topological distance and the load rate has a larger influence on the time delay of the CDN node for providing service for the user, and then considered with reference to the factor having the larger influence first when selecting.
206. And the CDN global load balancer sends the identifier of the optimal CDN node to the MEC server.
207. And the MEC server sends the pre-stored network protocol IP address corresponding to the identifier of the optimal CDN node to the user terminal.
To sum up, the CDN node allocation method based on the MEC provided by the embodiment of the present invention includes: the method comprises the steps that an MEC server receives a Domain Name System (DNS) request sent by a user terminal; the MEC server sends the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the DNS request; the first CDN node is a CDN node which is closest to the MEC server in topological distance; the CDN global load balancer acquires an identifier of a second CDN node according to the identifier of the first CDN node and prestored CDN node topology information; the topological distance between the second CDN node and the first CDN node is a preset value; the CDN global load balancer selects an optimal CDN node from the target CDN node according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node, and sends the identifier of the optimal CDN node to the MEC server; the target CDN node comprises a first CDN node and a second CDN node; and the MEC server sends the pre-stored network protocol IP address corresponding to the identifier of the optimal CDN node to the user terminal. Therefore, in the technical scheme provided by the embodiment of the invention, when a user needs to use a CDN service, a user terminal first sends a DNS request to an MEC server, and the MEC server gives a CDN global load balancer corresponding to the DNS request by forwarding the DNS request and a pre-stored identifier of a CDN node closest to the MEC server, so that the CDN global load balancer can obtain selectable CDN nodes that are available to the user nearest to the MEC server, and then the CDN global load balancer selects an optimal CDN node with lower delay relative to the user terminal according to a topological distance and a load rate of the selectable CDN nodes from the MEC server and sends an address of the optimal CDN node to the user terminal, thereby reducing delay when the user uses the CDN node to perform service access to the maximum extent and improving user experience.
Referring to fig. 3, in order to better implement the CDN node allocation method based on the MEC provided in the above embodiment, an embodiment of the present invention further provides a CDN node allocation system based on the MEC, including an MEC server 31 and a CDN global load balancer 32.
Referring to fig. 4, an MEC server 31 in the CDN node distribution system based on MEC according to the embodiment of the present invention includes: a receiving module 311, a transmitting module 312, and a storing module 313;
a receiving module 311, configured to receive a DNS request sent by a user terminal 01;
a sending module 312, configured to send the DNS request received by the receiving module 311 and the identifier of the first CDN node stored by the storage module 313 to a CDN global load balancer 32 corresponding to the DNS request; the first CDN node is a CDN node closest in topological distance to the MEC server 31;
the receiving module 311 is further configured to receive an identifier of an optimal CDN node sent by the CDN global load balancer 32;
the sending module 312 further sends the IP address corresponding to the identifier of the optimal CDN node received by the receiving module 311, which is stored in the storage module 313, to the user terminal 01.
Optionally, the MEC server 31 further includes a determining module 314;
the judging module 314 is configured to judge whether the user terminal 01 has the usage right of the MEC server 31 according to the user identifier in the DNS request received by the receiving module 311 and the user service information stored in the storage module 313;
when the determining module 314 determines that the user terminal 01 has the usage right of the MEC server 31, the sending module 312 sends the DNS request received by the receiving module 311 and the identifier of the first CDN node stored by the storing module 313 to the CDN global load balancer 32 corresponding to the DNS request.
Optionally, the sending module 312 is specifically configured to:
determining an IP address of a CDN global load balancer 32 corresponding to the DNS request according to the CDN global load balancer list stored by the storage module 313 and the domain name information in the DNS request received by the receiving module 311; the information in the CDN global load balancer list includes an IP address of at least one CDN global load balancer 32 and domain name information corresponding to the IP address of the CDN global load balancer one to one;
and sending the DNS request and the identifier of the first CDN node stored by the storage module 313 to the CDN global load balancer 32 corresponding to the DNS request according to the IP address of the CDN global load balancer 32 corresponding to the DNS request.
Optionally, the sending module 312 is specifically configured to:
sending the DNS request received by the receiving module 311 to the local DNS server 02 corresponding to the user terminal 01 through the core network element EPC03, so as to return a domain name resolution response after performing domain name resolution on the DNS request;
after the receiving module 311 receives a domain name resolution response returned by the local DNS server 02 corresponding to the user terminal 01, the sending module 312 sends the identifier of the first CDN node stored by the DNS request and storage module 313 to the CDN global load balancer 32 corresponding to the CDN global load balancer address information according to the CDN global load balancer address information in the domain name resolution response received by the receiving module 311;
the CDN global load balancer address information includes CNAME information and/or IP address information.
Referring to fig. 5, a CDN global load balancer 32 in the CDN node distribution system based on the MEC according to the embodiment of the present invention includes: a receiving module 321, a storage module 322, a processing module 323, and a transmitting module 324;
a receiving module 321, configured to receive a DNS request and an identifier of a first CDN node sent by the MEC server 31;
the processing module 323 is configured to obtain an identifier of a second CDN node according to the identifier of the first CDN node received by the receiving module 321 and the CDN node topology information stored by the storage module 322; the topological distance between the second CDN node and the first CDN node is a preset value;
the processing module 323 is further configured to select an optimal CDN node from the target CDN nodes according to a topological distance between the target CDN node and the first CDN node and a pre-stored load rate of the target CDN node; the target CDN node comprises a first CDN node and a second CDN node;
a sending module 324, configured to send the identifier of the optimal CDN node selected by the processing module to the MEC server 31.
Optionally, the processing module 323 is specifically configured to:
selecting a target CDN node which is closest to the first CDN node in topological distance from the target CDN node as a suboptimal CDN node;
and selecting the suboptimal CDN node with the lowest load rate from the suboptimal CDN nodes as the optimal CDN node.
Optionally, the processing module 323 is specifically configured to:
selecting a target CDN node with the lowest load rate in the target CDN nodes as a suboptimal CDN node;
and selecting the suboptimal CDN node which is closest to the first CDN node in topological distance from the suboptimal CDN node as the optimal CDN node.
In summary, the method and system for CDN node allocation based on MEC provided in the embodiments of the present invention include: the method comprises the steps that an MEC server receives a Domain Name System (DNS) request sent by a user terminal; the MEC server sends the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the DNS request; the first CDN node is a CDN node which is closest to the MEC server in topological distance; the CDN global load balancer acquires an identifier of a second CDN node according to the identifier of the first CDN node and prestored CDN node topology information; the topological distance between the second CDN node and the first CDN node is a preset value; the CDN global load balancer selects an optimal CDN node from the target CDN node according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node, and sends the identifier of the optimal CDN node to the MEC server; the target CDN node comprises a first CDN node and a second CDN node; and the MEC server sends the pre-stored network protocol IP address corresponding to the identifier of the optimal CDN node to the user terminal. In the technical scheme provided by the embodiment of the invention, when a user needs to use CDN service, a user terminal firstly sends a DNS request to an MEC server, the MEC server sends the DNS request and a pre-stored identifier of a CDN node closest to the MEC server to a CDN global load balancer corresponding to the DNS request, so that the CDN global load balancer can obtain optional CDN nodes which are available for the user and are closest to the MEC server, then the CDN global load balancer selects an optimal CDN node with lower time delay relative to the time delay of the user terminal according to the topological distance and the load rate of the optional CDN nodes from the MEC server, and sends the address of the optimal CDN node to the user terminal, thereby reducing the time delay when the user uses the CDN nodes to access services to the users to the greatest extent and improving the user experience.
All the modules or units in the embodiments of the present invention may be functional program modules or physical entity modules in practice, and the specific situation depends on the practice and is not limited specifically here.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (14)

1. A Content Delivery Network (CDN) node distribution method based on Mobile Edge Computing (MEC) is characterized by comprising the following steps:
the method comprises the steps that an MEC server receives a Domain Name System (DNS) request sent by a user terminal;
the MEC server sends the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the DNS request; the first CDN node is a CDN node closest to the MEC server in topological distance;
the CDN global load balancer acquires an identifier of a second CDN node according to the identifier of the first CDN node and prestored CDN node topology information; the topological distance between the second CDN node and the first CDN node is a preset value;
the CDN global load balancer selects an optimal CDN node with lower time delay relative to a user terminal from the target CDN nodes according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node, and sends the identifier of the optimal CDN node to the MEC server; the target CDN node comprises the first CDN node and the second CDN node;
and the MEC server sends a pre-stored network protocol IP address corresponding to the identifier of the optimal CDN node to the user terminal.
2. The method for distributing CDN nodes based on an MEC of claim 1, wherein the sending, by the MEC server, the DNS request and a pre-stored identifier of the first CDN node to a CDN global load balancer corresponding to the DNS request further includes:
the MEC server judges whether the user terminal has the use authority of the MEC server according to the user identification in the DNS request and pre-stored user service information;
and when the MEC server determines that the user terminal has the use right of the MEC server, the MEC server sends the DNS request and the pre-stored identifier of the first CDN node to a CDN global load balancer corresponding to the DNS request.
3. The method for distributing CDN nodes based on an MEC of claim 1, wherein the sending, by the MEC server, the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the DNS request includes:
the MEC server determines the IP address of the CDN global load balancer corresponding to the DNS request according to a pre-stored CDN global load balancer list and domain name information in the DNS request; the information in the CDN global load balancer list comprises an IP address of at least one CDN global load balancer and domain name information which corresponds to the IP address of the CDN global load balancer one by one;
and the MEC server sends the DNS request and the pre-stored identification of the first CDN node to the CDN global load balancer corresponding to the DNS request according to the IP address of the CDN global load balancer corresponding to the DNS request.
4. The method for distributing CDN nodes based on an MEC of claim 1, wherein the sending, by the MEC server, the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the DNS request includes:
the MEC server sends the DNS request to a local DNS server corresponding to the user terminal through a core network element EPC so as to return a domain name resolution response after performing domain name resolution on the DNS request;
after receiving a domain name resolution response returned by a local DNS server corresponding to the user terminal, the MEC server sends the DNS request and a pre-stored identifier of a first CDN node to a CDN global load balancer corresponding to the CDN global load balancer address information according to the CDN global load balancer address information in the domain name resolution response;
the CDN global load balancer address information comprises alias CNAME information and/or IP address information.
5. The MEC-based CDN node allocation method of claim 1 wherein the CDN global load balancer selects an optimal CDN node from the target CDN nodes according to a topological distance between the target CDN node and the first CDN node and a pre-stored load rate of the target CDN node comprises:
selecting a target CDN node which is closest to the first CDN node in topological distance from the target CDN node as a suboptimal CDN node;
and selecting the suboptimal CDN node with the lowest load rate from the suboptimal CDN nodes as the optimal CDN node.
6. The MEC-based CDN node allocation method of claim 1 wherein the CDN global load balancer selects an optimal CDN node from the target CDN nodes according to a topological distance between the target CDN node and the first CDN node and a pre-stored load rate of the target CDN node comprises:
selecting a target CDN node with the lowest load rate from the target CDN nodes as a suboptimal CDN node;
and selecting a suboptimal CDN node which is closest to the first CDN node in topological distance from the suboptimal CDN node as an optimal CDN node.
7. An MEC server, comprising: the device comprises a receiving module, a sending module and a storage module;
the receiving module is used for receiving a DNS request sent by a user terminal;
the sending module is configured to send the DNS request received by the receiving module and the identifier of the first CDN node stored by the storage module to a CDN global load balancer corresponding to the DNS request; the first CDN node is a CDN node closest to the MEC server in topological distance;
the receiving module is also used for receiving the identifier of the optimal CDN node sent by the CDN global load balancer; the optimal CDN node is a CDN global load balancer which selects a CDN node with lower time delay relative to the user terminal according to the topological distance and the load rate of the optional CDN node from the MEC server;
the sending module is further used for sending the IP address corresponding to the identifier of the optimal CDN node received by the receiving module, which is stored by the storage module, to the user terminal.
8. The MEC server of claim 7, further comprising a determination module;
the judging module is used for judging whether the user terminal has the use authority of the MEC server according to the user identifier in the DNS request received by the receiving module and the user service information stored by the storage module;
when the judging module determines that the user terminal has the usage right of the MEC server, the sending module sends the DNS request received by the receiving module and the identifier of the first CDN node stored by the storage module to a CDN global load balancer corresponding to the DNS request.
9. The MEC server of claim 8, wherein the sending module is specifically configured to:
determining an IP address of a CDN global load balancer corresponding to the DNS request according to the CDN global load balancer list stored by the storage module and domain name information in the DNS request received by the receiving module; the information in the CDN global load balancer list comprises an IP address of at least one CDN global load balancer and domain name information which corresponds to the IP address of the CDN global load balancer one by one;
and sending the DNS request and the identifier of the first CDN node stored by the storage module to the CDN global load balancer corresponding to the DNS request according to the IP address of the CDN global load balancer corresponding to the DNS request.
10. The MEC server of claim 8, wherein the sending module is specifically configured to:
sending the DNS request received by the receiving module to a local DNS server corresponding to the user terminal through a core network element EPC, so that a domain name resolution response is returned after the domain name resolution is carried out on the DNS request;
after the receiving module receives a domain name resolution response returned by a local DNS server corresponding to the user terminal, the sending module sends the DNS request and an identifier of a first CDN node stored by the storage module to a CDN global load balancer corresponding to the address information of the CDN global load balancer according to the CDN global load balancer address information in the domain name resolution response received by the receiving module; the CDN global load balancer address information includes CNAME information and/or IP address information.
11. A CDN global load balancer is characterized by comprising a receiving module, a storage module, a processing module and a sending module;
the receiving module is used for receiving a DNS request sent by the MEC server and an identifier of a first CDN node;
the processing module is configured to obtain an identifier of a second CDN node according to the identifier of the first CDN node received by the receiving module and CDN node topology information stored in the storage module; the topological distance between the second CDN node and the first CDN node is a preset value;
the processing module is further used for selecting an optimal CDN node from the target CDN node according to the topological distance between the target CDN node and the first CDN node and the pre-stored load rate of the target CDN node; the target CDN node comprises the first CDN node and the second CDN node;
the sending module is used for sending the identifier of the optimal CDN node selected by the processing module to the MEC server, and the optimal CDN node is a CDN global load balancer which selects a CDN node with lower time delay relative to the user terminal according to the topological distance and the load rate of the optional CDN node from the MEC server.
12. The CDN global load balancer of claim 11, wherein the processing module is specifically configured to:
selecting a target CDN node which is closest to the first CDN node in topological distance from the target CDN node as a suboptimal CDN node;
and selecting the suboptimal CDN node with the lowest load rate from the suboptimal CDN nodes as the optimal CDN node.
13. The CDN global load balancer of claim 11, wherein the processing module is specifically configured to:
selecting a target CDN node with the lowest load rate from the target CDN nodes as a suboptimal CDN node;
and selecting a suboptimal CDN node which is closest to the first CDN node in topological distance from the suboptimal CDN node as an optimal CDN node.
14. An MEC-based CDN node distribution system comprising the MEC server of any of claims 7-10 and the CDN global load balancer of any of claims 11-13.
CN201810903874.6A 2018-08-09 2018-08-09 CDN node distribution method and system based on MEC Active CN109151009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810903874.6A CN109151009B (en) 2018-08-09 2018-08-09 CDN node distribution method and system based on MEC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810903874.6A CN109151009B (en) 2018-08-09 2018-08-09 CDN node distribution method and system based on MEC

Publications (2)

Publication Number Publication Date
CN109151009A CN109151009A (en) 2019-01-04
CN109151009B true CN109151009B (en) 2021-06-04

Family

ID=64792356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810903874.6A Active CN109151009B (en) 2018-08-09 2018-08-09 CDN node distribution method and system based on MEC

Country Status (1)

Country Link
CN (1) CN109151009B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862124A (en) * 2019-04-24 2019-06-07 北京风行极客科技有限公司 A kind of method and device of service request response
CN112153555B (en) * 2019-06-28 2023-07-21 中兴通讯股份有限公司 Method, server, system and storage medium for switching media service between areas
CN112333108A (en) * 2019-08-05 2021-02-05 南京中兴新软件有限责任公司 Service scheduling method and device
CN110769039B (en) * 2019-10-09 2021-12-10 腾讯科技(深圳)有限公司 Resource scheduling method and device, electronic equipment and computer readable storage medium
CN110650209B (en) * 2019-10-09 2023-07-18 北京百度网讯科技有限公司 Method and device for realizing load balancing
CN112235297B (en) * 2020-10-14 2021-09-24 北京理工大学 MES system identification analysis method and system based on edge calculation
CN112637310B (en) * 2020-12-17 2022-05-27 中国联合网络通信集团有限公司 Method for discovering edge service and edge service network
CN113301159B (en) * 2021-05-26 2022-12-09 中国电子科技集团公司第五十四研究所 Service position obtaining method and device in edge computing system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984637A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Content distribution implementation method and system
CN108235333A (en) * 2016-12-22 2018-06-29 ***通信有限公司研究院 It is a kind of to provide the method for network service and the network equipment, base station for terminal
CN108235298A (en) * 2016-12-21 2018-06-29 上海中兴软件有限责任公司 Path switching method, mobile edge calculations platform and gateway in mobile edge calculations
EP3348038A1 (en) * 2015-09-10 2018-07-18 Vimmi Communications Ltd. Content delivery network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984637A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Content distribution implementation method and system
EP3348038A1 (en) * 2015-09-10 2018-07-18 Vimmi Communications Ltd. Content delivery network
CN108235298A (en) * 2016-12-21 2018-06-29 上海中兴软件有限责任公司 Path switching method, mobile edge calculations platform and gateway in mobile edge calculations
CN108235333A (en) * 2016-12-22 2018-06-29 ***通信有限公司研究院 It is a kind of to provide the method for network service and the network equipment, base station for terminal

Also Published As

Publication number Publication date
CN109151009A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109151009B (en) CDN node distribution method and system based on MEC
CN109040259B (en) CDN node distribution method and system based on MEC
US11811657B2 (en) Updating routing information based on client location
US10374955B2 (en) Managing network computing components utilizing request routing
CN106302434B (en) Server adaptation method, device and system
EP3567881B1 (en) Request routing and updating routing information utilizing client location information
WO2018152919A1 (en) Path selection method and system, network acceleration node, and network acceleration system
CN105516391B (en) A kind of DNS name resolution method based on CNAME
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
US8065417B1 (en) Service provider registration by a content broker
CN108124020B (en) Domain name resolution method, system and equipment
CN103825975A (en) Cdn node distribution server and system
CN101764855A (en) Method, device and system for providing domain name resolution services
CN103428302A (en) Domain name resolution method, server and system
CN111212134A (en) Request message processing method and device, edge computing system and electronic equipment
CN111327668B (en) Network management method, device, equipment and storage medium
WO2015039475A1 (en) Method, server, and system for domain name resolution
CN102868770A (en) Method, equipment and system for distributing interface
CN110719273A (en) Method for determining back source node, server and computer readable storage medium
CN113259492B (en) Service request forwarding method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant