CN118301789A - Communication method, 5G network system and equipment - Google Patents

Communication method, 5G network system and equipment Download PDF

Info

Publication number
CN118301789A
CN118301789A CN202410387281.4A CN202410387281A CN118301789A CN 118301789 A CN118301789 A CN 118301789A CN 202410387281 A CN202410387281 A CN 202410387281A CN 118301789 A CN118301789 A CN 118301789A
Authority
CN
China
Prior art keywords
keep
agent
alive
heartbeat
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410387281.4A
Other languages
Chinese (zh)
Inventor
俞一帆
边广志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ailing Network Co ltd
Original Assignee
Shenzhen Ailing Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ailing Network Co ltd filed Critical Shenzhen Ailing Network Co ltd
Priority to CN202410387281.4A priority Critical patent/CN118301789A/en
Publication of CN118301789A publication Critical patent/CN118301789A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application provides a communication method, a 5G network system and equipment, wherein the 5G network system comprises the following components: the access network device, access and mobility management function, set up the first proxy cluster in the network security domain where the access network device is located, and set up the second proxy cluster in the network security domain where the access and mobility management function is located, the first proxy cluster includes: the second agent cluster comprises a plurality of second keep-alive agents; the method comprises the following steps: each first keep-alive agent communicates with a corresponding second keep-alive agent based on the current heartbeat parameters, detects a communication connection state between the first keep-alive agent and the corresponding second keep-alive agent, and sends the communication connection state to the master agent; the master agent determines a target heartbeat parameter corresponding to the master agent according to the communication connection state sent by each first keep-alive agent, and communicates with the access and mobility management function based on the target heartbeat parameter. And the stability of the 5G network is improved.

Description

Communication method, 5G network system and equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communications method, a 5G network system, and an apparatus.
Background
The 5G local network is also called a private 5G network, which uses 5G technology to create a private network on site of a local user, the network has unified connectivity, optimized service and safe communication modes in a specific area, and provides the characteristics of high transmission speed, low delay and mass connection supported by the 5G technology. The 5G local network is constructed based on 5G equipment and comprises 5G terminal equipment, a 5G wireless base station and 5G core network equipment. The N2 interface between the 5G access network device (Radio Access Network, RAN for short) and the access and mobility management function (ACCESS AND Mobility Management Function, AMF for short) establishes a connection using a stream control transmission protocol (Stream Control Transmission Protocol, SCTP for short).
Currently, in a 5G network system, when the RAN and the AMF are deployed in different network security domains, due to the influence of a network firewall security policy, a situation of failure of a SCTP connection between the RAN and the AMF may occur. Such a failure of the SCTP connection is typically triggered by an SCTP heartbeat timeout mechanism, and a SCTP disconnection will cause the RAN to determine that the network is abnormal, thereby interrupting the radio access service.
In the related art, the occurrence of the SCTP connection failure can be reduced by adjusting the SCTP heartbeat parameter in the RAN device. Because the network firewall security policy is unknown to the RAN, the RAN equipment can ensure that the SCTP heartbeat parameters in the RAN equipment are set to proper values through a complicated configuration adjustment process so as to avoid the condition that the SCTP connection fails. However, the adjustment of the SCTP heartbeat parameter in the RAN device may require restarting the device, so repeated adjustment of the SCTP heartbeat parameter will cause repeated restarting of the wireless connection of the industrial device, thereby affecting the overall operation stability of the network.
Disclosure of Invention
The application aims to provide a communication method, a 5G network system and equipment aiming at the defects in the prior art so as to solve the problem of the prior art that the overall operation stability of the network is poor.
In order to achieve the above purpose, the technical scheme adopted by the embodiment of the application is as follows:
In a first aspect, an embodiment of the present application provides a communication method, which is applied to a 5G network system, where the 5G network system includes: the access network device, access and mobility management function, set up the first proxy cluster in the network security domain where the access network device is located, and set up the second proxy cluster in the network security domain where the said access and mobility management function is located, the said first proxy cluster includes: the second agent cluster comprises a plurality of second keep-alive agents, the master agents are respectively in communication connection with the access network equipment and the access and mobility management functions, each first keep-alive agent is in communication connection with the master agent, and each first keep-alive agent is in communication connection with each second keep-alive agent in one-to-one correspondence; the method comprises the following steps:
Each first keep-alive agent communicates with a corresponding second keep-alive agent based on the current heartbeat parameters, detects a communication connection state between the first keep-alive agent and the corresponding second keep-alive agent, and sends the communication connection state to the master agent;
the master agent receives the communication connection state sent by each first keep-alive agent, determines a target heartbeat parameter corresponding to the master agent according to the communication connection state sent by each first keep-alive agent, and communicates with the access and mobility management function based on the target heartbeat parameter.
As an optional implementation manner, the determining a target heartbeat parameter according to the communication connection state sent by each first keep-alive agent, and communicating with the access and mobility management function based on the target heartbeat parameter, includes:
If the communication between the main agent and the access and mobility management function is abnormal, the main agent determines a target heartbeat parameter according to the communication connection state sent by each first keep-alive agent, and communicates with the access and mobility management function based on the target heartbeat parameter.
As an alternative implementation, the method further includes:
The master agent determines the first keep-alive agents with abnormal communication according to the communication connection states sent by the first keep-alive agents;
the main agent determines a new heartbeat parameter corresponding to a first keep-alive agent with communication abnormality according to the current heartbeat parameter of the first keep-alive agent without communication abnormality;
The main agent sends the new heartbeat parameters to the first keep-alive agent with abnormal communication;
the first keep-alive agent with abnormal communication replaces the current heartbeat parameter with the new heartbeat parameter.
As an alternative implementation, the current heartbeat parameters include: heartbeat interval and heartbeat timeout period;
The main agent determines a new heartbeat parameter corresponding to a first keep-alive agent with communication abnormality according to a current heartbeat parameter of the first keep-alive agent without communication abnormality, and the method comprises the following steps:
The master agent determines the average value of the heartbeat intervals of the first keep-alive agents without communication abnormality, and takes the average value of the heartbeat intervals as a new heartbeat interval corresponding to the first keep-alive agents with communication abnormality;
And the master agent determines the average value of the heartbeat timeout duration of each first keep-alive agent without communication abnormality, and takes the average value of the heartbeat timeout duration as the new heartbeat timeout duration corresponding to the first keep-alive agent with communication abnormality.
As an optional implementation manner, after the master agent determines the new heartbeat parameter corresponding to the first keep-alive agent with communication exception according to the current heartbeat parameter of the first keep-alive agent without communication exception, the method further includes:
The master agent sends reconnection indication to the first keep-alive agent with abnormal communication;
And the first keep-alive agent with abnormal communication communicates with the corresponding second keep-alive agent according to the reconnection instruction and the replaced current heartbeat parameter.
As an optional implementation manner, before the first keep-alive agents communicate with the corresponding second keep-alive agents based on the current heartbeat parameters, the method further includes:
The master agent determines initial current heartbeat parameters of each first keep-alive agent according to the number of the first keep-alive agents, a preset heartbeat interval reference value, a preset heartbeat interval stepping value, a preset heartbeat timeout duration reference value and a heartbeat timeout duration stepping value;
the master agent sends initial current heartbeat parameters of each first keep-alive agent to each first keep-alive agent respectively;
each of the first keep-alive agents communicates with a corresponding second keep-alive agent based on the initial current heartbeat parameters.
As an optional implementation manner, each of the first keep-alive agents communicates with a corresponding second keep-alive agent based on a current heartbeat parameter, and detects a communication connection state between the first keep-alive agent and the corresponding second keep-alive agent, including:
And each first keep-alive agent sends heartbeat messages to a corresponding second keep-alive agent according to the heartbeat interval in the current heartbeat parameter, detects whether the corresponding second keep-alive agent sends heartbeat responses within the heartbeat timeout duration in the current heartbeat parameter, if so, determines that the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent is normal, and if not, determines that the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent is abnormal.
As an alternative implementation, the method further includes:
The master agent receives the communication data sent by the access network equipment or the access and mobility management function, extracts the data load in the communication data, and forwards the data load to the access and mobility management function or the access network equipment.
In a second aspect, an embodiment of the present application provides a 5G network system, where the 5G network system includes: the access network device, access and mobility management function, set up the first proxy cluster in the network security domain where the access network device is located, and set up the second proxy cluster in the network security domain where the said access and mobility management function is located, the said first proxy cluster includes: the second agent cluster comprises a plurality of second keep-alive agents, the master agents are respectively in communication connection with the access network equipment and the access and mobility management functions, each first keep-alive agent is in communication connection with the master agent, and each first keep-alive agent is in communication connection with each second keep-alive agent in one-to-one correspondence;
the master agent and each of the first keep-alive agents perform communication processing based on the method of any one of the first aspects.
In a third aspect, an embodiment of the present application provides a computer apparatus, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory when the computer device is running, communicating over the bus, the processor executing the machine-readable instructions to perform method steps performed by a master agent or a first keep-alive agent as in any of the methods of the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs method steps performed by a master agent or method steps performed by a first keep-alive agent in a method according to any of the first aspects above.
The beneficial effects of the application are as follows:
The application provides a communication method, a 5G network system and equipment, wherein a first proxy cluster comprising a main proxy and a plurality of first keep-alive agents is arranged in a network security domain where access network equipment is located in the 5G network system, and a second proxy cluster comprising a plurality of second keep-alive agents is arranged in the network security domain where access and mobility management functions are located. Each first keep-alive agent establishes a plurality of communication connections based on one-to-one correspondence between different current heartbeat parameters and corresponding second keep-alive agents, and detects the communication connection state between each first keep-alive agent and corresponding second keep-alive agent based on different current heartbeat parameters, and each first keep-alive agent sends the communication connection state between each first keep-alive agent and corresponding second keep-alive agent to the master agent through communication with the master agent. The main agent determines a target heartbeat parameter corresponding to the main agent according to the communication connection state of each first keep-alive agent and a corresponding second keep-alive agent when based on different current heartbeat parameters, and communicates with the access and mobility management function based on the target heartbeat parameter, so that the normal communication between the main agent at the access network equipment side and the access and mobility management function is ensured. By determining a plurality of sets of heartbeat parameters, the automatic adaptation of the communication connection between the main agent at the access network equipment side and the access and mobility management function to the security policy of the network firewall is realized. The connection failure condition between the access network equipment and the access and mobility management functions caused by the problem of mismatching of the security policies of the network firewall is reduced, and the stability of the 5G network is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a system architecture of a 5G network system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a communication method according to an embodiment of the present application;
FIG. 3 is a flow chart of another communication method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of determining a new heartbeat parameter in the communication method according to the embodiment of the present application;
FIG. 5 is a flow chart of another communication method according to an embodiment of the present application;
fig. 6 is a flow chart of another communication method according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for the purpose of illustration and description only and are not intended to limit the scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this disclosure, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
In addition, the described embodiments are only some, but not all, embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in embodiments of the application to indicate the presence of the features stated hereafter, but not to exclude the addition of other features.
Currently, in a 5G network system, a connection link failure condition triggered by a heartbeat timeout mechanism between a RAN and an AMF is reduced by adjusting a heartbeat parameter in the RAN device. The RAN device needs to undergo a complicated configuration adjustment process to ensure that the heartbeat parameter in the RAN device is set to a suitable value, so as to avoid the occurrence of connection failure. However, when the heartbeat parameters in the RAN device are adjusted, the device may need to be restarted, so repeated adjustment of the heartbeat parameters will cause repeated restarting of the wireless connection of the device, thereby affecting the overall operation stability of the network.
Based on the above-mentioned problems, the present embodiment provides a communication method, a 5G network system, and a device, where a first proxy cluster and a second proxy cluster are deployed in a network security domain where a 5G access network device is located and a security domain where an access and mobility management function is located, where the first proxy cluster includes a master proxy and a plurality of first keep-alive agents, and the second proxy cluster includes a plurality of second keep-alive agents. By determining a plurality of sets of heartbeat parameters, each first keep-alive agent communicates with a corresponding second keep-alive agent based on the current heartbeat parameters; the main agent determines a target heartbeat parameter corresponding to the main agent according to the communication connection state between each first keep-alive agent and the corresponding second keep-alive agent, and communicates with the access and mobility management function based on the target heartbeat parameter. The data sent by the access network equipment is forwarded to the access and mobility management function through the master agent, so that the data interaction between the 5G access network equipment and the access and mobility management function is realized, the connection failure condition between the 5G access network equipment and the access and mobility management function caused by the problem of mismatching of network firewall security policies is reduced, and the stability of the 5G network system is improved.
Fig. 1 is a schematic diagram of a system architecture of a 5G network system according to an embodiment of the present application, where, as shown in fig. 1, the 5G network system includes: the access network device, the access and mobility management function, a first proxy cluster arranged in a network security domain where the access network device is located, and a second proxy cluster arranged in the network security domain where the access and mobility management function is located, wherein the first proxy cluster comprises: the second agent cluster comprises a plurality of second keep-alive agents, the master agent is respectively in communication connection with the access network equipment and the access and mobility management functions, each first keep-alive agent is in communication connection with the master agent, and each first keep-alive agent is in communication connection with each second keep-alive agent in one-to-one correspondence.
Referring to fig. 1, in a 5G network system, an AMF is an access and mobility management function, a RAN is an access network device, and the AMF and the RAN interact through an N2 interface. The N2 interface between the AMF and the RAN adopts SCTP to establish a connection, and a next generation application protocol (Next Generation Application Protocol, abbreviated as NGAP) is transmitted over SCTP, where SCTP is used as an IP transport layer protocol, and is applied to a transport layer that carries signaling messages through IP. The AMF and the RAN transmit an application layer NGAP protocol through an SCTP transmission layer protocol.
Unlike the transmission control protocol (Transfer Control Protocol, TCP for short), SCTP provides reliable transport services operating at the message level through multi-host and multi-stream functions. Multi-homing provides higher availability than TCP, SCTP introduces the concept of federation, which is able to support multi-streaming mechanisms in one federation. All streams in a joint are independent but all are related to the joint. SCTP allows multiple message streams to be exchanged over a single SCTP connection, data from the multiple streams may be sent as data blocks in a single SCTP message, supporting selective acknowledgement at the single data block level.
With continued reference to fig. 1, a first proxy cluster is deployed within the network security domain in which the RAN is located, and, taking the schematic diagram of fig. 1 as an example, the first proxy cluster includes one master proxy and two first keep-alive proxies. And deploying a second agent cluster in the network security domain where the AMF is located, wherein the second agent cluster comprises two second keep-alive agents. The master agent establishes different SCTP connections with the RAN and the AMF respectively, the two first keep-alive agents are in communication connection with the master agent, the two SCTP connections are established between each first keep-alive agent and each second keep-alive agent in one-to-one correspondence, and the two SCTP connections adopt different SCTP heartbeat parameters. Each first keep-alive agent and the corresponding second keep-alive agent only send heartbeat messages to each other and do not perform data interaction.
Fig. 2 is a flow chart of a communication method according to an embodiment of the present application, as shown in fig. 2, the method includes:
S201, each first keep-alive agent communicates with a corresponding second keep-alive agent based on the current heartbeat parameters, and detects a communication connection state between the first keep-alive agent and the corresponding second keep-alive agent and sends the communication connection state to the master agent.
Optionally, referring to fig. 1, a plurality of SCTP connections are established in a one-to-one correspondence between each first keep-alive agent on the ran side and each second keep-alive agent on the AMF side, and each SCTP connection uses different heartbeat parameters. Each first keep-alive agent establishes SCTP communication connection with a corresponding second keep-alive agent based on the current heartbeat parameter, specifically, each first keep-alive agent sends an SCTP connection request to the corresponding second keep-alive agent based on the current heartbeat parameter, and the communication connection state between each first keep-alive agent and the corresponding second keep-alive agent is detected, namely, whether the corresponding second keep-alive agent responds to the SCTP connection request to establish SCTP communication connection with the first keep-alive agent is detected. The communication connection state between each first keep-alive agent and the corresponding second keep-alive agent may be represented by S n, where the master agent may number each first keep-alive agent according to a preset sequence, and n is the nth first keep-alive agent. When S n =1, it indicates that the communication connection state between the nth first keep-alive agent and the corresponding second keep-alive agent is a normal state, and no communication abnormality exists. When S n =0, it indicates that the communication connection state between the nth first keep-alive agent and the corresponding second keep-alive agent is a connection failure state, and there is a communication abnormality. Each first keep-alive agent is communicatively connected to the master agent, and sends the detected SCTP association status S n to the master agent, respectively.
Taking two first keep-alive agents and a second keep-alive agent set in fig. 1 as an example, the first keep-alive agent on the left side of the master agent is taken as the 1 st first keep-alive agent, and the first keep-alive agent on the right side of the master agent is taken as the 2 nd first keep-alive agent. The heartbeat parameters adopted by the two SCTP connections are different. The 1 st first keep-alive agent and the 2 nd first keep-alive agent respectively send SCTP connection requests to the corresponding second keep-alive agents based on respective current heartbeat parameters, and detect whether the corresponding second keep-alive agents respond to the SCTP connection requests to establish SCTP communication connection with the first keep-alive agents, so as to obtain SCTP communication connection states S 1 and S n2 between the two first keep-alive agents and the corresponding second keep-alive agents respectively. The 1 st first keep-alive agent transmits the detected SCTP communication connection status S 1 to the master agent by communicating with the master agent. Similarly, the 2 nd first keep-alive agent transmits the detected SCTP communication connection status S 1 to the master agent by communicating with the master agent.
S202, the main agent receives the communication connection state sent by each first keep-alive agent, determines a target heartbeat parameter corresponding to the main agent according to the communication connection state sent by each first keep-alive agent, and communicates with the access and mobility management function based on the target heartbeat parameter.
Optionally, the master agent receives the SCTP communication connection status S n sent by each first keep-alive agent, and records the SCTP communication connection status S n of each first keep-alive agent and the corresponding second protection agent locally. Determining a target heartbeat parameter corresponding to the main agent according to the communication connection state S n sent by each first keep-alive agent, specifically, selecting the SCTP communication connection state of S n =1 in the SCTP communication connection state S n of each first keep-alive agent and the corresponding second protection agent, which are locally recorded, calling the current heartbeat parameters of each first keep-alive agent corresponding to the SCTP communication connection state of all S n =1, determining the target heartbeat parameter corresponding to the main agent according to the fact that the communication connection state of the first keep-alive agent and the corresponding second keep-alive agent is normal, and determining all the current heartbeat parameters when communication abnormality does not exist.
When determining the target heartbeat parameters corresponding to the master agent, the master agent may arbitrarily select one current heartbeat parameter from the current heartbeat parameters of each first keep-alive agent corresponding to all SCTP communication connection states with S n =1 as the target heartbeat parameter corresponding to the master agent, or may perform weighted average processing on the current heartbeat parameters of each first keep-alive agent corresponding to all SCTP communication connection states with S n =1 to obtain the target heartbeat parameter corresponding to the master agent, which is not limited in the application.
For example, if the SCTP communication connection state between the two first keep-alive agents locally recorded by the master agent and the corresponding second keep-alive agents is S 1=1,S2 =0, it indicates that the communication connection state between the 1 st first keep-alive agent and the corresponding second keep-alive agent is a normal state, and there is no communication abnormality; the communication connection state of the 2 nd first keep-alive agent and the corresponding second keep-alive agent is a connection failure state, and communication abnormality exists. At this time, the master agent selects the current heartbeat parameter of the 1 st first keep-alive agent as the target heartbeat parameter corresponding to the master agent.
The master agent establishes an SCTP communication connection with the access and mobility management function based on the target heartbeat parameter, specifically, the master agent sends an SCTP connection request to the access and mobility management function based on the target heartbeat parameter, so that the access and mobility management function establishes an SCTP communication connection with the master agent in response to the SCTP connection request. Because the target heartbeat parameters are determined by the main agent according to all current heartbeat parameters when the communication connection state of the first keep-alive agent and the corresponding second keep-alive agent is normal, and no communication abnormality exists, the main agent establishes SCTP communication connection with the access and mobility management function based on the target heartbeat parameters, so that the communication connection state of the main agent and the access and mobility management function is also normal, and no communication abnormality exists.
In this embodiment, a first proxy cluster including a master proxy and a plurality of first keep-alive agents is set in a network security domain where an access network device is located in a 5G network system, and a second proxy cluster including a plurality of second keep-alive agents is set in a network security domain where an access and mobility management function is located. Each first keep-alive agent establishes a plurality of communication connections based on one-to-one correspondence between different current heartbeat parameters and corresponding second keep-alive agents, and detects the communication connection state between each first keep-alive agent and corresponding second keep-alive agent based on different current heartbeat parameters, and each first keep-alive agent sends the communication connection state between each first keep-alive agent and corresponding second keep-alive agent to the master agent through communication with the master agent. The main agent determines a target heartbeat parameter corresponding to the main agent according to the communication connection state of each first keep-alive agent and a corresponding second keep-alive agent when based on different current heartbeat parameters, and communicates with the access and mobility management function based on the target heartbeat parameter, so that the normal communication between the main agent at the access network equipment side and the access and mobility management function is ensured. By determining a plurality of sets of heartbeat parameters, the automatic adaptation of the communication connection between the main agent at the access network equipment side and the access and mobility management function to the security policy of the network firewall is realized. The connection failure condition between the access network equipment and the access and mobility management functions caused by the problem of mismatching of the security policies of the network firewall is reduced, and the stability of the 5G network is improved.
As an optional implementation manner, the step of determining the target heartbeat parameter according to the communication connection status sent by each first keep-alive agent in step S202, and communicating with the access and mobility management function based on the target heartbeat parameter includes:
If the communication between the main agent and the access and mobility management functions is abnormal, the main agent determines a target heartbeat parameter according to the communication connection state sent by each first keep-alive agent, and communicates with the access and mobility management functions based on the target heartbeat parameter.
Optionally, the master agent may establish SCTP communication connection with the access and mobility management function based on a preset initial heartbeat parameter, and detect an SCTP communication connection state H between the master agent and the access and mobility management function, where h=1 indicates that the SCTP communication connection state of the master agent and the access and mobility management function under the initial heartbeat parameter is a normal state, and no communication abnormality exists; h=0 indicates that the SCTP communication connection state of the home agent and the access and mobility management function under the initial heartbeat parameter is a connection failure state, and there is a communication abnormality.
The master agent detects the SCTP communication connection state H between the master agent and the access and mobility management function, and determines target heartbeat parameters for standby according to the received SCTP communication connection states S n of the first keep-alive agents in different current heartbeat parameters. If the communication connection state H=0 of the communication between the master agent and the access and mobility management function under the initial heartbeat parameter is detected, namely the communication connection state of the communication between the master agent and the access and mobility management function under the initial heartbeat parameter is a connection failure state, when communication abnormality exists, the master agent sends an SCTP connection request to the access and mobility management function based on the determined target heartbeat parameter, so that the access and mobility management function reestablishes SCTP communication connection with the master agent in response to the SCTP connection request.
In this embodiment, when the master agent detects that there is an abnormality in communication with the access and mobility management functions, the target heartbeat parameters corresponding to the master agent are determined according to the communication connection states of the first keep-alive agents and the corresponding second keep-alive agents, and the communication with the access and mobility management functions is resumed based on the target heartbeat parameters, so that the communication connection states of the master agent and the access and mobility management functions are ensured to be normal, and the failure probability of the communication connection between the master agent and the access and mobility management functions is reduced.
Fig. 3 is a flow chart of another communication method according to an embodiment of the present application, as shown in fig. 3, where the method further includes:
s301, the master agent determines the first keep-alive agents with abnormal communication according to the communication connection states sent by the first keep-alive agents.
Optionally, the master agent determines, by identifying the value of S n, the first keep-alive agent having a communication abnormality in each first keep-alive agent according to the received SCTP communication connection status S n of each first keep-alive agent and the corresponding second keep-alive agent. The master agent determines all the first keep-alive agents of the SCTP communication connection state S n =0 as first keep-alive agents having communication anomalies, and determines all the first keep-alive agents of the SCTP communication connection state S n =1 as first keep-alive agents having no communication anomalies.
For example, if the SCTP communication connection state S 1 =1 between the 1 st first keep-alive agent and the corresponding second keep-alive agent received by the master agent, the SCTP communication connection state S 2 =0 between the 2 nd first keep-alive agent and the corresponding second keep-alive agent, and the SCTP communication connection state S 3 =1 between the 3 rd first keep-alive agent and the corresponding second keep-alive agent, it is determined that there is a communication abnormality in the 2 nd first keep-alive agent, and that there is no communication abnormality in the 1 st first keep-alive agent and the 3 rd first keep-alive agent.
S302, the main agent determines new heartbeat parameters corresponding to the first keep-alive agents with abnormal communication according to the current heartbeat parameters of the first keep-alive agents without abnormal communication.
Optionally, the master agent synchronously records the current heartbeat parameters of each first keep-alive agent when locally recording the SCTP communication connection status S n between each received first keep-alive agent and the corresponding second keep-alive agent. The main agent calculates the current heartbeat parameters of all the first keep-alive agents without communication abnormality to obtain a heartbeat parameter, and takes the heartbeat parameter as a new heartbeat parameter corresponding to the first keep-alive agents with communication abnormality.
If the master agent recognizes that the 2 nd first keep-alive agent has communication abnormality, the 1 st first keep-alive agent and the 3 rd first keep-alive agent have no communication abnormality, the master agent obtains a heartbeat parameter by performing calculation processing on two current heartbeat parameters of the 1 st first keep-alive agent and the 3 rd first keep-alive agent, and uses the heartbeat parameter as a new heartbeat parameter corresponding to the 2 nd first keep-alive agent having communication abnormality.
S303, the main agent sends the new heartbeat parameters to the first keep-alive agent with abnormal communication.
Optionally, after determining the new heartbeat parameter corresponding to the first keep-alive agent with communication abnormality, the master agent initiates heartbeat parameter adjustment to the first keep-alive agent with communication abnormality through communication connection between the master agent and the first keep-alive agent with communication abnormality, and sends the new heartbeat parameter to the first keep-alive agent with communication abnormality. Illustratively, referring to fig. 1, if there is a communication anomaly with the 2 nd first keep-alive agent, the master agent sends the new heartbeat parameters to the 2 nd first keep-alive agent based on the communication connection with the 2 nd first keep-alive agent.
S304, the first keep-alive agent with abnormal communication replaces the current heartbeat parameter with the new heartbeat parameter.
Optionally, after receiving the new heartbeat parameter sent by the master agent, the first keep-alive agent with abnormal communication adjusts the current heartbeat parameter, and the first keep-alive agent with abnormal communication adjusts the heartbeat parameter by replacing the current heartbeat parameter with the new heartbeat parameter. For example, if the 2 nd first keep-alive agent has abnormal communication, the 2 nd first keep-alive agent receives a new heartbeat parameter according to the communication connection with the master agent, and the heartbeat parameter adjustment of the 2 nd first keep-alive agent is realized by replacing the current heartbeat parameter with the new heartbeat parameter.
In this embodiment, the master agent determines, according to the received communication connection states of each first keep-alive agent and the corresponding second keep-alive agent, a first keep-alive agent having a communication abnormality and a first keep-alive agent having no communication abnormality in each first keep-alive agent. And the master agent obtains the new heartbeat parameters corresponding to the first keep-alive agent with abnormal communication through processing the current heartbeat parameters of the first keep-alive agent without abnormal communication. The master agent initiates heartbeat parameter adjustment to the first keep-alive agent with communication abnormality according to the communication connection between the master agent and the first keep-alive agent with communication abnormality, and sends the new heartbeat parameter to the first keep-alive agent with communication abnormality. And after the first keep-alive agent with communication abnormality receives the new heartbeat parameter launched by the main agent, adjusting the current heartbeat parameter, and realizing the heartbeat parameter adjustment of the first keep-alive agent with communication abnormality by replacing the current heartbeat parameter with the new heartbeat parameter.
As an alternative embodiment, the current heartbeat parameters include: heartbeat interval and heartbeat timeout period.
Optionally, each first keep-alive agent and the corresponding second keep-alive agent employ different current SCTP heartbeat parameters, including: the heartbeat interval (Heartbeat Interval) and the heartbeat timeout period (Heartbeat Timeout) may represent the current heartbeat interval of each first keep-alive agent by I n, the current heartbeat timeout period of each first keep-alive agent by T n, and n is the nth first keep-alive agent. The current heartbeat interval I n refers to a time interval when the nth first keep-alive agent sends a heartbeat message to the corresponding second keep-alive agent, and the current heartbeat timeout period T n refers to a time period when the second keep-alive agent corresponding to the nth first keep-alive agent does not receive the heartbeat message, and triggers a timeout.
Hereinafter, a process in which the master agent determines a new heartbeat parameter corresponding to the first keep-alive agent having communication abnormality based on the current heartbeat parameter of the first keep-alive agent having no communication abnormality will be described in detail.
Fig. 4 is a flowchart illustrating a process of determining a new heartbeat parameter in the communication method according to the embodiment of the present application, as shown in fig. 4, in the step S302, the step of determining, by the master agent, a new heartbeat parameter corresponding to a first keep-alive agent having no communication abnormality according to a current heartbeat parameter of the first keep-alive agent having no communication abnormality includes:
S401, the master agent determines the average value of the heartbeat intervals of the first keep-alive agents without communication abnormality, and takes the average value of the heartbeat intervals as a new heartbeat interval corresponding to the first keep-alive agents with communication abnormality.
Optionally, the master agent obtains a heartbeat interval by performing an averaging process on the heartbeat interval in the current heartbeat parameters of the first keep-alive agents without communication abnormality, and uses the heartbeat interval as a new heartbeat interval corresponding to the first keep-alive agents with communication abnormality. The master agent determines the average value of the heartbeat interval of the first keep-alive agent with communication anomalies based on the following two formulas:
S={k:Sk=1}
Wherein n represents the number of first keep-alive agents; i n′ represents a new heartbeat interval of sending a heartbeat packet to a corresponding second keep-alive agent by the nth first keep-alive agent with abnormal communication in the nth first keep-alive agent; k represents that no communication abnormality exists in the kth first keep-alive agent, S represents a set of the first keep-alive agents without communication abnormality, and S represents the number of elements in the set S, i.e. the number of the first keep-alive agents without communication abnormality; i k represents the current heartbeat interval where no communication anomalies exist in the kth first keep alive agent.
The master agent takes I n′ as a new heartbeat interval corresponding to each first keep-alive agent with communication exception.
S402, the master agent determines the average value of the heartbeat timeout duration of the first keep-alive agents without communication abnormality, and takes the average value of the heartbeat timeout duration as the new heartbeat timeout duration corresponding to the first keep-alive agents with communication abnormality.
Optionally, the master agent obtains a heartbeat timeout duration by averaging the heartbeat timeout duration in the current heartbeat parameters of the first keep-alive agents without communication abnormality, and takes the heartbeat timeout duration as a new heartbeat timeout duration corresponding to the first keep-alive agents with communication abnormality. The master agent determines the average of the heartbeat timeout duration of the first keep-alive agent with communication anomalies based on the following two formulas:
S={k:Sk=1}
Wherein n represents the number of first keep-alive agents; t n′ represents a new heartbeat timeout duration of sending a heartbeat packet to a corresponding second keep-alive agent by the nth first keep-alive agent with abnormal communication in the nth first keep-alive agent; k represents that no communication abnormality exists in the kth first keep-alive agent, S represents a set of the first keep-alive agents without communication abnormality, and S represents the number of elements in the set S, i.e. the number of the first keep-alive agents without communication abnormality; t k denotes the current heartbeat timeout period in which no communication anomaly exists in the kth first keep-alive agent.
The main agent takes T n′ as the new heartbeat timeout duration corresponding to each first keep-alive agent with communication abnormality, and I n′ and T n′ form new heartbeat parameters as the new heartbeat parameters of the nth first keep-alive agent with communication abnormality in the nth first keep-alive agent. Illustratively, the new heartbeat interval corresponding to the 2 nd first keep-alive agent with communication exception is I 2′, the new heartbeat timeout duration corresponding to the 2 nd first keep-alive agent with communication exception is T 2′, and the new heartbeat parameters of the 2 nd first keep-alive agent with communication exception include I 2′ and T 2′.
In this embodiment, the master agent obtains a new heartbeat interval corresponding to the first keep-alive agent with communication abnormality by performing an average processing on the heartbeat interval in the current heartbeat parameters of the first keep-alive agent without communication abnormality; and obtaining a new heartbeat timeout duration corresponding to the first keep-alive agent with communication abnormality by carrying out averaging processing on the heartbeat timeout duration in the current heartbeat parameters of the first keep-alive agent without communication abnormality. The main agent obtains a new heartbeat interval corresponding to the first keep-alive agent with communication abnormality and a new heartbeat timeout duration through averaging processing, and forms a new heartbeat parameter corresponding to the first keep-alive agent with communication abnormality. The first keep-alive agent that facilitates the existence of the communication anomaly communicates with the corresponding second keep-alive agent based on the new heartbeat interval and the new heartbeat timeout period.
Fig. 5 is a flowchart of another communication method according to an embodiment of the present application, as shown in fig. 5, after the step of determining, by the master agent, a new heartbeat parameter corresponding to a first keep-alive agent having no communication abnormality according to a current heartbeat parameter of the first keep-alive agent having no communication abnormality in step S302, the method further includes:
S501, the master agent sends a reconnection instruction to a first keep-alive agent with abnormal communication.
Optionally, after the master agent sends the I n′ and T n′ in the new heartbeat parameters of the nth first keep-alive agent with the communication exception to the nth first keep-alive agent with the communication exception, each reconnection instruction is generated and sent to each first keep-alive agent with the communication exception. Wherein, each reconnection instruction is used for indicating each first keep-alive agent with abnormal communication to reestablish SCTP communication connection with the corresponding second keep-alive agent based on the heartbeat interval and the heartbeat timeout duration in the new heartbeat parameters.
It should be emphasized that the present application does not specifically limit the sequence in which the master agent sends the new heartbeat parameters and reconnection instructions to each first keep-alive agent with abnormal communication, and the sending sequence can be flexibly set according to actual needs. In addition to the above embodiment, in which the master agent sends the new heartbeat parameter to each first keep-alive agent with communication abnormality before sending the reconnection instruction, the master agent may send the new heartbeat parameter after sending the reconnection instruction to the first keep-alive agent with communication abnormality, and the master agent may send the reconnection instruction while sending the new heartbeat parameter to the first keep-alive agent with communication abnormality.
S502, the first keep-alive agent with abnormal communication communicates with the corresponding second keep-alive agent according to the reconnection instruction and the replaced current heartbeat parameters.
Optionally, the first keep-alive agent with abnormal communication receives and responds to the reconnection instruction sent by the master agent, and reestablishes SCTP communication connection with the corresponding second keep-alive agent based on a new heartbeat interval and a new heartbeat timeout duration in the replaced current heartbeat parameters, so that the first keep-alive agent with abnormal communication resends heartbeat messages with the corresponding second keep-alive agent.
Illustratively, the 2 nd first keep-alive agent with abnormal communication establishes the SCTP communication connection with the corresponding second keep-alive agent again based on the heartbeat interval I 2′ and the heartbeat timeout period T 2′ in the new heartbeat parameters according to the reconnection instruction sent by the master agent.
In this embodiment, after sending a corresponding new heartbeat parameter to the first keep-alive agent with communication abnormality, the master agent generates each reconnection instruction and sends the reconnection instruction to each first keep-alive agent with communication abnormality. And the first keep-alive agent with abnormal communication receives and responds to the reconnection instruction sent by the main agent, and reestablishes SCTP communication connection with the corresponding second keep-alive agent based on a new heartbeat interval and a new heartbeat timeout duration in the replaced current heartbeat parameters. According to the reconnection instruction sent by the main agent and the new heartbeat parameters, the first keep-alive agents are free from abnormal communication.
Fig. 6 is a flowchart of another communication method according to an embodiment of the present application, as shown in fig. 6, before the step of communicating between each first keep-alive agent and the corresponding second keep-alive agent in the step S201 based on the current heartbeat parameter, the method further includes:
S601, the master agent determines initial current heartbeat parameters of each first keep-alive agent according to the number of the first keep-alive agents, a preset heartbeat interval reference value, a preset heartbeat interval stepping value, a preset heartbeat timeout duration reference value and a heartbeat timeout duration stepping value.
Optionally, the master agent sets a heartbeat interval and a heartbeat timeout duration in initial current heartbeat parameters of each first keep-alive agent, so that each first keep-alive agent establishes SCTP communication connection with a corresponding second keep-alive agent based on different initial current heartbeat parameters, so as to provide a heartbeat parameter reference of correct SCTP connection for the master agent to select corresponding target heartbeat parameters. The master agent sets the heartbeat interval and the heartbeat timeout duration in the initial current heartbeat parameters of each first keep-alive agent based on the following formula:
In″=Ia+(n-1)×IΔ
Tn″=Ta+(n-1)×TΔ
Wherein n is the number of first keep-alive agents; i n' is the heartbeat interval in the initial current heartbeat parameter of the first keep alive agent; i a is a preset heartbeat interval reference value; i Δ is a preset heartbeat interval stepping value; t n' is the heartbeat timeout period in the initial current heartbeat parameters of the first keep-alive agent; t a is a preset heartbeat timeout duration reference value; t Δ is a preset heartbeat timeout period step value.
The master agent presets a heartbeat interval reference value, a heartbeat interval stepping value, a heartbeat timeout duration reference value and a heartbeat timeout duration stepping value according to actual communication needs. The heartbeat interval reference value and the heartbeat timeout duration reference value may be the minimum value of the heartbeat interval and the heartbeat timeout duration in the current heartbeat parameters of all the first keep-alive agents, or may be the maximum value or the intermediate value of the heartbeat interval and the heartbeat timeout duration in the current heartbeat parameters of all the first keep-alive agents, which is not limited in this application.
S602, the main agent sends the initial current heartbeat parameters of the first keep-alive agents to the first keep-alive agents respectively.
Optionally, with continued reference to fig. 1, the master agent is communicatively connected to each first keep-alive agent, and sends the set initial current heartbeat parameters of each first keep-alive agent to each first keep-alive agent according to a preset corresponding relationship. Illustratively, the master agent sends the heartbeat interval I 1 "and the heartbeat timeout period T i" in the initial current heartbeat parameters of the 1 st first keep-alive agent to the 1 st first keep-alive agent; the heartbeat interval I 2 "in the initial current heartbeat parameters of the 2 nd first keep-alive agent is sent to the 2 nd first keep-alive agent for a heartbeat timeout period T 2". Wherein, a preset heartbeat time-out duration step value T Δ is arranged between a preset heartbeat interval step value I Δ,T1 'and a preset heartbeat time-out duration step value T 2' which are arranged between I 1 'and I 2'.
S603, each first keep-alive agent communicates with a corresponding second keep-alive agent based on the initial current heartbeat parameters.
Optionally, each first keep-alive agent receives the initial current heartbeat parameters of each first keep-alive agent sent by the master agent through a communication connection with the master agent. Each first keep-alive agent establishes an SCTP communication connection with a corresponding second keep-alive agent based on I n "and T n" in the initial current heartbeat parameters, respectively.
In this embodiment, the master agent sends the set heartbeat interval and the heartbeat timeout duration in the initial current heartbeat parameters of each first keep-alive agent to each first keep-alive agent, so that each first keep-alive agent establishes SCTP communication connection with the corresponding second keep-alive agent based on different initial current heartbeat parameters, and provides correct heartbeat parameter references for the master agent to select corresponding target heartbeat parameters.
As an alternative embodiment, the step of each first keep-alive agent communicating with the corresponding second keep-alive agent in step S201 above and detecting the communication connection status between the first keep-alive agent and the corresponding second keep-alive agent includes:
Each first keep-alive agent sends heartbeat information to a corresponding second keep-alive agent according to the heartbeat interval in the current heartbeat parameter, detects whether the corresponding second keep-alive agent sends heartbeat response or not in the heartbeat timeout duration in the current heartbeat parameter, if so, determines that the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent is normal, and if not, determines that the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent is abnormal.
Optionally, each first keep-alive agent sends a heartbeat message to a corresponding second keep-alive agent based on the heartbeat interval I n in the current heartbeat parameter, and if each second keep-alive agent receives the heartbeat message within the heartbeat timeout period T n in the current heartbeat parameter, sends a heartbeat response to each corresponding first keep-alive agent; and if each second keep-alive agent does not receive the heartbeat message within the heartbeat timeout duration in the current heartbeat parameters, triggering timeout.
And each first keep-alive agent determines the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent by detecting whether the heartbeat response sent by the corresponding second keep-alive agent is received within the heartbeat timeout duration in the current heartbeat parameters. If the first keep-alive agent receives a heartbeat response sent by the corresponding second keep-alive agent, determining that the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent is normal; if the first keep-alive agent does not receive the heartbeat response sent by the corresponding second keep-alive agent, determining that the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent is abnormal, and the master agent needs to initiate heartbeat parameter adjustment for the first keep-alive agent.
In this embodiment, each first keep-alive agent sends a heartbeat message to a corresponding second keep-alive agent based on a heartbeat interval in the current heartbeat parameter, and determines a communication connection state between the first keep-alive agent and the corresponding second keep-alive agent by detecting whether a heartbeat response sent by the corresponding second keep-alive agent is received within a heartbeat timeout period in the current heartbeat parameter. The master agent is convenient to determine whether the current heartbeat parameters of the aunt keep-alive agent need to be adjusted according to the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent.
As an alternative embodiment, the method further comprises:
The master agent receives the communication data sent by the access network device or the access and mobility management function, extracts the data load in the communication data, and forwards the data load to the access and mobility management function or the access network device.
Optionally, with continued reference to fig. 1, the home agent establishes an SCTP communications connection with the access network device or access and mobility management functions, respectively. The master agent intercepts and receives communication data sent by the access network equipment to the access and mobility management function through SCTP communication connection with the access network equipment, extracts load in the communication data, and forwards the data load to the access and mobility management function through SCTP communication connection with the access and mobility management function based on the target heartbeat parameter.
Similarly, the master agent intercepts communication data sent to the access network device by the access and mobility management function through SCTP communication connection with the access and mobility management function based on the target heartbeat parameter, extracts load in the communication data, and forwards the data load to the access network device through SCTP communication connection with the access network device.
In this embodiment, the master agent establishes communication connection with the access network device or the access and mobility management function, respectively, and extracts a data load in the communication data by receiving the communication data sent by the access network device or the access and mobility management function, and forwards the data load to the access and mobility management function or the access network device. And forwarding data through the master agent to realize data interaction between the access network equipment and the access and mobility management functions.
The embodiment also provides a 5G network system, where the 5G network system includes: the access network device, the access and mobility management function, a first proxy cluster arranged in a network security domain where the access network device is located, and a second proxy cluster arranged in the network security domain where the access and mobility management function is located, wherein the first proxy cluster comprises: the second agent cluster comprises a plurality of second keep-alive agents, the master agent is respectively in communication connection with the access network equipment and the access and mobility management functions, each first keep-alive agent is in communication connection with the master agent, and each first keep-alive agent is in communication connection with each second keep-alive agent in one-to-one correspondence.
The master agent and each first keep-alive agent perform communication processing based on the method in the foregoing embodiment, respectively.
The embodiment of the application also provides a computer device, which can be specifically the main agent or the first keep-alive agent in the previous embodiment. As shown in fig. 7, a schematic structural diagram of a computer device according to an embodiment of the present application includes: a processor 71, a memory 72 and a bus 73. The memory 72 stores machine-readable instructions executable by the processor 71. When the computer device is running, the processor 71 communicates with the memory 72 via the bus 73, and when the machine-readable instructions are executed by the processor 71, the method steps performed by the master agent or the first keep-alive agent in the method of the previous embodiments are performed.
The embodiment of the application also provides a computer readable storage medium, and the computer readable storage medium stores a computer program, which when executed by a processor, performs the method steps performed by the main agent or the method steps performed by the first keep-alive agent in the previous embodiment.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, and are not repeated in the present disclosure. In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application.

Claims (10)

1. A communication method applied to a 5G network system, the 5G network system comprising: the access network device, access and mobility management function, set up the first proxy cluster in the network security domain where the access network device is located, and set up the second proxy cluster in the network security domain where the said access and mobility management function is located, the said first proxy cluster includes: the second agent cluster comprises a plurality of second keep-alive agents, the master agents are respectively in communication connection with the access network equipment and the access and mobility management functions, each first keep-alive agent is in communication connection with the master agent, and each first keep-alive agent is in communication connection with each second keep-alive agent in one-to-one correspondence; the method comprises the following steps:
Each first keep-alive agent communicates with a corresponding second keep-alive agent based on the current heartbeat parameters, detects a communication connection state between the first keep-alive agent and the corresponding second keep-alive agent, and sends the communication connection state to the master agent;
the master agent receives the communication connection state sent by each first keep-alive agent, determines a target heartbeat parameter corresponding to the master agent according to the communication connection state sent by each first keep-alive agent, and communicates with the access and mobility management function based on the target heartbeat parameter.
2. The method of claim 1, wherein the determining a target heartbeat parameter from the communication connection status sent by each first keep-alive agent and communicating with the access and mobility management function based on the target heartbeat parameter comprises:
If the communication between the main agent and the access and mobility management function is abnormal, the main agent determines a target heartbeat parameter according to the communication connection state sent by each first keep-alive agent, and communicates with the access and mobility management function based on the target heartbeat parameter.
3. The method according to claim 1, wherein the method further comprises:
The master agent determines the first keep-alive agents with abnormal communication according to the communication connection states sent by the first keep-alive agents;
the main agent determines a new heartbeat parameter corresponding to a first keep-alive agent with communication abnormality according to the current heartbeat parameter of the first keep-alive agent without communication abnormality;
The main agent sends the new heartbeat parameters to the first keep-alive agent with abnormal communication;
the first keep-alive agent with abnormal communication replaces the current heartbeat parameter with the new heartbeat parameter.
4. A method according to claim 3, wherein the current heartbeat parameters include: heartbeat interval and heartbeat timeout period;
The main agent determines a new heartbeat parameter corresponding to a first keep-alive agent with communication abnormality according to a current heartbeat parameter of the first keep-alive agent without communication abnormality, and the method comprises the following steps:
The master agent determines the average value of the heartbeat intervals of the first keep-alive agents without communication abnormality, and takes the average value of the heartbeat intervals as a new heartbeat interval corresponding to the first keep-alive agents with communication abnormality;
And the master agent determines the average value of the heartbeat timeout duration of each first keep-alive agent without communication abnormality, and takes the average value of the heartbeat timeout duration as the new heartbeat timeout duration corresponding to the first keep-alive agent with communication abnormality.
5. The method of claim 3, wherein after the master agent determines the new heartbeat parameter corresponding to the first keep-alive agent with communication exception according to the current heartbeat parameter of the first keep-alive agent without communication exception, the method further comprises:
The master agent sends reconnection indication to the first keep-alive agent with abnormal communication;
And the first keep-alive agent with abnormal communication communicates with the corresponding second keep-alive agent according to the reconnection instruction and the replaced current heartbeat parameter.
6. The method of any of claims 1-5, wherein before communicating with the corresponding second keep-alive agent based on the current heartbeat parameters, each of the first keep-alive agents further comprises:
The master agent determines initial current heartbeat parameters of each first keep-alive agent according to the number of the first keep-alive agents, a preset heartbeat interval reference value, a preset heartbeat interval stepping value, a preset heartbeat timeout duration reference value and a heartbeat timeout duration stepping value;
the master agent sends initial current heartbeat parameters of each first keep-alive agent to each first keep-alive agent respectively;
each of the first keep-alive agents communicates with a corresponding second keep-alive agent based on the initial current heartbeat parameters.
7. The method of any of claims 1-5, wherein each of the first keep-alive agents communicates with a corresponding second keep-alive agent based on current heartbeat parameters and detecting a communication connection status between the first keep-alive agent and the corresponding second keep-alive agent, comprising:
And each first keep-alive agent sends heartbeat messages to a corresponding second keep-alive agent according to the heartbeat interval in the current heartbeat parameter, detects whether the corresponding second keep-alive agent sends heartbeat responses within the heartbeat timeout duration in the current heartbeat parameter, if so, determines that the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent is normal, and if not, determines that the communication connection state between the first keep-alive agent and the corresponding second keep-alive agent is abnormal.
8. The method according to any one of claims 1-5, further comprising:
The master agent receives the communication data sent by the access network equipment or the access and mobility management function, extracts the data load in the communication data, and forwards the data load to the access and mobility management function or the access network equipment.
9. A 5G network system, the 5G network system comprising: the access network device, access and mobility management function, set up the first proxy cluster in the network security domain where the access network device is located, and set up the second proxy cluster in the network security domain where the said access and mobility management function is located, the said first proxy cluster includes: the second agent cluster comprises a plurality of second keep-alive agents, the master agents are respectively in communication connection with the access network equipment and the access and mobility management functions, each first keep-alive agent is in communication connection with the master agent, and each first keep-alive agent is in communication connection with each second keep-alive agent in one-to-one correspondence;
The master agent and each of the first keep-alive agents perform communication processing based on the method of any one of claims 1-8, respectively.
10. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication over the bus when the computer device is running, the processor executing the machine-readable instructions to perform the method steps performed by the master agent or the first keep-alive agent in the method of any one of claims 1-8.
CN202410387281.4A 2024-04-01 2024-04-01 Communication method, 5G network system and equipment Pending CN118301789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410387281.4A CN118301789A (en) 2024-04-01 2024-04-01 Communication method, 5G network system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410387281.4A CN118301789A (en) 2024-04-01 2024-04-01 Communication method, 5G network system and equipment

Publications (1)

Publication Number Publication Date
CN118301789A true CN118301789A (en) 2024-07-05

Family

ID=91677037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410387281.4A Pending CN118301789A (en) 2024-04-01 2024-04-01 Communication method, 5G network system and equipment

Country Status (1)

Country Link
CN (1) CN118301789A (en)

Similar Documents

Publication Publication Date Title
US10649866B2 (en) Method and apparatus for indirectly assessing a status of an active entity
US7532577B2 (en) Managing transmission control protocol (TCP) connections
JP2019536397A (en) Method and apparatus for capturing and / or using packets to facilitate fault detection
JP5347401B2 (en) Wireless device and method for controlling and monitoring wireless device
CN101572709B (en) Switching method, system, server and client device of socket connection
CN110674096B (en) Node troubleshooting method, device and equipment and computer readable storage medium
JP2023130372A (en) Communication device, method, program, and recording medium
KR100407323B1 (en) Method for duplicating call manager in private wireless network
CN113873598B (en) Network switching method, device, network equipment and storage medium
CN112738283B (en) Signaling transmission method, device, equipment and storage medium
US20140119199A1 (en) Wireless communication system and method for controlling wireless communication
CN107872822B (en) Service bearing method and device
CN118301789A (en) Communication method, 5G network system and equipment
CN101834739B (en) Repeater network management system, and repeater network management communication method and device
KR20240047394A (en) Live-Time State Triggering and Fallback Techniques for Replication Using Dual Connectivity
CN110535712B (en) BFD parameter setting method and device and electronic equipment
US20220286934A1 (en) Methods for Maintaining an Ongoing Communication Even After Site Outage
CN114745221B (en) Modbus communication system and communication method
CN113891499A (en) Method and device for solving inconsistency of user plane states of core network and base station
JP2009171083A (en) Radio packet communication system
CN114978872B (en) SCTP protocol stack synchronization method and device
CN114554565B (en) Link switching method, communication system, user plane functional entity and user equipment
JP7338250B2 (en) Mobile communication system, gateway device, communication method, and program
CN115842751B (en) Link detection method, device, system, equipment and readable storage medium
WO2012126320A2 (en) Method, device and system for processing abnormal data transmission

Legal Events

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