Network connection channel establishment method, system, device and storage medium
By conducting connectivity tests on the base station side, we ensure that the network connection channel between the base station and the gateway is unobstructed, solving the problem that terminal devices cannot access the Internet, and achieving stability and rapid fault location of the service surface.
Patent Information
- Application Number
- CN202011108430.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-16
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2040-10-16
AI Technical Summary
During the mobile network operation and maintenance process, the user-side service gateway replacement or transmission network re-planning caused by operator demands, resulting in terminal equipment being unable to access the Internet to carry out data services. In the existing technology, the base station side positioning problem is difficult and the cycle is long, resulting in the service lag.
The base station obtains the target gateway address sent by the core network device, sends a test message to the target gateway, and determines whether it meets the preset connection conditions. If it is satisfied, sends a connection confirmation message to establish a network connection channel. Otherwise, sends a connection failure message to obtain a new target gateway address.
By conducting connectivity tests before connection, we ensure that the network connection channel between the base station and the gateway is unobstructed, avoiding the network disconnection problem of terminal equipment business surfaces and shortening the fault location cycle.
Smart Images

Figure CN114449678B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a method, a system, a device, and a storage medium for establishing a network connection channel. Background Art
[0002] During the operation and maintenance of mobile networks, for example, during the maintenance of the current 4G live network and the future 5G network, due to the requirements of operators (such as equipment expansion and network re-planning), situations where the user plane service gateway is replaced for users or the transmission network is re-planned often occur. In the actual operation process, due to various reasons (such as the new service gateway not working properly and the transmission resources not being ready), the new service gateway sent by the core network device cannot access the base station where the user is located. Although the signaling process on the terminal side corresponding to the base station is normal and the terminal can normally attach to the core network control plane, the terminal device cannot access the Internet to carry out data services.
[0003] In the related art, the operator's wireless network operation and maintenance department is independent of the user's service switching department and transmission department. Therefore, it is necessary to send the information that the service cannot be carried out to the operator's wireless network operation and maintenance department, and the operator's wireless network operation and maintenance department manually locates the problem that the service cannot be carried out, resulting in difficulties in locating the problem on the base station side and a long location period. During this period, the base station cannot provide service to the terminal side, resulting in service jams on the service side of the base station. Summary of the Invention
[0004] This application provides a method, a system, a device, and a storage medium for establishing a network connection channel to solve the technical problems mentioned in the above background art.
[0005] According to a first aspect of this application, a method for establishing a network connection channel is provided, which is applied to a base station. The method includes: obtaining a target gateway address sent by a core network device; sending a test message to a target gateway corresponding to the target gateway address; obtaining a test result feedback according to the test message by the target gateway, and judging whether the target gateway meets a preset connection condition according to the test result; if the preset connection condition is met, sending a connection confirmation message to the core network device, so that the core network device establishes a network connection channel between the base station and the target gateway according to the connection confirmation message.
[0006] Optionally, after judging whether the target gateway meets the preset connection condition according to the test result, it further includes: if the preset connection condition is not met, sending a connection failure message to the core network device, so that the core network device sends a new target gateway address to the base station.
[0007] Optionally, determining whether the target gateway meets a preset connection condition according to the test result includes: determining whether a feedback message sent by the target gateway is received within a preset time; if the feedback message is received, determining whether the target gateway meets the preset connection condition according to the feedback message.
[0008] Optionally, determining whether the target gateway meets a preset connection condition according to the feedback message includes: calculating and obtaining a reference message for the test message according to a preset algorithm; determining whether the reference message is consistent with the feedback message, where when the reference message is consistent with the feedback message, it is determined that the target gateway meets the preset connection condition.
[0009] Optionally, before sending a test message to the target gateway corresponding to the target gateway address, it further includes: obtaining target gateway parameters of the target gateway sent by the core network device; obtaining standard gateway parameters corresponding to the base station; determining that the target gateway parameters match the standard gateway parameters.
[0010] According to a second aspect of the present application, a method for establishing a network connection channel is provided, which is applied to a core network device. The method includes: determining a base station corresponding to a current session request and a target gateway address corresponding to the base station; sending the target gateway address to the base station; if a connection confirmation message for the target gateway address sent by the base station is received, establishing a network connection channel between the base station and the target gateway according to the target gateway address, where the connection confirmation message is sent after the base station sends a test message to the target gateway corresponding to the target gateway address and determines that the test result of the target gateway meets a preset connection condition.
[0011] Optionally, it further includes: if a connection failure message for the target gateway address sent by the base station is received, obtaining a new target gateway address according to the connection failure message; sending the new target gateway address to the base station.
[0012] Optionally, obtaining a new target gateway address according to the connection failure message includes: obtaining first address information of the base station; obtaining second address information of each candidate gateway among multiple candidate gateways except the target gateway; determining target second address information that matches the first address information, and determining the gateway corresponding to the target second address information as the new target gateway address.
[0013] Optionally, sending the target gateway address to the base station includes: determining whether the base station is in a gateway connection state; if in the gateway connection state, generating a gateway handover message including the target gateway address according to a first communication protocol, and sending the gateway handover message to the base station; if not in the gateway connection state, generating a gateway connection message including the target gateway address according to a second communication protocol, and sending the gateway connection message to the base station.
[0014] According to a third aspect of the present application, there is provided a base station, including: a first obtaining module, configured to obtain a target gateway address sent by a core network device; a first sending module, configured to send a test message to a target gateway corresponding to the target gateway address; a determining module, configured to obtain a test result fed back by the target gateway according to the test message, and determine whether the target gateway meets a preset connection condition according to the test result; a second sending module, configured to send a connection confirmation message to the core network device when the preset connection condition is met, so that the core network device establishes a network connection channel between the base station and the target gateway according to the connection confirmation message.
[0015] Optionally, the second sending module is further configured to: when the preset connection condition is not met, send a connection failure message to the core network device, so that the core network device sends a new target gateway address to the base station.
[0016] Optionally, the determining module includes: a first determining unit, configured to determine whether a feedback message sent by the target gateway is received within a preset time; a second determining unit, configured to, when the feedback message is received, determine whether the target gateway meets the preset connection condition according to the feedback message.
[0017] Optionally, the second determining unit is specifically configured to: calculate a reference message according to a preset algorithm for the test message; determine whether the reference message is consistent with the feedback message, where when the reference message is consistent with the feedback message, it is determined that the target gateway meets the preset connection condition.
[0018] Optionally, it further includes: a second obtaining module, configured to obtain target gateway parameters of the target gateway sent by the core network device; a third obtaining module, configured to obtain standard gateway parameters corresponding to the base station; a first determining module, configured to determine that the target gateway parameters match the standard gateway parameters.
[0019] According to a fourth aspect of the present application, a core network device is provided, including: a second determination module, configured to determine a base station corresponding to a current session request, and a target gateway address corresponding to the base station; a third sending module, configured to send the target gateway address to the base station; a connection establishment module, configured to establish a network connection channel between the base station and the target gateway according to the target gateway address when receiving a connection confirmation message sent by the base station for the target gateway address, where the connection confirmation message is sent by the base station after sending a test message to a target gateway corresponding to the target gateway address and determining that a test result of the target gateway meets a preset connection condition.
[0020] Optionally, it further includes: a fourth acquisition module, configured to obtain a new target gateway address according to a connection failure message when receiving the connection failure message sent by the base station for the target gateway address; a fourth sending module, configured to send the new target gateway address to the base station.
[0021] Optionally, the fourth acquisition module is specifically configured to: acquire first address information of the base station; acquire second address information of each candidate gateway among multiple candidate gateways except the target gateway; determine target second address information that matches the first address information, and determine a gateway corresponding to the target second address information as the new target gateway address.
[0022] Optionally, the third sending module is specifically configured to: generate a gateway handover message including the target gateway address according to a first communication protocol and send the gateway handover message to the base station when in the gateway connection state; generate a gateway connection message including the target gateway address according to a second communication protocol and send the gateway connection message to the base station when not in the gateway connection state.
[0023] According to a fifth aspect of the present application, a network connection channel establishment system is provided, including: a base station side as described in the above third aspect; a core network device as described in the above fourth aspect; a gateway, where the gateway is communicatively connected to the base station and the core network device respectively.
[0024] According to a sixth aspect of the present application, a processor-readable storage medium is provided, where the processor-readable storage medium stores a computer program, and the computer program is used to cause the processor to execute the method described in the above first aspect, or the method described in the above second aspect.
[0025] The present application has at least the following technical effects:
[0026] The base station obtains the target gateway address sent by the core network device. Furthermore, it sends a test message to the target gateway corresponding to the target gateway address, and based on the test result of the target gateway for the test message, it determines whether the target gateway meets the preset connection condition. Thus, when the preset connection condition is met, it sends a connection confirmation message to the core network device, so that the core network device establishes a network connection channel between the base station and the target gateway according to the connection confirmation message. Thereby, before connecting the base station to the gateway, a connectivity test is performed, and only when the connectivity test result is connectivity, the connection is made, ensuring the smoothness of the service plane of the terminal device after the base station is connected to the network.
[0027] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The drawings are used to better understand the solution and do not constitute a limitation to this application. Among them:
[0029] Figure 1 is a schematic structural diagram of a network connection channel establishment system according to the first embodiment of the present application;
[0030] Figure 2-1 is a schematic flowchart of a network connection channel establishment process according to the second embodiment of the present application;
[0031] Figure 2-2 is a schematic flowchart of a network connection channel establishment process according to the third embodiment of the present application;
[0032] Figure 2-3 is a schematic flowchart of a network connection channel establishment process according to the fourth embodiment of the present application;
[0033] Figure 2-4 is a schematic flowchart of a network connection channel establishment process according to the fifth embodiment of the present application;
[0034] Figure 2-5 is a schematic flowchart of a network connection channel establishment process according to the sixth embodiment of the present application;
[0035] Figure 3 is a flowchart of a network connection channel establishment method according to the seventh embodiment of the present application;
[0036] Figure 4 is a flowchart of a network connection channel establishment method according to the eighth embodiment of the present application;
[0037] Figure 5 is a schematic structural diagram of a base station according to the ninth embodiment of the present application;
[0038] Figure 6It is a schematic structural diagram of a base station according to the tenth embodiment of the present application;
[0039] Figure 7 It is a schematic structural diagram of a base station according to the eleventh embodiment of the present application;
[0040] Figure 8 It is a schematic structural diagram of a core network device according to the twelfth embodiment of the present application; and
[0041] Figure 9 It is a schematic structural diagram of a core network device according to the thirteenth embodiment of the present application. Detailed implementation manners
[0042] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0043] That is, in the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. These three situations. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0044] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. These three situations. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0045] In the embodiments of the present application, the term "a plurality of" refers to two or more, and other quantifiers are similar thereto.
[0046] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0047] The embodiments of the present application provide a method, a system, a device, and a storage medium for establishing a network connection channel to solve the technical problem that in the prior art, after the base station side is networked, the service plane of the terminal device cannot be normally served.
[0048] Among them, the method and the apparatus are based on the same application concept. Since the principles of problem-solving for the method and the apparatus are similar, the implementation of the apparatus and the method can be referred to each other, and the repeated parts will not be elaborated here.
[0049] The technical solution provided by the embodiments of this application can be applied to multiple systems, especially 5G systems. For example, the applicable systems can be Global System of Mobile Communication (GSM) systems, Code Division Multiple Access (CDMA) systems, Wideband Code Division Multiple Access (WCDMA) General Packet Radio Service (GPRS) systems, Long Term Evolution (LTE) systems, LTE Frequency Division Duplex (FDD) systems, LTE Time Division Duplex (TDD) systems, Long Term Evolution Advanced (LTE-A) systems, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) systems, 5G New Radio (NR) systems, etc. Both terminal devices and network devices are included in these multiple systems. The system may also include a core network device part, such as an Evolved Packet System (EPS), 5G System (5GS), etc.
[0050] For ease of description, this application focuses on the base station side and the core network device side respectively to describe the network connection channel establishment method of the embodiments of this application. Among them, the base stations involved in the embodiments of this application can include multiple cells that provide services to terminals. According to different specific application scenarios, the base station can also be referred to as an access point, or can be a device in the access network that communicates with wireless terminal devices through one or more sectors on the air interface, or other names. The base station can be used to mutually replace the received air frames and Internet Protocol (IP) packets, and act as a router between the wireless terminal device and the rest of the access network, where the rest of the access network can include an Internet Protocol (IP) communication network. The base station can also coordinate the attribute management of the air interface. For example, the base stations involved in the embodiments of this application can be base transceiver stations (BTSs) in a Global System for Mobile communications (GSM) or Code Division Multiple Access (CDMA), or NodeBs in a Wide-band Code Division Multiple Access (WCDMA), or evolved network devices (evolutional Node B, eNB or e-NodeB) in a Long Term Evolution (LTE) system, gNBs in a 5G network architecture (next generation system), or Home evolved Node Bs (HeNBs), relay nodes, femtos, picocells, etc. The embodiments of this application do not limit this. In some network structures, the base station can include a centralized unit (CU) node and a distributed unit (DU) node, and the centralized unit and the distributed unit can also be arranged separately geographically.
[0051] First, the network connection channel establishment process of the embodiments of this application will be described focusing on the system side, as Figure 1 shown, the network connection channel establishment system of the embodiments of this application includes a base station 1000, a core network device 2000, and a gateway 3000.
[0052] As mentioned in the background art, in the existing process mechanism, after the core network sends the Initial Context Setup Request, E-RAB Setup Request, and PDU SESSION REQUEST messages, regardless of whether the gateway and transmission network resources corresponding to the service are ready, the terminal device corresponding to the base station will be allowed to attempt to access the new user plane service gateway. However, due to the mutual independence of the operator's service management departments, once the network side initiates a message to replace the service gateway, although the terminal is normally attached, it has been in a disconnected state. Since the cause of the fault is not in the base station itself, it is difficult for the base station side to clarify the cause of the problem and fault in a short time, and it is necessary to coordinate several departments to locate at the same time, which will increase the fault location cycle and often cause lags in business services.
[0053] The applicant found that, as Figure 2-1 and Figure 2-2 shown, the 3GPP protocol specification requires the separation design of the core network control plane and service plane, and the current network planning is also deployed separately. According to the existing communication service process, the base station side obtains the user plane service gateway address mainly relying on Context Management procedures (session management process) ( Figure 2-1 ) and E-RAB Management procedures (E-RAB management process), PDU SESSION Management procedure ( Figure 2-2 ).
[0054] The core network device notifies the base station side of the gateway address TransportLayer Address for the service access of the terminal device through the INITIAL CONTEXT SETUP REQUEST and E-RAB SETUP REQUEST / PDU SESSION SETUP messages on the S1 / N2 interface. Among them, the INITIAL CONTEXT SETUP REQUEST refers to the initialization content setting request, the E-RAB SETUP REQUEST message refers to the E-RAB establishment result feedback message, and the PDU SESSION SETUP message refers to the PDU session establishment message.
[0055] In the normal service process, the base station will send a confirmation message after receiving the Initial Context Setup Request / E-RAB Setup Request message. The core network and the base station will establish a service plane communication channel according to the interaction information between the two parties, and the service flow of the terminal device will be transmitted on this channel. However, once the network side initiates a message to replace the service gateway or other situations, the terminal will be in a disconnected state although it is normally attached.
[0056] In the network connection establishment system in the embodiments of the present application, the process of modifying the existing network connection, for example, embedding a connectivity test process initiated by the base station side in the session management process, E-RAB management process, and PDU SESSION management process (as shown in Figure 2-3 , 2-4 , Figures 2-5). For example: In the E-RAB Management procedures (E-RAB management process), only when the connectivity test between the base station and the new gateway is normal can the terminal be connected to the new gateway. Otherwise, the base station sends an E-RAB Setup Failure message to the core network. After the core network device processes the received E-RAB Setup Failure, it locates the network-side fault cause and re-sends an E-RAB Setup Request for gateway switching until it receives an E-RAB SetupResponse message. In the Context Management procedures (session management process), using the original Initial Context Setup Failure message, the core network device modifies the processing mechanism for replacing the gateway to ensure that a response message can be received when the connectivity test is normal.
[0057] That is to say, referring to Figure 1 , when the core network device 2000 sends the gateway address of the gateway 3000 to the base station 1000, only when the base station 1000 verifies that the gateway 3000 is connectable will the base station 1000 send a connection confirmation message to the core network device 2000. For example, it sends an E-RAB Setup Response message. After receiving the connection confirmation message, the core network device 2000 will build a network connection channel between the base station 1000 and the verified gateway 3000.
[0058] To more clearly describe the network connection channel establishment method in the embodiments of the present application, the network connection channel establishment method in the embodiments of the present application will be first described in detail on the base station side.
[0059] Figure 3 is a flowchart of the network connection channel establishment method according to an embodiment of the present application, as shown in Figure 3 . This method includes:
[0060] Step 101, obtain the target gateway address sent by the core network device.
[0061] As mentioned above, the core network device feeds back the target gateway address to the base station for the current communication scenario. The target gateway address can be any communication identification information that can be uniquely located and connected to the target gateway, such as a router IP address.
[0062] In addition, the above-mentioned core network device can be understood as a communication device in the core network used to build a connection channel between the base station and the gateway.
[0063] Step 102: Send a test message to the target gateway corresponding to the target gateway address.
[0064] Among them, the test message can be a heartbeat packet message or any other message agreed upon.
[0065] In actual execution, in order to ensure the service connectivity of the base station, standard gateway parameters of the acceptable target gateway will be preset in advance. The standard gateway parameters can include Qos parameters, encryption and decryption parameters, etc. Furthermore, obtain the target gateway parameters of the target gateway sent by the core network device. Only when it is determined that the target gateway parameters match the standard gateway parameters, send a test message to the target gateway corresponding to the target gateway address. Otherwise, directly notify the core network device of a connection failure message, such as sending an Initial Context Setup Failure message, so that the core network device selects a gateway that meets the standard gateway parameters and feeds back the corresponding gateway address to the base station.
[0066] Step 103: Obtain the test result feedback according to the test message for the target gateway, and determine whether the target gateway meets the preset connection conditions according to the test result.
[0067] It should be understood that whether the test result in this embodiment meets the preset connection conditions is related to the communication protocol between the target gateway and the base station. For example, this communication protocol can be understood as the "agreement rule" between the base station and the target gateway. Among them, the "agreement rules" of different base stations and target gateways can be the same or different.
[0068] As a possible implementation, determine whether the target gateway sends a feedback message within a preset time. Among them, the preset time can be set according to the distance between the target gateway and the base station, or can be set according to the number of base stations connected to the target gateway, which will not be elaborated here.
[0069] Furthermore, if a feedback message is obtained within the preset time, determine whether the target gateway meets the preset connection conditions according to the feedback message.
[0070] In some examples, if the test message is a heartbeat packet message, then if a feedback message is obtained within the preset time, it is considered that the target gateway meets the preset connection conditions.
[0071] In some other examples, the "agreement rule" between the base station and the target gateway is a preset algorithm, such as a hash algorithm, an MD5 encryption algorithm, etc. Then, a corresponding reference message is obtained by calculating the test message according to the preset algorithm. Among them, if the target gateway receives the corresponding test message, the feedback message is calculated from the test message according to the preset algorithm that has been predetermined. Further, it is determined whether the reference message is consistent with the feedback message. Among them, when the reference message is consistent with the feedback message, it is determined that the target gateway meets the preset connection conditions.
[0072] As another possible implementation manner, the target gateway and the base station negotiate the standard sending frequency of the test result in advance. Thus, a plurality of feedback messages received within a preset time period are collected, and whether the difference from the time interval corresponding to the standard sending frequency is less than a preset threshold is determined through the reception time intervals of the plurality of feedback messages. If it is less than the preset threshold, it is considered that the target gateway meets the preset connection conditions.
[0073] Step 104, if the preset connection conditions are met, a connection confirmation message is sent to the core network device, so that the core network device establishes a network connection channel between the base station and the target gateway according to the connection confirmation message.
[0074] In this embodiment, if the preset connection conditions are met, a connection confirmation message is sent to the core network device, such as sending an E-RAB Setup Response message, or it can also be other messages representing connection confirmation that have been agreed with the core network device in advance. Furthermore, after receiving the connection confirmation message, the core network device establishes a network connection channel with the base station to realize the network establishment of the base station on the service plane.
[0075] In another embodiment of the present application, if the preset connection conditions are not met, for example, no feedback message from the target gateway is received within the preset time, a connection failure message is sent to the core network device, such as sending an E-RAB SetupFailure message, so that the core network device sends a new target gateway address to the base station.
[0076] Of course, if the gateway corresponding to the new target gateway address still cannot communicate with the base station, the number of failures is recorded. If the number of failures is less than the preset number, a connection failure message is sent to the core network device, and the updated target gateway address sent by the core network device is continuously obtained. When the number of failures is greater than or equal to the preset number, a fault message related to the base station is generated. The fault message includes the internal operation parameters of the base station, etc. The internal operation parameters are input into a preset fault recognition model to determine the fault type. If the fault type is a preset software fault type, repair is performed according to the preset repair strategy corresponding to the fault type. If it is not a preset software fault type, the fault message is sent to the relevant maintenance platform.
[0077] In summary, for the network connection channel establishment method according to the embodiments of the present application, the target gateway address sent by the core network device is obtained. Furthermore, a test message is sent to the target gateway corresponding to the target gateway address, and based on the test result of the target gateway for the test message, it is determined whether the target gateway meets the preset connection conditions. Thus, when the preset connection conditions are met, a connection confirmation message is sent to the core network device, so that the core network device establishes a network connection channel between the base station and the target gateway according to the connection confirmation message. Thereby, before connecting the base station to the gateway, a connectivity test is performed, and only when the connectivity test result is connectivity will the connection be made, ensuring the smoothness of the service plane of the terminal device after the base station is connected to the network.
[0078] Next, the network connection channel establishment method according to the embodiments of the present application will be mainly described from the perspective of the core network device side.
[0079] Figure 4 is a flowchart of the network connection channel establishment method according to an embodiment of the present application, as Figure 4 shown, the network connection channel establishment method includes:
[0080] Step 201, determine the base station corresponding to the current session request, and the target gateway address corresponding to the base station.
[0081] In the actual execution process, the current session request may be an information sending request sent by the terminal device, and the physical address of the terminal device is carried in the information sending request. Thus, the core network can determine a base station among the base stations within a preset range from the physical address according to the physical address. For example, the base station closest in distance is determined as the corresponding service base station. Or, for example, network resources are obtained, and the base station with the least network occupancy is used as the service base station, etc.
[0082] Furthermore, determine the target gateway address corresponding to the base station. Among them, the core network device and the like can allocate the target gateway address based on the Dynamic Host Configuration Protocol, etc. The determination method of the target gateway address can be implemented by the prior art and will not be elaborated here.
[0083] Step 202, send the target gateway address to the base station.
[0084] In this embodiment, the target gateway address can be sent to the base station according to the communication channel with the base station. To ensure that the sent target gateway address is not tampered with, in an embodiment of the present application, the target gateway address after being signed by the public key of the base station can also be sent to the base station, so that the base station decrypts the signed target gateway address according to the private key to obtain the target gateway address.
[0085] Of course, during the actual execution process, when sending the target gateway address to the base station, the base station may be in a disconnected gateway state, or it is also possible that the base station and the gateway are in a connected state. Therefore, in different scenarios, different service processes can be used to send the target gateway address. For example, it is determined whether the base station is in a gateway connected state. If it is in a gateway connected state, a gateway handover message containing the target gateway address is generated according to the first communication protocol, and the gateway handover message is sent to the base station. Among them, the gateway handover message can be understood as the above-mentioned E-RAB management process, and the first communication protocol corresponds to the communication protocol of the E-RAB management process.
[0086] If it is not in a gateway connected state, a gateway connection message containing the target gateway address is generated according to the second communication protocol, and the gateway connection message is sent to the base station. Among them, the gateway connection message can be understood as the above-mentioned session management process, and the second communication protocol corresponds to the communication protocol of the session management process.
[0087] Step 203, if a connection confirmation message for the target gateway address sent by the base station is received, a network connection channel between the base station and the target gateway is established according to the target gateway address. Among them, the connection confirmation message is sent after the base station sends a test message to the target gateway corresponding to the target gateway address and determines that the test result of the target gateway meets the preset connection conditions.
[0088] In this embodiment, if a connection confirmation message for the target gateway address sent by the base station is received, a network connection channel between the base station and the target gateway is established according to the target gateway address. Among them, the connection confirmation message is sent after the base station sends a test message to the target gateway corresponding to the target gateway address and determines that the test result of the target gateway meets the preset connection conditions. The specific process can refer to the above embodiment and will not be elaborated here.
[0089] In an embodiment of the present application, if a connection failure message for the target gateway address sent by the base station is received, the connection failure message may be actively sent by the base station after determining that the target gateway does not meet the preset connection conditions, or may be actively sent by the base station according to service requirements. The core network device obtains a new target gateway address according to the connection failure message and sends the new target gateway address to the base station.
[0090] It should be noted that in different application scenarios, the method of obtaining a new target gateway address according to the connection failure message is different. Examples are as follows:
[0091] Example 1:
[0092] In this example, the first address information of the base station is obtained, and the second address information of each candidate gateway among multiple candidate gateways except the target gateway is obtained. For example, the second address information of the router is obtained. Furthermore, the target second address information matching the first address information is determined, and the gateway corresponding to the target second address information is determined as the new target gateway address. Among them, in some possible examples, the distance between the second address information and the first address information is calculated, and the second address information with the smallest distance is used as the target second address information; in other possible examples, the number of base stations currently communicated by the candidate gateway corresponding to the second address information is calculated, and the second address information of the candidate gateway with the smallest number is used as the target second address information.
[0093] Example 2:
[0094] In this example, the target gateway address corresponding to the connection failure message and the current device status parameters corresponding to the target gateway address are obtained. The device status parameters include network speed, etc. If the current device status parameters meet the preset normal conditions, the target gateway address sent last time is still sent to the base station to avoid the situation that the base station cannot connect to the corresponding target gateway due to some unexpected reasons and prevent the core network device from re-determining the corresponding target gateway address.
[0095] If the current device status parameters do not meet the preset normal conditions, candidate gateways that currently meet the configuration parameter conditions for connecting to the base station are obtained. The candidate gateways do not include the target gateway sent last time. A target gateway is randomly determined among the candidate gateways, and the target gateway address corresponding to the target gateway is sent to the base station.
[0096] In summary, for the network connection channel establishment method in the embodiments of the present application, the base station corresponding to the current session request and the target gateway address corresponding to the base station are determined. Furthermore, the target gateway address is sent to the base station. Finally, if a connection confirmation message for the target gateway address sent is received from the base station, a network connection channel between the base station and the target gateway is established according to the target gateway address. Among them, the connection confirmation message is sent after the base station sends a test message to the target gateway corresponding to the target gateway address and determines that the test result of the target gateway meets the preset connection conditions. Thus, the core network device will only connect the base station to the corresponding gateway after receiving the connection confirmation request message from the base station, avoiding the situation that although the terminal device can be normally attached after directly connecting the base station to the gateway, it cannot carry out network services, and ensuring the smoothness of the service surface of the terminal device after the base station is connected to the network.
[0097] To implement the above embodiments, the present application also proposes a base station. Figure 5 It is a schematic structural diagram of a base station according to an embodiment of the present application, as Figure 5As shown in the figure, the base station includes: a first acquisition module 1100, a first transmission module 1200, a judgment module 1300, and a second transmission module 1400. Among them,
[0098] The first acquisition module 1100 is configured to acquire a target gateway address sent by a core network device;
[0099] The first transmission module 1200 is configured to send a test message to a target gateway corresponding to the target gateway address;
[0100] The judgment module 1300 is configured to acquire a test result fed back by the target gateway according to the test message, and judge whether the target gateway meets a preset connection condition according to the test result;
[0101] The second transmission module 1400 is configured to send a connection confirmation message to the core network device when the preset connection condition is met, so that the core network device establishes a network connection channel between the base station and the target gateway according to the connection confirmation message.
[0102] In an embodiment of the present application, the second transmission module 1400 is further configured to:
[0103] When the preset connection condition is not met, send a connection failure message to the core network device, so that the core network device sends a new target gateway address to the base station.
[0104] In an embodiment of the present application, as Figure 6 shown, on the basis of what is shown in Figure 5 shown, the judgment module 1300 includes a first judgment unit 1310 and a second judgment unit 1320. Among them,
[0105] The first judgment unit 1310 is configured to judge whether a feedback message sent by the target gateway is received within a preset time;
[0106] The second judgment unit 1320 is configured to judge whether the target gateway meets the preset connection condition according to the feedback message when the feedback message is received.
[0107] In an embodiment of the present application, the second judgment unit 1320 is specifically configured to:
[0108] Calculate the test message according to a preset algorithm to obtain a reference message;
[0109] Judge whether the reference message is consistent with the feedback message. Among them, when the reference message is consistent with the feedback message, it is determined that the target gateway meets the preset connection condition.
[0110] In an embodiment of the present application, as Figure 7 shown, on the basis of what is shown inFigure 5 Based on what is shown, the base station further includes: a second acquisition module 1500, a third acquisition module 1600, and a first determination module 1700, where,
[0111] The second acquisition module 1500 is configured to acquire the target gateway parameters of the target gateway sent by the core network device;
[0112] The third acquisition module 1600 is configured to acquire the standard gateway parameters corresponding to the base station;
[0113] The first determination module 1700 is configured to determine that the target gateway parameters match the standard gateway parameters.
[0114] It should be noted that the foregoing method for establishing a network connection channel described on the base station side also applies to the base station in the embodiments of the present application, and its implementation principle and technical effects are the same, and will not be elaborated herein.
[0115] To implement the above embodiments, the present application also proposes a core network device.
[0116] Figure 8 is a schematic structural diagram of a core network device according to an embodiment of the present application. As Figure 8 shown, the core network device 2000 includes: a second determination module 2100, a third sending module 2200, and a connection establishment module 2300, where,
[0117] The second determination module 2100 is configured to determine the base station corresponding to the current session request and the target gateway address corresponding to the base station;
[0118] The third sending module 2200 is configured to send the target gateway address to the base station;
[0119] The connection establishment module 2300 is configured to establish a network connection channel between the base station and the target gateway according to the target gateway address when receiving a connection confirmation message sent by the base station for the target gateway address, where the connection confirmation message is sent by the base station after sending a test message to the target gateway corresponding to the target gateway address and determining that the test result of the target gateway meets a preset connection condition.
[0120] In an embodiment of the present application, as Figure 9 shown, based on what is shown in Figure 8 shown, the core network device further includes: a fourth acquisition module 2400, a fourth sending module 2500, where,
[0121] The fourth acquisition module 2400 is configured to acquire a new target gateway address according to a connection failure message when receiving a connection failure message sent by the base station for the target gateway address;
[0122] A fourth sending module 2500, configured to send a new target gateway address to a base station.
[0123] In an embodiment of the present application, the fourth obtaining module 2400 is specifically configured to:
[0124] Obtain first address information of the base station;
[0125] Obtain second address information of each candidate gateway among multiple candidate gateways except the target gateway;
[0126] Determine target second address information that matches the first address information, and determine the gateway corresponding to the target second address information as the new target gateway address.
[0127] In an embodiment of the present application, the third sending module 2200 is specifically configured to:
[0128] When in a gateway connection state, generate a gateway switching message including the target gateway address according to a first communication protocol, and send the gateway switching message to the base station;
[0129] When not in a gateway connection state, generate a gateway connection message including the target gateway address according to a second communication protocol, and send the gateway connection message to the base station.
[0130] It should be noted that the foregoing method for establishing a network connection channel described on the core network device side also applies to the core network device in the embodiments of the present application, and the implementation principles and technical effects are the same, and will not be elaborated here.
[0131] It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, there may be other division methods. In addition, each functional unit in the embodiments of the present application may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit. The above integrated units may be implemented in the form of hardware or in the form of software functional units.
[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.
[0133] It should be noted here that the above-mentioned base station and core network device provided in the embodiments of the present invention can implement all the method steps implemented in the above method embodiments and can achieve the same technical effects. Therefore, the same parts and beneficial effects as those in the method embodiments will not be specifically described in this embodiment.
[0134] The embodiments of this application also provide a processor-readable storage medium. The processor-readable storage medium stores a computer program, and the computer program is used to cause the processor to execute the network connection channel establishment method in this application. Among them, the above-mentioned processor-readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic memories (such as floppy disks, hard disks, magnetic tapes, magneto-optical discs (MO), etc.), optical memories (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor memories (such as ROM, EPROM, EEPROM, non-volatile memories (NANDFLASH), solid-state drives (SSD)).
[0135] Those skilled in the art should understand that the embodiments of this application can be provided as a method, a system, or a computer program product. Therefore, this application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) that contain computer-usable program codes.
[0136] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a means for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or a means for implementing the functions specified in one or more of the blocks.
[0137] These processor-executable instructions can also be stored in a processor-readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the processor-readable memory produce a manufacture including an instruction means that implements the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or a means for implementing the functions specified in one or more of the blocks.
[0138] These processor-executable instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are performed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or a means for implementing the functions specified in one or more of the blocks.
[0139] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to include these modifications and variations.
Claims
1. A method for establishing a network connection channel, characterized in that, Applied to a base station, the method includes: Obtain the target gateway address sent by the core network device; Send a test message to the target gateway corresponding to the target gateway address; Obtain the test result feedback by the target gateway according to the test message, and determine whether the target gateway meets the preset connection condition according to the test result; If the preset connection condition is met, send a connection confirmation message to the core network device, so that the core network device establishes a network connection channel between the base station and the target gateway according to the connection confirmation message; After determining whether the target gateway meets the preset connection condition according to the test result, it further includes: If the preset connection condition is not met, send a connection failure message to the core network device, so that the core network device sends a new target gateway address to the base station; Determining whether the target gateway meets the preset connection condition according to the test result includes: If a feedback message sent by the target gateway is received; Calculate and obtain a reference message for the test message according to a preset algorithm; Determine whether the reference message is consistent with the feedback message, where when the reference message is consistent with the feedback message, it is determined that the target gateway meets the preset connection condition.
2. The method according to claim 1, characterized in that, Determining whether the target gateway meets the preset connection condition according to the test result includes: Determine whether a feedback message sent by the target gateway is received within a preset time; If the feedback message is received, determine whether the target gateway meets the preset connection condition according to the feedback message.
3. The method according to claim 1, characterized in that, Before sending the test message to the target gateway corresponding to the target gateway address, it further includes: Obtain the target gateway parameters of the target gateway sent by the core network device; Obtain the standard gateway parameters corresponding to the base station; Determine that the target gateway parameters match the standard gateway parameters.
4. A method for establishing a network connection channel, characterized in that Applied to a core network device, the method includes: Determine the base station corresponding to the current session request and the target gateway address corresponding to the base station; Send the target gateway address to the base station; If a connection confirmation message for the target gateway address sent by the base station is received, establish a network connection channel between the base station and the target gateway according to the target gateway address, where the connection confirmation message is sent by the base station after sending a test message to the target gateway corresponding to the target gateway address and determining that the test result of the target gateway meets the preset connection condition; where, determining whether the test result of the target gateway meets the preset connection condition includes: If a feedback message sent by the target gateway is received; Calculate and obtain a reference message for the test message according to a preset algorithm; Determine whether the reference message is consistent with the feedback message, where when the reference message is consistent with the feedback message, it is determined that the target gateway meets the preset connection condition; If a connection failure message for the target gateway address sent by the base station is received, obtain a new target gateway address according to the connection failure message; Send the new target gateway address to the base station.
5. The method according to claim 4, characterized in that, Obtaining a new target gateway address according to the connection failure message includes: Obtaining first address information of the base station; Obtaining second address information of each candidate gateway among multiple candidate gateways except the target gateway; Determining target second address information that matches the first address information, and determining the gateway corresponding to the target second address information as the new target gateway address.
6. The method according to claim 4, wherein Sending the target gateway address to the base station includes: Judging whether the base station is in a gateway connection state; If in the gateway connection state, generating a gateway switching message containing the target gateway address according to a first communication protocol, and sending the gateway switching message to the base station; If not in the gateway connection state, generating a gateway connection message containing the target gateway address according to a second communication protocol, and sending the gateway connection message to the base station.
7. A base station, characterized in that, Includes: A first obtaining module, configured to obtain a target gateway address sent by a core network device; A first sending module, configured to send a test message to a target gateway corresponding to the target gateway address; A judging module, configured to obtain a test result fed back by the target gateway according to the test message, and judge whether the target gateway meets a preset connection condition according to the test result; A second sending module, configured to send a connection confirmation message to the core network device when the preset connection condition is met, so that the core network device establishes a network connection channel between the base station and the target gateway according to the connection confirmation message; The second sending module is further configured to: When the preset connection condition is not met, send a connection failure message to the core network device, so that the core network device sends a new target gateway address to the base station; A second judging unit is specifically configured to: If a feedback message sent by the target gateway is received; Calculating and obtaining a reference message for the test message according to a preset algorithm; Judging whether the reference message is consistent with the feedback message, wherein when the reference message is consistent with the feedback message, it is determined that the target gateway meets the preset connection condition.
8. The base station according to claim 7, wherein, The judging module includes: A first judging unit, configured to judge whether a feedback message sent by the target gateway is received within a preset time; A second judging unit, configured to judge whether the target gateway meets a preset connection condition according to the feedback message when the feedback message is received.
9. The base station according to claim 7, characterized in that, Further includes: A second obtaining module, configured to obtain target gateway parameters of the target gateway sent by the core network device; A third obtaining module, configured to obtain standard gateway parameters corresponding to the base station; A first determining module, configured to determine that the target gateway parameters match the standard gateway parameters.
10. A core network device, characterized in that, Includes: A second determining module, configured to determine a base station corresponding to a current session request and a target gateway address corresponding to the base station; A third sending module, configured to send the target gateway address to the base station; A connection establishment module, configured to establish a network connection channel between the base station and the target gateway according to the target gateway address when receiving the connection confirmation message sent by the base station for the target gateway address. The connection confirmation message is sent by the base station after sending a test message to the target gateway corresponding to the target gateway address and determining that the test result of the target gateway meets a preset connection condition. Determining whether the test result of the target gateway meets the preset connection condition includes: If a feedback message sent by the target gateway is received; Calculating and obtaining a reference message for the test message according to a preset algorithm; Determining whether the reference message is consistent with the feedback message. When the reference message is consistent with the feedback message, it is determined that the target gateway meets the preset connection condition; A fourth acquisition module, configured to obtain a new target gateway address according to the connection failure message when receiving the connection failure message sent by the base station for the target gateway address; A fourth sending module, configured to send the new target gateway address to the base station.
11. The core network device according to claim 10, characterized in that, The fourth acquisition module is specifically configured to: Obtain the first address information of the base station; Obtain the second address information of each candidate gateway among multiple candidate gateways except the target gateway; Determine the target second address information that matches the first address information, and determine the gateway corresponding to the target second address information as the new target gateway address.
12. The core network device according to claim 10, characterized in that, The third sending module is specifically configured to: Determine whether the base station is in a gateway connection state; When in the gateway connection state, generate a gateway switching message including the target gateway address according to the first communication protocol, and send the gateway switching message to the base station; When not in the gateway connection state, generate a gateway connection message including the target gateway address according to the second communication protocol, and send the gateway connection message to the base station.
13. A network connection channel establishment system, characterized in that Including: The base station according to any one of claims 7-9; The core network device according to any one of claims 10-12; A gateway, where the gateway is respectively communicatively connected to the base station and the core network device.
14. A processor-readable storage medium, characterized in that, The processor-readable storage medium stores a computer program, and the computer program is used to cause the processor to execute the method according to any one of claims 1 to 3, or the method according to any one of claims 4 to 6.
Citation Information
Patent Citations
Method for self-adaptively closing base station radio frequency in wireless communication
CN103874106A
Method and device for establishing communication connection and communication equipment
CN108307401A