CN112449358B - Method and device for counting service flow - Google Patents
Method and device for counting service flow Download PDFInfo
- Publication number
- CN112449358B CN112449358B CN201910818906.7A CN201910818906A CN112449358B CN 112449358 B CN112449358 B CN 112449358B CN 201910818906 A CN201910818906 A CN 201910818906A CN 112449358 B CN112449358 B CN 112449358B
- Authority
- CN
- China
- Prior art keywords
- urr
- network element
- session
- user plane
- flow
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种统计业务流量的方法和装置,涉及通信领域,能够提高SMF和UPF之间查询和上报流量精确度,降低信令开销。其方法为:第一用户平面功能接收会话管理功能发送的会话建立请求,会话建立请求包括会话流对应的至少一个使用上报规则URR信元,每个URR信元包括流量阈值;第一用户平面功能接收第一下行数据包,第一下行数据包包括会话流的标识、第一URR位图表以及会话流的累积流量;URR位图表用于指示累积流量涉及到的URR信元;第一用户平面功能根据第一下行数据包统计URR位图表指示的URR信元的新增流量,若新增流量达到URR位图表指示的URR信元对应的流量阈值,则第一用户平面功能向会话管理功能发送URR通知。本申请实施例用于多UPF间流量上报。
The present application discloses a method and a device for counting service traffic, which relate to the field of communications and can improve the accuracy of querying and reporting traffic between SMF and UPF, and reduce signaling overhead. The method is as follows: the first user plane function receives a session establishment request sent by the session management function, the session establishment request includes at least one usage reporting rule URR information element corresponding to the session flow, and each URR information element includes a traffic threshold; the first user plane function Receive the first downlink data packet, where the first downlink data packet includes the identifier of the session flow, the first URR bitmap, and the cumulative flow of the session flow; the URR bitmap is used to indicate the URR cells involved in the cumulative flow; the first user The plane function counts the newly added traffic of the URR cell indicated by the URR bitmap according to the first downlink data packet. If the newly added traffic reaches the traffic threshold corresponding to the URR cell indicated by the URR bitmap, the first user plane function will report to the session management. Function to send URR notifications. This embodiment of the present application is used for traffic reporting between multiple UPFs.
Description
技术领域technical field
本申请涉及通信领域,尤其涉及一种统计业务流量的方法和装置。The present application relates to the field of communications, and in particular, to a method and apparatus for counting service traffic.
背景技术Background technique
第五代移动通信技术(5th generation mobile networks,5G)网络致力于应对未来多样化和差异化业务的巨大挑战,不仅需要继续面对移动互联网业务带来的挑战,同时还需要满足垂直行业多样化的业务需求,例如超高速率、超低时延以及超高流量等苛刻的要求。因此,在5G网络架构中,定义了上行分类器(uplink classifier,UL CL)或分支点(branching point,BP)功能来实现应用在网络中的灵活部署,应用和网络协同选择最优的数据路径,实现最低传输成本和最高效率地提供带宽以降低业务时延。The 5th generation mobile networks (5G) network is committed to coping with the huge challenges of future diversification and differentiated services. It not only needs to continue to face the challenges brought by mobile Internet services, but also needs to meet the diversification of vertical industries. business requirements, such as ultra-high speed, ultra-low latency, and ultra-high traffic. Therefore, in the 5G network architecture, uplink classifier (UL CL) or branching point (branching point, BP) functions are defined to realize flexible deployment of applications in the network, and applications and networks cooperate to select the optimal data path , to achieve the lowest transmission cost and the highest efficiency to provide bandwidth to reduce service delay.
具体实现时,5G网络允许一个会话同时具备多个用户平面功能(user planefunction,UPF)和多个会话锚点(session anchor),5G网络可以通过UL CL/BP控制不同的业务流选择不同的session anchor,从而满足业务多样性的需求。当一个会话具有多个UPF场景时,计费功能(charging function,CHF)可以给予所有UPF进行流量的配额管理,同时需要会话管理功能(session management function,SMF)对配额进行二次管理,以在多个UPF间进行协调分配,当SMF确定这一个会话的配额在多个UPF中的使用量达到阈值后向CHF上报流量。其中,SMF在对配额进行二次管理时,需要在多个UPF间进行协调分配,SMF和UPF之间会存在多次查询和上报,这种多次查询和上报的方式,难以精确控制配额门限,也就是说,SMF最终汇总的流量也有可能会超过阈值后才上报给CHF,使得流量统计和上报并不精确。况且,当两个UPF上报流量的时机不一致时,如果SMF主动向UPF查询流量又会产生时间损耗,尤其在配额耗尽的场景中,增加了SMF和UPF之间的信令交互。In the specific implementation, the 5G network allows a session to have multiple user plane functions (UPF) and multiple session anchors (session anchors) at the same time, and the 5G network can control different service flows through UL CL/BP and select different sessions. anchor, so as to meet the needs of business diversity. When a session has multiple UPF scenarios, the charging function (CHF) can give all UPFs the quota management of traffic, and the session management function (SMF) is required to perform secondary management of the quota, so as to Coordinate allocation is performed among multiple UPFs, and when SMF determines that the usage of the quota of this session in multiple UPFs reaches the threshold, it reports traffic to CHF. Among them, when SMF performs secondary management of quota, it needs to coordinate and allocate among multiple UPFs. There will be multiple queries and reports between SMF and UPF. This method of multiple queries and reports makes it difficult to accurately control the quota threshold. , that is to say, the traffic finally aggregated by SMF may exceed the threshold before being reported to CHF, which makes traffic statistics and reporting inaccurate. Moreover, when the timings of the two UPFs reporting traffic are inconsistent, if the SMF actively queries the UPF for traffic, time will be lost, especially in the scenario of quota exhaustion, which increases the signaling interaction between the SMF and the UPF.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种统计业务流量的方法和装置,能够提高SMF和UPF之间查询和上报流量精确度,降低信令开销。The embodiments of the present application provide a method and apparatus for counting service traffic, which can improve the accuracy of querying and reporting traffic between SMF and UPF, and reduce signaling overhead.
第一方面,提供一种统计业务流量的方法,包括:第一用户平面功能接收会话管理功能发送的会话建立请求,会话建立请求包括会话流对应的至少一个使用上报规则URR信元,每个URR信元包括流量阈值;第一用户平面功能接收第一下行数据包,第一下行数据包包括会话流的标识、第一URR位图表以及会话流的累积流量;URR位图表用于指示累积流量涉及到的URR信元;第一用户平面功能根据第一下行数据包统计URR位图表指示的URR信元的新增流量,若新增流量达到URR位图表指示的URR信元对应的流量阈值,则第一用户平面功能向会话管理功能发送URR通知,URR通知用于为达到流量阈值的URR信元申请新的流量阈值。由此,本申请实施例可以通过在会话锚点(PSA)向第一用户平面功能发送的下行数据包中携带URR位图表,以指示需统计流量的URR信元或者业务,可以便于第一用户平面功能根据URR位图表进行流量统计,以确定是否向SMF发送URR通知,去申请新的流量阈值。这样通过在下行数据包中携带流URR位图表,并且通过第一用户平面功能进行汇总的方式,可以减少会话锚点与SMF之间进行多次信令交互的带来的功耗,也使得流量统计实时准确。A first aspect provides a method for counting service traffic, including: a first user plane function receives a session establishment request sent by a session management function, where the session establishment request includes at least one usage reporting rule URR information element corresponding to the session flow, and each URR The information element includes the traffic threshold; the first user plane function receives the first downlink data packet, and the first downlink data packet includes the identifier of the session flow, the first URR bitmap, and the cumulative flow of the session flow; the URR bitmap is used to indicate the cumulative flow URR cells involved in the traffic; the first user plane function counts the newly added traffic of the URR cells indicated by the URR bitmap according to the first downlink data packet, if the newly added traffic reaches the traffic corresponding to the URR cells indicated by the URR bitmap threshold, the first user plane function sends a URR notification to the session management function, where the URR notification is used to apply for a new traffic threshold for the URR cells that reach the traffic threshold. Therefore, in this embodiment of the present application, the URR bitmap can be carried in the downlink data packet sent by the Session Anchor Point (PSA) to the first user plane function to indicate the URR cells or services that need to be counted, which can facilitate the first user The plane function conducts traffic statistics according to the URR bitmap to determine whether to send a URR notification to the SMF to apply for a new traffic threshold. In this way, by carrying the stream URR bitmap in the downlink data packet and summarizing it through the first user plane function, the power consumption caused by the multiple signaling interactions between the session anchor and the SMF can be reduced, and the traffic flow can also be reduced. Statistics are accurate in real time.
在一种可能的设计中,第一用户平面功能为上行分类器UL CL或分支点BP;第一用户平面功能接收第一下行数据包包括:第一用户平面功能接收第二用户平面功能发送的第一下行数据包,第二用户平面功能为协议数据单元PDU会话锚点PSA。In a possible design, the first user plane function is an uplink classifier UL CL or a branch point BP; the first user plane function receiving the first downlink data packet includes: the first user plane function receiving and sending the second user plane function The first downlink data packet, the second user plane function is the protocol data unit PDU session anchor PSA.
在一种可能的设计中,每个URR信元还包括URR位图下标;URR位图表包括至少一个比特值,比特值与URR位图下标对应,比特值为第一指示值或第二指示值,第一指示值用于指示URR位图下标对应的URR信元需累积流量,第二指示值用于指示URR位图下标对应的URR信元不需要累积流量。例如,第一指示值为1,第二指示值为0。由于URR位图表中的比特有两种比特值,UL CL/BP可以根据第一指示值确定比特对应的URR位图下标,进而可以统计出URR位图下标对应的URR信元的新增流量。In a possible design, each URR cell further includes a URR bitmap subscript; the URR bitmap includes at least one bit value, the bit value corresponds to the URR bitmap subscript, and the bit value is the first indicated value or the second Indication value, the first indication value is used to indicate that the URR cell corresponding to the URR bitmap subscript needs to accumulate traffic, and the second indicator value is used to indicate that the URR cell corresponding to the URR bitmap subscript does not need to accumulate traffic. For example, the first indication value is 1, and the second indication value is 0. Since the bits in the URR bitmap have two bit values, the UL CL/BP can determine the URR bitmap subscript corresponding to the bit according to the first indication value, and then can count the newly added URR cells corresponding to the URR bitmap subscript. flow.
在一种可能的设计中,每个URR信元还包括一个URR标识;在每个URR信元中,一个URR标识一个URR位图下标映射。或者,本申请也可以不使用URR位图下标,复用URR标识参与流量统计。使用URR位图下标是考虑到用户签约的业务种类相对URR标识来说较少,使用URR位图下标占用的比特大小较小。In a possible design, each URR cell further includes a URR identifier; in each URR cell, one URR identifier is a URR bitmap subscript mapping. Alternatively, the present application may not use the URR bitmap subscript, but reuse the URR identifier to participate in traffic statistics. The use of the URR bitmap subscript takes into account that the service types subscribed by the user are less than the URR identifier, and the bit size occupied by using the URR bitmap subscript is small.
在一种可能的设计中,第一用户平面功能根据第一下行数据包统计第一位图表指示的URR信元的新增流量包括:第一用户平面功能获取第一下行数据包中携带的累积流量与前一次接收到的第二下行数据包中携带的累积流量的差值,差值为URR位图表指示的URR信元对应的新增流量。这种通过在下行数据包中携带累积流量,以获得新增流量的方式,可以避免多次信令交互进行流量统计带来的信令开销。In a possible design, the first user plane function counts, according to the first downlink data packet, the newly added traffic of the URR information element indicated by the first table, including: the first user plane function obtains the information carried in the first downlink data packet The difference between the accumulated traffic and the accumulated traffic carried in the previously received second downlink data packet, the difference is the newly added traffic corresponding to the URR cell indicated by the URR bitmap. In this way, by carrying the accumulated traffic in the downlink data packets to obtain the newly added traffic, the signaling overhead caused by performing traffic statistics through multiple signaling interactions can be avoided.
在一种可能的设计中,第一下行数据包还包括会话流的起始标记;起始标记用于指示第一下行数据包为会话流的首个下行数据包;或,第一下行数据包还包括结束标记,结束标记用于指示第一下行数据包为会话流的最后一个下行数据包;该方法还包括:若第一下行数据包包括起始标记,则第一用户平面功能记录会话流的标识;若第一下行数据包包括结束标记,则第一用户平面功能删除第会话流的标识。这样,通过携带起始标记和结束标记可以使得第一用户平面功能及时记录和删除会话流的相关参数。In a possible design, the first downlink data packet further includes a start mark of the session flow; the start mark is used to indicate that the first downlink data packet is the first downlink data packet of the session flow; or, the first downlink data packet is the first downlink data packet of the session flow. The line data packet further includes an end mark, and the end mark is used to indicate that the first downlink data packet is the last downlink data packet of the session flow; the method further includes: if the first downlink data packet includes a start mark, the first user The plane function records the identification of the session flow; if the first downlink data packet includes an end marker, the first user plane function deletes the identification of the first session flow. In this way, by carrying the start marker and the end marker, the first user plane function can record and delete the relevant parameters of the session flow in time.
第二方面,提供一种统计业务流量的方法,包括:会话管理功能向第一用户平面功能发送会话建立请求,会话建立请求中包括会话流对应的至少一个使用量上报规则URR信元,每个URR信元包括流量阈值;会话管理功能接收第一用户平面功能发送的URR通知,URR通知用于为会话流中达到流量阈值的URR信元申请新的流量阈值;会话管理功能向策略控制功能PCF发送URR通知,以获取新的流量阈值。第二方面的有益效果可以参见第一方面,此处不再赘述。A second aspect provides a method for counting service traffic, including: a session management function sends a session establishment request to a first user plane function, where the session establishment request includes at least one usage reporting rule URR information element corresponding to the session flow, each The URR cell includes the traffic threshold; the session management function receives the URR notification sent by the first user plane function, and the URR notification is used to apply for a new traffic threshold for the URR cell in the session flow that reaches the traffic threshold; the session management function reports to the policy control function PCF Send URR notifications for new traffic thresholds. For the beneficial effects of the second aspect, reference may be made to the first aspect, which will not be repeated here.
在一种可能的设计中,第一用户平面功能为上行分类器UL CL或分支点BP;会话建立请求用于指示第一用户平面功能在确定URR信元的新增流量达到对应的流量阈值时,向会话管理功能发送URR通知。In a possible design, the first user plane function is an uplink classifier UL CL or a branch point BP; the session establishment request is used to instruct the first user plane function when determining that the newly added traffic of the URR cell reaches a corresponding traffic threshold , which sends a URR notification to the session management function.
在一种可能的设计中,每个URR信元还包括URR位图下标;URR位图下标与URR位图表包括的至少一个比特对应,比特对应的比特值为第一指示值或第二指示值,第一指示值用于指示URR位图下标对应的URR信元需累积流量,第二指示值用于指示URR位图下标对应的URR信元不需要累积流量。In a possible design, each URR cell further includes a URR bitmap subscript; the URR bitmap subscript corresponds to at least one bit included in the URR bitmap, and the bit value corresponding to the bit is the first indicated value or the second Indication value, the first indication value is used to indicate that the URR cell corresponding to the URR bitmap subscript needs to accumulate traffic, and the second indicator value is used to indicate that the URR cell corresponding to the URR bitmap subscript does not need to accumulate traffic.
在一种可能的设计中,每个URR信元还包括URR标识;每个URR信元中,一个URR标识与一个URR位图下标映射。In a possible design, each URR cell further includes a URR identifier; in each URR cell, a URR identifier is mapped to a URR bitmap subscript.
在一种可能的设计中,该方法还包括:会话管理功能接收PCF发送的URR响应,URR响应包括新的流量阈值;会话管理功能向第一用户平面功能发送URR更新通知,URR更新通知包括新的流量阈值。In a possible design, the method further includes: the session management function receives a URR response sent by the PCF, where the URR response includes a new traffic threshold; the session management function sends a URR update notification to the first user plane function, where the URR update notification includes the new traffic threshold. flow threshold.
在一种可能的设计中,该方法还包括:会话管理功能确定第一用户平面功能删除时,若会话管理功能需更新URR信元,则会话管理功能向第二用户平面功能发送会话更新请求,第二用户平面功能为与第一用户平面功能存在会话关联的协议数据单元PDU会话锚点PSA,会话更新请求用于指示第二用户平面功能向会话管理功能发送URR通知。也就是说,当第一用户平面功能(UL CL/BP)删除时,第二用户平面功能(PSA)可以直接向会话管理功能(SMF)上报流量。In a possible design, the method further includes: when the session management function determines that the first user plane function is deleted, if the session management function needs to update the URR information element, the session management function sends a session update request to the second user plane function, The second user plane function is a protocol data unit PDU session anchor PSA associated with the first user plane function, and the session update request is used to instruct the second user plane function to send a URR notification to the session management function. That is, when the first user plane function (UL CL/BP) is deleted, the second user plane function (PSA) can directly report traffic to the session management function (SMF).
第三方面,提供一种用户平面功能,用户平面功能为第一用户平面功能,第一用户平面功能包括:接收模块,用于接收会话管理功能发送的会话建立请求,会话建立请求包括会话流对应的至少一个使用上报规则URR信元,每个URR信元包括流量阈值;接收模块,还用于接收第一下行数据包,第一下行数据包包括会话流的标识、第一URR位图表以及会话流的累积流量;URR位图表用于指示累积流量涉及到的URR信元;处理模块,用于根据第一下行数据包统计URR位图表指示的URR信元的新增流量;发送模块,还用于若新增流量达到URR位图表指示的URR信元对应的流量阈值,则向会话管理功能发送URR通知,URR通知用于为达到流量阈值的URR信元申请新的流量阈值。A third aspect provides a user plane function, where the user plane function is a first user plane function, and the first user plane function includes: a receiving module configured to receive a session establishment request sent by a session management function, where the session establishment request includes a session flow corresponding at least one use reporting rule URR cell, each URR cell includes a traffic threshold; the receiving module is also used to receive the first downlink data packet, the first downlink data packet includes the identifier of the session flow, the first URR bitmap And the cumulative flow of the session flow; the URR bitmap is used to indicate the URR cells involved in the cumulative flow; the processing module is used to count the new traffic of the URR cells indicated by the URR bitmap according to the first downlink data packet; the sending module , and is also used to send a URR notification to the session management function if the newly added traffic reaches the traffic threshold corresponding to the URR cell indicated by the URR bitmap, and the URR notification is used to apply for a new traffic threshold for the URR cell that reaches the traffic threshold.
在一种可能的设计中,第一用户平面功能为上行分类器UL CL或分支点BP;接收模块用于:接收第二用户平面功能发送的第一下行数据包,第二用户平面功能为协议数据单元PDU会话锚点PSA。In a possible design, the first user plane function is the uplink classifier UL CL or the branch point BP; the receiving module is configured to: receive the first downlink data packet sent by the second user plane function, and the second user plane function is Protocol Data Unit PDU Session Anchor PSA.
在一种可能的设计中,每个URR信元还包括URR位图下标;URR位图表包括至少一个比特值,比特值与URR位图下标对应,比特值为第一指示值或第二指示值,第一指示值用于指示URR位图下标对应的URR信元需累积流量,第二指示值用于指示URR位图下标对应的URR信元不需要累积流量。In a possible design, each URR cell further includes a URR bitmap subscript; the URR bitmap includes at least one bit value, the bit value corresponds to the URR bitmap subscript, and the bit value is the first indicated value or the second Indication value, the first indication value is used to indicate that the URR cell corresponding to the URR bitmap subscript needs to accumulate traffic, and the second indicator value is used to indicate that the URR cell corresponding to the URR bitmap subscript does not need to accumulate traffic.
在一种可能的设计中,每个URR信元还包括一个URR标识;在每个URR信元中,一个URR标识一个URR位图下标映射。In a possible design, each URR cell further includes a URR identifier; in each URR cell, one URR identifier is a URR bitmap subscript mapping.
在一种可能的设计中,处理模块用于:获取第一下行数据包中携带的累积流量与前一次接收到的第二下行数据包中携带的累积流量的差值,差值为URR位图表指示的URR信元对应的新增流量。In a possible design, the processing module is configured to: obtain the difference between the cumulative flow carried in the first downlink data packet and the cumulative flow carried in the second downlink data packet received previously, and the difference is the URR bit The newly added traffic corresponding to the URR cell indicated by the chart.
在一种可能的设计中,第一下行数据包还包括会话流的起始标记;起始标记用于指示第一下行数据包为会话流的首个下行数据包;或,第一下行数据包还包括结束标记,结束标记用于指示第一下行数据包为会话流的最后一个下行数据包;处理模块还用于:若第一下行数据包包括起始标记,则记录会话流的标识;若第一下行数据包包括结束标记,则删除第会话流的标识。In a possible design, the first downlink data packet further includes a start mark of the session flow; the start mark is used to indicate that the first downlink data packet is the first downlink data packet of the session flow; or, the first downlink data packet is the first downlink data packet of the session flow. The line data packet further includes an end mark, and the end mark is used to indicate that the first downlink data packet is the last downlink data packet of the session flow; the processing module is further used for: if the first downlink data packet includes a start mark, record the session The identifier of the flow; if the first downlink data packet includes an end marker, the identifier of the first session flow is deleted.
第四方面,提供一种会话管理功能,包括:发送模块,用于向第一用户平面功能发送会话建立请求,会话建立请求中包括会话流对应的至少一个使用量上报规则URR信元,每个URR信元包括流量阈值;接收模块,用于接收第一用户平面功能发送的URR通知,URR通知用于为会话流中达到流量阈值的URR信元申请新的流量阈值;发送模块,用于向策略控制功能PCF发送URR通知,以获取新的流量阈值。A fourth aspect provides a session management function, comprising: a sending module configured to send a session establishment request to a first user plane function, where the session establishment request includes at least one usage reporting rule URR information element corresponding to a session flow, each The URR cell includes a flow threshold; the receiving module is used to receive the URR notification sent by the first user plane function, and the URR notification is used to apply for a new flow threshold for the URR cell in the session flow that reaches the flow threshold; the sending module is used to send The Policy Control Function PCF sends URR notifications for new traffic thresholds.
在一种可能的设计中,第一用户平面功能为上行分类器UL CL或分支点BP;会话建立请求用于指示第一用户平面功能在确定URR信元的新增流量达到对应的流量阈值时,向会话管理功能发送URR通知。In a possible design, the first user plane function is an uplink classifier UL CL or a branch point BP; the session establishment request is used to instruct the first user plane function when determining that the newly added traffic of the URR cell reaches a corresponding traffic threshold , which sends a URR notification to the session management function.
在一种可能的设计中,每个URR信元还包括URR位图下标;URR位图下标与URR位图表包括的至少一个比特对应,比特对应的比特值为第一指示值或第二指示值,第一指示值用于指示URR位图下标对应的URR信元需累积流量,第二指示值用于指示URR位图下标对应的URR信元不需要累积流量。In a possible design, each URR cell further includes a URR bitmap subscript; the URR bitmap subscript corresponds to at least one bit included in the URR bitmap, and the bit value corresponding to the bit is the first indicated value or the second Indication value, the first indication value is used to indicate that the URR cell corresponding to the URR bitmap subscript needs to accumulate traffic, and the second indicator value is used to indicate that the URR cell corresponding to the URR bitmap subscript does not need to accumulate traffic.
在一种可能的设计中,每个URR信元还包括URR标识;每个URR信元中,一个URR标识与一个URR位图下标映射。In a possible design, each URR cell further includes a URR identifier; in each URR cell, a URR identifier is mapped to a URR bitmap subscript.
在一种可能的设计中,接收模块,还用于接收PCF发送的URR响应,URR响应包括新的流量阈值;发送模块,还用于向第一用户平面功能发送URR更新通知,URR更新通知包括新的流量阈值。In a possible design, the receiving module is further configured to receive a URR response sent by the PCF, where the URR response includes a new traffic threshold; the sending module is further configured to send a URR update notification to the first user plane function, where the URR update notification includes New traffic threshold.
在一种可能的设计中,发送模块,还用于:会话管理功能确定第一用户平面功能删除时,若会话管理功能需更新URR信元,则向第二用户平面功能发送会话更新请求,第二用户平面功能为与第一用户平面功能存在会话关联的协议数据单元PDU会话锚点PSA,会话更新请求用于指示第二用户平面功能向会话管理功能发送URR通知。In a possible design, the sending module is further configured to: when the session management function determines that the first user plane function is deleted, if the session management function needs to update the URR information element, send a session update request to the second user plane function, and the first The second user plane function is a protocol data unit PDU session anchor PSA associated with the first user plane function, and the session update request is used to instruct the second user plane function to send a URR notification to the session management function.
又一方面,本申请实施例提供了一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面和/或第二方面所设计的程序。In another aspect, an embodiment of the present application provides a computer-readable storage medium, including computer instructions, when the computer instructions are executed on an electronic device, the electronic device can execute the program designed in the first aspect and/or the second aspect. .
又一方面,本申请实施例提供了一种计算机程序产品,当其在计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面和/或第二方面的方法。In another aspect, an embodiment of the present application provides a computer program product, which, when the computer program product runs on an electronic device, enables the electronic device to execute the method of the first aspect and/or the second aspect.
附图说明Description of drawings
图1为一种多个UPF间进行协调分配流量的信令交互图;1 is a signaling interaction diagram for coordinating and distributing traffic among multiple UPFs;
图2为本申请实施例提供的一种网络架构的示意图;FIG. 2 is a schematic diagram of a network architecture provided by an embodiment of the present application;
图3为本申请实施例提供的一种网络架构的示意图;3 is a schematic diagram of a network architecture provided by an embodiment of the present application;
图4为本申请实施例提供的一种统计业务流量的方法流程示意图;FIG. 4 is a schematic flowchart of a method for counting service traffic provided by an embodiment of the present application;
图5为本申请实施例提供的一种统计业务流量的方法流程示意图;FIG. 5 is a schematic flowchart of a method for counting service traffic according to an embodiment of the present application;
图6为本申请实施例提供的一种UL CL/BP删除时统计业务流量的方法流程示意图;FIG. 6 is a schematic flowchart of a method for counting service traffic when UL CL/BP is deleted according to an embodiment of the present application;
图7为本申请实施例提供的一种电子设备的结构示意图;FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图8为本申请实施例提供的一种电子设备的结构示意图;FIG. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图9为本申请实施例提供的一种电子设备的结构示意图;FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图10为本申请实施例提供的一种电子设备的结构示意图;FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图11为本申请实施例提供的一种电子设备的结构示意图;FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the application;
图12为本申请实施例提供的一种电子设备的结构示意图。FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例可以应用于5G网络架构中,一个会话具备多个UPF的场景下,如何实时并准确地统计和上报业务流量。The embodiments of the present application can be applied to a 5G network architecture, in a scenario where a session has multiple UPFs, how to count and report service traffic in real time and accurately.
一个会话具备多个UPF场景时,如果CHF对会话配额进行统一管理,不区分UPF,则SMF需要对配额针对每个UPF进行二次管理,在多个UPF间进行协调分配的流程可以如图1所示。When a session has multiple UPFs, if CHF manages session quotas in a unified manner without distinguishing between UPFs, SMF needs to perform secondary management of quotas for each UPF. The process of coordinating allocation among multiple UPFs can be seen in Figure 1. shown.
1)SMF向策略控制功能(policy control function,PCF)发送会话管理策略关联(Npcf_smpolicyControl_Create)消息给PCF,确定需要策略控制和计费(policy controland charging,PCC)授权并请求与PCF建立会话管理(session management,SM)策略关联;1) The SMF sends a session management policy association (Npcf_smpolicyControl_Create) message to the PCF to the policy control function (PCF), determines that policy control and charging (PCC) authorization is required, and requests the establishment of session management (session management) with the PCF. management, SM) policy association;
2)SMF与CHF之间建立计费上下文(Npcf_ConvergedCharging_Create);2) Establish a charging context between SMF and CHF (Npcf_ConvergedCharging_Create);
3)SMF建立PDU会话锚点1(PDU(Protocol Data Unit,协议数据单元)sessionanchor,PSA)1;而后SMF与PSA1之间进行业务往来;3) SMF establishes PDU session anchor 1 (PDU (Protocol Data Unit, Protocol Data Unit) session anchor, PSA) 1; then SMF and PSA1 conduct business exchanges;
4)SMF建立PSA2;4) SMF establishes PSA2;
5)PSA1通过报文转发控制协议(Packet Forwarding Control Protocol,PFCP)会话通知(PFCP session report)向SMF上报流量已达到阈值;5) PSA1 reports to the SMF that the traffic has reached the threshold through the Packet Forwarding Control Protocol (PFCP) session report (PFCP session report);
6)为了保证PSA1和PSA2之间的配额合理分配,SMF向PSA2发送PFCP会话修正请求(PFCP session modification Request)消息,要求PSA2立即上报流量使用情况;6) In order to ensure a reasonable allocation of quotas between PSA1 and PSA2, SMF sends a PFCP session modification Request (PFCP session modification Request) message to PSA2, requesting PSA2 to report the traffic usage immediately;
7)SMF根据PSA1和PSA2上报的流量,再结合剩余的配额等信息,重新为PSA1和PSA2分配流量配额,向PSA1下发更新后的流量阈值;7) SMF re-allocates traffic quotas to PSA1 and PSA2 according to the traffic reported by PSA1 and PSA2, combined with the remaining quota and other information, and sends the updated traffic threshold to PSA1;
8)SMF向PSA2下发更新后的流量阈值。8) SMF sends the updated traffic threshold to PSA2.
上述步骤5-8可以重复执行,直到达到或者超过PCF/CHF下发的阈值/配额。The above steps 5-8 can be repeated until the threshold/quota issued by the PCF/CHF is reached or exceeded.
可以看出,为了保证PSA之间配额分配的合理性,SMF和PSA之间会有多次查询和上报,而且最终汇总的流量可能会超过阈值,难以精确控制配额门限。It can be seen that in order to ensure the rationality of quota allocation between PSAs, there will be multiple queries and reports between SMF and PSA, and the final aggregated traffic may exceed the threshold, making it difficult to precisely control the quota threshold.
针对此问题,本申请的设计思路是利用UL CL/BP的汇聚点特性进行URR上报,URR的识别由PSA完成并在下行报文中随包携带会话流对应的URR列表,从而达到对流量的精确统计和及时上报的目的。In view of this problem, the design idea of this application is to use the convergence point feature of UL CL/BP to report URR. The identification of URR is completed by PSA, and the URR list corresponding to the session flow is carried in the downlink packet, so as to achieve the traffic control. The purpose of accurate statistics and timely reporting.
下面首先为本申请的网络架构进行说明。The following first describes the network architecture of the present application.
本申请的网络架构可以如图2所示,包括终端设备、接入网(access network,AN)、用户平面功能、移动性管理网元、会话管理功能、策略控制功能、计费功能以及数据网络(data network,DN)等。The network architecture of the present application may be as shown in FIG. 2, including terminal equipment, access network (AN), user plane function, mobility management network element, session management function, policy control function, charging function and data network (data network, DN), etc.
其中,参考图3,终端设备可以为用户设备(user equipment,UE)、接入终端、UE单元、UE站、移动站、移动台、远方站、远程终端、移动设备、UE终端、终端、无线通信设备、UE代理或UE装置等。接入终端可以是蜂窝电话、无绳电话、会话启动协议(session initiationprotocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,5G网络中的终端或者演进的公共陆地移动网络(public land mobile network,PLMN)网络中的终端等。3, the terminal equipment may be user equipment (user equipment, UE), access terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal, mobile equipment, UE terminal, terminal, wireless Communication equipment, UE proxy or UE device, etc. The access terminal can be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a wireless communication function handheld devices, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminals in 5G networks or terminals in an evolved public land mobile network (PLMN) network, etc.
接入网AN可以包括能和终端设备通信的设备。例如接入网包括基站,基站可以是中继站或接入点等。基站可以是全球移动通信系统(global systemfor mobilecommunication,GSM)或码分多址(code division multiple access,CDMA)网络中的基站收发信台(base transceiver station,BTS),也可以是宽带码分多址(wideband codedivision multiple access,WCDMA)中的NB(NodeB),还可以是LTE中的eNB或eNodeB(evolutional NodeB)。基站还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器。基站还可以是5G网络中的网络设备或演进的PLMN网络中的网络设备;还可以是可穿戴设备或车载设备等。The access network AN may include devices capable of communicating with terminal devices. For example, the access network includes a base station, and the base station may be a relay station or an access point. The base station may be a base transceiver station (BTS) in a global system for mobile communication (GSM) or a code division multiple access (CDMA) network, or a wideband code division multiple access. The NB (NodeB) in (wideband code division multiple access, WCDMA) may also be an eNB or an eNodeB (evolutional NodeB) in LTE. The base station may also be a wireless controller in a cloud radio access network (cloud radio access network, CRAN) scenario. The base station can also be a network device in a 5G network or a network device in an evolved PLMN network; it can also be a wearable device or a vehicle-mounted device.
在5G网络架构中,用户平面功能可以为UPF,可以用于:线接入技术(radio accesstechnology,RAT)内/RAT间移动性的锚点(适用时);外部PDU与数据网络互连的会话点;分组路由和转发(例如,支持上行链路分类器以将业务流路由到数据网络的实例,支持分支点以支持多宿主PDU会话);数据包检查(例如,基于服务数据流模板的应用流程检测以及从SMF接收的可选包的流描述(packet flow description,PFD);用户平面部分策略规则实施,例如门控,重定向,流量转向);合法拦截;流量使用报告;用户平面的服务质量(Qualityof Service,QoS)处理,例如UL CL/DL速率实施,DL中的反射QoS标记;上行链路流量验证服务数据流(service data flow,SDF到QoS流量映射;上行链路和下行链路中的传输级分组标记;下行数据包缓冲和下行数据通知触发;将一个或多个“结束标记”发送和转发到源下一代无线接入网络(next generation radio access network,NG-RAN)节点等。In the 5G network architecture, the user plane function can be UPF, which can be used for: anchor point of intra/inter-RAT mobility (where applicable); external PDU and data network interconnection session point; packet routing and forwarding (e.g., support for uplink classifiers to route traffic flows to instances of the data network, support for branch points to support multi-homed PDU sessions); packet inspection (e.g., application based on service data flow templates) Flow detection and optional packet flow description (PFD) received from SMF; user plane part policy rule enforcement (eg gating, redirection, traffic diversion); lawful interception; traffic usage reporting; user plane services Quality of Service (QoS) processing such as UL CL/DL rate enforcement, reflective QoS marking in DL; uplink traffic verification service data flow (SDF to QoS traffic mapping; uplink and downlink) transport-level packet marking in the network; downlink packet buffering and downlink data notification triggering; sending and forwarding one or more "end markers" to the source next generation radio access network (NG-RAN) node, etc. .
在5G网络架构中,移动性管理网元可以为接入和移动管理功能(access mobilitymanagement function,AMF),可以用于:终止非接入层(non-access-stratum,NAS)(N1),NAS加密和完整性保护;注册管理;连接管理;可达性管理;流动性管理;合法拦截(适用于AMF事件和LI系统的接口;为UE和SMF之间的SM消息提供传输;用于路由SM消息的透明代理;接入身份验证;接入授权;在UE和SMF之间提供消息传输;监管服务的定位服务管理;为UE和位置管理功能(location management function,LMF)之间以及RAN和LMF之间的位置服务消息提供传输等。In the 5G network architecture, the mobility management network element can be an access and mobility management function (AMF), which can be used to: terminate a non-access-stratum (NAS) (N1), NAS Encryption and Integrity Protection; Registration Management; Connection Management; Reachability Management; Liquidity Management; Lawful Interception (interface for AMF events and LI systems; provides transport for SM messages between UE and SMF; for routing SM Transparent proxying of messages; access authentication; access authorization; providing message transport between UE and SMF; location service management of supervisory services; for UE and location management function (LMF) and between RAN and LMF Location service messages between provide transport, etc.
在5G网络架构中,会话管理功能可以为SMF,可以用于:会话管理;UE网际协议(internet protocol,IP)地址分配和管理;选择和控制UP功能;配置UPF的传输方向,将传输路由到正确的目的地;控制政策执行和QoS的一部分;下行链路数据通知;配置UPF的流量控制,将流量路由到正确的目的地;终止接口到策略控制功能等。In the 5G network architecture, the session management function can be SMF, which can be used for: session management; UE Internet Protocol (IP) address allocation and management; selecting and controlling the UP function; configuring the transmission direction of the UPF, and routing the transmission to Correct destination; part of controlling policy enforcement and QoS; downlink data notification; configuring UPF's flow control to route traffic to the correct destination; terminating interfaces to policy control functions, etc.
在5G网络架构中,策略控制功能可以为PCF,其功能可以包括:支持统一的策略框架来管理网络行为;为控制平面功能提供策略规则;访问与统一数据存储库(unified datarepository,UDR)中的策略决策相关的用户信息等。In the 5G network architecture, the policy control function can be PCF, and its functions can include: supporting a unified policy framework to manage network behavior; providing policy rules for control plane functions; accessing and unified data repository (unified data repository, UDR) in the User information related to policy decisions, etc.
在5G网络架构中,计费功能可以为CHF,可以用于融合的在线、离线计费。CHF接收计费触发功能(charging trigger function,CTF)(SMF可作为CTF)上报的计费信息,生成话单或者向CTF下发配额,对UE提供计费功能。In the 5G network architecture, the charging function can be CHF, which can be used for converged online and offline charging. The CHF receives the charging information reported by the charging trigger function (charging trigger function, CTF) (SMF can be used as the CTF), generates a CDR or issues a quota to the CTF, and provides a charging function for the UE.
数据网络DN可以包括多种设备,例如路由器、服务器等。The data network DN may include various devices, such as routers, servers, and the like.
在本申请实施例中,利用上述网络架构中的SMF和UPF,可以减少SMF和UPF之间的信令交互。在本申请实施例中,UPF可以为上行分类为UL CL,或者为分支点BP,ULCL可以为上行流量分类器,支持上行流量的分流,BP可以为会话的分支点,可以支持下行流量的合并。UPF也可以为PSA,即PDU会话锚点。图2中示出了有两个PSA,PSA1和PSA2。In the embodiment of the present application, by using the SMF and the UPF in the above-mentioned network architecture, the signaling interaction between the SMF and the UPF can be reduced. In this embodiment of the present application, the UPF may be an uplink classified as a UL CL, or a branch point BP. The ULCL may be an uplink traffic classifier, which supports the splitting of upstream traffic, and the BP may be a branch point of a session, which can support the merging of downstream traffic. . UPF can also be PSA, the PDU Session Anchor. There are two PSAs shown in Figure 2, PSA1 and PSA2.
以下实施例中的方法均可以在上述网络架构中实现。以下实施例中以上述网络架构为例,对本申请实施例的方法进行说明。The methods in the following embodiments can all be implemented in the above-mentioned network architecture. In the following embodiments, the above network architecture is taken as an example to describe the methods of the embodiments of the present application.
本申请实施例提供一种统计业务流量的方法,如图4所示,包括:An embodiment of the present application provides a method for counting service traffic, as shown in FIG. 4 , including:
301、会话管理功能向第一用户平面功能发送会话建立请求,会话建立请求中包括至少一个使用量上报规则URR信元,每个URR信元包括流量阈值。301. The session management function sends a session establishment request to the first user plane function, where the session establishment request includes at least one usage reporting rule URR information element, and each URR information element includes a traffic threshold.
在本申请实施例中,会话管理功能可以为SMF;用户平面功能可以为UPF,UPF可以作为UL CL或者BP,也可以为PSA。SMF向UPF发送会话建立请求时,该UPF为UC CL/BP。即第一用户平面功能为UC CL/BP,记为第一UPF。In the embodiment of the present application, the session management function may be SMF; the user plane function may be UPF, and the UPF may be used as UL CL or BP, or may be PSA. When the SMF sends a session establishment request to the UPF, the UPF is the UC CL/BP. That is, the first user plane function is UC CL/BP, which is denoted as the first UPF.
在本申请实施例中,URR信元中携带的流量阈值,可以指示第一UPF在统计流量达到流量阈值时,向SMF进行上报。In this embodiment of the present application, the traffic threshold carried in the URR information element may instruct the first UPF to report to the SMF when the statistical traffic reaches the traffic threshold.
302、第一用户平面功能接收会话管理功能发送的会话建立请求。302. The first user plane function receives a session establishment request sent by the session management function.
303、第一用户平面功能接收第一下行数据包,第一下行数据包包括会话流的标识、第一URR位图表以及会话流的累积流量;URR位图表用于指示累积流量涉及到的URR信元。303. The first user plane function receives the first downlink data packet, where the first downlink data packet includes the identifier of the session flow, the first URR bitmap, and the cumulative flow of the session flow; the URR bitmap is used to indicate the cumulative flow involved. URR cell.
在本申请实施例中,第一下行数据包可以是第二用户平面功能(第二UPF)发送给第一UPF(UL CL/BP)的,第二UPF为PSA。In this embodiment of the present application, the first downlink data packet may be sent by the second user plane function (second UPF) to the first UPF (UL CL/BP), and the second UPF is the PSA.
在本申请实施例中,URR信元可以与不同的业务类型对应,URR位图表中的比特位可以与一个URR信元对应,当第一UPF接收到的下行数据包中携带有URR位图表时,位图表中的比特位的值可以指示哪些URR信元对应的业务需要统计流量,其中位图表中比特位和URR的映射关系由SMF下发,这样根据下行数据包中的累积流量就可以对URR位图表指示的需要统计流量的业务进行统计。In this embodiment of the present application, the URR cell may correspond to different service types, and the bits in the URR bitmap may correspond to one URR cell. When the downlink data packet received by the first UPF carries the URR bitmap , the value of the bits in the bitmap can indicate which services corresponding to the URR cells need to count the traffic. The mapping relationship between the bits in the bitmap and the URR is sent by the SMF, so that according to the accumulated traffic in the downlink data packets can be calculated. Statistics are performed on the services that need to be counted as indicated by the URR bitmap.
304、第一用户平面功能根据第一下行数据包统计URR位图表指示的URR信元的新增流量。304. The first user plane function counts the newly added traffic of the URR cell indicated by the URR bitmap according to the first downlink data packet.
第一UPF可以获取第一下行数据包中携带的累积流量与前一次接收到的第二下行数据包中携带的累积流量的差值,该差值即为URR位图表指示的URR信元对应的新增流量。The first UPF can obtain the difference between the cumulative flow carried in the first downlink data packet and the cumulative flow carried in the second downlink data packet previously received, where the difference corresponds to the URR cell indicated by the URR bitmap of new traffic.
305、若新增流量达到URR位图表指示的URR信元对应的流量阈值,则第一用户平面功能向会话管理功能发送URR通知,URR通知用于为达到流量阈值的URR信元申请新的流量阈值。305. If the newly added traffic reaches the traffic threshold corresponding to the URR cell indicated by the URR bitmap, the first user plane function sends a URR notification to the session management function, and the URR notification is used to apply for new traffic for the URR cell that reaches the traffic threshold. threshold.
306、会话管理功能接收第一用户平面功能发送的URR通知。306. The session management function receives the URR notification sent by the first user plane function.
307、会话管理功能向策略控制功能PCF、计费功能CHF发送URR通知,以获取新的流量阈值。307. The session management function sends a URR notification to the policy control function PCF and the charging function CHF to obtain a new traffic threshold.
由此,本申请实施例可以通过在PSA向UL CL/BP发送的下行数据包中携带URR位图表,以指示需统计流量的URR或者业务,可以便于UL CL/BP根据URR位图表进行流量统计,以确定是否向SMF发送URR通知,去申请新的流量阈值。这样通过在下行数据包中携带流URR位图表,并且通过UL CL/BP进行汇总的方式,可以减少PSA与SMF之间信令交互的带来的功耗,也使得流量统计实时准确。Therefore, in this embodiment of the present application, the URR bitmap can be carried in the downlink data packet sent by the PSA to the UL CL/BP to indicate the URR or service whose traffic needs to be counted, which can facilitate the UL CL/BP to perform traffic statistics according to the URR bitmap. , to determine whether to send a URR notification to SMF to apply for a new traffic threshold. In this way, by carrying the flow URR bitmap in the downlink data packet and summarizing it through UL CL/BP, the power consumption caused by the signaling interaction between the PSA and the SMF can be reduced, and the traffic statistics can be accurate in real time.
下面以图3所示的网络框架为例,对本申请实施例进行进一步说明。The embodiment of the present application is further described below by taking the network framework shown in FIG. 3 as an example.
与图3对应的,以会话管理功能为SMF、策略控制功能为PCF、计费功能为CHF、第一用户平面功能为UL CL/BP、第二用户平面功能为PSA1、第三用户平面功能为PSA2、为例,本申请实施例提供一种统计业务流量的方法,如图5所示,包括:Corresponding to Figure 3, the session management function is SMF, the policy control function is PCF, the charging function is CHF, the first user plane function is UL CL/BP, the second user plane function is PSA1, and the third user plane function is PSA2. For example, an embodiment of the present application provides a method for counting service traffic, as shown in FIG. 5 , including:
401、SMF调用PCF获取PCC策略。401. The SMF calls the PCF to obtain the PCC policy.
PCC策略用于分组网络业务数据传输QoS等策略控制和流计费,旨在为用户提供差异化的服务。The PCC policy is used for policy control such as QoS of packet network service data transmission and flow charging, aiming to provide differentiated services for users.
402、SMF调用CHF开始计费。402. The SMF invokes the CHF to start charging.
用户建立会话连接后,SMF需要为该用户进行流量计费等服务,SMF可以调用CHF根据PCC策略开始为该会话进行流量计费。After a user establishes a session connection, the SMF needs to perform services such as traffic accounting for the user, and the SMF can call the CHF to start traffic accounting for the session according to the PCC policy.
403、SMF结合PCF下发的PCC策略、CHF的计费策略以及本地配置的策略等信息生成URR信元,并建立URR ID到URR位图下标的映射关系以及URR位图表。403. The SMF generates a URR cell in combination with information such as the PCC policy issued by the PCF, the charging policy of the CHF, and the locally configured policy, and establishes the mapping relationship between the URR ID and the URR bitmap subscript and the URR bitmap.
URR信元可以有两种类型,一种为计费型,用于SMF向CHF进行计费上报时使用;一种为策略型,用于SMF向PCF进行策略上报时使用。每种类型中,URR信元又可以分为会话级URR和业务级URR。以策略型URR信元为例,其会话级URR可以理解为,一个会话对应一个URR信元,该会话所有的流都关联到该URR信元;对于其业务级URR,业务级URR由PCF下发,PCF下发的策略与URR信元关联,多种策略可以关联到同一个URR信元。以计费型URR信元为例,其业务级URR和计费费率组/服务号(rating group/service ID,RG/SID)对应,PCF下发的策略关联到RG/SID,CHF针对RG/SID分配配额,SMF可以创建RG/SID对应的URR信元。There are two types of URR cells, one is charging type, which is used when SMF reports charging to CHF; the other is policy type, which is used when SMF reports policy to PCF. In each type, URR cells can be further divided into session-level URR and service-level URR. Taking the policy-based URR cell as an example, the session-level URR can be understood as a session corresponding to one URR cell, and all flows of the session are associated with the URR cell; for its service-level URR, the service-level URR is downloaded by the PCF. The policy delivered by the PCF is associated with the URR cell, and multiple policies can be associated with the same URR cell. Taking the charging-type URR cell as an example, its service-level URR corresponds to the charging rate group/service ID (RG/SID), the policy issued by the PCF is associated with the RG/SID, and the CHF targets the RG /SID allocation quota, SMF can create URR cells corresponding to RG/SID.
本申请实施例中,以业务级URR为例进行说明,每个URR信元对应一种业务,每个URR信元包括一个URR标识(URR identify,URR ID),每个URR信元还包括URR位图下标(URRindex)。In the embodiment of this application, a service-level URR is used as an example for description. Each URR cell corresponds to a service, each URR cell includes a URR identifier (URR identify, URR ID), and each URR cell further includes a URR Bitmap index (URRindex).
需要说明的是,如果运营商业务较少,且SMF本地未配置URR,URR都是动态生成的,那么URR位图下标可以复用动态生成的URR ID,用来进行流量统计;如果SMF本地配置有URR,那么URR ID占用的比特大小较大,本申请实施例以URR位图下标进行流量统计,即将URR ID转换为会话内的编号,使得编号范围缩小。It should be noted that if the operator has few services and the URR is not configured locally in the SMF, and the URR is dynamically generated, the URR bitmap subscript can reuse the dynamically generated URR ID for traffic statistics; if the SMF locally If URR is configured, the bit size occupied by the URR ID is relatively large. In this embodiment of the present application, the URR bitmap subscript is used to perform traffic statistics, that is, the URR ID is converted into a number in the session, so that the number range is narrowed.
在URR信元包括URR位图下标的情况下,本申请对SMF和UPF之间的N4接口的CreatURR IE(information element,信息元素)进行扩展,扩展了URR Index字段,示例性的,Creat URR IE(URR信元)扩展后的格式可以如表1所示。In the case where the URR information element includes the URR bitmap subscript, the present application extends the CreateURR IE (information element, information element) of the N4 interface between the SMF and the UPF, and extends the URR Index field, exemplarily, the Create URR IE (URR cell) The extended format may be as shown in Table 1.
表1Table 1
表1中,This IE shall uniquely identify the URR among all the URRsconfigured for this PFCP session.表达的是,该IE应唯一地标识为该PFCP会话配置的所有URR中的URR。In Table 1, This IE shall uniquely identify the URR among all the URRs configured for this PFCP session. It means that this IE shall uniquely identify the URR among all the URRs configured for this PFCP session.
从表1可以得知,一个URR信元中包含一个URR ID和一个URR位图下标,即一个URRID映射一个URR位图下标。It can be known from Table 1 that a URR cell contains a URR ID and a URR bitmap subscript, that is, a URRID maps a URR bitmap subscript.
假设URR Index的范围为0-127,占用8个比特,一个会话(session)最多可以有128个URR Index。URR Index字段的具体格式可以如表2所示。Assuming that the range of URR Index is 0-127, occupying 8 bits, a session (session) can have up to 128 URR Indexes. The specific format of the URR Index field may be as shown in Table 2.
表2Table 2
表2中,URR Index可以用8位表示,其类型值为50000,长度可以为n。例如,URRIndex可以表示为10000000、01000000等。In Table 2, the URR Index can be represented by 8 bits, its type value is 50000, and its length can be n. For example, URRIndex can be represented as 10000000, 01000000, etc.
为了方便描述,本申请以十进制1、2、3…等描述URR ID和URR位图下标。For the convenience of description, the present application describes the URR ID and the URR bitmap subscript in decimals 1, 2, 3, . . .
假设运营商有100种业务,每个用户最多签约32种业务,如果URR ID的编号为1~100,URR Index的编号为0~31,用户1的会话使用了URR ID为10、13、57以及89的业务,那么SMF建立的URR ID与URR Index的映射关系可以为<10,0>,<13,1>,<57,2>,<89,3>;用户2的会话使用了URR ID为11、3、5以及8的业务,那么SMF建立的URR ID与URR Index的映射关系可以为<11,0>,<3,1>,<5,2>,<8,3>。Assuming that the operator has 100 services, and each user subscribes to a maximum of 32 services, if the URR ID numbers are 1 to 100, the URR Index numbers are 0 to 31, and the session of user 1 uses
在建立了映射关系的同时,那么对于一个会话,多个URR位图下标对应的URR位图表(bitmap)包括至少一个比特值,例如用户签约了32种业务时,可以有32个比特来表示位图下标。以用户2为例,bitmap中第0位实际上代表URR ID 11,第1位实际上代表URR ID 3,以此类推。URR位图表中,各个URR位图下标的初始比特值可以均为0。When the mapping relationship is established, for a session, the URR bitmaps (bitmaps) corresponding to multiple URR bitmap subscripts include at least one bit value. For example, when a user subscribes to 32 services, there can be 32 bits to represent Bitmap subscript. Taking user 2 as an example, bit 0 in the bitmap actually represents
404、SMF向PSA1发送第一会话建立请求,第一会话建立请求中包括至少一个URR信元,每个URR信元包括URR位图下标。404. The SMF sends a first session establishment request to PSA1, where the first session establishment request includes at least one URR information element, and each URR information element includes a URR bitmap subscript.
SMF可以通过N4接口向PSA1发送第一会话建立请求。本申请实施例中,会话建立请求可以为PFCP session establishment request。The SMF may send a first session establishment request to PSA1 through the N4 interface. In this embodiment of the present application, the session establishment request may be a PFCP session establishment request.
当用户发起会话时,如果用户此次的会话涉及多种业务,那么该第一会话建立请求中包括这多种业务对应的URR信元下发给PSA1。URR信元的格式可以参见表1。When a user initiates a session, if the session of the user involves multiple services, the first session establishment request includes URR information elements corresponding to the multiple services and is sent to PSA1. See Table 1 for the format of the URR cell.
一个会话可以有多个会话锚点,本实施例以建立的会话锚点为PSA1和PSA2为例。A session may have multiple session anchors. In this embodiment, the established session anchors are PSA1 and PSA2 as an example.
405、PSA1向SMF发送第一会话建立响应。405. PSA1 sends a first session establishment response to the SMF.
PSA1可以通过N4接口向SMF发送第一会话建立响应。PSA1 may send a first session establishment response to the SMF through the N4 interface.
本申请实施例中,会话建立响应可以为PFCP session establishment response。In this embodiment of the present application, the session establishment response may be a PFCP session establishment response.
406、SMF向PSA2发送第二会话建立请求,第二会话建立请求中包括至少一个使用量上报规则URR信元,每个URR信元包括URR位图下标。406. The SMF sends a second session establishment request to PSA2, where the second session establishment request includes at least one usage reporting rule URR information element, and each URR information element includes a URR bitmap subscript.
407、PSA2向SMF发送第二会话建立响应。407. PSA2 sends a second session establishment response to the SMF.
408、SMF向UL CL/BP发送第三会话建立请求,第三会话建立请求中包括会话流对应的至少一个URR信元,每个URR信元包括URR位图下标、流量阈值。408. The SMF sends a third session establishment request to the UL CL/BP, where the third session establishment request includes at least one URR information element corresponding to the session flow, and each URR information element includes a URR bitmap index and a traffic threshold.
SMF可以通过N4接口向UL CL/BP发送第三会话建立请求。The SMF may send a third session establishment request to the UL CL/BP through the N4 interface.
当用户发起会话时,如果用户此次会话的会话流涉及多种业务,那么这多种业务对应的URR信元都要下发给UL CL/BP。UL CL/BP可以根据多个URR信元中携带的URR ID和URR Index得知URR ID与URR Index之间的映射关系,进而可以在步骤411中根据该映射关系、每个URR信元携带的流量阈值以及URR位图表对业务的流量进行统计。URR信元的格式可以参见表1。When a user initiates a session, if the session flow of the user's session involves multiple services, the URR information elements corresponding to these multiple services must be delivered to the UL CL/BP. The UL CL/BP can learn the mapping relationship between the URR ID and the URR Index according to the URR ID and URR Index carried in the multiple URR cells, and then in step 411, according to the mapping relationship, each URR cell carries the mapping relationship. Traffic thresholds and URR bitmaps are used to collect statistics on service traffic. See Table 1 for the format of the URR cell.
409、UL CL/BP向SMF发送第三会话建立响应。409. The UL CL/BP sends a third session establishment response to the SMF.
410、PSA1向UL CL/BP发送第一下行数据包,第一下行数据包包括会话流的标识、URR位图表以及会话流的累积流量;URR位图表用于指示累积流量涉及到的URR信元。410. PSA1 sends the first downlink data packet to the UL CL/BP, where the first downlink data packet includes the identifier of the session flow, the URR bitmap, and the cumulative flow of the session flow; the URR bitmap is used to indicate the URR involved in the cumulative flow cell.
以图2为例,当会话对应的会话锚点PSA1接收到数据网络DN发送的第一下行数据包时,可通过会话锚点PSA1、接入网AN发送给终端设备。PSA1接收到的第一下行数据包中携带有会话流的标识(Lable Id)、URR位图表以及会话流的累积流量(volume),且PSA 1可以通过N9接口向UL CL/BP发送第一下行数据包。具体地,可以对第一下行数据包中的下行PDU会话信息(download PDU session information)(PDU type 0)进行扩展携带会话流的标识、URR位图表以及累积流量,具体的格式可以如表3所示。Taking FIG. 2 as an example, when the session anchor PSA1 corresponding to the session receives the first downlink data packet sent by the data network DN, it can be sent to the terminal device through the session anchor PSA1 and the access network AN. The first downlink data packet received by PSA1 carries the identifier (Lable Id) of the session flow, the URR bitmap, and the cumulative flow (volume) of the session flow, and PSA1 can send the first packet to the UL CL/BP through the N9 interface. Downstream packets. Specifically, the downlink PDU session information (download PDU session information) (PDU type 0) in the first downlink data packet can be extended to carry the identifier of the session flow, the URR bitmap and the accumulated flow, and the specific format can be as shown in Table 3 shown.
表3table 3
表3中,URR BITMAP LEN表示URR位图表的占用的比特长度;Lable Id表示会话流ID,一个流对应的URR位图表是固定的;URR BITMAP表示URR位图表;Volume表示Lable Id标识的流的累积流量;STA表示Lable Id标识的流的起始标记;STO表示Lable Id标识的流的结束标记。In Table 3, URR BITMAP LEN represents the occupied bit length of the URR bitmap; Lable Id represents the session stream ID, and the URR bitmap corresponding to a stream is fixed; URR BITMAP represents the URR bitmap; Accumulated traffic; STA represents the start marker of the stream identified by Lable Id; STO represents the end marker of the stream identified by Lable Id.
其中,URR位图表包括至少一个比特值,比特值与URR位图下标对应,比特值为第一指示值或第二指示值,第一指示值用于指示URR位图下标对应的URR信元需累积流量,第二指示值用于指示URR位图下标对应的URR信元不需要累积流量。例如,第一指示值为1,第二指示值为0。Wherein, the URR bitmap includes at least one bit value, the bit value corresponds to the subscript of the URR bitmap, the bit value is the first indication value or the second indication value, and the first indication value is used to indicate the URR information corresponding to the subscript of the URR bitmap The element needs to accumulate traffic, and the second indication value is used to indicate that the URR cell corresponding to the URR bitmap subscript does not need to accumulate traffic. For example, the first indication value is 1, and the second indication value is 0.
STA用于指示第一下行数据包为会话流的首个下行数据包;或,STO用于指示第一下行数据包为会话流的最后一个下行数据包。若第一下行数据包包括STA,则UL CL/BP记录该会话流的标识Lable Id;若第一下行数据包包括STO,则UL CL/BP删除会话流的标识。The STA is used to indicate that the first downlink data packet is the first downlink data packet of the session flow; or, the STO is used to indicate that the first downlink data packet is the last downlink data packet of the session flow. If the first downlink data packet includes STA, the UL CL/BP records the identifier Lable Id of the session flow; if the first downlink data packet includes STO, the UL CL/BP deletes the identifier of the session stream.
同样地,PSA2接收到的下行数据包与PSA1接收到的第一下行数据包的格式类似。Likewise, the downstream data packet received by PSA2 is similar in format to the first downstream data packet received by PSA1.
411、UL CL/BP根据第一下行数据包统计URR位图表指示的URR信元的新增流量。411. The UL CL/BP counts the newly added traffic of the URR cell indicated by the URR bitmap according to the first downlink data packet.
由于URR位图表中的比特有两种比特值,UL CL/BP可以根据第一指示值确定比特对应的URR位图下标,进而可以统计出URR位图下标对应的URR信元的新增流量。Since the bits in the URR bitmap have two bit values, the UL CL/BP can determine the URR bitmap subscript corresponding to the bit according to the first indication value, and then can count the newly added URR cells corresponding to the URR bitmap subscript. flow.
在一些实施例中,UL CL/BP可以获取第一下行数据包中携带的累积流量与前一次接收到的第二下行数据包中携带的累积流量的差值,差值为第一位图表指示的URR信元对应的新增流量。例如,URR位图表的比特值为01011000(从左端向右端进行比特编号),第0、2、5、6、7比特的值为0,对应的URR位图下标为0、2、5、6以及7,那么URR位图下标为0、2、5、6以及7对应的URR信元则不需要统计新增流量;第1、3、4比特的值为1,对应的URR位图下标为1、3、4,那么URR位图下标为1、3、4对应的URR信元需要统计新增流量。其中,对于业务级URR,对URR信元需统计流量时,也可以认为是对该URR信元对应的业务需统计流量。In some embodiments, the UL CL/BP can obtain the difference between the cumulative traffic carried in the first downlink data packet and the cumulative traffic carried in the second downlink data packet received previously, and the difference is the first bit in the graph The newly added traffic corresponding to the indicated URR cell. For example, the bit value of the URR bitmap is 01011000 (bit numbering from the left end to the right end), the 0th, 2nd, 5th, 6th, and 7th bits are 0, and the corresponding URR bitmap subscripts are 0, 2, 5, 6 and 7, then the URR cells corresponding to the URR bitmap subscripts 0, 2, 5, 6, and 7 do not need to count the new traffic; the value of the 1st, 3rd, and 4th bits is 1, and the corresponding URR bitmap If the subscripts are 1, 3, and 4, then the URR cells corresponding to the subscripts 1, 3, and 4 of the URR bitmap need to count the new traffic. Wherein, for the service-level URR, when the traffic needs to be counted for the URR cell, it may also be considered that the traffic corresponding to the URR cell needs to be counted.
412、若新增流量达到URR位图表指示的URR信元对应的流量阈值,则UL CL/BP向SMF发送URR通知,URR通知用于为达到流量阈值的URR信元申请新的流量阈值。412. If the newly added traffic reaches the traffic threshold corresponding to the URR cell indicated by the URR bitmap, the UL CL/BP sends a URR notification to the SMF, and the URR notification is used to apply for a new traffic threshold for the URR cell that reaches the traffic threshold.
示例性的,当URR信元对应的流量阈值为100时,如果新增流量达到或者超过了URR信元对应的流量阈值100,那么UL CL/BP可以向SMF通知该URR信元分配的流量已使用完,指示SMF向PCF申请新的流量阈值,例如新的流量阈值为200,那么后续若UL CL/BP继续统计新增流量达到200时,可以向SMF再次发送URR通知,以申请新的流量阈值。Exemplarily, when the traffic threshold corresponding to the URR cell is 100, if the newly added traffic reaches or exceeds the traffic threshold 100 corresponding to the URR cell, the UL CL/BP may notify the SMF that the traffic allocated by the URR cell has been allocated. After use, instruct SMF to apply for a new traffic threshold to PCF. For example, if the new traffic threshold is 200, then if the UL CL/BP continues to count the new traffic and reaches 200, it can send a URR notification to SMF again to apply for new traffic. threshold.
413、SMF向PCF发送URR通知,以获取新的流量阈值。413. The SMF sends a URR notification to the PCF to obtain a new traffic threshold.
相应地,SMF接收PCF发送的URR响应,URR响应包括新的流量阈值。Accordingly, the SMF receives the URR response sent by the PCF, and the URR response includes the new traffic threshold.
在一些实施例中,SMF向UL CL/BP发送URR更新通知,URR更新通知包括新的流量阈值。In some embodiments, the SMF sends a URR update notification to the UL CL/BP, the URR update notification includes the new traffic threshold.
由此,上述实施例中,PSA可以随数据包向UL CL/BP上报流量,UL CL/BP进行流量统计,并向SMF上报流量,这种随数据包进行流量上报的过程,可以既保证流量上报的准确性,还可以避免SMF和UPF之间进行多次信令交互带来的信令开销大的问题。Therefore, in the above embodiment, the PSA can report the traffic to the UL CL/BP along with the data packets, and the UL CL/BP performs traffic statistics and reports the traffic to the SMF. This process of reporting the traffic along with the data packets can not only ensure the traffic The accuracy of the report can also avoid the problem of high signaling overhead caused by multiple signaling interactions between the SMF and the UPF.
在上述实施例中,UL CL/BP实现流量的累积和URR上报功能。在一些实施例中,随着用户的移动,上述实施例中的UL CL可能会被删除,UL CL删除后,PSA1/PSA2的流量上报将无法再通过UL CL向SMF上报流量,这时,PSA可以直接向SMF上报流量。In the above embodiment, the UL CL/BP implements the functions of traffic accumulation and URR reporting. In some embodiments, as the user moves, the UL CL in the above embodiment may be deleted. After the UL CL is deleted, the traffic reporting of PSA1/PSA2 will no longer be able to report traffic to the SMF through the UL CL. Traffic can be reported directly to SMF.
示例性的,以图3为网络架构,如图6所示:Exemplarily, take Figure 3 as the network architecture, as shown in Figure 6:
501、UE建立PDU会话,该会话包括UL CL/BP、PSA1和PSA2等多个会话,UL CL/BP实现流量统计和流量上报(可参见图4对应的实施例)。501. The UE establishes a PDU session, which includes multiple sessions such as UL CL/BP, PSA1, and PSA2. The UL CL/BP implements traffic statistics and traffic reporting (see the embodiment corresponding to FIG. 4).
502、SMF通过互联网协议第6版的路由通告((Internet Protocol Version 6,IPv6)Router Advertisement)通知UE停止使用PSA1对应的IPv6前缀时,UE可以开始对所有业务流量都使用PSA2对应的IPv6前缀。502. When the SMF informs the UE to stop using the IPv6 prefix corresponding to PSA1 through the Internet Protocol Version 6 router advertisement ((Internet Protocol Version 6, IPv6) Router Advertisement), the UE can start to use the IPv6 prefix corresponding to PSA2 for all service traffic.
503、SMF与(R)AN交互,更新(R)AN隧道信息,使得上行流量从(R)AN发送到PSA2,不再经过UL CL/BP。503. The SMF interacts with the (R)AN to update the (R)AN tunnel information, so that the upstream traffic is sent from the (R)AN to the PSA2 without going through the UL CL/BP.
504、SMF通过N4接口与PSA2交互,更新PSA2隧道信息,同时向PSA2发送会话更新请求,会话更新请求用于指示PSA2向SMF发送URR通知。504. The SMF interacts with the PSA2 through the N4 interface, updates the tunnel information of the PSA2, and at the same time sends a session update request to the PSA2, where the session update request is used to instruct the PSA2 to send a URR notification to the SMF.
或者说,SMF确定第一用户平面功能(PSA1)删除时,若SMF需更新URR信元,则SMF向第二用户平面功能(PSA2)发送会话更新请求,PSA2为与PSA1存在会话关联的协议数据单元PDU会话锚点PSA,会话更新请求用于指示PSA2向SMF发送URR通知。In other words, when the SMF determines that the first user plane function (PSA1) is deleted, if the SMF needs to update the URR information element, the SMF sends a session update request to the second user plane function (PSA2), where PSA2 is the protocol data associated with the session existing with PSA1. Unit PDU session anchor PSA, session update request is used to instruct PSA2 to send URR notification to SMF.
这样,下行流量就会直接从PSA2发送到(R)AN,使得整个上下行流量路径切换完成。即UL CL/BP删除后,由PSA2向SMF上报统计流量。In this way, the downstream traffic will be sent directly from the PSA2 to the (R)AN, so that the entire upstream and downstream traffic path switching is completed. That is, after the UL CL/BP is deleted, PSA2 reports traffic statistics to the SMF.
505、SMF向PSA1发送会话(PFCP session)删除消息,以指示PSA1释放PSA1上的会话。505. The SMF sends a session (PFCP session) delete message to PSA1 to instruct PSA1 to release the session on PSA1.
506、SMF向UL CL/BP发送会话(PFCP session)删除消息,以指示UL CL/BP释放PSA1上的会话。506. The SMF sends a session (PFCP session) delete message to the UL CL/BP to instruct the UL CL/BP to release the session on PSA1.
507、PSA2进行流量统计,若达到流量阈值,则向SMF上报累积流量。507. PSA2 performs traffic statistics, and reports the accumulated traffic to the SMF if the traffic threshold is reached.
PSA2进行流量统计的实现可以参见步骤411和412中UL CL/BP进行流量统计的实现。For the implementation of traffic statistics by PSA2, refer to the implementation of traffic statistics by UL CL/BP in steps 411 and 412.
由此,本申请实施例可以在UL CL删除时,使得其他UPF根据数据包中的流量累积向SMF进行URR流量上报,以实现跨多UPF的URR上报,减少SMF和UPF间的信令交互。Therefore, in the embodiment of the present application, when the UL CL is deleted, other UPFs can report URR traffic to the SMF according to the traffic accumulation in the data packets, so as to realize the URR reporting across multiple UPFs and reduce the signaling interaction between the SMF and the UPF.
上述主要从各个网元之间交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,各个网元,例如用户平面功能、会话管理功能等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of interaction between various network elements. It can be understood that, in order to implement the above functions, each network element, such as a user plane function, a session management function, etc., includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
本申请实施例可以根据上述方法示例对用户平面功能、会话管理功能等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, user plane functions, session management functions, etc. may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. in the module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
在采用对应各个功能划分各个功能模块的情况下,图7示出了一种电子设备70的结构示意图,该电子设备70可以为上述用户平面功能,或者UL CL/BP,电子设备70包括:接收单元701,处理单元702,发送单元703。接收单元701用于支持电子设备70执行图4中的过程302,303,图5中的过程408、410的相应过程,图6中的过程506的相应过程;处理单元702用于支持电子设备70执行图4中的过程304,图5中的过程411,发送单元703用于支持电子设备70执行图4中的过程305,图5中的过程409、412。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case where each functional module is divided according to each function, FIG. 7 shows a schematic structural diagram of an
在采用集成的单元的情况下,图8示出了上述实施例中所涉及的电子设备的一种可能的结构示意图。电子设备80包括:处理模块802和通信模块803。处理模块802用于对电子设备的动作进行控制管理,例如,处理模块802用于支持电子设备80执行图3中的过程304,图5中的过程411,和/或用于本文所描述的技术的其它过程。通信模块803用于支持电子设备与其他网络实体的通信,例如与图2、图3中示出的功能模块或网络实体之间的通信。通信模块803包括上述接收单元701以及发送单元703的功能。电子设备80还可以包括存储模块801,用于存储电子设备80的程序代码和数据。In the case of using an integrated unit, FIG. 8 shows a possible schematic structural diagram of the electronic device involved in the above embodiment. The
其中,处理模块802可以是处理器或控制器,例如可以是中央处理器(CentralProcessing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块803可以是收发器、收发电路或通信接口等。存储模块801可以是存储器。The
当处理模块802为处理器,通信模块803为通信接口,存储模块801为存储器时,本申请实施例所涉及的电子设备可以为图9所示的电子设备90。When the
参阅图9所示,该电子设备90包括:处理器912、通信接口913、存储器911以及总线914。其中,通信接口913、处理器912以及存储器911通过总线914相互连接;总线914可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 9 , the
在采用对应各个功能划分各个功能模块的情况下,图10示出了一种电子设备10的结构示意图,电子设备10可以为上述实施例中所涉及的会话管理功能,或者SMF的一种可能的结构示意图,电子设备10包括发送单元1001,接收单元1002和处理单元1003。发送单元1001用于支持电子设备10执行图4中的过程301和307,图5中的过程404,406,408,413,图6中的过程505,506;接收单元1002用于支持电子设备10执行图3中的过程306。处理单元1003用于支持电子设备10执行图5中的过程401、402、403,图6中的过程502,503,504,其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case where each functional module is divided according to each function, FIG. 10 shows a schematic structural diagram of an
在采用集成的单元的情况下,图11示出了上述实施例中所涉及的电子设备10的另一种可能的结构示意图。电子设备11包括:处理模块1102和通信模块1103。处理模块1102用于对电子设备11的动作进行控制管理,例如,处理模块1102用于支持电子设备11执行图5中的过程401、402、403,图6中的过程502,503,504,和/或用于本文所描述的技术的其它过程。通信模块1103用于支持电子设备11与其他网络实体的通信,例如与图2、图3示出的功能模块或网络实体之间的通信。电子设备11还可以包括存储模块1101,用于存储电子设备11的程序代码和数据。In the case of using an integrated unit, FIG. 11 shows another possible schematic structural diagram of the
其中,处理模块1102可以是处理器或控制器,例如可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块1103可以是收发器、收发电路或通信接口等。存储模块1101可以是存储器。The
当处理模块1102为处理器,通信模块1103为通信接口,存储模块1101为存储器时,本申请实施例所涉及的电子设备11可以为图12所示的电子设备12。When the
参阅图12所示,该电子设备12包括:处理器1212、通信接口1213、存储器1211以及总线1214。其中,通信接口1213、处理器1212以及存储器1211通过总线1214相互连接;总线1214可以是PCI总线或EISA总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 12 , the
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(RandomAccess Memory,RAM)、闪存、只读存储器(ReadOnly Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于核心网接口设备中。当然,处理器和存储介质也可以作为分立组件存在于核心网接口设备中。The steps of the methods or algorithms described in conjunction with the disclosure of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RandomAccess Memory, RAM), flash memory, read-only memory (ReadOnly Memory, ROM), erasable programmable read-only memory (Erasable Programmable). ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), registers, hard disks, removable hard disks, compact disks (CD-ROMs) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an ASIC. Alternatively, the ASIC may be located in the core network interface device. Of course, the processor and the storage medium may also exist in the core network interface device as discrete components.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should appreciate that, in one or more of the above examples, the functions described in this application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (22)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910818906.7A CN112449358B (en) | 2019-08-30 | 2019-08-30 | Method and device for counting service flow |
PCT/CN2020/097553 WO2021036441A1 (en) | 2019-08-30 | 2020-06-22 | Method and apparatus for collecting statistics about service traffic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910818906.7A CN112449358B (en) | 2019-08-30 | 2019-08-30 | Method and device for counting service flow |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112449358A CN112449358A (en) | 2021-03-05 |
CN112449358B true CN112449358B (en) | 2022-05-24 |
Family
ID=74684073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910818906.7A Active CN112449358B (en) | 2019-08-30 | 2019-08-30 | Method and device for counting service flow |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112449358B (en) |
WO (1) | WO2021036441A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115776487A (en) * | 2021-09-03 | 2023-03-10 | 大唐移动通信设备有限公司 | Data distribution method, device, equipment and storage medium |
CN113747493B (en) * | 2021-09-17 | 2024-04-05 | 杭州阿里云飞天信息技术有限公司 | Data transmission method, device, system and storage medium |
CN114125030B (en) * | 2021-11-30 | 2024-07-19 | 北京天融信网络安全技术有限公司 | Connection tracking method, device, electronic equipment and computer readable storage medium |
CN114338930B (en) * | 2021-12-30 | 2022-10-11 | 广州爱浦路网络技术有限公司 | Ticket information processing method, computer device and storage medium |
CN115529566B (en) * | 2022-10-27 | 2023-10-31 | 广州爱浦路网络技术有限公司 | Charging control method, device and storage medium based on predefined Urr |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756430A (en) * | 2017-11-07 | 2019-05-14 | 华为技术有限公司 | Method and device for processing rules |
CN110048873A (en) * | 2018-01-16 | 2019-07-23 | 华为技术有限公司 | The method and communication device of the policy control of more anchor point protocol Data Unit sessions |
CN110149603A (en) * | 2018-02-13 | 2019-08-20 | 华为技术有限公司 | A kind of policy control method, equipment and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110703817B (en) * | 2016-03-29 | 2022-04-05 | 华为技术有限公司 | A control method, device and system for statistical flow |
CN113037513B (en) * | 2017-01-05 | 2022-05-13 | 华为技术有限公司 | Charging management method, user plane functional entity and control plane functional entity |
US10805983B2 (en) * | 2017-10-17 | 2020-10-13 | Ofinno, Llc | Control plane data transmission |
CN110149602B (en) * | 2018-02-13 | 2020-07-07 | 华为技术有限公司 | A strategy control method, device and system |
-
2019
- 2019-08-30 CN CN201910818906.7A patent/CN112449358B/en active Active
-
2020
- 2020-06-22 WO PCT/CN2020/097553 patent/WO2021036441A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109756430A (en) * | 2017-11-07 | 2019-05-14 | 华为技术有限公司 | Method and device for processing rules |
CN110048873A (en) * | 2018-01-16 | 2019-07-23 | 华为技术有限公司 | The method and communication device of the policy control of more anchor point protocol Data Unit sessions |
CN110149603A (en) * | 2018-02-13 | 2019-08-20 | 华为技术有限公司 | A kind of policy control method, equipment and system |
Non-Patent Citations (1)
Title |
---|
S2-1907888 "Clarification of traffic switching for GBR QoS flow in MA PDU session";Huawei等;《3GPP tsg_sa\wg2_arch》;20190628;全文 * |
Also Published As
Publication number | Publication date |
---|---|
WO2021036441A1 (en) | 2021-03-04 |
CN112449358A (en) | 2021-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112449358B (en) | Method and device for counting service flow | |
CN103369594B (en) | A kind of method of tagged traffic packet, Apparatus and system | |
US11272333B2 (en) | Convergent charging method and device | |
KR101286386B1 (en) | Method and apparatus for providing quality-of service in radio access networks | |
US9178767B2 (en) | Intelligent traffic quota management in split-architecture networks | |
US9699038B2 (en) | Node and method for service usage reporting and quota establishment | |
CN110392400B (en) | Communication method and related equipment | |
CN111131506B (en) | Message processing method and device | |
US20200229037A1 (en) | Implementing edge network services at access elements for mobile edge computing | |
EP3288325A1 (en) | Service chain policy making method and device | |
US10616119B2 (en) | Policy determining method and apparatus | |
CN106464670B (en) | Network entity and service policy management method | |
CN113169884A (en) | remove app identifier | |
WO2016041365A1 (en) | Data transmission method and device | |
CN107592979A (en) | QoS resource distribution method and device | |
WO2015048992A1 (en) | Handling overload of a network node | |
WO2021179598A1 (en) | Communication method, apparatus and system | |
US20230336369A1 (en) | Methods supporting usage reporting rules with and without associated reporting rules and related network nodes | |
WO2016023363A1 (en) | Service chain processing method and apparatus, service classifier and pcrf | |
CN112910662A (en) | Method, device and medium for reporting and receiving and reporting traffic information | |
HK40049480A (en) | Removal of application identifier |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |