CN113037855B - Multimedia access system, method, device, terminal and medium - Google Patents

Multimedia access system, method, device, terminal and medium Download PDF

Info

Publication number
CN113037855B
CN113037855B CN202110304186.XA CN202110304186A CN113037855B CN 113037855 B CN113037855 B CN 113037855B CN 202110304186 A CN202110304186 A CN 202110304186A CN 113037855 B CN113037855 B CN 113037855B
Authority
CN
China
Prior art keywords
domain name
reverse proxy
server
address
proxy server
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
CN202110304186.XA
Other languages
Chinese (zh)
Other versions
CN113037855A (en
Inventor
易珏玲
李晓飞
杨洋
刘腾飞
张志良
于文超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing IQIYI Science and Technology Co Ltd filed Critical Beijing IQIYI Science and Technology Co Ltd
Priority to CN202110304186.XA priority Critical patent/CN113037855B/en
Publication of CN113037855A publication Critical patent/CN113037855A/en
Application granted granted Critical
Publication of CN113037855B publication Critical patent/CN113037855B/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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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]

Abstract

The embodiment of the invention provides a multimedia access system, a method, a device, a terminal and a medium, which relate to the technical field of communication and can provide multimedia resource access service for users in a local area network. The multimedia access system comprises a terminal in a local area network, an HTTP DNS server, a reverse proxy server, a CDN server and a service server in a wide area network. The terminal is used for sending a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed in the HTTPDNS server; the target reverse proxy server is used for sending a multimedia access request to the service server; the service server is used for sending a multimedia access response to the target reverse proxy server; the target reverse proxy server is used for sending a multimedia access response to the terminal; the terminal is further used for acquiring the multimedia resources from the target CDN server based on the IP address of the target CDN server.

Description

Multimedia access system, method, device, terminal and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a multimedia access system, method, apparatus, terminal, and medium.
Background
In a cooperative project of a multimedia provider and an operator, the multimedia provider is responsible for providing services related to multimedia data provision, such as multimedia data management, user management, right and interest identification and the like; the operator is responsible for providing services for guaranteeing communication such as data transmission, domain name resolution and the like.
Currently, operators are increasingly inclined to provide multimedia data access services to users in local area networks for the sake of information security and transmission efficiency. As a multimedia provider, the multimedia provider does not want services such as core multimedia data management, member management, rights and interests authentication, etc. to be provided in the lan in order to protect digital media rights. In some cooperative projects, an operator cannot provide domain name resolution service, and the operator restricts access of a client in a local area Network to a wide area Network, so that the client cannot obtain an address of a Content Delivery Network (CDN) server, and further cannot provide multimedia resource access service for a user in the local area Network.
Disclosure of Invention
The embodiment of the invention aims to provide a multimedia access system, a method, a device, a terminal and a medium, so as to provide a multimedia resource access service for a user in a local area network. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a multimedia access system, where the multimedia access system includes: the system comprises a terminal in a local area network, a hypertext transfer protocol (HTTP) Domain Name System (DNS) server, a plurality of reverse proxy servers, a plurality of Content Delivery Network (CDN) servers and a service server in a wide area network, wherein the reverse proxy servers are connected to the service server in the wide area network;
the terminal is used for determining the IP address of a target reverse proxy server corresponding to a domain name to be accessed based on the corresponding relation between the domain name in the HTTP DNS server and the IP address of the reverse proxy server, and sending a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed;
the target reverse proxy server is used for receiving the multimedia access request and sending the multimedia access request to the service server;
the service server is used for receiving the multimedia access request and sending a multimedia access response to the target reverse proxy server, wherein the multimedia access response carries an IP address of a target CDN server distributed for the terminal;
the target reverse proxy server is used for receiving the multimedia access response and sending the multimedia access response to the terminal;
the terminal is further configured to receive the multimedia access response, and obtain multimedia resources from the target CDN server based on the IP address of the target CDN server.
Optionally, the multimedia access system further includes: a domain name list server in the local area network;
the terminal is further configured to obtain a domain name list from the domain name list server, where the domain name list includes a plurality of domain names for the terminal to access;
the terminal is further configured to obtain, from the HTTP DNS server, a correspondence between each domain name included in the domain name list and an IP address of the reverse proxy server, and store the obtained correspondence between the domain name and the IP address of the reverse proxy server;
the terminal is specifically configured to search for an IP address of a target reverse proxy server corresponding to the domain name to be accessed based on a correspondence between a domain name stored in the terminal and the IP address of the reverse proxy server.
Optionally, the terminal is specifically configured to send a first domain name resolution request to the HTTP DNS server if the IP address of the target reverse proxy server corresponding to the domain name to be accessed is not found from the correspondence between the domain name stored in the terminal and the IP address of the reverse proxy server, where the first domain name resolution request carries the domain name to be accessed;
the HTTP DNS server is used for receiving the first domain name resolution request, inquiring the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sending a first domain name resolution response to the terminal, wherein the first domain name resolution response carries the IP address of the target reverse proxy server;
the terminal is specifically configured to receive the first domain name resolution response, and acquire an IP address of the target reverse proxy server carried in the first domain name resolution response.
Optionally, the terminal is specifically configured to send a second domain name resolution request to the HTTP DNS server, where the second domain name resolution request carries the domain name to be accessed;
the HTTP DNS server is used for receiving the second domain name resolution request, inquiring the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sending a second domain name resolution response to the terminal, wherein the second domain name resolution response carries the IP address of the target reverse proxy server;
and the terminal is specifically configured to receive the second domain name resolution response and acquire the IP address of the target reverse proxy server carried in the second domain name resolution response.
Optionally, the multimedia access system further includes: a domain name list server in the local area network;
the terminal is also used for acquiring the preset corresponding relation between the region information set by the operator and the region identification set by the multimedia resource provider from the domain name list server, and storing the acquired preset corresponding relation;
the terminal is further configured to search a target region identifier corresponding to region information of a location where the terminal is located based on the preset correspondence before sending a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed;
the terminal is specifically configured to send a multimedia access request carrying the target region identifier to the target reverse proxy server based on the IP address of the target reverse proxy server;
the service server is specifically configured to determine, based on the target region identifier, an IP address of a target CDN server allocated to the terminal.
In a second aspect, an embodiment of the present invention provides a multimedia access method, which is applied to a terminal, where the terminal is in a local area network of a multimedia access system, and the multimedia access system further includes: a hypertext transfer protocol (HTTP) Domain Name System (DNS) server in the local area network, a plurality of reverse proxy servers, a plurality of Content Delivery Network (CDN) servers and a service server in a wide area network, wherein the reverse proxy servers are connected to the service server in the wide area network; the method comprises the following steps:
determining the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name in the HTTP DNS server and the IP address of the reverse proxy server;
sending a multimedia access request to a target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed, so that the target reverse proxy server forwards the multimedia access request to the service server;
receiving a multimedia access response forwarded by the target reverse proxy server, wherein the multimedia access response is a response sent by the service server to the target reverse proxy server in response to the multimedia access request, and the multimedia access response carries an IP address of a target CDN server allocated for the terminal;
and acquiring multimedia resources from the target CDN server based on the IP address of the target CDN server.
Optionally, the multimedia access system further includes: a domain name list server in the local area network; the method further comprises the following steps:
acquiring a domain name list from the domain name list server, wherein the domain name list comprises a plurality of domain names for the terminal to access;
acquiring a corresponding relation between each domain name included in the domain name list and the IP address of the reverse proxy server from the HTTP DNS server, and storing the acquired corresponding relation between the domain name and the IP address of the reverse proxy server;
the determining the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relationship between the domain name in the HTTP DNS server and the IP address of the reverse proxy server includes:
and searching the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the reverse proxy server and the IP address of the reverse proxy server.
Optionally, after the IP address of the target reverse proxy server corresponding to the domain name to be accessed is searched based on the correspondence between the domain name stored in the reverse proxy server and the IP address of the reverse proxy server, the method further includes:
if the IP address of the target reverse proxy server corresponding to the domain name to be accessed is not found from the corresponding relationship between the domain name stored in the HTTP DNS and the IP address of the reverse proxy server, sending a first domain name resolution request to the HTTP DNS server, so that the HTTP DNS server inquires the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relationship between the domain name stored in the HTTP DNS and the IP address of the reverse proxy server, and sending a first domain name resolution response to the terminal; the first domain name resolution request carries the domain name to be accessed, and the first domain name resolution response carries the IP address of the target reverse proxy server;
and receiving the first domain name resolution response, and acquiring the IP address of the target reverse proxy server carried by the first domain name resolution response.
Optionally, the determining, based on a correspondence between the domain name in the HTTP DNS server and the IP address of the reverse proxy server, the IP address of the target reverse proxy server corresponding to the domain name to be accessed includes:
sending a second domain name resolution request to the HTTP DNS server, so that the HTTP DNS server queries the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sends a second domain name resolution response to the terminal; the second domain name resolution request carries the domain name to be accessed, and the second domain name resolution response carries the IP address of the target reverse proxy server;
and receiving the second domain name resolution response, and acquiring the IP address of the target reverse proxy server carried by the second domain name resolution response.
Optionally, the multimedia access system further includes: a domain name list server in the local area network; the method further comprises the following steps:
acquiring a preset corresponding relation between each region information set by an operator and a region identifier set by a multimedia resource provider from the domain name list server, and storing the acquired preset corresponding relation;
before the sending the multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed, the method further includes:
searching a target region identifier corresponding to the region information of the position where the terminal is located based on the preset corresponding relation;
the sending a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed includes:
and sending a multimedia access request carrying the target region identifier to the target reverse proxy server based on the IP address of the target reverse proxy server, so that the service server determines the IP address of the target CDN server allocated to the terminal based on the target region identifier.
In a third aspect, an embodiment of the present invention provides a multimedia access apparatus, which is applied to a terminal, where the terminal is in a local area network of a multimedia access system, and the multimedia access system further includes: a hypertext transfer protocol (HTTP) Domain Name System (DNS) server in the local area network, a plurality of reverse proxy servers, a plurality of Content Delivery Network (CDN) servers and a service server in a wide area network, wherein the reverse proxy servers are connected to the service server in the wide area network; the device comprises:
a determining module, configured to determine, based on a correspondence between a domain name in the HTTP DNS server and an IP address of a reverse proxy server, an IP address of a target reverse proxy server corresponding to a domain name to be accessed;
a sending module, configured to send a multimedia access request to a target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed, which is determined by the determining module, so that the target reverse proxy server forwards the multimedia access request to the service server;
a receiving module, configured to receive a multimedia access response forwarded by the target reverse proxy server, where the multimedia access response is a response sent by the service server to the target reverse proxy server in response to the multimedia access request sent by the sending module, and the multimedia access response carries an IP address of a target CDN server allocated to the terminal;
and the obtaining module is used for obtaining the multimedia resources from the target CDN server based on the IP address of the target CDN server.
Optionally, the multimedia access system further includes: a domain name list server in the local area network;
the obtaining module is further configured to obtain a domain name list from the domain name list server, where the domain name list includes a plurality of domain names for the terminal to access;
the acquiring module is further configured to acquire, from the HTTP DNS server, a correspondence between each domain name included in the domain name list and an IP address of the reverse proxy server, and store the acquired correspondence between the domain name and the IP address of the reverse proxy server;
the determining module is specifically configured to:
and searching the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the reverse proxy server and the IP address of the reverse proxy server.
Optionally, the sending module is further configured to, after searching for the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name stored in the sending module and the IP address of the reverse proxy server, send a first domain name resolution request to the HTTP DNS server if the IP address of the target reverse proxy server corresponding to the domain name to be accessed is not found in the correspondence between the domain name stored in the sending module and the IP address of the reverse proxy server, so that the HTTP DNS server queries the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name stored in the sending module and the IP address of the reverse proxy server, and sends a first domain name resolution response to the terminal; the first domain name resolution request carries the domain name to be accessed, and the first domain name resolution response carries the IP address of the target reverse proxy server;
the receiving module is further configured to receive the first domain name resolution response, and acquire an IP address of the target reverse proxy server carried in the first domain name resolution response.
Optionally, the determining module is specifically configured to:
sending a second domain name resolution request to the HTTP DNS server, so that the HTTP DNS server queries the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sends a second domain name resolution response to the terminal; the second domain name resolution request carries the domain name to be accessed, and the second domain name resolution response carries the IP address of the target reverse proxy server;
and receiving the second domain name resolution response, and acquiring the IP address of the target reverse proxy server carried by the second domain name resolution response.
Optionally, the multimedia access system further includes: a domain name list server in the local area network;
the acquisition module is further configured to acquire a preset corresponding relationship between each piece of domain information set by an operator and a domain identifier set by a multimedia resource provider from the domain name list server, and store the acquired preset corresponding relationship;
the device further comprises: a searching module;
the searching module is configured to search, based on the preset correspondence, a target region identifier corresponding to region information of a location where the terminal is located before the multimedia access request is sent to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed;
the sending module is specifically configured to:
and sending a multimedia access request carrying the target region identifier to the target reverse proxy server based on the IP address of the target reverse proxy server, so that the service server determines the IP address of the target CDN server distributed for the terminal based on the target region identifier.
In a fourth aspect, an embodiment of the present invention provides a terminal, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any multimedia access method when executing the program stored in the memory.
In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of any of the above multimedia access methods.
In a sixth aspect, embodiments of the present invention further provide a computer program product including instructions, which when run on a computer, cause the computer to perform the steps of any of the above-mentioned multimedia access methods.
The technical scheme provided by the embodiment of the invention can at least bring the following beneficial effects: the terminal can access the service server in the wide area network through the reverse proxy server, so that the service server for managing the core data can provide service for the terminal in the wide area network without sinking the service server into the local area network, and the confidentiality of the core data can be improved. And the terminal can obtain the multimedia resource from the CDN server of the local area network, namely the multimedia resource access service is provided for the user in the local area network.
Of course, it is not necessary for any product or method to achieve all of the above-described advantages at the same time for practicing the invention.
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 embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a multimedia access system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of another multimedia access system according to an embodiment of the present invention;
fig. 3 is a flowchart of a multimedia access method according to an embodiment of the present invention;
fig. 4 is a signaling diagram of a multimedia access procedure according to an embodiment of the present invention;
fig. 5a is a schematic structural diagram of a multimedia access device according to an embodiment of the present invention;
fig. 5b is a schematic structural diagram of another multimedia access device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to 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.
In order to provide a multimedia resource access service for a user in a local area network, an embodiment of the present invention provides a multimedia access system, as shown in fig. 1, the multimedia access system includes: a terminal 101 in a local area network, a hypertext Transfer Protocol (HTTP) Domain Name System (DNS) server 102, a plurality of reverse proxy servers 103, a plurality of CDN servers 104, and a service server 105 in a wide area network, wherein the plurality of reverse proxy servers 103 are connected to the service server 105 in the wide area network. The number of devices included in the multimedia access system shown in fig. 1 is 1, but actually, the number of devices included in the multimedia access system is not limited to this, and may be configured based on actual needs.
The terminal 101 is configured to determine an IP address of a target reverse proxy server corresponding to a domain name to be accessed based on a correspondence between the domain name in the HTTP DNS server 102 and the IP address of the reverse proxy server 103, and send a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed.
A target reverse proxy server, configured to receive the multimedia access request and send the multimedia access request to the service server 105.
And the service server 105 is used for receiving the multimedia access request and sending a multimedia access response to the target reverse proxy server. The multimedia access response carries an IP address of a target CDN server allocated for the terminal from the CDN servers 104.
And the target reverse proxy server is used for receiving the multimedia access response and sending the multimedia access response to the terminal 101.
The terminal 101 is further configured to receive a multimedia access response, and obtain a multimedia resource from the target CDN server based on the IP address of the target CDN server.
By adopting the technical scheme, the terminal can access the service server in the wide area network through the reverse proxy server, so that the service server for managing the core data can provide services for the terminal in the wide area network without sinking the service server into the local area network, and the confidentiality of the core data can be improved. And the terminal can obtain the multimedia resource from the CDN server of the local area network, namely the multimedia resource access service is provided for the user in the local area network.
In the embodiment of the present invention, a dedicated line may be set between the service server 105 and the reverse proxy server 103, and dedicated line communication is used. For example, the private line may be a network line, i.e., the service server 105 and the reverse proxy server 103 may communicate with each other by way of wired communication.
The multimedia access system of an embodiment of the present invention may include a plurality of reverse proxy servers 103, with the target reverse proxy server being one of the reverse proxy servers 103. The correspondence between the domain name and the IP address of the reverse proxy server 103 may be set in advance and stored in the HTTP DNS server 102.
In the embodiment of the present application, a video client is installed in the terminal 101, each page and each video in the video client have their own domain name, and the HTTP DNS server 102 stores an IP address of the reverse proxy server 103 corresponding to each domain name included in the video client.
In the embodiment of the present application, the service server 105 is a server of a multimedia provider, there may be a plurality of service servers 105, and different types of service servers 105 may be used to process different types of requests.
After the target reverse proxy server receives the multimedia access request, it may determine the service server 105 for processing the multimedia access request based on the URL corresponding to the multimedia access request, and forward the multimedia access request to the service server 105.
As an example, the multimedia access request may be a scheduling request, and accordingly, the target reverse proxy server may forward the multimedia access request to the service server 105 as a scheduling server.
In an embodiment of the present invention, referring to fig. 2, the multimedia access system provided in the embodiment of the present invention may further include: a domain name list server 106 in a local area network.
The terminal 101 is further configured to obtain a domain name list from the domain name list server 106. The domain name list includes a plurality of domain names for the terminal 101 to access.
In this embodiment of the present invention, the terminal 101 is specifically configured to obtain the IP address of the domain name list server 106 from the HTTP DNS server 102, and then obtain the domain name list from the domain name list server 106 based on the IP address of the domain name list server 106.
For example, if a video client is installed in the terminal 101, the domain name list server 106 includes domain names related to the video client.
The terminal 101 is further configured to obtain, from the HTTP DNS server 102, a correspondence between each domain name included in the domain name list and the IP address of the reverse proxy server 103, and store the correspondence between the obtained domain name and the IP address of the reverse proxy server 103.
Alternatively, the terminal 101 may acquire the domain name list from the domain name list server 106 at the time of initialization, and then acquire the correspondence between each domain name included in the domain name list and the IP address of the reverse proxy server 103 from the HTTP DNS server 102.
The terminal 101 is also configured to periodically update the correspondence between the domain name stored in the terminal and the IP address of the reverse proxy server 103, since the correspondence between the domain name list in the domain name list server 106 and the correspondence in the HTTP DNS server 102 is updated.
The terminal 101 is specifically configured to: the domain name list is periodically acquired from the domain name list server 106, the corresponding relationship between each domain name included in the domain name list and the IP address of the reverse proxy server 103 is acquired from the HTTP DNS server 102, and the corresponding relationship between the domain name stored in the reverse proxy server 103 and the IP address of the reverse proxy server 103 is updated by using the currently acquired corresponding relationship between the domain name and the IP address of the reverse proxy server 103.
For example, the period in which the terminal 101 updates the above correspondence may be one day, that is, once per day. The terminal 101 may update the correspondence between the domain name stored in itself and the IP address of the reverse proxy server 103 every morning at 5 am.
In the case that the terminal 101 stores the correspondence between the domain name and the IP address of the reverse proxy server 103, the terminal 101 according to the embodiment of the present invention is specifically configured to search for the IP address of the target reverse proxy server corresponding to the domain name to be accessed, based on the correspondence between the domain name stored in the terminal and the IP address of the reverse proxy server 103.
The terminal 101 is specifically configured to search a domain name that is the same as the domain name to be accessed in the correspondence between the domain name and the IP address of the reverse proxy server, and use the IP address corresponding to the searched domain name as the IP address of the target reverse proxy server.
In the multimedia access system provided by the embodiment of the invention, because the terminal can locally search the IP address of the target reverse proxy server corresponding to the domain name to be accessed, compared with the mode that the terminal searches the IP address of the target reverse proxy server corresponding to the domain name to be accessed from the HTTP DNS server, the embodiment of the invention saves the time for searching the IP address of the reverse proxy server, reduces the time delay and improves the response speed of requesting multimedia resources.
In an embodiment of the present invention, there may also be a case where the terminal 101 cannot locally search for the IP address corresponding to the domain name to be accessed. For example, a new reverse proxy server 103 may be added to the multimedia access system, the domain name corresponding to the new reverse proxy server 103 will be added to the domain name list of the domain name list server 106, and the correspondence between the IP address and the domain name of the new reverse proxy server 103 will be added to the HTTP DNS server 102. If the terminal 101 receives an access request for the domain name, it is unable to find the IP address of the reverse proxy server 103 corresponding to the domain name in the corresponding relationship stored in the terminal 101.
Based on this, the terminal 101 in the embodiment of the present invention is specifically configured to send a first domain name resolution request to the HTTP DNS server 102 if the IP address of the target reverse proxy server corresponding to the domain name to be accessed is not found in the correspondence between the domain name stored in the terminal and the IP address of the reverse proxy server 103. The first domain name resolution request carries a domain name to be accessed.
The HTTP DNS server 102 is configured to receive the first domain name resolution request, query, based on a correspondence between a domain name stored in the HTTP DNS server and an IP address of the reverse proxy server 103, an IP address of a target reverse proxy server corresponding to the domain name to be accessed, and send a first domain name resolution response to the terminal 101. Wherein the first domain name resolution response carries the IP address of the target reverse proxy server.
The terminal 101 is specifically configured to receive the first domain name resolution response, and acquire the IP address of the target reverse proxy server carried in the first domain name resolution response.
According to the multimedia access system provided by the embodiment of the invention, the terminal can also obtain the IP address of the target reverse proxy server corresponding to the domain name to be accessed from the HTTP DNS server when the IP address of the target reverse proxy server corresponding to the domain name to be accessed is not found locally, so that the fault tolerance of the system is improved, and the condition that the domain name to be accessed cannot be accessed is reduced.
In another implementation manner of the embodiment of the present invention, the terminal 101 may not store the correspondence between the domain name and the IP address of the reverse proxy server in advance, and may obtain the IP address of the target reverse proxy server corresponding to the domain name to be accessed from the HTTP DNS server 102 when the domain name to be accessed needs to be accessed.
The terminal 101 in the embodiment of the present invention is specifically configured to send a second domain name resolution request to the HTTP DNS server 102. And the second domain name resolution request carries the domain name to be accessed.
The HTTP DNS server 102 is configured to receive a second domain name resolution request, query, based on a correspondence between a domain name stored in the HTTP DNS server and an IP address of the reverse proxy server 103, an IP address of a target reverse proxy server corresponding to the domain name to be accessed, and send a second domain name resolution response to the terminal 101. And the second domain name resolution response carries the IP address of the target reverse proxy server.
The terminal 101 is specifically configured to receive the second domain name resolution response, and acquire the IP address of the target reverse proxy server carried in the second domain name resolution response.
In the multimedia access system provided by the embodiment of the invention, under the condition that the domain name and the IP address of the reverse proxy server are updated, the corresponding relation between the updated domain name and the IP address of the reverse proxy server is stored in the HTTP DNS server, so that the terminal can accurately acquire the IP address of the target reverse proxy server corresponding to the domain name to be accessed.
In another embodiment of the present invention, because the geographical information maintained by the operator may have a different representation form from the geographical information used by the multimedia resource provider, the domain name list server 106 in the embodiment of the present invention further stores a preset corresponding relationship between each geographical information set by the operator and the geographical identifier set by the multimedia resource provider.
For example, the preset correspondence is shown in table one.
Watch 1
Operator regional information Regional identification of multimedia resource provider
01208 71460010000010000001
01216 71460010000250000001
02000 71460020000610000001
For inner Mongolia, if the operator is China Unicom, the operator region information set by China Unicom for inner Mongolia is 01208, and the region identifier set by the corresponding multimedia resource provider for inner Mongolia is 71460010000010000001; for the shandong, if the operator is the china union, the china union sets the operator region information for the shandong as 01216, and the corresponding multimedia resource provider sets the region identifier for the shandong as 71460010000250000001; for Sichuan, if the operator is China Mobile, the region information set for Sichuan by China Mobile is 02000, and the region identifier set for Sichuan by the corresponding multimedia resource provider is 71460020000610000001.
As can be seen from table one, the region information set by the operator is the same as the region represented by the region identifier set by the multimedia resource provider corresponding to the operator.
On this basis, referring to fig. 2, the terminal 101 is further configured to obtain a preset corresponding relationship between each piece of domain information set by the operator and a domain identifier set by the multimedia resource provider from the domain name list server 106, and store the obtained preset corresponding relationship.
Correspondingly, the terminal 101 is further configured to search, based on the preset correspondence, a target region identifier corresponding to the region information of the location where the terminal 101 is located before sending the multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed.
For example, in conjunction with table one, assuming that the region information of the location where the terminal 101 is located is 01208, the region identifier 71460010000010000001 of the multimedia resource provider corresponding to 01208 is obtained from table one.
Because the operator and the multimedia resource provider have different marking methods for the same position, if the operator customized region information of the position where the terminal is located is directly sent to the multimedia resource provider, it is not beneficial for the multimedia resource provider to determine the geographic position of the terminal. Therefore, the terminal can convert the region information of the position where the terminal is located into the region identifier set by the multimedia resource provider for the position, and transmit the region identifier to the service server, so that the service server can conveniently and quickly locate the terminal, and the response speed of the request is improved.
Under the condition that the terminal 101 determines the target region identifier corresponding to the region information of the location where the terminal is located, the terminal 101 in the embodiment of the present invention is specifically configured to send a multimedia access request carrying the target region identifier to the target reverse proxy server based on the IP address of the target reverse proxy server. Wherein the target zone identification is located in a specified field of the multimedia access request.
The service server 105 is specifically configured to determine, based on the target region identifier, an IP address of a target CDN server allocated to the terminal 101.
In the embodiment of the present invention, one or more IP addresses of the CDN servers 104 may be set to correspond to a region identifier, and the service server 105 is specifically configured to use an IP address of any CDN server 104 corresponding to the target region identifier as an IP address of the target CDN server.
Alternatively, the terminal 101 may obtain a corresponding relationship between the domain name and the IP address of the reverse proxy server 103 during the initialization process, and obtain a preset corresponding relationship between each piece of domain information set by the operator and the domain identifier set by the multimedia resource provider. Correspondingly, the subsequent terminal 101 may also periodically update the preset corresponding relationship between the respective regional information set by the operator and the regional identifier set by the multimedia resource provider.
According to the multimedia access system provided by the embodiment of the invention, when the service server distributes the CDN server to the terminal, the CDN server can be distributed based on the geographic position of the terminal, namely the terminal is distributed nearby, so that the acquisition speed of multimedia resources is increased. And different areas can correspond to different CDN servers, so that the effect of load balancing is achieved. The embodiment of the invention can be suitable for scenes with wide service groups and large service region span.
In the embodiment of the present invention, there may be various multimedia access requests sent by the terminal 101 to the target reverse proxy server, and different types of service servers 105 may be used to process different types of requests. For example, in the above embodiment, the multimedia access request sent by the terminal 101 to the target reverse proxy server may be a scheduling request, and accordingly, the target reverse proxy server forwards the scheduling request to the scheduling server in the wide area network.
For another example, the terminal 101 may also send a resource request, an authentication request, and the like to the target reverse proxy server, and correspondingly, the service server in the wide area network may be a resource server and an authentication server.
That is, the multimedia access system provided in the embodiment of the present invention may be applied to a scenario of processing other services, in addition to allocating the CDN server 104 that provides the multimedia resource to the terminal 101.
Taking the example that the terminal 101 requests the multimedia provider to acquire the media asset data, the terminal 101 is further configured to send a media asset request to the target reverse proxy server, where the media asset request is used to request to acquire the media asset data of the multimedia resource.
Optionally, the media asset data includes, but is not limited to: whether Dolby sound effect, definition, video type, video code rate and the like are supported.
The target reverse proxy server is also used for receiving the media resource request and forwarding the media resource request to the service server 105 for processing the media resource request; and receiving the media asset response and forwarding the media asset response to the terminal 101. Wherein the media asset response is a response sent by the service server 105 for processing the media asset request to the target reverse proxy server in response to the media asset request. The media asset response carries the media asset data requested to be acquired by the terminal 101.
The terminal 101 is further configured to receive the media asset response and acquire the media asset data carried in the media asset response.
The process of the terminal 101 for authentication is similar, the terminal 101 may send an authentication request to the target reverse proxy server, and then the target reverse proxy server sends the authentication request to the service server 105 for authentication, and the service server 105 returns an authentication response to the target reverse proxy server after completing authentication, and then the target reverse proxy server forwards the authentication response to the terminal 101.
Therefore, because the CDN server is deployed in the local area network and the service server is deployed in the wide area network, the embodiment of the application realizes that the multimedia data access service is provided for the user in the local area network, and the management and authentication service of the core media asset data is still responsible for the service server of the multimedia provider, so that the efficiency of acquiring the multimedia data by the terminal in the local area network is improved on the premise of meeting the information security of the multimedia provider. And the multimedia access system has simple structure and is easy to deploy.
Optionally, when the service requested by the terminal 101 needs to be customized based on the geographic location of the terminal 101, the request sent by the terminal 101 to the target reverse proxy server carries a target region identifier corresponding to the region information of the location of the terminal 101. Because the current mainstream business processes all need to be customized based on the geographic position of the terminal 101, the embodiment of the invention can be applied to the business processes, and the service quality is improved.
Based on the same inventive concept, corresponding to the above system embodiment, the embodiment of the present invention further provides a multimedia access method, the method is applied to a terminal, the terminal is in a local area network of the multimedia access system, and the multimedia access system further includes: an HTTP DNS server in a local area network, a plurality of reverse proxy servers, a plurality of CDN servers, and a traffic server in a wide area network. The terminal may be a terminal in the multimedia access system shown in fig. 1 or fig. 2, and referring to fig. 3, the method includes:
step 301, determining an IP address of a target reverse proxy server corresponding to a domain name to be accessed based on a corresponding relationship between the domain name in the HTTP DNS server and the IP address of the reverse proxy server.
Step 302, based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed, a multimedia access request is sent to the target reverse proxy server, so that the target reverse proxy server forwards the multimedia access request to the service server.
Step 303, receiving the multimedia access response forwarded by the target reverse proxy server. The multimedia access response is a response sent by the service server to the target reverse proxy server according to the multimedia access request, and the multimedia access response carries an IP address of the target CDN server allocated for the terminal.
And step 304, acquiring multimedia resources from the target CDN server based on the IP address of the target CDN server.
By adopting the technical scheme, the terminal can access the service server in the wide area network through the reverse proxy server, so that the service server for managing the core data can provide service for the terminal in the wide area network without sinking the service server into the local area network, and the confidentiality of the core data can be improved. And the terminal can obtain the multimedia resource from the CDN server of the local area network, namely the multimedia resource access service is provided for the user in the local area network.
The method embodiment and the system embodiment are based on the same inventive concept, and because the principles of solving the problems of the method and the system are similar, the system and the method can be implemented by referring to each other, and repeated parts are not described again.
In an embodiment of the present invention, the multimedia access system further includes: a domain name list server residing in the local area network. The terminal can acquire the correspondence between the domain name and the IP address of the reverse proxy server from the HTTP DNS server. The process includes the following two steps.
Step one, a domain name list is obtained from a domain name list server, and the domain name list comprises a plurality of domain names for a terminal to access.
And step two, acquiring the corresponding relation between each domain name included in the domain name list and the IP address of the reverse proxy server from the HTTP DNS server, and storing the corresponding relation between the acquired domain name and the IP address of the reverse proxy server.
In one embodiment, since the terminal locally stores the correspondence between the domain name and the IP address of the reverse proxy server, step 301 above may be implemented as: the terminal searches for the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored by the terminal and the IP address of the reverse proxy server.
Optionally, the terminal may perform the first step and the second step during initialization.
Because the corresponding relation between the domain name list in the domain name list server and the HTTP DNS server is updated, the terminal can also periodically update the corresponding relation between the domain name stored in the terminal and the IP address of the reverse proxy server.
The terminal can periodically acquire a domain name list from the domain name list server, acquire the corresponding relationship between each domain name included in the domain name list and the IP address of the reverse proxy server from the HTTP DNS server, and update the corresponding relationship between the domain name stored in the terminal and the IP address of the reverse proxy server by using the corresponding relationship between the currently acquired domain name and the IP address of the reverse proxy server.
In the embodiment of the present invention, there may also be a case where the terminal does not find the IP address of the target reverse proxy server corresponding to the domain name to be accessed from the correspondence between the domain name stored in the terminal and the IP address of the reverse proxy server, and at this time, the terminal may send a first domain name resolution request to the HTTP DNS server, so that the HTTP DNS server queries the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name stored in the terminal and the IP address of the reverse proxy server, and sends a first domain name resolution response to the terminal. And then the terminal receives the first domain name resolution response and acquires the IP address of the target reverse proxy server carried by the first domain name resolution response.
The first domain name resolution request carries a domain name to be accessed, and the first domain name resolution response carries an IP address of the target reverse proxy server.
In another embodiment, the step 301 may be implemented as: and the terminal sends a second domain name resolution request to the HTTP DNS server, so that the HTTP DNS server inquires the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sends a second domain name resolution response to the terminal. And then receiving a second domain name resolution response, and acquiring the IP address of the target reverse proxy server carried by the second domain name resolution response.
And the second domain name resolution response carries the IP address of the target reverse proxy server.
In the embodiment of the present invention, the domain name list server may store a preset corresponding relationship between each piece of domain information set by an operator and a domain identifier set by a multimedia resource provider, and the terminal obtains the preset corresponding relationship between each piece of domain information set by the operator and the domain identifier set by the multimedia resource provider from the domain name list server and stores the obtained preset corresponding relationship.
Correspondingly, before the step 302, the terminal may further search for a target region identifier corresponding to the region information of the location where the terminal is located, based on the preset corresponding relationship stored in the terminal.
The step 302 includes: and sending a multimedia access request carrying a target region identifier to the target reverse proxy server based on the IP address of the target reverse proxy server, so that the service server determines the IP address of the target CDN server distributed for the terminal based on the target region identifier.
Referring to fig. 4, fig. 4 shows a specific flow of the multimedia access method provided by the embodiment of the present invention, which includes the following steps.
In step 401, the terminal obtains the IP address of the domain name list server from the HTTP DNS server.
In step 402, the terminal obtains a domain name list from a domain name list server.
In step 403, the terminal obtains a correspondence between each domain name included in the domain name list and the IP address of the reverse proxy server from the HTTP DNS server.
In step 404, the terminal stores the obtained corresponding relationship between the domain name and the IP address of the reverse proxy server.
In step 405, the terminal determines the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name in the HTTP DNS server and the IP address of the reverse proxy server.
In step 406, the terminal sends a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed.
Step 407, the target reverse proxy server receives the multimedia access request and sends the multimedia access request to the service server.
In step 408, the service server receives the multimedia access request and sends a multimedia access response to the target reverse proxy server.
And step 409, the target reverse proxy server is used for receiving the multimedia access response and sending the multimedia access response to the terminal.
And step 410, the terminal receives the multimedia access response and acquires the multimedia resources from the target CDN server based on the IP address of the target CDN server.
By adopting the technical scheme, the terminal can access the service server in the wide area network through the reverse proxy server, so that the service server for managing the core data can provide service for the terminal in the wide area network without sinking the service server into the local area network, and the confidentiality of the core data can be improved. And the terminal can obtain the multimedia resource from the CDN server of the local area network, namely the multimedia resource access service is provided for the user in the local area network.
Based on the same inventive concept, corresponding to the above method embodiment, the embodiment of the present invention further provides a multimedia access device, the device is applied to a terminal, the terminal is in a local area network of a multimedia access system, and the multimedia access system further includes: an HTTP DNS server in a local area network, a plurality of reverse proxy servers, a plurality of CDN servers, and a traffic server in a wide area network. The terminal may be a terminal in the multimedia access system shown in fig. 1 or fig. 2, and referring to fig. 5a, the apparatus includes: a determining module 501, a sending module 502, a receiving module 503 and an obtaining module 504;
a determining module 501, configured to determine, based on a correspondence between a domain name in an HTTP DNS server and an IP address of a reverse proxy server, an IP address of a target reverse proxy server corresponding to a domain name to be accessed;
a sending module 502, configured to send a multimedia access request to a target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed, which is determined by the determining module 501, so that the target reverse proxy server forwards the multimedia access request to a service server;
a receiving module 503, configured to receive a multimedia access response forwarded by the target reverse proxy server, where the multimedia access response is a response sent by the service server to the target reverse proxy server in response to the multimedia access request sent by the sending module 502, and the multimedia access response carries an IP address of the target CDN server allocated for the terminal;
an obtaining module 504, configured to obtain the multimedia resource from the target CDN server based on the IP address of the target CDN server.
Optionally, the multimedia access system further includes: a domain name list server in a local area network;
the obtaining module 504 is further configured to obtain a domain name list from a domain name list server, where the domain name list includes a plurality of domain names for the terminal to access;
the obtaining module 504 is further configured to obtain, from the HTTP DNS server, a correspondence between each domain name included in the domain name list and an IP address of the reverse proxy server, and store the obtained correspondence between the domain name and the IP address of the reverse proxy server;
the determining module 501 is specifically configured to:
and searching the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the reverse proxy server and the IP address of the reverse proxy server.
Optionally, the sending module 502 is further configured to, after searching for an IP address of a target reverse proxy server corresponding to the domain name to be accessed based on a correspondence between the domain name stored in the sending module and the IP address of the reverse proxy server, send a first domain name resolution request to the HTTP DNS server if the IP address of the target reverse proxy server corresponding to the domain name to be accessed is not found in the correspondence between the domain name stored in the sending module and the IP address of the reverse proxy server, so that the HTTP DNS server queries the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name stored in the sending module and the IP address of the reverse proxy server, and sends a first domain name resolution response to the terminal; the first domain name resolution request carries a domain name to be accessed, and the first domain name resolution response carries an IP address of a target reverse proxy server;
the receiving module 503 is further configured to receive the first domain name resolution response, and acquire the IP address of the target reverse proxy server carried in the first domain name resolution response.
Optionally, the determining module 501 is specifically configured to:
sending a second domain name resolution request to an HTTP DNS server, so that the HTTP DNS server inquires the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sends a second domain name resolution response to the terminal; the second domain name resolution request carries a domain name to be accessed, and the second domain name resolution response carries an IP address of the target reverse proxy server;
and receiving a second domain name resolution response, and acquiring the IP address of the target reverse proxy server carried by the second domain name resolution response.
Optionally, the multimedia access system further includes: a domain name list server in a local area network;
the obtaining module 504 is further configured to obtain a preset corresponding relationship between each piece of domain information set by an operator and a domain identifier set by a multimedia resource provider from the domain name list server, and store the obtained preset corresponding relationship;
referring to fig. 5b, the apparatus may further include: a lookup module 505;
a searching module 505, configured to search, based on a preset correspondence, a target region identifier corresponding to region information of a location where a terminal is located before sending a multimedia access request to a target reverse proxy server based on an IP address of the target reverse proxy server corresponding to a domain name to be accessed;
the sending module 502 is specifically configured to:
and sending a multimedia access request carrying a target region identifier to the target reverse proxy server based on the IP address of the target reverse proxy server, so that the service server determines the IP address of the target CDN server allocated for the terminal based on the target region identifier.
An embodiment of the present invention further provides a terminal, as shown in fig. 6, including a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement the steps executed by the terminal when executing the program stored in the memory 603.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of any of the above-mentioned multimedia access methods.
In a further embodiment provided by the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the above-described embodiments of the method of multimedia access.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to be performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the method and apparatus embodiments, since they are substantially similar to the system embodiments, the description is relatively simple, and reference may be made to some descriptions of the system embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (13)

1. A multimedia access system, characterized in that the multimedia access system comprises: the system comprises a terminal in a local area network, a hypertext transfer protocol (HTTP) Domain Name System (DNS) server, a plurality of reverse proxy servers, a plurality of Content Delivery Network (CDN) servers and a service server in a wide area network, wherein the plurality of reverse proxy servers are connected to the service server in the wide area network;
the terminal is used for determining the IP address of a target reverse proxy server corresponding to a domain name to be accessed based on the corresponding relation between the domain name in the HTTP DNS server and the IP address of the reverse proxy server, and sending a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed;
the target reverse proxy server is used for receiving the multimedia access request and sending the multimedia access request to the service server;
the service server is used for receiving the multimedia access request and sending a multimedia access response to the target reverse proxy server, wherein the multimedia access response carries an IP address of a target CDN server distributed for the terminal from a plurality of CDN servers of the local area network;
the target reverse proxy server is used for receiving the multimedia access response and sending the multimedia access response to the terminal;
the terminal is further configured to receive the multimedia access response, and obtain multimedia resources from the target CDN server based on the IP address of the target CDN server.
2. The system of claim 1, wherein the multimedia access system further comprises: a domain name list server in the local area network;
the terminal is further configured to obtain a domain name list from the domain name list server, where the domain name list includes a plurality of domain names for the terminal to access;
the terminal is further configured to obtain, from the HTTP DNS server, a correspondence between each domain name included in the domain name list and an IP address of the reverse proxy server, and store the obtained correspondence between the domain name and the IP address of the reverse proxy server;
the terminal is specifically configured to search for an IP address of a target reverse proxy server corresponding to the domain name to be accessed based on a correspondence between a domain name stored in the terminal and the IP address of the reverse proxy server.
3. The system of claim 2,
the terminal is specifically configured to send a first domain name resolution request to the HTTP DNS server if the IP address of the target reverse proxy server corresponding to the domain name to be accessed is not found from the correspondence between the domain name stored in the terminal and the IP address of the reverse proxy server, where the first domain name resolution request carries the domain name to be accessed;
the HTTP DNS server is used for receiving the first domain name resolution request, inquiring the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sending a first domain name resolution response to the terminal, wherein the first domain name resolution response carries the IP address of the target reverse proxy server;
the terminal is specifically configured to receive the first domain name resolution response, and acquire an IP address of the target reverse proxy server carried in the first domain name resolution response.
4. The system of claim 1,
the terminal is specifically configured to send a second domain name resolution request to the HTTP DNS server, where the second domain name resolution request carries the domain name to be accessed;
the HTTP DNS server is used for receiving the second domain name resolution request, inquiring the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sending a second domain name resolution response to the terminal, wherein the second domain name resolution response carries the IP address of the target reverse proxy server;
and the terminal is specifically configured to receive the second domain name resolution response and acquire the IP address of the target reverse proxy server carried in the second domain name resolution response.
5. The system of claim 1, wherein the multimedia access system further comprises: a domain name list server in the local area network;
the terminal is also used for acquiring the preset corresponding relation between the region information set by the operator and the region identification set by the multimedia resource provider from the domain name list server, and storing the acquired preset corresponding relation;
the terminal is further configured to search a target region identifier corresponding to region information of a location where the terminal is located based on the preset corresponding relationship before sending a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed;
the terminal is specifically configured to send a multimedia access request carrying the target region identifier to the target reverse proxy server based on the IP address of the target reverse proxy server;
the service server is specifically configured to determine, based on the target region identifier, an IP address of a target CDN server allocated to the terminal.
6. A multimedia access method, applied to a terminal, the terminal being in a local area network of a multimedia access system, the multimedia access system further comprising: a hypertext transfer protocol (HTTP) Domain Name System (DNS) server in the local area network, a plurality of reverse proxy servers, a plurality of Content Delivery Network (CDN) servers and a service server in a wide area network, wherein the reverse proxy servers are connected to the service server in the wide area network; the method comprises the following steps:
determining the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name in the HTTP DNS server and the IP address of the reverse proxy server;
sending a multimedia access request to a target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed, so that the target reverse proxy server forwards the multimedia access request to the service server;
receiving a multimedia access response forwarded by the target reverse proxy server, where the multimedia access response is a response sent by the service server to the target reverse proxy server in response to the multimedia access request, and the multimedia access response carries an IP address of a target CDN server allocated for the terminal from among a plurality of CDN servers of the local area network;
and acquiring multimedia resources from the target CDN server based on the IP address of the target CDN server.
7. The method of claim 6, wherein the multimedia access system further comprises: a domain name list server in the local area network; the method further comprises the following steps:
acquiring a domain name list from the domain name list server, wherein the domain name list comprises a plurality of domain names for the terminal to access;
acquiring a corresponding relation between each domain name included in the domain name list and the IP address of the reverse proxy server from the HTTP DNS server, and storing the acquired corresponding relation between the domain name and the IP address of the reverse proxy server;
the determining the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relationship between the domain name in the HTTP DNS server and the IP address of the reverse proxy server includes:
and searching the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the reverse proxy server and the IP address of the reverse proxy server.
8. The method according to claim 7, wherein after the searching for the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name stored in the reverse proxy server and the IP address of the reverse proxy server, the method further comprises:
if the IP address of the target reverse proxy server corresponding to the domain name to be accessed is not found from the corresponding relationship between the domain name stored in the HTTP DNS and the IP address of the reverse proxy server, sending a first domain name resolution request to the HTTP DNS server, so that the HTTP DNS server inquires the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relationship between the domain name stored in the HTTP DNS and the IP address of the reverse proxy server, and sending a first domain name resolution response to the terminal; the first domain name resolution request carries the domain name to be accessed, and the first domain name resolution response carries the IP address of the target reverse proxy server;
and receiving the first domain name resolution response, and acquiring the IP address of the target reverse proxy server carried by the first domain name resolution response.
9. The method according to claim 6, wherein determining the IP address of the target reverse proxy server corresponding to the domain name to be accessed based on the correspondence between the domain name in the HTTP DNS server and the IP address of the reverse proxy server comprises:
sending a second domain name resolution request to the HTTP DNS server, so that the HTTP DNS server inquires the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name stored in the HTTP DNS server and the IP address of the reverse proxy server, and sends a second domain name resolution response to the terminal; the second domain name resolution request carries the domain name to be accessed, and the second domain name resolution response carries the IP address of the target reverse proxy server;
and receiving the second domain name resolution response, and acquiring the IP address of the target reverse proxy server carried by the second domain name resolution response.
10. The method of claim 6, wherein the multimedia access system further comprises: a domain name list server in the local area network; the method further comprises the following steps:
acquiring a preset corresponding relation between each region information set by an operator and a region identifier set by a multimedia resource provider from the domain name list server, and storing the acquired preset corresponding relation;
before the sending the multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed, the method further includes:
searching a target region identifier corresponding to the region information of the position where the terminal is located based on the preset corresponding relation;
the sending a multimedia access request to the target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed includes:
and sending a multimedia access request carrying the target region identifier to the target reverse proxy server based on the IP address of the target reverse proxy server, so that the service server determines the IP address of the target CDN server distributed for the terminal based on the target region identifier.
11. A multimedia access apparatus, applied to a terminal, the terminal being in a local area network of a multimedia access system, the multimedia access system further comprising: a hypertext transfer protocol (HTTP) Domain Name System (DNS) server in the local area network, a plurality of reverse proxy servers, a plurality of Content Delivery Network (CDN) servers and a service server in a wide area network, wherein the reverse proxy servers are connected to the service server in the wide area network; the device comprises:
the determining module is used for determining the IP address of a target reverse proxy server corresponding to the domain name to be accessed based on the corresponding relation between the domain name in the HTTP DNS server and the IP address of the reverse proxy server;
a sending module, configured to send a multimedia access request to a target reverse proxy server based on the IP address of the target reverse proxy server corresponding to the domain name to be accessed, which is determined by the determining module, so that the target reverse proxy server forwards the multimedia access request to the service server;
a receiving module, configured to receive a multimedia access response forwarded by the target reverse proxy server, where the multimedia access response is a response sent by the service server to the target reverse proxy server in response to the multimedia access request sent by the sending module, and the multimedia access response carries an IP address of a target CDN server allocated for the terminal from among a plurality of CDN servers of the local area network;
and the obtaining module is used for obtaining the multimedia resources from the target CDN server based on the IP address of the target CDN server.
12. A terminal is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 6 to 10 when executing a program stored in the memory.
13. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 6-10.
CN202110304186.XA 2021-03-22 2021-03-22 Multimedia access system, method, device, terminal and medium Active CN113037855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110304186.XA CN113037855B (en) 2021-03-22 2021-03-22 Multimedia access system, method, device, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110304186.XA CN113037855B (en) 2021-03-22 2021-03-22 Multimedia access system, method, device, terminal and medium

Publications (2)

Publication Number Publication Date
CN113037855A CN113037855A (en) 2021-06-25
CN113037855B true CN113037855B (en) 2022-07-22

Family

ID=76472476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110304186.XA Active CN113037855B (en) 2021-03-22 2021-03-22 Multimedia access system, method, device, terminal and medium

Country Status (1)

Country Link
CN (1) CN113037855B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542274A (en) * 2021-07-15 2021-10-22 南京中孚信息技术有限公司 Cross-domain data transmission method, device, server and storage medium
CN113905030B (en) * 2021-09-30 2022-11-22 北京百度网讯科技有限公司 Intranet and extranet communication method and device, intranet terminal, proxy server and storage medium
CN114071193B (en) * 2021-11-19 2023-08-22 中国联合网络通信集团有限公司 Video data processing method and system
CN114285666A (en) * 2021-12-30 2022-04-05 天翼物联科技有限公司 Trilateral cooperation method and system for multimedia application of Internet of things
CN114584808B (en) * 2022-03-01 2023-09-22 抖音视界有限公司 Video stream acquisition method, device, system, equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030079027A1 (en) * 2001-10-18 2003-04-24 Michael Slocombe Content request routing and load balancing for content distribution networks
US20120209942A1 (en) * 2008-10-28 2012-08-16 Cotendo, Inc. System combining a cdn reverse proxy and an edge forward proxy with secure connections
CA2973108A1 (en) * 2016-07-13 2018-01-13 DNSthingy Inc. Method and router to permit or block internet protocol (ip) connectivity based on originating domain name server (dns) requests
CN109963171B (en) * 2017-12-14 2021-01-05 腾讯科技(深圳)有限公司 Multimedia information transmission method, transmission device and storage medium

Also Published As

Publication number Publication date
CN113037855A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113037855B (en) Multimedia access system, method, device, terminal and medium
US9160703B2 (en) Request routing management based on network components
US9444759B2 (en) Service provider registration by a content broker
US20180205697A1 (en) Managing content delivery network service providers by a content broker
US9800539B2 (en) Request routing management based on network components
US10601767B2 (en) DNS query processing based on application information
EP2266064B1 (en) Request routing
US10341288B2 (en) Methods circuits devices systems and associated computer executable code for providing conditional domain name resolution
US20160028644A1 (en) Request routing in a networked environment
WO2021004528A1 (en) Method, device and apparatus for address acquisition of application example and storage medium
CN103716391A (en) Implementation method for content caching and router
WO2012131287A1 (en) Selection of service nodes for provision of services
CN108494870B (en) CDN-based dynamic data loading method and device
CN113067803B (en) Resource isolation system, request processing method and request processing device
WO2021057369A1 (en) Httpdns scheduling method and apparatus, medium, and device
CN114006915B (en) Resource request method, device, equipment and computer readable storage medium
JP2014042106A (en) Dns server client system and dns query response control method
EP3166284B1 (en) Methods circuits devices systems and associated computer executable code for providing conditional domain name resolution
CN114979025B (en) Resource refreshing method, device, equipment and readable storage medium
KR101869253B1 (en) Method and apparatus for managing device context by using ip address in communication system
CN114666413A (en) Routing method, device, equipment and readable storage medium
CN117527809A (en) Resource acquisition method, device, equipment and storage medium
CN115701067A (en) Method, device and system for switching edge nodes of user side
GB2503287A (en) Enabling advertising content delivery in a telecommunications network

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