Method for establishing connection and network equipment
By determining the business rules between base stations in a time dimension and selecting appropriate network equipment to establish target connections, the problem of resource waste caused by fixed cycle switching is solved, and flexible allocation and efficient utilization of resources are achieved.
Patent Information
- Application Number
- CN202310956173.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2025-02-14
AI Technical Summary
Switching between base stations in a fixed cycle may result in a waste of target connection resources.
By determining the business rules of the first network device and other network devices in a time dimension, a second network device corresponding to the first network device is determined from other network devices, and a connection establishment negotiation information is sent to the second network device, according to which The response information of resource status feedback performs the corresponding operation.
Flexible allocation of target connection resources based on business rules to avoid resource waste and improve resource utilization.
Smart Images

Figure CN119450796A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular to a method for establishing a connection and a network device. Background Art
[0002] In the process of establishing a target connection, such as an X2 or Xn connection, the basis for establishing or deleting a target connection link between base stations is the number of handovers between base stations in the past fixed period (such as one day). Assuming that there are n total target connection resources between base stations, and n is a positive integer greater than or equal to 1, then a target connection link is established with the base stations ranked before n in the number of handovers, and the established target connection link is not established or deleted with the base stations ranked n+1 and later. Assuming that the business rules between base station A and base station B and base station C in a fixed period of one day show that the sum of the handovers between base station A and base station B is greater than the sum of the handovers between base station A and base station C, according to the relevant method, if there is only one target connection resource left, a target connection link will be established between base station A and base station B.
[0003] But in fact, a fixed cycle can include multiple time granularities. For example, a fixed cycle of one day can include 24 time granularities, each of which is one hour. During the time period from 6:00 to 18:00, the number of handovers between base station A and base station C is greater. During this time period, a target connection link is established between base station A and base station B, resulting in an overall waste of target connection resources. It can be seen that handover between base stations in a fixed cycle may cause a waste of resources. Summary of the invention
[0004] The embodiments of the present application provide a method for establishing a connection and a network device, which can solve the problem that switching between base stations in a fixed period may cause waste of resources.
[0005] In a first aspect, a method for establishing a connection is provided, the method comprising: determining the business rules of the first network device and other network devices in a time dimension; based on the business rules, determining a second network device corresponding to the first network device in a first time period from the other network devices; sending connection establishment negotiation information for establishing a target connection to the second network device, and according to connection establishment response information of the second network device, performing a connection response operation corresponding to the connection establishment response information, wherein the connection establishment response information is determined by the second network device based on a resource status.
[0006] In a second aspect, a method for establishing a connection is provided, the method comprising: receiving connection establishment negotiation information sent by a first network device for establishing a target connection, wherein the connection establishment negotiation information carries business rules of the first network device and the second network device in a time dimension; based on the business rules, determining connection establishment response information; and sending the connection establishment response information to the first network device.
[0007] According to a third aspect, a device for establishing a connection is provided, the device comprising: a first determination module, used to determine the business rules of the first network device and other network devices in a time dimension; a second determination module, used to determine, from the other network devices, a second network device corresponding to the first network device in a first time period based on the business rules; a connection module, used to send connection establishment negotiation information for establishing a target connection to the second network device, and according to the connection establishment response information fed back by the second network device, perform a connection response operation corresponding to the connection establishment response information, wherein the connection establishment response information is determined by the second network device based on a resource status.
[0008] In a fourth aspect, a device for establishing a connection is provided, the device comprising: a receiving module for receiving connection establishment negotiation information sent by a first network device for establishing a target connection, wherein the connection establishment negotiation information carries business rules of the first network device and the second network device in a time dimension; a third determination module for determining connection establishment response information based on the business rules; and a sending module for sending the connection establishment response information to the first network device.
[0009] In a fifth aspect, a network side device is provided, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for establishing a connection as described in the first aspect or the second aspect.
[0010] In a sixth aspect, a network device is provided, comprising a processor and a communication interface, wherein the processor is used to implement the steps of the method for establishing a connection as described in the first aspect; and the communication interface is used to communicate with an external device.
[0011] In a seventh aspect, a network device is provided, comprising a processor and a communication interface, wherein the processor is used to implement the steps of the method for establishing a connection as described in the second aspect; and the communication interface is used to communicate with an external device.
[0012] In an eighth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method for establishing a connection as described in the first aspect or the second aspect are implemented.
[0013] In the ninth aspect, a computer program product is provided, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for establishing a connection as described in the first aspect or the second aspect.
[0014] In the tenth aspect, a chip is provided, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method for establishing a connection as described in the first aspect or the second aspect.
[0015] In the eleventh aspect, a computer program / program product is provided, wherein the computer program / program product is stored in a non-volatile storage medium, and the program / program product is executed by at least one processor to implement the steps of the method for establishing a connection as described in the first aspect or the second aspect.
[0016] The method for establishing a connection provided by an embodiment of the present invention determines the business rules of the first network device and other network devices in the time dimension; based on the business rules, determines the second network device corresponding to the first network device in the first time period from the other network devices; sends connection establishment negotiation information for establishing a target connection to the second network device, and performs a connection response operation corresponding to the connection establishment response information based on the connection establishment response information fed back by the second network device, wherein the connection establishment response information is determined by the second network device based on the resource status, and can establish the target connection based on the business rules between the network devices, thereby avoiding waste of target connection resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of a wireless communication system to which an embodiment of the present application can be applied is shown.
[0018] Figure 2 is a schematic flow chart of a method for establishing a connection according to an embodiment of the present invention;
[0019] Figure 3 is a schematic flow chart of a method for establishing a connection according to an embodiment of the present invention;
[0020] Figure 4 is a schematic flow chart of a method for establishing a connection according to an embodiment of the present invention;
[0021] Figure 5 is a schematic diagram of a method for establishing a connection according to an embodiment of the present invention;
[0022] Figure 6 is a schematic diagram of the structure of an apparatus for establishing a connection according to an embodiment of the present invention;
[0023] Figure 7 is a schematic diagram of the structure of an apparatus for establishing a connection according to an embodiment of the present invention;
[0024] Figure 8 is a schematic diagram of the structure of a communication device according to an embodiment of the present invention;
[0025] Fig. 9 is a schematic diagram of the structure of a network device according to another embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are 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 ordinary technicians in this field belong to the scope of protection of this application.
[0027] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0028] It is worth noting that the technology described in the embodiments of the present application is not limited to the Long Term Evolution (LTE) / LTE-Advanced (LTE-A) system, but can also be used in other wireless communication systems, such as Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Frequency Division Multiple Access (FDMA), Orthogonal Frequency Division Multiple Access (OFDMA), Single-carrier Frequency-Division Multiple Access (SC-FDMA) and other systems. The terms "system" and "network" in the embodiments of the present application are often used interchangeably, and the described technology can be used for the systems and radio technologies mentioned above as well as for other systems and radio technologies. The following description describes a New Radio (NR) system for illustrative purposes, and NR terminology is used in most of the following descriptions, but these technologies can also be applied to applications other than NR system applications, such as the 6th generation (6 th Generation, 6G) communication system.
[0029] Figure 1A schematic diagram of a wireless communication system applicable to an embodiment of the present application is shown. The wireless communication system includes a plurality of network-side devices 12. The network-side device 12 may be a base station or a core network, wherein the base station may be referred to as a node B, an evolved node B, an access point, a base transceiver station (Base Transceiver Station, BTS), a radio base station, a radio transceiver, a basic service set (Basic Service Set, BSS), an extended service set (Extended Service Set, ESS), a B node, an evolved Node B (evolved Node B, eNB), a home node B, a home evolved node B, a WLAN access point, a WiFi node, a transmitting and receiving point (Transmitting Receiving Point, TRP) or some other appropriate term in the field, as long as the same technical effect is achieved, the base station is not limited to a specific technical vocabulary, it should be noted that in the embodiment of the present application, only NR gNB base station and LTE eNB base station are taken as examples, but the specific type of the base station is not limited. The wireless communication system may also include a terminal 11 that communicates with the network-side device 12, and the specific type of the terminal 11 is not limited in the embodiment of the present application.
[0030] The following describes in detail the method for establishing a connection provided by the embodiment of the present application through some embodiments and their application scenarios in combination with the accompanying drawings.
[0031] like Figure 2 As shown, an embodiment of the present invention provides a method for establishing a connection, which can be executed by a first network device. In other words, the method can be executed by software or hardware installed in the first network device. The method includes the following steps:
[0032] S220: Determine the service rules of the first network device and other network devices in the time dimension.
[0033] The first network device and the other network devices are devices located on the network side of the wireless communication system. The first network device can communicate with other network devices. The business rule is used to predict the communication business rule between the first network device and the other network devices. For example, the business rule is that the first network device and the other network devices are predicted to have 200 communication services in the next 24 hours. The communication service is, for example, communication switching. The business rule can be represented by parameters such as the number of switching times.
[0034] The types of the first network device and the other network devices may be the same or different, and there is no limitation on this.
[0035] S230: Determine, from the other network devices, a second network device corresponding to the first network device in the first time period.
[0036] The first time period is a future time period, that is, a time period after the current time. According to the business rules, the second network device is determined from other network devices. The determined second network device is used to represent the target connection device of the first network device in the first time period. In other words, in the first time period, the first network device is ready to establish a connection with the second network device.
[0037] Optionally, the service rules of the first network device and the second network device in the first time period can meet the communication requirements of the time period. For example, in the first time period, the service value between the first network device and the second network device is better than the service value between the first network device and the third network device. The service rules of the first network device and the third network device in the first time period do not meet the communication requirements of the time period.
[0038] Through this step, it is possible to determine that the target connection device of the first network device within a specified time is the second network device from among a plurality of other network devices.
[0039] S240: Send connection establishment negotiation information for establishing a target connection to the second network device, and perform a connection response operation corresponding to the connection establishment response information according to the connection establishment response information of the second network device.
[0040] The first network device negotiates with the second network device to establish a target connection between the first network device and the second network device by sending a connection establishment negotiation message. The connection establishment response message is determined by the second network device based on the resource status and fed back by the second network device to the first network device, and is used to indicate whether the second network device agrees to establish the target connection. Optionally, corresponding to the connection establishment response message used to indicate the agreement to establish the target connection, the connection response operation may be to establish the target connection; corresponding to the connection establishment response message used to indicate the disagreement to establish the target connection, the connection response operation may be other operations.
[0041] For example, in S220, the business rules of the first network device and other network devices are determined in the time dimension. For example, the business rule is that the first network device and network device A are predicted to have 200 communication services in the next 2 hours, and the communication service is, for example, communication switching. In S230: determine the second network device corresponding to the first network device in the first time period from the other network devices. For example, if the business rule of 200 communication services predicted to occur in the next 24 hours meets the communication needs, then network device A is determined to be the second network device, and in S240, connection negotiation information for establishing a target connection is sent to the second network device, that is, network device A, and the target connection is established based on the response information of agreeing to establish the connection fed back by network device A.
[0042] The method for establishing a connection provided by an embodiment of the present invention determines the business rules of the first network device and other network devices in the time dimension; based on the business rules, determines the second network device corresponding to the first network device in the first time period from the other network devices; sends connection establishment negotiation information for establishing a target connection to the second network device, and performs a connection response operation corresponding to the connection establishment response information based on the connection establishment response information fed back by the second network device. The connection establishment response information is determined by the second network device based on the resource status, and can flexibly allocate target connection resources to avoid waste of target connection resources.
[0043] Figure 3 FIG. 1 is a flow chart of a method for establishing a connection according to an embodiment of the present invention, which can be applied on a network device side. Figure 3 As shown, the method 300 includes:
[0044] S310: Training a first prediction model.
[0045] Based on the business rules of the first network device and other network devices in multiple time dimensions, a first prediction model is trained. The business rules of multiple time dimensions can be used to represent the business rules of the first network device and other network devices in a historical time period. Different time dimensions can correspond to time periods of different lengths. Optionally, a long short-term memory network (Long Short-Term Memory, LSTM) algorithm is used to train the prediction model. The trained first prediction model is used to predict the business rules of the first network device and other network devices.
[0046] S321: Determine the predicted number of switching between the first network device and the other network devices at each time granularity.
[0047] The predicted number of switching times is a predicted value output by the first prediction model, which is used to indicate the number of switching times between the first network device and other network devices at different time granularities. The time granularity is a time unit of different lengths within a first time period, and the first time period is a future time period. The predicted number of switching times corresponds to the time granularity; in other words, corresponding to each time granularity, there is a predicted number of switching times between the first network device and different other network devices, such as the predicted number of switching times between the first network device and the second network device at time granularity t, and the predicted number of switching times between the first network device and the third network device at time granularity t.
[0048] Specifically, the predicted number of switching times may represent the number of switching times between the first network device and each other network device in each time granularity t in the first future time period T, for example, including the predicted number of switching times between the first network device and the second network device in the first time granularity of the first time period.
[0049] S322: Determine the business rule according to the predicted number of switching times at the time granularity included in the first time period.
[0050] The business rule determined according to this step may include, for example, the predicted switching times at multiple time granularities, such as the predicted switching times between the first network device and the second network device in the first time granularity of the first time period and the predicted switching times between the first network device and the second network device in the second time granularity of the first time period. In a possible implementation, step S322 includes determining the first time period according to the at least two consecutive time granularities when the difference of the predicted switching times in at least two consecutive time granularities is less than the times threshold; and determining the business rule according to the predicted switching times at the at least two consecutive time granularities included in the first time period.
[0051] The first time period may include multiple time granularities. For example, the first time period is one day, and may include 24 time granularities, each of which is one hour. The number threshold is, for example, 20 times. Between 0:00 and 1:00 in the time period, the number of handovers between base station A and base station B is 200 times, and between 1:00 and 2:00 in the time period, the number of handovers between base station A and base station B is 210 times. It can be seen that the difference in the predicted number of handovers in these two consecutive time granularities is less than the number threshold, indicating that the number of handovers between base station A and base station B is relatively stable, and the business rules between network devices in multiple time granularities do not change much. In this case, 0:00 to 2:00 can be considered as a complete first time period to consider base station handover, without the need to perform handover judgments on the multiple time granularities contained therein, to avoid performing a judgment on each time granularity. If the time granularity is too large, resource waste will occur, and if the resource granularity is too small, the number of judgments will be too large and the computational cost will be wasted.
[0052] On the contrary, for example, between time period 3 and 4, the number of handovers between base station A and base station B is 200 times, and between time period 4 and 5, the number of handovers between base station A and base station B is 100 times. It can be seen that the difference between the predicted number of handovers in these two consecutive time granularities is greater than the number threshold, indicating that the number of handovers between base station A and base station B varies greatly, and the business rules between network devices in multiple time granularities vary greatly. In this case, 3 to 5 is no longer regarded as a complete first time period, but 3 to 4 is regarded as a first time period, and time period 4 to 5 is regarded as a first time period. Handover judgments are made separately. Assuming that between time period 4 and 5, the number of handovers between base station A and base station C is 200 times, which is higher than that between base station A and base station B, a target connection can be established through base station A and base station C based on the business rule, rather than base station A connecting to base station B. Therefore, the first time period can be reasonably divided according to the business rule, and handovers between base stations are performed based on the first time period, thereby avoiding the problem of resource waste that may be caused by handovers between base stations in a fixed cycle.
[0053] The determined business rule can be used to indicate the determination of the second network device from the other network devices. The second network device is determined from the other network devices according to the predicted number of switching between the first network device and the other network devices in the first time period. Optionally, the other network devices that communicate with the first network device in the first time period are sorted according to the predicted number of switching to generate a first queue. The second network device is determined according to the first queue and the number of target connection resources. For example, if the number of target connection resources is 1, the network device ranked first in the first queue is determined to be the second network device. In other words, the device with the largest predicted number of switching with the first network device in the first time period is determined to be the second network device.
[0054] Optionally, the predicted number of switching between the first network device and other network devices in each time period is broadcast.
[0055] S330: Send connection establishment negotiation information for establishing a target connection to the second network device.
[0056] The connection negotiation information carries a first predicted number of switching between the first network device and the second network device at a time granularity included in a first time period. The first predicted number of switching is carried in the connection negotiation information, and the connection negotiation information is sent by the first network device to the second network device.
[0057] S340: Establish a connection between the first network device and the second network device.
[0058] When the connection establishment response information indicates that a connection is to be established, that is, when the second network device agrees to establish a connection with the first network device, a connection is established between the first network device and the second network device.
[0059] In the case where the connection establishment response information shows that the connection is not established, the connection establishment negotiation information is sent to the third network device. The second network device is ranked in the first queue as the first N bits, N is a natural number, the first queue is sorted by the number of switching times between other network devices and the first network device in at least one time granularity in the first time period, and the third network device is ranked in the first queue as the N+1th bit. That is, in the case where the second network device refuses to establish a connection with the first network device, the connection establishment negotiation information is sent to the third network device whose predicted number of switching times is second only to the second network device, so as to negotiate with the third network device to establish a connection and repeat the aforementioned negotiation steps. For example, the number of target connection resources N is 1, the second network device is ranked first in the first queue, and the connection establishment response information fed back by the second network device shows that the connection is not established with the first network device, the first network device sends the connection establishment negotiation information to the third network device, and the third network device is ranked second in the first queue. Optionally, in the case where the third network device agrees to establish a connection, the connection between the first network device and the third network device is established; in the case where the third network device refuses to establish a connection, the connection establishment negotiation information is sent to other devices ranked after the third network device in the first queue.
[0060] When the connection establishment response information indicates that the connection is not established, the first predicted switching number is set to 0, and the second network device is placed at the end of the first queue, thereby avoiding repeated sending of connection establishment negotiation information to the second network device, which causes a waste of resources.
[0061] By using the method for establishing a connection in this embodiment, the second network device to be connected can be accurately determined based on the predicted number of switching times; and a corresponding response operation is performed based on the connection establishment response information fed back by the second network device, thereby improving the efficiency of establishing a connection for the first network device.
[0062] In a possible implementation, after step S340, it also includes: determining a fourth network device among the other network devices whose predicted number of switching with the first network device in at least one time granularity in the first time period is ranked after the Nth position in the first queue; and deleting the target connection between the fourth network device and the fourth network device.
[0063] For example, the second network device is ranked 1 in the first queue. After the connection between the first network device and the second network device is established, the network devices ranked 2 and thereafter in the first queue are determined to be fourth network devices. The number of the fourth network devices can be one or more.
[0064] Since the first network device has established a connection with the second network device, the first network device currently has no remaining resources to connect to the fourth network device. In this case, deleting the target connection between the first network device and the fourth network device can save resources and effectively ensure the service quality between the first network device and the second network device.
[0065] In a possible implementation, after step S310, it also includes: inputting data transmitted between the first network device and the other network devices into the first prediction model; outputting a second predicted switching number through the first prediction model, wherein the second predicted switching number represents the number of switches between the first network device and the other network devices in at least one time granularity in a first time period.
[0066] For example, data transmitted between the first network device and the third network device is input into the first prediction model, and the first prediction model can output a second predicted switching number representing the first network device and the third network device in at least one time granularity in the first time period.
[0067] Specifically, the first prediction model can be trained based on historical transmission data between the first network device and the third network device. When using the first prediction model, 24*7 pieces of data transmitted between the first network device and the third network device are input into the first prediction model. Through the first prediction model, the second switching times between the first network device and the third network device in each hour within the next 24 hours can be predicted.
[0068] Optionally, after outputting the second predicted switching number, the second predicted switching number is also broadcasted.
[0069] In a possible implementation, after outputting the second predicted number of switching times, it also includes: determining the error between the second predicted number of switching times and the actual number of switching times; when the error is greater than an error threshold, accumulating the number of errors; when the number of errors reaches the fault tolerance number, retraining the first prediction model.
[0070] Optionally, after each time granularity ends, the actual number of switching times of the time granularity is compared with the second predicted number of switching times of the time granularity to obtain the error of the second predicted number of switching times relative to the actual number of switching times. Optionally, if the error is less than the error threshold, the prediction result of the time granularity is recorded as "good"; if the error is greater than the error threshold, the prediction result is recorded as "bad". If the number of "bad" prediction results within a time period (for example, one day) is greater than or equal to the fault tolerance number, it means that the prediction accuracy of the first prediction model needs to be improved, and re-training of the model is triggered to ensure the accuracy of the prediction.
[0071] The error threshold and the number of fault tolerances may be preset according to business requirements, or adjusted in real time according to actual business needs.
[0072] In a possible implementation, the error between the second predicted switching number and the actual switching number is: the ratio of the first difference to the actual switching number, and the first difference is the difference between the second predicted switching number and the actual switching number.
[0073] That is, error=(second predicted number of switching times-actual number of switching times) / actual number of switching times.
[0074] In a possible implementation manner, the target connection includes: an X2 or Xn connection.
[0075] Establishing an X2 or Xn connection means establishing an X2 or Xn link between different network devices. Each network device has at least one X2\Xn resource. Establishing an X2 or Xn link requires that the network device has an idle X2\Xn resource.
[0076] The method for establishing a connection provided by an embodiment of the present invention determines the business rules of the first network device and other network devices in the time dimension; based on the business rules, determines the second network device corresponding to the first network device in the first time period from the other network devices; sends connection establishment negotiation information for establishing a target connection to the second network device, and performs a connection response operation corresponding to the connection establishment response information based on the connection establishment response information fed back by the second network device based on the resource status. The method can flexibly allocate target connection resources based on the business rules to avoid wasting target connection resources.
[0077] Combination of the above Figure 2-Figure 3 The method for establishing a connection according to an embodiment of the present invention is described in detail. Figure 4 A method for establishing a connection according to another embodiment of the present invention is described in detail. It can be understood that the interaction between network devices described from the second network device side is similar to Figure 2-3The description of the first network device side in the method shown is the same, and the relevant description is appropriately omitted to avoid repetition.
[0078] Figure 4 FIG. 1 is a flow chart of a method for establishing a connection according to an embodiment of the present invention, which can be applied to a second network device. Figure 4 As shown, the method 400 includes:
[0079] S410: Receive connection establishment negotiation information for establishing a target connection sent by the first network device.
[0080] The connection establishment negotiation information is used to request to establish a connection between the first network device and the second network device, and the connection establishment negotiation information carries the service rules of the first network device and the second network device in the time dimension.
[0081] S420: Determine establishment of connection response information based on the business rule.
[0082] The connection establishment response information is used to respond to the connection establishment negotiation information, for example, including agreeing to establish the connection or refusing to establish the connection.
[0083] S430: Send the connection establishment response information to the first network device.
[0084] The method for establishing a connection provided by an embodiment of the present invention receives connection establishment negotiation information sent by a first network device for establishing a target connection, wherein the connection establishment negotiation information carries the business rules of the first network device and the second network device in the time dimension; based on the business rules, determines connection establishment response information; and sends the connection establishment response information to the first network device, which can flexibly allocate target connection resources based on the business rules to avoid waste of target connection resources.
[0085] In a possible implementation, the service regularity of the first network device and the second network device in the time dimension includes: a first predicted number of switching between the first network device and the second network device in at least one time granularity in a first time period.
[0086] The first predicted switching number is a predicted value, which is optionally determined by the first network device. The first predicted switching number is, for example, the number of switchings between the first network device and the second network device in at least one hour in the next day.
[0087] In a possible implementation, the first time period includes at least two consecutive time granularities, and a difference between predicted switching times corresponding to each of the at least two consecutive time granularities is less than a times threshold.
[0088] The first time period may include multiple time granularities. For example, the first time period is one day, and may include 24 time granularities, each of which is one hour. The number threshold is, for example, 20 times. Between 0:00 and 1:00 in the time period, the number of handovers between base station A and base station B is 200 times, and between 1:00 and 2:00 in the time period, the number of handovers between base station A and base station B is 210 times. It can be seen that the difference in the predicted number of handovers in these two consecutive time granularities is less than the number threshold, indicating that the number of handovers between base station A and base station B is relatively stable, and the business rules between network devices in multiple time granularities do not change much. In this case, 0:00 to 2:00 can be considered as a complete first time period to consider base station handover, without the need to perform handover judgments on the multiple time granularities contained therein, to avoid performing a judgment on each time granularity. If the time granularity is too large, resource waste will occur, and if the resource granularity is too small, the number of judgments will be too large and the computational cost will be wasted.
[0089] In a possible implementation, step S420 includes determining establishment of connection response information based on the first predicted number of switching times and a remaining resource state of the second network device.
[0090] The resource remaining state is used to indicate the available resources of the current second network device, such as idle link resources in the second network device. Specifically, it can indicate whether there are idle link resources in the second network device and / or the number of idle link resources in the second network device.
[0091] Determining the connection establishment response information based on the first predicted switching number and the resource remaining status can take into account the service status of the first network device and the second network device and more accurately determine whether to establish a connection between the first network device and the second network device.
[0092] Optionally, before determining to establish a connection response message based on the first predicted number of switching times and the remaining resource status of the second network device, the method further includes waiting for a predetermined time.
[0093] For example, after receiving the connection establishment negotiation information, the second network device waits for S seconds before determining the connection establishment response information. By delaying this period of time, the second network device can receive all the connection establishment negotiation information. In other words, if there are multiple network devices that want to establish a connection with the second network device, by waiting for a predetermined time, the second network device can receive the connection establishment negotiation information of all network devices.
[0094] In a possible implementation, the determining of the connection establishment response information based on the first predicted number of switching times and the remaining resource status of the second network device includes at least one of the following: in the case where it is determined that there are idle connection resources, determining that the connection establishment response information indicates that it agrees to display the connection establishment; in the case where the first predicted number of switching times is greater than the number of switching times corresponding to the fifth network device, determining that the connection establishment response information indicates that it agrees to display the connection establishment; wherein the number of switching times corresponding to the fifth network device is ranked Nth in the second queue, and the second queue is sorted according to the number of switching times between each network device and the second network device in at least one time granularity of the first time period; in the case where the first predicted number of switching times is greater than the number of switching times corresponding to the sixth network device, determining that the connection establishment response information indicates that it agrees to display the connection establishment; wherein the number of switching times corresponding to the sixth network device is ranked Nth in the third queue, and the third queue is sorted according to the number of switching times between each network device and the second network device in at least one time granularity of the second time period, and the second time period is the next time period of the first time period.
[0095] The first network device requests to establish a connection with the second network device. Assuming that the second network device has N connection resources, the second network device needs to use 1 connection resource to realize each connection. In the case that the second network device has at least 1 idle connection resource, the second network device agrees to establish a connection with the first network device, that is, the determined connection establishment response information shows that the connection is established. In the case that the second network device has no idle connection resources, the first predicted switching number corresponding to the first network device in the first time period is compared with the switching number corresponding to the fifth network device. According to the number of switching in at least one time granularity in the first time period, the fifth network device is ranked last among the N network devices connected to the second network device, that is, the Nth in the second queue. If the first predicted switching number is greater than the switching number corresponding to the fifth network device, then in the first time period, the first predicted switching number can be ranked in the first N positions of the second queue, and the second network device agrees to establish a connection with the first network device. In addition, the first predicted switching number corresponding to the first network device in the second time period can also be compared with the switching number corresponding to the sixth network device. The second time period is a time period after the first time period, for example, the current time is 0 o'clock, the first time period is 0-12 o'clock, and the second time period is 13-24 o'clock. According to the number of switchings in at least one time granularity in the second time period, the sixth network device is ranked last among the N network devices connected to the second network device, that is, ranked at the Nth position in the third queue. If the first predicted number of switchings is greater than the number of switchings corresponding to the sixth network device, then in the second time period, the first predicted number of switchings can be ranked in the first N positions of the third queue, and the second network device agrees to establish a connection with the first network device.
[0096] In a possible implementation, the determining of the connection establishment response information based on the first predicted switching number and the remaining resource status of the second network device includes: when there are no idle connection resources, the first predicted switching number is less than the switching number corresponding to the fifth network device, and the first predicted switching number is less than the switching number corresponding to the sixth network device, determining that the connection establishment response information shows that the connection is not established.
[0097] When all N connection resources of the second network device are in use, it is further determined whether the first switching number corresponding to the first network device can be ranked in the top N number of network device switching numbers in the first time period and the subsequent second time period according to the number of switching times. In other words, when the second network device is the target connection device of the first network device, it is necessary to determine whether the first network device is also the target connection device of the second network device in combination with the remaining resources of the second network device. If the first switching number cannot be ranked in the top N number of switching numbers, then in the first time period and the second time period, the first network device is not the target connection device of the second network device, the second network device refuses to establish a connection with the first network device, and the determined connection establishment response information shows that the connection is not established.
[0098] In a possible implementation, after determining to establish connection response information based on the first predicted number of switching times and the remaining resource status of the second network device, it also includes: when the first predicted number of switching times is greater than the number of switching times corresponding to the fifth network device, deleting the connection between the second network device and the fifth network device; when the first predicted number of switching times is greater than the number of switching times corresponding to the sixth network device, deleting the connection between the second network device and the sixth network device.
[0099] When the first predicted switching number is greater than the switching number corresponding to the fifth network device, the second network device needs to disconnect from the fifth network device to provide connection resources for the first network device and the second network device to connect and use. Similarly, when the first predicted switching number is greater than the switching number corresponding to the sixth network device, the second network device needs to disconnect from the sixth network device to provide connection resources for the first network device and the second network device to connect and use.
[0100] In a possible implementation, before determining to establish a connection response message based on the first predicted number of switching times and the remaining resource status of the second network device, it also includes: training a second prediction model based on the number of switching times between the second network device and other network devices in multiple time granularities.
[0101] The number of times the second network device switches with other network devices in multiple time granularities may be a historical statistical value. Optionally, a long short-term memory (LSTM) algorithm is used to train the second prediction model. The trained second prediction model is used to predict the number of times the second network device switches with other network devices.
[0102] In a possible implementation, after the training of the second prediction model, it also includes: inputting the data transmitted between the second network device and the other network devices into the second prediction model; outputting a third predicted switching number through the second prediction model, wherein the third predicted switching number represents the number of switches between the second network device and the other network devices in at least one time granularity in the first time period.
[0103] For example, data transmitted between the first network device and the second network device is input into the second prediction model, and the second prediction model can output a predicted number of switching between the first network device and the second network device in at least one time granularity in the first time period.
[0104] Specifically, the second prediction model can be trained based on historical transmission data between the first network device and the second network device. When the second prediction model is used, 24*7 pieces of data transmitted between the first network device and the second network device are input into the first prediction model. Through the second prediction model, the third number of switching between the first network device and the second network device in each hour within the next 24 hours can be predicted.
[0105] In a possible implementation, after outputting the third predicted number of switching times, it also includes: determining the error between the third predicted number of switching times and the actual number of switching times; when the error is greater than an error threshold, accumulating the number of errors; when the number of errors reaches the fault tolerance number, retraining the second prediction model.
[0106] The steps and technical effects of retraining the second prediction model are similar to those of the first prediction model and will not be repeated here.
[0107] In a possible implementation manner, the target connection includes: an X2 or Xn connection.
[0108] The method for establishing a connection provided by an embodiment of the present invention receives connection establishment negotiation information sent by a first network device for establishing a target connection, wherein the connection establishment negotiation information carries the business rules of the first network device and the second network device in the time dimension; based on the business rules, determines connection establishment response information; and sends the connection establishment response information to the first network device, which can flexibly allocate target connection resources based on the business rules to avoid waste of target connection resources.
[0109] See also Figure 5 , taking the first network device as a wireless base station 501 and the second network device as a wireless base station 502 as an example, a method 500 for establishing a connection in an embodiment of the present application is described. The method 500 includes prediction of handover rules between base stations and establishment and / or deletion of X2 / Xn links.
[0110] Assume that there are four base stations in the wireless access network, namely NR gNB base station A 501, LTE eNB base station B 502, NRgNB base station C (not shown in the figure), and LTE eNB base station D (not shown in the figure). Base station A 501 needs to establish an X2 link with base station B 502, an Xn link with base station C, and an Xn link with base station D. The number of X2\Xn resources of each base station is n=1.
[0111] The inter-base station handover prediction module of base station A501 takes time t=1 hour as the minimum time granularity for statistical handover times, and uses k=24*7*4 data between base station A501 and base stations B, C, and D, respectively, and uses the LSTM algorithm to train the first prediction model. Input the corresponding j=24*7 data to the first prediction model based on AB and AC training; through the first prediction model, predict the handover times corresponding to each hour in the first time period (T=24 hours) in the future. As shown in Table 1. The inter-base station handover prediction module of base station A501 sends the prediction results in Table 1 to the X2\Xn establishment and deletion module of base station A501.
[0112] Table 1
[0113]
[0114] The inter-base station handover prediction module of base station B 502 takes time t=1 hour as the minimum time granularity for counting the number of handovers, uses k=24*7*4 data between base station B 502 and base station A and base station C respectively, and uses the LSTM algorithm to train the second prediction model. Input j=24*7 data to the second prediction model; through the second prediction model, predict the number of handovers corresponding to each hour in the first time period (T=24 hours) in the future. As shown in Table 2. The inter-base station handover prediction module of base station B 502 sends the prediction results in Table 2 to the X2\Xn establishment and deletion module of base station B 502.
[0115] Table 2
[0116]
[0117] According to the prediction results shown in Table 1, at 0-1, the predicted number of handovers between base stations AB is the highest (200 times), and the X2\Xn establishment and deletion module of base station A501 determines that an X2 link should be established between base stations AB between 0-1. Based on this, base station A 501 sends a connection establishment request to base station B. After receiving the request, base station B 502 waits for 5 seconds and also receives a link establishment request from base station C. According to the prediction results shown in Table 2, at 0-1, the predicted number of BC handovers (300) is higher than the predicted number of BA handovers (200). Base station B 502 determines that it is more appropriate to establish an Xn link between BC between 0-1 and refuses to establish a link with base station A 501. Base station A 501 receives a response message indicating that the connection is not established. Afterwards, base station A 501 sends a link establishment request to base station D, which ranks second in the number of predicted handovers.
[0118] At the same time, starting from 0 o'clock, base station A 501 counts the actual number of handovers between base stations AB and AC, as shown in Table 3 below.
[0119] Table 3
[0120]
[0121] According to the formula, error = (predicted number of handovers - actual number of handovers) / actual number of handovers. Assuming the number of fault tolerances is 4 and the error threshold is 30%, the prediction model between base stations AB needs to be retrained as of 24:00 on the same day, and the prediction model between base stations AC does not need to be retrained. The X2 / Xn establishment and deletion module of base station A 501 sends a base station AB model retraining message to its inter-base station handover prediction module to repeat the model training.
[0122] Through the method for establishing a connection provided in the embodiment of the present application, the X2 / Xn link can be configured multiple times within a time period, and the X2 / Xn resources can be flexibly allocated to improve the utilization rate of the X2 / Xn resources.
[0123] It should be noted that the method for establishing a connection provided in the embodiment of the present application can be performed by a device for establishing a connection, or a control module in the device for executing the method for loading the above method. In the embodiment of the present application, the method for establishing a connection provided in the embodiment of the present application is described by taking the method for establishing a connection performed by a device for establishing a connection as an example.
[0124] Figure 6 Schematic diagram of the structure of the device for establishing a connection according to an embodiment of the present invention. Figure 6 As shown, the device 600 for establishing a connection includes: a first determining module 601 , a second determining module 602 and a connecting module 603 .
[0125] The first determination module 601 is used to determine the business rules of the first network device and other network devices in the time dimension; the second determination module 602 is used to determine, from the other network devices, the second network device corresponding to the first network device in the first time period based on the business rules; the connection module 603 is used to send connection establishment negotiation information for establishing a target connection to the second network device, and according to the connection establishment response information fed back by the second network device, perform a connection response operation corresponding to the connection establishment response information, wherein the connection establishment response information is determined by the second network device based on the resource status.
[0126] In a possible implementation, the first determination module 601 is used to determine the predicted number of switching between the first network device and the other network devices at each time granularity; and determine the business rule according to the predicted number of switching at the time granularity included in the first time period.
[0127] In a possible implementation, the connection module 603 is used to send connection establishment negotiation information for establishing a target connection to the second network device, and the connection establishment negotiation information carries a first predicted number of switching times between the first network device and the second network device at a time granularity included in a first time period.
[0128] In one possible implementation, the first determination module 601 is used to determine the first time period based on the at least two consecutive time granularities when the difference between the predicted switching times in at least two consecutive time granularities is less than a time threshold; and determine the business rule based on the first predicted switching times on the at least two consecutive time granularities included in the first time period.
[0129] In a possible implementation, the connection module 603 is used to establish a connection between the first network device and the second network device when the connection establishment response information shows that the connection is established; and send the connection establishment negotiation information to the third network device when the connection establishment response information shows that the connection is not established, wherein the second network device is ranked in the first N positions in the first queue, N is a natural number, and the first queue is ranked according to the number of switches between the other network devices and the first network device in at least one time granularity in the first time period; wherein the third network device is ranked in the first queue as the N+1th position; and when the connection establishment response information shows that the connection is not established, the first predicted number of switches is set to 0, and the second network device is placed at the end of the first queue.
[0130] In one possible implementation, the device for establishing a connection is also used to determine a fourth network device among the other network devices whose predicted number of switching with the first network device in at least one time granularity in the first time period is ranked after the Nth position in the first queue; and delete the target connection between the fourth network device and the fourth network device.
[0131] In a possible implementation, the device for establishing a connection is further used to train a first prediction model based on business rules between the first network device and other network devices in multiple time dimensions.
[0132] In one possible implementation, the device for establishing a connection is also used to input data transmitted between the first network device and the other network devices into the first prediction model; through the first prediction model, a second predicted number of switching times is output, wherein the second predicted number of switching times represents the number of switching times between the first network device and the other network devices in at least one time granularity in a first time period.
[0133] In one possible implementation, the device for establishing a connection is also used to determine the error between the second predicted number of switching times and the actual number of switching times that occurred; when the error is greater than an error threshold, the number of errors is accumulated; when the number of errors reaches a tolerance number, the first prediction model is retrained.
[0134] In a possible implementation, the error between the first predicted switching number and the actual switching number is: the ratio of the first difference to the actual switching number, and the first difference is the difference between the second predicted switching number and the actual switching number.
[0135] In a possible implementation manner, the target connection includes: an X2 or Xn connection.
[0136] The device for establishing a connection in the embodiments of the present application may be a device, a device or an electronic device with an operating system, or a component, an integrated circuit, or a chip in a terminal. The device or electronic device may be a mobile electronic device or a non-mobile electronic device, which is not specifically limited in the embodiments of the present application.
[0137] The device 600 according to the embodiment of the present invention may refer to the corresponding Figures 2 to 3 The method flow of the embodiment, and the various units / modules in the device 600 and the above-mentioned other operations and / or functions are respectively for implementing Figures 2 to 3 The corresponding processes of the methods of the embodiments can achieve the same or equivalent technical effects, and for the sake of brevity, they will not be repeated here.
[0138] Figure 7 FIG. 2 is another schematic diagram of a device for establishing a connection according to an embodiment of the present invention. Figure 7 As shown, the device 700 for establishing a connection includes: a receiving module 701 , a third determining module 702 and a sending module 703 .
[0139] The receiving module 701 is used to receive connection establishment negotiation information sent by the first network device for establishing a target connection, wherein the connection establishment negotiation information carries the business rules of the first network device and the second network device in the time dimension; the third determination module 702 is used to determine the connection establishment response information based on the business rules; the sending module 703 is used to send the connection establishment response information to the first network device.
[0140] In a possible implementation, the service regularity of the first network device and the second network device in the time dimension includes: a first predicted number of switching between the first network device and the second network device in at least one time granularity in a first time period.
[0141] In a possible implementation, the first time period includes at least two consecutive time granularities, and a difference between predicted switching times corresponding to each of the at least two consecutive time granularities is less than a times threshold.
[0142] In a possible implementation, the third determination module 702 is used to determine the connection establishment response information based on the first predicted number of switching times and the remaining resource status of the second network device.
[0143] In a possible implementation, the third determination module 702 is used to determine that, when it is determined that there are idle connection resources, the connection establishment response information indicates that the connection establishment is agreed to be displayed; when the first predicted number of switching times is greater than the number of switching times corresponding to the fifth network device, the connection establishment response information indicates that the connection establishment is agreed to be displayed; wherein, the number of switching times corresponding to the fifth network device is ranked Nth in the second queue, and the second queue is sorted according to the number of switching times between each network device and the second network device in at least one time granularity in the first time period; when the first predicted number of switching times is greater than the number of switching times corresponding to the sixth network device, the connection establishment response information indicates that the connection establishment is agreed to be displayed; wherein, the number of switching times corresponding to the sixth network device is ranked Nth in the third queue, and the third queue is sorted according to the number of switching times between each network device and the second network device in at least one time granularity in the second time period, and the second time period is the next time period of the first time period.
[0144] In one possible implementation, the third determination module 702 is used to determine that the connection establishment response information table shows that no connection is established when there are no idle connection resources, the first predicted switching number is less than the switching number corresponding to the fifth network device, and the first predicted switching number is less than the switching number corresponding to the sixth network device.
[0145] In a possible implementation, the device for establishing a connection is also used to delete the connection between the second network device and the fifth network device when the first predicted switching number is greater than the switching number corresponding to the fifth network device; and to delete the connection between the second network device and the sixth network device when the first predicted switching number is greater than the switching number corresponding to the sixth network device.
[0146] In a possible implementation, the device for establishing a connection is further used to train a second prediction model based on the number of switchings between the second network device and other network devices in multiple time granularities.
[0147] In one possible implementation, the device for establishing a connection is also used to input data transmitted between the second network device and the other network devices into the second prediction model; through the second prediction model, a third predicted switching number is output, wherein the third predicted switching number represents the number of switches between the second network device and the other network devices in at least one time granularity in the first time period.
[0148] In one possible implementation, the device for establishing a connection is also used to determine the error between the third predicted number of switching times and the actual number of switching times that occurred; when the error is greater than an error threshold, the number of errors is accumulated; when the number of errors reaches a tolerance number, the second prediction model is retrained.
[0149] In a possible implementation manner, the target connection includes: an X2 or Xn connection.
[0150] The device 700 according to the embodiment of the present invention may refer to the corresponding Figure 4 The method flow of the embodiment, and the various units / modules in the device 700 and the above-mentioned other operations and / or functions are respectively for implementing Figure 4 The corresponding processes of the methods of the embodiments can achieve the same or equivalent technical effects, and for the sake of brevity, they will not be repeated here.
[0151] Optional, such as Figure 8 As shown, the embodiment of the present application further provides a network side device 800, including a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. For example, when the communication device 800 is a first network device, the program or instruction is executed by the processor 801 to implement the above Figures 2 to 3 When the network side device 800 is a first network device, the program or instruction is executed by the processor 801 to implement the above Figure 4 The various processes of the embodiment of the method for establishing a connection can achieve the same technical effect, and will not be described again here to avoid repetition.
[0152] An embodiment of the present application also provides a network device, including a processor and a communication interface, the processor is used to determine the business rules of the first network device and other network devices in the time dimension; based on the business rules, determine the second network device corresponding to the first network device in a first time period from the other network devices, send connection establishment negotiation information for establishing a target connection to the second network device, and according to the connection establishment response information of the second network device, perform a connection response operation corresponding to the connection establishment response information, the connection establishment response information is determined by the second network device based on the resource status; the communication interface is used to communicate with an external device.
[0153] An embodiment of the present application also provides another network device, including a processor and a communication interface, the processor being used to receive connection establishment negotiation information sent by a first network device for establishing a target connection, wherein the connection establishment negotiation information carries the business rules of the first network device and the second network device in the time dimension; and sending the connection establishment response information to the first network device; the processor being used to determine the connection establishment response information based on the business rules; and the communication interface being used to communicate with an external device.
[0154] Specifically, the embodiment of the present application also provides a network side backup. Fig. 9 As shown, the network device 900 includes: an antenna 901, a radio frequency device 902, and a baseband device 903. The antenna 901 is connected to the radio frequency device 902. In the uplink direction, the radio frequency device 902 receives information through the antenna 901 and sends the received information to the baseband device 903 for processing. In the downlink direction, the baseband device 903 processes the information to be sent and sends it to the radio frequency device 902. The radio frequency device 902 processes the received information and sends it out through the antenna 901.
[0155] The frequency band processing device may be located in the baseband device 903 . The method performed by the network-side device in the above embodiment may be implemented in the baseband device 903 . The baseband device 903 includes a processor 904 and a memory 905 .
[0156] The baseband device 903 may include, for example, at least one baseband board, on which multiple chips are arranged, as shown in the figure, one of the chips is, for example, a processor 904, which is connected to the memory 905 to call the program in the memory 905 and execute the network device operations shown in the above method embodiment.
[0157] The baseband device 903 may further include a network interface 906 for exchanging information with the radio frequency device 902 . The interface may be, for example, a common public radio interface (CPRI for short).
[0158] Specifically, the network side device in the embodiment of the present invention further includes: instructions or programs stored in the memory 905 and executable on the processor 904, and the processor 904 calls the instructions or programs in the memory 905 to execute:
[0159] Processor 904 calls instructions or programs in memory 905 to execute Figure 6 or Figure 7 The methods executed by the modules shown achieve the same technical effects, and therefore will not be described here in detail to avoid repetition.
[0160] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned method embodiment for establishing a connection is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0161] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0162] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment for establishing a connection, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0163] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0164] An embodiment of the present application further provides a computer program product, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0165] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0167] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for establishing a connection, characterized in that: The method is executed by a first network device and includes: Determine the service rules of the first network device and other network devices in the time dimension; Based on the service rule, determining a second network device corresponding to the first network device in the first time period from the other network devices; Sending connection establishment negotiation information for establishing a target connection to the second network device, and performing a connection response operation corresponding to the connection establishment response information fed back by the second network device, wherein the connection establishment response information is determined by the second network device based on a resource status.
2. The method according to claim 1, characterized in that The determining the service rules of the first network device and other network devices in the time dimension includes: Determining the predicted number of switching between the first network device and the other network devices at each time granularity; The business rule is determined according to the predicted number of switching times at a time granularity included in the first time period.
3. The method according to claim 2, characterized in that Sending connection establishment negotiation information for establishing a target connection to the second network device includes: Sending connection establishment negotiation information for establishing a target connection to the second network device, wherein the connection establishment negotiation information carries a first predicted number of switching times between the first network device and the second network device at a time granularity included in a first time period.
4. The method according to claim 3, characterized in that The determining the service rule according to the predicted number of switching times at the time granularity included in the first time period includes: When the difference between the predicted switching times in at least two consecutive time granularities is less than a times threshold, determining the first time period according to the at least two consecutive time granularities; The business rule is determined according to the first predicted number of switching times at the at least two consecutive time granularities included in the first time period.
5. The method according to claim 1, characterized in that The performing of the connection response operation corresponding to the connection establishment response information includes: When the connection establishment response information indicates that a connection is established, establishing a connection between the first network device and the second network device; When the connection establishment response information shows that the connection is not established, the connection establishment negotiation information is sent to the third network device, wherein the second network device is ranked in the first N positions in the first queue, N is a natural number, and the first queue is ranked according to the number of switching times between the other network devices and the first network device in at least one time granularity in the first time period; wherein the third network device is ranked in the first queue at the N+1th position; When the connection establishment response information shows that the connection is not established, the first predicted switching number is set to 0, and the second network device is placed at the end of the first queue.
6. The method according to claim 5, characterized in that After executing the connection response operation corresponding to the connection establishment response information, the method further includes: Determine a fourth network device among the other network devices, the fourth network device being ranked after the Nth position in the first queue in terms of the predicted number of handovers with the first network device in at least one time granularity in the first time period; The target connection with the fourth network device is deleted.
7. The method according to claim 1, characterized in that Before sending the connection establishment negotiation information for establishing the target connection to the second network device, the method further includes: Based on the business rules of the first network device and other network devices in multiple time dimensions, a first prediction model is trained.
8. The method according to claim 7, characterized in that After the training of the first prediction model, the method further includes: inputting data transmitted between the first network device and other network devices into the first prediction model; A second predicted switching number is outputted through the first prediction model, wherein the second predicted switching number represents the switching number between the first network device and the other network devices in at least one time granularity in a first time period.
9. The method according to claim 8, characterized in that After outputting the second predicted switching number, the method further includes: determining an error between the second predicted number of switching times and the number of switching times that actually occurred; In the case where the error is greater than the error threshold, accumulating the number of errors; When the number of errors reaches the error tolerance number, the first prediction model is retrained.
10. The method according to claim 9, characterized in that The error between the second predicted switching number and the actual switching number is: the ratio of the first difference to the actual switching number, and the first difference is the difference between the second predicted switching number and the actual switching number.
11. The method according to claim 1, characterized in that: The target connection includes: X2 or Xn connection.
12. A method for establishing a connection, characterized in that: The method is executed by the second network device and includes: Receiving connection establishment negotiation information for establishing a target connection sent by the first network device, wherein the connection establishment negotiation information carries a service rule between the first network device and the second network device in a time dimension; Based on the business rule, determine to establish a connection response information; Send the connection establishment response information to the first network device.
13. The method according to claim 12, characterized in that The service rules of the first network device and the second network device in the time dimension include: A first predicted number of switchings between the first network device and the second network device in at least one time granularity of a first time period.
14. The method according to claim 12, characterized in that The first time period includes at least two consecutive time granularities, and a difference between predicted switching times corresponding to each of the at least two consecutive time granularities is less than a times threshold.
15. The method according to claim 13, characterized in that The determining, based on the service rule, to establish connection response information includes: The connection establishment response information is determined based on the first predicted number of switching times and a remaining resource state of the second network device.
16. The method according to claim 15, characterized in that The determining, based on the first predicted number of switching times and the remaining resource state of the second network device, to establish a connection response information includes at least one of the following: In the case of determining that there are idle connection resources, determining that the connection establishment response information indicates that the connection is established; In the case where the first predicted switching number is greater than the switching number corresponding to the fifth network device, determining that the connection establishment response information indicates that a connection is established; wherein the switching number corresponding to the fifth network device is ranked Nth in the second queue, and the second queue is sorted according to the switching number between each network device and the second network device in at least one time granularity of the first time period; When the first predicted number of switching times is greater than the number of switching times corresponding to the sixth network device, it is determined that the connection establishment response information shows that the connection is established; wherein the number of switching times corresponding to the sixth network device is ranked Nth in the third queue, and the third queue is sorted according to the number of switching times between each network device and the second network device in at least one time granularity of the second time period, and the second time period is the next time period of the first time period.
17. The method according to claim 15, characterized in that The determining, based on the first predicted number of switching times and the remaining resource state of the second network device, to establish a connection response information includes: When there are no idle connection resources, the first predicted switching number is less than the switching number corresponding to the fifth network device, and the first predicted switching number is less than the switching number corresponding to the sixth network device, it is determined that the connection establishment response information shows that the connection is not established.
18. The method according to claim 15, characterized in that After determining to establish connection response information based on the first predicted number of switching times and the remaining resource state of the second network device, the method further includes: When the first predicted switching number is greater than the switching number corresponding to the fifth network device, deleting the connection between the second network device and the fifth network device; When the first predicted switching number is greater than the switching number corresponding to the sixth network device, the connection between the second network device and the sixth network device is deleted.
19. The method according to claim 15, characterized in that Before determining to establish connection response information based on the first predicted number of switching times and the remaining resource state of the second network device, the method further includes: Based on the number of switchings between the second network device and other network devices in multiple time granularities, a second prediction model is trained.
20. The method according to claim 19, characterized in that After the training of the second prediction model, the method further includes: inputting data transmitted between the second network device and other network devices into the second prediction model; A third predicted switching number is outputted through the second prediction model, wherein the third predicted switching number represents the switching number between the second network device and the other network devices in at least one time granularity of the first time period.
21. The method according to claim 20, characterized in that After outputting the third predicted switching number, the method further includes: Determining an error between the third predicted number of switching times and the number of switching times that actually occurred; In the case where the error is greater than the error threshold, accumulating the number of errors; When the number of errors reaches the error tolerance number, the second prediction model is retrained.
22. The method according to claim 12, characterized in that The target connection includes: X2 or Xn connection.
23. A network side device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method for establishing a connection as described in any one of claims 1 to 11 are implemented; or the steps of the method for establishing a connection as described in any one of claims 12 to 22 are implemented.
24. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the method for establishing a connection as described in any one of claims 1 to 11 are implemented, or the steps of the method for establishing a connection as described in any one of claims 12 to 22 are implemented.