CN111182542B - Method, system, base station and readable storage medium for establishing proximity service - Google Patents

Method, system, base station and readable storage medium for establishing proximity service Download PDF

Info

Publication number
CN111182542B
CN111182542B CN201811328135.5A CN201811328135A CN111182542B CN 111182542 B CN111182542 B CN 111182542B CN 201811328135 A CN201811328135 A CN 201811328135A CN 111182542 B CN111182542 B CN 111182542B
Authority
CN
China
Prior art keywords
terminal
identifier
service
base station
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811328135.5A
Other languages
Chinese (zh)
Other versions
CN111182542A (en
Inventor
常洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201811328135.5A priority Critical patent/CN111182542B/en
Publication of CN111182542A publication Critical patent/CN111182542A/en
Application granted granted Critical
Publication of CN111182542B publication Critical patent/CN111182542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a method, a system, a base station and a readable storage medium for establishing an approaching service, and relates to the technical field of communication. The method of the present disclosure comprises: a base station receives an adjacent service matching request sent by a first terminal, wherein the adjacent service matching request carries an identifier of the first terminal, an identifier of a second terminal and a service code; the base station authenticates the second terminal according to the identifier of the first terminal, the identifier of the second terminal and the service code, and determines an application identifier and a validity period corresponding to the service code; and under the condition that the authentication is passed, the base station sends an adjacent service matching response to the first terminal, wherein the adjacent service matching response comprises an authentication result, an application identifier and a validity period of the second terminal, so that the first terminal establishes the adjacent service with the second terminal according to the adjacent service matching response.

Description

Method, system, base station and readable storage medium for establishing proximity service
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, a system, a base station, and a readable storage medium for establishing an approaching service.
Background
In the Release 12 stage of the 3GPP standard, some european and american devices and operators consider that public safety functions that can directly communicate between devices are required in the mobile communication network based on the requirements of national regulations. The public safety function is mainly used in a scene that wireless access is interrupted due to disaster and communication between devices is needed to complete rescue work. The direct applicable scene between the devices does not need to carry out data bearing routing through an upper network, thereby reducing the load of the network, improving the transmission efficiency of the data and better providing support for the application of the user by a network operator.
3GPP provides 3 scenarios of establishing direct communication between ProSe (Proximity based Services) devices. Among them, the application of scenario 1 is the most common in the existing network environment. Scene 1 is that ProSe direct communication is established for UE under the same base station, the UE establishing ProSe is all in the coverage of the base station, and the authentication process of the UE needs to be completed through a core network every time communication is established.
Disclosure of Invention
The inventor finds that: in the process of repeatedly establishing the ProSe communication by the terminal under the coverage of the same base station in the scene 1, the authentication needs to be carried out on the core network every time, so that the core network resources are occupied and wasted, and the efficiency of establishing the ProSe communication is reduced.
One technical problem to be solved by the present disclosure is: aiming at the process of establishing the ProSe communication by the terminal in the scene 1, the waste of core network resources is reduced, and the efficiency of establishing the ProSe communication is improved.
According to some embodiments of the present disclosure, a method for establishing an approaching service is provided, including: a base station receives an adjacent service matching request sent by a first terminal, wherein the adjacent service matching request carries an identifier of the first terminal, an identifier of a second terminal and a service code; the base station authenticates the second terminal according to the identifier of the first terminal, the identifier of the second terminal and the service code, and determines an application identifier and a validity period corresponding to the service code; and under the condition that the authentication is passed, the base station sends an adjacent service matching response to the first terminal, wherein the adjacent service matching response comprises an authentication result, an application identifier and a validity period of the second terminal, so that the first terminal establishes the adjacent service with the second terminal according to the adjacent service matching response.
In some embodiments, the base station authenticating the second terminal comprises: the base station determines whether the corresponding relation between the first terminal and the second terminal is stored or not according to the identifier of the first terminal and the identifier of the second terminal; the base station searches the stored service code of the second terminal according to the identifier of the second terminal and compares the stored service code with the service code in the adjacent service matching request to determine whether the stored service code is consistent with the service code in the adjacent service matching request; and determining that the second terminal passes the authentication under the condition that the first terminal and the second terminal have a corresponding relationship and the service codes are matched and consistent.
In some embodiments, the authenticating the second terminal by the base station, and determining the application identifier and the validity period corresponding to the service code includes: and under the condition that the second terminal fails in authentication, the base station forwards the adjacent service matching request to the core network so that the core network can perform authentication according to the adjacent service matching request and return an adjacent service matching response.
In some embodiments, the method further comprises: the base station receives an approaching service discovery response returned by the approaching service function body, wherein the approaching service discovery response is a response aiming at an approaching service discovery request sent by the first terminal and comprises an identifier, a service code, an application identifier and a validity period of the second terminal; the base station stores the identifier, the service code, the application identifier and the validity period of the second terminal.
In some embodiments, the method further comprises: the base station receives an adjacent service matching response returned by the adjacent service function body, wherein the adjacent service matching response is a response to the adjacent service matching request sent by the first terminal, and the response comprises the following steps: an identifier of the first terminal and an identifier of the second terminal; the base station stores the corresponding relation between the identifier of the first terminal and the identifier, the service code, the application identifier and the validity period of the second terminal.
In some embodiments, the method further comprises: the base station deletes the stored corresponding relation among the identifier of the second terminal, the service code, the application identifier and the validity period after the validity period corresponding to the service code expires; or the base station receives the information deletion request sent by the second terminal, and deletes the stored corresponding relation among the identifier of the second terminal, the service code, the application identifier and the validity period.
According to still further embodiments of the present disclosure, there is provided a base station including: the matching request receiving module is used for receiving an adjacent service matching request sent by the first terminal, wherein the adjacent service matching request carries the identifier of the first terminal, the identifier of the second terminal and a service code; the authentication module is used for authenticating the second terminal according to the identifier of the first terminal, the identifier of the second terminal and the service code, and determining an application identifier and a validity period corresponding to the service code; and the matching response sending module is used for sending an approaching service matching response to the first terminal by the base station under the condition that the authentication is passed, wherein the approaching service matching response comprises an authentication result, an application identifier and a validity period of the second terminal, so that the first terminal establishes an approaching service with the second terminal according to the approaching service matching response.
In some embodiments, the authentication module is configured to determine whether a correspondence relationship between the first terminal and the second terminal is stored according to the identifier of the first terminal and the identifier of the second terminal; searching the stored service code of the second terminal according to the identifier of the second terminal, and comparing whether the stored service code is consistent with the service code in the adjacent service matching request; and determining that the second terminal passes the authentication under the condition that the first terminal and the second terminal have the corresponding relation and the service codes are matched and consistent.
In some embodiments, the base station further comprises: and the matching request forwarding module is used for forwarding the near service matching request to the core network under the condition that the second terminal fails to authenticate so that the core network can authenticate according to the near service matching request and return a near service matching response.
In some embodiments, the base station further comprises: the discovery response receiving module is used for receiving the proximity service discovery response returned by the proximity service function body, wherein the proximity service discovery response is a response to the proximity service discovery request sent by the first terminal and comprises the identifier, the service code, the application identifier and the validity period of the second terminal; and the storage module is used for storing the identifier, the service code, the application identifier and the validity period of the second terminal.
In some embodiments, the base station further comprises: a matching response receiving module, configured to receive an adjacent service matching response returned by the adjacent service function, where the adjacent service matching response is a response to the adjacent service matching request sent by the first terminal, and the receiving module includes: an identifier of the first terminal and an identifier of the second terminal; the storage module is used for storing the corresponding relation between the identifier of the first terminal and the identifier, the service code, the application identifier and the validity period of the second terminal.
In some embodiments, the base station further comprises: the deleting module is used for deleting the stored corresponding relation among the identifier of the second terminal, the service code, the application identifier and the validity period after the validity period corresponding to the service code expires; or, in the case of receiving an information deletion request sent by the second terminal, deleting the stored correspondence relationship between the identifier of the second terminal, the service code, the application identifier, and the validity period.
According to still other embodiments of the present disclosure, there is provided a base station including: a memory; and a processor coupled to the memory, the processor configured to perform the method of setting up an imminent service according to any of the preceding embodiments, based on instructions stored in the memory.
According to still further embodiments of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method for setting up an approaching service of any of the foregoing embodiments.
According to still other embodiments of the present disclosure, there is provided an approaching service establishing system, including: the base station of any of the preceding embodiments; and a first terminal and a second terminal; the first terminal is used for sending an adjacent service matching request to the base station, receiving an adjacent service matching response sent by the base station, and establishing an adjacent service with the second terminal according to the adjacent service matching response.
In the disclosure, a first terminal wants to establish a proximity service with a second terminal, sends a proximity service matching request to a base station, the base station authenticates the second terminal, and under the condition that the authentication is passed, the base station sends a proximity service matching response to the first terminal, carries an authentication result, an application identifier and a validity period of the second terminal, so that the first terminal establishes the proximity service with the second terminal according to the proximity service matching response. In the disclosure, under the condition that the first terminal and the second terminal establish the proximity service again, the base station executes the authentication process of the second terminal without going to the core network for authentication, so that the occupation and waste of core network resources are reduced, and the efficiency of establishing the proximity service is improved.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 illustrates a flow diagram of an imminent traffic establishment method of some embodiments of the present disclosure.
Fig. 2 is a flow chart illustrating an approach to service establishment method according to further embodiments of the present disclosure.
Fig. 3 shows a schematic structural diagram of a base station of some embodiments of the present disclosure.
Fig. 4 shows a schematic structural diagram of a base station of further embodiments of the present disclosure.
Fig. 5 shows a schematic structural diagram of a base station of further embodiments of the present disclosure.
Fig. 6 shows a schematic structural diagram of a base station of further embodiments of the present disclosure.
Fig. 7 shows a schematic structural diagram of an imminent traffic establishment system according to some embodiments of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The present disclosure provides a method for proximity services (ProSe) establishment, which is described below in conjunction with fig. 1.
Fig. 1 is a flow chart of some embodiments of a method for establishing a proximity service according to the present disclosure. As shown in fig. 1, the method of this embodiment includes: steps S102 to S106.
In step S102, the base station receives an adjacent service matching request sent by the first terminal, where the adjacent service matching request carries an identifier of the first terminal, an identifier of the second terminal, and a service code.
The near service matching Request (Match Request) is transmitted after the first terminal receives broadcast information of the second terminal, and the broadcast information includes: a second terminal identification, a service Code (Code), and an expiration date. The identifier of the terminal is, for example, IMSI (International Mobile Subscriber identity), MSISDN (Mobile station International ISDN Number), or the like. The Code and the corresponding validity period are allocated to the second terminal by the ProSe Function (proximity service Function) in a matching manner, and are used for establishing ProSe connection between the terminals. In the case of coverage, if the terminal needs to use the frequency band resource of the operator, authorization needs to be obtained from the operator and the operator can control and charge, at this time, the terminal needs to obtain a temporary identifier Code uniquely corresponding to the application identifier from the short-distance ProSe Function and then broadcast the Code.
In step S104, the base station authenticates the second terminal according to the identifier of the first terminal, the identifier of the second terminal, and the service code, and determines an application identifier and a validity period corresponding to the service code.
In some embodiments, the base station stores a correspondence of the identity of the first terminal, the identity of the second terminal, the service code, the application identity and the validity period. The correspondence may be stored by the base station during initial establishment of the ProSe connection by the first terminal and the second terminal. Since the signaling interaction in the process of establishing ProSe connection needs to pass through the base station, these correspondences can be stored by the base station.
In some embodiments, the base station determines whether a correspondence relationship between the first terminal and the second terminal is stored according to the identifier of the first terminal and the identifier of the second terminal; the base station searches the stored service code of the second terminal according to the identifier of the second terminal and compares whether the stored service code is consistent with the service code in the adjacent service matching request or not; and determining that the second terminal passes the authentication under the condition that the first terminal and the second terminal have a corresponding relationship and the service codes are matched and consistent.
And if the first terminal and the second terminal do not establish the ProSe connection before, the base station does not store the corresponding relation, and the base station fails to authenticate the second terminal. Therefore, the first terminal and the second terminal can be ensured to pass through the authentication process of the core network before, the resource occupation of the core network is reduced, the efficiency is improved, and meanwhile, the safety of the ProSe connection can be ensured. If the service code is expired or the service code is incorrect, the base station fails to authenticate the second terminal. Through the double authentication of the identification of the terminal and the service code, the safety of the ProSe connection is further improved.
It should be noted that, the authentication process of the base station to the terminal is simpler than that of the core network, and the calculation amount and the signaling interaction process are saved. The authentication process of the core network is the prior art, and is not described herein again.
In step S106, in the case that the authentication is passed, the base station sends an adjacent service matching response to the first terminal, where the adjacent service matching response includes the authentication result, the application identifier, and the validity period of the second terminal, so that the first terminal establishes an adjacent service with the second terminal according to the adjacent service matching response.
The proximity service matching Response (Match Response) includes the second terminal authentication result, the application identifier and the validity period, and the first terminal can know whether the second terminal passes the authentication. Further, since the broadcast information of the second terminal received by the first terminal before includes the validity period corresponding to the service code, the first terminal may detect whether the validity period broadcast by the second terminal is consistent with the validity period in the response of matching the service to the second terminal, thereby performing re-verification on the second terminal. The first terminal may store the identity, service code, application identity and validity period of the second terminal for ProSe connection with the second terminal.
In some embodiments, when the second terminal fails to authenticate or the base station does not find the application identifier and the validity period corresponding to the service code, the base station forwards the proximity service matching request to the core network, so that the core network performs authentication according to the proximity service matching request and returns a proximity service matching response. And under the condition that the authentication of the second terminal fails or the base station does not find the application identifier and the validity period corresponding to the service code, the base station forwards the service matching request to the core network equipment according to the original signaling flow, and the core network equipment processes and responds.
In the method of the embodiment, the first terminal intends to establish the proximity service with the second terminal, sends the proximity service matching request to the base station, and the base station authenticates the second terminal. In the method of the embodiment, the base station executes the authentication process of the second terminal under the condition that the first terminal and the second terminal establish the proximity service again, and does not need to go to the core network for authentication, so that the occupation and waste of core network resources are reduced, and the efficiency of establishing the proximity service is improved.
Further embodiments of the method for establishing a proximity service of the present disclosure are described below with reference to fig. 2.
Fig. 2 is a flow chart of some embodiments of the method for establishing an imminent service according to the present disclosure. As shown in fig. 2, the method of this embodiment includes: steps S202 to S234.
In step S202, the second terminal transmits an imminent service discovery request to the ProSe Function.
This step may be preceded by configuring the second terminal with an application identity. The operator allocates a unique application identifier to the application on the terminal, where the identifier includes a PLMN (Public Land Mobile Network, Public Land Mobile Network information) and application identification information, the PLMN includes a country code and a Network number, and the application identification information uniquely identifies an application, and may also uniquely identify a type of application, such as a hotel, a restaurant, and the like.
The proximity service Discovery Request (Discovery Request) carries information such as an identifier of the second terminal, an application identifier, and the like. The proximity service discovery request is sent to the ProSe Function through network elements such as a base station and an MME (Mobility Management Entity).
In step S204, the ProSe Function interacts with the ProSe APP Server (proximity service application Server) to perform discovery authentication on the second terminal.
The discovery authentication of this step includes: and the ProSe Function(s) requests a user list of the adjacent service from the ProSe APP Server according to the application identifier, confirms whether the second terminal is positioned in the user list and the like.
In step S206, the ProSe Function interacts with an HSS (Home Subscriber Server) to perform discovery authentication on the second terminal.
The discovery authentication of this step includes: and the core network confirms whether the adjacent terminal opens the adjacent service discovery.
In step S208, if the discovery authentication of the second terminal passes, the ProSe Function allocates a service code and a corresponding validity period to the second terminal.
And if the Discovery authentication of the second terminal fails, sending information carrying authentication failure carried by an adjacent service Discovery Response (Discovery Response) to the terminal, and rejecting the request of the second terminal.
In step S210, the ProSe Function sends an adjacent service discovery response to the base station, where the adjacent service discovery response carries the identifier of the second terminal, the application identifier, the assigned service code, and the corresponding validity period.
In step S212, the base station stores the identifier of the second terminal, the application identifier, the assigned service code, and the corresponding validity period.
The base station may record and store the ProSe-related information of the second terminal in this step, or may record and store it in a subsequent step.
In step S214, the base station transmits the proximity service discovery response to the second terminal and allocates a broadcast channel to the second terminal.
The broadcasting of the ProSe is managed and controlled by the base station, so that the personal privacy of the user can be better protected.
In step S216, the second terminal transmits broadcast information using the allocated broadcast information, and accordingly, the first terminal receives the broadcast information of the second terminal.
The broadcast information includes: the identity of the second terminal, the service code and the corresponding validity period. The first terminal acquires the service code and the corresponding validity period of the second terminal through the broadcast information.
The above steps S202 to S216 are procedures for performing ProSe service authorization for the second terminal. Terminals supporting ProSe functionality can discover and communicate with each other only after obtaining authorization from the network side. The ProSe Function is a network element introduced to support ProSe, and mainly completes authorization for terminal discovery and discovery, and a matching process to be described later. In some solutions, the network element is also responsible for the terminals' discovery from each other. The HSS includes all functions of a Home Location Register (HLR), is a permanent storage location for subscriber subscription data, and is located in a subscriber subscription home network. After introducing ProSe, the network element needs to store the subscription data related to ProSe. The ProSe APP Server is used for mapping the application identification of the user and the user identification of the user in the 3GPP network.
In addition to the above Network elements, EUTRAN (enhanced Universal Terrestrial Radio Access Network) provides a bottom Access for ProSe terminals, as well as necessary discovery and communication resources. An enhanced data Core Network (EPC for short) includes an MME and an SGW/PGW (serving gateway/Packet data gateway). The network elements provide bottom layer access for the terminal to access the ProSe Function.
In step S218, the first terminal sends an adjacent service matching request to the base station, where the adjacent service matching request carries the identifier of the first terminal, the identifier of the second terminal, and the service code.
In step S220, the base station authenticates the second terminal according to the identifier of the first terminal, the identifier of the second terminal, and the service code, and determines an application identifier and a validity period corresponding to the service code.
In step S222, in case the authentication is passed, the base station transmits an imminent traffic matching response to the first terminal. The approaching service matching response includes the authentication result, the application identifier and the validity period of the second terminal.
If the first terminal and the second terminal do not establish the ProSe for the first time and the service code of the second terminal is not expired, the base station stores the identifier of the first terminal, the identifier of the second terminal, the application identifier, the service code and the validity period, and the second terminal can pass the authentication.
In step S224, in case the second terminal fails authentication, the base station forwards the proximity service matching request to the ProSe Function.
If the first terminal initiates an adjacent service matching response for the first time aiming at the second terminal, or the second terminal has an error service code, the authentication of the second terminal fails, and the base station cannot find the application identifier and the validity period corresponding to the service code.
In step S226, the ProSe Function interacts with the core network device to perform an authentication process, and obtains an application identifier and a validity period of the second terminal.
In step S228, the ProSe Function transmits an imminent traffic matching response to the base station. The approaching service matching response includes the authentication result, the application identifier and the validity period of the second terminal.
In step S230, if the authentication is passed, the base station stores the corresponding relationship between the identifier of the first terminal, the identifier of the second terminal, the application identifier, the assigned service code, and the validity period.
Step S212 is an optional step, that is, if the base station does not execute step S212, the base station may also store the ProSe related information and the corresponding relationship of the first terminal and the second terminal in step S230. The first terminal may be multiple, that is, the base station may maintain the correspondence between multiple terminals and the second terminal.
In some embodiments, after the validity period corresponding to the service code expires, the base station deletes the stored corresponding relationship between the identifier of the second terminal, the service code, the application identifier, and the validity period. Or the base station receives the information deletion request sent by the second terminal, and deletes the stored corresponding relation among the identifier of the second terminal, the service code, the application identifier and the validity period.
In step S232, the base station transmits an imminent traffic matching response to the first terminal.
After receiving the close service matching response, the first terminal may verify the authenticity of the second terminal according to the validity period in the close service matching response and the stored validity period of the second terminal. The communication security is improved through the bidirectional authentication of the base station and the first terminal.
In step S234, the first terminal establishes a ProSe connection with the second terminal according to the proximity service matching response.
The method of the embodiment is suitable for the scene that the terminals in the same base station complete quick networking in the scenes of a factory, a school and the like, does not need to pass through a core network for each authentication, occupies the resources of the core network, and can ensure the safety between the terminals by establishing the authenticated networking through the cellular network.
The present disclosure provides a base station, described below in conjunction with fig. 3.
Fig. 3 is a block diagram of some embodiments of a base station of the present disclosure. As shown in fig. 3, the base station 30 of this embodiment includes: a matching request receiving module 302, an authentication module 304, and a matching response sending module 306.
A matching request receiving module 302, configured to receive an adjacent service matching request sent by a first terminal, where the adjacent service matching request carries an identifier of the first terminal, an identifier of a second terminal, and a service code.
And the authentication module 304 is configured to authenticate the second terminal according to the identifier of the first terminal, the identifier of the second terminal, and the service code, and determine an application identifier and a validity period corresponding to the service code.
In some embodiments, the authentication module 304 is configured to determine whether a correspondence relationship between the first terminal and the second terminal is stored according to the identifier of the first terminal and the identifier of the second terminal; searching the stored service code of the second terminal according to the identifier of the second terminal, and comparing whether the stored service code is consistent with the service code in the adjacent service matching request or not; and determining that the second terminal passes the authentication under the condition that the first terminal and the second terminal have a corresponding relationship and the service codes are matched and consistent.
A matching response sending module 306, configured to send, to the first terminal, an approaching service matching response including the authentication result, the application identifier, and the validity period of the second terminal when the authentication passes, so that the first terminal establishes an approaching service with the second terminal according to the approaching service matching response.
Further embodiments of the base station of the present disclosure are described below in conjunction with fig. 4.
Fig. 4 is a block diagram of further embodiments of a base station of the present disclosure. As shown in fig. 4, the base station 40 of this embodiment includes: the matching request receiving module 402, the authentication module 404 and the matching response sending module 406 have the same or similar functions as the matching request receiving module 302, the authentication module 304 and the matching response sending module 306 respectively; and a match request forwarding module 408.
The matching request forwarding module 408 is configured to forward the proximity service matching request to the core network when the authentication of the second terminal fails, so that the core network performs authentication according to the proximity service matching request, and returns a proximity service matching response.
In some embodiments, the base station 40 further comprises: a discovery response receiving module 410, a storing module 412. The discovery response receiving module 410 is configured to receive an adjacent service discovery response returned by the adjacent service function, where the adjacent service discovery response is a response to the adjacent service discovery request sent by the first terminal, and includes an identifier of the second terminal, a service code, an application identifier, and a validity period. The storage module 412 is used to store the identifier of the second terminal, the service code, the application identifier and the validity period.
In some embodiments, the base station 40 further comprises: a matching response receiving module 414, configured to receive an adjacent service matching response returned by the adjacent service function, where the adjacent service matching response is a response to the adjacent service matching request sent by the first terminal, and includes: an identity of the first terminal and an identity of the second terminal. The storage module 412 is configured to store a corresponding relationship between the identifier of the first terminal and the identifier, the service code, the application identifier, and the validity period of the second terminal.
In some embodiments, the base station 40 further comprises: a deleting module 416, configured to delete the stored correspondence relationship between the identifier of the second terminal, the service code, the application identifier, and the validity period after the validity period corresponding to the service code expires; or, in the case of receiving the information deletion request sent by the second terminal, deleting the stored correspondence relationship among the identifier of the second terminal, the service code, the application identifier, and the validity period.
The base stations in embodiments of the present disclosure may each be implemented by various computing devices or computer systems, described below in conjunction with fig. 5 and 6.
Fig. 5 is a block diagram of some embodiments of a base station of the present disclosure. As shown in fig. 5, the base station 50 of this embodiment includes: a memory 510 and a processor 520 coupled to the memory 510, the processor 520 being configured to perform the method of establishing an imminent service in any of the embodiments of the disclosure, based on instructions stored in the memory 510.
Memory 510 may include, for example, system memory, fixed non-volatile storage media, and the like. The system memory stores, for example, an operating system, an application program, a Boot Loader (Boot Loader), a database, and other programs.
Fig. 6 is a block diagram of further embodiments of a base station of the present disclosure. As shown in fig. 6, the base station 60 of this embodiment includes: memory 610 and processor 620 are similar to memory 510 and processor 520, respectively. An input output interface 630, a network interface 640, a storage interface 650, and the like may also be included. These interfaces 630, 640, 650 and the connections between the memory 610 and the processor 620 may be, for example, via a bus 660. The input/output interface 630 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 640 provides a connection interface for various networking devices, such as a connection to a database server or a cloud storage server. The storage interface 650 provides a connection interface for external storage devices such as an SD card and a usb disk.
The present disclosure also provides a system for establishing an approaching service, which is described below with reference to fig. 7.
Fig. 7 is a block diagram of some embodiments of the disclosed proximity service setup system. As shown in fig. 7, the system 7 of this embodiment includes: the base station 30/40/50/60 of any of the preceding embodiments, and the first terminal 72 and the second terminal 74.
The first terminal 72 is configured to send an adjacent service matching request to the base station 30/40/50/60, receive an adjacent service matching response sent by the base station 30/40/50/60, and establish an adjacent service with the second terminal 74 according to the adjacent service matching response.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (13)

1. A method for establishing an approaching service comprises the following steps:
a base station receives an adjacent service matching request sent by a first terminal, wherein the adjacent service matching request carries an identifier of the first terminal, an identifier of a second terminal and a service code;
the base station authenticates the second terminal according to the identifier of the first terminal, the identifier of the second terminal and the service code, and determines an application identifier and an effective period corresponding to the service code;
under the condition that the authentication is passed, the base station sends an adjacent service matching response to the first terminal, wherein the adjacent service matching response comprises an authentication result, an application identifier and a validity period of the second terminal, so that the first terminal establishes an adjacent service with the second terminal according to the adjacent service matching response;
the base station authenticating the second terminal includes:
the base station determines whether the corresponding relation between the first terminal and the second terminal is stored or not according to the identifier of the first terminal and the identifier of the second terminal;
the base station searches the stored service code of the second terminal according to the identifier of the second terminal and compares whether the stored service code is consistent with the service code in the adjacent service matching request or not;
and determining that the second terminal passes the authentication under the condition that the first terminal and the second terminal have a corresponding relationship and the service codes are matched and consistent.
2. The method of claim 1, wherein,
the base station authenticates the second terminal, and the determining of the application identifier and the validity period corresponding to the service code comprises:
and under the condition that the authentication of the second terminal fails, the base station forwards the adjacent service matching request to a core network so that the core network can carry out authentication according to the adjacent service matching request and return an adjacent service matching response.
3. The method of claim 1, further comprising:
the base station receives an adjacent service discovery response returned by an adjacent service function body, wherein the adjacent service discovery response is a response to the adjacent service discovery request sent by the first terminal and comprises the identifier, the service code, the application identifier and the validity period of the second terminal;
and the base station stores the identifier, the service code, the application identifier and the validity period of the second terminal.
4. The method of claim 3, further comprising:
the base station receives an adjacent service matching response returned by an adjacent service function, wherein the adjacent service matching response is a response to the adjacent service matching request sent by the first terminal, and the response comprises the following steps: an identifier of the first terminal and an identifier of the second terminal;
and the base station stores the corresponding relation between the identifier of the first terminal and the identifier, the service code, the application identifier and the validity period of the second terminal.
5. The method of any of claims 1-4, further comprising:
the base station deletes the stored corresponding relation among the identifier of the second terminal, the service code, the application identifier and the validity period after the validity period corresponding to the service code expires;
or, the base station receives the information deletion request sent by the second terminal, and deletes the stored corresponding relationship among the identifier, the service code, the application identifier and the validity period of the second terminal.
6. A base station, comprising:
a matching request receiving module, configured to receive an adjacent service matching request sent by a first terminal, where the adjacent service matching request carries an identifier of the first terminal, an identifier of a second terminal, and a service code;
the authentication module is used for authenticating the second terminal according to the identifier of the first terminal, the identifier of the second terminal and the service code, and determining an application identifier and a validity period corresponding to the service code;
a matching response sending module, configured to send, by the base station, an approaching service matching response to the first terminal when the authentication is passed, where the approaching service matching response includes an authentication result, an application identifier, and a validity period of the second terminal, so that the first terminal establishes an approaching service with the second terminal according to the approaching service matching response;
the authentication module is used for determining whether the corresponding relationship between the first terminal and the second terminal is stored or not according to the identifier of the first terminal and the identifier of the second terminal; searching the stored service code of the second terminal according to the identifier of the second terminal, and comparing whether the stored service code is consistent with the service code in the adjacent service matching request; and determining that the second terminal passes the authentication under the condition that the first terminal and the second terminal have a corresponding relationship and the service codes are matched and consistent.
7. The base station of claim 6, further comprising:
and the matching request forwarding module is used for forwarding the adjacent service matching request to the core network under the condition that the second terminal fails to authenticate so that the core network can authenticate according to the adjacent service matching request and return an adjacent service matching response.
8. The base station of claim 6, further comprising:
a discovery response receiving module, configured to receive an adjacent service discovery response returned by an adjacent service function, where the adjacent service discovery response is a response to an adjacent service discovery request sent by the first terminal, and includes an identifier of the second terminal, a service code, an application identifier, and a validity period;
and the storage module is used for storing the identifier, the service code, the application identifier and the validity period of the second terminal.
9. The base station of claim 8, further comprising:
a matching response receiving module, configured to receive an adjacent service matching response returned by an adjacent service function, where the adjacent service matching response is a response to the adjacent service matching request sent by the first terminal, and the receiving module includes: an identifier of the first terminal and an identifier of the second terminal;
the storage module is used for storing the corresponding relation between the identifier of the first terminal and the identifier, the service code, the application identifier and the validity period of the second terminal.
10. The base station according to any of claims 6-9, further comprising:
the deleting module is used for deleting the stored corresponding relation among the identifier of the second terminal, the service code, the application identifier and the validity period after the validity period corresponding to the service code expires; or, in the case of receiving the information deletion request sent by the second terminal, deleting the stored correspondence relationship among the identifier, the service code, the application identifier, and the validity period of the second terminal.
11. A base station, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the imminent traffic establishment method of any one of claims 1-5, based on instructions stored in the memory.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
13. An imminent service establishment system, comprising:
the base station of any one of claims 6-10; and a first terminal and a second terminal;
the first terminal is configured to send the proximity service matching request to the base station, receive a proximity service matching response sent by the base station, and establish a proximity service with the second terminal according to the proximity service matching response.
CN201811328135.5A 2018-11-09 2018-11-09 Method, system, base station and readable storage medium for establishing proximity service Active CN111182542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811328135.5A CN111182542B (en) 2018-11-09 2018-11-09 Method, system, base station and readable storage medium for establishing proximity service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811328135.5A CN111182542B (en) 2018-11-09 2018-11-09 Method, system, base station and readable storage medium for establishing proximity service

Publications (2)

Publication Number Publication Date
CN111182542A CN111182542A (en) 2020-05-19
CN111182542B true CN111182542B (en) 2022-09-30

Family

ID=70649847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811328135.5A Active CN111182542B (en) 2018-11-09 2018-11-09 Method, system, base station and readable storage medium for establishing proximity service

Country Status (1)

Country Link
CN (1) CN111182542B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11929776B2 (en) * 2021-01-22 2024-03-12 Qualcomm Incorporated Method and system for switching between half duplex and full duplex in multi-TRP systems
CN114339753A (en) * 2021-12-31 2022-04-12 中国电信股份有限公司 Communication data processing method, system, electronic device and readable storage medium
CN117081765A (en) * 2022-05-10 2023-11-17 中国移动通信有限公司研究院 Access method of first platform, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209412A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, device and system for establishing device-to-device connection
CN104285422A (en) * 2012-04-30 2015-01-14 阿尔卡特朗讯公司 Secure communications for computing devices utilizing proximity services
CN104918247A (en) * 2014-03-13 2015-09-16 中兴通讯股份有限公司 Service discovery and authentication method, equipment, terminal and system
CN105472740A (en) * 2014-08-21 2016-04-06 中兴通讯股份有限公司 Device-to-device (D2D) information notification method, user terminal and base station
CN105611533A (en) * 2014-11-06 2016-05-25 中兴通讯股份有限公司 Message integrity check MIC inspection method and MIC inspection device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209412A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method, device and system for establishing device-to-device connection
CN104285422A (en) * 2012-04-30 2015-01-14 阿尔卡特朗讯公司 Secure communications for computing devices utilizing proximity services
CN104918247A (en) * 2014-03-13 2015-09-16 中兴通讯股份有限公司 Service discovery and authentication method, equipment, terminal and system
CN105472740A (en) * 2014-08-21 2016-04-06 中兴通讯股份有限公司 Device-to-device (D2D) information notification method, user terminal and base station
CN105611533A (en) * 2014-11-06 2016-05-25 中兴通讯股份有限公司 Message integrity check MIC inspection method and MIC inspection device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"S3-151530_TR33.833v1_4_0_cl".《3GPP tsg_sa\WG3_Security》.2015, *

Also Published As

Publication number Publication date
CN111182542A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN109922472B (en) Acquisition of user policy
EP3413604B1 (en) Virtual subscriber identity module authentication method and apparatus
TWI748952B (en) Supporting multiple concurrent service contexts with a single connectivity context
US20160007185A1 (en) Terminal Registration Method, Terminal Discovery Methods, Terminals and Devices
WO2016155298A1 (en) Relay ue access control method and apparatus
US20110269426A1 (en) Methods and Arrangements for Communication Channel Re-Establishment
CN104244227A (en) Terminal access authentication method and device in internet of things system
CN111182542B (en) Method, system, base station and readable storage medium for establishing proximity service
KR102444040B1 (en) Method and device for data transmission in vehicle internet system
KR20120026178A (en) Communication supporting method and apparatus using non-access stratum protocol in mobile telecommunication system
CN112822756B (en) Communication method, system, base station and terminal
CN105308994A (en) Changing of subscriber identity at a mobile terminal using a cancel location message
CN107809776B (en) Information processing method, device and network system
CN108024204B (en) Local network connection method, device and system
CN111757424B (en) Sharing method and device of wireless access network
CN111065139B (en) Method and device for starting up and attaching Internet of things device
CN113498060B (en) Method, device, equipment and storage medium for controlling network slice authentication
US10887754B2 (en) Method of registering a mobile terminal in a mobile communication network
US10863555B2 (en) Access method, apparatus, device, and system
EP3035770B1 (en) Call service implementation method and device
US11653395B2 (en) Method for establishing a connection of a mobile terminal to a mobile radio communication network and radio access network component
CN105472530B (en) Near field communication discovery method, device and system
EP2482597A1 (en) Home base station access method, home base station system and home base station access point
CN110087338B (en) Method and equipment for authenticating narrowband Internet of things
US20170070867A1 (en) Method and system for triggering terminal group

Legal Events

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