Media data communication method and device, electronic equipment and storage medium

Through the IMS system in the 5G mobile communication network, registration information is used to determine the dedicated network communication between terminals, and media data transmission is carried out on the preset private network address segment, solving the problems of P2P communication complexity and resource consumption, and achieving efficient media data transmission.

CN119967000APending Publication Date: 2025-05-09SHENZHEN AI LINK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510137680.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-07
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

In 5G mobile communication networks, the point-to-point (P2P) media data communication process is complex and requires server resources, especially in the environment of user equipment behind NAT or firewalls.

Method used

Through the IMS system, the registration information of the calling terminal and the called terminal is determined whether it is a private network communication. If it is a private network communication, media data transmission is performed on the preset private network address segment to avoid public network address conversion and relay server use through ICE, STUN, and TURN protocols.

Benefits of technology

The P2P media data communication process is simplified, the media data transmission path is optimized, server resources are saved, and communication efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967000A_ABST
    Figure CN119967000A_ABST
Patent Text Reader

Abstract

The invention provides a media data communication method and device, electronic equipment and a storage medium, and relates to the technical field of communication. The method comprises the following steps: receiving a call invitation sent by a calling terminal, wherein the call invitation comprises calling registration information of the calling terminal and called registration information of a called terminal; determining whether the calling terminal and the called terminal are in private network communication according to the calling registration information and the called registration information; and if private network communication is carried out between the calling terminal and the called terminal, determining that the calling of the calling terminal and the called terminal is connected, so that the calling terminal and the called terminal carry out media data transmission on the preset private network address field through a user plane function (UPF) network element. According to the invention, the P2P media data communication process can be simplified, and server resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a media data communication method, device, electronic device and storage medium. Background Art

[0002] In the field of communications, peer-to-peer is a media data transmission method that refers to establishing a direct connection between user terminals in a communication system, bypassing the intermediate server to achieve more efficient media data communication.

[0003] In the mobile network environment of the fifth-generation mobile communication technology (5G), user devices are usually located behind a network address translation (NAT) or a firewall. The Internet Protocol Multimedia Subsystem (IMS) will use the Simple Traversal of UDP over NATs (STUN) or the relay server corresponding to the Traversal Using Relays around NAT (TURN) protocol to achieve P2P connection. The communication process is complicated and consumes server resources. Summary of the invention

[0004] The purpose of the present application is to provide a media data communication method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to simplify the P2P media data communication process and save server resources.

[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, an embodiment of the present application provides a media data communication method, which is applied to an Internet Protocol Multimedia Subsystem IMS, and the method includes:

[0007] Receiving a call invitation sent by a calling terminal, the call invitation including: calling registration information of the calling terminal and called registration information of the called terminal;

[0008] Determining whether the calling terminal and the called terminal are communicating in a private network according to the calling registration information and the called registration information;

[0009] If the calling terminal and the called terminal communicate in a private network, determine that the call between the calling terminal and the called terminal is connected, so that the calling terminal and the called terminal perform media data transmission on a preset private network address segment through a user plane function UPF network element.

[0010] Optionally, the calling registration information includes: a calling IP address, and the called registration information includes: called device information; and determining whether the calling terminal and the called terminal are communicating on a private network according to the calling registration information and the called registration information includes:

[0011] Whether the calling terminal and the called terminal communicate in a private network is determined according to whether the calling IP address and the called IP address corresponding to the called device information are within the preset private network address segment.

[0012] Optionally, determining whether the communication between the calling terminal and the called terminal is a private network communication according to whether the calling IP address and the called IP address corresponding to the called device information are within the preset private network address segment includes:

[0013] If the calling IP address and the called IP address are within the preset private network address segment, it is determined that the communication between the calling terminal and the called terminal is a private network.

[0014] Optionally, before receiving the call invitation sent by the calling terminal, the method further includes:

[0015] Receiving account opening requests sent by the calling terminal and the called terminal;

[0016] According to the account opening requests of the calling terminal and the called terminal, accounts are opened for the calling terminal and the called terminal on the preset private network address segment, and the account opening requests are also used to enable the core network device to allocate corresponding IP addresses to the calling terminal and the called terminal on the preset private network address segment.

[0017] Optionally, if the calling terminal and the called terminal communicate in a private network, determining that the call between the calling terminal and the called terminal is connected includes:

[0018] If the calling terminal and the called terminal are communicating via a private network, forwarding the call invitation to the called terminal;

[0019] A call response message of the called terminal is received and sent to the calling terminal, wherein the call response message includes the called IP address of the called terminal.

[0020] Optionally, the step of the calling terminal and the called terminal performing media data transmission on a preset private network address segment through the UPF network element includes:

[0021] Receiving media data sent by one of the calling terminal and the called terminal, wherein the media data includes: a source IP address and a destination IP address;

[0022] Determine that the source IP address and the destination IP address are private network IP addresses;

[0023] The media data is sent to the other terminal of the calling terminal and the called terminal according to the destination IP address.

[0024] Optionally, the step of allocating corresponding IP addresses by the core network device to the calling terminal and the called terminal on the preset private network address segment is:

[0025] Receiving account opening requests sent by the calling terminal and the called terminal;

[0026] According to the account opening requests of the calling terminal and the called terminal, respectively allocating private network addresses to the calling terminal and the called terminal in the preset private network address segment;

[0027] Receiving private network registration requests sent by the calling terminal and the called terminal;

[0028] The pre-allocated private network address is sent to the calling terminal and the called terminal.

[0029] In a second aspect, an embodiment of the present application further provides a media data communication device, which is applied to an Internet Protocol Multimedia Subsystem IMS, and the device includes:

[0030] A receiving module, in which a user receives a call invitation sent by a calling terminal, wherein the call invitation includes: the calling registration information of the calling terminal and the called registration information of the called terminal;

[0031] A judgment module, used to determine whether the calling terminal and the called terminal are communicating in a private network according to the calling registration information and the called registration information;

[0032] The connection module is used to determine whether the call between the calling terminal and the called terminal is connected if the communication between the calling terminal and the called terminal is a private network, so that the calling terminal and the called terminal can transmit media data on a preset private network address segment through a user plane function UPF network element.

[0033] Optionally, the calling registration information includes: the calling IP address, and the called registration information includes: the called device information; the judgment module is specifically used to determine whether the communication between the calling terminal and the called terminal is a private network based on whether the called IP address and the called IP address corresponding to the called device information are within the preset private network address segment.

[0034] Optionally, the judgment module is specifically configured to determine that the communication between the calling terminal and the called terminal is a private network if the calling IP address and the called IP address are within the preset private network address segment.

[0035] Optionally, the device also includes: an account opening module, used to receive account opening requests sent by the calling terminal and the called terminal; according to the account opening requests of the calling terminal and the called terminal, opening accounts for the calling terminal and the called terminal on the preset private network address segment, and the account opening request is also used to enable the core network device to allocate corresponding IP addresses to the calling terminal and the called terminal on the preset private network address segment.

[0036] Optionally, the connection module is specifically used to forward the call invitation to the called terminal if the calling terminal and the called terminal communicate in a private network; receive and send a call response message of the called terminal to the calling terminal, wherein the call response message includes the called IP address of the called terminal.

[0037] Optionally, the device for the calling terminal and the called terminal to perform media data transmission on a preset private network address segment through the UPF network element includes:

[0038] The transmission module is used to receive media data sent by one terminal of the calling terminal and the called terminal, wherein the media data includes: a source IP address and a destination IP address; determine that the source IP address and the destination IP address are private network IP addresses; and send the media data to the other terminal of the calling terminal and the called terminal according to the destination IP address.

[0039] Optionally, the means for the core network device to allocate corresponding IP addresses to the calling terminal and the called terminal on the preset private network address segment is:

[0040] A registration module is used to receive account opening requests sent by the calling terminal and the called terminal; allocate private network addresses to the calling terminal and the called terminal respectively on the preset private network address segment according to the account opening requests of the calling terminal and the called terminal; receive private network registration requests sent by the calling terminal and the called terminal; and send pre-allocated private network addresses to the calling terminal and the called terminal.

[0041] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the media data communication method as described in any one of the first aspects.

[0042] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the media data communication method described in any one of the first aspects are executed.

[0043] The beneficial effects of this application are:

[0044] The media data communication method, device, electronic device and storage medium provided in the present application, when the IMS system determines that the communication between the calling terminal and the called terminal is a private network based on the caller registration information of the calling terminal and the called terminal's called registration information, after the call between the calling terminal and the called terminal is connected, media data transmission can be directly performed on a preset private network address segment through a UPF network element, without converting the private network address into a public network address, or through a relay server, thereby optimizing the media data transmission path and saving server resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 A network architecture diagram of a 5G private network provided in an embodiment of the present application;

[0047] Figure 2 Schematic diagram of the process of the media data communication method provided in the embodiment of the present application Figure 1 ;

[0048] Figure 3 Schematic diagram of the process of the media data communication method provided in the embodiment of the present application Figure 2 ;

[0049] Figure 4 Schematic diagram of the process of the media data communication method provided in the embodiment of the present application Figure 3 ;

[0050] Figure 5 The following is a flow chart of the media data communication method provided by our company. Figure 4 ;

[0051] Figure 6 A schematic diagram of the interaction of media data communication provided in an embodiment of the present application;

[0052] Figure 7 A schematic diagram of the structure of a media data communication device provided in an embodiment of the present application;

[0053] Figure 8 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0055] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0056] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0057] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0058] The existing IMS communication process in the 5G network is as follows:

[0059] (1) Session establishment phase

[0060] 1. The calling terminal sends a call invitation INVITE to the IMS system through the Session Initiation Protocol (SIP), which contains Session Description Protocol (SDP) information. The SDP information contains the private IP address and port of the calling terminal.

[0061] 2. The Proxy-Call Session Control Function (P-CSCF) network element of the IMS core network analyzes the SDP information and determines that the IP address of the calling terminal is a private network address in the NAT environment. To ensure the transmission of media data, the IMS core network detects the public IP address of the calling terminal through the STUN server, or allocates a TURN relay server as needed.

[0062] 3. The P-CSCF network element of the IMS core network will modify the SDP information, update it to the public IP address and port of the IMS media gateway (Media Resource Function, MRF) or TURN relay server, and send the SDP information to the called terminal.

[0063] 4. The called terminal returns its own media stream information through the SDP response, namely SIP 200OK. If the called terminal is also located behind NAT, the IMS core network will modify the SDP information of the called terminal in a similar way to that of the calling terminal before sending it to the calling terminal.

[0064] (2) Media path establishment phase

[0065] 1. The calling terminal and the called terminal respectively send a detection message to the STUN server of the IMS through the STUN protocol to obtain each other's public network IP address and port.

[0066] 2. The calling terminal and the called terminal exchange candidate addresses through the Interactive Connectivity Establishment (ICE) protocol, and try to use the following primary path to establish a P2P connection through the public IP address and port. If the P2P path fails, the alternative path is used to relay through the TURN relay server of the IMS. The public IP and port of the TURN relay server have been pre-negotiated in the SDP information.

[0067] (3) Media transmission stage

[0068] If the public network addresses of the calling terminal and the called terminal can communicate directly, the media data is transmitted directly through RTP, bypassing the IMS media gateway. If the direct path is limited, the media data needs to be forwarded through the IMS TURN intermediate server or MRF to ensure normal transmission.

[0069] The above-mentioned P2P solution of the prior art needs to go through the ICE process, the STUN process, and the TURN process to achieve NAT penetration for media data transmission. The communication process is complicated and needs to consume the server resources corresponding to ICE, STUN, and TURN.

[0070] In order to better understand this solution, we first introduce the network architecture of the 5G private network used in this application.

[0071] Figure 1 The network architecture diagram of the 5G private network provided in the embodiment of the present application is as follows: Figure 1 As shown, the network architecture includes: a 5G core network (5G Core, 5GC) and an IMS system, wherein the terminal device UE establishes a connection with the 5G private network through a base station, and the user plane function network element (User Plane Function, UPF) in the 5G core network communicates with the IMS system through an N6 interface. The specific functions of each network element in the network architecture are not repeated here.

[0072] Figure 2 Schematic diagram of the process of the media data communication method provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, the method may include:

[0073] S101: Receive a call invitation sent by a calling terminal, where the call invitation includes: calling registration information of the calling terminal and called registration information of the called terminal.

[0074] In this embodiment, the calling terminal initiates a call invitation to the IMS system to request to establish a session with the called terminal, wherein the call request includes the calling registration information of the calling terminal and the called registration information of the called terminal, the calling registration information is the device information of the calling terminal, for example, it may include the International Mobile Subscriber Identity (IMSI) and the mobile phone number (MSISDN) of the calling terminal, and the called registration information of the called terminal is the device information of the called terminal, for example, it may include the IMSI and MSISDN of the called terminal.

[0075] The calling terminal and the called terminal need to open an account in the IMS system of the 5G private network in advance so that the calling registration information of the calling terminal and the called registration information of the called terminal can be recorded in the IMS system. If the calling terminal and the called terminal have not opened an account in the IMS system in advance, the IMS system cannot identify the calling terminal and the called terminal, and will not be able to provide media data communication services to the calling terminal and the called terminal.

[0076] In some embodiments, the call request sent by the calling terminal to the IMS system based on the SIP protocol is an INVITE message.

[0077] S102: Determine whether the calling terminal and the called terminal are communicating in a private network according to the calling registration information and the called registration information.

[0078] In this embodiment, a preset private network address segment is pre-configured in the IMS system for providing private network communication. The IMS system can determine whether to open an account for the terminal device on the preset private network address segment based on the type of account opening request initiated by the terminal device or according to the device information of the terminal device. If the account opening request is a private network account opening request, the terminal device is opened on the preset private network address segment, or if the device information of the terminal device indicates that the terminal device is a private network terminal device, the terminal device is opened on the preset private network address segment. After the account opening is successful, the IMS system records the registration information or device information of the terminal device.

[0079] The IMS system determines whether the calling terminal and the called terminal are pre-registered in a preset private network address segment of the IMS system based on the calling registration information and the called registration information, so as to determine whether the calling terminal and the called terminal are communicating in a private network.

[0080] If both the calling terminal and the called terminal are pre-registered in the preset private network address segment of the IMS system, it is determined that the communication between the calling terminal and the called terminal is a private network. If the calling terminal and / or the called terminal are not pre-registered in the preset private network address segment of the IMS system, it is determined that the communication between the calling terminal and the called terminal is not a private network.

[0081] S103: If the calling terminal and the called terminal are communicating in a private network, determine that the call between the calling terminal and the called terminal is connected, so that the calling terminal and the called terminal perform media data transmission on a preset private network address segment through a UPF network element.

[0082] In this embodiment, if the calling terminal and the called terminal communicate in a private network, and the IMS system receives a call response from the called terminal, it determines that the call between the calling terminal and the called terminal is connected. At this time, the calling terminal and the called terminal send media data through the UPF network element. The media data carries the IP address of the calling terminal and the IP address of the called terminal. The UPF network element determines that the IP address of the calling terminal and the IP address of the called terminal both belong to the IP address allocated by the 5G private network in the preset private network address segment, and directly transmits the media data between the calling terminal and the called terminal through the N3 interface, thereby realizing P2P media data transmission between the calling terminal and the called terminal.

[0083] Among them, before making a call, the calling terminal and the called terminal need to open an account in the IMS system as well as in the 5G core network. The 5G core network allocates IP addresses to the calling terminal and the called terminal in the preset private network address segment.

[0084] It can be seen that in the above-mentioned media data communication method, by opening an account for the calling terminal and the called terminal on the preset private network address segment of the 5G private network and allocating private network IP addresses, during the process of media data transmission between the calling terminal and the called terminal, there is no need to determine the public IP address of the terminal and the public IP address of the relay server through the ICE process, the STUN process, and the TURN process, and P2P media data transmission can be realized directly based on the private network IP address.

[0085] In a possible implementation, the caller registration information may include: the caller IP address, and the called party registration information may include: called party device information. The above S102, based on the caller registration information and the called party registration information, determines whether the calling terminal and the called terminal are communicating in a private network, and may include:

[0086] Whether the communication between the calling terminal and the called terminal is a private network is determined based on whether the called IP address and the called IP address corresponding to the called device information are within the preset private network address segment.

[0087] In this embodiment, when the calling terminal initiates a call invitation to the called terminal to the IMS system, it does not know the IP address of the called terminal. Therefore, the called registration information of the called terminal carried in the call invitation is the called device information of the called terminal. After receiving the call invitation, the IMS system determines whether the calling IP address is within the preset private network address segment based on the calling IP address of the calling terminal in the call invitation, and determines whether the called terminal has opened an account within the preset private network address segment based on the called device information of the called terminal, so as to determine whether the communication between the calling terminal and the called terminal is a private network.

[0088] In some embodiments, the process of determining whether the communication between the calling terminal and the called terminal is a private network based on whether the called IP address and the called IP address corresponding to the called device information are within a preset private network address segment may include:

[0089] If the calling IP address and the called IP address are within the preset private network address segment, it is determined that the communication between the calling terminal and the called terminal is a private network.

[0090] In this embodiment, if the calling IP address is within the preset private network address segment, and the called terminal has an account within the preset private network address segment, that is, the called IP address of the called terminal is also within the preset private network address segment, then it is determined that the communication between the calling terminal and the called terminal is a private network.

[0091] Furthermore, if the calling IP address is not within the preset private network address segment, and / or the called terminal has not opened an account within the preset private network address segment, it is determined that the communication between the calling terminal and the called terminal is not a private network communication.

[0092] In a possible implementation, before the above S101 receives the call request sent by the calling terminal, the method may further include:

[0093] Receive account opening requests sent by the calling terminal and the called terminal; open accounts for the calling terminal and the called terminal on the preset private network address segment based on the account opening requests of the calling terminal and the called terminal. The account opening requests are also used to enable the core network device to allocate corresponding IP addresses to the calling terminal and the called terminal on the preset private network address segment.

[0094] In this embodiment, the calling terminal and the called terminal need to open an account in the 5G private network before conducting private network communication. Specifically, the process of opening an account for the calling terminal and the called terminal in the IMS system of the 5G private network is that the calling terminal and the called terminal respectively initiate account opening requests to the IMS system. The IMS system can identify whether to open an account for the calling terminal and the called terminal on the preset private network address segment based on the type of account opening request or the device information of the terminal device. If the type of the account opening request is a private network account opening request, or the device information of the calling terminal and the called terminal indicates that the calling terminal and the called terminal are private network terminal devices, the IMS system opens an account for the calling terminal and the called terminal on the preset private network address segment.

[0095] Among them, the IMS system opens accounts for the calling terminal and the called terminal on the preset private network address segment, which means that the IMS system records the device information of the calling terminal and the called terminal, and associates the device information of the calling terminal and the called terminal with the preset private network address segment.

[0096] In one possible implementation, Figure 3 Schematic diagram of the process of the media data communication method provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, in the above S103, if the calling terminal and the called terminal are communicating in a private network, the process of determining whether the call between the calling terminal and the called terminal is connected may include:

[0097] S201: If the calling terminal and the called terminal are communicating in a private network, forward a call invitation to the called terminal.

[0098] S203: Receive and send a call response message of the called terminal to the calling terminal, where the call response message includes the called IP address of the called terminal.

[0099] In this embodiment, after the IMS system determines that the calling terminal and the called terminal are communicating in a private network based on the calling registration information of the calling terminal and the called registration information of the called terminal, it sends a call invitation to the called terminal, and the SDP media address in the call invitation is the calling IP address of the calling terminal.

[0100] After receiving the call invitation, if the called terminal determines to accept the call invitation, it sends a call response message, such as a 183 / 200OK message, to the IMS system. The SDP media address in the call response message is the called IP address of the called terminal.

[0101] After receiving the call response message sent by the called terminal, the IMS system directly forwards the call response message to the calling terminal because it has been determined that the calling terminal and the called terminal are communicating in a private network, and determines that the call between the calling terminal and the called terminal is connected.

[0102] Afterwards, the calling terminal and the called terminal determine each other's IP addresses and can carry each other's IP addresses when transmitting media data.

[0103] In one possible implementation, Figure 4 Schematic diagram of the process of the media data communication method provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, the steps of transmitting media data between the calling terminal and the called terminal on the preset private network address segment through the UPF network element may include:

[0104] S301: Receive media data sent by one of the calling terminal and the called terminal, where the media data includes: a source IP address and a destination IP address.

[0105] S302: Determine that the source IP address and the destination IP address are private network IP addresses.

[0106] S303: Send the media data to the other terminal of the calling terminal and the called terminal according to the destination IP address.

[0107] In this embodiment, after the call between the calling terminal and the called terminal is connected, one terminal sends media data to the UPF network element, and the media data carries the source IP address and the destination IP address, wherein the source IP address is the IP address of the terminal on one side, and the destination IP address is the IP address of the terminal on the other side. After receiving the media data, the UPF network element determines whether the source IP address and the destination IP address in the media data belong to the private network IP address allocated by the 5G core network to the calling terminal and the called terminal on the preset private network address segment. If so, the UPF network element determines that the call between the calling terminal and the called terminal is a private network call, and sends the media data to the other terminal corresponding to the destination IP address.

[0108] In some embodiments, Figure 5 The following is a flow chart of the media data communication method provided by our company. Figure 4 ,like Figure 5 As shown, the step of allocating corresponding IP addresses to the calling terminal and the called terminal on the preset private network address segment by the core network device may include:

[0109] S401: Receive account opening requests sent by a calling terminal and a called terminal.

[0110] S402: According to the account opening requests of the calling terminal and the called terminal, private network addresses are respectively allocated to the calling terminal and the called terminal in a preset private network address segment.

[0111] S403: Receive private network registration requests sent by the calling terminal and the called terminal.

[0112] S404: Send the pre-allocated private network address to the calling terminal and the called terminal.

[0113] In this embodiment, before the calling terminal and the called terminal perform media data transmission, in addition to opening an account in the IMS system, they also need to open an account and register in the 5G core network. Specifically, the calling terminal and the called terminal first send an account opening request to the 5G core network, and the account opening request includes the device information of the calling terminal and the called terminal. The 5G core network records the device information of the calling terminal and the called terminal, and allocates private network IP addresses to the calling terminal and the called terminal respectively in the preset private network address segment. After that, the calling terminal and the called terminal respectively send private network registration requests to the 5G core network, and the 5G core network sends the private network IP addresses allocated to the calling terminal and the called terminal to the calling terminal and the called terminal respectively.

[0114] In the media data communication method provided in the above embodiment, when the IMS system determines that the communication between the calling terminal and the called terminal is a private network based on the caller registration information of the calling terminal and the called terminal, after the call between the calling terminal and the called terminal is connected, media data can be directly transmitted on the preset private network address segment through the UPF network element without converting the private network address into a public network address or through a relay server, thereby optimizing the media data transmission path and saving server resources.

[0115] For example, Figure 6 The interactive diagram of media data communication provided by the embodiment of the present application is as follows: Figure 6 As shown, the calling terminal (Caller) sends an INVITE message to the IMS system. The SDP media address carried in the INVITE message is the IP address of the calling terminal, namely, the Caller IP. The IMS system performs processing 1 based on the IP address of the calling terminal and the called registration information of the called terminal (Called) in the INVITE message to determine whether the communication between the calling terminal and the called terminal is a private network. If so, the INVITE message is forwarded to the called terminal. If the called terminal determines to respond to the INVITE message, a 200OK message is sent to the IMS system. The SDP media address carried in the 200OK message is the IP address of the called terminal, namely, the Called IP. Since it has been determined that the communication between the calling terminal and the called terminal is a private network, the IMS system performs processing 2, keeps the SDP media address in the 200OK message as the IP address of the called terminal and sends it to the calling terminal.

[0116] After the call between the calling terminal and the called terminal is connected, the media data is sent to the UPF network element. The UPF network element processes 3, determines that the source IP address and the destination IP address are private network IP addresses, and sends the media data to the corresponding terminal to realize the transmission of Real-time Transport Protocol (RTP) media data.

[0117] Based on the above method embodiment, the embodiment of the present application also provides a media data communication device, which is applied to the Internet Protocol Multimedia Subsystem IMS. Figure 7 A schematic diagram of the structure of a media data communication device provided in an embodiment of the present application, such as Figure 7 As shown, the device may include:

[0118] Receiving module 501, the user receives a call invitation sent by a calling terminal, the call invitation includes: calling registration information of the calling terminal and called registration information of the called terminal;

[0119] The judgment module 502 is used to determine whether the communication between the calling terminal and the called terminal is a private network according to the calling registration information and the called registration information;

[0120] The connection module 503 is used to determine whether the call between the calling terminal and the called terminal is connected if the calling terminal and the called terminal communicate in a private network, so that the calling terminal and the called terminal can transmit media data on a preset private network address segment through the user plane function UPF network element.

[0121] Optionally, the calling registration information includes: the calling IP address, and the called registration information includes: the called device information; the judgment module 502 is specifically used to determine whether the communication between the calling terminal and the called terminal is a private network based on whether the called IP address corresponding to the calling IP address and the called device information is within the preset private network address segment.

[0122] Optionally, the judgment module 502 is specifically configured to determine that the communication between the calling terminal and the called terminal is a private network if the calling IP address and the called IP address are within a preset private network address segment.

[0123] Optionally, the device may also include: an account opening module, used to receive account opening requests sent by the calling terminal and the called terminal; according to the account opening requests of the calling terminal and the called terminal, opening accounts for the calling terminal and the called terminal on the preset private network address segment, and the account opening request is also used to enable the core network device to allocate corresponding IP addresses to the calling terminal and the called terminal on the preset private network address segment.

[0124] Optionally, the connection module 503 is specifically used to forward the call invitation to the called terminal if the calling terminal and the called terminal communicate in a private network; receive and send a call response message of the called terminal to the calling terminal, wherein the call response message includes the called IP address of the called terminal.

[0125] Optionally, the device for transmitting media data between the calling terminal and the called terminal on a preset private network address segment through a UPF network element includes:

[0126] The transmission module is used to receive media data sent by one terminal of the calling terminal and the called terminal, the media data including: a source IP address and a destination IP address; determine that the source IP address and the destination IP address are private network IP addresses; and send the media data to the other terminal of the calling terminal and the called terminal according to the destination IP address.

[0127] Optionally, the means for the core network device to allocate corresponding IP addresses to the calling terminal and the called terminal in the preset private network address segment is:

[0128] The registration module is used to receive account opening requests sent by the calling terminal and the called terminal; allocate private network addresses to the calling terminal and the called terminal respectively on the preset private network address segment according to the account opening requests of the calling terminal and the called terminal; receive private network registration requests sent by the calling terminal and the called terminal; and send the pre-allocated private network addresses to the calling terminal and the called terminal.

[0129] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0130] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0131] Figure 8 A schematic diagram of an electronic device provided in an embodiment of the present application, such as Figure 8 As shown, the electronic device 600 may include: a processor 601, a storage medium 602 and a bus, the storage medium 602 stores program instructions executable by the processor 601, when the electronic device 600 is running, the processor 601 and the storage medium 602 communicate through the bus, and the processor 601 executes the program instructions to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0132] Optionally, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above method embodiment is executed.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0136] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0137] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A media data communication method, characterized in that: Applied to Internet Protocol Multimedia Subsystem IMS, the method comprises: Receiving a call invitation sent by a calling terminal, the call invitation including: calling registration information of the calling terminal and called registration information of the called terminal; Determining whether the calling terminal and the called terminal are communicating in a private network according to the calling registration information and the called registration information; If the calling terminal and the called terminal communicate in a private network, determine that the call between the calling terminal and the called terminal is connected, so that the calling terminal and the called terminal perform media data transmission on a preset private network address segment through a user plane function UPF network element.

2. The method according to claim 1, characterized in that The calling registration information includes: the calling IP address, and the called registration information includes: the called device information; and determining whether the calling terminal and the called terminal are communicating in a private network according to the calling registration information and the called registration information includes: Whether the calling terminal and the called terminal communicate in a private network is determined according to whether the calling IP address and the called IP address corresponding to the called device information are within the preset private network address segment.

3. The method according to claim 2, characterized in that The determining whether the communication between the calling terminal and the called terminal is a private network communication according to whether the calling IP address and the called IP address corresponding to the called device information are within the preset private network address segment includes: If the calling IP address and the called IP address are within the preset private network address segment, it is determined that the communication between the calling terminal and the called terminal is a private network.

4. The method according to claim 2, characterized in that Before receiving the call invitation sent by the calling terminal, the method further includes: Receiving account opening requests sent by the calling terminal and the called terminal; According to the account opening requests of the calling terminal and the called terminal, accounts are opened for the calling terminal and the called terminal on the preset private network address segment, and the account opening requests are also used to enable the core network device to allocate corresponding IP addresses to the calling terminal and the called terminal on the preset private network address segment.

5. The method according to claim 1, characterized in that If the calling terminal and the called terminal are communicating in a private network, determining that the call between the calling terminal and the called terminal is connected includes: If the calling terminal and the called terminal are communicating via a private network, forwarding the call invitation to the called terminal; A call response message of the called terminal is received and sent to the calling terminal, wherein the call response message includes the called IP address of the called terminal.

6. The method according to claim 1, characterized in that The step of transmitting media data by the calling terminal and the called terminal on the preset private network address segment through the UPF network element includes: Receiving media data sent by one of the calling terminal and the called terminal, wherein the media data includes: a source IP address and a destination IP address; Determine that the source IP address and the destination IP address are private network IP addresses; The media data is sent to the other terminal of the calling terminal and the called terminal according to the destination IP address.

7. The method according to claim 4, characterized in that The step of allocating corresponding IP addresses for the calling terminal and the called terminal on the preset private network address segment by the core network device is as follows: Receiving account opening requests sent by the calling terminal and the called terminal; According to the account opening requests of the calling terminal and the called terminal, respectively allocating private network addresses to the calling terminal and the called terminal in the preset private network address segment; Receiving private network registration requests sent by the calling terminal and the called terminal; The pre-allocated private network address is sent to the calling terminal and the called terminal.

8. A media data communication device, characterized in that: Applied to Internet Protocol Multimedia Subsystem IMS, the device comprises: A receiving module, in which a user receives a call invitation sent by a calling terminal, wherein the call invitation includes: the calling registration information of the calling terminal and the called registration information of the called terminal; A judgment module, used to determine whether the calling terminal and the called terminal are communicating in a private network according to the calling registration information and the called registration information; The connection module is used to determine whether the call between the calling terminal and the called terminal is connected if the communication between the calling terminal and the called terminal is a private network, so that the calling terminal and the called terminal can transmit media data on a preset private network address segment through a user plane function UPF network element.

9. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the media data communication method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the media data communication method according to any one of claims 1 to 7 are executed.