A communication method and device

Through message transmission between the session management function network element and the authentication, authorization and accounting server, the accounting session of the terminal device between different networks is updated, which solves the problem of accounting session update during network switching and realizes business access and billing. Continuity and efficiency of accounting session management.

CN116097622BActive Publication Date: 2024-10-18HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202080104172.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-12
Publication Date
2024-10-18
Estimated Expiration
2040-08-12

AI Technical Summary

Technical Problem

When switching between different mobile cellular networks, how the terminal device updates the accounting session is an urgent problem that needs to be solved. The existing technology cannot effectively solve this problem.

Method used

The session management function network element sends a message containing the accounting session identifier and bearer information corresponding to the quality of service flow to the authentication, authorization and accounting server, instructing the server to update the accounting session, thereby maintaining the control and accounting functions of business access during network switching.

Benefits of technology

It realizes the continuity of business access control and billing functions of terminal devices during network switching, improves the management efficiency of accounting sessions, and avoids the management of redundant sessions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116097622B_ABST
    Figure CN116097622B_ABST
Patent Text Reader

Abstract

A communication method and apparatus, wherein the method includes: after a session management function network element establishes a protocol data unit session including a first quality of service flow for a terminal device in a first network, when the terminal device switches from the first network to a second network, if it is determined to map the first quality of service flow to a first bearer in the second network, a second message including an identifier of the first accounting session corresponding to the first quality of service flow and information of the first bearer can be sent to an authentication authorization accounting server, thereby instructing the authentication authorization accounting server to update the first accounting session through the second message. Through the above process, when the terminal device switches from the first network to the second network, the session management function network element instructs the authentication authorization accounting server to update the first accounting session according to the information of the first bearer, thereby realizing that after switching to the second network, the service transmitted by the terminal device through the first bearer is charged and controlled according to the information of the first accounting session.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a communication method and device. Background Art

[0002] In mobile cellular networks, billing and other functions can be implemented by allocating accounting sessions to terminal devices. In the 5th generation system (5GS), the session management function (SMF) network element allocates accounting sessions according to the protocol data unit (PDU) session granularity, that is, different accounting sessions are allocated to different PDU sessions. In the evolved packet system (EPS), SMF can allocate different accounting sessions to different EPS bearers.

[0003] In summary, since SMF network elements allocate accounting sessions at different granularities in different mobile cellular networks, how to update the accounting session when the terminal device switches from 5GS to EPS, or from EPS to 5GS, is an urgent problem to be solved. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a communication method and apparatus to solve the problem of how to update the accounting session when the terminal device switches between different mobile cellular networks.

[0005] In a first aspect, an embodiment of the present application provides a communication method, including: after a session management function network element establishes a protocol data unit session including a first service quality flow for a terminal device in a first network, the session management function network element can indicate an identifier of a first accounting session corresponding to the first service quality flow to an authentication authorization accounting server through a first message; when the terminal device switches from the first network to the second network, if the session management function network element determines to map the first service quality flow to a first bearer in the second network, a second message including an identifier of the first accounting session corresponding to the first service quality flow and information of the first bearer can be sent to the authentication authorization accounting server, thereby using the second message to instruct the authentication authorization accounting server to update the first accounting session.

[0006] Through the above process, when the terminal device switches from the first network to the second network, the session management function network element instructs the authentication and authorization accounting server to update the first accounting session according to the information of the first bearer, so that after switching to the second network, the service access of the terminal device transmitted through the first bearer is controlled according to the information of the first accounting session, such as access control, billing and service provision.

[0007] In one possible implementation, the protocol data unit session also includes a second service quality flow, and the session management function network element can indicate the identifier of the second accounting session corresponding to the second service quality flow to the authentication authorization accounting server through a third message; when the terminal device switches from the first network to the second network, if the session management function network element determines to map the second service quality flow to the first bearer, a fourth message can be sent to the authentication authorization accounting server, wherein the fourth message includes the identifier of the second accounting session corresponding to the second service quality flow and information of the first bearer, and the fourth message is used to instruct the authentication authorization accounting server to update the second accounting session.

[0008] Through the above process, when the terminal device switches from the first network to the second network, the session management function network element instructs the AAA server to update the second accounting session according to the information of the first bearer, so that after switching to the second network, the service access of the terminal device transmitted through the first bearer is controlled according to the information of the second accounting session, such as access control, billing and service provision.

[0009] In one possible implementation, after the session management function network element sends a second message to the authentication authorization and accounting server, the method also includes: the session management function network element receives a disconnection request message from the authentication authorization and accounting server, the disconnection request message includes an identifier of the first accounting session, and the disconnection request message is used to request deletion of resources corresponding to the first quality of service flow; the session management function network element sends an update bearer request to the service gateway, and the update bearer request is used to request deletion of resources corresponding to the first quality of service flow.

[0010] Through the above method, the accounting session can be flexibly modified and deleted by carrying the identifier of the accounting session.

[0011] In one possible implementation, the protocol data unit session also includes a third service quality flow; the method also includes: the session management function network element maps the third service quality flow of the terminal device to the first bearer; the session management function network element sends a first stop indication information and an identifier of a third accounting session corresponding to the third service quality flow to the authentication authorization accounting server, and the first stop indication information is used to instruct the authentication authorization accounting server to stop the third accounting session.

[0012] Through the above method, since multiple service quality flows are mapped to the first bearer, only the accounting session corresponding to one of the service quality flows can be updated, for example, only the first accounting session corresponding to the first service quality flow is updated, avoiding the management of too many redundant accounting sessions, thereby improving the management efficiency of the accounting sessions.

[0013] In a possible implementation, the protocol data unit session also includes a fourth service quality flow, and the method also includes: the session management function network element sends a fifth message to the authentication authorization accounting server, and the fifth message includes an identifier of a fourth accounting session corresponding to the fourth service quality flow; after the session management function network element determines that the terminal device switches from the first network to the second network, it determines that the fourth service quality flow is not mapped to the bearer in the second network; the session management function network element sends a second stop indication information and the identifier of the fourth accounting session corresponding to the fourth service quality flow to the authentication authorization accounting server, and the second stop indication information is used to instruct the authentication authorization accounting server to stop the fourth accounting session.

[0014] Through the above method, since the fourth quality of service flow is not mapped to any bearer, the fourth accounting session corresponding to the fourth quality of service flow can be stopped to avoid managing too many redundant accounting sessions, thereby improving the management efficiency of accounting sessions.

[0015] In a possible implementation, the identifier of the first accounting session includes a first billing identifier, an address of the session management function network element, and identification information of the first quality of service flow, and the first billing identifier is a billing identifier allocated by the session management function network element to the protocol data unit session.

[0016] In a possible implementation manner, the identifier of the second accounting session includes the first charging identifier, the address of the session management function network element, and the identification information of the second quality of service flow.

[0017] In a possible implementation manner, the information of the first bearer includes at least one of the following: a wireless access type corresponding to the first bearer; and a quality of service document corresponding to the first bearer.

[0018] In a possible implementation manner, the information of the first bearer also includes a second charging identifier allocated by the session management function network element to the first bearer.

[0019] In a possible implementation, the method also includes: after the session management function network element determines that the terminal device switches from the second network to the first network, mapping the first bearer to the corresponding fifth service quality flow in the first network; the session management function network element sends a sixth message to the authentication authorization accounting server; wherein the sixth message includes an identifier of the first accounting session and information corresponding to the fifth service quality flow, and the sixth message is used to instruct the authentication authorization accounting server to update the first accounting session.

[0020] Through the above process, when the terminal device switches from the second network to the first network, the session management function network element instructs the authentication and authorization accounting server to update the first accounting session according to the information corresponding to the fifth service quality flow, so as to achieve after switching to the first network, the user's service access transmitted through the fifth service quality flow is controlled according to the information of the first accounting session, such as access control, billing and service provision.

[0021] In a possible implementation manner, the information corresponding to the fifth quality of service flow includes one or more of the following:

[0022] The wireless access type corresponding to the fifth quality of service flow; and the quality of service document corresponding to the fifth quality of service flow.

[0023] In a possible implementation manner, the information corresponding to the fifth quality of service flow also includes the first charging identifier.

[0024] In a possible implementation, the method also includes: after the session management function network element determines that the terminal device switches from the second network to the first network, mapping the first bearer to the corresponding sixth service quality flow in the first network; the session management function network element sends a seventh message to the authentication authorization accounting server; wherein the seventh message includes an identifier of the second accounting session and information corresponding to the sixth service quality flow, and the sixth message is used to instruct the authentication authorization accounting server to update the second accounting session.

[0025] In a second aspect, the present application further provides a communication device, which has the function of implementing any of the methods provided in the first aspect. The communication device can be implemented by hardware, or by executing corresponding software implementation by hardware. The hardware or software includes one or more units or modules corresponding to the above functions.

[0026] In a possible implementation, the communication device includes: a processor, the processor is configured to support the communication device to perform the corresponding functions of the session management function network element in the method shown above. The communication device may also include a memory, which may be coupled to the processor and stores the necessary program instructions and data of the communication device. Optionally, the communication device also includes a communication interface, which is used to support communication between the communication device and a device such as an authentication authorization accounting server.

[0027] In a possible implementation, the communication device includes corresponding functional units, which are respectively used to implement the steps in the above method. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions.

[0028] In a possible implementation, the structure of the communication device includes a processing unit and a communication unit, and these units can perform corresponding functions in the above method example. For details, please refer to the description of the method provided in the first aspect, which will not be repeated here.

[0029] In a third aspect, an embodiment of the present application provides a communication method, including: a session management function network element establishes a first bearer for a terminal device in a second network; after the session management function network element determines that the terminal device switches from the second network to the first network, the first bearer is mapped to a fifth service quality flow corresponding to the first network; the session management function network element sends a sixth message to the authentication authorization accounting server; wherein the sixth message includes an identifier of the first accounting session and information corresponding to the fifth service quality flow, and the sixth message is used to instruct the authentication authorization accounting server to update the first accounting session.

[0030] Through the above process, when the terminal device switches from the second network to the first network, the session management function network element instructs the authentication and authorization accounting server to update the first accounting session according to the information corresponding to the fifth service quality flow, so as to achieve after switching to the first network, the service access of the terminal device transmitted through the fifth service quality flow is controlled according to the information of the first accounting session, such as access control, billing and service provision.

[0031] In a possible implementation manner, the information corresponding to the fifth quality of service flow includes one or more of the following:

[0032] The wireless access type corresponding to the fifth quality of service flow; and the quality of service document corresponding to the fifth quality of service flow.

[0033] In a possible implementation manner, the information corresponding to the fifth quality of service flow also includes the first charging identifier.

[0034] In a possible implementation, the method also includes: after the session management function network element determines that the terminal device switches from the second network to the first network, mapping the first bearer to the corresponding sixth service quality flow in the first network; the session management function network element sends a seventh message to the authentication authorization accounting server; wherein the seventh message includes an identifier of the second accounting session and information corresponding to the sixth service quality flow, and the sixth message is used to instruct the authentication authorization accounting server to update the second accounting session.

[0035] In a fourth aspect, the present application further provides a communication device, which has the function of implementing any of the methods provided in the third aspect. The communication device can be implemented by hardware, or by executing corresponding software implementation by hardware. The hardware or software includes one or more units or modules corresponding to the above functions.

[0036] In a possible implementation, the communication device includes: a processor, the processor is configured to support the communication device to perform the corresponding functions of the session management function network element in the method shown above. The communication device may also include a memory, which may be coupled to the processor and stores the necessary program instructions and data of the communication device. Optionally, the communication device also includes a communication interface, which is used to support communication between the communication device and a device such as an authentication authorization accounting server.

[0037] In a possible implementation, the communication device includes corresponding functional units, which are respectively used to implement the steps in the above method. The functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more units corresponding to the above functions.

[0038] In a possible implementation, the structure of the communication device includes a processing unit and a communication unit, and these units can perform corresponding functions in the above method example. For details, please refer to the description of the method provided in the third aspect, which will not be repeated here.

[0039] In a fifth aspect, the present application provides a chip, comprising a processor, wherein the processor is coupled to a memory and is used to execute a computer program or instruction stored in the memory. When the processor executes the computer program or instruction, the method in any possible implementation manner from the first aspect to or from the first aspect is implemented, or the method in any possible implementation manner from the third aspect to or from the third aspect is implemented.

[0040] In a sixth aspect, the present application provides a communication device, comprising a processor. When the processor executes a computer program or instruction in a memory, a method as in the first aspect or any possible implementation of the first aspect is executed, or a method as in the third aspect or any possible implementation of the third aspect is executed.

[0041] In a seventh aspect, the present application provides a communication device, comprising a processor and a memory, the memory being used to store computer programs or instructions; the processor being used to execute the computer programs or instructions stored in the memory, so that the communication device performs a method as in the first aspect or any possible implementation of the first aspect, or so that the communication device performs a method as in the third aspect or any possible implementation of the third aspect.

[0042] In an eighth aspect, the present application provides a communication device, comprising a processor, a memory, and a transceiver, wherein the transceiver is used to receive a signal or send a signal; the memory is used to store a computer program or instruction; the processor is used to call the computer program or instruction from the memory to execute a method as in the first aspect or any possible implementation of the first aspect; or, the processor is used to call the computer program or instruction from the memory to execute a method as in the third aspect or any possible implementation of the third aspect.

[0043] In the ninth aspect, a computer-readable storage medium is provided for storing a computer program, the computer program comprising instructions for executing the method in the first aspect or any possible implementation of the first aspect, or the computer program comprising instructions for executing the method in the third aspect or any possible implementation of the third aspect.

[0044] In the tenth aspect, a computer program product is provided, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect, or enables the computer to execute the method in the third aspect or any possible implementation of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of a network architecture applicable to an embodiment of the present application;

[0046] Figure 2 A flow chart of a communication method provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of a process for establishing a PDU session in 5GS provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of an accounting session update when switching from 5GS to EPS provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of an accounting session update when switching from EPS to 5GS provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of an accounting session update when switching from 5GS to EPS provided in an embodiment of the present application;

[0051] Figure 7 A schematic diagram of establishing an accounting session for a bearer in EPS provided in an embodiment of the present application;

[0052] Figure 8 A schematic diagram of an accounting session update when switching from EPS to 5GS provided in an embodiment of the present application;

[0053] Fig. 9 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0054] Fig.10 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0056] The technical solution of the embodiment of the present application can be applied to various mobile cellular systems, such as 5GS and EPS, etc. Among them, 5GS includes but is not limited to the new radio (NR) system; EPS includes but is not limited to the long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD) system, etc., which are not limited here.

[0057] like Figure 1 The figure shows a schematic diagram of a network architecture applicable to an embodiment of the present application. Figure 1In 5GS, after the terminal device accesses the 5GS through the radio access network (RAN) device, the authentication authorization and accounting (AAA) server located in the data network can authenticate, authorize and account for the terminal device. Among them, the AAA server can support remote authentication dial in user service (RADIUS) and Diameter protocols. Figure 1 The network shown also includes access and mobility management function (AMF) network elements, SMF network elements and user plane function (UPF) network elements. The functions of the above network elements can be referred to the description in the prior art and will not be repeated here.

[0058] As mentioned above, in 5GS, the SMF network element allocates different accounting sessions for different PDU sessions. Each accounting session corresponds to an accounting session identity (acct-session-ID) or a session identity (session-ID). When 5GS communicates with the AAA server using the RADIUS protocol, the identity corresponding to the accounting session is acct-session-ID; when 5GS communicates with the AAA server using the diameter protocol, the identity corresponding to the accounting session is (session-ID). The accounting session identity or session identity is used to globally uniquely identify an accounting session. The accounting session identity includes information such as the charging ID and the address of the SMF network element. For example, the address of the SMF network element can be the billing address of the SMF network element, which can specifically refer to information such as the Internet Protocol (IP) address of the SMF network element.

[0059] In the process of the embodiment of this invention, the identifier corresponding to the accounting session is described as acct-session-ID. In actual application, the identifier corresponding to the accounting session can also be session-ID. The difference is that the value of session-ID is dynamically allocated by the session management function network element and remains globally unique.

[0060] In 5GS, since the SMF network element assigns a billing identifier to the PDU session, the billing identifiers in the accounting session identifier corresponding to multiple quality of service (QoS) flows in the PDU session are the same, that is, the accounting session identifiers corresponding to multiple QoS flows in the PDU session are the same, and the accounting session identifier of the PDU session cannot identify different QoS flows in the PDU session.

[0061] The PDU session in 5GS is called a packet data network (PDN) connection in EPS. There are multiple bearers in a PDN connection. In EPS, the SMF network element can assign different billing identifiers to different bearers. That is to say, each bearer in the PDN connection has a different accounting session identifier.

[0062] If the terminal device switches between different networks, for example, from 5GS to EPS, since the multiple QoS flows included in the PDU session in 5GS correspond to the same accounting session, the bearers equivalent to the QoS flows in EPS correspond to different accounting sessions. Since the allocation granularity of accounting sessions is different in different networks, after the terminal device switches to EPS, how to update the accounting sessions corresponding to multiple QoS flows belonging to one PDU session, there is currently no clear solution.

[0063] In the embodiments of the present application, the terminal device may be a device with wireless transceiver function or a chip that can be set in any device, and may also be called user equipment (UE), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device. The terminal device in the embodiments of the present application may be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.

[0064] The access network equipment can be the next generation base station (generation node B, gNB) in 5GS, or the evolutionary base station (evolutional node B, eNB) in EPS, etc.

[0065] It should be noted that the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. It is known to those skilled in the art that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems. Figure 2 FIG. 1 is a flow chart of a communication method provided by an embodiment of the present application. Figure 2 , the method comprising:

[0066] Step 201: The session management function network element establishes a PDU session for a terminal device in a first network, where the PDU session includes a first QoS flow.

[0067] Among them, the first network may refer to 5GS, and accordingly, the session management function network element may refer to an SMF network element, or may refer to a network element having both SMF network element and control plane PDN gateway (packet data network gateway for control plane, PGW-C) functions.

[0068] The specific method of establishing a PDU session by the session management function network element is not limited in the embodiment of the present application, and the specific process is not repeated here. In addition to the first QoS flow, the PDU session may also include a second QoS flow, a third QoS flow, and a fourth QoS flow, etc. The specific number of QoS flows included is not limited in the embodiment of the present application.

[0069] It should be noted that the QoS flows included in the PDU session can be divided into default QoS flows and dedicated QoS flows. The first QoS flow can be a default QoS flow or a dedicated QoS flow, which is not limited in the embodiments of the present application.

[0070] Step 202: The session management function network element sends a first message to the AAA server, where the first message includes an identifier of a first accounting session corresponding to the first QoS flow.

[0071] Among them, the identifier of the first accounting session is allocated by the session management function network element. In an embodiment of the present application, the identifier of the first accounting session may include but is not limited to the following information: a first billing identifier, an address of the session management function network element, and identification information of the first QoS flow. The first billing identifier is a billing identifier assigned by the session management function network element to the PDU session, for example, it may be an identifier assigned to the default QoS flow in the PDU session. The address of the session management function network element may refer to the IP address of the session management function network element. The identification information of the first QoS flow may refer to the QoS flow identifier (QoS flow identifier, QFI) of the first QoS flow or other information assigned by the session management function network element to identify the first QoS flow.

[0072] It should be noted that, in the prior art, a PDU session may include multiple different QoS flows, but an accounting session is allocated for the PDU session, that is, the prior art accounts for the PDU session, and there is no specific implementation of accounting for these QoS flows separately. In the embodiment of the present application, for each QoS flow in the PDU session, the identification information of the QoS flow is added to the accounting session identifier of the PDU session, so as to allocate different accounting session identifiers to different QoS flows, so as to achieve separate accounting for each QoS flow in the PDU session.

[0073] Step 203: After the session management function network element determines that the terminal device switches from the first network to the second network, it maps the first QoS flow to the corresponding first bearer in the second network.

[0074] Specifically, the session management function network element may determine the identifier of the first bearer corresponding to the first QoS flow in the second network, and the session management function network element may send the identifier of the first bearer to the second network to request the second network to establish the first bearer.

[0075] The second network may refer to EPS. The embodiment of the present application does not limit how the session management function network element determines that the terminal device switches to the second network. For details, reference may be made to the description in the prior art, which will not be repeated here.

[0076] Step 204: The session management function network element sends a second message to the AAA server.

[0077] The second message includes an identifier of a first accounting session corresponding to the first QoS flow and information of the first bearer, the information of the first bearer can be used to update the identifier of the first accounting session, and the second message is used to instruct the AAA server to update the first accounting session.

[0078] The information of the first bearer includes at least one of the following:

[0079] The wireless access type corresponding to the first bearer; the QoS document corresponding to the first bearer; the packet filter corresponding to the first bearer; and the second charging identifier allocated to the first bearer by the session management network element.

[0080] Through the above process, when the terminal device switches from the first network to the second network, the session management function network element instructs the AAA server to update the first accounting session according to the information of the first bearer, so that after switching to the second network, the service access of the terminal device transmitted through the first bearer is controlled according to the information of the first accounting session, such as access control, billing and service provision.

[0081] As described above, in an embodiment of the present application, the session management function network element can establish a PDU session for the terminal device in the first network, and assign different accounting session identifiers to different QoS flows in the PDU session, which is described in detail below.

[0082] like Figure 3 As shown, when the terminal device is accessed through 5GS, an accounting session corresponding to the QoS flow can be established, and the accounting session identifier is used to uniquely identify the accounting session of each QoS flow, where the accounting session identifier includes the identification information of the QoS flow. It should be noted that Figure 3 The process shown is based on the relevant content about PDU session establishment in the existing document TS23.502, and the details can be referred to the above document.

[0083] Step 301: The terminal device initiates a PDU session establishment process by sending a PDU session establishment request message, where the PDU session establishment request message includes information such as authentication and authorization.

[0084] Step 302: The AMF network element sends a PDU session establishment context request message to the session management function network element.

[0085] The specific name of the message is not limited, for example, it can be Nsmf_PDUSession_CreateSMContextRequest, etc. The message may include authentication, authorization and other information.

[0086] Step 303: The session management function network element sends a response message to the AMF network element.

[0087] Optionally, if the N4 session corresponding to the PDU session has not been established, the session management function network element needs to initiate the N4 session establishment process, and the specific process will not be repeated here.

[0088] Furthermore, the network side also needs to perform authentication, authorization and other processes on the terminal device. The specific process will not be described here. For details, please refer to the description in TS23.502 and other documents.

[0089] Assumptions Figure 3 In the process described, the PDU session includes a first QoS flow, a second QoS flow, a third QoS flow, and a fourth QoS flow. The following describes how to establish an accounting session corresponding to each QoS flow.

[0090] For the first QoS flow in the PDU session, the accounting session corresponding to the first QoS flow may be established through the following steps.

[0091] Step 304: The session management function network element sends an accounting request (accounting-request) message to the AAA server, requesting to start accounting for the first QoS flow in the PDU session.

[0092] The accounting request message may refer to Figure 2 The first message in the process, the content carried in the accounting request message, is not limited in the embodiment of the present application, and may include but is not limited to the identifier of the terminal device (or user), the address of the terminal device, the identifier of the first accounting session corresponding to the first QoS flow (hereinafter referred to as the accounting session identifier 1), the first billing identifier (the identifier assigned by the session management function network element to the PDU session), the QFI of the first QoS flow (hereinafter referred to as the first QFI), the wireless access type (the wireless access type in 5GS is the next generation RAN (NG-RAN)), the packet filter of the first QoS flow, and the QoS document corresponding to the first QoS flow.

[0093] The accounting session identifier 1 may include the following information: a first charging identifier, an address of a session management function network element, and identification information of a first QoS flow. The identification information of the first QoS flow may refer to a first QFI of the first QoS flow or other information allocated by the session management function network element for identifying the first QoS flow.

[0094] Step 305: The AAA server returns a corresponding response message.

[0095] Optionally, when the session management function network element decides to create a new second QoS flow in the PDU session, the session management function network element can initiate a second QoS flow establishment process, and the specific process is not repeated. After the second QoS flow is established in the PDU session, an accounting session corresponding to the second QoS flow can be established, which specifically includes the following steps.

[0096] Step 306: The session management function network element sends an accounting request message to the AAA server to request to start accounting for the second QoS flow in the PDU session.

[0097] The accounting request message may have other names, for example, it may be a third message. The content carried in the accounting request message is not limited in the embodiment of the present application, and may include but is not limited to the identifier of the terminal device, the address of the terminal device, the identifier of the second accounting session corresponding to the second QoS flow (hereinafter referred to as the accounting session identifier 2), the first billing identifier, the QFI of the second QoS flow (referred to as the second QFI), the wireless access type (the wireless access type in 5GS is NG-RAN), the filter on the second QoS flow, and the QoS document corresponding to the second QoS flow.

[0098] The accounting session identifier 2 may include the following information: a first charging identifier, an address of a session management function network element, and identification information of a second QoS flow. The identification information of the second QoS flow may refer to a second QFI of the second QoS flow or other information allocated by the session management function network element for identifying the second QoS flow.

[0099] Step 307: The AAA server returns a corresponding response message.

[0100] Similarly, when the session management function network element decides to create a third QoS flow and a fourth QoS flow in a PDU session, the same method as above can be used to establish an identifier of a third accounting session corresponding to the third QoS flow and an identifier of a fourth accounting session corresponding to the fourth QoS flow. The specific process will not be repeated here.

[0101] The identifier of the third accounting session may include the following information: the first charging identifier, the address of the session management function network element, and the identification information of the third QoS flow. The identification information of the third QoS flow may refer to the third QFI of the third QoS flow or other information assigned by the session management function network element for identifying the third QoS flow. The identifier of the fourth accounting session may include the following information: the first charging identifier, the address of the session management function network element, and the identification information of the fourth QoS flow. The identification information of the fourth QoS flow may refer to the fourth QFI of the fourth QoS flow or other information assigned by the session management function network element for identifying the fourth QoS flow.

[0102] Combined with the previous process, when the terminal device switches from the first network to the second network, the session management function network element can update the accounting session corresponding to each QoS flow according to the bearer corresponding to each QoS flow. If there are multiple QoS flows mapped to the same bearer, the session management function network element updates the bearer corresponding information for each accounting session. Figure 4 Detailed description.

[0103] Step 401: The terminal device switches from 5GS to EPS.

[0104] The specific process of the terminal device switching to EPS is not described in detail in the embodiment of the present application, and the details can be referred to the description in the prior art.

[0105] After the terminal device switches from 5GS to EPS, when the session management function network element determines to map the first QoS flow and the second QoS flow in the PDU session to the first bearer, the following steps can be performed.

[0106] It should be noted that the embodiment of the present application does not limit how the session management function network element specifically determines to map the first QoS flow and the second QoS flow to the first bearer.

[0107] Step 402: The session management function network element sends a first accounting request message to the AAA server.

[0108] The first accounting request message may refer to Figure 2 The second message in the process. The first accounting request message includes an identifier of a first accounting session corresponding to the first QoS flow and information of a first bearer, the information of the first bearer is used to update the first accounting session, and the first accounting request message is used to instruct the AAA server to update the first accounting session corresponding to the first QoS flow.

[0109] The information of the first bearer includes at least one of the following:

[0110] The wireless access type corresponding to the first bearer, for example, in EPS, the wireless access type of the first bearer may refer to an evolved universal terrestrial radio access network (E-UTRAN); the packet filter corresponding to the first bearer; and the QoS document corresponding to the first bearer.

[0111] Optionally, when the session management network element allocates a second charging identifier for the first bearer, the information of the first bearer also includes the second charging identifier.

[0112] Step 403: The AAA server updates the first accounting session and returns a response message.

[0113] For example, the AAA server may update the first charging identifier in the first accounting session to the second charging identifier, etc., to update the first accounting session.

[0114] Step 404: The session management function network element sends a second accounting request message to the AAA server.

[0115] The second accounting request message may have other names, for example, it may be a fourth message. The second accounting request message includes an identifier of a second accounting session corresponding to the second QoS flow and information of the first bearer, the information of the first bearer is used to update the second accounting session, and the second accounting request message is used to instruct the AAA server to update the second accounting session corresponding to the second QoS flow.

[0116] The information of the first bearer may refer to the previous description and will not be repeated here.

[0117] Optionally, when the session management network element allocates a second charging identifier for the first bearer, the information of the first bearer also includes the second charging identifier.

[0118] Step 405: The AAA server updates the second accounting session and returns a response message.

[0119] For example, the AAA server may update the first charging identifier in the second accounting session to the second charging identifier, etc., to update the first accounting session.

[0120] It should be noted that after the AAA server updates the second accounting session through steps 403 and 405, it will perform accounting based on the first bearer, that is, accounting is performed only based on the first bearer for both QoS flows, and no longer based on the QoS flow. Although the first QoS flow and the second QoS flow are mapped to the first bearer, the session management function network element still maintains the packet filter corresponding to each QoS flow.

[0121] Optionally, when the AAA server determines to delete the resources corresponding to the first QoS flow, the following steps may also be included.

[0122] Step 406: The AAA server sends a disconnection request message to the session management network element, where the disconnection request message includes the identifier of the first accounting session, and the disconnection request message is used to request deletion of resources corresponding to the first QoS flow.

[0123] Step 407: The session management network element sends a bearer update request to the serving gateway, where the bearer update request is used to request deletion of resources corresponding to the first QoS flow, and the bearer update request may include an identifier of the first bearer.

[0124] After receiving the bearer update request, the serving gateway may delete resources such as the packet filter corresponding to the first QoS flow from the packet filter of the first bearer.

[0125] Step 408: The network side interacts with the terminal device to complete the update process of the first bearer. The specific process will not be repeated here.

[0126] Optionally, when the AAA server determines to delete the resources corresponding to the second QoS flow, the following steps may also be included.

[0127] Step 409: The AAA server sends a disconnection request message to the session management network element, where the disconnection request message includes the identifier of the second accounting session, and the disconnection request message is used to request deletion of resources corresponding to the second QoS flow.

[0128] After the session management network element determines that the second QoS flow corresponding to the first bearer is deleted, if there is no corresponding QoS flow for the first bearer, the following steps may be performed.

[0129] Step 410: The session management network element sends a delete bearer request to the serving gateway, where the delete bearer request is used to request to delete the resources corresponding to the second QoS flow, and the delete bearer request may include an identifier of the first bearer.

[0130] After receiving the bearer deletion request, the serving gateway may delete resources such as the packet filter corresponding to the second QoS flow from the packet filter of the first bearer.

[0131] Step 411: The network side interacts with the terminal device to complete the process of deleting the first bearer, that is, to complete the process of deactivating (deactivating) the first bearer. The specific process will not be repeated here.

[0132] based on Figure 4 In the process of step 401 to step 405, if the terminal device subsequently switches from EPS to 5GS, the session management function network element determines to map the first bearer to the fifth QoS process and the sixth QoS process, the specific steps are as follows Figure 5 As shown:

[0133] Step 501: The session management function network element determines to map the first bearer to the corresponding fifth QoS flow in the first network, and sends a third accounting request message to the AAA server.

[0134] It should be noted that the embodiment of the present application does not limit how the session management function network element specifically determines to map the first bearer to the fifth QoS flow.

[0135] The third accounting request message includes the identifier of the first accounting session and the information corresponding to the fifth QoS flow, and the third accounting request message is used to instruct the AAA server to update the first accounting session. The information corresponding to the first QoS flow can be used to update the first accounting session.

[0136] The information corresponding to the fifth QoS flow includes one or more of the following:

[0137] The wireless access type corresponding to the fifth QoS flow; the packet filter corresponding to the fifth QoS flow; and the QoS document corresponding to the fifth QoS flow.

[0138] If in step 402, the session management network element allocates a second charging identifier for the first bearer, the information corresponding to the fifth QoS flow also includes the first charging identifier.

[0139] Step 502: The AAA server updates the first accounting session and returns a corresponding response message.

[0140] Step 503: The session management function network element determines to map the first bearer to the corresponding sixth QoS flow in the first network, and sends a fourth accounting request message to the AAA server.

[0141] The fourth accounting request message includes an identifier of the second accounting session and information corresponding to the sixth QoS flow, and the fourth accounting request message is used to instruct the AAA server to update the second accounting session.

[0142] The information corresponding to the sixth QoS flow includes one or more of the following:

[0143] The wireless access type corresponding to the sixth QoS flow; the packet filter corresponding to the sixth QoS flow; and the QoS document corresponding to the sixth QoS flow.

[0144] If in step 404, the session management network element allocates a second charging identifier for the first bearer, the information corresponding to the sixth QoS flow also includes the first charging identifier.

[0145] Step 504: The AAA server updates the second accounting session and returns a corresponding response message.

[0146] In the embodiment of the present application, when the terminal device switches from the first network to the second network, the session management function network element can update the accounting session corresponding to each QoS flow according to the bearer corresponding to each QoS flow. If there are multiple QoS flows mapped to the same bearer, the session management function network element can also update an accounting session and stop other accounting sessions. Figure 6 Detailed description.

[0147] Step 601: The terminal device switches from 5GS to EPS.

[0148] The specific process of the terminal device switching to EPS is not described in detail in the embodiment of the present application, and the details can be referred to the description in the prior art.

[0149] After the terminal device switches from 5GS to EPS, when the session management function network element determines to map the first QoS flow and the third QoS flow in the PDU session to the first bearer, the following steps can be performed.

[0150] It should be noted that the embodiment of the present application does not limit how the session management function network element specifically determines to map the first QoS flow and the third QoS flow to the first bearer.

[0151] Step 602: The session management function network element sends a fifth accounting request message to the AAA server.

[0152] The fifth accounting request message may refer to Figure 2 The fifth accounting request message includes an identifier of a first accounting session corresponding to the first QoS flow and information of a first bearer, the information of the first bearer is used to update the first accounting session, and the fifth accounting request message is used to instruct the AAA server to update the first accounting session corresponding to the first QoS flow. The specific content of the information of the first bearer can refer to the previous description.

[0153] Optionally, the fifth accounting request message may further include a packet filter obtained by aggregating the packet filters of the first QoS flow and the packet filters of the third QoS flow.

[0154] Step 603: The AAA server updates the first accounting session and returns a response message.

[0155] After mapping the first QoS flow and the third QoS flow in the PDU session to the first bearer, the third accounting session corresponding to the third QoS flow may be stopped.

[0156] Step 604: The session management function network element sends a sixth accounting request message to the AAA server.

[0157] The sixth accounting request message includes first stop indication information and an identifier of a third accounting session corresponding to a third QoS flow, and the first stop indication information is used to instruct the AAA server to stop the third accounting session.

[0158] Step 605: The AAA server deletes the information corresponding to the third accounting session and returns a response message.

[0159] It should be noted that after step 503 and step 505, the AAA server stops the third accounting session and then controls the user's service access through the first bearer transmission according to the information of the first accounting session, such as access control, billing and service provision.

[0160] Optionally, if the PDU session also includes a fourth QoS flow, when establishing the fourth QoS flow, the session management function network element may send an identifier of a fourth accounting session corresponding to the fourth QoS flow to the AAA server through a fifth message. After the terminal device switches to EPS, if the session management function network element determines that the fourth QoS flow is not mapped to any bearer in the EPS network, the AAA server may be instructed to delete the identifier of the fourth accounting session corresponding to the fourth QoS flow, which may specifically include the following steps.

[0161] Step 606: The session management function network element determines that the fourth QoS flow is not mapped to the bearer in the second network, and sends a seventh accounting request message to the AAA server, where the seventh accounting request message includes second stop indication information and an identifier of the fourth accounting session corresponding to the fourth QoS flow, and the second stop indication information is used to instruct the AAA server to stop the fourth accounting session.

[0162] Step 607: The AAA server deletes the information corresponding to the fourth accounting session and returns a response message.

[0163] Optionally, when the AAA server determines to delete the resources corresponding to the first QoS flow and the third QoS flow, the following steps may also be included.

[0164] Step 608: The AAA server sends a disconnection request message to the session management network element, where the disconnection request message includes the identifier of the first accounting session, and is used to request deletion of resources corresponding to the first bearer (ie, the original first QoS flow and the third QoS flow).

[0165] Step 609: The session management network element sends a delete bearer request to the serving gateway. The delete bearer request is used to request to delete resources corresponding to the first QoS flow and the third QoS flow. The delete bearer request may include an identifier of the first bearer.

[0166] After receiving the bearer deletion request, the serving gateway may delete resources such as the packet filters corresponding to the first QoS flow and the third QoS flow from the packet filter of the first bearer.

[0167] Step 610: The network side interacts with the terminal device to complete the process of deactivating the first bearer. The specific process will not be repeated here.

[0168] The previous process describes the process of switching a terminal device from 5GS to EPS. The embodiment of the present application can also be applied to the process of switching a terminal device from EPS to 5GS, which is described in detail below.

[0169] like Figure 7As shown, when a terminal device accesses through EPS, a billing session corresponding to each bearer can be established, and the billing session identifier is used to uniquely identify the billing session. Figure 7 The process may involve network elements such as a mobility management entity (MME), a serving gateway, a session management function network element, and an AAA server.

[0170] Step 701: The terminal device executes an attachment process or requests to establish a PDN connection process.

[0171] Step 702: The service gateway sends a create session request message to the session management function network element.

[0172] The create session request message may include an identifier of the second bearer in the PDN connection.

[0173] Furthermore, the network side also needs to perform authentication, authorization and other processes on the terminal device. The specific process will not be described again. For details, please refer to the description in the prior art.

[0174] Assumptions Figure 7 In the process described, the PDN connection includes a second bearer and a third bearer. The following describes how to establish a billing session corresponding to each bearer.

[0175] For the second bearer, the accounting session corresponding to the second bearer may be established through the following steps.

[0176] Step 703: The session management function network element sends an accounting request message to the AAA server, requesting to start accounting for the second bearer in the PDN connection.

[0177] The content carried in the accounting request message is not limited in the embodiment of the present application, and may include but is not limited to the identifier of the terminal device (or user), the address of the terminal device, the identifier of the fifth accounting session corresponding to the second bearer, the third charging identifier (an identifier allocated by the session management function network element to the PDN connection), the identification information of the second bearer (for example, the bearer identifier (bearer Id) of the second bearer), the wireless access type of the second bearer, and the QoS document corresponding to the second bearer.

[0178] The identifier of the fifth accounting session may include the following information: the third charging identifier, the address of the session management function network element, and the identification information of the second bearer. The identification information of the second bearer may refer to the bearer identifier of the second bearer or other information allocated by the session management function network element for identifying the second bearer.

[0179] Step 704: The AAA server returns a corresponding response message.

[0180] Optionally, when the session management function network element decides to create a new third bearer in the PDN connection, the session management function network element can initiate a third bearer establishment process, and the specific process is not repeated. After the third bearer is established in the PDU session, an accounting session corresponding to the third bearer can be established, which specifically includes the following steps.

[0181] Step 705: The session management function network element sends an accounting request message to the AAA server, requesting to start accounting for the third bearer in the PDN connection.

[0182] The content carried in the accounting request message is not limited in the embodiment of the present application, and may include but is not limited to the identifier of the terminal device (or user), the address of the terminal device, the identifier of the sixth accounting session corresponding to the third bearer, the third billing identifier, the identification information of the third bearer, the wireless access type, and the QoS document corresponding to the third bearer.

[0183] The identifier of the sixth accounting session may include the following information: the third charging identifier or the fourth charging identifier, the address of the session management function network element, and the identification information of the third bearer. The identification information of the third bearer may refer to the bearer identifier of the third bearer or other information allocated by the session management function network element for identifying the third bearer. The fourth charging identifier is the charging identifier allocated by the session management function network element to the third bearer.

[0184] Step 706: The AAA server returns a corresponding response message.

[0185] Optionally, when the session management function network element decides to modify or delete the second bearer, the session management function network element may send a message of the corresponding function to the service gateway, and the message carries the identifier of the second bearer. For example, when deciding to modify the second bearer, a modify bearer request message is sent; when deciding to delete the second bearer, a delete bearer request is sent. The specific process is not repeated here.

[0186] Further, after the PDN connection is established, after the terminal device switches from the second network to the first network, the session management function network element can update the corresponding accounting session according to each bearer. For details, please refer to Figure 7 As shown. Figure 7 The figure is a flow chart of a communication method provided in an embodiment of the present application.

[0187] Step 801: The session management function network element determines to map the second bearer to the seventh QoS flow corresponding to the first network, and sends an accounting request message to the AAA server.

[0188] It should be noted that the embodiment of the present application does not limit how the session management function network element specifically determines to map the second bearer to the seventh QoS flow.

[0189] The accounting request message includes the identifier of the fifth accounting session and the information corresponding to the seventh QoS flow, and the accounting request message is used to instruct the AAA server to update the fifth accounting session. The information corresponding to the seventh QoS flow can be used to update the fifth accounting session.

[0190] The information corresponding to the seventh QoS flow includes one or more of the following:

[0191] The wireless access type corresponding to the seventh QoS flow; the packet filter corresponding to the seventh QoS flow; and the QoS document corresponding to the seventh QoS flow.

[0192] The information corresponding to the seventh QoS flow may also be a third charging identifier.

[0193] Step 802: The AAA server returns a corresponding response message.

[0194] Optionally, the following steps may also be included:

[0195] Step 803: The session management function network element determines to map the third bearer to the corresponding eighth QoS flow in the first network, and sends an accounting request message to the AAA server.

[0196] The accounting request message includes an identifier of a sixth accounting session and information corresponding to the eighth QoS flow, and the eighth message is used to instruct the AAA server to update the sixth accounting session.

[0197] The information corresponding to the eighth QoS flow includes one or more of the following:

[0198] The wireless access type corresponding to the eighth QoS flow; the packet filter corresponding to the eighth QoS flow; and the QoS document corresponding to the eighth QoS flow.

[0199] Step 804: The AAA server updates the sixth accounting session and returns a corresponding response message.

[0200] If in Figure 7 In the example, the session management function network element allocates a fourth charging identifier for the third bearer, and the eighth message also includes the third charging identifier.

[0201] Optionally, if the AAA server decides to delete the resources corresponding to the seventh QoS flow, a disconnection request message may be sent to the session management function network element, where the disconnection request message carries the identifier of the fifth accounting session. The session management function network element may delete the resources corresponding to the seventh QoS flow according to the disconnection request message, and the specific process will not be described in detail.

[0202] It should be noted that the various embodiments provided in the embodiments of the present application may be independent solutions or may be combined according to internal logic, and these solutions all fall within the protection scope of the present application.

[0203] In the above embodiments provided by the present application, the methods provided by the embodiments of the present application are introduced from the perspective of interaction between various devices. In order to implement the various functions in the methods provided by the above embodiments of the present application, the session management function network element may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether one of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.

[0204] The division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0205] Same as above idea, Fig. 9 As shown, the embodiment of the present application also provides a device 900 for implementing the function of the session management function network element in the above method. For example, the device can be a software module or a chip system. In the embodiment of the present application, the chip system can be composed of a chip, or it can include a chip and other discrete devices. The device 900 may include: a processing unit 901 and a communication unit 902.

[0206] In the embodiment of the present application, the communication unit may also be referred to as a transceiver unit, and may include a sending unit and / or a receiving unit, which are respectively used to execute the steps of sending and receiving the session management function network element in the above method embodiment.

[0207] The following, combined Figures 9 and 10 The communication device provided in the embodiment of the present application is described in detail. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the contents not described in detail can be referred to the method embodiment above, and will not be repeated here for the sake of brevity.

[0208] The communication unit 902 may also be referred to as a transceiver, a transceiver, a transceiver device, etc. The processing unit 901 may also be referred to as a processor, a processing board, a processing module, a processing device, etc. Optionally, the device used to implement the receiving function in the communication unit 902 may be regarded as a receiving unit, and the device used to implement the sending function in the communication unit 902 may be regarded as a sending unit, that is, the communication unit 902 includes a receiving unit and a sending unit. The communication unit 902 may also be sometimes referred to as a transceiver, a transceiver, or a transceiver circuit, etc. The receiving unit may also be sometimes referred to as a receiver, a receiver, or a receiving circuit, etc. The sending unit may also be sometimes referred to as a transmitter, a transmitter, or a transmitting circuit, etc.

[0209] A processing unit, configured to establish a protocol data unit session in a first network for a terminal device, wherein the protocol data unit session includes a first quality of service flow;

[0210] A communication unit, configured to send a first message to an authentication authorization accounting server, wherein the first message includes an identifier of a first accounting session corresponding to the first quality of service flow;

[0211] The processing unit is configured to map the first quality of service flow to a first bearer corresponding to the second network after determining that the terminal device switches from the first network to the second network;

[0212] The communication unit is used to send a second message to the authentication authorization accounting server;

[0213] The second message includes an identifier of a first accounting session corresponding to the first quality of service flow and information about the first bearer, and the second message is used to instruct the authentication authorization accounting server to update the first accounting session.

[0214] It should be understood that the communication unit and the processing unit may also perform other operations. For example, the communication unit 902 is used to perform the above Figure 4 or Figure 8 or Fig.10 In the method embodiment shown in FIG. 1 , the sending operation and the receiving operation of the session management function network element are performed, and the processing unit 901 is used to perform the above Figure 4 or Figure 8 or Fig.10 For other operations of the session management function network element in the method embodiment shown in addition to the sending and receiving operations, please refer to the previous description for details, which will not be repeated here.

[0215] like Fig.10 Another communication device provided in an embodiment of the present application is shown. Fig.10 The device shown can be Fig. 9The communication device can be applied to the flowchart shown above to perform the function of the session management function network element in the above method embodiment. For the convenience of explanation, Fig.10 Only the main components of the communication device are shown.

[0216] The device 1000 may also include at least one memory 1030 for storing program instructions and / or data. The memory 1030 is coupled to the processor 1020. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 1020 may operate in conjunction with the memory 1030. The processor 1020 may execute program instructions stored in the memory 1030. At least one of the at least one memory may be included in the processor.

[0217] Fig.10 The device 1000 shown includes at least one processor 1020 and a communication interface 1010, and the processor 1020 is used to execute instructions or programs stored in the memory 1030. When the instructions or programs stored in the memory 1030 are executed, the processor 1020 is used to perform the operations performed by the processing unit 901 in the above embodiment, and the communication interface 1010 is used to perform the operations performed by the communication unit 902 in the above embodiment.

[0218] In the embodiment of the present application, the communication interface may be a transceiver, a circuit, a bus, a module or other types of communication interfaces. In the embodiment of the present application, when the communication interface is a transceiver, the transceiver may include an independent receiver, an independent transmitter, or a transceiver with integrated transceiver functions or a communication interface.

[0219] The device 1000 may further include a communication line 1040. The communication interface 1010, the processor 1020, and the memory 1030 may be interconnected via the communication line 1040; the communication line 1040 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication line 1040 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0220] The present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program includes instructions for executing the method provided in any of the above processes.

[0221] The present application also provides a computer program product, which includes: a computer program code, and when the computer program code is run on a computer, the computer executes the method provided in any of the above processes.

[0222] The present application also provides a chip, including a processor, which is coupled to a memory and is used to execute a computer program or instruction stored in the memory. When the processor executes the computer program or instruction, the method provided in any of the above processes is implemented.

[0223] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) that contain computer-usable program code.

[0224] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0225] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0226] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A communication method, characterized in that: include: The session management function network element establishes a protocol data unit session in the first network for the terminal device, wherein the protocol data unit session includes a first quality of service flow; The session management function network element sends a first message to the authentication authorization accounting server, where the first message includes an identifier of a first accounting session corresponding to the first quality of service flow; The session management function network element determines that the terminal device switches from the first network to the second network; The session management function network element maps the first quality of service flow to a corresponding first bearer in the second network; The session management function network element sends a second message to the authentication authorization accounting server; The second message includes an identifier of a first accounting session corresponding to the first quality of service flow and information about the first bearer, and the second message is used to instruct the authentication authorization accounting server to update the first accounting session.

2. The method according to claim 1, characterized in that The protocol data unit session also includes a second quality of service flow; the method also includes: The session management function network element sends a third message to the authentication authorization accounting server, where the third message includes an identifier of a second accounting session corresponding to the second quality of service flow; The session management function network element maps the second quality of service flow to the first bearer; The session management function network element sends a fourth message to the authentication authorization accounting server, wherein the fourth message includes an identifier of a second accounting session corresponding to the second quality of service flow and information about the first bearer, and the fourth message is used to instruct the authentication authorization accounting server to update the second accounting session.

3. The method according to claim 1, characterized in that The method further comprises: The session management function network element receives a disconnection request message from the authentication authorization accounting server, where the disconnection request message includes an identifier of the first accounting session, and the disconnection request message is used to request deletion of resources corresponding to the first quality of service flow; The session management function network element sends a bearer update request to the serving gateway, where the bearer update request is used to request deletion of resources corresponding to the first quality of service flow.

4. The method according to claim 1, characterized in that: The protocol data unit session also includes a third quality of service flow; the method also includes: The session management function network element maps the third quality of service flow of the terminal device to the first bearer; The session management function network element sends first stop indication information and an identifier of a third accounting session corresponding to the third quality of service flow to the authentication authorization and accounting server, wherein the first stop indication information is used to instruct the authentication authorization and accounting server to stop the third accounting session.

5. The method according to any one of claims 1 to 4, characterized in that: The protocol data unit session also includes a fourth quality of service flow, and the method further includes: The session management function network element sends a fifth message to the authentication authorization accounting server, where the fifth message includes an identifier of a fourth accounting session corresponding to the fourth quality of service flow; After the session management function network element determines that the terminal device switches from the first network to the second network, determining that the fourth quality of service flow is not mapped to a bearer in the second network; The session management function network element sends second stop indication information and an identifier of a fourth accounting session corresponding to the fourth quality of service flow to the authentication authorization and accounting server, where the second stop indication information is used to instruct the authentication authorization and accounting server to stop the fourth accounting session.

6. The method according to any one of claims 1 to 4, characterized in that: The identifier of the first accounting session includes a first charging identifier, an address of the session management function network element, and identification information of the first quality of service flow, and the first charging identifier is a charging identifier allocated by the session management function network element to the protocol data unit session.

7. The method according to claim 5, characterized in that The identifier of the first accounting session includes a first charging identifier, an address of the session management function network element, and identification information of the first quality of service flow, and the first charging identifier is a charging identifier allocated by the session management function network element to the protocol data unit session.

8. The method according to claim 2, characterized in that: The identifier of the second accounting session includes the first charging identifier, the address of the session management function network element, and the identification information of the second quality of service flow.

9. The method according to any one of claims 1 to 4, characterized in that: The information of the first bearer includes at least one of the following: The wireless access type corresponding to the first bearer; and the quality of service document corresponding to the first bearer.

10. The method according to claim 5, characterized in that The information of the first bearer includes at least one of the following: The wireless access type corresponding to the first bearer; and the quality of service document corresponding to the first bearer.

11. The method according to claim 6, characterized in that The information of the first bearer includes at least one of the following: The wireless access type corresponding to the first bearer; and the quality of service document corresponding to the first bearer.

12. The method according to claim 9, characterized in that The information of the first bearer also includes a second charging identifier allocated by the session management function network element to the first bearer.

13. The method according to claim 10, characterized in that The information of the first bearer also includes a second charging identifier allocated by the session management function network element to the first bearer.

14. The method according to claim 11, characterized in that The information of the first bearer also includes a second charging identifier allocated by the session management function network element to the first bearer.

15. The method according to claim 8, characterized in that The method further comprises: After the session management function network element determines that the terminal device switches from the second network to the first network, mapping the first bearer to a corresponding fifth quality of service flow in the first network; The session management function network element sends a sixth message to the authentication authorization accounting server; The sixth message includes the identifier of the first accounting session and information corresponding to the fifth quality of service flow, and the sixth message is used to instruct the authentication authorization accounting server to update the first accounting session.

16. The method according to claim 15, characterized in that The information corresponding to the fifth quality of service flow includes one or more of the following: The wireless access type corresponding to the fifth quality of service flow; and the quality of service document corresponding to the fifth quality of service flow.

17. The method according to claim 15, characterized in that The information corresponding to the fifth quality of service flow also includes the first charging identifier.

18. The method according to claim 15, characterized in that The method further comprises: After the session management function network element determines that the terminal device switches from the second network to the first network, mapping the first bearer to a sixth quality of service flow corresponding to the first network; The session management function network element sends a seventh message to the authentication authorization accounting server; The seventh message includes the identifier of the second accounting session and information corresponding to the sixth quality of service flow, and the sixth message is used to instruct the authentication authorization accounting server to update the second accounting session.

19. A communication device, characterized in that: include: A processing unit, configured to establish a protocol data unit session in a first network for a terminal device, wherein the protocol data unit session includes a first quality of service flow; A communication unit, configured to send a first message to an authentication authorization accounting server, wherein the first message includes an identifier of a first accounting session corresponding to the first quality of service flow; The processing unit is configured to determine that the terminal device switches from the first network to the second network, and map the first quality of service flow to a corresponding first bearer in the second network; The communication unit is used to send a second message to the authentication authorization accounting server; The second message includes an identifier of a first accounting session corresponding to the first quality of service flow and information about the first bearer, and the second message is used to instruct the authentication authorization accounting server to update the first accounting session.

20. The device according to claim 19, characterized in that The protocol data unit session also includes a second quality of service flow; The communication unit is also used for: Sending a third message to the authentication authorization accounting server, wherein the third message includes an identifier of a second accounting session corresponding to the second quality of service flow; The processing unit is further configured to: map the second quality of service flow to the first bearer; The communication unit is further used to: send a fourth message to the authentication authorization accounting server, wherein the fourth message includes an identifier of a second accounting session corresponding to the second quality of service flow and information about the first bearer, and the fourth message is used to instruct the authentication authorization accounting server to update the second accounting session.

21. The device according to claim 19, characterized in that The communication unit is further configured to receive a disconnection request message from the authentication authorization accounting server, the disconnection request message including an identifier of the first accounting session, and the disconnection request message is used to request deletion of resources corresponding to the first quality of service flow; Sending a bearer update request to a serving gateway, where the bearer update request is used to request deletion of resources corresponding to the first quality of service flow.

22. The device according to claim 19, characterized in that The protocol data unit session further includes a third quality of service flow; and the processing unit is further configured to: Mapping the third quality of service flow of the terminal device to the first bearer; The communication unit is further configured to send first stop indication information and an identifier of a third accounting session corresponding to the third quality of service flow to the authentication authorization and accounting server, wherein the first stop indication information is used to instruct the authentication authorization and accounting server to stop the third accounting session.

23. The device according to any one of claims 19 to 22, characterized in that The protocol data unit session further includes a fourth quality of service flow, and the communication unit is further configured to: Sending a fifth message to the authentication authorization accounting server, wherein the fifth message includes an identifier of a fourth accounting session corresponding to the fourth quality of service flow; The processing unit is further configured to: after determining that the terminal device switches from the first network to the second network, determine that the fourth quality of service flow is not mapped to a bearer in the second network; The communication unit is further configured to send second stop indication information and an identifier of a fourth accounting session corresponding to the fourth quality of service flow to the authentication authorization and accounting server, wherein the second stop indication information is used to instruct the authentication authorization and accounting server to stop the fourth accounting session.

24. The device according to any one of claims 19 to 22, characterized in that The identifier of the first accounting session includes a first charging identifier, an address of a session management function network element, and identification information of the first quality of service flow, wherein the first charging identifier is a charging identifier allocated by the session management function network element to the protocol data unit session.

25. The device according to claim 23, characterized in that The identifier of the first accounting session includes a first charging identifier, an address of a session management function network element, and identification information of the first quality of service flow, wherein the first charging identifier is a charging identifier allocated by the session management function network element to the protocol data unit session.

26. The device according to claim 20, characterized in that The identifier of the second accounting session includes the first charging identifier, the address of the session management function network element, and the identification information of the second quality of service flow.

27. The device according to any one of claims 19 to 22, characterized in that The information of the first bearer includes at least one of the following: The wireless access type corresponding to the first bearer; and the quality of service document corresponding to the first bearer.

28. The device according to claim 23, characterized in that The information of the first bearer includes at least one of the following: The wireless access type corresponding to the first bearer; and the quality of service document corresponding to the first bearer.

29. The device according to claim 24, characterized in that The information of the first bearer includes at least one of the following: The wireless access type corresponding to the first bearer; and the quality of service document corresponding to the first bearer.

30. The device according to claim 27, characterized in that The information of the first bearer also includes a second charging identifier allocated by the session management function network element to the first bearer.

31. The device according to claim 28, characterized in that The information of the first bearer also includes a second charging identifier allocated by the session management function network element to the first bearer.

32. The device according to claim 29, characterized in that The information of the first bearer also includes a second charging identifier allocated by the session management function network element to the first bearer.

33. The device according to claim 26, characterized in that The processing unit is also used for: After determining that the terminal device switches from the second network to the first network, mapping the first bearer to a corresponding fifth quality of service flow in the first network; The communication unit is further used to: send a sixth message to the authentication authorization accounting server; The sixth message includes the identifier of the first accounting session and information corresponding to the fifth quality of service flow, and the sixth message is used to instruct the authentication authorization accounting server to update the first accounting session.

34. The device according to claim 33, characterized in that The information corresponding to the fifth quality of service flow includes one or more of the following: The wireless access type corresponding to the fifth quality of service flow; and the quality of service document corresponding to the fifth quality of service flow.

35. The device according to claim 33, characterized in that The information corresponding to the fifth quality of service flow also includes the first charging identifier.

36. The device according to claim 33, characterized in that The processing unit is also used for: After determining that the terminal device switches from the second network to the first network, mapping the first bearer to a sixth quality of service flow corresponding to the first network; The communication unit is further used to: send a seventh message to the authentication authorization accounting server; The seventh message includes the identifier of the second accounting session and information corresponding to the sixth quality of service flow, and the sixth message is used to instruct the authentication authorization accounting server to update the second accounting session.

37. A communication device, characterized in that: include: A memory and a processor, wherein the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory, and the execution of the instructions stored in the memory enables the processor to execute the method according to any one of claims 1 to 18.

38. A computer-readable storage medium, characterized in that: The method comprises computer-readable instructions, and when a communication device reads and executes the computer-readable instructions, the communication device executes the method according to any one of claims 1 to 18.

39. A computer program product, characterized in that The method comprises computer-readable instructions, and when a communication device reads and executes the computer-readable instructions, the communication device executes the method according to any one of claims 1 to 18.

Citation Information

Patent Citations

  • Manual roaming and data usage rights

    CN110999344A

  • Methods and nodes for facilitating a PDU session procedure in interworking networks

    CN111052800A

  • Tracking QOS violated events

    US20190253917A1