[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2024012146A1 - Traffic routing method, and server and storage medium - Google Patents

Traffic routing method, and server and storage medium Download PDF

Info

Publication number
WO2024012146A1
WO2024012146A1 PCT/CN2023/100528 CN2023100528W WO2024012146A1 WO 2024012146 A1 WO2024012146 A1 WO 2024012146A1 CN 2023100528 W CN2023100528 W CN 2023100528W WO 2024012146 A1 WO2024012146 A1 WO 2024012146A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
scp
target
request information
service discovery
Prior art date
Application number
PCT/CN2023/100528
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 WO2024012146A1 publication Critical patent/WO2024012146A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/34Modification of an existing route

Definitions

  • the present disclosure relates to the field of communication technology, and in particular, to a service routing method, server and storage medium.
  • SCP service communication proxy
  • Embodiments of the present disclosure provide a service routing method, server and storage medium, aiming to reduce cross-region signaling interactions, reduce redundant signaling and shorten the delay in establishing service requests, and greatly improve the efficiency of user service registration. .
  • embodiments of the present disclosure provide a service routing method, which is applied to the service communication agent SCP.
  • the method includes: obtaining service request information, and requesting service discovery from the network storage function NRF according to the service request information.
  • SCP and NRF belong to the same Service area; when obtaining the service discovery failure instruction returned by the NRF, determine the target SCP based on the business request information.
  • the SCP and the target SCP belong to different service areas; send the business request information to the target SCP so that the target SCP sends the request to the target NRF.
  • Request service discovery for the target SCP to initiate a service request to the network function NF server based on the service discovery success instruction returned by the target NRF.
  • embodiments of the present disclosure provide another service routing method, which is applied to NRF.
  • the method includes: obtaining the service discovery initiated by the SCP based on the service request information, performing service discovery based on the service request information, and returning a service discovery response to the SCP.
  • the service discovery response includes a service discovery failure instruction or a service discovery success instruction; when the service discovery response is a service discovery failure instruction, the SCP determines the target SCP based on the business request information, and sends the business request information to the target SCP to The target SCP requests service discovery from the target NRF, so that the target SCP initiates a service request to the NF server based on the service discovery success instruction returned by the target NRF.
  • embodiments of the present disclosure also provide a server, which includes a processor, a memory, and a storage device.
  • a computer program on the memory that can be executed by the processor and a data bus used to realize connection communication between the processor and the memory.
  • any service routing provided by this disclosure specification is implemented. Method steps.
  • embodiments of the present disclosure also provide a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, To implement the steps of any service routing method provided in this disclosure.
  • Figure 1 is a schematic flowchart of a service routing method provided by an embodiment of the present disclosure
  • Figure 2 is a schematic flow chart of another service routing method provided by an embodiment of the present disclosure.
  • Figure 3 is a schematic flow chart of yet another service routing method provided by an embodiment of the present disclosure.
  • Figure 4 is a schematic flow chart of yet another service routing method provided by an embodiment of the present disclosure.
  • Figure 5 is a schematic structural block diagram of a server provided by an embodiment of the present disclosure.
  • Embodiments of the present disclosure provide a service routing method, server and storage medium.
  • the service routing method can be applied to servers, which can be desktop servers, rack servers, cabinet servers, blade servers and other types of servers.
  • the servers can also be cloud servers.
  • FIG. 1 is a schematic flowchart of a service routing method provided by an embodiment of the present disclosure.
  • the service routing method includes steps S101 to S103.
  • Step S101 Obtain service request information, and request service discovery from the network storage function NRF according to the service request information.
  • the SCP and the NRF belong to the same service area.
  • the service request information can be set according to the actual situation. This is not specifically limited in the embodiments of the present disclosure.
  • the service request information can be the service request information of Hyper Text Transfer Protocol (HTTP).
  • HTTP Hyper Text Transfer Protocol
  • the request information includes user information, the network element type of the NF server (3gpp Sbi Discovery target nf type) and the network element type of the network element that initiates the service request (3gpp Sbi Discovery requester nf type).
  • the service requesting network element and NF server can be set according to the actual situation, and this embodiment of the present disclosure does not specifically limit this, for example,
  • the network element that initiates the service request is an access and mobility management function (AMF) server.
  • the AMF server is used to access the NF server for users.
  • the NF is mainly responsible for user registration management, connection management, Security management, mobility management and other functions;
  • the NF server can be a server, which includes an authentication server function (AUSF) and/or unified data management (UDM), the AUSF (AUSF) as
  • AUSF authentication server function
  • UDM unified data management
  • the authentication center of the 5G network is mainly responsible for providing authentication for users; the UDM is used for the management of user data such as user subscription information and security information, as well as related user access, registration, mobility management and other functions.
  • each region in China is divided into 7 service regions.
  • the 7 service regions include the East China Service Region, North China Service Region, Central China Service Region, South China Service Region, Southwest Service Region, Northwest Service Region and East Service Region.
  • Each service region can divide the included provinces into service provinces, for example, Central China
  • the service area includes the service provinces of Henan province, the service provinces of Hubei province and the service provinces of Hunan province.
  • the SCP and the NRF are in the service area of the same region and the same province. For example, the SCP and the NRF are in the service province of Hunan province in the Central China Service Region.
  • Model D In Model D mode, SCP and network storage function (Network Repository Function, NRF) can be separated. Deployment, of course, the SCP and NRF can also be integrated deployment, which is not specifically limited in the embodiment of the present disclosure.
  • the business request information is obtained, and a service discovery request is made to the NRF based on the business request information.
  • the service discovery is performed based on the business request information, a service discovery response is obtained, and the service discovery response is obtained.
  • the response is returned to the SCP, where the service discovery response includes a service discovery failure command or a service discovery success command.
  • the service discovery success command indicates that the NRF performs service discovery based on the business request information and queries the NF server.
  • the service discovery fails.
  • the instruction indicates an instruction generated by NRF when it performs service discovery based on the business request information and fails to find the NF server.
  • the way NRF performs service discovery based on the service request information may be: the service request information includes the target network element type of the NF server, and the NRF determines whether there is an NF server whose network element type is the target network element type. ; When there is an NF server whose network element type is the target network element type, it is determined that the service discovery is successful; when there is no NF server whose network element type is the target network element type, it is determined that the service discovery failed.
  • NRF can accurately determine whether there is an NF server in the service area, which greatly improves the efficiency and accuracy of service request registration.
  • Step S102 After obtaining the service discovery failure instruction returned by the NRF, determine the target SCP according to the service request information, and the SCP and the target SCP belong to different service areas.
  • the SCP and the target SCP are in the same service area but in different service provinces, or the SCP and the target SCP are in different service areas and in different service provinces.
  • the service request information includes user information
  • the user information includes a user identification code.
  • the preset mapping relationship table between the user identification code and the service area is obtained; the service area corresponding to the user identification code is queried according to the mapping relationship table to obtain the target service area, and Use the SCP matching the target service area as the target SCP.
  • the mapping relationship table is established in advance based on the user identification code and the service area.
  • the mapping relationship table can be established according to the actual situation, and the embodiment of the present disclosure does not specifically limit this.
  • the target SCP can be accurately queried through this mapping table.
  • the user identification code can be set according to the actual situation, and the embodiment of the present disclosure does not specifically limit this.
  • the user identification code can be: international mobile subscriber identity (IMSI) or Network access identifier (NAI).
  • the service discovery success instruction includes NF server information.
  • the SCP sends business request information to the NF server based on the NF server information to respond to the request based on the service request information.
  • the NF server initiates a service request.
  • the NF server information includes the UDM or AUSF configuration file of the NF server.
  • NRF can accurately query the NF server information of the NF server through service discovery, and can accurately initiate service requests to the NF server based on the NF server information.
  • the method of determining the target SCP based on the service request information may be: sending the service request information to the first SCP in the same service area as the SCP.
  • An SCP receives the service request information, and requests service discovery from the first NRF based on the service request information, where the first SCP and the first NRF belong to the same service area at the same level; the first NRF performs service discovery based on the service request information, and Returns a service discovery response to the first SCP.
  • the service discovery response is a service discovery success instruction
  • the first SCP sends business request information to the NF server based on the NF server information in the service discovery success instruction. Initiate a service request to the NF server.
  • the first SCP determines the second SCP (that is, the target SCP) according to the service request information, and sends the service request information to the second SCP.
  • the second SCP sends the service request information to the second SCP according to the service request information.
  • the second NRF (that is, the target NRF) requests service discovery.
  • the second SCP and the second NRF belong to the same service area at the same level.
  • the second NRF performs service discovery based on the service request information and returns the service discovery success to the second SCP. Instruction, so that the second SCP initiates a service request to the NF server according to the service discovery success instruction.
  • the target SCP in different service areas can be accurately queried through the business request information, and the target SCP can accurately initiate a business request to the NF server according to the service discovery success instruction.
  • Step S103 Send the service request information to the target SCP, so that the target SCP requests service discovery from the target NRF, so that the target SCP requests the network function NF according to the service discovery success instruction returned by the target NRF.
  • the server initiates a business request.
  • the service request information is sent to the target SCP, and the target SCP requests service discovery from the target NRF according to the service request information, where the target SCP and the target NRF belong to the same service area at the same level.
  • the target NRF performs service discovery based on the business request information and returns a service discovery success instruction to the target SCP.
  • the service discovery success instruction includes NF server information.
  • the NF server information includes the UDM or AUSF configuration file of the NF server.
  • the target SCP Send service request information to the NF server based on the UDM or AUSF configuration file to initiate a service request to the NF server based on the service request information.
  • the target SCP can directly send the service request information to the NF server based on the UDM or AUSF configuration file returned by the target NRF according to the service request information, which greatly improves the efficiency and accuracy of service registration.
  • the NF server receives the service request information sent by the target SCP, performs service processing based on the service request information, generates service response information, and sends the service response information to the target SCP, and the target SCP transfers the received service information to the target SCP.
  • the response information is sent to the SCP, and the SCP sends the received service response information to the network element that initiates the service request to complete the process of registering the service.
  • the NF server can process the business request information according to the actual situation. Row setting, which is not specifically limited in this embodiment of the disclosure, for example, authenticates the service request information. By receiving the returned business response information, it can be accurately determined that the business registration process has been completed.
  • the service routing method in this disclosed embodiment obtains the service request information and requests service discovery from the network storage function NRF according to the service request information.
  • the SCP and the NRF belong to the same service area; after obtaining the service discovery failure instruction returned by the NRF,
  • the target SCP is determined based on the business request information, and the SCP and the target SCP belong to different service areas; the business request information is sent to the target SCP, so that the target SCP requests service discovery from the target NRF, so that the target SCP can provide services returned by the target NRF.
  • the successful discovery instruction initiates a service request to the network function NF server.
  • This solution can accurately determine the service area where the NF server is located, and initiate service requests to the NF server through the target SCP in the service area where the NF server is located, reducing cross-area signaling interactions, thereby reducing redundant signaling and shortening This reduces the delay in establishing service requests and greatly improves the efficiency of user service registration.
  • Figure 2 is a schematic flow chart of another service routing method provided by an embodiment of the present disclosure.
  • the service routing method includes steps S201 to S202.
  • Step S201 Obtain the service discovery initiated by the SCP based on the service request information, perform service discovery according to the service request information, and return a service discovery response to the SCP, where the service discovery response includes a service discovery failure instruction or a service discovery success instruction.
  • the business request information is obtained, and a service discovery request is made to the NRF based on the business request information.
  • the service discovery is performed based on the business request information, a service discovery response is obtained, and the service discovery response is obtained.
  • the response is returned to the SCP, where the service discovery response includes a service discovery failure command or a service discovery success command.
  • the service discovery success command indicates that the NRF performs service discovery based on the business request information and queries the NF server.
  • the service discovery fails.
  • the instruction indicates an instruction generated by NRF when it performs service discovery based on the business request information and fails to find the NF server.
  • Step S202 When the service discovery response is the service discovery failure instruction, the SCP determines the target SCP according to the service request information, and sends the service request information to the target SCP, so that the The target SCP requests service discovery from the target NRF, so that the target SCP initiates a service request to the NF server according to the service discovery success instruction returned by the target NRF.
  • the service request information includes user information
  • the user information includes a user identification code.
  • the service discovery response returned by NRF includes a service discovery failure instruction, obtain the preset mapping relationship table between the user identification code and the service area; query the service area corresponding to the user identification code according to the mapping relationship table, and obtain the target service area, and use the SCP matching the target service area as the target SCP.
  • the mapping relationship table is established in advance based on the user identification code and the service area.
  • the mapping relationship table can be established according to the actual situation, and this is not specifically limited in the embodiments of the present disclosure.
  • the target SCP can be accurately queried through this mapping table.
  • the service request information is sent to the target SCP, and the target SCP requests service discovery from the target NRF according to the service request information, where the target SCP and the target NRF belong to the same service area at the same level.
  • the target NRF performs service discovery based on the business request information and returns a service discovery success instruction to the target SCP.
  • the service discovery success instruction includes NF server information.
  • the NF server information includes the UDM or AUSF configuration file of the NF server.
  • the target SCP Send service request information to the NF server based on the UDM or AUSF configuration file to initiate a service request to the NF server based on the service request information.
  • the target SCP can send the service request information to the NF server based on the UDM or AUSF configuration file returned by the target NRF according to the service request information, which is very convenient. Dadi improves the efficiency and accuracy of business registration.
  • NF consumer 301 sends service request information to province A 310.
  • the first SCP 302 corresponding to province A 310 obtains the service request information.
  • An SCP 302 requests service discovery from the first NRF 303 based on the service request information.
  • the first NRF 303 performs service discovery based on the service request information and returns a service discovery response to the first SCP 302.
  • the service discovery response is a service discovery failure instruction
  • the first SCP 302 sends service request information to the second SCP 304 corresponding to the region A320.
  • the second SCP 304 receives the service request information and initiates service discovery to the second NRF 305.
  • the second NRF 305 performs service discovery based on the service request information and sends the service request to the second SCP 304.
  • the second SCP 304 returns a service discovery response.
  • the service discovery response is a service discovery failure instruction
  • the second SCP 304 determines the third SCP 306 in a different service area based on the service request information, and sends the service request information to the third SCP 306.
  • the third SCP 306 requests service discovery from the third NRF 307 based on the business request information.
  • the third NRF 307 performs service discovery based on the business request information and returns a service discovery success command to the third SCP 306.
  • the third SCP 306 sends a service discovery success command to the NF server 308 based on the service discovery success command.
  • the NF server 308 responds to the service request information and returns the service response information to the third SCP 306.
  • the third SCP 306 sends the received service response information to the second SCP 304, and the second SCP 304 sends the received service response information.
  • Sent to the first SCP 302 the first SCP 302 sends the received service response information to the NF consumer 301 to complete the service request.
  • NF consumer 401 sends service request information to the first SCP/first NRF 402 of province A 410 in region A430.
  • the first SCP/ The first NRF 402 performs service discovery based on the service request information. If the service discovery fails, it sends the service request information to the second SCP/second NRF 403 of the region A403.
  • the second SCP/second NRF 403 performs service discovery based on the service request information. If the service discovery fails, If the service discovery fails, the service request information is sent to the third SCP/third NRF 404 of the region B440.
  • the third SCP/third NRF 404 performs service discovery based on the service request information.
  • the fourth SCP/fourth NRF 405 performs service discovery based on the service request information, determines the NF server information of the NF server 406, initiates a service request to the NF server 406 based on the NF server information, and the NF server 406 responds to the service. Request information and return a business response letter to the fourth SCP/fourth NRF405.
  • the fourth SCP/fourth NRF405 will send the received business response letter to the third SCP/third NRF404, and the third SCP/third NRF404 will receive it.
  • the received service response letter is sent to the second SCP/second NRF 403, the second SCP/second NRF 403 sends the received service response letter to the first SCP/first NRF 402, the first SCP/first NRF 402 receives the service
  • the response letter is sent to NF consumer 401 to complete the business request.
  • the business routing method in the disclosed embodiment obtains the service discovery initiated by the SCP based on the business request information, performs service discovery based on the business request information, and returns a service discovery response to the SCP.
  • the service discovery response includes a service discovery failure instruction or a service discovery success instruction. ;
  • the SCP determines the target SCP based on the service request information, and sends the service request information to the target SCP, so that the target SCP requests service discovery from the target NRF.
  • the target SCP initiates a service request to the NF server based on the service discovery success instruction returned by the target NRF.
  • This solution can accurately determine the service area where the NF server is located, and initiate service requests to the NF server through the target SCP in the service area where the NF server is located, reducing cross-area signaling interactions, thereby reducing redundant signaling and shortening This reduces the delay in establishing service requests and greatly improves the efficiency of user service registration.
  • FIG. 5 is a schematic structural block diagram of a server provided by an embodiment of the present disclosure.
  • the server 500 includes a processor 501 and a memory 502 .
  • the processor 501 and the memory 502 are connected through a bus 503 , such as an I2C (Inter-integrated Circuit) bus.
  • I2C Inter-integrated Circuit
  • the processor 501 is used to provide computing and control capabilities to support the operation of the entire server.
  • the processor 501 can be a central processing unit (Central Processing Unit, CPU).
  • the processor 501 can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC). ), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general processor may be a microprocessor or the processor may be any conventional processor.
  • the memory 502 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk or a mobile hard disk, etc.
  • ROM Read-Only Memory
  • the memory 502 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk or a mobile hard disk, etc.
  • FIG. 5 is only a block diagram of a partial structure related to the disclosed solution, and does not constitute a limitation on the servers on which the disclosed solution is applied.
  • Specific servers may include: The figures show more or fewer parts, or certain parts combined, or with different arrangements of parts.
  • the processor is configured to run a computer program stored in the memory, and implement any one of the service routing methods provided by the embodiments of the present disclosure when executing the computer program.
  • the processor 502 is used to run a computer program stored in a memory, and implement the following steps when executing the computer program:
  • the processor 502 after the processor 502 implements the request for service discovery from the network storage function NRF according to the service request information, the processor 502 is also configured to implement:
  • the processor 502 is configured to implement when the service request information includes user information, the user information includes a user identification code, and the target SCP is determined based on the service request information:
  • the processor 502 is also configured to implement:
  • the service request information includes the network element type of the NF server and the network element type of the network element that initiated the service request.
  • processor 502 is also used to implement:
  • the SCP determines the target SCP according to the service request information, and sends the service request information to the target SCP, so that the target SCP Request service discovery from the target NRF, so that the target SCP initiates a service request to the NF server according to the service discovery success instruction returned by the target NRF.
  • the processor 502 after the processor 502 implements that the service discovery success instruction includes NF server information and returns a service discovery response to the SCP, it is also configured to implement:
  • the SCP When the service discovery response is the service discovery success instruction, the SCP initiates a service request to the NF server based on the NF server information.
  • the processor 502 when the service request information includes the target network element type of the NF server and the service discovery is performed based on the service request information, the processor 502 is configured to:
  • Embodiments of the present disclosure also provide a storage medium for computer-readable storage.
  • the storage medium stores one or more programs.
  • the one or more programs can be executed by one or more processors to implement the following: The steps of any service routing method provided in this disclosure.
  • the storage medium may be an internal storage unit of the server described in the previous embodiment, such as a hard disk or memory of the server.
  • the storage medium may also be an external storage device of the server, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SD) card, or a flash memory card equipped on the server. (Flash Card) etc.
  • Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiments of the present disclosure belong to the field of communications. Provided are a traffic routing method, and a device and a storage medium. The method comprises: acquiring traffic request information, and requesting a service discovery from a network repository function (NRF) according to the traffic request information; when a service discovery failure instruction, which is returned by the NRF, is acquired, determining a target SCP according to the traffic request information, wherein an SCP and the target SCP belong to different service areas; and sending the traffic request information to the target SCP, such that the target SCP requests a service discovery from a target NRF, and thus the target SCP initiates a traffic request to a network function (NF) server according to a service discovery success instruction, which is returned by the target NRF.

Description

业务路由方法、服务器及存储介质Service routing method, server and storage medium

相关申请的交叉引用Cross-references to related applications

本公开基于2022年7月11日提交的发明名称为“业务路由方法、服务器及存储介质”的中国专利申请CN202210810525.6,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。This disclosure is based on the Chinese patent application CN202210810525.6 with the invention name "Business Routing Method, Server and Storage Medium" submitted on July 11, 2022, and claims the priority of this patent application, and all the disclosed contents are incorporated by reference. incorporated into this disclosure.

技术领域Technical field

本公开涉及通信技术领域,尤其涉及一种业务路由方法、服务器及存储介质。The present disclosure relates to the field of communication technology, and in particular, to a service routing method, server and storage medium.

背景技术Background technique

随着5G网络的越来越成熟,运营商通过引入服务通信代理(service communication proxy,SCP),将原有的网元和网元之间直接进行信令交互的直接通信模式升级为网元与网元之间串接一个SCP的间接通信模式,并将网络功能(network function,NF)自身原有的服务发现、路由转发等路由相关功能交给SCP去完成,NF只需关注自身业务处理逻辑,使得NF功能更加轻量化。As 5G networks become more and more mature, operators have upgraded the original direct communication mode of direct signaling interaction between network elements to a direct communication mode between network elements and network elements by introducing service communication proxy (SCP). The indirect communication mode of an SCP is connected in series between network elements, and the original service discovery, route forwarding and other routing-related functions of the network function (NF) are handed over to the SCP to complete. NF only needs to focus on its own business processing logic. , making the NF function more lightweight.

目前,用户在发起注册流程时,会涉及多次本地网络与归属区域网络之间的跨区服务发现流程,当存在大量用户注册业务时,会出现大量的跨区信令交换,将会严重增加网络的负荷导致网络崩溃,而且用户在发起业务注册时,多次跨区的服务发现流程,会增加整个端到端的业务时延,影响用户的使用体验。因此,如何提升用户业务注册的效率是目前亟待解决的问题。At present, when a user initiates the registration process, it will involve multiple cross-region service discovery processes between the local network and the home area network. When there are a large number of user registration services, a large number of cross-region signaling exchanges will occur, which will seriously increase The network load causes network collapse, and when users initiate service registration, multiple cross-region service discovery processes will increase the entire end-to-end service delay and affect the user experience. Therefore, how to improve the efficiency of user business registration is an urgent problem that needs to be solved.

发明内容Contents of the invention

本公开实施例在于提供一种业务路由方法、服务器及存储介质,旨在减少跨区信令交互,以减少冗余信令和缩短建立业务请求的时延,极大地提高了用户业务注册的效率。Embodiments of the present disclosure provide a service routing method, server and storage medium, aiming to reduce cross-region signaling interactions, reduce redundant signaling and shorten the delay in establishing service requests, and greatly improve the efficiency of user service registration. .

第一方面,本公开实施例提供一种业务路由方法,应用于服务通信代理SCP,该方法包括:获取业务请求信息,并根据业务请求信息向网络存储功能NRF请求服务发现,SCP与NRF属于相同服务区域;在获取到NRF返回的服务发现失败指令的情况下,根据业务请求信息确定目标SCP,SCP与目标SCP属于不同服务区域;将业务请求信息发送至目标SCP,以使目标SCP向目标NRF请求服务发现,以供目标SCP根据目标NRF返回的服务发现成功指令向网络功能NF服务者发起业务请求。In the first aspect, embodiments of the present disclosure provide a service routing method, which is applied to the service communication agent SCP. The method includes: obtaining service request information, and requesting service discovery from the network storage function NRF according to the service request information. SCP and NRF belong to the same Service area; when obtaining the service discovery failure instruction returned by the NRF, determine the target SCP based on the business request information. The SCP and the target SCP belong to different service areas; send the business request information to the target SCP so that the target SCP sends the request to the target NRF. Request service discovery for the target SCP to initiate a service request to the network function NF server based on the service discovery success instruction returned by the target NRF.

第二方面,本公开实施例提供另一种业务路由方法,应用于NRF,该方法包括:获取SCP基于业务请求信息发起的服务发现,根据业务请求信息进行服务发现,并向SCP返回服务发现响应,服务发现响应包括服务发现失败指令或服务发现成功指令;在服务发现响应为服务发现失败指令的情况下,以使SCP根据业务请求信息确定目标SCP,并将业务请求信息发送至目标SCP,以使目标SCP向目标NRF请求服务发现,以供目标SCP根据目标NRF返回的服务发现成功指令向NF服务者发起业务请求。In the second aspect, embodiments of the present disclosure provide another service routing method, which is applied to NRF. The method includes: obtaining the service discovery initiated by the SCP based on the service request information, performing service discovery based on the service request information, and returning a service discovery response to the SCP. , the service discovery response includes a service discovery failure instruction or a service discovery success instruction; when the service discovery response is a service discovery failure instruction, the SCP determines the target SCP based on the business request information, and sends the business request information to the target SCP to The target SCP requests service discovery from the target NRF, so that the target SCP initiates a service request to the NF server based on the service discovery success instruction returned by the target NRF.

第三方面,本公开实施例还提供一种服务器,该服务器包括处理器、存储器、存储在存 储器上并可被处理器执行的计算机程序以及用于实现处理器和存储器之间的连接通信的数据总线,其中计算机程序被处理器执行时,实现如本公开说明书提供的任一项业务路由方法的步骤。In a third aspect, embodiments of the present disclosure also provide a server, which includes a processor, a memory, and a storage device. A computer program on the memory that can be executed by the processor and a data bus used to realize connection communication between the processor and the memory. When the computer program is executed by the processor, any service routing provided by this disclosure specification is implemented. Method steps.

第四方面,本公开实施例还提供一种存储介质,用于计算机可读存储,其中,该存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如本公开说明书提供的任一项业务路由的方法的步骤。In a fourth aspect, embodiments of the present disclosure also provide a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, To implement the steps of any service routing method provided in this disclosure.

附图说明Description of drawings

图1为本公开实施例提供的一种业务路由方法的流程示意图;Figure 1 is a schematic flowchart of a service routing method provided by an embodiment of the present disclosure;

图2为本公开实施例提供的另一种业务路由方法的流程示意图;Figure 2 is a schematic flow chart of another service routing method provided by an embodiment of the present disclosure;

图3为本公开实施例提供的又一种业务路由方法的流程示意图;Figure 3 is a schematic flow chart of yet another service routing method provided by an embodiment of the present disclosure;

图4为本公开实施例提供的又一种业务路由方法的流程示意图;Figure 4 is a schematic flow chart of yet another service routing method provided by an embodiment of the present disclosure;

图5为本公开实施例提供的一种服务器的结构示意性框图。Figure 5 is a schematic structural block diagram of a server provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in this disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this disclosure.

附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all contents and operations/steps, nor are they necessarily performed in the order described. For example, some operations/steps can also be decomposed, combined or partially merged, so the actual order of execution may change according to actual conditions.

应当理解,在本公开说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本公开。如在本公开说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terminology used in the description of the present disclosure is for the purpose of describing particular embodiments only and is not intended to limit the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly dictates otherwise.

本公开实施例提供一种业务路由方法、服务器及存储介质。其中,该业务路由方法可应用于服务器,该服务器可以是台式服务器、机架式服务器、机柜式服务器和刀片式服务器等类型的服务器,当然,该服务器也可以是云端服务器。Embodiments of the present disclosure provide a service routing method, server and storage medium. The service routing method can be applied to servers, which can be desktop servers, rack servers, cabinet servers, blade servers and other types of servers. Of course, the servers can also be cloud servers.

下面结合附图,对本公开的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. The following embodiments and features in the embodiments may be combined with each other without conflict.

请参照图1,图1为本公开实施例提供的一种业务路由方法的流程示意图。Please refer to FIG. 1 , which is a schematic flowchart of a service routing method provided by an embodiment of the present disclosure.

如图1所示,该业务路由方法包括步骤S101至步骤S103。As shown in Figure 1, the service routing method includes steps S101 to S103.

步骤S101、获取业务请求信息,并根据所述业务请求信息向网络存储功能NRF请求服务发现,所述SCP与所述NRF属于相同服务区域。Step S101: Obtain service request information, and request service discovery from the network storage function NRF according to the service request information. The SCP and the NRF belong to the same service area.

其中,该业务请求信息可以根据实际情况下进行设置,本公开实施例对此不做具体限定,例如该业务请求信息可以是超文本传输协(Hyper Text Transfer Protocol,HTTP)的业务请求信息,业务请求信息包括用户信息、NF服务者的网元类型(3gpp Sbi Discovery target nf type)和发起业务请求网元的网元类型(3gpp Sbi Discovery requester nf type)。该发起业务请求网元和NF服务者可以根据实际情况进行设置,本公开实施例对此不做具体限定,例如, 该发起业务请求网元为接入和移动性管理功能(access and mobility management function,AMF)服务器,该AMF服务器用于为用户接入NF服务者,NF,主要负责用户的注册管理、连接管理、安全管理、移动性管理等功能;该NF服务者可以是服务器,该服务器包括鉴权服务器功能(authentication server function,AUSF)和/或统一数据管理(unified data management,UDM),该AUSF AUSF)作为5G网络的鉴权中心,主要负责为用户提供鉴权;该UDM用于用户签约信息、安全信息等用户数据的管理,以及相关的用户接入、注册、移动性管理等功能。The service request information can be set according to the actual situation. This is not specifically limited in the embodiments of the present disclosure. For example, the service request information can be the service request information of Hyper Text Transfer Protocol (HTTP). The request information includes user information, the network element type of the NF server (3gpp Sbi Discovery target nf type) and the network element type of the network element that initiates the service request (3gpp Sbi Discovery requester nf type). The service requesting network element and NF server can be set according to the actual situation, and this embodiment of the present disclosure does not specifically limit this, for example, The network element that initiates the service request is an access and mobility management function (AMF) server. The AMF server is used to access the NF server for users. NF is mainly responsible for user registration management, connection management, Security management, mobility management and other functions; the NF server can be a server, which includes an authentication server function (AUSF) and/or unified data management (UDM), the AUSF (AUSF) as The authentication center of the 5G network is mainly responsible for providing authentication for users; the UDM is used for the management of user data such as user subscription information and security information, as well as related user access, registration, mobility management and other functions.

其中,SCP与网络存储功能(Network Repository Function,NRF)属于相同级别的相同服务区域为:将中国划分为多个服务大区,并将各个服务大区划分为多个服务省份,划分服务大区和服务省份的划分规则可以根据实际情况进行设置,本公开实施例对此不做具体限定,例如,将中国各地区划分为7个服务大区,该7个服务大区包括华东服务大区、华北服务大区、华中服务大区、华南服务大区、西南服务大区、西北服务大区和东别服务大区,各服务大区可以将所包括的省份划分为各服务省份,例如,华中服务大区包括河南省服务省份、湖北省服务省份和湖南省服务省份。SCP与NRF处于相同大区且相同省份的服务区域,例如,该SCP与NRF处于华中服务大区的湖南省服务省份。Among them, the same service area where SCP and Network Repository Function (NRF) belong to the same level are: dividing China into multiple service areas, and dividing each service area into multiple service provinces, dividing service areas The division rules of provinces and service provinces can be set according to the actual situation. This embodiment of the present disclosure does not specifically limit this. For example, each region in China is divided into 7 service regions. The 7 service regions include the East China Service Region, North China Service Region, Central China Service Region, South China Service Region, Southwest Service Region, Northwest Service Region and East Service Region. Each service region can divide the included provinces into service provinces, for example, Central China The service area includes the service provinces of Henan Province, the service provinces of Hubei Province and the service provinces of Hunan Province. The SCP and the NRF are in the service area of the same region and the same province. For example, the SCP and the NRF are in the service province of Hunan Province in the Central China Service Region.

需要说明的是,本公开应用在Model D有代理服务发现间接通信模式(indirect communication with delegated discovery)下的业务请求,在Model D模式中SCP和网络存储功能(Network Repository Function,NRF)可以是分开部署,当然该SCP和NRF也可以是融合部署,本公开实施例对此不做具体限定。It should be noted that this disclosure is applied to business requests under the indirect communication mode (indirect communication with delegated discovery) of Model D. In Model D mode, SCP and network storage function (Network Repository Function, NRF) can be separated. Deployment, of course, the SCP and NRF can also be integrated deployment, which is not specifically limited in the embodiment of the present disclosure.

在一实施例中,获取业务请求信息,根据该业务请求信息向NRF请求服务发现,接收到SCP发送的服务发现请求之后,根据业务请求信息进行服务发现,得到服务发现响应,并将该服务发现响应返回至SCP,其中,该服务发现响应包括服务发现失败指令或服务发现成功指令,该服务发现成功指令表示NRF根据业务请求信息进行服务发现查询到了NF服务者而生成的指令,该服务发现失败指令表示NRF根据业务请求信息进行服务发现未查询到了NF服务者而生成的指令。通过向NRF请求服务发现,NRF能够根据业务请求信息准确地进行服务发现,极大地提高了业务注册的效率和准确性。In one embodiment, the business request information is obtained, and a service discovery request is made to the NRF based on the business request information. After receiving the service discovery request sent by the SCP, the service discovery is performed based on the business request information, a service discovery response is obtained, and the service discovery response is obtained. The response is returned to the SCP, where the service discovery response includes a service discovery failure command or a service discovery success command. The service discovery success command indicates that the NRF performs service discovery based on the business request information and queries the NF server. The service discovery fails. The instruction indicates an instruction generated by NRF when it performs service discovery based on the business request information and fails to find the NF server. By requesting service discovery from NRF, NRF can accurately perform service discovery based on business request information, greatly improving the efficiency and accuracy of business registration.

在一实施例中,NRF根据所述业务请求信息进行服务发现的方式可以为:业务请求信息包括NF服务者的目标网元类型,NRF确定是否存在网元类型为目标网元类型的NF服务者;在存在网元类型为目标网元类型的NF服务者的情况下,确定服务发现成功;在不存在网元类型为目标网元类型的NF服务者的情况下,确定服务发现失败。NRF通过确定是否存在网元类型为目标网元类型的NF服务者,能够准确地确定知晓本服务区域是否存在NF服务者,极大地提高了业务请求注册的效率和准确性。In one embodiment, the way NRF performs service discovery based on the service request information may be: the service request information includes the target network element type of the NF server, and the NRF determines whether there is an NF server whose network element type is the target network element type. ; When there is an NF server whose network element type is the target network element type, it is determined that the service discovery is successful; when there is no NF server whose network element type is the target network element type, it is determined that the service discovery failed. By determining whether there is an NF server whose network element type is the target network element type, NRF can accurately determine whether there is an NF server in the service area, which greatly improves the efficiency and accuracy of service request registration.

步骤S102、在获取到所述NRF返回的服务发现失败指令的情况下,根据所述业务请求信息确定目标SCP,所述SCP与所述目标SCP属于不同服务区域。Step S102: After obtaining the service discovery failure instruction returned by the NRF, determine the target SCP according to the service request information, and the SCP and the target SCP belong to different service areas.

其中,SCP与目标SCP处于相同的服务大区且处于不相同服务省份,或SCP与目标SCP处于不相同的服务大区且处于不相同服务省份。Among them, the SCP and the target SCP are in the same service area but in different service provinces, or the SCP and the target SCP are in different service areas and in different service provinces.

在一实施例中,业务请求信息包括用户信息,用户信息包括用户标识码。在获取到NRF返回的服务发现响应包括服务发现失败指令的情况下,获取预设的用户标识码与服务区域之间的映射关系表;根据映射关系表查询用户标识码对应的服务区域,得到目标服务区域,并 将目标服务区域匹配的SCP作为目标SCP。其中,该映射关系表为预先根据用户标识码与服务区域建立的,该映射关系表可以根据实际情况进行建立,本公开实施例对此不做具体限定。通过该映射关系表能够准确地查询到目标SCP。In one embodiment, the service request information includes user information, and the user information includes a user identification code. When the service discovery response returned by NRF is obtained and includes a service discovery failure instruction, the preset mapping relationship table between the user identification code and the service area is obtained; the service area corresponding to the user identification code is queried according to the mapping relationship table to obtain the target service area, and Use the SCP matching the target service area as the target SCP. The mapping relationship table is established in advance based on the user identification code and the service area. The mapping relationship table can be established according to the actual situation, and the embodiment of the present disclosure does not specifically limit this. The target SCP can be accurately queried through this mapping table.

需要说明的是,该用户标识码可以根据实际情况进行设置,本公开实施例对此不做具体限定,例如,该用户标识码可以为:国际移动用户识别码(international mobile subscriber identity,IMSI)或网络接入标识(network access identifier,NAI)。It should be noted that the user identification code can be set according to the actual situation, and the embodiment of the present disclosure does not specifically limit this. For example, the user identification code can be: international mobile subscriber identity (IMSI) or Network access identifier (NAI).

在一实施例中,服务发现成功指令包括NF服务者信息,在服务发现响应为服务发现成功指令的情况下,SCP基于NF服务者信息向NF服务者发送业务请求信息,以根据业务请求信息对NF服务者发起业务请求。其中,该NF服务者信息包括NF服务者的UDM或AUSF配置文件。NRF通过服务发现能够准确地查询到NF服务者的NF服务者信息,根据NF服务者信息能够准确地对NF服务者发起业务请求。In one embodiment, the service discovery success instruction includes NF server information. When the service discovery response is a service discovery success instruction, the SCP sends business request information to the NF server based on the NF server information to respond to the request based on the service request information. The NF server initiates a service request. The NF server information includes the UDM or AUSF configuration file of the NF server. NRF can accurately query the NF server information of the NF server through service discovery, and can accurately initiate service requests to the NF server based on the NF server information.

在一实施例中,在获取到NRF返回的服务发现失败指令的情况下,根据业务请求信息确定目标SCP的方式可以为:将业务请求信息发送至与SCP相同服务大区的第一SCP,第一SCP接收到业务请求信息,并根据业务请求信息向第一NRF请求服务发现,其中,第一SCP与第一NRF属于相同级别的相同服务区域;第一NRF根据业务请求信息进行服务发现,并向第一SCP返回服务发现响应,在服务发现响应为服务发现成功指令的情况下,第一SCP根据服务发现成功指令中的NF服务者信息向NF服务者发送业务请求信息,以根据业务请求信息对NF服务者发起业务请求。在服务发现响应为服务发现失败指令的情况下,第一SCP根据业务请求信息确定第二SCP(即为目标SCP),并将业务请求信息发送至第二SCP,第二SCP根据业务请求信息向第二NRF(即为目标NRF)请求服务发现,其中,第二SCP与第二NRF属于相同级别的相同服务区域,第二NRF根据业务请求信息进行服务发现,并向第二SCP返回服务发现成功指令,以使第二SCP根据服务发现成功指令向NF服务者发起业务请求。通过业务请求信息能够准确地查询到不同服务大区的目标SCP,目标SCP能够准确地根据服务发现成功指令向NF服务者发起业务请求。In one embodiment, when the service discovery failure instruction returned by the NRF is obtained, the method of determining the target SCP based on the service request information may be: sending the service request information to the first SCP in the same service area as the SCP. An SCP receives the service request information, and requests service discovery from the first NRF based on the service request information, where the first SCP and the first NRF belong to the same service area at the same level; the first NRF performs service discovery based on the service request information, and Returns a service discovery response to the first SCP. When the service discovery response is a service discovery success instruction, the first SCP sends business request information to the NF server based on the NF server information in the service discovery success instruction. Initiate a service request to the NF server. When the service discovery response is a service discovery failure instruction, the first SCP determines the second SCP (that is, the target SCP) according to the service request information, and sends the service request information to the second SCP. The second SCP sends the service request information to the second SCP according to the service request information. The second NRF (that is, the target NRF) requests service discovery. The second SCP and the second NRF belong to the same service area at the same level. The second NRF performs service discovery based on the service request information and returns the service discovery success to the second SCP. Instruction, so that the second SCP initiates a service request to the NF server according to the service discovery success instruction. The target SCP in different service areas can be accurately queried through the business request information, and the target SCP can accurately initiate a business request to the NF server according to the service discovery success instruction.

步骤S103、将所述业务请求信息发送至所述目标SCP,以使所述目标SCP向目标NRF请求服务发现,以供所述目标SCP根据所述目标NRF返回的服务发现成功指令向网络功能NF服务者发起业务请求。Step S103: Send the service request information to the target SCP, so that the target SCP requests service discovery from the target NRF, so that the target SCP requests the network function NF according to the service discovery success instruction returned by the target NRF. The server initiates a business request.

将业务请求信息发送至目标SCP,目标SCP根据业务请求信息向目标NRF请求服务发现,其中,目标SCP与目标NRF属于相同级别的相同服务区域。目标NRF根据业务请求信息进行服务发现,并向目标SCP返回的服务发现成功指令,该服务发现成功指令包括NF服务者信息,该NF服务者信息包括NF服务者的UDM或AUSF配置文件,目标SCP基于UDM或AUSF配置文件向NF服务者发送业务请求信息,以根据业务请求信息对NF服务者发起业务请求。通过将业务请求信息发送至目标SCP,目标SCP能够基于目标NRF根据业务请求信息返回的UDM或AUSF配置文件直接向NF服务者发送业务请求信息,极大地提高了业务注册的效率和准确性。The service request information is sent to the target SCP, and the target SCP requests service discovery from the target NRF according to the service request information, where the target SCP and the target NRF belong to the same service area at the same level. The target NRF performs service discovery based on the business request information and returns a service discovery success instruction to the target SCP. The service discovery success instruction includes NF server information. The NF server information includes the UDM or AUSF configuration file of the NF server. The target SCP Send service request information to the NF server based on the UDM or AUSF configuration file to initiate a service request to the NF server based on the service request information. By sending the service request information to the target SCP, the target SCP can directly send the service request information to the NF server based on the UDM or AUSF configuration file returned by the target NRF according to the service request information, which greatly improves the efficiency and accuracy of service registration.

在一实施例中,NF服务者接收到目标SCP发送的业务请求信息,基于该业务请求信息进行业务处理,生成业务响应信息,将该业务响应信息发送至目标SCP,目标SCP将接收到的业务响应信息发送至SCP,SCP将接收到的业务响应信息发送至发起业务请求网元,以完成注册业务的流程。其中,该NF服务者对业务请求信息进行业务处理可以根据实际情况进 行设置,本公开实施例对此不做具体限定,例如,对业务请求信息进行鉴权。通过接收到返回的业务响应信息能够准确地确定已完成业务注册流程。In one embodiment, the NF server receives the service request information sent by the target SCP, performs service processing based on the service request information, generates service response information, and sends the service response information to the target SCP, and the target SCP transfers the received service information to the target SCP. The response information is sent to the SCP, and the SCP sends the received service response information to the network element that initiates the service request to complete the process of registering the service. Among them, the NF server can process the business request information according to the actual situation. Row setting, which is not specifically limited in this embodiment of the disclosure, for example, authenticates the service request information. By receiving the returned business response information, it can be accurately determined that the business registration process has been completed.

本公开实施例中业务路由方法,通过获取业务请求信息,并根据业务请求信息向网络存储功能NRF请求服务发现,SCP与所述NRF属于相同服务区域;在获取到NRF返回的服务发现失败指令的情况下,根据业务请求信息确定目标SCP,SCP与目标SCP属于不同服务区域;将业务请求信息发送至目标SCP,以使目标SCP向目标NRF请求服务发现,以供目标SCP根据目标NRF返回的服务发现成功指令向网络功能NF服务者发起业务请求。本方案能够准确地确定NF服务者所在的服务区域,并通过NF服务者所在的服务区域的目标SCP向NF服务者发起业务请求,减少跨区信令交互,进而减少了冗余信令和缩短了建立业务请求的时延,极大地提高用户业务注册的效率。The service routing method in this disclosed embodiment obtains the service request information and requests service discovery from the network storage function NRF according to the service request information. The SCP and the NRF belong to the same service area; after obtaining the service discovery failure instruction returned by the NRF, In this case, the target SCP is determined based on the business request information, and the SCP and the target SCP belong to different service areas; the business request information is sent to the target SCP, so that the target SCP requests service discovery from the target NRF, so that the target SCP can provide services returned by the target NRF. The successful discovery instruction initiates a service request to the network function NF server. This solution can accurately determine the service area where the NF server is located, and initiate service requests to the NF server through the target SCP in the service area where the NF server is located, reducing cross-area signaling interactions, thereby reducing redundant signaling and shortening This reduces the delay in establishing service requests and greatly improves the efficiency of user service registration.

请参照图2,图2为本公开实施例提供的另一种业务路由方法的流程示意图。Please refer to Figure 2, which is a schematic flow chart of another service routing method provided by an embodiment of the present disclosure.

如图2所示,该业务路由方法包括步骤S201至步骤S202。As shown in Figure 2, the service routing method includes steps S201 to S202.

步骤S201、获取SCP基于业务请求信息发起的服务发现,根据所述业务请求信息进行服务发现,并向所述SCP返回服务发现响应,所述服务发现响应包括服务发现失败指令或服务发现成功指令。Step S201: Obtain the service discovery initiated by the SCP based on the service request information, perform service discovery according to the service request information, and return a service discovery response to the SCP, where the service discovery response includes a service discovery failure instruction or a service discovery success instruction.

在一实施例中,获取业务请求信息,根据该业务请求信息向NRF请求服务发现,接收到SCP发送的服务发现请求之后,根据业务请求信息进行服务发现,得到服务发现响应,并将该服务发现响应返回至SCP,其中,该服务发现响应包括服务发现失败指令或服务发现成功指令,该服务发现成功指令表示NRF根据业务请求信息进行服务发现查询到了NF服务者而生成的指令,该服务发现失败指令表示NRF根据业务请求信息进行服务发现未查询到了NF服务者而生成的指令。通过向NRF请求服务发现,NRF能够根据业务请求信息准确地进行服务发现,极大地提高了业务注册的效率和准确性。In one embodiment, the business request information is obtained, and a service discovery request is made to the NRF based on the business request information. After receiving the service discovery request sent by the SCP, the service discovery is performed based on the business request information, a service discovery response is obtained, and the service discovery response is obtained. The response is returned to the SCP, where the service discovery response includes a service discovery failure command or a service discovery success command. The service discovery success command indicates that the NRF performs service discovery based on the business request information and queries the NF server. The service discovery fails. The instruction indicates an instruction generated by NRF when it performs service discovery based on the business request information and fails to find the NF server. By requesting service discovery from NRF, NRF can accurately perform service discovery based on business request information, greatly improving the efficiency and accuracy of business registration.

步骤S202、在所述服务发现响应为所述服务发现失败指令的情况下,以使所述SCP根据业务请求信息确定目标SCP,并将所述业务请求信息发送至所述目标SCP,以使所述目标SCP向目标NRF请求服务发现,以供所述目标SCP根据所述目标NRF返回的服务发现成功指令向NF服务者发起业务请求。Step S202: When the service discovery response is the service discovery failure instruction, the SCP determines the target SCP according to the service request information, and sends the service request information to the target SCP, so that the The target SCP requests service discovery from the target NRF, so that the target SCP initiates a service request to the NF server according to the service discovery success instruction returned by the target NRF.

在一实施例中,业务请求信息包括用户信息,用户信息包括用户标识码。在获取到NRF返回的服务发现响应包括服务发现失败指令的情况下,获取预设的用户标识码与服务区域之间的映射关系表;根据映射关系表查询用户标识码对应的服务区域,得到目标服务区域,并将目标服务区域匹配的SCP作为目标SCP。其中,该映射关系表为预先根据用户标识码与服务区域建立的,该映射关系表可以根据实际情况进行建立,本公开实施例对此不做具体限定。通过该映射关系表能够准确地查询到目标SCP。In one embodiment, the service request information includes user information, and the user information includes a user identification code. When the service discovery response returned by NRF includes a service discovery failure instruction, obtain the preset mapping relationship table between the user identification code and the service area; query the service area corresponding to the user identification code according to the mapping relationship table, and obtain the target service area, and use the SCP matching the target service area as the target SCP. The mapping relationship table is established in advance based on the user identification code and the service area. The mapping relationship table can be established according to the actual situation, and this is not specifically limited in the embodiments of the present disclosure. The target SCP can be accurately queried through this mapping table.

在一实施例中,将业务请求信息发送至目标SCP,目标SCP根据业务请求信息向目标NRF请求服务发现,其中,目标SCP与目标NRF属于相同级别的相同服务区域。目标NRF根据业务请求信息进行服务发现,并向目标SCP返回的服务发现成功指令,该服务发现成功指令包括NF服务者信息,该NF服务者信息包括NF服务者的UDM或AUSF配置文件,目标SCP基于UDM或AUSF配置文件向NF服务者发送业务请求信息,以根据业务请求信息对NF服务者发起业务请求。通过将业务请求信息发送至目标SCP,目标SCP能够基于目标NRF根据业务请求信息返回的UDM或AUSF配置文件向NF服务者发送业务请求信息,极 大地提高了业务注册的效率和准确性。In one embodiment, the service request information is sent to the target SCP, and the target SCP requests service discovery from the target NRF according to the service request information, where the target SCP and the target NRF belong to the same service area at the same level. The target NRF performs service discovery based on the business request information and returns a service discovery success instruction to the target SCP. The service discovery success instruction includes NF server information. The NF server information includes the UDM or AUSF configuration file of the NF server. The target SCP Send service request information to the NF server based on the UDM or AUSF configuration file to initiate a service request to the NF server based on the service request information. By sending the service request information to the target SCP, the target SCP can send the service request information to the NF server based on the UDM or AUSF configuration file returned by the target NRF according to the service request information, which is very convenient. Dadi improves the efficiency and accuracy of business registration.

示例性的,如图3所示,在Model D模式中SCP和NRF分开部署,NF消费者301向A省310发送业务请求信息,A省310对应的第一SCP302获取到该业务请求信息,第一SCP302根据该业务请求信息向第一NRF303请求服务发现,第一NRF303根据该业务请求信息进行服务发现,并向第一SCP302返回服务发现响应,在服务发现响应为服务发现失败指令的情况下,第一SCP302向大区A320对应的第二SCP304发送业务请求信息,第二SCP304接收到该业务请求信息,并向第二NRF305发起服务发现,第二NRF305根据该业务请求信息进行服务发现,并向第二SCP304返回服务发现响应,在服务发现响应为服务发现失败指令的情况下,第二SCP304根据业务请求信息确定不相同服务区域的第三SCP306,并将该业务请求信息发送至第三SCP306,第三SCP306根据业务请求信息向第三NRF307请求服务发现,第三NRF307根据业务请求信息进行服务发现,并向第三SCP306返回服务发现成功指令,第三SCP306根据服务发现成功指令向NF服务者308发起业务请求,NF服务者308响应该业务请求信息,并向第三SCP306返回业务响应信息,第三SCP306将接收到的业务响应信息发送至第二SCP304,第二SCP304将接收到的业务响应信息发送至第一SCP302,第一SCP302将接收到的业务响应信息发送至NF消费者301,以完成业务请求。For example, as shown in Figure 3, in Model D mode, SCP and NRF are deployed separately. NF consumer 301 sends service request information to province A 310. The first SCP 302 corresponding to province A 310 obtains the service request information. An SCP 302 requests service discovery from the first NRF 303 based on the service request information. The first NRF 303 performs service discovery based on the service request information and returns a service discovery response to the first SCP 302. When the service discovery response is a service discovery failure instruction, The first SCP 302 sends service request information to the second SCP 304 corresponding to the region A320. The second SCP 304 receives the service request information and initiates service discovery to the second NRF 305. The second NRF 305 performs service discovery based on the service request information and sends the service request to the second SCP 304. The second SCP 304 returns a service discovery response. When the service discovery response is a service discovery failure instruction, the second SCP 304 determines the third SCP 306 in a different service area based on the service request information, and sends the service request information to the third SCP 306. The third SCP 306 requests service discovery from the third NRF 307 based on the business request information. The third NRF 307 performs service discovery based on the business request information and returns a service discovery success command to the third SCP 306. The third SCP 306 sends a service discovery success command to the NF server 308 based on the service discovery success command. Initiating a service request, the NF server 308 responds to the service request information and returns the service response information to the third SCP 306. The third SCP 306 sends the received service response information to the second SCP 304, and the second SCP 304 sends the received service response information. Sent to the first SCP 302, the first SCP 302 sends the received service response information to the NF consumer 301 to complete the service request.

示例性的,如图4所示,在Model D模式中SCP和NRF融合部署,NF消费者401向大区A430的A省410的第一SCP/第一NRF402发送业务请求信息,第一SCP/第一NRF402根据业务请求信息进行服务发现,若服务发现失败向大区A403的第二SCP/第二NRF403发送业务请求信息,第二SCP/第二NRF403根据业务请求信息进行服务发现,若服务发现失败向大区B440的第三SCP/第三NRF404发送业务请求信息,第三SCP/第三NRF404根据业务请求信息进行服务发现,若服务发现失败向B省的第四SCP/第四NRF404发送业务请求信息,第四SCP/第四NRF405根据业务请求信息进行服务发现,确定NF服务者406的NF服务者信息,根据NF服务者信息向NF服务者406发起业务请求,NF服务者406响应该业务请求信息,并向第四SCP/第四NRF405返回业务响应信,第四SCP/第四NRF405将接收到的业务响应信发送至第三SCP/第三NRF404,第三SCP/第三NRF404将接收到的业务响应信发送至第二SCP/第二NRF403,第二SCP/第二NRF403将接收到的业务响应信发送至第一SCP/第一NRF402,第一SCP/第一NRF402接收到的业务响应信发送至NF消费者401,以完成业务请求。Illustratively, as shown in Figure 4, in Model D mode, SCP and NRF are integrated and deployed. NF consumer 401 sends service request information to the first SCP/first NRF 402 of province A 410 in region A430. The first SCP/ The first NRF 402 performs service discovery based on the service request information. If the service discovery fails, it sends the service request information to the second SCP/second NRF 403 of the region A403. The second SCP/second NRF 403 performs service discovery based on the service request information. If the service discovery fails, If the service discovery fails, the service request information is sent to the third SCP/third NRF 404 of the region B440. The third SCP/third NRF 404 performs service discovery based on the service request information. If the service discovery fails, the service is sent to the fourth SCP/fourth NRF 404 of province B. To request information, the fourth SCP/fourth NRF 405 performs service discovery based on the service request information, determines the NF server information of the NF server 406, initiates a service request to the NF server 406 based on the NF server information, and the NF server 406 responds to the service. Request information and return a business response letter to the fourth SCP/fourth NRF405. The fourth SCP/fourth NRF405 will send the received business response letter to the third SCP/third NRF404, and the third SCP/third NRF404 will receive it. The received service response letter is sent to the second SCP/second NRF 403, the second SCP/second NRF 403 sends the received service response letter to the first SCP/first NRF 402, the first SCP/first NRF 402 receives the service The response letter is sent to NF consumer 401 to complete the business request.

本公开实施例中业务路由方法,通过获取SCP基于业务请求信息发起的服务发现,根据业务请求信息进行服务发现,并向SCP返回服务发现响应,服务发现响应包括服务发现失败指令或服务发现成功指令;在服务发现响应为服务发现失败指令的情况下,以使SCP根据业务请求信息确定目标SCP,并将业务请求信息发送至所述目标SCP,以使目标SCP向目标NRF请求服务发现,以供目标SCP根据所述目标NRF返回的服务发现成功指令向NF服务者发起业务请求。本方案能够准确地确定NF服务者所在的服务区域,并通过NF服务者所在的服务区域的目标SCP向NF服务者发起业务请求,减少跨区信令交互,进而减少了冗余信令和缩短了建立业务请求的时延,极大地提高用户业务注册的效率。The business routing method in the disclosed embodiment obtains the service discovery initiated by the SCP based on the business request information, performs service discovery based on the business request information, and returns a service discovery response to the SCP. The service discovery response includes a service discovery failure instruction or a service discovery success instruction. ; When the service discovery response is a service discovery failure instruction, the SCP determines the target SCP based on the service request information, and sends the service request information to the target SCP, so that the target SCP requests service discovery from the target NRF. The target SCP initiates a service request to the NF server based on the service discovery success instruction returned by the target NRF. This solution can accurately determine the service area where the NF server is located, and initiate service requests to the NF server through the target SCP in the service area where the NF server is located, reducing cross-area signaling interactions, thereby reducing redundant signaling and shortening This reduces the delay in establishing service requests and greatly improves the efficiency of user service registration.

请参阅图5,图5为本公开实施例提供的一种服务器的结构示意性框图。Please refer to FIG. 5 , which is a schematic structural block diagram of a server provided by an embodiment of the present disclosure.

如图5所示,服务器500包括处理器501和存储器502,处理器501和存储器502通过总线503连接,该总线比如为I2C(Inter-integrated Circuit)总线。 As shown in FIG. 5 , the server 500 includes a processor 501 and a memory 502 . The processor 501 and the memory 502 are connected through a bus 503 , such as an I2C (Inter-integrated Circuit) bus.

具体地,处理器501用于提供计算和控制能力,支撑整个服务器的运行。处理器501可以是中央处理单元(Central Processing Unit,CPU),该处理器501还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Specifically, the processor 501 is used to provide computing and control capabilities to support the operation of the entire server. The processor 501 can be a central processing unit (Central Processing Unit, CPU). The processor 501 can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC). ), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general processor may be a microprocessor or the processor may be any conventional processor.

具体地,存储器502可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 502 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) disk, an optical disk, a U disk or a mobile hard disk, etc.

本领域技术人员可以理解,图5中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的服务器的限定,具体的服务器可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 5 is only a block diagram of a partial structure related to the disclosed solution, and does not constitute a limitation on the servers on which the disclosed solution is applied. Specific servers may include: The figures show more or fewer parts, or certain parts combined, or with different arrangements of parts.

其中,所述处理器用于运行存储在存储器中的计算机程序,并在执行所述计算机程序时实现本公开实施例提供的任意一种所述的业务路由方法。Wherein, the processor is configured to run a computer program stored in the memory, and implement any one of the service routing methods provided by the embodiments of the present disclosure when executing the computer program.

在一实施方式中,所述处理器502用于运行存储在存储器中的计算机程序,并在执行所述计算机程序时实现如下步骤:In one embodiment, the processor 502 is used to run a computer program stored in a memory, and implement the following steps when executing the computer program:

获取业务请求信息,并根据所述业务请求信息向网络存储功能NRF请求服务发现,所述SCP与所述NRF属于相同服务区域;Obtain the service request information, and request service discovery from the network storage function NRF according to the service request information, and the SCP and the NRF belong to the same service area;

在获取到所述NRF返回的服务发现失败指令的情况下,根据所述业务请求信息确定目标SCP,所述SCP与所述目标SCP属于不同服务区域;In the case of obtaining the service discovery failure instruction returned by the NRF, determine the target SCP according to the service request information, and the SCP and the target SCP belong to different service areas;

将所述业务请求信息发送至所述目标SCP,以使所述目标SCP向目标NRF请求服务发现,以供所述目标SCP根据所述目标NRF返回的服务发现成功指令向网络功能NF服务者发起业务请求。Send the service request information to the target SCP, so that the target SCP requests service discovery from the target NRF, so that the target SCP initiates a service discovery request to the network function NF server according to the service discovery success instruction returned by the target NRF. Business request.

在一实施例中,所述处理器502在实现所述根据所述业务请求信息向网络存储功能NRF请求服务发现之后,还用于实现:In an embodiment, after the processor 502 implements the request for service discovery from the network storage function NRF according to the service request information, the processor 502 is also configured to implement:

在获取到NRF返回的服务发现成功指令的情况下,根据所述服务发现成功指令向NF服务者发起业务请求。When the service discovery success instruction returned by the NRF is obtained, a service request is initiated to the NF server according to the service discovery success instruction.

在一实施例中,所述处理器502在实现所述业务请求信息包括用户信息,所述用户信息包括用户标识码,所述根据所述业务请求信息确定目标SCP时,用于实现:In one embodiment, the processor 502 is configured to implement when the service request information includes user information, the user information includes a user identification code, and the target SCP is determined based on the service request information:

获取预设的用户标识码与服务区域之间的映射关系表;Obtain the mapping relationship table between the preset user identification code and service area;

根据所述映射关系表查询所述用户标识码对应的服务区域,得到目标服务区域,并将所述目标服务区域匹配的SCP作为目标SCP。Query the service area corresponding to the user identification code according to the mapping relationship table to obtain the target service area, and use the SCP matching the target service area as the target SCP.

在一实施例中,所述处理器502在实现所述将所述业务请求信息发送至所述目标SCP之后,还用于实现:In an embodiment, after implementing the sending of the service request information to the target SCP, the processor 502 is also configured to implement:

获取所述目标SCP基于所述业务请求信息返回的业务响应信息。Obtain the service response information returned by the target SCP based on the service request information.

在一实施例中,所述业务请求信息包括所述NF服务者的网元类型和发起业务请求网元的网元类型。In one embodiment, the service request information includes the network element type of the NF server and the network element type of the network element that initiated the service request.

在一实施例中,所述处理器502还用于实现:In one embodiment, the processor 502 is also used to implement:

获取SCP基于业务请求信息发起的服务发现,根据所述业务请求信息进行服务发现,并向所述SCP返回服务发现响应,所述服务发现响应包括服务发现失败指令或服务发现成功指 令;Obtain the service discovery initiated by the SCP based on the business request information, perform service discovery based on the business request information, and return a service discovery response to the SCP, where the service discovery response includes a service discovery failure instruction or a service discovery success instruction. make;

在所述服务发现响应为所述服务发现失败指令的情况下,以使所述SCP根据业务请求信息确定目标SCP,并将所述业务请求信息发送至所述目标SCP,以使所述目标SCP向目标NRF请求服务发现,以供所述目标SCP根据所述目标NRF返回的服务发现成功指令向NF服务者发起业务请求。When the service discovery response is the service discovery failure instruction, the SCP determines the target SCP according to the service request information, and sends the service request information to the target SCP, so that the target SCP Request service discovery from the target NRF, so that the target SCP initiates a service request to the NF server according to the service discovery success instruction returned by the target NRF.

在一实施例中,所述处理器502在实现所述服务发现成功指令包括NF服务者信息,所述向所述SCP返回服务发现响应之后,还用于实现:In one embodiment, after the processor 502 implements that the service discovery success instruction includes NF server information and returns a service discovery response to the SCP, it is also configured to implement:

在所述服务发现响应为所述服务发现成功指令的情况下,以使所述SCP基于所述NF服务者信息向所述NF服务者发起业务请求。When the service discovery response is the service discovery success instruction, the SCP initiates a service request to the NF server based on the NF server information.

在一实施例中,所述处理器502在实现所述业务请求信息包括NF服务者的目标网元类型,所述根据所述业务请求信息进行服务发现时,用于实现:In one embodiment, when the service request information includes the target network element type of the NF server and the service discovery is performed based on the service request information, the processor 502 is configured to:

确定是否存在网元类型为目标网元类型的NF服务者;Determine whether there is an NF server whose network element type is the target network element type;

在存在网元类型为目标网元类型的NF服务者的情况下,确定服务发现成功;In the case where there is an NF server whose network element type is the target network element type, it is determined that the service discovery is successful;

在不存在网元类型为目标网元类型的NF服务者的情况下,确定服务发现失败。If there is no NF server whose network element type is the target network element type, it is determined that the service discovery fails.

需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的服务器的具体工作过程,可以参考前述业务路由方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the server described above can be referred to the corresponding process in the foregoing business routing method embodiment, and will not be described again here. .

本公开实施例还提供一种存储介质,用于计算机可读存储,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如本公开说明书提供的任一项业务路由的方法的步骤。Embodiments of the present disclosure also provide a storage medium for computer-readable storage. The storage medium stores one or more programs. The one or more programs can be executed by one or more processors to implement the following: The steps of any service routing method provided in this disclosure.

其中,所述存储介质可以是前述实施例所述的服务器的内部存储单元,例如所述服务器的硬盘或内存。所述存储介质也可以是所述服务器的外部存储设备,例如所述服务器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The storage medium may be an internal storage unit of the server described in the previous embodiment, such as a hard disk or memory of the server. The storage medium may also be an external storage device of the server, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SD) card, or a flash memory card equipped on the server. (Flash Card) etc.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。 Those of ordinary skill in the art can understand that all or some steps, systems, and functional modules/units in the devices disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. Components execute cooperatively. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage devices, or may Any other medium used to store the desired information and that can be accessed by a computer. Additionally, it is known to those of ordinary skill in the art that communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

应当理解,在本公开说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It will be understood that the term "and/or" as used in this disclosure and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, as used herein, the terms "include", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or system that includes a list of elements not only includes those elements, but It also includes other elements not expressly listed or that are inherent to the process, method, article or system. Without further limitation, an element qualified by the statement "comprises a..." does not exclude the presence of additional identical elements in the process, method, article, or system that includes that element.

上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。 The above serial numbers of the embodiments of the present disclosure are only for description and do not represent the advantages and disadvantages of the embodiments. The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person familiar with the technical field can easily think of various equivalent methods within the technical scope disclosed in the present disclosure. Modifications or substitutions, these modifications or substitutions should be covered by the protection scope of this disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (10)

一种业务路由方法,应用于服务通信代理SCP,所述方法包括:A service routing method, applied to service communication agent SCP, the method includes: 获取业务请求信息,并根据所述业务请求信息向网络存储功能NRF请求服务发现,所述SCP与所述NRF属于相同服务区域;Obtain the service request information, and request service discovery from the network storage function NRF according to the service request information, and the SCP and the NRF belong to the same service area; 在获取到所述NRF返回的服务发现失败指令的情况下,根据所述业务请求信息确定目标SCP,所述SCP与所述目标SCP属于不同服务区域;In the case of obtaining the service discovery failure instruction returned by the NRF, determine the target SCP according to the service request information, and the SCP and the target SCP belong to different service areas; 将所述业务请求信息发送至所述目标SCP,以使所述目标SCP向目标NRF请求服务发现,以供所述目标SCP根据所述目标NRF返回的服务发现成功指令向网络功能NF服务者发起业务请求。Send the service request information to the target SCP, so that the target SCP requests service discovery from the target NRF, so that the target SCP initiates a service discovery request to the network function NF server according to the service discovery success instruction returned by the target NRF. Business request. 根据权利要求1所述的业务路由方法,其中,所述根据所述业务请求信息向网络存储功能NRF请求服务发现之后,还包括:The service routing method according to claim 1, wherein after requesting service discovery from the network storage function NRF according to the service request information, it further includes: 在获取到NRF返回的服务发现成功指令的情况下,根据所述服务发现成功指令向NF服务者发起业务请求。When the service discovery success instruction returned by the NRF is obtained, a service request is initiated to the NF server according to the service discovery success instruction. 根据权利要求1所述的业务路由方法,其中,所述业务请求信息包括用户信息,所述用户信息包括用户标识码,所述根据所述业务请求信息确定目标SCP,包括:The service routing method according to claim 1, wherein the service request information includes user information, the user information includes a user identification code, and determining the target SCP according to the service request information includes: 获取预设的用户标识码与服务区域之间的映射关系表;Obtain the mapping relationship table between the preset user identification code and service area; 根据所述映射关系表查询所述用户标识码对应的服务区域,得到目标服务区域,并将所述目标服务区域匹配的SCP作为目标SCP。Query the service area corresponding to the user identification code according to the mapping relationship table to obtain the target service area, and use the SCP matching the target service area as the target SCP. 根据权利要求1所述的业务路由方法,其中,所述将所述业务请求信息发送至所述目标SCP之后,还包括:The service routing method according to claim 1, wherein after sending the service request information to the target SCP, it further includes: 获取所述目标SCP基于所述业务请求信息返回的业务响应信息。Obtain the service response information returned by the target SCP based on the service request information. 根据权利要求1-4中任一项所述的业务路由方法,其中,所述业务请求信息包括所述NF服务者的网元类型和发起业务请求网元的网元类型。The service routing method according to any one of claims 1 to 4, wherein the service request information includes the network element type of the NF server and the network element type of the network element that initiates the service request. 一种业务路由方法,应用于NRF,所述方法包括:A service routing method, applied to NRF, the method includes: 获取SCP基于业务请求信息发起的服务发现,根据所述业务请求信息进行服务发现,并向所述SCP返回服务发现响应,所述服务发现响应包括服务发现失败指令或服务发现成功指令;Obtain the service discovery initiated by the SCP based on the business request information, perform service discovery based on the business request information, and return a service discovery response to the SCP, where the service discovery response includes a service discovery failure instruction or a service discovery success instruction; 在所述服务发现响应为所述服务发现失败指令的情况下,以使所述SCP根据业务请求信息确定目标SCP,并将所述业务请求信息发送至所述目标SCP,以使所述目标SCP向目标NRF请求服务发现,以供所述目标SCP根据所述目标NRF返回的服务发现成功指令向NF服务者发起业务请求。When the service discovery response is the service discovery failure instruction, the SCP determines the target SCP according to the service request information, and sends the service request information to the target SCP, so that the target SCP Request service discovery from the target NRF, so that the target SCP initiates a service request to the NF server according to the service discovery success instruction returned by the target NRF. 根据权利要求6所述的业务路由方法,其中,所述服务发现成功指令包括NF服务者信息,所述向所述SCP返回服务发现响应之后,还包括:The service routing method according to claim 6, wherein the service discovery success instruction includes NF server information, and after returning the service discovery response to the SCP, it further includes: 在所述服务发现响应为所述服务发现成功指令的情况下,以使所述SCP基于所述NF服务者信息向所述NF服务者发起业务请求。When the service discovery response is the service discovery success instruction, the SCP initiates a service request to the NF server based on the NF server information. 根据权利要求6所述的业务路由方法,其中,所述业务请求信息包括NF服务者的目标网元类型,所述根据所述业务请求信息进行服务发现,包括:The service routing method according to claim 6, wherein the service request information includes the target network element type of the NF server, and the service discovery based on the service request information includes: 确定是否存在网元类型为目标网元类型的NF服务者; Determine whether there is an NF server whose network element type is the target network element type; 在存在网元类型为目标网元类型的NF服务者的情况下,确定服务发现成功;In the case where there is an NF server whose network element type is the target network element type, it is determined that the service discovery is successful; 在不存在网元类型为目标网元类型的NF服务者的情况下,确定服务发现失败。If there is no NF server whose network element type is the target network element type, it is determined that the service discovery fails. 一种服务器,所述服务器包括处理器、存储器、存储在所述存储器上并可被所述处理器执行的计算机程序以及用于实现所述处理器和所述存储器之间的连接通信的数据总线,其中所述计算机程序被所述处理器执行时,实现如权利要求1至8中任一项所述的业务路由方法的步骤。A server, the server includes a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for realizing connection communication between the processor and the memory , wherein when the computer program is executed by the processor, the steps of the service routing method according to any one of claims 1 to 8 are implemented. 一种存储介质,用于计算机可读存储,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1至8中任一项所述的业务路由方法的步骤。 A storage medium for computer-readable storage. The storage medium stores one or more programs. The one or more programs can be executed by one or more processors to implement any of claims 1 to 8. One step of the service routing method.
PCT/CN2023/100528 2022-07-11 2023-06-15 Traffic routing method, and server and storage medium WO2024012146A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210810525.6A CN117425187A (en) 2022-07-11 2022-07-11 Service routing method, server and storage medium
CN202210810525.6 2022-07-11

Publications (1)

Publication Number Publication Date
WO2024012146A1 true WO2024012146A1 (en) 2024-01-18

Family

ID=89521594

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/100528 WO2024012146A1 (en) 2022-07-11 2023-06-15 Traffic routing method, and server and storage medium

Country Status (2)

Country Link
CN (1) CN117425187A (en)
WO (1) WO2024012146A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113067844A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 Service discovery method, device and HNRF
EP3871397A1 (en) * 2018-10-25 2021-09-01 Telefonaktiebolaget Lm Ericsson (Publ) A method, and nodes, for discovering services in a telecommunication network provided by a network function, nf, in a service based architecture, sba, based telecommunication network
CN114051231A (en) * 2021-10-15 2022-02-15 中国联合网络通信集团有限公司 Service routing method, device and computer readable storage medium
CN114257440A (en) * 2021-12-17 2022-03-29 中国电信股份有限公司 Network function service discovery method, system and storage medium
CN114258088A (en) * 2020-09-22 2022-03-29 中国电信股份有限公司 Method, device and system for discovering intermediate session management function device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3871397A1 (en) * 2018-10-25 2021-09-01 Telefonaktiebolaget Lm Ericsson (Publ) A method, and nodes, for discovering services in a telecommunication network provided by a network function, nf, in a service based architecture, sba, based telecommunication network
CN113067844A (en) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 Service discovery method, device and HNRF
CN114258088A (en) * 2020-09-22 2022-03-29 中国电信股份有限公司 Method, device and system for discovering intermediate session management function device and storage medium
CN114051231A (en) * 2021-10-15 2022-02-15 中国联合网络通信集团有限公司 Service routing method, device and computer readable storage medium
CN114257440A (en) * 2021-12-17 2022-03-29 中国电信股份有限公司 Network function service discovery method, system and storage medium

Also Published As

Publication number Publication date
CN117425187A (en) 2024-01-19

Similar Documents

Publication Publication Date Title
AU2021277736B2 (en) Pdu type setting method, ue policy setting method, and related entity
US11258667B2 (en) Network management method and related device
CN110913473B (en) Selection method, apparatus, management function entity, access network node, GMLC and NRF
US11218956B2 (en) Network management method and system
WO2020253266A1 (en) Method for providing edge service, apparatus and device
CN109842906A (en) A kind of method, apparatus and system of communication
EP3462691A1 (en) Method, device, and system for determining network slice
WO2019029327A1 (en) Discovery method and device for network function service
CN110602724A (en) Network configuration method and communication device
CN112533177B (en) A method, device, apparatus, and medium for providing and discovering mobile edge computing
CN110661638A (en) Communication method and device
WO2018024121A1 (en) Network function (nf) management method and nf management device
KR102757598B1 (en) Network slice access method, electronic device and storage medium
EP4451734A1 (en) Service discovery processing method, device, and storage medium
CN106028311A (en) A terminal registration method and device
CN114221959B (en) Service sharing method, device and system
CN115134800B (en) 5G private network access method, private network gateway, 5GC system and storage medium
WO2018112745A1 (en) Method, entity and system for obtaining network slice instance information
CN114363918B (en) Network slicing contract method, user equipment, core network equipment and system
WO2024012146A1 (en) Traffic routing method, and server and storage medium
US20220329566A1 (en) Access Control Method, Apparatus, and System
CN114071696A (en) Network slice registration method and device, mobile terminal and storage medium
WO2024187878A1 (en) Session establishment method, communication device and storage medium
CN117440332A (en) Information sending method, internet of things short message center, terminal equipment and storage medium
CN119300119A (en) Method for accessing network slice, network device and storage medium

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE