Message transmission method and device, electronic equipment and storage medium
By carrying a preset identifier and a session message with the identifier when the gateway fails, and using the address mapping table to replace the routing information, the problem of session interruption caused by gateway failure is solved, ensuring session continuity and normal operation of services.
Patent Information
- Application Number
- CN202311099625.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2043-08-29
AI Technical Summary
When a security gateway deployed at the boundary between the central network and the edge private network fails, the backup security gateway cannot properly route session messages, resulting in session interruption.
When a gateway failure is detected, a session message carrying a preset identifier and a gateway identifier is sent to instruct the backup gateway to replace the routing information using the address mapping table, ensuring that the session message can be forwarded correctly.
It ensures session continuity in the event of gateway failure, guaranteeing normal business operations.
Smart Images

Figure CN118827334B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network technology, and in particular to a message transmission method, apparatus, electronic device, and storage medium. Background Technology
[0002] Since the edge private network (including User Plane Function (UPF) network elements) is deployed in an untrusted area, in order to prevent attacks on the edge network from launching attacks on the central network (including Service Management Function (SMF) network elements) through interfaces, thereby affecting the services of the entire network, a security gateway needs to be deployed at the boundary between the central network and the edge private network to achieve security isolation and message protection.
[0003] In related technologies, if the primary security gateway fails, the SMF will select the backup security gateway to forward messages. However, since the UPF session messages held by the SMF are converted by the primary security gateway, if the SMF sends the session messages to the backup security gateway, the backup security gateway will be unable to route the session messages to the correct UPF, resulting in session interruption. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a message transmission method, apparatus, electronic device, and storage medium that can maintain session connections when a gateway fails.
[0005] The technical solution of this invention is implemented as follows:
[0006] On one hand, embodiments of the present invention provide a message transmission method applied to a first network element, the method comprising:
[0007] If a failure is detected in the first gateway, a session message is sent to the second gateway; the session message carries a preset identifier and the identifier of the first gateway; the preset identifier indicates that the first gateway has failed.
[0008] The preset identifier is used to instruct the second gateway to determine the address mapping table of the first gateway based on the first gateway identifier, and to send the session message to the second network element based on the address mapping table of the first gateway; the address mapping table contains the routing information of the session message.
[0009] In the above scheme, the first network element includes any one of the following:
[0010] User plane function network elements;
[0011] Session management function network element.
[0012] In the above scheme, if the first network element is a session management function network element, then the second network element is a user plane function network element. Before sending the session message to the second gateway, the method further includes:
[0013] The first gateway sends a connection establishment request to the user plane function network element.
[0014] The system receives a connection establishment response message sent by the user plane function network element through the first gateway; the connection establishment response message includes the identifier of the second gateway added by the first gateway.
[0015] Obtain the identifier of the second gateway from the association establishment response message.
[0016] In the above scheme, if the first network element is a user plane function network element, then the second network element is a session management function network element, and the method further includes:
[0017] The system receives a connection establishment request sent by the session management function network element through the first gateway; the connection establishment request includes the identifier of the second gateway added by the first gateway.
[0018] Obtain the identifier of the second gateway from the association establishment request.
[0019] On the other hand, embodiments of the present invention also provide a message transmission method applied to a gateway, the method comprising:
[0020] Detect the session messages sent by the first network element;
[0021] If the session message is detected to include a preset identifier and a first gateway identifier, then the address mapping table of the first gateway is determined based on the first gateway identifier; the address mapping table contains the routing information of the session message;
[0022] Based on the address mapping table of the first gateway, the session message is sent to the second network element.
[0023] In the above scheme, the method further includes:
[0024] Receive the address mapping table sent by the first gateway.
[0025] In the above scheme, the method further includes:
[0026] Add the identifier of the backup gateway of the gateway to the received connection establishment request or connection establishment response message.
[0027] On the other hand, embodiments of the present invention provide a message transmission device, the device comprising:
[0028] A first sending module is configured to send a session message to a second gateway when a first gateway failure is detected; the session message carries a preset identifier and a first gateway identifier; the preset identifier indicates that the first gateway has failed.
[0029] The preset identifier is used to instruct the second gateway to determine the address mapping table of the first gateway based on the first gateway identifier, and to send the session message to the second network element based on the address mapping table of the first gateway; the address mapping table contains the routing information of the session message.
[0030] On the other hand, embodiments of the present invention also provide a message transmission device, the device comprising:
[0031] The detection module is used to detect session messages sent by the first network element;
[0032] The determining module is configured to, if the session message is detected to include a preset identifier and a first gateway identifier, determine the address mapping table of the first gateway based on the first gateway identifier; the address mapping table contains the routing information of the session message;
[0033] The second sending module is used to send the session message to the second network element based on the address mapping table of the first gateway.
[0034] On the other hand, embodiments of the present invention provide a network element including a processor and a memory, the processor and the memory being interconnected, wherein the memory is used to store a computer program, the computer program including program instructions, and the processor is configured to invoke the program instructions to execute the steps of the message transmission method provided in the first aspect of the present invention.
[0035] On the other hand, embodiments of the present invention provide an electronic device including a processor and a memory interconnected thereto, wherein the memory is used to store a computer program, the computer program including program instructions, and the processor is configured to invoke the program instructions to execute the steps of the message transmission method provided in the second aspect of the present invention.
[0036] On the other hand, embodiments of the present invention provide a computer-readable storage medium, comprising: the computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps of the message transmission method provided in the first aspect of the present invention.
[0037] On the other hand, embodiments of the present invention also provide a computer-readable storage medium, comprising: the computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the steps of the message transmission method provided in the second aspect of the present invention.
[0038] In this embodiment, when a first network element detects a failure in the first gateway, it sends a session message to the second gateway. The session message carries a preset identifier and a first gateway identifier. The preset identifier instructs the second gateway to determine the address mapping table of the first gateway based on the first gateway identifier. The address mapping table contains routing information for the session message. Based on the address mapping table of the first gateway, the session message is sent to the second network element. In this embodiment, when the first gateway (primary gateway) fails, the first network element sends the first gateway identifier and the preset identifier to the second gateway (backup gateway), enabling the second gateway to know that the first gateway has failed. This allows the second gateway to use the first gateway identifier to obtain the address mapping table of the first gateway and forward the session message to the second network element using the address mapping table of the first gateway, thus achieving uninterrupted session communication between the first and second network elements. This embodiment allows for uninterrupted session migration to the backup gateway after a failure of the primary gateway, ensuring normal service operation. Attached Figure Description
[0039] Figure 1 This is a schematic diagram illustrating the relationship between a central network and an edge network provided in an embodiment of the present invention;
[0040] Figure 2 This is a schematic diagram of a message transmission process provided in an embodiment of the present invention;
[0041] Figure 3 This is a schematic diagram of a 5G network architecture provided in an embodiment of the present invention;
[0042] Figure 4 This is a schematic diagram of a gateway performing address replacement according to an embodiment of the present invention;
[0043] Figure 5 This is a schematic diagram illustrating the implementation process of a message transmission method provided in an embodiment of the present invention;
[0044] Figure 6 This is a schematic diagram of a message transmission device provided in an embodiment of the present invention;
[0045] Figure 7 This is a schematic diagram of another message transmission device provided in an embodiment of the present invention;
[0046] Figure 8 This is a schematic diagram of the hardware composition structure of the network element in an embodiment of this application;
[0047] Figure 9 This is a schematic diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0049] like Figure 1 As shown, due to edge private networks (such as...) Figure 1 The UPF (Upgraded Provider Function), UPF+ Deployment (Emergency Solution), Customized Core Network Partial Deployment (Basic Solution), and Customized Core Network Partial Deployment (Enhanced Solution) are located in untrusted areas. The UPF+ Deployment (Emergency Solution) includes a backup SMF (Service Management Function), a backup Access and Mobility Management Function (AMF), and a backup Unified Data Management Function (UDM). The SMF / UDM in the regional resource pool communicates with the Upgraded Provider Function and the UPF+ Deployment (Emergency Solution) in the edge untrusted domain via the N4 interface. The SMF / UDM in the regional resource pool communicates with the Customized Core Network Partial Deployment (Enhanced Solution) and Customized Core Network Partial Deployment (Basic Solution) in the edge untrusted domain via service interfaces N8 / N10 / N12 / N7 / N15 / N20.
[0050] To prevent attacks on the edge network from launching attacks on the central network (located in the trusted domain) through interfaces and thus affecting network-wide services, a signaling security gateway needs to be deployed at the boundary between the central network and the edge private network to achieve security isolation and message protection. UPF network elements in the edge network and SMF network elements in the central network need to conduct N4 sessions through the signaling security gateway.
[0051] In related technologies, if the primary signaling security gateway fails, the SMF will select a backup signaling security gateway. For example... Figure 2 As shown, assuming the primary gateway is Signaling Security Gateway 1, if Signaling Security Gateway 1 fails, the SMF selects Signaling Security Gateway 2 as the backup gateway. However, since the UPF session information held by the SMF is translated by Signaling Security Gateway 1, and the SMF session information held by the UPF is also translated by Signaling Security Gateway 1, if the SMF directly sends the Packet Forwarding Control Protocol (PFCP) session message to Signaling Security Gateway 2, Signaling Security Gateway 2 cannot route the session message to the correct UPF because it does not have the address translation relationship of Signaling Security Gateway 1, causing the N4 session to be interrupted.
[0052] To address the shortcomings of the aforementioned related technologies, embodiments of the present invention provide a message transmission method that ensures session uninterruption even in the event of a gateway failure. Specific embodiments are described below to illustrate the technical solution of the present invention.
[0053] Figure 3 This is a schematic diagram of a 5G network architecture provided by an embodiment of the present invention. The 5G network architecture includes: a Network Slice Selection Function (NSSF) network element, a Network Exposure Function (NEF) network element, a Network Repository Function (NRF) network element, a Policy Control Function (PCF) network element, a Unified Data Management (UDM) network element, an Application Function (AF) network element, an Edge Application Server Discovery Function (EASDF) network element, a Network Slice-Specific Authentication and Authorization Function (NS SAAF) network element, an Authentication Server Function (AUSF) network element, an Access and Mobility Management Function (AMF) network element, an SMF network element, a User Equipment (UE), and a Radio Access Network (RAN). ssNetwork (R)AN), UPF network element, Signaling Control Point (SCP) network element, Network Slice Admission Control Function (NSACF) network element, and DataNetwork (DN).
[0054] The interface between the UPF and SMF is the N4 interface, which is used for Multihomed Protocol Data Unit (PDU) session management and traffic redirection to the UPF and PDU. The establishment and updating of the N4 interface can be initiated by either the SMF or the UPF.
[0055] The signaling security gateway supports one-to-one mapping between the N4 interface provided by the SMF and the UPF device, and vice versa. When the SMF and UPF communicate via N4 messages, the signaling security gateway needs to map the received Internet Protocol (IP) address to the actual destination IP of the N4, forming an address mapping table between the receiving IP and the actual destination N4 network element (SMF or UPF) IP, and supports forwarding PFCP messages and address replacement based on this address mapping table.
[0056] like Figure 4 As shown, the source IP address in the PFCP Session Establishment Request sent by SMF is SMF IP1.1.1.1, and the destination IP address is Signaling Security Gateway IP3.3.3.1. From the perspective of SMF, the IP3.3.3.1 of Signaling Security Gateway is the IP address of UPF.
[0057] The signaling security gateway performs source / destination address replacement based on the mapping relationship between the real IP and the signaling security gateway's proxy IP, and routes the request message to the UPF. The signaling security gateway translates the IP layer source address in the PFCP Session Establishment Request to its own IP address (4.4.4.1), and the IP layer destination address to UPF IP address (2.2.2.1). From the UPF's perspective, the signaling security gateway's IP address (4.4.4.1) is the IP address of the SMF network element.
[0058] UPF sends the PFCP Session Establishment Response to the signaling security gateway, with the IP layer source address being UPFIP2.2.2.1 and the IP layer destination address being the signaling security gateway IP4.4.4.1.
[0059] The signaling security gateway performs source / destination address replacement based on the mapping relationship between the real IP and the signaling security gateway's proxy IP, and routes the request message to the SMF. The signaling security gateway translates the IP layer source address to the signaling security gateway's IP3.3.3.1 and the IP layer destination address to SMFIP1.1.1.1.
[0060] This invention provides a message transmission method, wherein the execution subject of the message transmission method is a first network element. The message transmission method includes:
[0061] If a failure is detected in the first gateway, a session message is sent to the second gateway; the session message carries a preset identifier and the identifier of the first gateway; the preset identifier indicates that the first gateway has failed.
[0062] The preset identifier is used to instruct the second gateway to determine the address mapping table of the first gateway based on the first gateway identifier, and to send the session message to the second network element based on the address mapping table of the first gateway; the address mapping table contains the routing information of the session message.
[0063] In this embodiment, the first network element can be an SMF network element or a UPF network element, and this embodiment can be applied to the N4 session process. The session message can be N4 session information, which includes PFCP session establishment request, PFCP session establishment response, PFCP session modification request, etc.
[0064] In one embodiment, the first gateway is the primary gateway and the second gateway is the backup gateway. When the first gateway fails, the second gateway forwards the session messages between the first network element and the second network element.
[0065] For example, the first network element can detect whether the first gateway has failed through heartbeat detection. If it does not receive a heartbeat signal from the first gateway for a set period of time, it is determined that the first gateway has failed.
[0066] If a fault is detected in the first gateway, the first network element adds a preset identifier and a first gateway identifier to the session message. The preset identifier indicates that the currently used gateway has failed. The first gateway sends the session message to the second gateway. The second gateway detects the preset identifier and the first gateway identifier in the session message, determines that the first gateway identifier indicates a failure, finds the address mapping table of the first gateway through the first gateway identifier, replaces the IP address (including the source IP address and the destination IP address) in the session message with the address mapping table of the first gateway, and then forwards the session message to the second network element. The first gateway has pre-sent the address mapping table to the second gateway.
[0067] The address mapping table contains routing information for the session messages. This routing information includes replacement addresses corresponding to the source and destination addresses in the session messages, such as... Figure 4 As shown, the source and destination addresses of the session information are replaced to achieve correct forwarding of the session information.
[0068] In this embodiment, when a first network element detects a failure in the first gateway, it sends a session message to the second gateway. The session message carries a preset identifier and a first gateway identifier. The preset identifier instructs the second gateway to determine the address mapping table of the first gateway based on the first gateway identifier. The address mapping table contains routing information for the session message. Based on the address mapping table of the first gateway, the session message is sent to the second network element. In this embodiment, when the first gateway (primary gateway) fails, the first network element sends the first gateway identifier and the preset identifier to the second gateway (backup gateway), enabling the second gateway to know that the first gateway has failed. This allows the second gateway to use the first gateway identifier to obtain the address mapping table of the first gateway and forward the session message to the second network element using the address mapping table of the first gateway, thus achieving uninterrupted session communication between the first and second network elements. This embodiment allows for uninterrupted session migration to the backup gateway after a failure of the primary gateway, ensuring normal service operation.
[0069] In one embodiment, if the first network element is a session management function network element, then the second network element is a user plane function network element. Before sending the session message to the second gateway, the method further includes:
[0070] The first gateway sends a connection establishment request to the user plane function network element.
[0071] The system receives a connection establishment response message sent by the user plane function network element through the first gateway; the connection establishment response message includes the identifier of the second gateway added by the first gateway.
[0072] Obtain the identifier of the second gateway from the association establishment response message.
[0073] Here, coupling establishment refers to the N4 interface coupling between UPF and SMF during the N4 session establishment process.
[0074] The SMF initiates an association establishment request (PFCP Association Setup Request message) to the UPF through the first gateway, and the UPF returns an association establishment response message (PFCP Association Setup Response message) to the SMF through the first gateway. The first gateway adds the identifier of the second gateway (a backup gateway identifier, indicating that the backup gateway will be used in case the primary gateway fails) to the PFCP Association Setup Response message.
[0075] The SMF obtains the identifier of the second gateway from the PFCP Association Setup Response message. In this way, when the SMF detects a failure of the primary gateway, it knows which backup gateway to send the session message to.
[0076] In one embodiment, if the first network element is a user plane function network element, then the second network element is a session management function network element, and the method further includes:
[0077] The system receives a connection establishment request sent by the session management function network element through the first gateway; the connection establishment request includes the identifier of the second gateway added by the first gateway.
[0078] Obtain the identifier of the second gateway from the association establishment request.
[0079] The first gateway can add the identifier of the second gateway to the PFCP Association Setup Request message sent by the SMF. The UPF can obtain the identifier of the second gateway from the PFCP Association Setup Request message. In this way, the UPF can also know which backup gateway to send the session message to when it detects a failure of the primary gateway.
[0080] For example, a type of PFCP Association Setup Response message element is shown in Table 1:
[0081]
[0082] Table 1
[0083] The Recovery Node ID is the identifier of the second network element.
[0084] For example, in the N4 session flow, the PFCP Session EstablishmentRequest and PFCP Session Modification Request messages sent by the SMF to the second network element both carry a preset identifier and the first gateway identifier.
[0085] For example, the message elements of a PFCP Session Establishment Request are shown in Table 2:
[0086]
[0087]
[0088] Table 2
[0089] For example, a PFCP Session Modification Request message element is shown in Table 3:
[0090]
[0091]
[0092] Table 3
[0093] It should be understood that only when a failure of the first gateway is detected does the preset identifier and the first gateway identifier need to be carried in the session message. Under normal circumstances, the preset identifier and the first gateway identifier do not need to be carried.
[0094] Figure 5 This is a schematic diagram illustrating the implementation flow of a message transmission method provided in an embodiment of the present invention. The message transmission method is applied to a gateway, such as a second gateway. (Reference) Figure 5 The message transmission methods include:
[0095] S501 detects the session messages sent by the first network element.
[0096] For example, in this embodiment, when the first network element detects a fault in the first gateway, it sends a session message to the second gateway, and the second gateway detects the session message sent by the first network element.
[0097] S502, if the session message is detected to include a preset identifier and a first gateway identifier, then the address mapping table of the first gateway is determined according to the first gateway identifier; the address mapping table contains the routing information of the session message.
[0098] If a session message contains a preset identifier and a first gateway identifier, it means that the session message needs to be forwarded based on the first gateway's address mapping table. The second gateway can obtain the first gateway's address mapping table through the first gateway identifier. Here, the first gateway will send its address mapping table to the second gateway in advance, and the second gateway will store the first gateway's address mapping table and the first gateway identifier together.
[0099] S503, based on the address mapping table of the first gateway, the session message is sent to the second network element.
[0100] For example, the address mapping table stores the mapping relationship between the real IP of the network element and the proxy IP of the first gateway. The second gateway can replace the source / destination IP address in the session message according to the mapping relationship in the address mapping table, and then forward the session message to the second network element.
[0101] For example, you can refer to the above. Figure 4In the embodiment described, the source IP address in the PFCP Session EstablishmentRequest sent by the SMF is SMF IP 1.1.1.1, and the destination IP address is the first gateway IP 3.3.3.1. The second gateway, based on the address mapping table of the first gateway, translates the source IP address to the first gateway's IP 4.4.4.1 and the destination IP address to UPF IP 2.2.2.1.
[0102] Thus, this embodiment allows the N4 session to be migrated without interruption after a signaling security gateway fails.
[0103] In one embodiment, the method further includes:
[0104] Receive the address mapping table sent by the first gateway.
[0105] The second gateway maintains the address mapping table received from the first gateway.
[0106] The first gateway sends its address mapping table to the second gateway in advance. The second gateway stores the address mapping table and the first gateway identifier together. This allows the second gateway to retrieve the address mapping table of the first gateway based on the first gateway identifier when it detects the first gateway identifier in the session message. The second gateway can then replace the IP address in the session message with the address mapping table of the first gateway, ensuring that the session message can be transmitted to the correct target network element and guaranteeing that the session between the first network element and the second network element is not interrupted.
[0107] In one embodiment, the method further includes:
[0108] Add the identifier of the backup gateway of the gateway to the received connection establishment request or connection establishment response message.
[0109] The second gateway is a backup gateway for the first gateway. In practical applications, the second gateway can also have its own backup gateway; for example, the third gateway can be a backup gateway for the second gateway. If the second gateway fails, its backup gateway can be used to forward session messages. Therefore, when establishing an N4 interface association, the second gateway can add the identifier of its backup gateway to the association establishment request or response message, so that when the first network element detects a failure in the second gateway, it can send session messages to the backup gateway.
[0110] This embodiment addresses the issue of N4 session interruption caused by the backup signaling security gateway's inability to route to the correct UPF after a primary signaling security gateway failure. By maintaining and transmitting the address translation table between the primary and backup signaling security gateways, and by the SMF initiating N4 interface signaling interactions carrying a preset identifier and the original signaling security gateway's tag, routing from the backup signaling security network element to the correct UPF is achieved, ensuring that the user's N4 session remains intact and uninterrupted, and that services are unaffected.
[0111] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0112] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0113] It should be noted that the technical solutions described in the embodiments of the present invention can be combined arbitrarily without conflict.
[0114] In addition, in the embodiments of the present invention, "first," "second," etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0115] refer to Figure 6 , Figure 6 This is a schematic diagram of a message transmission device provided in an embodiment of the present invention, such as... Figure 6 As shown, the device includes:
[0116] The first sending module 601 is used to send a session message to a second gateway when a first gateway failure is detected; the session message carries a preset identifier and a first gateway identifier; the preset identifier indicates that the first gateway has failed.
[0117] The preset identifier is used to instruct the second gateway to determine the address mapping table of the first gateway based on the first gateway identifier, and to send the session message to the second network element based on the address mapping table of the first gateway; the address mapping table contains the routing information of the session message.
[0118] In one embodiment, the first network element includes any one of the following:
[0119] User plane function network elements;
[0120] Session management function network element.
[0121] In one embodiment, if the first network element is a session management function network element, then the second network element is a user plane function network element, and the apparatus further includes:
[0122] The request sending module is used to send a connection establishment request to the user plane function network element through the first gateway;
[0123] The response receiving module is used to receive the association establishment response message sent by the user plane function network element through the first gateway; the association establishment response message includes the identifier of the second gateway added by the first gateway;
[0124] The first identifier acquisition module is used to acquire the identifier of the second gateway in the association establishment response message.
[0125] In one embodiment, if the first network element is a user plane function network element, then the second network element is a session management function network element, and the apparatus further includes:
[0126] The request receiving module is used to receive the association establishment request sent by the session management function network element through the first gateway; the association establishment request includes the identifier of the second gateway added by the first gateway;
[0127] The second identifier acquisition module acquires the identifier of the second gateway in the association establishment request.
[0128] refer to Figure 7 , Figure 7 This is a schematic diagram of another message transmission device provided in an embodiment of the present invention, such as... Figure 7 As shown, the device includes:
[0129] The detection module 701 is used to detect the session messages sent by the first network element;
[0130] The determining module 702 is configured to, if the session message is detected to include a preset identifier and a first gateway identifier, determine the address mapping table of the first gateway based on the first gateway identifier; the address mapping table contains the routing information of the session message;
[0131] The second sending module 703 is used to send the session message to the second network element based on the address mapping table of the first gateway.
[0132] In one embodiment, the device further includes:
[0133] The address mapping table receiving module is used to receive the address mapping table sent by the first gateway.
[0134] In one embodiment, the device further includes:
[0135] An add module is used to add the identifier of the backup gateway of the gateway to the received connection establishment request or connection establishment response message.
[0136] In practical applications, the first transmitting module 601 can be implemented by a processor in the network element, such as a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU), or a field-programmable gate array (FPGA).
[0137] It should be noted that the message transmission device provided in the above embodiments is only illustrated by the division of the above modules when transmitting messages. In actual applications, the above processing can be assigned to different modules as needed, that is, the internal structure of the device can be divided into different modules to complete all or part of the processing described above. In addition, the message transmission device and message transmission method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.
[0138] The aforementioned message transmission device can be in the form of an image file. After execution, the image file can run as a container or virtual machine to implement the message transmission method described in this application. However, it is not limited to the image file format; any software implementation capable of the message transmission method described in this application is within the scope of protection of this application.
[0139] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide a network element. Figure 8 This is a schematic diagram of the hardware composition structure of the network element in an embodiment of this application, as shown below. Figure 8 As shown, the network elements include:
[0140] The communication interface 801 enables information exchange with other devices, such as network devices.
[0141] The processor 802 is connected to the communication interface 801 to enable information interaction with other devices and, when running a computer program, executes the methods provided by one or more of the aforementioned network element-side technical solutions. The computer program is stored in the memory 803.
[0142] Of course, in practical applications, the various components in a network element are coupled together through a bus system 804. It can be understood that the bus system 804 is used to implement communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 8 The general labeled all buses as Bus System 804.
[0143] The memory 803 in this embodiment is used to store various types of data to support the operation of the network element. Examples of such data include any computer program used to operate on the network element.
[0144] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide an electronic device. Figure 9 This is a schematic diagram of the hardware structure of the electronic device according to an embodiment of this application, as shown below. Figure 9 As shown, the electronic device includes:
[0145] The communication interface 901 enables information exchange with other devices, such as network devices.
[0146] The processor 902 is connected to the communication interface 901 to enable information interaction with other devices and, when running a computer program, executes the methods provided by one or more technical solutions on the gateway side. The computer program is stored in the memory 903.
[0147] Of course, in practical applications, the various components in an electronic device are coupled together through a bus system 904. It can be understood that the bus system 904 is used to implement communication between these components. In addition to the data bus, the bus system also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 9 The general designated all buses as Bus System 904.
[0148] The memory 903 in this embodiment is used to store various types of data to support the operation of the electronic device. Examples of such data include any computer program used to operate on the electronic device.
[0149] It is understood that the aforementioned memory can be volatile or non-volatile, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.
[0150] The methods disclosed in the embodiments of this application can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory. The processor reads the program from the memory and, in conjunction with its hardware, completes the steps of the aforementioned method.
[0151] Optionally, when the processor executes the program, it implements the corresponding processes implemented by the electronic device in the various methods of the embodiments of this application. For the sake of brevity, these will not be described in detail here.
[0152] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a first memory storing a computer program, which can be executed by a processor of an electronic device to complete the steps described in the aforementioned method. The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
[0153] In the several embodiments provided in this application, it should be understood that the disclosed apparatus, electronic devices, and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components may be combined, or integrated into another system, or some features may be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0154] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0155] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0156] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0157] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0158] It should be noted that the technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.
[0159] In addition, in this application example, terms such as "first" and "second" are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0160] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A message transmission method, applied to a first network element, wherein the first network element is a session management function network element, characterized in that, The method comprises: sending a coupling establishment request to a second network element through a first gateway; the second network element is a user plane function network element; receiving a coupling establishment response message sent by the second network element through the first gateway; the coupling establishment response message comprises an identifier of a second gateway added by the first gateway; obtaining the identifier of the second gateway in the coupling establishment response message; in the case of detecting first gateway failure, sending a session message to a second gateway; the session message carries a preset identifier and the first gateway identifier; the preset identifier indicates that the first gateway has failed; wherein the preset identifier is used to instruct the second gateway to determine an address mapping table of the first gateway based on the first gateway identifier, and send the session message to a second network element based on the address mapping table of the first gateway; the address mapping table contains routing information of the session message.
2. The method of claim 1, wherein, The first network element comprises any one of the following: a user plane function network element; a session management function network element.
3. The method of claim 1, wherein, If the first network element is a user plane function network element, the second network element is a session management function network element, and the method further comprises: receiving a coupling establishment request sent by the session management function network element through the first gateway; the coupling establishment request comprises an identifier of the second gateway added by the first gateway; obtaining the identifier of the second gateway in the coupling establishment request.
4. A message transmission method applied to a gateway, characterized in that, The method comprises: detecting a session message sent by a first network element; if it is detected that the session message comprises a preset identifier and a first gateway identifier, determining an address mapping table of the first gateway according to the first gateway identifier; the address mapping table contains routing information of the session message; based on the address mapping table of the first gateway, sending the session message to a second network element; The method further comprises: adding an identifier of a standby gateway of the gateway in the received coupling establishment request or coupling establishment response message.
5. The method of claim 4, wherein, The method further comprises: receiving an address mapping table sent by the first gateway.
6. A message transmission apparatus characterized by comprising: Comprise: a request sending module for sending a coupling establishment request to a second network element through a first gateway; the first network element is a session management function network element, and the second network element is a user plane function network element; a response receiving module for receiving a coupling establishment response message sent by the second network element through the first gateway; the coupling establishment response message comprises an identifier of a second gateway added by the first gateway; a first identifier obtaining module for obtaining the identifier of the second gateway in the coupling establishment response message; a first sending module for sending a session message to a second gateway in the case of detecting first gateway failure; the session message carries a preset identifier and the first gateway identifier; the preset identifier indicates that the first gateway has failed; wherein the preset identifier is used to instruct the second gateway to determine an address mapping table of the first gateway based on the first gateway identifier, and send the session message to a second network element based on the address mapping table of the first gateway; the address mapping table contains routing information of the session message.
7. A message transmission apparatus characterized by comprising: Comprise: a detection module for detecting a session message sent by a first network element; The determining module is configured to determine an address mapping table of the first gateway according to the first gateway identifier if it is detected that the session message comprises the preset identifier and the first gateway identifier; the address mapping table comprises routing information of the session message; The second sending module is configured to send the session message to a second network element based on the address mapping table of the first gateway; The adding module is configured to add an identifier of a backup gateway of the gateway in the received coupling establishment request or coupling establishment response message.
8. A network element comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the message transmission method in claim 1 to 3 when executing the computer program.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program comprises program instructions, which, when executed by the processor, cause the processor to execute the message transmission method in claim 1 to 3.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor implements the message transmission method in claim 4 to 5 when executing the computer program.
11. A computer readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program comprises program instructions, which, when executed by the processor, cause the processor to execute the message transmission method in claim 4 to 5.
Citation Information
Patent Citations
Message interaction method, related device and system
CN109802980A
Data sending method, device and apparatus
CN109982383A