WO2018196843A1 - Resource request method and device - Google Patents

Resource request method and device Download PDF

Info

Publication number
WO2018196843A1
WO2018196843A1 PCT/CN2018/084802 CN2018084802W WO2018196843A1 WO 2018196843 A1 WO2018196843 A1 WO 2018196843A1 CN 2018084802 W CN2018084802 W CN 2018084802W WO 2018196843 A1 WO2018196843 A1 WO 2018196843A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
server
media server
access information
address
Prior art date
Application number
PCT/CN2018/084802
Other languages
French (fr)
Chinese (zh)
Inventor
王震宇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018196843A1 publication Critical patent/WO2018196843A1/en

Links

Images

Classifications

    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication
    • H04L41/342Signalling channels for network management communication between virtual entities, e.g. orchestrators, SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a resource request method and apparatus.
  • the traditional telecommunication system is composed of various dedicated hardware devices, and different applications use different hardware devices.
  • the telecommunication system is becoming more and more complex, which brings many challenges to the development of new services and the operation and maintenance of the system.
  • global telecom operators jointly promote Network Function Virtualization (NFV), which can migrate individual network element functions in a telecommunications network from a dedicated hardware platform to a general-purpose server.
  • NFV Network Function Virtualization
  • Each network element used is transformed into a stand-alone application that can be flexibly deployed on a unified infrastructure platform built on standards-based servers, storage, and switches.
  • the service function does not depend on specific hardware devices. It can be centralized in the data center and flexibly scaled as needed. In practice, it is found that after the network function of the telecommunication media service is virtualized, due to the different attributes of the signaling and the media resources, the signaling concentration and the distribution mode of the media resources are gradually formed. As shown in Figure 1, the coordinated distribution of multimedia services from signaling and media resources is gradually formed into signaling at the regional center, and media resources are deployed close to the edge of user access. After the centralized signaling management exceeds a certain amount of media resources, if the relationship between the signaling and the distributed media resources and the relationship between the user and the access media resources are still maintained through static configuration, the operation and maintenance will be changed. It is extremely complicated.
  • the embodiment of the invention provides a resource requesting method and device, which can implement decoupling between signaling and media resources through a DNS server, thereby helping to reduce the complexity of operation and maintenance.
  • an embodiment of the present invention provides a resource request method, in which a signaling server receives a service request message sent by a terminal, and obtains a source network protocol IP of the terminal from the service request message. Addressing, and sending a domain name query message to the domain name system DNS server; receiving a response message returned by the DNS server for the domain name query message, the response message carrying the access information of the at least one media server corresponding to the source IP address; The signaling server determines the access information of the target media server corresponding to the source IP address from the access information of the at least one media server; the signaling server sends the binding information to the target media server by using the access information of the target media server And determining, after the binding to the target media server, the signaling server returns the access information of the target media server to the terminal; the access information of the target media server includes the connection of the target media server Enter the IP address and port number.
  • the signaling server can be dynamically bound to the media server, so
  • the signaling server may use the unused response field in the domain name query message to carry the IP address of the terminal.
  • the return code of the domain name query message is redefined as Ext, the value of 1 indicates that the domain name query message carries the IP address of the terminal.
  • the signaling server may query one or more services according to the service request message, and select, according to the access information of the at least one media server, access information of the media server that can provide multiple services, thereby reducing the need for access.
  • Media server node may query one or more services according to the service request message, and select, according to the access information of the at least one media server, access information of the media server that can provide multiple services, thereby reducing the need for access.
  • the signaling server does not need to maintain state information of the unbound media resource, and in the binding process, if the target media server fails to respond, the access may be based on the access of the at least one media server returned by the DNS server.
  • the information is selected from the media server according to the priority of the media server (which may also be referred to as the priority of the media resource) as the target media server.
  • the signaling server may periodically check the status of the bound resource (or the status of the target media server). If the media resource is faulty or the target media server is faulty, The session can be re-established or terminated according to a preset policy.
  • the embodiment of the present invention provides another resource request method, in which the domain name system DNS server receives the domain name query message sent by the signaling server, and the DNS server parses the source IP address of the terminal in the domain name query message. Corresponding domain name area and service requested by the terminal; the DNS server provides at least one media server domain name of the service according to the domain name area query; and the DNS server determines access information of the at least one media server according to the at least one media server domain name The DNS server returns a response message to the signaling server, where the response message carries the access information of the at least one media server corresponding to the source IP address.
  • the DNS server can reversely search for the domain name area corresponding to the IP address according to the IP address of the terminal, and reversely search for the service resource or the media resource or the domain name of the media server that provides the request service according to the domain name area; A domain name matching the domain name area of the IP address, and searching for the media server access information corresponding to the domain name, thereby obtaining access information of the media server capable of providing services for the terminal, and the DNS server may also determine and the terminal according to the domain name.
  • the most suitable, for example, the access information of the nearest media server is used as the target media server, and the access information of the target media server is returned to the signaling server, so that the signaling server uses the access information to implement binding with the media resource. . Therefore, by implementing the embodiments of the present invention, not only the media resources can be dynamically bound, but also the closest media resources can be selected to provide services for the terminal.
  • the DNS server provides the at least one media server domain name of the service according to the domain name area query, where the DNS server queries the at least one media in the SRV record that provides the service and matches the domain name area. Server domain name.
  • the DNS server searches for the service resource or the domain name area of the media resource according to the domain name iterative search service, it can stop according to the policy after stopping the record or finding the record of the specified layer according to the policy, wherein the policy can find the latest service resource.
  • the domain name is stopped immediately, and the result is returned; or, after finding two domain name records, the result is returned.
  • the access information of the at least one media server includes a priority of the at least one media server, and the priority is used by the signaling server to select a target media server from the at least one media server.
  • the DNS server adjusts the priority of the at least one media server according to the accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority.
  • media123.lg.sz.gd.cn has a higher priority than media123.sz.gd.cn.
  • the DNS server determines the access information of the at least one media server according to the at least one media server domain name, where the DNS server queries the at least one media server corresponding to the at least one media server domain name in the A record. Access information.
  • the DNS extension agent may be used to implement the foregoing multiple rounds of queries to implement terminal positioning of the media resource or the media server.
  • an alias with the domain name of the disaster recovery area may be added to the DNS server.
  • an embodiment of the present invention further provides a resource requesting apparatus, where the resource requesting apparatus has a function of implementing the resource requesting method according to the first aspect.
  • the above functions can be implemented by hardware or by executing corresponding software through hardware.
  • the above hardware or software includes one or more modules corresponding to the above functions.
  • the resource requesting device may include a communication module, a determination module, and a query module.
  • an embodiment of the present invention further provides a resource requesting apparatus, where the data processing apparatus has a function of implementing the resource requesting method according to the second aspect.
  • the above functions can be implemented by hardware or by executing corresponding software through hardware.
  • the above hardware or software includes one or more modules corresponding to the above functions.
  • the resource requesting device may include a communication module, a parsing module, a query module, a determining module, and an adjusting module.
  • the embodiment of the present invention further provides a resource requesting device, where the resource requesting device may include a processor, a memory, and a communication interface, where the processor is respectively connected to the communication interface and the memory; the memory For storing program instructions; the processor is configured to invoke program instructions in the memory, and execute the resource request method according to the first aspect of the embodiments of the present invention.
  • an embodiment of the present invention further provides a base station, where the base station may include a processor, a memory, and a communication interface, where the processor is respectively connected to the communication interface and the memory; and the memory is used to store a program.
  • the processor is configured to invoke a program instruction in the memory, and execute the resource request method according to the second aspect of the embodiments of the present invention;
  • the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores instructions, when executed on a computer, causing the computer to execute the resource request described in the foregoing aspects. method.
  • FIG. 1 is a schematic diagram of a manner in which a media service tends to be distributed in a centralized media resource distribution according to an embodiment of the present disclosure
  • FIG. 2 is a system architecture diagram of a network function virtualization NFV according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a resource request scenario according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a resource request method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a domain name query message format according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of an IP address of a mobile IPv6 mobile terminal according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of flexible deployment of media resources according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a media resource independently opened to a third party according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart diagram of another resource request method according to an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of a DNS extended proxy scenario according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic flowchart of a remote disaster recovery scenario according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of still another resource request method according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a resource request apparatus according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of another resource request apparatus according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of a signaling server according to an embodiment of the present invention.
  • FIG. 16 is a schematic structural diagram of a DNS server according to an embodiment of the present invention.
  • FIG. 2 is an architectural diagram of an NFV system.
  • the NFV system 100 can be implemented in various network environments, such as a data center network, a carrier network, or a local area network.
  • the NFV system 100 includes a network function virtualization management and orchestration system (NFV-MANO) 101, a network function virtualization infrastructure (NFVI) 130, and multiple element management (EM).
  • NFV-MANO network function virtualization management and orchestration system
  • NFVI network function virtualization infrastructure
  • EM multiple element management
  • the network function virtualization orchestration and management system 101 includes a network function virtualization orchestrator (NFVO) 102, one or more virtual network function managers (VNF Managers, VNFM) 104, and a virtualization infrastructure manager ( Virtualized Infrastructure Manager, VIM) 106.
  • the network function virtualization infrastructure 130 includes a hardware resource layer, a virtualization layer, and a virtual resource layer.
  • the hardware resource layer includes computing hardware 112, storage hardware 114, and network hardware 116.
  • the virtual resource layer includes virtual computing 110, virtual storage 118, and virtual network. 120.
  • Network services, VNF and infrastructure descriptions 126 and operational support system/business support system 124 are further discussed in the ETSI GS NFV 002 V1.1.1 standard.
  • the NFV management and orchestration system 101 is used to perform monitoring and management of the virtual network function 108 and the network function virtualization infrastructure 130.
  • Network function virtualization orchestrator 102 may implement network services (such as L2 and L3 VPN services) on network function virtualization infrastructure 130, as well as resource related requests from one or more virtual network function managers 104, to send The information is configured to the virtual network function manager 104 and the status information of the virtual network function 108 is collected.
  • network function virtualization orchestrator 102 can communicate with virtual infrastructure manager 106 to effect resource allocation and/or reservation and to exchange configuration and status information for virtualized hardware resources.
  • the virtual network function manager 104 can manage one or more virtual network functions 108.
  • the virtual network function manager 104 can perform various management functions such as instantiating, updating, querying, scaling, and/or terminating the virtual network function 108 and the like.
  • the virtual infrastructure manager 106 can perform resource management functions such as managing the allocation of infrastructure resources (eg, adding resources to containers) and operational functions (eg, collecting network function virtualization infrastructure failure information).
  • the virtual network function manager 104 and the virtual infrastructure manager 106 can communicate with one another for resource allocation and exchange of configuration and status information for virtualized hardware resources.
  • the network function virtualization infrastructure 130 includes hardware resources, software resources, or a combination of both to complete the deployment of the virtualized environment.
  • the hardware resources and virtualization layers are used to provide virtualized resources, such as virtual machines and other forms of containers, for installing virtual network functions 108.
  • Hardware resources include computing hardware 112, storage hardware 114, and network hardware 116.
  • Computing hardware 112 may be off-the-shelf hardware and/or user-customized hardware used to provide processing and computing resources.
  • Storage hardware 114 may be storage capacity provided within the network or storage capacity resident in storage hardware 114 itself (local storage located within the server). In one possible implementation, computing hardware 112 and storage hardware 114 can be grouped together.
  • Network hardware 116 can be a switch, a router, and/or any other network device configured to have switching functionality.
  • Network hardware 116 can span multiple domains and can include multiple networks interconnected by one or more transport networks.
  • the virtualization layer of network function virtualization infrastructure 130 may abstract hardware resources and decouple virtual network functions 108 from the physical layer to provide virtualized resources to virtual network functions 108.
  • the virtual resource layer includes virtual computing 110, virtual storage 118, and virtual network 120.
  • Virtual computing 110 and virtual storage 118 may be provided to virtual network functionality 108 in the form of virtual machines and/or other containers.
  • one or more virtual network functions 108 can be deployed on a virtual machine.
  • the virtualization layer abstract network hardware 116 forms a virtual network 120.
  • the virtual network 120 can include a virtual switch (Virtual Switch) for providing connections between virtual machines.
  • the transport network in network hardware 116 can be virtualized using a centralized control plane and a separate forwarding plane (eg, software defined network, SDN).
  • virtual network function manager 104 can interact with virtual network function 108 and network element management 122 to manage the lifecycle of virtual network function 108 and to exchange configuration and status information.
  • the virtual network function 108 can be configured to virtualize at least one network function performed by one physical network device.
  • the virtual network function 108 can be configured to provide functions of different network elements in an IMS (IP Multimedia Subsystem, IP Multimedia Subsystem, IMS for short) network, such as a P-CSCF (Proxy-Call Session).
  • IMS IP Multimedia Subsystem
  • IMS IP Multimedia Subsystem
  • IMS IP Multimedia Subsystem
  • P-CSCF Proxy-Call Session
  • the element management 122 is configured to manage one or more virtual network functions 108.
  • the service function does not depend on specific hardware devices, and can be concentrated in the data center to flexibly flex as needed.
  • the network function of the telecommunication media service is virtualized, due to the different attributes of the signaling and media resources of the telecommunication media service, the signaling concentration and the distribution mode of the media resource distribution are gradually formed.
  • the signaling server may also be referred to as a signaling virtual network function, Signaling VNF, which is a server deployed with a signaling function, that is, a device deployed by a signaling virtual network function, and may be collectively referred to as a signaling server;
  • the media server is a server that deploys a media resource, and may also be a server that deploys a virtual network function of the media resource.
  • the media server may also be referred to as a media resource, which is not limited in the embodiment of the present invention.
  • the media resource generally provides RTP media. Functions such as stream forwarding, audio and video codec conversion, and other functions such as IP Multimedia Subsystem (IMS).
  • IMS IP Multimedia Subsystem
  • the signaling virtual network function can be deployed centrally, and the media resource virtual network function can be distributed to the media servers in each area.
  • the UE in FIG. 1 is a User Equipment, which may also be called a terminal.
  • the DNS server is a general name of a server or a data center for deploying a DNS, which is not limited in the embodiment of the present invention.
  • the coordinated distribution of multimedia services from signaling and media resources is gradually formed into signaling at the regional center, and media resources are deployed close to the edge of user access.
  • the centralized signaling management exceeds a certain amount of media resources, if the relationship between the signaling and the distributed media resources and the relationship between the user and the access media resources are still maintained through static configuration, the operation and maintenance will be changed. It is extremely complicated. For example, when the user terminal sends a service request message to the signaling server, the signaling server can only query the statically configured access information of the media server that matches the area where the user terminal is located, and return the access information to the user terminal, so that The user terminal uses the access information to access the media server where the media resource is located. It can be seen that the implementation manner of the signaling server needs to maintain a large number of distributed media resources and the relationship between the user and the media resource, thereby causing the operation and maintenance to become Very complicated.
  • the media server where the media resource is located may be deployed in a distributed manner in the city A and the city B.
  • the signaling server and the DNS server may be deployed in a centralized manner, where the DNS server may include multiple
  • the related functions of the domain name system are carried out, wherein MANO or NFVO can modify the records of the media server or the media server where the media resource is located after the distributed deployment of the media resources, for example, the corresponding domain name area, or access information, etc. .
  • FIG. 4 is a schematic flowchart of a resource requesting method according to an embodiment of the present invention.
  • the resource requesting method shown in FIG. 4 is illustrated from a signaling server side. Specifically, the resource requesting method is provided. The steps can be included:
  • the signaling server receives a service request message sent by the terminal, and obtains a source network protocol IP address of the terminal from the service request message.
  • the signaling function provides service diversity, and needs to respond quickly to the demand, so it is concentrated in the area. Center; media functions need to ensure high-quality QOS, need to be as close as possible to service, reduce delay and packet loss, so use distributed deployment. Therefore, when the terminal initiates the service request, the terminal first sends a service request message to the signaling server, so that the signaling server allocates the access information of the media server where the media resource is located to the terminal.
  • the signaling server sends a domain name query message to the domain name system DNS server.
  • the domain name query message may carry the IP address of the terminal, that is, the source IP address of the service request message.
  • the signaling server may use the unused response field in the domain name query message to carry the IP address of the terminal.
  • the value of 1 indicates that the domain name query message carries the IP address of the terminal.
  • the signaling server receives the response message returned by the DNS server for the domain name query message, where the response message carries the access information of the at least one media server corresponding to the source IP address.
  • the signaling server determines, according to the access information of the at least one media server, access information of the target media server corresponding to the source IP address.
  • the media resource may also be referred to as a media service, and different media services are distinguished by service types, such as voice codec_VoiceTC, video codec_VideoTC, RTP/RTCP processing_RTP, and the signaling server may be based on the service.
  • the request message queries one or more services, and selects access information of a media server capable of providing multiple services from access information of at least one media server, thereby reducing media server nodes that need to be accessed.
  • the signaling server sends a binding request to the target media server by using the access information of the target media server.
  • the signaling server After the binding to the target media server is successful, the signaling server returns the access information of the target media server to the terminal.
  • the access information of the target media server includes the access of the target media server. IP address and port number.
  • the signaling server does not need to maintain state information of the unbound media resource, and in the binding process, if the target media server fails to respond, the access may be based on the access of the at least one media server returned by the DNS server.
  • the information is selected from the media server according to the priority of the media server (which may also be referred to as the priority of the media resource) as the target media server.
  • the signaling server may periodically check the status of the bound resource (or the status of the target media server). If the media resource is faulty or the target media server is faulty, The session can be re-established or terminated according to a preset policy.
  • the terminal can access the target media server to obtain the media resource by using the access information of the target media server returned by the signaling server. Since the media resources in the media server can be dynamically bound to the signaling server or the terminal, the agile deployment of the media resources can be realized.
  • new media resources or media servers can be automatically deployed in the new data center in the area.
  • the information in the signaling server does not need to be modified, and the newly deployed media resources can be subsequently used. use.
  • the B area originally uses the media resources of the geographic center, as shown in FIG. 7 231.
  • the network virtualization system monitors that the local traffic of the B area is large, the other media resources may be directly deployed on the B area, as shown in FIG. 7. 228, and according to the priority of multiple media servers returned by the DNS server, the service of the B area is processed by the newly received 228, that is, in the specific implementation, the newly deployed 228 of the DNS server may be The priority can be increased; thus, the signaling server can achieve the effect of the shunt without any adjustment.
  • the network virtualization system can independently open the media resource to the third-party application.
  • the media resource can use a universal security authentication mechanism.
  • the resource user is authenticated, and after the authentication is passed, the media resource can be opened to the third party application 251.
  • the third party is applied to the media resource or the media server is also connected through the RESTFUL interface, and the RESTFUL interface is an application API interface based on the URL style.
  • FIG. 9 is a schematic flowchart diagram of another resource requesting method according to an embodiment of the present invention.
  • the resource requesting method shown in FIG. 9 is illustrated from a DNS server side, and the DNS server records Serving the SRV record and the A record, the SRV record is used to record the server domain name providing various services; the A record is used to record the correspondence between the domain name and the IP address; the NFV control management MANO (203) or Orchestrator ( 204) After the media VNF is deployed and scaled, the record information of the media resources in the DNS can be modified.
  • the resource request method may include the following steps:
  • the domain name system DNS server receives a domain name query message sent by the signaling server.
  • the DNS server parses a domain name area corresponding to a source IP address of the terminal in the domain name query message, and a service requested by the terminal;
  • the DNS server parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, and the DNS server queries the domain name area corresponding to the source IP address of the terminal in the A record.
  • the DNS server queries, according to the domain name area, the domain name of the at least one media server that provides the service.
  • the DNS server provides the at least one media server domain name of the service according to the domain name area query, where the DNS server queries the at least one media in the SRV record that provides the service and matches the domain name area. Server domain name.
  • the DNS server resolves the domain name area where the terminal is located according to the IP address of the terminal. For example, the IP address of the terminal is 10.20.0.111 and the domain name is lg.sz.gd.cn. If the requested service is Media, it can be iterated according to the domain name. Service, query out media.lg.sz.gd.cn->_media.sz.gd.cn->_media.gd.cn->_media.cn, where different domain name levels represent geographic level, such as districts, cities , province, etc., the service resource representing the service or the specific area where the media server containing the service resource is located.
  • the DNS server searches for the service according to the domain name and searches for the domain name area of the service resource or the media resource.
  • the policy can be stopped according to the policy after the record is stopped or the record of the specified layer is searched, wherein the policy can find the nearest service.
  • the domain name of the resource is immediately stopped and the result is returned; or, after finding two domain name records, the result is returned.
  • the access information of the at least one media server includes a priority of the at least one media server, and the priority is used by the signaling server to select a target media server from the at least one media server.
  • the DNS server adjusts the priority of the at least one media server according to the accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority.
  • media123.lg.sz.gd.cn has a higher priority than media123.sz.gd.cn.
  • the DNS server determines, according to the at least one media server domain name, access information of the at least one media server.
  • the DNS server determines the access information of the at least one media server according to the at least one media server domain name, where the DNS server queries the at least one media server corresponding to the at least one media server domain name in the A record. Access information.
  • the DNS server returns a response message to the signaling server, where the response message carries the access information of the at least one media server corresponding to the source IP address.
  • the foregoing multiple rounds of query may be implemented by using the DNS extension agent to implement final positioning of the terminal accessing media resources, for example, an extended proxy query terminal.
  • Access domain domain name area corresponding to the IP address
  • iteratively constitutes an SRV query request according to the access domain of the terminal; and prioritizes the service resource domain name (or media server domain name) record obtained by the SRV query request; and caches these
  • the service resource domain name makes it unnecessary for the DNS server to send a large number of query messages to search each time, reducing the loss of CPU resources.
  • the media resources of each area are used as the disaster recovery resources for other areas, you only need to add an alias with the domain name as the suffix of the disaster recovery area in the DNS server, as shown in Figure 11, ft.sz.gd
  • the .cn resource can provide disaster recovery for the entire sz.gd.cn area; after the media_322dx3.ft.sz.gd.cn media resource is generated, the DNS also generates an alias media_322dx3.sz.gd.cn with a suffix of more than one layer domain name; According to the DNS search rule, an alias of a remote resource can be reserved as a low priority resource.
  • FIG. 12 is a schematic diagram of still another resource request method according to an embodiment of the present invention.
  • the resource request method is illustrated in the scenario shown in FIG. 3, where the terminal is 281 shown in FIG. 3;
  • the server is 201 shown in FIG. 3;
  • the DNS server is 202 shown in FIG. 3;
  • the media server is 212, 213, 211, etc. shown in FIG. 3, and the target media server can be recorded as 211 shown in FIG. 3;
  • the example mainly describes how the terminal 281 of the A area requests the media resource.
  • the resource request processing procedure of the terminal 291 of the B area is similar to the terminal 281 of the A area, and will not be described in detail herein.
  • the resource request method may include the following steps:
  • S1201 The terminal sends a service request message to the signaling server.
  • the signaling server receives a service request message sent by the terminal, and obtains a source network protocol IP address of the terminal from the service request message.
  • S1203 The signaling server sends a domain name query message to the domain name system DNS server.
  • the domain name system DNS server receives the domain name query message sent by the signaling server.
  • the DNS server parses a domain name area corresponding to a source IP address of the terminal in the domain name query message, and a service requested by the terminal.
  • the DNS server queries, according to the domain name area, the domain name of the at least one media server that provides the service.
  • the DNS server determines, according to the at least one media server domain name, access information of the at least one media server.
  • the DNS server returns a response message to the signaling server, where the response message carries the access information of the at least one media server corresponding to the source IP address.
  • the signaling server receives a response message returned by the DNS server for the domain name query message.
  • the signaling server determines, according to the access information of the at least one media server, access information of the target media server corresponding to the source IP address.
  • the signaling server sends a binding request to the target media server by using the access information of the target media server.
  • the signaling server After the binding to the target media server is successful, the signaling server returns the access information of the target media server to the terminal; the access information of the target media server includes the access of the target media server. IP address and port number;
  • S1213 The terminal establishes a service flow with the target media server by using the access information of the target media server.
  • the signaling server and the media server where the media resource is located are decoupled through DNS, and are not statically bound/configured with each other; centralized signaling management realizes dynamic of media resources through the access address of the user terminal. Search and dynamic binding; centralized signaling provides the user terminal's access address to the DNS.
  • the unused reply field in the domain name query message or the home IP bearer defined by the mobile IPv6 can be used to carry the IP address of the terminal; the DNS passes the domain name suffix.
  • the level identifies the distance of the media server where the media resource is located; optionally, recursively obtains the record and prioritizes it to achieve the purpose of proximity service and disaster tolerance.
  • the method of the embodiment of the present invention is described in detail above, and the device corresponding to the embodiment of the present invention is provided below.
  • the device corresponding to the embodiment of the present invention may perform related processes or implementation manners in the foregoing embodiments of the present invention.
  • FIG. 13 is a schematic structural diagram of a resource requesting apparatus according to an embodiment of the present invention, where the resource requesting apparatus shown in FIG. 13 can be implemented in a signaling server or a signaling virtual network function, and the present invention is implemented.
  • the resource requesting device may include the following modules:
  • the communication module 1301 is configured to receive a service request message sent by the terminal, and obtain a source network protocol IP address of the terminal from the service request message.
  • the communication module 1301 is further configured to send a domain name query message to the domain name system DNS server;
  • the communication module 1301 is further configured to receive a response message that is returned by the DNS server for the domain name query message, where the response message carries access information of at least one media server corresponding to the source IP address;
  • a determining module 1302 configured to determine, according to the access information of the at least one media server, access information of the target media server corresponding to the source IP address;
  • the communication module 1301 is further configured to send a binding request to the target media server by using the access information of the target media server;
  • the communication module 1301 is further configured to: after the binding with the target media server is successful, returning access information of the target media server to the terminal; the access information of the target media server includes the target media Server access IP address and port number.
  • the service request message carries the source network protocol IP address of the terminal by using an unused field in the domain name system DNS query message.
  • the service request message carries the source network protocol IP address of the terminal by using an IPv6 home IP extension header.
  • the resource requesting device shown in FIG. 13 may further include:
  • the query module 1303 is configured to periodically query a binding state with the target media server.
  • the determining module 1302 is further configured to: when the binding state fails, determine, by the at least one media resource access information, access information of the target media server corresponding to the source IP address.
  • FIG. 14 is a schematic structural diagram of another resource requesting apparatus according to an embodiment of the present invention.
  • the resource requesting apparatus may be implemented in a DNS server or a DNS virtual network function.
  • the resource requesting device may include the following modules:
  • the communication module 1401 is configured to receive a domain name query message sent by the signaling server.
  • the parsing module 1402 is configured to parse the domain name area corresponding to the source IP address of the terminal in the domain name query message and the service requested by the terminal;
  • the query module 1403 is configured to query, according to the domain name area query, at least one media server domain name that provides the service;
  • a determining module 1404 configured to determine, according to the at least one media server domain name, access information of the at least one media server;
  • the access information of the at least one media server includes a priority of the at least one media server, and the priority is used by the signaling server to select a target media server from the at least one media server.
  • the resource requesting device shown in FIG. 14 may further include:
  • the adjusting module 1405 is configured to adjust a priority of the at least one media server according to the accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority.
  • the resource requesting apparatus shown in FIG. 14 may record a service SRV record for recording a server domain name providing various types of services, and the A record is used for recording between a domain name and an IP address.
  • a service SRV record for recording a server domain name providing various types of services
  • the A record is used for recording between a domain name and an IP address.
  • the parsing module parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, which is specifically:
  • the querying module provides at least one media server domain name of the service according to the domain name area query, specifically:
  • the determining module determines, according to the at least one media server domain name, access information of the at least one media server, specifically:
  • the domain name of the server that provides various services in the SRV record is added with the alias of the domain name of the disaster-tolerant area.
  • the resource requesting device may reversely search for the domain name area corresponding to the IP address according to the IP address of the terminal, and reversely search for the service resource or the media resource or the media server that provides the request service according to the domain name area.
  • the device may further determine, according to the domain name, the most suitable information of the terminal, for example, the access information of the nearest media server as the target media server, and return the access information of the target media server to the signaling server, so that the signaling server utilizes the access.
  • Information is bundled with media resources. Therefore, by implementing the embodiments of the present invention, not only the media resources can be dynamically bound, but also the closest media resources can be selected to provide services for the terminal.
  • FIG. 15 is a schematic structural diagram of a signaling server according to an embodiment of the present invention.
  • the signaling server 1500 includes a processor 1501, a memory 1502, and a communication interface 1503.
  • the processor 1501, the memory 1502, and the communication The interfaces 1503 are connected to each other through a bus.
  • the memory 1502 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), and an Erasable Programmable Read Only Memory (EPROM). Or a Compact Disc Read-Only Memory (CD-ROM) for storing related instructions and data.
  • Communication interface 1503 is for receiving and transmitting data or signaling.
  • the processor 1501 may be one or more central processing units (CPUs). In the case that the processor 1501 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
  • the processor 1501 in the signaling server 1500 is configured to read the program code stored in the memory 1502 and perform the following operations:
  • the access information of the target media server includes an access IP address and a port number of the target media server .
  • the service request message carries the source network protocol IP address of the terminal by using an unused field in the domain name system DNS query message.
  • the service request message carries the source network protocol IP address of the terminal by using an IPv6 home IP extension header.
  • the processor 1501 in the signaling server 1500 is configured to read the program code stored in the memory 1502, and may also perform the following operations:
  • the access information of the target media server corresponding to the source IP address is determined again from the at least one media resource access information.
  • FIG. 16 is a schematic structural diagram of a DNS server according to an embodiment of the present invention.
  • the DNS server 1600 includes a processor 1601, a memory 1602, and a communication interface 1603.
  • the processor 1601, the memory 1602, and the communication interface 1603 Connected to each other via a bus.
  • the memory 1602 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), and an Erasable Programmable Read Only Memory (EPROM). Or a Compact Disc Read-Only Memory (CD-ROM) for storing related instructions and data.
  • Communication interface 1603 is for receiving and transmitting data or signaling.
  • the processor 1601 may be one or more central processing units (CPUs). In the case where the processor 1601 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
  • the processor 1501 in the DNS server 1500 is configured to read the program code stored in the memory 1502 and perform the following operations:
  • the access information of the at least one media server includes a priority of the at least one media server, and the priority is used by the signaling server to select a target media server from the at least one media server.
  • the processor 1501 in the DNS server 1500 is configured to read the program code stored in the memory 1502, and can also perform the following operations:
  • the memory in the DNS server may record the service SRV record and the A record, where the SRV record is used to record the server domain name providing various services; and the A record is used to record the domain name and the IP address.
  • the processor 1501 parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, specifically: querying the domain name area corresponding to the source IP address of the terminal in the A record;
  • the processor 1501 queries the at least one media server domain name of the service according to the domain name area query, specifically: querying at least one media server domain name that provides the service in the SRV record and matches the domain name area;
  • the processor 1501 determines the access information of the at least one media server according to the at least one media server domain name, specifically: querying the access information of the at least one media server corresponding to the at least one media server domain name in the A record. .
  • the server domain name that provides various services in the SRV record is added with the alias of the disaster recovery area domain name as a suffix.
  • the resources can be used to provide disaster recovery for the entire sz.gd.cn area; after the media_322dx3.ft.sz.gd.cn media resource is generated, the DNS also generates an alias for the domain name suffix media_322dx3.sz.gd.cn; Search rules, aliases for off-site resources can be reserved as low-priority resources.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it 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.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed in an embodiment of the present invention are a resource request method and device, in the resource request method: a signaling server may receive a service request message which is sent by a terminal and send a domain name query message to a domain name system (DNS) server; the DNS server may return access information of at least one media server which matches the Internet Protocol (IP) address of the terminal such that the signaling server may be bound to one of the media servers, sending the access information of the media server to the terminal. Hence, by implementing the embodiment of the present invention, the signaling server may be dynamically bound to a media server such that the deployment of a media resource is more flexible.

Description

资源请求方法及装置Resource request method and device
本申请要求于2017年4月28日提交中国专利局、申请号为201710294995.0、发明名称为“资源请求方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种资源请求方法及装置。The present invention relates to the field of computer technologies, and in particular, to a resource request method and apparatus.
背景技术Background technique
传统的电信系统通过各种专用的硬件设备组成,不同的应用采用不同的硬件设备。随着网络规模的增长,电信系统也越来越复杂,为新增业务的开发上线、系统的运维等带来诸多挑战。为了解决这些挑战,全球电信运营商联合推动网络功能虚拟化(Network Function Virtualization,NFV),NFV技术可以将电信网络中的各个网元功能从专用硬件平台迁移到通用的服务器上,将电信网络中使用的各个网元转变成为独立的应用,可以灵活部署在基于标准的服务器、存储以及交换机等设备构建的统一基础设施平台上。The traditional telecommunication system is composed of various dedicated hardware devices, and different applications use different hardware devices. With the growth of the network scale, the telecommunication system is becoming more and more complex, which brings many challenges to the development of new services and the operation and maintenance of the system. In order to solve these challenges, global telecom operators jointly promote Network Function Virtualization (NFV), which can migrate individual network element functions in a telecommunications network from a dedicated hardware platform to a general-purpose server. Each network element used is transformed into a stand-alone application that can be flexibly deployed on a unified infrastructure platform built on standards-based servers, storage, and switches.
网络设备虚拟化后,业务功能不依赖与具体硬件设备,可以集中到数据中心中,按需弹性伸缩。在实践中发现,电信媒体业务的网络功能虚拟化后,由于信令和媒体资源的不同属性,逐渐形成了信令集中,媒体资源分布的部署方式。如图1所示,多媒体业务从信令和媒体资源协同分布逐渐形成为信令部署在区域中心,媒体资源部署在接近用户接入的边缘。在集中信令管理超过一定量的媒体资源后,该部署方式中若仍然通过静态配置来维护信令和分布式媒体资源的关系,以及用户和接入媒体资源的关系,将会导致运维变得异常复杂。After the network device is virtualized, the service function does not depend on specific hardware devices. It can be centralized in the data center and flexibly scaled as needed. In practice, it is found that after the network function of the telecommunication media service is virtualized, due to the different attributes of the signaling and the media resources, the signaling concentration and the distribution mode of the media resources are gradually formed. As shown in Figure 1, the coordinated distribution of multimedia services from signaling and media resources is gradually formed into signaling at the regional center, and media resources are deployed close to the edge of user access. After the centralized signaling management exceeds a certain amount of media resources, if the relationship between the signaling and the distributed media resources and the relationship between the user and the access media resources are still maintained through static configuration, the operation and maintenance will be changed. It is extremely complicated.
发明内容Summary of the invention
本发明实施例提供一种资源请求方法及装置,能够通过DNS服务器实现信令和媒体资源之间的解耦,进而有助于降低运维的复杂度。The embodiment of the invention provides a resource requesting method and device, which can implement decoupling between signaling and media resources through a DNS server, thereby helping to reduce the complexity of operation and maintenance.
第一方面,本发明实施例提供了一种资源请求方法,该资源请求方法中,信令服务器接收终端发送的业务请求消息,并从所述业务请求消息中获取所述终端的源网络协议IP地址,并向域名系统DNS服务器发送域名查询消息;接收所述DNS服务器针对所述域名查询消息返回的响应消息,所述响应消息携带所述源IP地址对应的至少一个媒体服务器的接入信息;信令服务器从所述至少一个媒体服务器的接入信息中确定所述源IP地址对应的目标媒体服务器的接入信息;信令服务器利用所述目标媒体服务器的接入信息向目标媒体服务器发送绑定请求;信令服务器在与所述目标媒体服务器绑定成功后,向所述终端返回所述目标媒体服务器的接入信息;所述目标媒体服务器的接入信息包括所述目标媒体服务器的接入IP地址和端口号。可见,实施本发明实施例,信令服务器可与媒体服务器动态绑定,使得媒体资源的部署更加灵活。In a first aspect, an embodiment of the present invention provides a resource request method, in which a signaling server receives a service request message sent by a terminal, and obtains a source network protocol IP of the terminal from the service request message. Addressing, and sending a domain name query message to the domain name system DNS server; receiving a response message returned by the DNS server for the domain name query message, the response message carrying the access information of the at least one media server corresponding to the source IP address; The signaling server determines the access information of the target media server corresponding to the source IP address from the access information of the at least one media server; the signaling server sends the binding information to the target media server by using the access information of the target media server And determining, after the binding to the target media server, the signaling server returns the access information of the target media server to the terminal; the access information of the target media server includes the connection of the target media server Enter the IP address and port number. It can be seen that, in the embodiment of the present invention, the signaling server can be dynamically bound to the media server, so that the deployment of the media resource is more flexible.
可选的,信令服务器可以使用域名查询消息中未使用的应答字段携带终端的IP地址。例如,当域名查询消息中返回码Return Code重定义为Ext,取值为1时表示该域名查询消息中携带终端的IP地址。Optionally, the signaling server may use the unused response field in the domain name query message to carry the IP address of the terminal. For example, when the return code of the domain name query message is redefined as Ext, the value of 1 indicates that the domain name query message carries the IP address of the terminal.
可选的,信令服务器可在域名查询消息中采用移动IPv6定义的家乡IP携带方式来携带终端的IP地址,例如,当IP v6扩展头使用“Next Header=60”时,则该扩展头中通过关联IP地址携带终端的IP地址。Optionally, the signaling server may carry the IP address of the terminal in the domain name query message by using the home IP carrying method defined by the mobile IPv6. For example, when the IP v6 extension header uses “Next Header=60”, the extension header is used. The IP address of the terminal is carried by the associated IP address.
可选的,信令服务器可以根据业务请求消息查询一个或多个服务,从至少一个媒体服务器的接入信息中选择能够提供多个服务的媒体服务器的接入信息,从而可以减少需要接入的媒体服务器节点。Optionally, the signaling server may query one or more services according to the service request message, and select, according to the access information of the at least one media server, access information of the media server that can provide multiple services, thereby reducing the need for access. Media server node.
可选的,信令服务器不需要维护未绑定的媒体资源的状态信息,而在绑定过程中,如果目标媒体服务器无响应等失败时,可以根据DNS服务器返回的至少一个媒体服务器的接入信息从中根据媒体服务器的优先级(也可以称为媒体资源的优先级)选择其他的媒体服务器作为目标媒体服务器。Optionally, the signaling server does not need to maintain state information of the unbound media resource, and in the binding process, if the target media server fails to respond, the access may be based on the access of the at least one media server returned by the DNS server. The information is selected from the media server according to the priority of the media server (which may also be referred to as the priority of the media resource) as the target media server.
可选的,在终端与目标媒体服务器进行业务流的传输过程中,信令服务器可以周期性的检查绑定资源的状态(或者目标媒体服务器的状态),如果媒体资源故障或者目标媒体服务器故障,可以根据预设的策略重建或终止会话。Optionally, during the transmission of the service flow between the terminal and the target media server, the signaling server may periodically check the status of the bound resource (or the status of the target media server). If the media resource is faulty or the target media server is faulty, The session can be re-established or terminated according to a preset policy.
第二方面,本发明实施例提供另一种资源请求方法,该资源请求方法中,域名系统DNS服务器接收信令服务器发送的域名查询消息;DNS服务器解析所述域名查询消息中终端的源IP地址对应的域名区域以及所述终端请求的服务;DNS服务器根据所述域名区域查询提供所述服务的至少一个媒体服务器域名;DNS服务器根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息;DNS服务器向所述信令服务器返回响应消息,所述响应消息携带所述源IP地址对应的所述至少一个媒体服务器的接入信息。In a second aspect, the embodiment of the present invention provides another resource request method, in which the domain name system DNS server receives the domain name query message sent by the signaling server, and the DNS server parses the source IP address of the terminal in the domain name query message. Corresponding domain name area and service requested by the terminal; the DNS server provides at least one media server domain name of the service according to the domain name area query; and the DNS server determines access information of the at least one media server according to the at least one media server domain name The DNS server returns a response message to the signaling server, where the response message carries the access information of the at least one media server corresponding to the source IP address.
可见,DNS服务器可以根据终端的IP地址反向查找该IP地址所对应的域名区域,并根据该域名区域反向查找提供请求服务的服务资源或媒体资源或媒体服务器的域名;从这些域名中选择与IP地址的域名区域匹配的域名,并查找该域名对应的媒体服务器接入信息,从而,获得了能够为终端提供服务的媒体服务器的接入信息,并且,DNS服务器还可以根据域名确定与终端最合适的,例如,最近的媒体服务器的接入信息作为目标媒体服务器,将该目标媒体服务器的接入信息返回给信令服务器,使得信令服务器利用该接入信息实现与媒体资源的绑定。因此,通过实施本发明实施例,不仅可以动态绑定媒体资源,还可以选择最接近的媒体资源为终端提供服务。It can be seen that the DNS server can reversely search for the domain name area corresponding to the IP address according to the IP address of the terminal, and reversely search for the service resource or the media resource or the domain name of the media server that provides the request service according to the domain name area; A domain name matching the domain name area of the IP address, and searching for the media server access information corresponding to the domain name, thereby obtaining access information of the media server capable of providing services for the terminal, and the DNS server may also determine and the terminal according to the domain name. The most suitable, for example, the access information of the nearest media server is used as the target media server, and the access information of the target media server is returned to the signaling server, so that the signaling server uses the access information to implement binding with the media resource. . Therefore, by implementing the embodiments of the present invention, not only the media resources can be dynamically bound, but also the closest media resources can be selected to provide services for the terminal.
可选的,所述DNS服务器解析所述域名查询消息中终端的源IP地址对应的域名区域,包括:所述DNS服务器查询所述A记录中终端的源IP地址对应的域名区域。Optionally, the DNS server parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, and the DNS server queries the domain name area corresponding to the source IP address of the terminal in the A record.
可选的,DNS服务器根据所述域名区域查询提供所述服务的至少一个媒体服务器域名,包括:所述DNS服务器查询所述SRV记录中提供所述服务且与所述域名区域匹配的至少一个媒体服务器域名。Optionally, the DNS server provides the at least one media server domain name of the service according to the domain name area query, where the DNS server queries the at least one media in the SRV record that provides the service and matches the domain name area. Server domain name.
其中,DNS服务器根据域名迭代查找服务查找服务资源或媒体资源的域名区域时,可根据策略在查到记录后停止或是查找指定层的记录时停止,其中,该策略可为查找到最近服务资源的域名时立即停止,返回结果;或者,查找到两个域名记录后返回结果。When the DNS server searches for the service resource or the domain name area of the media resource according to the domain name iterative search service, it can stop according to the policy after stopping the record or finding the record of the specified layer according to the policy, wherein the policy can find the latest service resource. The domain name is stopped immediately, and the result is returned; or, after finding two domain name records, the result is returned.
可选的,所述至少一个媒体服务器的接入信息包括所述至少一个媒体服务器的优先级,所述优先级用于所述信令服务器从所述至少一个媒体服务器中选择目标媒体服务器。Optionally, the access information of the at least one media server includes a priority of the at least one media server, and the priority is used by the signaling server to select a target media server from the at least one media server.
可选的,DNS服务器根据所述至少一个媒体服务器域名的精确度调整所述至少一个媒体服务器的优先级,其中,所述精确度与所述优先级成正比。例如,media123.lg.sz.gd.cn优先级高于media123.sz.gd.cn。Optionally, the DNS server adjusts the priority of the at least one media server according to the accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority. For example, media123.lg.sz.gd.cn has a higher priority than media123.sz.gd.cn.
可选的,DNS服务器根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息,包括:所述DNS服务器查询所述A记录中所述至少一个媒体服务器域名对应的至少一个媒体服务器的接入信息。Optionally, the DNS server determines the access information of the at least one media server according to the at least one media server domain name, where the DNS server queries the at least one media server corresponding to the at least one media server domain name in the A record. Access information.
可选的,在DNS服务器所在的DNS系统无法扩展升级的情况下,可使用DNS扩展代理实施上述多轮查询实现终端接入媒体资源或者媒体服务器的最终定位。Optionally, in a case that the DNS system where the DNS server is located cannot be upgraded, the DNS extension agent may be used to implement the foregoing multiple rounds of queries to implement terminal positioning of the media resource or the media server.
可选的,当每个区域的媒体资源作为容灾资源提供给其他区域使用时,可在DNS服务器中增加以容灾区域域名为后缀的别名。Optionally, when the media resources of each area are used as the disaster recovery resources for other areas, an alias with the domain name of the disaster recovery area may be added to the DNS server.
第三方面,本发明实施例还提供了一种资源请求装置,该资源请求装置具有实现上述第一方面所述的资源请求方法的功能。上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。上述硬件或软件包括一个或多个与上述功能相对应的模块。例如,该资源请求装置可以包括通信模块、确定模块以及查询模块。In a third aspect, an embodiment of the present invention further provides a resource requesting apparatus, where the resource requesting apparatus has a function of implementing the resource requesting method according to the first aspect. The above functions can be implemented by hardware or by executing corresponding software through hardware. The above hardware or software includes one or more modules corresponding to the above functions. For example, the resource requesting device may include a communication module, a determination module, and a query module.
第四方面,本发明实施例还提供了一种资源请求装置,该数据处理装置具有实现上述第二方面所述的资源请求方法的功能。上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。上述硬件或软件包括一个或多个与上述功能相对应的模块。例如,该资源请求装置可以包括通信模块、解析模块、查询模块、确定模块以及调整模块。In a fourth aspect, an embodiment of the present invention further provides a resource requesting apparatus, where the data processing apparatus has a function of implementing the resource requesting method according to the second aspect. The above functions can be implemented by hardware or by executing corresponding software through hardware. The above hardware or software includes one or more modules corresponding to the above functions. For example, the resource requesting device may include a communication module, a parsing module, a query module, a determining module, and an adjusting module.
第五方面,本发明实施例还提供了一种资源请求设备,该资源请求设备可以包括处理器、存储器以及通信接口,所述处理器分别与所述通信接口及所述存储器连接;所述存储器用于存储程序指令;所述处理器用于调用所述存储器中的程序指令,执行本发明实施例的第一方面所述的资源请求方法。In a fifth aspect, the embodiment of the present invention further provides a resource requesting device, where the resource requesting device may include a processor, a memory, and a communication interface, where the processor is respectively connected to the communication interface and the memory; the memory For storing program instructions; the processor is configured to invoke program instructions in the memory, and execute the resource request method according to the first aspect of the embodiments of the present invention.
第六方面,本发明实施例还提供了一种基站,该基站可以包括处理器、存储器以及通信接口,所述处理器分别与所述通信接口及所述存储器连接;所述存储器用于存储程序指令;所述处理器用于调用所述存储器中的程序指令,执行本发明实施例的第二方面所述的资源请求方法;In a sixth aspect, an embodiment of the present invention further provides a base station, where the base station may include a processor, a memory, and a communication interface, where the processor is respectively connected to the communication interface and the memory; and the memory is used to store a program. The processor is configured to invoke a program instruction in the memory, and execute the resource request method according to the second aspect of the embodiments of the present invention;
第七方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的资源请求方法。In a seventh aspect, the embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores instructions, when executed on a computer, causing the computer to execute the resource request described in the foregoing aspects. method.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或背景技术中的技术方案,下面将对本发明实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background art, the drawings to be used in the embodiments of the present invention or the background art will be described below.
图1是本发明实施例公开的一种媒体业务趋向信令集中媒体资源分布的部署方式的示意图;FIG. 1 is a schematic diagram of a manner in which a media service tends to be distributed in a centralized media resource distribution according to an embodiment of the present disclosure;
图2是本发明实施例公开的一种网络功能虚拟化NFV的系统架构图;2 is a system architecture diagram of a network function virtualization NFV according to an embodiment of the present invention;
图3是本发明实施例公开的一种资源请求场景的示意图;3 is a schematic diagram of a resource request scenario according to an embodiment of the present invention;
图4是本发明实施例提供的一种资源请求方法的流程示意图;4 is a schematic flowchart of a resource request method according to an embodiment of the present invention;
图5是本发明实施例提供的一种域名查询消息格式的示意图;FIG. 5 is a schematic diagram of a domain name query message format according to an embodiment of the present disclosure;
图6是本发明实施例提供的一种移动IPv6携带终端的IP地址的示意图;FIG. 6 is a schematic diagram of an IP address of a mobile IPv6 mobile terminal according to an embodiment of the present invention;
图7是本发明实施例提供的一种媒体资源灵活部署的示意图;FIG. 7 is a schematic diagram of flexible deployment of media resources according to an embodiment of the present invention; FIG.
图8是本发明实施例提供的一种媒体资源独立开放给第三方的示意图;FIG. 8 is a schematic diagram of a media resource independently opened to a third party according to an embodiment of the present invention; FIG.
图9是本发明实施例提供的另一种资源请求方法的流程示意图;FIG. 9 is a schematic flowchart diagram of another resource request method according to an embodiment of the present invention;
图10是本发明实施例提供的一种DNS扩展代理场景的流程示意图;FIG. 10 is a schematic flowchart of a DNS extended proxy scenario according to an embodiment of the present disclosure;
图11是本发明实施例提供的一种异地容灾场景的流程示意图;11 is a schematic flowchart of a remote disaster recovery scenario according to an embodiment of the present invention;
图12是本发明实施例提供的又一种资源请求方法的示意图;FIG. 12 is a schematic diagram of still another resource request method according to an embodiment of the present invention; FIG.
图13是本发明实施例提供的一种资源请求装置的结构示意图;FIG. 13 is a schematic structural diagram of a resource request apparatus according to an embodiment of the present invention;
图14是本发明实施例提供的另一种资源请求装置的结构示意图;FIG. 14 is a schematic structural diagram of another resource request apparatus according to an embodiment of the present disclosure;
图15是本发明实施例提供的一种信令服务器的结构示意图;FIG. 15 is a schematic structural diagram of a signaling server according to an embodiment of the present invention;
图16是本发明实施例提供的一种DNS服务器的结构示意图。FIG. 16 is a schematic structural diagram of a DNS server according to an embodiment of the present invention.
具体实施方式detailed description
下面结合本发明实施例中的附图对本发明实施例进行描述。The embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention.
为了更好的理解本发明实施例,下面先对本发明实施例的网络功能虚拟化NFV(Network Function Virtualization,网络功能虚拟化,简称NFV)的系统架构图进行描述。如图2所示,图2是NFV系统的架构图,NFV系统100可以在各种不同的网络环境中使用,例如:一个数据中心网络、运营商网络或局域网来实现。NFV系统100包括一个网络功能虚拟化管理和编排系统(NFV-Management and Orchestration,NFV-MANO)101、网络功能虚拟化基础设施(NFV Infrastructure,NFVI)130、多个网元管理(Element Management,EM)122、多个虚拟网络功能(Virtual Network Function,VNF)108、网络服务、VNF和基础设施描述126(Network Service,VNF and Infrastructure Description)以及运营支撑系统/业务支撑系统(Operation-Support System/Business Support System,OSS/BSS)124。其中,网络功能虚拟化编排和管理系统101包括网络功能虚拟化编排器(NFV Orchestrator,NFVO)102、一个或多个虚拟网络功能管理器(VNF Manager,VNFM)104和虚拟化基础设施管理器(Virtualized Infrastructure Manager,VIM)106。网络功能虚拟化基础设施130包括硬件资源层、虚拟化层和虚拟资源层,硬件资源层包括计算硬件112、存储硬件114和网络硬件116,虚拟资源层包括虚拟计算110、虚拟存储118和虚拟网络120。网络服务、VNF和基础设施描述126和运营支撑系统/业务支撑系统124在ETSI GS NFV 002 V1.1.1标准中有进一步的讨论。For a better understanding of the embodiments of the present invention, a system architecture diagram of Network Function Virtualization (NFV) of the network function virtualization (NFV) of the embodiment of the present invention is described below. As shown in FIG. 2, FIG. 2 is an architectural diagram of an NFV system. The NFV system 100 can be implemented in various network environments, such as a data center network, a carrier network, or a local area network. The NFV system 100 includes a network function virtualization management and orchestration system (NFV-MANO) 101, a network function virtualization infrastructure (NFVI) 130, and multiple element management (EM). 122, multiple virtual network functions (VNF) 108, network services, VNF and infrastructure description 126 (Network Service, VNF and Infrastructure Description) and operational support system / business support system (Operation-Support System / Business Support System, OSS/BSS) 124. The network function virtualization orchestration and management system 101 includes a network function virtualization orchestrator (NFVO) 102, one or more virtual network function managers (VNF Managers, VNFM) 104, and a virtualization infrastructure manager ( Virtualized Infrastructure Manager, VIM) 106. The network function virtualization infrastructure 130 includes a hardware resource layer, a virtualization layer, and a virtual resource layer. The hardware resource layer includes computing hardware 112, storage hardware 114, and network hardware 116. The virtual resource layer includes virtual computing 110, virtual storage 118, and virtual network. 120. Network services, VNF and infrastructure descriptions 126 and operational support system/business support system 124 are further discussed in the ETSI GS NFV 002 V1.1.1 standard.
NFV管理和编排系统101用于执行对虚拟网络功能108和网络功能虚拟化基础设施130的监视和管理。网络功能虚拟化编排器102可以实现在网络功能虚拟化基础设施130上的网络服务(如L2和L3 VPN服务),也可以执行来自一个或多个虚拟网络功能管理器104的资源相关请求,发送配置信息到虚拟网络功能管理器104,并收集虚拟网络功能108的状态信息。另外,网络功能虚拟化编排器102可以与虚拟基础设施管理器106通信,以 实现资源的分配和/或预留以及交换虚拟化硬件资源的配置和状态信息。虚拟网络功能管理器104可以管理一个或多个虚拟网络功能108。虚拟网络功能管理器104可以执行各种管理功能,例如实例化、更新、查询、缩放和/或终止虚拟网络功能108等。虚拟基础设施管理器106可以执行资源管理的功能,例如管理基础设施资源的分配(例如增加资源到容器)和操作功能(如收集网络功能虚拟化基础设施故障信息)。虚拟网络功能管理器104和虚拟基础设施管理器106可以相互通信进行资源分配和交换虚拟化硬件资源的配置和状态信息。The NFV management and orchestration system 101 is used to perform monitoring and management of the virtual network function 108 and the network function virtualization infrastructure 130. Network function virtualization orchestrator 102 may implement network services (such as L2 and L3 VPN services) on network function virtualization infrastructure 130, as well as resource related requests from one or more virtual network function managers 104, to send The information is configured to the virtual network function manager 104 and the status information of the virtual network function 108 is collected. In addition, network function virtualization orchestrator 102 can communicate with virtual infrastructure manager 106 to effect resource allocation and/or reservation and to exchange configuration and status information for virtualized hardware resources. The virtual network function manager 104 can manage one or more virtual network functions 108. The virtual network function manager 104 can perform various management functions such as instantiating, updating, querying, scaling, and/or terminating the virtual network function 108 and the like. The virtual infrastructure manager 106 can perform resource management functions such as managing the allocation of infrastructure resources (eg, adding resources to containers) and operational functions (eg, collecting network function virtualization infrastructure failure information). The virtual network function manager 104 and the virtual infrastructure manager 106 can communicate with one another for resource allocation and exchange of configuration and status information for virtualized hardware resources.
网络功能虚拟化基础设施130包括硬件资源、软件资源或两者的组合来完成虚拟化环境的部署。换句话说,硬件资源和虚拟化层用于提供虚拟化的资源,例如作为虚拟机和其他形式的容器,用于安装虚拟网络功能108。硬件资源包括计算硬件112、存储硬件114和网络硬件116。计算硬件112可以是市场上现成的硬件和/或用户定制的硬件,用来提供处理和计算资源。存储硬件114可以是网络内提供的存储容量或驻留在存储硬件114本身的存储容量(位于服务器内的本地存储器)。在一种可能的实现方式中,计算硬件112和存储硬件114可以被集中在一起。网络硬件116可以是交换机、路由器和/或配置成具有交换功能的任何其他网络设备。网络硬件116可以横跨多个域,并且可以包括多个由一个或一个以上传输网络互连的网络。The network function virtualization infrastructure 130 includes hardware resources, software resources, or a combination of both to complete the deployment of the virtualized environment. In other words, the hardware resources and virtualization layers are used to provide virtualized resources, such as virtual machines and other forms of containers, for installing virtual network functions 108. Hardware resources include computing hardware 112, storage hardware 114, and network hardware 116. Computing hardware 112 may be off-the-shelf hardware and/or user-customized hardware used to provide processing and computing resources. Storage hardware 114 may be storage capacity provided within the network or storage capacity resident in storage hardware 114 itself (local storage located within the server). In one possible implementation, computing hardware 112 and storage hardware 114 can be grouped together. Network hardware 116 can be a switch, a router, and/or any other network device configured to have switching functionality. Network hardware 116 can span multiple domains and can include multiple networks interconnected by one or more transport networks.
网络功能虚拟化基础设施130的虚拟化层可以从物理层抽象硬件资源和解耦虚拟网络功能108,以便向虚拟网络功能108提供虚拟化资源。虚拟资源层包括虚拟计算110、虚拟存储118和虚拟网络120。虚拟计算110和虚拟存储118可以以虚拟机和/或其他容器的形式提供给虚拟网络功能108。例如:一个或一个以上的虚拟网络功能108可以部署在一个虚拟机(Virtual Machine)上。虚拟化层抽象网络硬件116形成虚拟网络120,虚拟网络120可以包括虚拟交换机(Virtual Switch),虚拟交换机用来提供虚拟机之间的连接。此外,网络硬件116中的传输网络,可以采用集中式控制平面和一个单独的转发平面(如软件定义网络,SDN)虚拟化。The virtualization layer of network function virtualization infrastructure 130 may abstract hardware resources and decouple virtual network functions 108 from the physical layer to provide virtualized resources to virtual network functions 108. The virtual resource layer includes virtual computing 110, virtual storage 118, and virtual network 120. Virtual computing 110 and virtual storage 118 may be provided to virtual network functionality 108 in the form of virtual machines and/or other containers. For example, one or more virtual network functions 108 can be deployed on a virtual machine. The virtualization layer abstract network hardware 116 forms a virtual network 120. The virtual network 120 can include a virtual switch (Virtual Switch) for providing connections between virtual machines. In addition, the transport network in network hardware 116 can be virtualized using a centralized control plane and a separate forwarding plane (eg, software defined network, SDN).
如图2所示,虚拟网络功能管理器104可与虚拟网络功能108和网元管理122交互来对虚拟网络功能108的生命周期进行管理以及交换配置和状态信息。虚拟网络功能108可以被配置为通过一个物理网络设备执行的至少一个网络功能的虚拟化。例如,在一个实现方案中,虚拟网络功能108可以经过配置以提供IMS(IP Multimedia Subsystem,IP多媒体子系统,简称IMS)网络中的不同网元具备的功能,如P-CSCF(Proxy-Call Session Control Funtion,代理呼叫会话控制功能,简称P-CSCF)、S-CSCF(Serving-Call Session Control Funtion,服务呼叫会话控制功能,简称PSCSCF))或HSS(Home Subscriber Server,归属签约用户服务器,简称HSS)的网络功能等。网元管理122经过配置以对一个或一个以上的虚拟网络功能108进行管理。As shown in FIG. 2, virtual network function manager 104 can interact with virtual network function 108 and network element management 122 to manage the lifecycle of virtual network function 108 and to exchange configuration and status information. The virtual network function 108 can be configured to virtualize at least one network function performed by one physical network device. For example, in one implementation, the virtual network function 108 can be configured to provide functions of different network elements in an IMS (IP Multimedia Subsystem, IP Multimedia Subsystem, IMS for short) network, such as a P-CSCF (Proxy-Call Session). Control Funtion, Proxy Call Session Control Function (P-CSCF), S-CSCF (Serving-Call Session Control Funtion, PSCSCF), or HSS (Home Subscriber Server, Home Subscriber Server, HSS for short) ) Network functions, etc. The element management 122 is configured to manage one or more virtual network functions 108.
在上述NFV系统中,业务功能不依赖与具体硬件设备,可以集中到数据中心中,按需弹性伸缩。在实践中发现,电信媒体业务的网络功能虚拟化后,由于电信媒体业务的信令和媒体资源的不同属性,逐渐形成了信令集中,媒体资源分布的部署方式。In the above NFV system, the service function does not depend on specific hardware devices, and can be concentrated in the data center to flexibly flex as needed. In practice, it is found that after the network function of the telecommunication media service is virtualized, due to the different attributes of the signaling and media resources of the telecommunication media service, the signaling concentration and the distribution mode of the media resource distribution are gradually formed.
应理解,本发明实施例中,信令服务器也可以称为信令虚拟网络功能Signaling VNF,为部署信令功能的服务器,即信令虚拟网络功能所部署的设备,可以统称为信令服务器; 相应的,媒体服务器为部署媒体资源的服务器,也可以为部署媒体资源虚拟网络功能的服务器,该媒体服务器也可以称为媒体资源,本发明实施例不做限定,例如,媒体资源一般提供RTP媒体流的转发、音视频编解码的转换等功能,如IP多媒体子系统(IP Multimedia Subsystem,IMS)的各种功能。如图1所示,信令虚拟网络功能可以集中部署,媒体资源虚拟网络功能则可以分布式的部署到各区域的媒体服务器中。图1中UE,即User Equipment,用户设备,也可以称为终端。It should be understood that, in the embodiment of the present invention, the signaling server may also be referred to as a signaling virtual network function, Signaling VNF, which is a server deployed with a signaling function, that is, a device deployed by a signaling virtual network function, and may be collectively referred to as a signaling server; Correspondingly, the media server is a server that deploys a media resource, and may also be a server that deploys a virtual network function of the media resource. The media server may also be referred to as a media resource, which is not limited in the embodiment of the present invention. For example, the media resource generally provides RTP media. Functions such as stream forwarding, audio and video codec conversion, and other functions such as IP Multimedia Subsystem (IMS). As shown in Figure 1, the signaling virtual network function can be deployed centrally, and the media resource virtual network function can be distributed to the media servers in each area. The UE in FIG. 1 is a User Equipment, which may also be called a terminal.
其中,DNS服务器为部署DNS的服务器或数据中心的统称,本发明实施例不做限定。The DNS server is a general name of a server or a data center for deploying a DNS, which is not limited in the embodiment of the present invention.
如图1所示,多媒体业务从信令和媒体资源协同分布逐渐形成为信令部署在区域中心,媒体资源部署在接近用户接入的边缘。在集中信令管理超过一定量的媒体资源后,该部署方式中若仍然通过静态配置来维护信令和分布式媒体资源的关系,以及用户和接入媒体资源的关系,将会导致运维变得异常复杂。例如,用户终端向信令服务器发送业务请求消息时,信令服务器只能查询静态配置的该用户终端所在的区域所匹配的媒体服务器的接入信息,将该接入信息返回给用户终端,使得,用户终端利用该接入信息接入媒体资源所在的媒体服务器,可见,该实施方式将会导致信令服务器需要维护大量的分布式媒体资源以及用户和媒体资源的关系,从而导致运维变得异常复杂。As shown in Figure 1, the coordinated distribution of multimedia services from signaling and media resources is gradually formed into signaling at the regional center, and media resources are deployed close to the edge of user access. After the centralized signaling management exceeds a certain amount of media resources, if the relationship between the signaling and the distributed media resources and the relationship between the user and the access media resources are still maintained through static configuration, the operation and maintenance will be changed. It is extremely complicated. For example, when the user terminal sends a service request message to the signaling server, the signaling server can only query the statically configured access information of the media server that matches the area where the user terminal is located, and return the access information to the user terminal, so that The user terminal uses the access information to access the media server where the media resource is located. It can be seen that the implementation manner of the signaling server needs to maintain a large number of distributed media resources and the relationship between the user and the media resource, thereby causing the operation and maintenance to become Very complicated.
请参阅图3,以下结合图3所示的资源请求场景对本发明实施例所述的资源请求方法进行详细阐述。其中,图3所示的资源请求场景中,媒体资源所在的媒体服务器可以在城市A和城市B分布式部署,信令服务器与DNS服务器可以集中部署,其中,DNS服务器可以包括多个,用于承载域名系统的相关功能,其中,MANO或者NFVO可以在媒体资源分布式部署后,修改DNS服务器中媒体资源或者媒体资源所在的媒体服务器的记录,例如,所对应的域名区域,或者接入信息等。Referring to FIG. 3, the resource request method according to the embodiment of the present invention is described in detail below in conjunction with the resource request scenario shown in FIG. In the resource request scenario shown in FIG. 3, the media server where the media resource is located may be deployed in a distributed manner in the city A and the city B. The signaling server and the DNS server may be deployed in a centralized manner, where the DNS server may include multiple The related functions of the domain name system are carried out, wherein MANO or NFVO can modify the records of the media server or the media server where the media resource is located after the distributed deployment of the media resources, for example, the corresponding domain name area, or access information, etc. .
请参阅图4,图4是本发明实施例提供的一种资源请求方法的流程示意图,其中,图4所示的资源请求方法是从信令服务器侧进行阐述的,具体的,该资源请求方法可以包括以下步骤:Referring to FIG. 4, FIG. 4 is a schematic flowchart of a resource requesting method according to an embodiment of the present invention. The resource requesting method shown in FIG. 4 is illustrated from a signaling server side. Specifically, the resource requesting method is provided. The steps can be included:
S401、信令服务器接收终端发送的业务请求消息,并从所述业务请求消息中获取所述终端的源网络协议IP地址;S401. The signaling server receives a service request message sent by the terminal, and obtains a source network protocol IP address of the terminal from the service request message.
本发明实施例中,由于电信的媒体业务,如语音、视频等,其信令功能和媒体功能的不同诉求,例如,信令功能提供业务的多样性,需要快速应对需求,因此会集中到区域的中心;媒体功能需要保证高质量的QOS,需要尽量就近服务,减少时延和丢包,因此采用分布式部署。因此,终端在发起业务请求时,首先要向信令服务器发送业务请求消息,以便于信令服务器为该终端分配媒体资源所在媒体服务器的接入信息。In the embodiment of the present invention, due to different requirements of the signaling function and the media function of the telecommunication media service, such as voice and video, for example, the signaling function provides service diversity, and needs to respond quickly to the demand, so it is concentrated in the area. Center; media functions need to ensure high-quality QOS, need to be as close as possible to service, reduce delay and packet loss, so use distributed deployment. Therefore, when the terminal initiates the service request, the terminal first sends a service request message to the signaling server, so that the signaling server allocates the access information of the media server where the media resource is located to the terminal.
S402、信令服务器向域名系统DNS服务器发送域名查询消息;S402. The signaling server sends a domain name query message to the domain name system DNS server.
本发明实施例中,域名查询消息中可以携带终端的IP地址,即该业务请求消息的源IP地址。In the embodiment of the present invention, the domain name query message may carry the IP address of the terminal, that is, the source IP address of the service request message.
可选的,信令服务器可以使用域名查询消息中未使用的应答字段携带终端的IP地址。如图5所示,当Return Code重定义为Ext,取值为1时表示该域名查询消息中携带终端的IP地址。Optionally, the signaling server may use the unused response field in the domain name query message to carry the IP address of the terminal. As shown in FIG. 5, when the Return Code is redefined as Ext, the value of 1 indicates that the domain name query message carries the IP address of the terminal.
可选的,信令服务器也可以使用IPv6场景下,移动IPv6定义的家乡IP携带方式来携 带终端的IP地址,如图6所示,当IP v6扩展头使用“Next Header=60”时,则该扩展头中通过关联IP地址携带终端的IP地址。Optionally, the signaling server may also use the home IP carrying mode defined by the mobile IPv6 to carry the IP address of the terminal in the IPv6 scenario, as shown in FIG. 6 , when the IP v6 extension header uses “Next Header=60”, The extension header carries the IP address of the terminal through the associated IP address.
S403、信令服务器接收所述DNS服务器针对所述域名查询消息返回的响应消息,所述响应消息携带所述源IP地址对应的至少一个媒体服务器的接入信息;S403. The signaling server receives the response message returned by the DNS server for the domain name query message, where the response message carries the access information of the at least one media server corresponding to the source IP address.
S404、信令服务器从所述至少一个媒体服务器的接入信息中确定所述源IP地址对应的目标媒体服务器的接入信息;S404. The signaling server determines, according to the access information of the at least one media server, access information of the target media server corresponding to the source IP address.
本发明实施例中,媒体资源也可以称为媒体服务,不同的媒体服务通过服务类型区别,如语音编解码_VoiceTC,视频编解码_VideoTC,RTP/RTCP处理_RTP,信令服务器可以根据业务请求消息查询一个或多个服务,从至少一个媒体服务器的接入信息中选择能够提供多个服务的媒体服务器的接入信息,从而可以减少需要接入的媒体服务器节点。In the embodiment of the present invention, the media resource may also be referred to as a media service, and different media services are distinguished by service types, such as voice codec_VoiceTC, video codec_VideoTC, RTP/RTCP processing_RTP, and the signaling server may be based on the service. The request message queries one or more services, and selects access information of a media server capable of providing multiple services from access information of at least one media server, thereby reducing media server nodes that need to be accessed.
S405、信令服务器利用所述目标媒体服务器的接入信息向目标媒体服务器发送绑定请求;S405. The signaling server sends a binding request to the target media server by using the access information of the target media server.
S406、信令服务器在与所述目标媒体服务器绑定成功后,向所述终端返回所述目标媒体服务器的接入信息;所述目标媒体服务器的接入信息包括所述目标媒体服务器的接入IP地址和端口号。S406. After the binding to the target media server is successful, the signaling server returns the access information of the target media server to the terminal. The access information of the target media server includes the access of the target media server. IP address and port number.
可选的,信令服务器不需要维护未绑定的媒体资源的状态信息,而在绑定过程中,如果目标媒体服务器无响应等失败时,可以根据DNS服务器返回的至少一个媒体服务器的接入信息从中根据媒体服务器的优先级(也可以称为媒体资源的优先级)选择其他的媒体服务器作为目标媒体服务器。Optionally, the signaling server does not need to maintain state information of the unbound media resource, and in the binding process, if the target media server fails to respond, the access may be based on the access of the at least one media server returned by the DNS server. The information is selected from the media server according to the priority of the media server (which may also be referred to as the priority of the media resource) as the target media server.
可选的,在终端与目标媒体服务器进行业务流的传输过程中,信令服务器可以周期性的检查绑定资源的状态(或者目标媒体服务器的状态),如果媒体资源故障或者目标媒体服务器故障,可以根据预设的策略重建或终止会话。Optionally, during the transmission of the service flow between the terminal and the target media server, the signaling server may periodically check the status of the bound resource (or the status of the target media server). If the media resource is faulty or the target media server is faulty, The session can be re-established or terminated according to a preset policy.
可见,通过本发明实施例所述的资源请求方法,终端可以利用信令服务器返回的目标媒体服务器的接入信息,接入目标媒体服务器获取媒体资源。由于媒体服务器中的媒体资源可以与信令服务器或者终端动态绑定,因此,可实现媒体资源的敏捷部署。It can be seen that, by using the resource request method in the embodiment of the present invention, the terminal can access the target media server to obtain the media resource by using the access information of the target media server returned by the signaling server. Since the media resources in the media server can be dynamically bound to the signaling server or the terminal, the agile deployment of the media resources can be realized.
例如,在A区域流量暴增时,可在该区域新的数据中心自动部署新的媒体资源,或者媒体服务器,不需要修改信令服务器中的信息,新部署的媒体资源就可以被后续的业务使用。For example, when traffic in the A area increases rapidly, new media resources or media servers can be automatically deployed in the new data center in the area. The information in the signaling server does not need to be modified, and the newly deployed media resources can be subsequently used. use.
再例如,B区域原本使用地域中心的媒体资源,如图7所示的231,网络虚拟化系统监控到B区域本地流量较大,则可以直接在B区域上部署其他的媒体资源,如图7所示的228,并根据DNS服务器返回的多个媒体服务器的优先级,将B区域的业务就近由新不收的228进行处理,即具体实现中,可将DNS服务器中该新部署的228的优先级调高即可;从而,使得信令服务器不需要做任何调整,就可以实现分流的效果。For example, the B area originally uses the media resources of the geographic center, as shown in FIG. 7 231. If the network virtualization system monitors that the local traffic of the B area is large, the other media resources may be directly deployed on the B area, as shown in FIG. 7. 228, and according to the priority of multiple media servers returned by the DNS server, the service of the B area is processed by the newly received 228, that is, in the specific implementation, the newly deployed 228 of the DNS server may be The priority can be increased; thus, the signaling server can achieve the effect of the shunt without any adjustment.
再例如,由于媒体资源和信令服务器不再静态绑定,则网络虚拟化系统可将媒体资源独立开放给第三方应用,如图8所示,该媒体资源可以用通用的安全认证机制,对于资源使用方进行认证,认证通过后,可将媒体资源开放给第三方应用251。其中,第三方应用于媒体资源或媒体服务器之间也是通过RESTFUL接口进行连接的,RESTFUL接口是一种基于URL风格的应用API接口。For example, since the media resource and the signaling server are no longer statically bound, the network virtualization system can independently open the media resource to the third-party application. As shown in FIG. 8, the media resource can use a universal security authentication mechanism. The resource user is authenticated, and after the authentication is passed, the media resource can be opened to the third party application 251. Among them, the third party is applied to the media resource or the media server is also connected through the RESTFUL interface, and the RESTFUL interface is an application API interface based on the URL style.
请参阅图9,图9是本发明实施例提供的另一种资源请求方法的流程示意图,其中,图9所示的资源请求方法是从DNS服务器一侧进行阐述的,所述DNS服务器记录有服务SRV记录和A记录,所述SRV记录用于记录提供各类服务的服务器域名;所述A记录用于记录域名与IP地址之间的对应关系;NFV的控制管理MANO(203)或Orchestrator(204)在进行媒体VNF的部署、伸缩后,能够修改DNS中媒体资源的记录信息。Referring to FIG. 9, FIG. 9 is a schematic flowchart diagram of another resource requesting method according to an embodiment of the present invention. The resource requesting method shown in FIG. 9 is illustrated from a DNS server side, and the DNS server records Serving the SRV record and the A record, the SRV record is used to record the server domain name providing various services; the A record is used to record the correspondence between the domain name and the IP address; the NFV control management MANO (203) or Orchestrator ( 204) After the media VNF is deployed and scaled, the record information of the media resources in the DNS can be modified.
具体的,该资源请求方法可以包括以下步骤:Specifically, the resource request method may include the following steps:
S901、域名系统DNS服务器接收信令服务器发送的域名查询消息;S901. The domain name system DNS server receives a domain name query message sent by the signaling server.
S902、所述DNS服务器解析所述域名查询消息中终端的源IP地址对应的域名区域以及所述终端请求的服务;S902, the DNS server parses a domain name area corresponding to a source IP address of the terminal in the domain name query message, and a service requested by the terminal;
可选的,所述DNS服务器解析所述域名查询消息中终端的源IP地址对应的域名区域,包括:所述DNS服务器查询所述A记录中终端的源IP地址对应的域名区域。Optionally, the DNS server parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, and the DNS server queries the domain name area corresponding to the source IP address of the terminal in the A record.
S903、DNS服务器根据所述域名区域查询提供所述服务的至少一个媒体服务器域名;S903. The DNS server queries, according to the domain name area, the domain name of the at least one media server that provides the service.
可选的,DNS服务器根据所述域名区域查询提供所述服务的至少一个媒体服务器域名,包括:所述DNS服务器查询所述SRV记录中提供所述服务且与所述域名区域匹配的至少一个媒体服务器域名。Optionally, the DNS server provides the at least one media server domain name of the service according to the domain name area query, where the DNS server queries the at least one media in the SRV record that provides the service and matches the domain name area. Server domain name.
DNS服务器根据终端的IP地址解析出该终端所在的域名区域,如终端的IP地址:10.20.0.111查询的域名为lg.sz.gd.cn,所请求的服务为Media,则可根据域名迭代查找服务,查询出media.lg.sz.gd.cn->_media.sz.gd.cn->_media.gd.cn->_media.cn,其中不同的域名层次代表了地理位置层次,如区、市、省国家等,代表这个服务的服务资源或包含该服务资源的媒体服务器所在的具体区域。The DNS server resolves the domain name area where the terminal is located according to the IP address of the terminal. For example, the IP address of the terminal is 10.20.0.111 and the domain name is lg.sz.gd.cn. If the requested service is Media, it can be iterated according to the domain name. Service, query out media.lg.sz.gd.cn->_media.sz.gd.cn->_media.gd.cn->_media.cn, where different domain name levels represent geographic level, such as districts, cities , province, etc., the service resource representing the service or the specific area where the media server containing the service resource is located.
其中,DNS服务器根据域名迭代查找服务,查找服务资源或媒体资源的域名区域时,可根据策略在查到记录后停止或是查找指定层的记录时停止,其中,该策略可为查找到最近服务资源的域名时立即停止,返回结果;或者,查找到两个域名记录后返回结果。The DNS server searches for the service according to the domain name and searches for the domain name area of the service resource or the media resource. The policy can be stopped according to the policy after the record is stopped or the record of the specified layer is searched, wherein the policy can find the nearest service. The domain name of the resource is immediately stopped and the result is returned; or, after finding two domain name records, the result is returned.
可选的,所述至少一个媒体服务器的接入信息包括所述至少一个媒体服务器的优先级,所述优先级用于所述信令服务器从所述至少一个媒体服务器中选择目标媒体服务器。Optionally, the access information of the at least one media server includes a priority of the at least one media server, and the priority is used by the signaling server to select a target media server from the at least one media server.
可选的,DNS服务器根据所述至少一个媒体服务器域名的精确度调整所述至少一个媒体服务器的优先级,其中,所述精确度与所述优先级成正比。例如,media123.lg.sz.gd.cn优先级高于media123.sz.gd.cn。Optionally, the DNS server adjusts the priority of the at least one media server according to the accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority. For example, media123.lg.sz.gd.cn has a higher priority than media123.sz.gd.cn.
S904、DNS服务器根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息;S904. The DNS server determines, according to the at least one media server domain name, access information of the at least one media server.
可选的,DNS服务器根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息,包括:所述DNS服务器查询所述A记录中所述至少一个媒体服务器域名对应的至少一个媒体服务器的接入信息。Optionally, the DNS server determines the access information of the at least one media server according to the at least one media server domain name, where the DNS server queries the at least one media server corresponding to the at least one media server domain name in the A record. Access information.
S905、DNS服务器向所述信令服务器返回响应消息,所述响应消息携带所述源IP地址对应的所述至少一个媒体服务器的接入信息。S905. The DNS server returns a response message to the signaling server, where the response message carries the access information of the at least one media server corresponding to the source IP address.
可见,本发明实施例中,DNS服务器可以根据终端的IP地址反向查找该IP地址所对应的域名区域,并根据该域名区域反向查找提供请求服务的服务资源或媒体资源或媒体服 务器的域名;从这些域名中选择与IP地址的域名区域匹配的域名,并查找该域名对应的媒体服务器接入信息,从而,获得了能够为终端提供服务的媒体服务器的接入信息,并且,DNS服务器还可以根据域名确定与终端最合适的,例如,最近的媒体服务器的接入信息作为目标媒体服务器,将该目标媒体服务器的接入信息返回给信令服务器,使得信令服务器利用该接入信息实现与媒体资源的绑定。因此,通过实施本发明实施例,不仅可以动态绑定媒体资源,还可以选择最接近的媒体资源为终端提供服务。It can be seen that, in the embodiment of the present invention, the DNS server can reversely search for the domain name area corresponding to the IP address according to the IP address of the terminal, and reversely search for the service resource or the media resource of the request service or the domain name of the media server according to the domain name area. Selecting a domain name matching the domain name area of the IP address from these domain names, and finding the media server access information corresponding to the domain name, thereby obtaining access information of the media server capable of providing services for the terminal, and the DNS server further The access information of the target media server is returned to the signaling server, so that the signaling server uses the access information to determine the access information that is most suitable for the terminal, for example, the most recent media server. Binding to a property. Therefore, by implementing the embodiments of the present invention, not only the media resources can be dynamically bound, but also the closest media resources can be selected to provide services for the terminal.
可选的,在DNS服务器所在的DNS系统无法扩展升级的情况下,如图10所示,可使用DNS扩展代理实施上述多轮查询实现终端接入媒体资源的最终定位,例如,扩展代理查询终端的接入域(IP地址对应的域名区域);根据终端的接入域迭代组成SRV查询请求;并对SRV查询请求获得的服务资源域名(或媒体服务器域名)记录进行优先级调整;并缓存这些服务资源域名,使得DNS服务器不用每次都需发送大量查询消息进行查找,降低CPU资源的损耗。Optionally, in the case that the DNS system where the DNS server is located cannot be upgraded and upgraded, as shown in FIG. 10, the foregoing multiple rounds of query may be implemented by using the DNS extension agent to implement final positioning of the terminal accessing media resources, for example, an extended proxy query terminal. Access domain (domain name area corresponding to the IP address); iteratively constitutes an SRV query request according to the access domain of the terminal; and prioritizes the service resource domain name (or media server domain name) record obtained by the SRV query request; and caches these The service resource domain name makes it unnecessary for the DNS server to send a large number of query messages to search each time, reducing the loss of CPU resources.
可选的,当每个区域的媒体资源作为容灾资源提供给其他区域使用时,只需要在DNS服务器中增加以容灾区域域名为后缀的别名,如图11所示,ft.sz.gd.cn的资源可以给整个sz.gd.cn区域容灾;media_322dx3.ft.sz.gd.cn媒体资源生成后,在DNS还生成一个以上层域名为后缀的别名media_322dx3.sz.gd.cn;根据DNS搜索规则,异地的资源的别名可以被作为低优先级资源备用。Optionally, when the media resources of each area are used as the disaster recovery resources for other areas, you only need to add an alias with the domain name as the suffix of the disaster recovery area in the DNS server, as shown in Figure 11, ft.sz.gd The .cn resource can provide disaster recovery for the entire sz.gd.cn area; after the media_322dx3.ft.sz.gd.cn media resource is generated, the DNS also generates an alias media_322dx3.sz.gd.cn with a suffix of more than one layer domain name; According to the DNS search rule, an alias of a remote resource can be reserved as a low priority resource.
请参阅图12,图12是本发明实施例提供的又一种资源请求方法的示意图,该资源请求方法以图3所示的场景进行阐述,其中,终端为图3所示的281;信令服务器为图3所示的201;DNS服务器为图3所示的202;媒体服务器为图3所示的212、213、211等,目标媒体服务器可记为图3所示的211;本发明实施例主要阐述A区域的终端281如何请求媒体资源的,B区域的终端291的资源请求处理过程与A区域的终端281类似,这里不再详述。Referring to FIG. 12, FIG. 12 is a schematic diagram of still another resource request method according to an embodiment of the present invention. The resource request method is illustrated in the scenario shown in FIG. 3, where the terminal is 281 shown in FIG. 3; The server is 201 shown in FIG. 3; the DNS server is 202 shown in FIG. 3; the media server is 212, 213, 211, etc. shown in FIG. 3, and the target media server can be recorded as 211 shown in FIG. 3; The example mainly describes how the terminal 281 of the A area requests the media resource. The resource request processing procedure of the terminal 291 of the B area is similar to the terminal 281 of the A area, and will not be described in detail herein.
可选的,该资源请求方法可以包括以下步骤:Optionally, the resource request method may include the following steps:
S1201、终端向信令服务器发送业务请求消息;S1201: The terminal sends a service request message to the signaling server.
S1202、信令服务器接收终端发送的业务请求消息,并从所述业务请求消息中获取所述终端的源网络协议IP地址;S1202: The signaling server receives a service request message sent by the terminal, and obtains a source network protocol IP address of the terminal from the service request message.
S1203、信令服务器向域名系统DNS服务器发送域名查询消息;S1203: The signaling server sends a domain name query message to the domain name system DNS server.
S1204、域名系统DNS服务器接收信令服务器发送的域名查询消息;S1204. The domain name system DNS server receives the domain name query message sent by the signaling server.
S1205、DNS服务器解析所述域名查询消息中终端的源IP地址对应的域名区域以及所述终端请求的服务;S1205. The DNS server parses a domain name area corresponding to a source IP address of the terminal in the domain name query message, and a service requested by the terminal.
S1206、DNS服务器根据所述域名区域查询提供所述服务的至少一个媒体服务器域名;S1206. The DNS server queries, according to the domain name area, the domain name of the at least one media server that provides the service.
S1207、DNS服务器根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息;S1207. The DNS server determines, according to the at least one media server domain name, access information of the at least one media server.
S1208、DNS服务器向所述信令服务器返回响应消息,所述响应消息携带所述源IP地址对应的所述至少一个媒体服务器的接入信息;S1208. The DNS server returns a response message to the signaling server, where the response message carries the access information of the at least one media server corresponding to the source IP address.
S1209、信令服务器接收所述DNS服务器针对所述域名查询消息返回的响应消息;S1209. The signaling server receives a response message returned by the DNS server for the domain name query message.
S1210、信令服务器从所述至少一个媒体服务器的接入信息中确定所述源IP地址对应的目标媒体服务器的接入信息;S1210. The signaling server determines, according to the access information of the at least one media server, access information of the target media server corresponding to the source IP address.
S1211、信令服务器利用所述目标媒体服务器的接入信息向目标媒体服务器发送绑定请求;S1211: The signaling server sends a binding request to the target media server by using the access information of the target media server.
S1212、信令服务器在与所述目标媒体服务器绑定成功后,向所述终端返回所述目标媒体服务器的接入信息;所述目标媒体服务器的接入信息包括所述目标媒体服务器的接入IP地址和端口号;S1212: After the binding to the target media server is successful, the signaling server returns the access information of the target media server to the terminal; the access information of the target media server includes the access of the target media server. IP address and port number;
S1213、终端利用该目标媒体服务器的接入信息建立与该目标媒体服务器之间的业务流。S1213: The terminal establishes a service flow with the target media server by using the access information of the target media server.
可见,本发明实施例中,信令服务器和媒体资源所在的媒体服务器通过DNS实现解耦,相互之间不静态绑定/配置;集中信令管理通过用户终端的接入地址实现媒体资源的动态寻找和动态绑定;集中信令把用户终端的接入地址提供给DNS可采用域名查询消息中未使用的应答字段或移动IPv6定义的家乡IP携带方式来携带终端的IP地址;DNS通过域名后缀层次标识媒体资源所在的媒体服务器的远近;可选的,递归获取记录并进行优先级调整可实现就近服务和容灾的目的。It can be seen that, in the embodiment of the present invention, the signaling server and the media server where the media resource is located are decoupled through DNS, and are not statically bound/configured with each other; centralized signaling management realizes dynamic of media resources through the access address of the user terminal. Search and dynamic binding; centralized signaling provides the user terminal's access address to the DNS. The unused reply field in the domain name query message or the home IP bearer defined by the mobile IPv6 can be used to carry the IP address of the terminal; the DNS passes the domain name suffix. The level identifies the distance of the media server where the media resource is located; optionally, recursively obtains the record and prioritizes it to achieve the purpose of proximity service and disaster tolerance.
上述详细阐述了本发明实施例的方法,下面提供了本发明实施例对应的装置。其中,本发明实施例对应的装置可以执行上述发明实施例中的相关流程或者实施方式。The method of the embodiment of the present invention is described in detail above, and the device corresponding to the embodiment of the present invention is provided below. The device corresponding to the embodiment of the present invention may perform related processes or implementation manners in the foregoing embodiments of the present invention.
请参阅图13,图13是本发明实施例提供的一种资源请求装置的结构示意图,其中,图13所示的资源请求装置可在信令服务器或信令虚拟网络功能中实现,本发明实施例不做限定,可选的,该资源请求装置可包括以下模块:Referring to FIG. 13, FIG. 13 is a schematic structural diagram of a resource requesting apparatus according to an embodiment of the present invention, where the resource requesting apparatus shown in FIG. 13 can be implemented in a signaling server or a signaling virtual network function, and the present invention is implemented. For example, the resource requesting device may include the following modules:
通信模块1301,用于接收终端发送的业务请求消息,并从所述业务请求消息中获取所述终端的源网络协议IP地址;The communication module 1301 is configured to receive a service request message sent by the terminal, and obtain a source network protocol IP address of the terminal from the service request message.
所述通信模块1301,还用于向域名系统DNS服务器发送域名查询消息;The communication module 1301 is further configured to send a domain name query message to the domain name system DNS server;
所述通信模块1301,还用于接收所述DNS服务器针对所述域名查询消息返回的响应消息,所述响应消息携带所述源IP地址对应的至少一个媒体服务器的接入信息;The communication module 1301 is further configured to receive a response message that is returned by the DNS server for the domain name query message, where the response message carries access information of at least one media server corresponding to the source IP address;
确定模块1302,用于从所述至少一个媒体服务器的接入信息中确定所述源IP地址对应的目标媒体服务器的接入信息;a determining module 1302, configured to determine, according to the access information of the at least one media server, access information of the target media server corresponding to the source IP address;
所述通信模块1301,还用于利用所述目标媒体服务器的接入信息向目标媒体服务器发送绑定请求;The communication module 1301 is further configured to send a binding request to the target media server by using the access information of the target media server;
所述通信模块1301,还用于在与所述目标媒体服务器绑定成功后,向所述终端返回所述目标媒体服务器的接入信息;所述目标媒体服务器的接入信息包括所述目标媒体服务器的接入IP地址和端口号。The communication module 1301 is further configured to: after the binding with the target media server is successful, returning access information of the target media server to the terminal; the access information of the target media server includes the target media Server access IP address and port number.
可选的,业务请求消息利用域名系统DNS查询消息中未使用字段携带所述终端的源网络协议IP地址。Optionally, the service request message carries the source network protocol IP address of the terminal by using an unused field in the domain name system DNS query message.
可选的,业务请求消息利用IPv6的家乡IP扩展头携带所述终端的源网络协议IP地址。Optionally, the service request message carries the source network protocol IP address of the terminal by using an IPv6 home IP extension header.
本发明实施例中,图13所示的资源请求装置还可以包括:In the embodiment of the present invention, the resource requesting device shown in FIG. 13 may further include:
查询模块1303,用于周期性查询与所述目标媒体服务器之间的绑定状态;The query module 1303 is configured to periodically query a binding state with the target media server.
所述确定模块1302,还用于当所述绑定状态出现故障时,从所述至少一个媒体资源接入信息中再次确定所述源IP地址对应的目标媒体服务器的接入信息。The determining module 1302 is further configured to: when the binding state fails, determine, by the at least one media resource access information, access information of the target media server corresponding to the source IP address.
可见,本发明实施例中,终端可以利用资源请求装置返回的目标媒体服务器的接入信息,接入目标媒体服务器获取媒体资源。由于媒体服务器中的媒体资源可以与包含资源请求装置的信令服务器或者终端动态绑定,因此,可实现媒体资源的敏捷部署。It can be seen that, in the embodiment of the present invention, the terminal can access the target media server to obtain the media resource by using the access information of the target media server returned by the resource requesting device. Since the media resources in the media server can be dynamically bound to the signaling server or the terminal including the resource requesting device, the agile deployment of the media resources can be realized.
请参阅图14,图14是本发明实施例提供的另一种资源请求装置的结构示意图,如图14所示,该资源请求装置可在DNS服务器或DNS虚拟网络功能中实现,本发明实施例不做限定,可选的,该资源请求装置可包括以下模块:Referring to FIG. 14, FIG. 14 is a schematic structural diagram of another resource requesting apparatus according to an embodiment of the present invention. As shown in FIG. 14, the resource requesting apparatus may be implemented in a DNS server or a DNS virtual network function. Without limitation, optionally, the resource requesting device may include the following modules:
通信模块1401,用于接收信令服务器发送的域名查询消息;The communication module 1401 is configured to receive a domain name query message sent by the signaling server.
解析模块1402,用于解析所述域名查询消息中终端的源IP地址对应的域名区域以及所述终端请求的服务;The parsing module 1402 is configured to parse the domain name area corresponding to the source IP address of the terminal in the domain name query message and the service requested by the terminal;
查询模块1403,用于根据所述域名区域查询提供所述服务的至少一个媒体服务器域名;The query module 1403 is configured to query, according to the domain name area query, at least one media server domain name that provides the service;
确定模块1404,用于根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息;a determining module 1404, configured to determine, according to the at least one media server domain name, access information of the at least one media server;
所述通信模块1401,还用于向所述信令服务器返回响应消息,所述响应消息携带所述源IP地址对应的所述至少一个媒体服务器的接入信息。The communication module 1401 is further configured to return a response message to the signaling server, where the response message carries the access information of the at least one media server corresponding to the source IP address.
其中,至少一个媒体服务器的接入信息包括所述至少一个媒体服务器的优先级,所述优先级用于所述信令服务器从所述至少一个媒体服务器中选择目标媒体服务器。The access information of the at least one media server includes a priority of the at least one media server, and the priority is used by the signaling server to select a target media server from the at least one media server.
可选的,图14所示的资源请求装置还可以包括:Optionally, the resource requesting device shown in FIG. 14 may further include:
调整模块1405,用于根据所述至少一个媒体服务器域名的精确度调整所述至少一个媒体服务器的优先级,其中,所述精确度与所述优先级成正比。The adjusting module 1405 is configured to adjust a priority of the at least one media server according to the accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority.
可选的,图14所示的资源请求装置可记录有服务SRV记录和A记录,所述SRV记录用于记录提供各类服务的服务器域名;所述A记录用于记录域名与IP地址之间的对应关系;Optionally, the resource requesting apparatus shown in FIG. 14 may record a service SRV record for recording a server domain name providing various types of services, and the A record is used for recording between a domain name and an IP address. Correspondence relationship;
所述解析模块解析所述域名查询消息中终端的源IP地址对应的域名区域,具体为:The parsing module parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, which is specifically:
查询所述A记录中终端的源IP地址对应的域名区域;Querying the domain name area corresponding to the source IP address of the terminal in the A record;
所述查询模块根据所述域名区域查询提供所述服务的至少一个媒体服务器域名,具体为:The querying module provides at least one media server domain name of the service according to the domain name area query, specifically:
查询所述SRV记录中提供所述服务且与所述域名区域匹配的至少一个媒体服务器域名;Querying at least one media server domain name in the SRV record that provides the service and matches the domain name area;
所述确定模块根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息,具体为:The determining module determines, according to the at least one media server domain name, access information of the at least one media server, specifically:
查询所述A记录中所述至少一个媒体服务器域名对应的至少一个媒体服务器的接入信息。Querying access information of at least one media server corresponding to the at least one media server domain name in the A record.
其中,SRV记录中提供各类服务的服务器域名添加有容灾区域域名为后缀的别名。The domain name of the server that provides various services in the SRV record is added with the alias of the domain name of the disaster-tolerant area.
可见,本发明实施例中,资源请求装置可以根据终端的IP地址反向查找该IP地址所对应的域名区域,并根据该域名区域反向查找提供请求服务的服务资源或媒体资源或媒体 服务器的域名;从这些域名中选择与IP地址的域名区域匹配的域名,并查找该域名对应的媒体服务器接入信息,从而,获得了能够为终端提供服务的媒体服务器的接入信息,并且,资源请求装置还可以根据域名确定与终端最合适的,例如,最近的媒体服务器的接入信息作为目标媒体服务器,将该目标媒体服务器的接入信息返回给信令服务器,使得信令服务器利用该接入信息实现与媒体资源的绑定。因此,通过实施本发明实施例,不仅可以动态绑定媒体资源,还可以选择最接近的媒体资源为终端提供服务。It can be seen that, in the embodiment of the present invention, the resource requesting device may reversely search for the domain name area corresponding to the IP address according to the IP address of the terminal, and reversely search for the service resource or the media resource or the media server that provides the request service according to the domain name area. a domain name; selecting a domain name matching the domain name area of the IP address from the domain names, and searching for the media server access information corresponding to the domain name, thereby obtaining access information of the media server capable of providing services for the terminal, and requesting the resource The device may further determine, according to the domain name, the most suitable information of the terminal, for example, the access information of the nearest media server as the target media server, and return the access information of the target media server to the signaling server, so that the signaling server utilizes the access. Information is bundled with media resources. Therefore, by implementing the embodiments of the present invention, not only the media resources can be dynamically bound, but also the closest media resources can be selected to provide services for the terminal.
请参见图15,图15是本发明实施例提供的一种信令服务器的结构示意图,该信令服务器1500包括处理器1501、存储器1502和通信接口1503,所述处理器1501、存储器1502和通信接口1503通过总线相互连接。其中,存储器1502包括但不限于是随机存储记忆体(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、或便携式只读存储器(Compact Disc Read-Only Memory,CD-ROM),该存储器1502用于存储相关指令及数据。通信接口1503用于接收和发送数据或信令。处理器1501可以是一个或多个中央处理器(Central Processing Unit,CPU),在处理器1501是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。Referring to FIG. 15, FIG. 15 is a schematic structural diagram of a signaling server according to an embodiment of the present invention. The signaling server 1500 includes a processor 1501, a memory 1502, and a communication interface 1503. The processor 1501, the memory 1502, and the communication The interfaces 1503 are connected to each other through a bus. The memory 1502 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), and an Erasable Programmable Read Only Memory (EPROM). Or a Compact Disc Read-Only Memory (CD-ROM) for storing related instructions and data. Communication interface 1503 is for receiving and transmitting data or signaling. The processor 1501 may be one or more central processing units (CPUs). In the case that the processor 1501 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
该信令服务器1500中的处理器1501用于读取所述存储器1502中存储的程序代码,执行以下操作:The processor 1501 in the signaling server 1500 is configured to read the program code stored in the memory 1502 and perform the following operations:
向域名系统DNS服务器发送域名查询消息,所述域名查询消息携带发起业务请求的终端的源网络协议IP地址;Sending a domain name query message to the domain name system DNS server, where the domain name query message carries the source network protocol IP address of the terminal that initiates the service request;
接收所述DNS服务器针对所述域名查询消息返回的响应消息,所述响应消息携带所述源IP地址对应的至少一个媒体服务器的接入信息;Receiving, by the DNS server, a response message returned by the domain name query message, where the response message carries access information of at least one media server corresponding to the source IP address;
从所述至少一个媒体服务器的接入信息中确定所述源IP地址对应的目标媒体服务器的接入信息;Determining, by the access information of the at least one media server, access information of the target media server corresponding to the source IP address;
利用所述目标媒体服务器的接入信息向目标媒体服务器发送绑定请求;Sending a binding request to the target media server by using the access information of the target media server;
在与所述目标媒体服务器绑定成功后,向所述终端返回所述目标媒体服务器的接入信息;所述目标媒体服务器的接入信息包括所述目标媒体服务器的接入IP地址和端口号。Returning the access information of the target media server to the terminal after the binding with the target media server is successful; the access information of the target media server includes an access IP address and a port number of the target media server .
可选的,业务请求消息利用域名系统DNS查询消息中未使用字段携带所述终端的源网络协议IP地址。Optionally, the service request message carries the source network protocol IP address of the terminal by using an unused field in the domain name system DNS query message.
可选的,业务请求消息利用IPv6的家乡IP扩展头携带所述终端的源网络协议IP地址。Optionally, the service request message carries the source network protocol IP address of the terminal by using an IPv6 home IP extension header.
该信令服务器1500中的处理器1501用于读取所述存储器1502中存储的程序代码,还可以执行以下操作:The processor 1501 in the signaling server 1500 is configured to read the program code stored in the memory 1502, and may also perform the following operations:
周期性查询与所述目标媒体服务器之间的绑定状态;Periodically querying a binding state with the target media server;
当所述绑定状态出现故障时,从所述至少一个媒体资源接入信息中再次确定所述源IP地址对应的目标媒体服务器的接入信息。When the binding state is faulty, the access information of the target media server corresponding to the source IP address is determined again from the at least one media resource access information.
请参见图16,图16是本发明实施例提供的一种DNS服务器的结构示意图,该DNS服务器1600包括处理器1601、存储器1602和通信接口1603,所述处理器1601、存储器 1602和通信接口1603通过总线相互连接。其中,存储器1602包括但不限于是随机存储记忆体(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、或便携式只读存储器(Compact Disc Read-Only Memory,CD-ROM),该存储器1602用于存储相关指令及数据。通信接口1603用于接收和发送数据或信令。处理器1601可以是一个或多个中央处理器(Central Processing Unit,CPU),在处理器1601是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。Referring to FIG. 16, FIG. 16 is a schematic structural diagram of a DNS server according to an embodiment of the present invention. The DNS server 1600 includes a processor 1601, a memory 1602, and a communication interface 1603. The processor 1601, the memory 1602, and the communication interface 1603 Connected to each other via a bus. The memory 1602 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), and an Erasable Programmable Read Only Memory (EPROM). Or a Compact Disc Read-Only Memory (CD-ROM) for storing related instructions and data. Communication interface 1603 is for receiving and transmitting data or signaling. The processor 1601 may be one or more central processing units (CPUs). In the case where the processor 1601 is a CPU, the CPU may be a single core CPU or a multi-core CPU.
该DNS服务器1500中的处理器1501用于读取所述存储器1502中存储的程序代码,执行以下操作:The processor 1501 in the DNS server 1500 is configured to read the program code stored in the memory 1502 and perform the following operations:
接收信令服务器发送的域名查询消息;Receiving a domain name query message sent by the signaling server;
解析所述域名查询消息中终端的源IP地址对应的域名区域以及所述终端请求的服务;Parsing a domain name area corresponding to the source IP address of the terminal in the domain name query message and a service requested by the terminal;
根据所述域名区域查询提供所述服务的至少一个媒体服务器域名;Providing at least one media server domain name of the service according to the domain name area query;
根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息;Determining access information of the at least one media server according to the at least one media server domain name;
向所述信令服务器返回响应消息,所述响应消息携带所述源IP地址对应的所述至少一个媒体服务器的接入信息。And returning, by the signaling server, a response message, where the response message carries the access information of the at least one media server corresponding to the source IP address.
其中,至少一个媒体服务器的接入信息包括所述至少一个媒体服务器的优先级,所述优先级用于所述信令服务器从所述至少一个媒体服务器中选择目标媒体服务器。The access information of the at least one media server includes a priority of the at least one media server, and the priority is used by the signaling server to select a target media server from the at least one media server.
该DNS服务器1500中的处理器1501用于读取所述存储器1502中存储的程序代码,还可以执行以下操作:The processor 1501 in the DNS server 1500 is configured to read the program code stored in the memory 1502, and can also perform the following operations:
根据所述至少一个媒体服务器域名的精确度调整所述至少一个媒体服务器的优先级,其中,所述精确度与所述优先级成正比。Adjusting a priority of the at least one media server according to an accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority.
本发明实施例中,DNS服务器中的存储器可记录有服务SRV记录和A记录,所述SRV记录用于记录提供各类服务的服务器域名;所述A记录用于记录域名与IP地址之间的对应关系;In the embodiment of the present invention, the memory in the DNS server may record the service SRV record and the A record, where the SRV record is used to record the server domain name providing various services; and the A record is used to record the domain name and the IP address. Correspondence relationship
相应的,处理器1501解析所述域名查询消息中终端的源IP地址对应的域名区域,具体为:查询所述A记录中终端的源IP地址对应的域名区域;Correspondingly, the processor 1501 parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, specifically: querying the domain name area corresponding to the source IP address of the terminal in the A record;
相应的,处理器1501根据所述域名区域查询提供所述服务的至少一个媒体服务器域名,具体为:查询所述SRV记录中提供所述服务且与所述域名区域匹配的至少一个媒体服务器域名;Correspondingly, the processor 1501 queries the at least one media server domain name of the service according to the domain name area query, specifically: querying at least one media server domain name that provides the service in the SRV record and matches the domain name area;
相应的,处理器1501根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息,具体为:查询所述A记录中所述至少一个媒体服务器域名对应的至少一个媒体服务器的接入信息。Correspondingly, the processor 1501 determines the access information of the at least one media server according to the at least one media server domain name, specifically: querying the access information of the at least one media server corresponding to the at least one media server domain name in the A record. .
可选的,SRV记录中提供各类服务的服务器域名添加有容灾区域域名为后缀的别名。例如,当每个区域的媒体资源作为容灾资源提供给其他区域使用时,只需要在DNS服务器中增加以容灾区域域名为后缀的别名,如图11所示,ft.sz.gd.cn的资源可以给整个sz.gd.cn区域容灾;media_322dx3.ft.sz.gd.cn媒体资源生成后,在DNS还生成一个以上层域名为后缀的别名media_322dx3.sz.gd.cn;根据DNS搜索规则,异地的资源的别名可以被作为低优先级资源备用。Optionally, the server domain name that provides various services in the SRV record is added with the alias of the disaster recovery area domain name as a suffix. For example, when the media resources of each area are used as disaster recovery resources for other areas, you only need to add an alias with the domain name as the suffix of the disaster recovery area in the DNS server, as shown in Figure 11, ft.sz.gd.cn The resources can be used to provide disaster recovery for the entire sz.gd.cn area; after the media_322dx3.ft.sz.gd.cn media resource is generated, the DNS also generates an alias for the domain name suffix media_322dx3.sz.gd.cn; Search rules, aliases for off-site resources can be reserved as low-priority resources.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it 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 the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

Claims (18)

  1. 一种资源请求方法,其特征在于,包括:A resource request method, comprising:
    所述信令服务器向域名系统DNS服务器发送域名查询消息,所述域名查询消息携带发起业务请求的终端的源网络协议IP地址;The signaling server sends a domain name query message to the domain name system DNS server, where the domain name query message carries the source network protocol IP address of the terminal that initiates the service request;
    所述信令服务器接收所述DNS服务器针对所述域名查询消息返回的响应消息,所述响应消息携带所述源IP地址对应的至少一个媒体服务器的接入信息;Receiving, by the signaling server, a response message returned by the DNS server for the domain name query message, where the response message carries access information of at least one media server corresponding to the source IP address;
    所述信令服务器从所述至少一个媒体服务器的接入信息中确定所述源IP地址对应的目标媒体服务器的接入信息;Determining, by the signaling server, access information of the target media server corresponding to the source IP address from the access information of the at least one media server;
    所述信令服务器利用所述目标媒体服务器的接入信息向目标媒体服务器发送绑定请求;The signaling server sends a binding request to the target media server by using the access information of the target media server;
    所述信令服务器在与所述目标媒体服务器绑定成功后,向所述终端返回所述目标媒体服务器的接入信息;所述目标媒体服务器的接入信息包括所述目标媒体服务器的接入IP地址和端口号。After the binding to the target media server, the signaling server returns the access information of the target media server to the terminal; the access information of the target media server includes the access of the target media server. IP address and port number.
  2. 根据权利要求1所述的方法,其特征在于,所述业务请求消息利用域名系统DNS查询消息中未使用字段携带所述终端的源网络协议IP地址。The method according to claim 1, wherein the service request message carries a source network protocol IP address of the terminal by using an unused field in a domain name system DNS query message.
  3. 根据权利要求1所述的方法,其特征在于,所述业务请求消息利用IPv6的家乡IP扩展头携带所述终端的源网络协议IP地址。The method according to claim 1, wherein the service request message carries a source network protocol IP address of the terminal by using an IPv6 home IP extension header.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    所述信令服务器周期性查询与所述目标媒体服务器之间的绑定状态;The signaling server periodically queries a binding state with the target media server;
    当所述绑定状态出现故障时,所述信令服务器从所述至少一个媒体资源接入信息中再次确定所述源IP地址对应的目标媒体服务器的接入信息。When the binding state fails, the signaling server determines, again from the at least one media resource access information, access information of the target media server corresponding to the source IP address.
  5. 一种资源请求方法,其特征在于,包括:A resource request method, comprising:
    域名系统DNS服务器接收信令服务器发送的域名查询消息;The domain name system DNS server receives the domain name query message sent by the signaling server;
    所述DNS服务器解析所述域名查询消息中终端的源IP地址对应的域名区域以及所述终端请求的服务;The DNS server parses the domain name area corresponding to the source IP address of the terminal in the domain name query message and the service requested by the terminal;
    所述DNS服务器根据所述域名区域查询提供所述服务的至少一个媒体服务器域名;The DNS server queries the at least one media server domain name of the service according to the domain name area query;
    所述DNS服务器根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息;Determining, by the DNS server, access information of the at least one media server according to the at least one media server domain name;
    所述DNS服务器向所述信令服务器返回响应消息,所述响应消息携带所述源IP地址对应的所述至少一个媒体服务器的接入信息。The DNS server returns a response message to the signaling server, where the response message carries the access information of the at least one media server corresponding to the source IP address.
  6. 根据权利要求5所述的方法,其特征在于,所述至少一个媒体服务器的接入信息包括所述至少一个媒体服务器的优先级,所述优先级用于所述信令服务器从所述至少一个媒体服务器中选择目标媒体服务器。The method according to claim 5, wherein the access information of the at least one media server comprises a priority of the at least one media server, the priority being used by the signaling server from the at least one Select the target media server in the media server.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method of claim 6 wherein the method further comprises:
    所述DNS服务器根据所述至少一个媒体服务器域名的精确度调整所述至少一个媒体服务器的优先级,其中,所述精确度与所述优先级成正比。The DNS server adjusts a priority of the at least one media server according to an accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority.
  8. 根据权利要求7所述的方法,其特征在于,所述DNS服务器记录有服务SRV记录 和A记录,所述SRV记录用于记录提供各类服务的服务器域名;所述A记录用于记录域名与IP地址之间的对应关系;The method according to claim 7, wherein said DNS server records a service SRV record for recording a server domain name providing various types of services, and said A record is used for recording a domain name and Correspondence between IP addresses;
    所述DNS服务器解析所述域名查询消息中终端的源IP地址对应的域名区域,包括:The DNS server parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, including:
    所述DNS服务器查询所述A记录中终端的源IP地址对应的域名区域;The DNS server queries the domain name area corresponding to the source IP address of the terminal in the A record;
    所述DNS服务器根据所述域名区域查询提供所述服务的至少一个媒体服务器域名,包括:The DNS server queries the at least one media server domain name of the service according to the domain name area query, including:
    所述DNS服务器查询所述SRV记录中提供所述服务且与所述域名区域匹配的至少一个媒体服务器域名;The DNS server queries at least one media server domain name in the SRV record that provides the service and matches the domain name area;
    所述DNS服务器根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息,包括:Determining, by the DNS server, access information of the at least one media server according to the at least one media server domain name, including:
    所述DNS服务器查询所述A记录中所述至少一个媒体服务器域名对应的至少一个媒体服务器的接入信息。The DNS server queries the access information of the at least one media server corresponding to the at least one media server domain name in the A record.
  9. 根据权利要求8所述的方法,其特征在于,所述SRV记录中提供各类服务的服务器域名添加有容灾区域域名为后缀的别名。The method according to claim 8, wherein the server domain name of the SRV record providing various services is added with an alias of the disaster recovery area domain name as a suffix.
  10. 一种资源请求装置,其特征在于,包括:A resource requesting device, comprising:
    通信模块,还用于向域名系统DNS服务器发送域名查询消息,所述域名查询消息携带发起业务请求的终端的源网络协议IP地址;The communication module is further configured to send a domain name query message to the domain name system DNS server, where the domain name query message carries a source network protocol IP address of the terminal that initiates the service request;
    所述通信模块,还用于接收所述DNS服务器针对所述域名查询消息返回的响应消息,所述响应消息携带所述源IP地址对应的至少一个媒体服务器的接入信息;The communication module is further configured to receive a response message that is returned by the DNS server for the domain name query message, where the response message carries access information of at least one media server corresponding to the source IP address;
    确定模块,用于从所述至少一个媒体服务器的接入信息中确定所述源IP地址对应的目标媒体服务器的接入信息;a determining module, configured to determine, according to the access information of the at least one media server, access information of the target media server corresponding to the source IP address;
    所述通信模块,还用于利用所述目标媒体服务器的接入信息向目标媒体服务器发送绑定请求;The communication module is further configured to send a binding request to the target media server by using the access information of the target media server;
    所述通信模块,还用于在与所述目标媒体服务器绑定成功后,向所述终端返回所述目标媒体服务器的接入信息;所述目标媒体服务器的接入信息包括所述目标媒体服务器的接入IP地址和端口号。The communication module is further configured to: after the binding with the target media server is successful, returning access information of the target media server to the terminal; the access information of the target media server includes the target media server Access IP address and port number.
  11. 根据权利要求10所述的装置,其特征在于,所述业务请求消息利用域名系统DNS查询消息中未使用字段携带所述终端的源网络协议IP地址。The apparatus according to claim 10, wherein the service request message carries a source network protocol IP address of the terminal by using an unused field in a domain name system DNS query message.
  12. 根据权利要求10所述的装置,其特征在于,所述业务请求消息利用IPv6的家乡IP扩展头携带所述终端的源网络协议IP地址。The apparatus according to claim 10, wherein the service request message carries a source network protocol IP address of the terminal by using an IPv6 home IP extension header.
  13. 根据权利要求10至12任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 10 to 12, wherein the device further comprises:
    查询模块,用于周期性查询与所述目标媒体服务器之间的绑定状态;a query module, configured to periodically query a binding state with the target media server;
    所述确定模块,还用于当所述绑定状态出现故障时,从所述至少一个媒体资源接入信息中再次确定所述源IP地址对应的目标媒体服务器的接入信息。The determining module is further configured to: when the binding state is faulty, determine, by the at least one media resource access information, access information of the target media server corresponding to the source IP address.
  14. 一种资源请求装置,其特征在于,包括:A resource requesting device, comprising:
    通信模块,用于接收信令服务器发送的域名查询消息;a communication module, configured to receive a domain name query message sent by the signaling server;
    解析模块,用于解析所述域名查询消息中终端的源IP地址对应的域名区域以及所述终端请求的服务;a parsing module, configured to parse a domain name area corresponding to a source IP address of the terminal in the domain name query message, and a service requested by the terminal;
    查询模块,用于根据所述域名区域查询提供所述服务的至少一个媒体服务器域名;a querying module, configured to query, according to the domain name area, at least one media server domain name that provides the service;
    确定模块,用于根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息;a determining module, configured to determine access information of the at least one media server according to the at least one media server domain name;
    所述通信模块,还用于向所述信令服务器返回响应消息,所述响应消息携带所述源IP地址对应的所述至少一个媒体服务器的接入信息。The communication module is further configured to return a response message to the signaling server, where the response message carries access information of the at least one media server corresponding to the source IP address.
  15. 根据权利要求14所述的装置,其特征在于,所述至少一个媒体服务器的接入信息包括所述至少一个媒体服务器的优先级,所述优先级用于所述信令服务器从所述至少一个媒体服务器中选择目标媒体服务器。The apparatus according to claim 14, wherein the access information of the at least one media server comprises a priority of the at least one media server, and the priority is used by the signaling server from the at least one Select the target media server in the media server.
  16. 根据权利要求15所述的装置,其特征在于,所述装置还包括:The device according to claim 15, wherein the device further comprises:
    调整模块,用于根据所述至少一个媒体服务器域名的精确度调整所述至少一个媒体服务器的优先级,其中,所述精确度与所述优先级成正比。And an adjustment module, configured to adjust a priority of the at least one media server according to an accuracy of the at least one media server domain name, wherein the accuracy is proportional to the priority.
  17. 根据权利要求16所述的装置,其特征在于,所述DNS服务器记录有服务SRV记录和A记录,所述SRV记录用于记录提供各类服务的服务器域名;所述A记录用于记录域名与IP地址之间的对应关系;The apparatus according to claim 16, wherein said DNS server records a service SRV record for recording a server domain name providing various types of services, and said A record is used for recording a domain name and Correspondence between IP addresses;
    所述解析模块解析所述域名查询消息中终端的源IP地址对应的域名区域,具体为:The parsing module parses the domain name area corresponding to the source IP address of the terminal in the domain name query message, which is specifically:
    查询所述A记录中终端的源IP地址对应的域名区域;Querying the domain name area corresponding to the source IP address of the terminal in the A record;
    所述查询模块根据所述域名区域查询提供所述服务的至少一个媒体服务器域名,具体为:The querying module provides at least one media server domain name of the service according to the domain name area query, specifically:
    查询所述SRV记录中提供所述服务且与所述域名区域匹配的至少一个媒体服务器域名;Querying at least one media server domain name in the SRV record that provides the service and matches the domain name area;
    所述确定模块根据所述至少一个媒体服务器域名确定至少一个媒体服务器的接入信息,具体为:The determining module determines, according to the at least one media server domain name, access information of the at least one media server, specifically:
    查询所述A记录中所述至少一个媒体服务器域名对应的至少一个媒体服务器的接入信息。Querying access information of at least one media server corresponding to the at least one media server domain name in the A record.
  18. 根据权利要求17所述的装置,其特征在于,所述SRV记录中提供各类服务的服务器域名添加有容灾区域域名为后缀的别名。The device according to claim 17, wherein the server domain name of the SRV record providing various types of services is added with an alias of the disaster-tolerant area domain name as a suffix.
PCT/CN2018/084802 2017-04-28 2018-04-27 Resource request method and device WO2018196843A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710294995.0 2017-04-28
CN201710294995.0A CN108810179A (en) 2017-04-28 2017-04-28 resource request method and device

Publications (1)

Publication Number Publication Date
WO2018196843A1 true WO2018196843A1 (en) 2018-11-01

Family

ID=63919492

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084802 WO2018196843A1 (en) 2017-04-28 2018-04-27 Resource request method and device

Country Status (2)

Country Link
CN (1) CN108810179A (en)
WO (1) WO2018196843A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055426A (en) * 2019-12-28 2021-06-29 中移(成都)信息通信科技有限公司 Service access method, device, equipment and medium
CN114285666A (en) * 2021-12-30 2022-04-05 天翼物联科技有限公司 Trilateral cooperation method and system for multimedia application of Internet of things

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245967B (en) * 2018-11-28 2022-07-05 中国电信股份有限公司 DNS query method, DNS server and domain name resolution system
CN111416880A (en) * 2019-01-08 2020-07-14 阿里巴巴集团控股有限公司 IP address addressing method and device, computer storage medium and electronic equipment
CN113891387B (en) * 2021-11-12 2024-03-29 山东亚华电子股份有限公司 Method and equipment for detecting audio and video communication link

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350841A (en) * 2007-07-17 2009-01-21 华为技术有限公司 Method for establishing medium resource access relation as well as communication system and relevant equipment
US20140149552A1 (en) * 2012-11-26 2014-05-29 Go Daddy Operating Company, LLC Dns overriding-based methods of accelerating content delivery
CN105871750A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 Resource scheduling method and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350841A (en) * 2007-07-17 2009-01-21 华为技术有限公司 Method for establishing medium resource access relation as well as communication system and relevant equipment
US20140149552A1 (en) * 2012-11-26 2014-05-29 Go Daddy Operating Company, LLC Dns overriding-based methods of accelerating content delivery
CN105871750A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 Resource scheduling method and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055426A (en) * 2019-12-28 2021-06-29 中移(成都)信息通信科技有限公司 Service access method, device, equipment and medium
CN114285666A (en) * 2021-12-30 2022-04-05 天翼物联科技有限公司 Trilateral cooperation method and system for multimedia application of Internet of things

Also Published As

Publication number Publication date
CN108810179A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
WO2018196843A1 (en) Resource request method and device
EP3886404B1 (en) Domain name server allocation method and device
US10148756B2 (en) Latency virtualization in a transport network using a storage area network
RU2382506C2 (en) Method and device for efficient vpn server interface, address allocation and signal transmission with local addressing domain
WO2021043191A1 (en) Domain name system server determination method, request processing method and apparatus, and system
US8972519B2 (en) Optimization of multimedia service over an IMS network
US8645408B2 (en) Discovery of application server in an IP network
KR20210098724A (en) Method and apparatus for providing edge computing service
WO2018145615A1 (en) Vnf deployment method and system
US8631098B2 (en) Resource configuration method, server, network equipment and network system
CN114902634A (en) Apparatus and method for providing information of application server in mobile communication system
WO2021004528A1 (en) Method, device and apparatus for address acquisition of application example and storage medium
CN111327668B (en) Network management method, device, equipment and storage medium
US10469559B2 (en) Quality of service for web real-time communication networks
US20120191769A1 (en) Site-aware distributed file system access from outside enterprise network
EP2709337B1 (en) Service data processing method, device and system
WO2019071995A1 (en) Content distribution method, device and system
US20080247379A1 (en) Method and Network for Managing an Interface for Session-Based Synchronization
WO2016000303A1 (en) Resource allocation method and system, and computer storage medium
EP3845001B1 (en) Traffic in a distributed cloud system
CN111935336B (en) IPv 6-based network governance method and system
CN117546453A (en) Methods, systems, and computer readable media for establishing message priority in network slices based on quality of service parameters
WO2010075688A1 (en) Method, apparatus and system for creating and joining ip multimedia subsystem (ims) group conference
US10277421B2 (en) Route lookup resolution
KR100966584B1 (en) Service offering system and its method in the next generation network

Legal Events

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

Ref document number: 18792254

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18792254

Country of ref document: EP

Kind code of ref document: A1